@legioncodeinc/hive 0.6.3 → 0.6.4
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/dist/daemon/dashboard/app.js +14 -14
- package/dist/daemon/fleet-status.js +16 -5
- package/dist/daemon/fleet-status.js.map +1 -1
- package/dist/dashboard/web/onboarding/tenancy-client.d.ts +22 -0
- package/dist/dashboard/web/onboarding/tenancy-client.js +78 -11
- package/dist/dashboard/web/onboarding/tenancy-client.js.map +1 -1
- package/dist/dashboard/web/onboarding/tenancy-step.js +53 -5
- package/dist/dashboard/web/onboarding/tenancy-step.js.map +1 -1
- package/dist/dashboard/web/use-fleet-telemetry.d.ts +27 -0
- package/dist/dashboard/web/use-fleet-telemetry.js +37 -5
- package/dist/dashboard/web/use-fleet-telemetry.js.map +1 -1
- package/dist/service/index.js +24 -2
- package/dist/service/index.js.map +1 -1
- package/dist/shared/fleet-readiness.d.ts +3 -0
- package/dist/shared/fleet-readiness.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var Pz=Object.create;var Yd=Object.defineProperty;var zz=Object.getOwnPropertyDescriptor;var Iz=Object.getOwnPropertyNames;var Rz=Object.getPrototypeOf,Ez=Object.prototype.hasOwnProperty;var or=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},ir=(e,t)=>{for(var r in t)Yd(e,r,{get:t[r],enumerable:!0})},Tz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Iz(t))!Ez.call(e,n)&&n!==r&&Yd(e,n,{get:()=>t[n],enumerable:!(o=zz(t,n))||o.enumerable});return e};var P=(e,t,r)=>(r=e!=null?Pz(Rz(e)):{},Tz(t||!e||!e.__esModule?Yd(r,"default",{value:e,enumerable:!0}):r,e));var $b=or(xe=>{"use strict";var ha=Symbol.for("react.element"),Cz=Symbol.for("react.portal"),jz=Symbol.for("react.fragment"),Oz=Symbol.for("react.strict_mode"),Dz=Symbol.for("react.profiler"),Nz=Symbol.for("react.provider"),Lz=Symbol.for("react.context"),Az=Symbol.for("react.forward_ref"),Fz=Symbol.for("react.suspense"),Wz=Symbol.for("react.memo"),Uz=Symbol.for("react.lazy"),mb=Symbol.iterator;function Mz(e){return e===null||typeof e!="object"?null:(e=mb&&e[mb]||e["@@iterator"],typeof e=="function"?e:null)}var yb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hb=Object.assign,xb={};function Bo(e,t,r){this.props=e,this.context=t,this.refs=xb,this.updater=r||yb}Bo.prototype.isReactComponent={};Bo.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")};Bo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bb(){}bb.prototype=Bo.prototype;function Qd(e,t,r){this.props=e,this.context=t,this.refs=xb,this.updater=r||yb}var ep=Qd.prototype=new bb;ep.constructor=Qd;hb(ep,Bo.prototype);ep.isPureReactComponent=!0;var gb=Array.isArray,Sb=Object.prototype.hasOwnProperty,tp={current:null},kb={key:!0,ref:!0,__self:!0,__source:!0};function _b(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)Sb.call(t,o)&&!kb.hasOwnProperty(o)&&(n[o]=t[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)n[o]===void 0&&(n[o]=s[o]);return{$$typeof:ha,type:e,key:i,ref:a,props:n,_owner:tp.current}}function Bz(e,t){return{$$typeof:ha,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function np(e){return typeof e=="object"&&e!==null&&e.$$typeof===ha}function Zz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var vb=/\/+/g;function qd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zz(""+e.key):t.toString(36)}function pl(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 ha:case Cz:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+qd(a,0):o,gb(n)?(r="",e!=null&&(r=e.replace(vb,"$&/")+"/"),pl(n,t,r,"",function(c){return c})):n!=null&&(np(n)&&(n=Bz(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(vb,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",gb(e))for(var s=0;s<e.length;s++){i=e[s];var l=o+qd(i,s);a+=pl(i,t,r,l,n)}else if(l=Mz(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=o+qd(i,s++),a+=pl(i,t,r,l,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 dl(e,t,r){if(e==null)return e;var o=[],n=0;return pl(e,o,"","",function(i){return t.call(r,i,n++)}),o}function Hz(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 Tt={current:null},fl={transition:null},Vz={ReactCurrentDispatcher:Tt,ReactCurrentBatchConfig:fl,ReactCurrentOwner:tp};function wb(){throw Error("act(...) is not supported in production builds of React.")}xe.Children={map:dl,forEach:function(e,t,r){dl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return dl(e,function(){t++}),t},toArray:function(e){return dl(e,function(t){return t})||[]},only:function(e){if(!np(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=Bo;xe.Fragment=jz;xe.Profiler=Dz;xe.PureComponent=Qd;xe.StrictMode=Oz;xe.Suspense=Fz;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vz;xe.act=wb;xe.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=hb({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=tp.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Sb.call(t,l)&&!kb.hasOwnProperty(l)&&(o[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:ha,type:e.type,key:n,ref:i,props:o,_owner:a}};xe.createContext=function(e){return e={$$typeof:Lz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Nz,_context:e},e.Consumer=e};xe.createElement=_b;xe.createFactory=function(e){var t=_b.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:Az,render:e}};xe.isValidElement=np;xe.lazy=function(e){return{$$typeof:Uz,_payload:{_status:-1,_result:e},_init:Hz}};xe.memo=function(e,t){return{$$typeof:Wz,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=fl.transition;fl.transition={};try{e()}finally{fl.transition=t}};xe.unstable_act=wb;xe.useCallback=function(e,t){return Tt.current.useCallback(e,t)};xe.useContext=function(e){return Tt.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return Tt.current.useDeferredValue(e)};xe.useEffect=function(e,t){return Tt.current.useEffect(e,t)};xe.useId=function(){return Tt.current.useId()};xe.useImperativeHandle=function(e,t,r){return Tt.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return Tt.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return Tt.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return Tt.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return Tt.current.useReducer(e,t,r)};xe.useRef=function(e){return Tt.current.useRef(e)};xe.useState=function(e){return Tt.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return Tt.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return Tt.current.useTransition()};xe.version="18.3.1"});var me=or((c2,Pb)=>{"use strict";Pb.exports=$b()});var Nb=or(De=>{"use strict";function ap(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<ml(n,t))e[o]=t,e[r]=n,r=o;else break e}}function _n(e){return e.length===0?null:e[0]}function vl(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,s=e[a],l=a+1,c=e[l];if(0>ml(s,r))l<n&&0>ml(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l<n&&0>ml(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function ml(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(zb=performance,De.unstable_now=function(){return zb.now()}):(rp=Date,Ib=rp.now(),De.unstable_now=function(){return rp.now()-Ib});var zb,rp,Ib,Bn=[],Sr=[],Jz=1,un=null,_t=3,yl=!1,lo=!1,ba=!1,Tb=typeof setTimeout=="function"?setTimeout:null,Cb=typeof clearTimeout=="function"?clearTimeout:null,Rb=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function sp(e){for(var t=_n(Sr);t!==null;){if(t.callback===null)vl(Sr);else if(t.startTime<=e)vl(Sr),t.sortIndex=t.expirationTime,ap(Bn,t);else break;t=_n(Sr)}}function lp(e){if(ba=!1,sp(e),!lo)if(_n(Bn)!==null)lo=!0,up(cp);else{var t=_n(Sr);t!==null&&dp(lp,t.startTime-e)}}function cp(e,t){lo=!1,ba&&(ba=!1,Cb(Sa),Sa=-1),yl=!0;var r=_t;try{for(sp(t),un=_n(Bn);un!==null&&(!(un.expirationTime>t)||e&&!Db());){var o=un.callback;if(typeof o=="function"){un.callback=null,_t=un.priorityLevel;var n=o(un.expirationTime<=t);t=De.unstable_now(),typeof n=="function"?un.callback=n:un===_n(Bn)&&vl(Bn),sp(t)}else vl(Bn);un=_n(Bn)}if(un!==null)var i=!0;else{var a=_n(Sr);a!==null&&dp(lp,a.startTime-t),i=!1}return i}finally{un=null,_t=r,yl=!1}}var hl=!1,gl=null,Sa=-1,jb=5,Ob=-1;function Db(){return!(De.unstable_now()-Ob<jb)}function op(){if(gl!==null){var e=De.unstable_now();Ob=e;var t=!0;try{t=gl(!0,e)}finally{t?xa():(hl=!1,gl=null)}}else hl=!1}var xa;typeof Rb=="function"?xa=function(){Rb(op)}:typeof MessageChannel<"u"?(ip=new MessageChannel,Eb=ip.port2,ip.port1.onmessage=op,xa=function(){Eb.postMessage(null)}):xa=function(){Tb(op,0)};var ip,Eb;function up(e){gl=e,hl||(hl=!0,xa())}function dp(e,t){Sa=Tb(function(){e(De.unstable_now())},t)}De.unstable_IdlePriority=5;De.unstable_ImmediatePriority=1;De.unstable_LowPriority=4;De.unstable_NormalPriority=3;De.unstable_Profiling=null;De.unstable_UserBlockingPriority=2;De.unstable_cancelCallback=function(e){e.callback=null};De.unstable_continueExecution=function(){lo||yl||(lo=!0,up(cp))};De.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"):jb=0<e?Math.floor(1e3/e):5};De.unstable_getCurrentPriorityLevel=function(){return _t};De.unstable_getFirstCallbackNode=function(){return _n(Bn)};De.unstable_next=function(e){switch(_t){case 1:case 2:case 3:var t=3;break;default:t=_t}var r=_t;_t=t;try{return e()}finally{_t=r}};De.unstable_pauseExecution=function(){};De.unstable_requestPaint=function(){};De.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=_t;_t=e;try{return t()}finally{_t=r}};De.unstable_scheduleCallback=function(e,t,r){var o=De.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:Jz++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,ap(Sr,e),_n(Bn)===null&&e===_n(Sr)&&(ba?(Cb(Sa),Sa=-1):ba=!0,dp(lp,r-o))):(e.sortIndex=n,ap(Bn,e),lo||yl||(lo=!0,up(cp))),e};De.unstable_shouldYield=Db;De.unstable_wrapCallback=function(e){var t=_t;return function(){var r=_t;_t=t;try{return e.apply(this,arguments)}finally{_t=r}}}});var Ab=or((d2,Lb)=>{"use strict";Lb.exports=Nb()});var M_=or(nn=>{"use strict";var Gz=me(),en=Ab();function O(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 HS=new Set,Ba={};function ko(e,t){ui(e,t),ui(e+"Capture",t)}function ui(e,t){for(Ba[e]=t,e=0;e<t.length;e++)HS.add(t[e])}var dr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Op=Object.prototype.hasOwnProperty,Xz=/^[: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]*$/,Fb={},Wb={};function Kz(e){return Op.call(Wb,e)?!0:Op.call(Fb,e)?!1:Xz.test(e)?Wb[e]=!0:(Fb[e]=!0,!1)}function Yz(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 qz(e,t,r,o){if(t===null||typeof t>"u"||Yz(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 Ot(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 vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vt[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[e]=new Ot(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){vt[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vt[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vt[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vt[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var zf=/[\-:]([a-z])/g;function If(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(zf,If);vt[t]=new Ot(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(zf,If);vt[t]=new Ot(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(zf,If);vt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});vt.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rf(e,t,r,o){var n=vt.hasOwnProperty(t)?vt[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qz(t,r,n,o)&&(r=null),o||n===null?Kz(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 gr=Gz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xl=Symbol.for("react.element"),Vo=Symbol.for("react.portal"),Jo=Symbol.for("react.fragment"),Ef=Symbol.for("react.strict_mode"),Dp=Symbol.for("react.profiler"),VS=Symbol.for("react.provider"),JS=Symbol.for("react.context"),Tf=Symbol.for("react.forward_ref"),Np=Symbol.for("react.suspense"),Lp=Symbol.for("react.suspense_list"),Cf=Symbol.for("react.memo"),_r=Symbol.for("react.lazy"),GS=Symbol.for("react.offscreen"),Ub=Symbol.iterator;function ka(e){return e===null||typeof e!="object"?null:(e=Ub&&e[Ub]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,pp;function Ea(e){if(pp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);pp=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
var Ez=Object.create;var Qd=Object.defineProperty;var Tz=Object.getOwnPropertyDescriptor;var Cz=Object.getOwnPropertyNames;var jz=Object.getPrototypeOf,Oz=Object.prototype.hasOwnProperty;var or=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},ir=(e,t)=>{for(var r in t)Qd(e,r,{get:t[r],enumerable:!0})},Dz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Cz(t))!Oz.call(e,n)&&n!==r&&Qd(e,n,{get:()=>t[n],enumerable:!(o=Tz(t,n))||o.enumerable});return e};var P=(e,t,r)=>(r=e!=null?Ez(jz(e)):{},Dz(t||!e||!e.__esModule?Qd(r,"default",{value:e,enumerable:!0}):r,e));var zb=or(xe=>{"use strict";var xa=Symbol.for("react.element"),Nz=Symbol.for("react.portal"),Lz=Symbol.for("react.fragment"),Az=Symbol.for("react.strict_mode"),Fz=Symbol.for("react.profiler"),Wz=Symbol.for("react.provider"),Uz=Symbol.for("react.context"),Mz=Symbol.for("react.forward_ref"),Bz=Symbol.for("react.suspense"),Zz=Symbol.for("react.memo"),Hz=Symbol.for("react.lazy"),vb=Symbol.iterator;function Vz(e){return e===null||typeof e!="object"?null:(e=vb&&e[vb]||e["@@iterator"],typeof e=="function"?e:null)}var xb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bb=Object.assign,Sb={};function Zo(e,t,r){this.props=e,this.context=t,this.refs=Sb,this.updater=r||xb}Zo.prototype.isReactComponent={};Zo.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")};Zo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kb(){}kb.prototype=Zo.prototype;function tp(e,t,r){this.props=e,this.context=t,this.refs=Sb,this.updater=r||xb}var np=tp.prototype=new kb;np.constructor=tp;bb(np,Zo.prototype);np.isPureReactComponent=!0;var yb=Array.isArray,_b=Object.prototype.hasOwnProperty,rp={current:null},wb={key:!0,ref:!0,__self:!0,__source:!0};function $b(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)_b.call(t,o)&&!wb.hasOwnProperty(o)&&(n[o]=t[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)n[o]===void 0&&(n[o]=s[o]);return{$$typeof:xa,type:e,key:i,ref:a,props:n,_owner:rp.current}}function Jz(e,t){return{$$typeof:xa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function op(e){return typeof e=="object"&&e!==null&&e.$$typeof===xa}function Gz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var hb=/\/+/g;function ep(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gz(""+e.key):t.toString(36)}function ml(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 xa:case Nz:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+ep(a,0):o,yb(n)?(r="",e!=null&&(r=e.replace(hb,"$&/")+"/"),ml(n,t,r,"",function(c){return c})):n!=null&&(op(n)&&(n=Jz(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(hb,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",yb(e))for(var s=0;s<e.length;s++){i=e[s];var l=o+ep(i,s);a+=ml(i,t,r,l,n)}else if(l=Vz(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=o+ep(i,s++),a+=ml(i,t,r,l,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 fl(e,t,r){if(e==null)return e;var o=[],n=0;return ml(e,o,"","",function(i){return t.call(r,i,n++)}),o}function Xz(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 Tt={current:null},gl={transition:null},Kz={ReactCurrentDispatcher:Tt,ReactCurrentBatchConfig:gl,ReactCurrentOwner:rp};function Pb(){throw Error("act(...) is not supported in production builds of React.")}xe.Children={map:fl,forEach:function(e,t,r){fl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return fl(e,function(){t++}),t},toArray:function(e){return fl(e,function(t){return t})||[]},only:function(e){if(!op(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=Zo;xe.Fragment=Lz;xe.Profiler=Fz;xe.PureComponent=tp;xe.StrictMode=Az;xe.Suspense=Bz;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kz;xe.act=Pb;xe.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=bb({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=rp.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)_b.call(t,l)&&!wb.hasOwnProperty(l)&&(o[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:xa,type:e.type,key:n,ref:i,props:o,_owner:a}};xe.createContext=function(e){return e={$$typeof:Uz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wz,_context:e},e.Consumer=e};xe.createElement=$b;xe.createFactory=function(e){var t=$b.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:Mz,render:e}};xe.isValidElement=op;xe.lazy=function(e){return{$$typeof:Hz,_payload:{_status:-1,_result:e},_init:Xz}};xe.memo=function(e,t){return{$$typeof:Zz,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=gl.transition;gl.transition={};try{e()}finally{gl.transition=t}};xe.unstable_act=Pb;xe.useCallback=function(e,t){return Tt.current.useCallback(e,t)};xe.useContext=function(e){return Tt.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return Tt.current.useDeferredValue(e)};xe.useEffect=function(e,t){return Tt.current.useEffect(e,t)};xe.useId=function(){return Tt.current.useId()};xe.useImperativeHandle=function(e,t,r){return Tt.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return Tt.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return Tt.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return Tt.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return Tt.current.useReducer(e,t,r)};xe.useRef=function(e){return Tt.current.useRef(e)};xe.useState=function(e){return Tt.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return Tt.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return Tt.current.useTransition()};xe.version="18.3.1"});var me=or((f2,Ib)=>{"use strict";Ib.exports=zb()});var Ab=or(De=>{"use strict";function lp(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<vl(n,t))e[o]=t,e[r]=n,r=o;else break e}}function _n(e){return e.length===0?null:e[0]}function hl(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,s=e[a],l=a+1,c=e[l];if(0>vl(s,r))l<n&&0>vl(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l<n&&0>vl(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function vl(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Rb=performance,De.unstable_now=function(){return Rb.now()}):(ip=Date,Eb=ip.now(),De.unstable_now=function(){return ip.now()-Eb});var Rb,ip,Eb,Bn=[],kr=[],Yz=1,un=null,_t=3,xl=!1,co=!1,Sa=!1,jb=typeof setTimeout=="function"?setTimeout:null,Ob=typeof clearTimeout=="function"?clearTimeout:null,Tb=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function cp(e){for(var t=_n(kr);t!==null;){if(t.callback===null)hl(kr);else if(t.startTime<=e)hl(kr),t.sortIndex=t.expirationTime,lp(Bn,t);else break;t=_n(kr)}}function up(e){if(Sa=!1,cp(e),!co)if(_n(Bn)!==null)co=!0,pp(dp);else{var t=_n(kr);t!==null&&fp(up,t.startTime-e)}}function dp(e,t){co=!1,Sa&&(Sa=!1,Ob(ka),ka=-1),xl=!0;var r=_t;try{for(cp(t),un=_n(Bn);un!==null&&(!(un.expirationTime>t)||e&&!Lb());){var o=un.callback;if(typeof o=="function"){un.callback=null,_t=un.priorityLevel;var n=o(un.expirationTime<=t);t=De.unstable_now(),typeof n=="function"?un.callback=n:un===_n(Bn)&&hl(Bn),cp(t)}else hl(Bn);un=_n(Bn)}if(un!==null)var i=!0;else{var a=_n(kr);a!==null&&fp(up,a.startTime-t),i=!1}return i}finally{un=null,_t=r,xl=!1}}var bl=!1,yl=null,ka=-1,Db=5,Nb=-1;function Lb(){return!(De.unstable_now()-Nb<Db)}function ap(){if(yl!==null){var e=De.unstable_now();Nb=e;var t=!0;try{t=yl(!0,e)}finally{t?ba():(bl=!1,yl=null)}}else bl=!1}var ba;typeof Tb=="function"?ba=function(){Tb(ap)}:typeof MessageChannel<"u"?(sp=new MessageChannel,Cb=sp.port2,sp.port1.onmessage=ap,ba=function(){Cb.postMessage(null)}):ba=function(){jb(ap,0)};var sp,Cb;function pp(e){yl=e,bl||(bl=!0,ba())}function fp(e,t){ka=jb(function(){e(De.unstable_now())},t)}De.unstable_IdlePriority=5;De.unstable_ImmediatePriority=1;De.unstable_LowPriority=4;De.unstable_NormalPriority=3;De.unstable_Profiling=null;De.unstable_UserBlockingPriority=2;De.unstable_cancelCallback=function(e){e.callback=null};De.unstable_continueExecution=function(){co||xl||(co=!0,pp(dp))};De.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"):Db=0<e?Math.floor(1e3/e):5};De.unstable_getCurrentPriorityLevel=function(){return _t};De.unstable_getFirstCallbackNode=function(){return _n(Bn)};De.unstable_next=function(e){switch(_t){case 1:case 2:case 3:var t=3;break;default:t=_t}var r=_t;_t=t;try{return e()}finally{_t=r}};De.unstable_pauseExecution=function(){};De.unstable_requestPaint=function(){};De.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=_t;_t=e;try{return t()}finally{_t=r}};De.unstable_scheduleCallback=function(e,t,r){var o=De.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:Yz++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,lp(kr,e),_n(Bn)===null&&e===_n(kr)&&(Sa?(Ob(ka),ka=-1):Sa=!0,fp(up,r-o))):(e.sortIndex=n,lp(Bn,e),co||xl||(co=!0,pp(dp))),e};De.unstable_shouldYield=Lb;De.unstable_wrapCallback=function(e){var t=_t;return function(){var r=_t;_t=t;try{return e.apply(this,arguments)}finally{_t=r}}}});var Wb=or((g2,Fb)=>{"use strict";Fb.exports=Ab()});var Z_=or(nn=>{"use strict";var qz=me(),en=Wb();function O(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 JS=new Set,Za={};function _o(e,t){di(e,t),di(e+"Capture",t)}function di(e,t){for(Za[e]=t,e=0;e<t.length;e++)JS.add(t[e])}var dr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Np=Object.prototype.hasOwnProperty,Qz=/^[: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]*$/,Ub={},Mb={};function eI(e){return Np.call(Mb,e)?!0:Np.call(Ub,e)?!1:Qz.test(e)?Mb[e]=!0:(Ub[e]=!0,!1)}function tI(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 nI(e,t,r,o){if(t===null||typeof t>"u"||tI(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 Ot(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 yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new Ot(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){yt[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rf=/[\-:]([a-z])/g;function Ef(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(Rf,Ef);yt[t]=new Ot(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(Rf,Ef);yt[t]=new Ot(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(Rf,Ef);yt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tf(e,t,r,o){var n=yt.hasOwnProperty(t)?yt[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(nI(t,r,n,o)&&(r=null),o||n===null?eI(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 gr=qz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sl=Symbol.for("react.element"),Jo=Symbol.for("react.portal"),Go=Symbol.for("react.fragment"),Cf=Symbol.for("react.strict_mode"),Lp=Symbol.for("react.profiler"),GS=Symbol.for("react.provider"),XS=Symbol.for("react.context"),jf=Symbol.for("react.forward_ref"),Ap=Symbol.for("react.suspense"),Fp=Symbol.for("react.suspense_list"),Of=Symbol.for("react.memo"),wr=Symbol.for("react.lazy"),KS=Symbol.for("react.offscreen"),Bb=Symbol.iterator;function _a(e){return e===null||typeof e!="object"?null:(e=Bb&&e[Bb]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,mp;function Ta(e){if(mp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);mp=t&&t[1]||""}return`
|
|
2
|
+
`+mp+e}var gp=!1;function vp(e,t){if(!e||gp)return"";gp=!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,s=i.length-1;1<=a&&0<=s&&n[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(n[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||n[a]!==i[s]){var l=`
|
|
5
|
-
`+n[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{fp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ea(e):""}function Qz(e){switch(e.tag){case 5:return Ea(e.type);case 16:return Ea("Lazy");case 13:return Ea("Suspense");case 19:return Ea("SuspenseList");case 0:case 2:case 15:return e=mp(e.type,!1),e;case 11:return e=mp(e.type.render,!1),e;case 1:return e=mp(e.type,!0),e;default:return""}}function Ap(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 Jo:return"Fragment";case Vo:return"Portal";case Dp:return"Profiler";case Ef:return"StrictMode";case Np:return"Suspense";case Lp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case JS:return(e.displayName||"Context")+".Consumer";case VS:return(e._context.displayName||"Context")+".Provider";case Tf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cf:return t=e.displayName||null,t!==null?t:Ap(e.type)||"Memo";case _r:t=e._payload,e=e._init;try{return Ap(e(t))}catch{}}return null}function eI(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 Ap(t);case 8:return t===Ef?"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 Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function XS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tI(e){var t=XS(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 bl(e){e._valueTracker||(e._valueTracker=tI(e))}function KS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=XS(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Gl(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 Fp(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Mb(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Lr(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 YS(e,t){t=t.checked,t!=null&&Rf(e,"checked",t,!1)}function Wp(e,t){YS(e,t);var r=Lr(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")?Up(e,t.type,r):t.hasOwnProperty("defaultValue")&&Up(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bb(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 Up(e,t,r){(t!=="number"||Gl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ta=Array.isArray;function oi(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=""+Lr(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 Mp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Zb(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(O(92));if(Ta(r)){if(1<r.length)throw Error(O(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Lr(r)}}function qS(e,t){var r=Lr(t.value),o=Lr(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 Hb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function QS(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 Bp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?QS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Sl,ek=(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(Sl=Sl||document.createElement("div"),Sl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Sl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Za(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Oa={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},nI=["Webkit","ms","Moz","O"];Object.keys(Oa).forEach(function(e){nI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oa[t]=Oa[e]})});function tk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Oa.hasOwnProperty(e)&&Oa[e]?(""+t).trim():t+"px"}function nk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=tk(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var rI=He({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 Zp(e,t){if(t){if(rI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Hp(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 Vp=null;function jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jp=null,ii=null,ai=null;function Vb(e){if(e=ls(e)){if(typeof Jp!="function")throw Error(O(280));var t=e.stateNode;t&&(t=kc(t),Jp(e.stateNode,e.type,t))}}function rk(e){ii?ai?ai.push(e):ai=[e]:ii=e}function ok(){if(ii){var e=ii,t=ai;if(ai=ii=null,Vb(e),t)for(e=0;e<t.length;e++)Vb(t[e])}}function ik(e,t){return e(t)}function ak(){}var gp=!1;function sk(e,t,r){if(gp)return e(t,r);gp=!0;try{return ik(e,t,r)}finally{gp=!1,(ii!==null||ai!==null)&&(ak(),ok())}}function Ha(e,t){var r=e.stateNode;if(r===null)return null;var o=kc(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(O(231,t,typeof r));return r}var Gp=!1;if(dr)try{Zo={},Object.defineProperty(Zo,"passive",{get:function(){Gp=!0}}),window.addEventListener("test",Zo,Zo),window.removeEventListener("test",Zo,Zo)}catch{Gp=!1}var Zo;function oI(e,t,r,o,n,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Da=!1,Xl=null,Kl=!1,Xp=null,iI={onError:function(e){Da=!0,Xl=e}};function aI(e,t,r,o,n,i,a,s,l){Da=!1,Xl=null,oI.apply(iI,arguments)}function sI(e,t,r,o,n,i,a,s,l){if(aI.apply(this,arguments),Da){if(Da){var c=Xl;Da=!1,Xl=null}else throw Error(O(198));Kl||(Kl=!0,Xp=c)}}function _o(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 lk(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 Jb(e){if(_o(e)!==e)throw Error(O(188))}function lI(e){var t=e.alternate;if(!t){if(t=_o(e),t===null)throw Error(O(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 Jb(n),e;if(i===o)return Jb(n),t;i=i.sibling}throw Error(O(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,s=n.child;s;){if(s===r){a=!0,r=n,o=i;break}if(s===o){a=!0,o=n,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,o=n;break}if(s===o){a=!0,o=i,r=n;break}s=s.sibling}if(!a)throw Error(O(189))}}if(r.alternate!==o)throw Error(O(190))}if(r.tag!==3)throw Error(O(188));return r.stateNode.current===r?e:t}function ck(e){return e=lI(e),e!==null?uk(e):null}function uk(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uk(e);if(t!==null)return t;e=e.sibling}return null}var dk=en.unstable_scheduleCallback,Gb=en.unstable_cancelCallback,cI=en.unstable_shouldYield,uI=en.unstable_requestPaint,qe=en.unstable_now,dI=en.unstable_getCurrentPriorityLevel,Of=en.unstable_ImmediatePriority,pk=en.unstable_UserBlockingPriority,Yl=en.unstable_NormalPriority,pI=en.unstable_LowPriority,fk=en.unstable_IdlePriority,hc=null,Jn=null;function fI(e){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(hc,e,void 0,(e.current.flags&128)===128)}catch{}}var In=Math.clz32?Math.clz32:vI,mI=Math.log,gI=Math.LN2;function vI(e){return e>>>=0,e===0?32:31-(mI(e)/gI|0)|0}var kl=64,_l=4194304;function Ca(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 ql(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 s=a&~n;s!==0?o=Ca(s):(i&=a,i!==0&&(o=Ca(i)))}else a=r&~n,a!==0?o=Ca(a):i!==0&&(o=Ca(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-In(t),n=1<<r,o|=e[r],t&=~n;return o}function yI(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 hI(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-In(i),s=1<<a,l=n[a];l===-1?((s&r)===0||(s&o)!==0)&&(n[a]=yI(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function Kp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mk(){var e=kl;return kl<<=1,(kl&4194240)===0&&(kl=64),e}function vp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function as(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-In(t),e[t]=r}function xI(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-In(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function Df(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-In(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var Ie=0;function gk(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var vk,Nf,yk,hk,xk,Yp=!1,wl=[],Rr=null,Er=null,Tr=null,Va=new Map,Ja=new Map,$r=[],bI="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 Xb(e,t){switch(e){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":Va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ja.delete(t.pointerId)}}function _a(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=ls(t),t!==null&&Nf(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function SI(e,t,r,o,n){switch(t){case"focusin":return Rr=_a(Rr,e,t,r,o,n),!0;case"dragenter":return Er=_a(Er,e,t,r,o,n),!0;case"mouseover":return Tr=_a(Tr,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return Va.set(i,_a(Va.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,Ja.set(i,_a(Ja.get(i)||null,e,t,r,o,n)),!0}return!1}function bk(e){var t=po(e.target);if(t!==null){var r=_o(t);if(r!==null){if(t=r.tag,t===13){if(t=lk(r),t!==null){e.blockedOn=t,xk(e.priority,function(){yk(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 Al(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=qp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Vp=o,r.target.dispatchEvent(o),Vp=null}else return t=ls(r),t!==null&&Nf(t),e.blockedOn=r,!1;t.shift()}return!0}function Kb(e,t,r){Al(e)&&r.delete(t)}function kI(){Yp=!1,Rr!==null&&Al(Rr)&&(Rr=null),Er!==null&&Al(Er)&&(Er=null),Tr!==null&&Al(Tr)&&(Tr=null),Va.forEach(Kb),Ja.forEach(Kb)}function wa(e,t){e.blockedOn===t&&(e.blockedOn=null,Yp||(Yp=!0,en.unstable_scheduleCallback(en.unstable_NormalPriority,kI)))}function Ga(e){function t(n){return wa(n,e)}if(0<wl.length){wa(wl[0],e);for(var r=1;r<wl.length;r++){var o=wl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Rr!==null&&wa(Rr,e),Er!==null&&wa(Er,e),Tr!==null&&wa(Tr,e),Va.forEach(t),Ja.forEach(t),r=0;r<$r.length;r++)o=$r[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<$r.length&&(r=$r[0],r.blockedOn===null);)bk(r),r.blockedOn===null&&$r.shift()}var si=gr.ReactCurrentBatchConfig,Ql=!0;function _I(e,t,r,o){var n=Ie,i=si.transition;si.transition=null;try{Ie=1,Lf(e,t,r,o)}finally{Ie=n,si.transition=i}}function wI(e,t,r,o){var n=Ie,i=si.transition;si.transition=null;try{Ie=4,Lf(e,t,r,o)}finally{Ie=n,si.transition=i}}function Lf(e,t,r,o){if(Ql){var n=qp(e,t,r,o);if(n===null)_p(e,t,o,ec,r),Xb(e,o);else if(SI(n,e,t,r,o))o.stopPropagation();else if(Xb(e,o),t&4&&-1<bI.indexOf(e)){for(;n!==null;){var i=ls(n);if(i!==null&&vk(i),i=qp(e,t,r,o),i===null&&_p(e,t,o,ec,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else _p(e,t,o,null,r)}}var ec=null;function qp(e,t,r,o){if(ec=null,e=jf(o),e=po(e),e!==null)if(t=_o(e),t===null)e=null;else if(r=t.tag,r===13){if(e=lk(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 ec=e,null}function Sk(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(dI()){case Of:return 1;case pk:return 4;case Yl:case pI:return 16;case fk:return 536870912;default:return 16}default:return 16}}var zr=null,Af=null,Fl=null;function kk(){if(Fl)return Fl;var e,t=Af,r=t.length,o,n="value"in zr?zr.value:zr.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 Fl=n.slice(e,1<o?1-o:void 0)}function Wl(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 $l(){return!0}function Yb(){return!1}function tn(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 s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?$l:Yb,this.isPropagationStopped=Yb,this}return He(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=$l)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=$l)},persist:function(){},isPersistent:$l}),t}var yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ff=tn(yi),ss=He({},yi,{view:0,detail:0}),$I=tn(ss),yp,hp,$a,xc=He({},ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wf,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!==$a&&($a&&e.type==="mousemove"?(yp=e.screenX-$a.screenX,hp=e.screenY-$a.screenY):hp=yp=0,$a=e),yp)},movementY:function(e){return"movementY"in e?e.movementY:hp}}),qb=tn(xc),PI=He({},xc,{dataTransfer:0}),zI=tn(PI),II=He({},ss,{relatedTarget:0}),xp=tn(II),RI=He({},yi,{animationName:0,elapsedTime:0,pseudoElement:0}),EI=tn(RI),TI=He({},yi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CI=tn(TI),jI=He({},yi,{data:0}),Qb=tn(jI),OI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DI={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"},NI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NI[e])?!!t[e]:!1}function Wf(){return LI}var AI=He({},ss,{key:function(e){if(e.key){var t=OI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?DI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wf,charCode:function(e){return e.type==="keypress"?Wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),FI=tn(AI),WI=He({},xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eS=tn(WI),UI=He({},ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wf}),MI=tn(UI),BI=He({},yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZI=tn(BI),HI=He({},xc,{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}),VI=tn(HI),JI=[9,13,27,32],Uf=dr&&"CompositionEvent"in window,Na=null;dr&&"documentMode"in document&&(Na=document.documentMode);var GI=dr&&"TextEvent"in window&&!Na,_k=dr&&(!Uf||Na&&8<Na&&11>=Na),tS=" ",nS=!1;function wk(e,t){switch(e){case"keyup":return JI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $k(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Go=!1;function XI(e,t){switch(e){case"compositionend":return $k(t);case"keypress":return t.which!==32?null:(nS=!0,tS);case"textInput":return e=t.data,e===tS&&nS?null:e;default:return null}}function KI(e,t){if(Go)return e==="compositionend"||!Uf&&wk(e,t)?(e=kk(),Fl=Af=zr=null,Go=!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 _k&&t.locale!=="ko"?null:t.data;default:return null}}var YI={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 rS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YI[e.type]:t==="textarea"}function Pk(e,t,r,o){rk(o),t=tc(t,"onChange"),0<t.length&&(r=new Ff("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var La=null,Xa=null;function qI(e){Lk(e,0)}function bc(e){var t=Yo(e);if(KS(t))return e}function QI(e,t){if(e==="change")return t}var zk=!1;dr&&(dr?(zl="oninput"in document,zl||(bp=document.createElement("div"),bp.setAttribute("oninput","return;"),zl=typeof bp.oninput=="function"),Pl=zl):Pl=!1,zk=Pl&&(!document.documentMode||9<document.documentMode));var Pl,zl,bp;function oS(){La&&(La.detachEvent("onpropertychange",Ik),Xa=La=null)}function Ik(e){if(e.propertyName==="value"&&bc(Xa)){var t=[];Pk(t,Xa,e,jf(e)),sk(qI,t)}}function eR(e,t,r){e==="focusin"?(oS(),La=t,Xa=r,La.attachEvent("onpropertychange",Ik)):e==="focusout"&&oS()}function tR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bc(Xa)}function nR(e,t){if(e==="click")return bc(t)}function rR(e,t){if(e==="input"||e==="change")return bc(t)}function oR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var En=typeof Object.is=="function"?Object.is:oR;function Ka(e,t){if(En(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(!Op.call(t,n)||!En(e[n],t[n]))return!1}return!0}function iS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function aS(e,t){var r=iS(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=iS(r)}}function Rk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ek(){for(var e=window,t=Gl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Gl(e.document)}return t}function Mf(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 iR(e){var t=Ek(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Rk(r.ownerDocument.documentElement,r)){if(o!==null&&Mf(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=aS(r,i);var a=aS(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 aR=dr&&"documentMode"in document&&11>=document.documentMode,Xo=null,Qp=null,Aa=null,ef=!1;function sS(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ef||Xo==null||Xo!==Gl(o)||(o=Xo,"selectionStart"in o&&Mf(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}),Aa&&Ka(Aa,o)||(Aa=o,o=tc(Qp,"onSelect"),0<o.length&&(t=new Ff("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Xo)))}function Il(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ko={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionend:Il("Transition","TransitionEnd")},Sp={},Tk={};dr&&(Tk=document.createElement("div").style,"AnimationEvent"in window||(delete Ko.animationend.animation,delete Ko.animationiteration.animation,delete Ko.animationstart.animation),"TransitionEvent"in window||delete Ko.transitionend.transition);function Sc(e){if(Sp[e])return Sp[e];if(!Ko[e])return e;var t=Ko[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Tk)return Sp[e]=t[r];return e}var Ck=Sc("animationend"),jk=Sc("animationiteration"),Ok=Sc("animationstart"),Dk=Sc("transitionend"),Nk=new Map,lS="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 Fr(e,t){Nk.set(e,t),ko(t,[e])}for(Rl=0;Rl<lS.length;Rl++)El=lS[Rl],cS=El.toLowerCase(),uS=El[0].toUpperCase()+El.slice(1),Fr(cS,"on"+uS);var El,cS,uS,Rl;Fr(Ck,"onAnimationEnd");Fr(jk,"onAnimationIteration");Fr(Ok,"onAnimationStart");Fr("dblclick","onDoubleClick");Fr("focusin","onFocus");Fr("focusout","onBlur");Fr(Dk,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);ko("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ko("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ko("onBeforeInput",["compositionend","keypress","textInput","paste"]);ko("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ko("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ko("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ja="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(" "),sR=new Set("cancel close invalid load scroll toggle".split(" ").concat(ja));function dS(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,sI(o,t,void 0,e),e.currentTarget=null}function Lk(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 s=o[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&n.isPropagationStopped())break e;dS(n,s,c),i=l}else for(a=0;a<o.length;a++){if(s=o[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&n.isPropagationStopped())break e;dS(n,s,c),i=l}}}if(Kl)throw e=Xp,Kl=!1,Xp=null,e}function Ae(e,t){var r=t[af];r===void 0&&(r=t[af]=new Set);var o=e+"__bubble";r.has(o)||(Ak(t,e,2,!1),r.add(o))}function kp(e,t,r){var o=0;t&&(o|=4),Ak(r,e,o,t)}var Tl="_reactListening"+Math.random().toString(36).slice(2);function Ya(e){if(!e[Tl]){e[Tl]=!0,HS.forEach(function(r){r!=="selectionchange"&&(sR.has(r)||kp(r,!1,e),kp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tl]||(t[Tl]=!0,kp("selectionchange",!1,t))}}function Ak(e,t,r,o){switch(Sk(t)){case 1:var n=_I;break;case 4:n=wI;break;default:n=Lf}r=n.bind(null,t,r,e),n=void 0,!Gp||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 _p(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 s=o.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;a=a.return}for(;s!==null;){if(a=po(s),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}s=s.parentNode}}o=o.return}sk(function(){var c=i,d=jf(r),p=[];e:{var f=Nk.get(e);if(f!==void 0){var m=Ff,x=e;switch(e){case"keypress":if(Wl(r)===0)break e;case"keydown":case"keyup":m=FI;break;case"focusin":x="focus",m=xp;break;case"focusout":x="blur",m=xp;break;case"beforeblur":case"afterblur":m=xp;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":m=qb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=zI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=MI;break;case Ck:case jk:case Ok:m=EI;break;case Dk:m=ZI;break;case"scroll":m=$I;break;case"wheel":m=VI;break;case"copy":case"cut":case"paste":m=CI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=eS}var h=(t&4)!==0,_=!h&&e==="scroll",v=h?f!==null?f+"Capture":null:f;h=[];for(var g=c,y;g!==null;){y=g;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=Ha(g,v),S!=null&&h.push(qa(g,S,y)))),_)break;g=g.return}0<h.length&&(f=new m(f,x,null,r,d),p.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&r!==Vp&&(x=r.relatedTarget||r.fromElement)&&(po(x)||x[pr]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(x=r.relatedTarget||r.toElement,m=c,x=x?po(x):null,x!==null&&(_=_o(x),x!==_||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=c),m!==x)){if(h=qb,S="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=eS,S="onPointerLeave",v="onPointerEnter",g="pointer"),_=m==null?f:Yo(m),y=x==null?f:Yo(x),f=new h(S,g+"leave",m,r,d),f.target=_,f.relatedTarget=y,S=null,po(d)===c&&(h=new h(v,g+"enter",x,r,d),h.target=y,h.relatedTarget=_,S=h),_=S,m&&x)t:{for(h=m,v=x,g=0,y=h;y;y=Ho(y))g++;for(y=0,S=v;S;S=Ho(S))y++;for(;0<g-y;)h=Ho(h),g--;for(;0<y-g;)v=Ho(v),y--;for(;g--;){if(h===v||v!==null&&h===v.alternate)break t;h=Ho(h),v=Ho(v)}h=null}else h=null;m!==null&&pS(p,f,m,h,!1),x!==null&&_!==null&&pS(p,_,x,h,!0)}}e:{if(f=c?Yo(c):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var w=QI;else if(rS(f))if(zk)w=rR;else{w=tR;var T=eR}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=nR);if(w&&(w=w(e,c))){Pk(p,w,r,d);break e}T&&T(e,f,c),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&Up(f,"number",f.value)}switch(T=c?Yo(c):window,e){case"focusin":(rS(T)||T.contentEditable==="true")&&(Xo=T,Qp=c,Aa=null);break;case"focusout":Aa=Qp=Xo=null;break;case"mousedown":ef=!0;break;case"contextmenu":case"mouseup":case"dragend":ef=!1,sS(p,r,d);break;case"selectionchange":if(aR)break;case"keydown":case"keyup":sS(p,r,d)}var I;if(Uf)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Go?wk(e,r)&&(L="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(L="onCompositionStart");L&&(_k&&r.locale!=="ko"&&(Go||L!=="onCompositionStart"?L==="onCompositionEnd"&&Go&&(I=kk()):(zr=d,Af="value"in zr?zr.value:zr.textContent,Go=!0)),T=tc(c,L),0<T.length&&(L=new Qb(L,e,null,r,d),p.push({event:L,listeners:T}),I?L.data=I:(I=$k(r),I!==null&&(L.data=I)))),(I=GI?XI(e,r):KI(e,r))&&(c=tc(c,"onBeforeInput"),0<c.length&&(d=new Qb("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:c}),d.data=I))}Lk(p,t)})}function qa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function tc(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=Ha(e,r),i!=null&&o.unshift(qa(e,i,n)),i=Ha(e,t),i!=null&&o.push(qa(e,i,n))),e=e.return}return o}function Ho(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pS(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===o)break;s.tag===5&&c!==null&&(s=c,n?(l=Ha(r,i),l!=null&&a.unshift(qa(r,l,s))):n||(l=Ha(r,i),l!=null&&a.push(qa(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var lR=/\r\n?/g,cR=/\u0000|\uFFFD/g;function fS(e){return(typeof e=="string"?e:""+e).replace(lR,`
|
|
6
|
-
`).replace(cR,"")}function Cl(e,t,r){if(t=fS(t),fS(e)!==t&&r)throw Error(O(425))}function nc(){}var tf=null,nf=null;function rf(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 of=typeof setTimeout=="function"?setTimeout:void 0,uR=typeof clearTimeout=="function"?clearTimeout:void 0,mS=typeof Promise=="function"?Promise:void 0,dR=typeof queueMicrotask=="function"?queueMicrotask:typeof mS<"u"?function(e){return mS.resolve(null).then(e).catch(pR)}:of;function pR(e){setTimeout(function(){throw e})}function wp(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),Ga(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);Ga(t)}function Cr(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 gS(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 hi=Math.random().toString(36).slice(2),Vn="__reactFiber$"+hi,Qa="__reactProps$"+hi,pr="__reactContainer$"+hi,af="__reactEvents$"+hi,fR="__reactListeners$"+hi,mR="__reactHandles$"+hi;function po(e){var t=e[Vn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pr]||r[Vn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=gS(e);e!==null;){if(r=e[Vn])return r;e=gS(e)}return t}e=r,r=e.parentNode}return null}function ls(e){return e=e[Vn]||e[pr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function kc(e){return e[Qa]||null}var sf=[],qo=-1;function Wr(e){return{current:e}}function Fe(e){0>qo||(e.current=sf[qo],sf[qo]=null,qo--)}function Ne(e,t){qo++,sf[qo]=e.current,e.current=t}var Ar={},zt=Wr(Ar),Bt=Wr(!1),yo=Ar;function di(e,t){var r=e.type.contextTypes;if(!r)return Ar;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 Zt(e){return e=e.childContextTypes,e!=null}function rc(){Fe(Bt),Fe(zt)}function vS(e,t,r){if(zt.current!==Ar)throw Error(O(168));Ne(zt,t),Ne(Bt,r)}function Fk(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(O(108,eI(e)||"Unknown",n));return He({},r,o)}function oc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ar,yo=zt.current,Ne(zt,e),Ne(Bt,Bt.current),!0}function yS(e,t,r){var o=e.stateNode;if(!o)throw Error(O(169));r?(e=Fk(e,t,yo),o.__reactInternalMemoizedMergedChildContext=e,Fe(Bt),Fe(zt),Ne(zt,e)):Fe(Bt),Ne(Bt,r)}var sr=null,_c=!1,$p=!1;function Wk(e){sr===null?sr=[e]:sr.push(e)}function gR(e){_c=!0,Wk(e)}function Ur(){if(!$p&&sr!==null){$p=!0;var e=0,t=Ie;try{var r=sr;for(Ie=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}sr=null,_c=!1}catch(n){throw sr!==null&&(sr=sr.slice(e+1)),dk(Of,Ur),n}finally{Ie=t,$p=!1}}return null}var Qo=[],ei=0,ic=null,ac=0,dn=[],pn=0,ho=null,lr=1,cr="";function co(e,t){Qo[ei++]=ac,Qo[ei++]=ic,ic=e,ac=t}function Uk(e,t,r){dn[pn++]=lr,dn[pn++]=cr,dn[pn++]=ho,ho=e;var o=lr;e=cr;var n=32-In(o)-1;o&=~(1<<n),r+=1;var i=32-In(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,lr=1<<32-In(t)+n|r<<n|o,cr=i+e}else lr=1<<i|r<<n|o,cr=e}function Bf(e){e.return!==null&&(co(e,1),Uk(e,1,0))}function Zf(e){for(;e===ic;)ic=Qo[--ei],Qo[ei]=null,ac=Qo[--ei],Qo[ei]=null;for(;e===ho;)ho=dn[--pn],dn[pn]=null,cr=dn[--pn],dn[pn]=null,lr=dn[--pn],dn[pn]=null}var Qt=null,qt=null,Ue=!1,zn=null;function Mk(e,t){var r=fn(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 hS(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,Qt=e,qt=Cr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qt=e,qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=ho!==null?{id:lr,overflow:cr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=fn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Qt=e,qt=null,!0):!1;default:return!1}}function lf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cf(e){if(Ue){var t=qt;if(t){var r=t;if(!hS(e,t)){if(lf(e))throw Error(O(418));t=Cr(r.nextSibling);var o=Qt;t&&hS(e,t)?Mk(o,r):(e.flags=e.flags&-4097|2,Ue=!1,Qt=e)}}else{if(lf(e))throw Error(O(418));e.flags=e.flags&-4097|2,Ue=!1,Qt=e}}}function xS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qt=e}function jl(e){if(e!==Qt)return!1;if(!Ue)return xS(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!rf(e.type,e.memoizedProps)),t&&(t=qt)){if(lf(e))throw Bk(),Error(O(418));for(;t;)Mk(e,t),t=Cr(t.nextSibling)}if(xS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){qt=Cr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}qt=null}}else qt=Qt?Cr(e.stateNode.nextSibling):null;return!0}function Bk(){for(var e=qt;e;)e=Cr(e.nextSibling)}function pi(){qt=Qt=null,Ue=!1}function Hf(e){zn===null?zn=[e]:zn.push(e)}var vR=gr.ReactCurrentBatchConfig;function Pa(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(O(309));var o=r.stateNode}if(!o)throw Error(O(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 s=n.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!r._owner)throw Error(O(290,e))}return e}function Ol(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bS(e){var t=e._init;return t(e._payload)}function Zk(e){function t(v,g){if(e){var y=v.deletions;y===null?(v.deletions=[g],v.flags|=16):y.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function o(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function n(v,g){return v=Nr(v,g),v.index=0,v.sibling=null,v}function i(v,g,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<g?(v.flags|=2,g):y):(v.flags|=2,g)):(v.flags|=1048576,g)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,g,y,S){return g===null||g.tag!==6?(g=Cp(y,v.mode,S),g.return=v,g):(g=n(g,y),g.return=v,g)}function l(v,g,y,S){var w=y.type;return w===Jo?d(v,g,y.props.children,S,y.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===_r&&bS(w)===g.type)?(S=n(g,y.props),S.ref=Pa(v,g,y),S.return=v,S):(S=Jl(y.type,y.key,y.props,null,v.mode,S),S.ref=Pa(v,g,y),S.return=v,S)}function c(v,g,y,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=jp(y,v.mode,S),g.return=v,g):(g=n(g,y.children||[]),g.return=v,g)}function d(v,g,y,S,w){return g===null||g.tag!==7?(g=vo(y,v.mode,S,w),g.return=v,g):(g=n(g,y),g.return=v,g)}function p(v,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Cp(""+g,v.mode,y),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case xl:return y=Jl(g.type,g.key,g.props,null,v.mode,y),y.ref=Pa(v,null,g),y.return=v,y;case Vo:return g=jp(g,v.mode,y),g.return=v,g;case _r:var S=g._init;return p(v,S(g._payload),y)}if(Ta(g)||ka(g))return g=vo(g,v.mode,y,null),g.return=v,g;Ol(v,g)}return null}function f(v,g,y,S){var w=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:s(v,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case xl:return y.key===w?l(v,g,y,S):null;case Vo:return y.key===w?c(v,g,y,S):null;case _r:return w=y._init,f(v,g,w(y._payload),S)}if(Ta(y)||ka(y))return w!==null?null:d(v,g,y,S,null);Ol(v,y)}return null}function m(v,g,y,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,s(g,v,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case xl:return v=v.get(S.key===null?y:S.key)||null,l(g,v,S,w);case Vo:return v=v.get(S.key===null?y:S.key)||null,c(g,v,S,w);case _r:var T=S._init;return m(v,g,y,T(S._payload),w)}if(Ta(S)||ka(S))return v=v.get(y)||null,d(g,v,S,w,null);Ol(g,S)}return null}function x(v,g,y,S){for(var w=null,T=null,I=g,L=g=0,G=null;I!==null&&L<y.length;L++){I.index>L?(G=I,I=null):G=I.sibling;var Z=f(v,I,y[L],S);if(Z===null){I===null&&(I=G);break}e&&I&&Z.alternate===null&&t(v,I),g=i(Z,g,L),T===null?w=Z:T.sibling=Z,T=Z,I=G}if(L===y.length)return r(v,I),Ue&&co(v,L),w;if(I===null){for(;L<y.length;L++)I=p(v,y[L],S),I!==null&&(g=i(I,g,L),T===null?w=I:T.sibling=I,T=I);return Ue&&co(v,L),w}for(I=o(v,I);L<y.length;L++)G=m(I,v,L,y[L],S),G!==null&&(e&&G.alternate!==null&&I.delete(G.key===null?L:G.key),g=i(G,g,L),T===null?w=G:T.sibling=G,T=G);return e&&I.forEach(function(Re){return t(v,Re)}),Ue&&co(v,L),w}function h(v,g,y,S){var w=ka(y);if(typeof w!="function")throw Error(O(150));if(y=w.call(y),y==null)throw Error(O(151));for(var T=w=null,I=g,L=g=0,G=null,Z=y.next();I!==null&&!Z.done;L++,Z=y.next()){I.index>L?(G=I,I=null):G=I.sibling;var Re=f(v,I,Z.value,S);if(Re===null){I===null&&(I=G);break}e&&I&&Re.alternate===null&&t(v,I),g=i(Re,g,L),T===null?w=Re:T.sibling=Re,T=Re,I=G}if(Z.done)return r(v,I),Ue&&co(v,L),w;if(I===null){for(;!Z.done;L++,Z=y.next())Z=p(v,Z.value,S),Z!==null&&(g=i(Z,g,L),T===null?w=Z:T.sibling=Z,T=Z);return Ue&&co(v,L),w}for(I=o(v,I);!Z.done;L++,Z=y.next())Z=m(I,v,L,Z.value,S),Z!==null&&(e&&Z.alternate!==null&&I.delete(Z.key===null?L:Z.key),g=i(Z,g,L),T===null?w=Z:T.sibling=Z,T=Z);return e&&I.forEach(function(W){return t(v,W)}),Ue&&co(v,L),w}function _(v,g,y,S){if(typeof y=="object"&&y!==null&&y.type===Jo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case xl:e:{for(var w=y.key,T=g;T!==null;){if(T.key===w){if(w=y.type,w===Jo){if(T.tag===7){r(v,T.sibling),g=n(T,y.props.children),g.return=v,v=g;break e}}else if(T.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===_r&&bS(w)===T.type){r(v,T.sibling),g=n(T,y.props),g.ref=Pa(v,T,y),g.return=v,v=g;break e}r(v,T);break}else t(v,T);T=T.sibling}y.type===Jo?(g=vo(y.props.children,v.mode,S,y.key),g.return=v,v=g):(S=Jl(y.type,y.key,y.props,null,v.mode,S),S.ref=Pa(v,g,y),S.return=v,v=S)}return a(v);case Vo:e:{for(T=y.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(v,g.sibling),g=n(g,y.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=jp(y,v.mode,S),g.return=v,v=g}return a(v);case _r:return T=y._init,_(v,g,T(y._payload),S)}if(Ta(y))return x(v,g,y,S);if(ka(y))return h(v,g,y,S);Ol(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(v,g.sibling),g=n(g,y),g.return=v,v=g):(r(v,g),g=Cp(y,v.mode,S),g.return=v,v=g),a(v)):r(v,g)}return _}var fi=Zk(!0),Hk=Zk(!1),sc=Wr(null),lc=null,ti=null,Vf=null;function Jf(){Vf=ti=lc=null}function Gf(e){var t=sc.current;Fe(sc),e._currentValue=t}function uf(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 li(e,t){lc=e,Vf=ti=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Mt=!0),e.firstContext=null)}function gn(e){var t=e._currentValue;if(Vf!==e)if(e={context:e,memoizedValue:t,next:null},ti===null){if(lc===null)throw Error(O(308));ti=e,lc.dependencies={lanes:0,firstContext:e}}else ti=ti.next=e;return t}var fo=null;function Xf(e){fo===null?fo=[e]:fo.push(e)}function Vk(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,Xf(t)):(r.next=n.next,n.next=r),t.interleaved=r,fr(e,o)}function fr(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 wr=!1;function Kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jk(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 ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jr(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(_e&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,fr(e,r)}return n=o.interleaved,n===null?(t.next=t,Xf(o)):(t.next=n.next,n.next=t),o.interleaved=t,fr(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,Df(e,r)}}function SS(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 cc(e,t,r,o){var n=e.updateQueue;wr=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var p=n.baseState;a=0,d=c=l=null,s=i;do{var f=s.lane,m=s.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,h=s;switch(f=t,m=r,h.tag){case 1:if(x=h.payload,typeof x=="function"){p=x.call(m,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=h.payload,f=typeof x=="function"?x.call(m,p,f):x,f==null)break e;p=He({},p,f);break e;case 2:wr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[s]:f.push(s))}else m={eventTime:m,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=m,l=p):d=d.next=m,a|=f;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;f=s,s=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(l=p),n.baseState=l,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);bo|=a,e.lanes=a,e.memoizedState=p}}function kS(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(O(191,n));n.call(o)}}}var cs={},Gn=Wr(cs),es=Wr(cs),ts=Wr(cs);function mo(e){if(e===cs)throw Error(O(174));return e}function Yf(e,t){switch(Ne(ts,t),Ne(es,e),Ne(Gn,cs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bp(t,e)}Fe(Gn),Ne(Gn,t)}function mi(){Fe(Gn),Fe(es),Fe(ts)}function Gk(e){mo(ts.current);var t=mo(Gn.current),r=Bp(t,e.type);t!==r&&(Ne(es,e),Ne(Gn,r))}function qf(e){es.current===e&&(Fe(Gn),Fe(es))}var Be=Wr(0);function uc(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 Pp=[];function Qf(){for(var e=0;e<Pp.length;e++)Pp[e]._workInProgressVersionPrimary=null;Pp.length=0}var Ml=gr.ReactCurrentDispatcher,zp=gr.ReactCurrentBatchConfig,xo=0,Ze=null,at=null,pt=null,dc=!1,Fa=!1,ns=0,yR=0;function wt(){throw Error(O(321))}function em(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!En(e[r],t[r]))return!1;return!0}function tm(e,t,r,o,n,i){if(xo=i,Ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ml.current=e===null||e.memoizedState===null?SR:kR,e=r(o,n),Fa){i=0;do{if(Fa=!1,ns=0,25<=i)throw Error(O(301));i+=1,pt=at=null,t.updateQueue=null,Ml.current=_R,e=r(o,n)}while(Fa)}if(Ml.current=pc,t=at!==null&&at.next!==null,xo=0,pt=at=Ze=null,dc=!1,t)throw Error(O(300));return e}function nm(){var e=ns!==0;return ns=0,e}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ze.memoizedState=pt=e:pt=pt.next=e,pt}function vn(){if(at===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=pt===null?Ze.memoizedState:pt.next;if(t!==null)pt=t,at=e;else{if(e===null)throw Error(O(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},pt===null?Ze.memoizedState=pt=e:pt=pt.next=e}return pt}function rs(e,t){return typeof t=="function"?t(e):t}function Ip(e){var t=vn(),r=t.queue;if(r===null)throw Error(O(311));r.lastRenderedReducer=e;var o=at,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 s=a=null,l=null,c=i;do{var d=c.lane;if((xo&d)===d)l!==null&&(l=l.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};l===null?(s=l=p,a=o):l=l.next=p,Ze.lanes|=d,bo|=d}c=c.next}while(c!==null&&c!==i);l===null?a=o:l.next=s,En(o,t.memoizedState)||(Mt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=l,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Ze.lanes|=i,bo|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Rp(e){var t=vn(),r=t.queue;if(r===null)throw Error(O(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);En(i,t.memoizedState)||(Mt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Xk(){}function Kk(e,t){var r=Ze,o=vn(),n=t(),i=!En(o.memoizedState,n);if(i&&(o.memoizedState=n,Mt=!0),o=o.queue,rm(Qk.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,os(9,qk.bind(null,r,o,n,t),void 0,null),ft===null)throw Error(O(349));(xo&30)!==0||Yk(r,t,n)}return n}function Yk(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function qk(e,t,r,o){t.value=r,t.getSnapshot=o,e_(t)&&t_(e)}function Qk(e,t,r){return r(function(){e_(t)&&t_(e)})}function e_(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!En(e,r)}catch{return!0}}function t_(e){var t=fr(e,1);t!==null&&Rn(t,e,1,-1)}function _S(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:rs,lastRenderedState:e},t.queue=e,e=e.dispatch=bR.bind(null,Ze,e),[t.memoizedState,e]}function os(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.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 n_(){return vn().memoizedState}function Bl(e,t,r,o){var n=Hn();Ze.flags|=e,n.memoizedState=os(1|t,r,void 0,o===void 0?null:o)}function wc(e,t,r,o){var n=vn();o=o===void 0?null:o;var i=void 0;if(at!==null){var a=at.memoizedState;if(i=a.destroy,o!==null&&em(o,a.deps)){n.memoizedState=os(t,r,i,o);return}}Ze.flags|=e,n.memoizedState=os(1|t,r,i,o)}function wS(e,t){return Bl(8390656,8,e,t)}function rm(e,t){return wc(2048,8,e,t)}function r_(e,t){return wc(4,2,e,t)}function o_(e,t){return wc(4,4,e,t)}function i_(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 a_(e,t,r){return r=r!=null?r.concat([e]):null,wc(4,4,i_.bind(null,t,e),r)}function om(){}function s_(e,t){var r=vn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&em(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function l_(e,t){var r=vn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&em(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function c_(e,t,r){return(xo&21)===0?(e.baseState&&(e.baseState=!1,Mt=!0),e.memoizedState=r):(En(r,t)||(r=mk(),Ze.lanes|=r,bo|=r,e.baseState=!0),t)}function hR(e,t){var r=Ie;Ie=r!==0&&4>r?r:4,e(!0);var o=zp.transition;zp.transition={};try{e(!1),t()}finally{Ie=r,zp.transition=o}}function u_(){return vn().memoizedState}function xR(e,t,r){var o=Dr(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},d_(e))p_(t,r);else if(r=Vk(e,t,r,o),r!==null){var n=jt();Rn(r,e,o,n),f_(r,t,o)}}function bR(e,t,r){var o=Dr(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(d_(e))p_(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,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,En(s,a)){var l=t.interleaved;l===null?(n.next=n,Xf(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}r=Vk(e,t,n,o),r!==null&&(n=jt(),Rn(r,e,o,n),f_(r,t,o))}}function d_(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function p_(e,t){Fa=dc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function f_(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Df(e,r)}}var pc={readContext:gn,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},SR={readContext:gn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:gn,useEffect:wS,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bl(4194308,4,i_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bl(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=xR.bind(null,Ze,e),[o.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:_S,useDebugValue:om,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=_S(!1),t=e[0];return e=hR.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Ze,n=Hn();if(Ue){if(r===void 0)throw Error(O(407));r=r()}else{if(r=t(),ft===null)throw Error(O(349));(xo&30)!==0||Yk(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,wS(Qk.bind(null,o,i,e),[e]),o.flags|=2048,os(9,qk.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Hn(),t=ft.identifierPrefix;if(Ue){var r=cr,o=lr;r=(o&~(1<<32-In(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=ns++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=yR++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kR={readContext:gn,useCallback:s_,useContext:gn,useEffect:rm,useImperativeHandle:a_,useInsertionEffect:r_,useLayoutEffect:o_,useMemo:l_,useReducer:Ip,useRef:n_,useState:function(){return Ip(rs)},useDebugValue:om,useDeferredValue:function(e){var t=vn();return c_(t,at.memoizedState,e)},useTransition:function(){var e=Ip(rs)[0],t=vn().memoizedState;return[e,t]},useMutableSource:Xk,useSyncExternalStore:Kk,useId:u_,unstable_isNewReconciler:!1},_R={readContext:gn,useCallback:s_,useContext:gn,useEffect:rm,useImperativeHandle:a_,useInsertionEffect:r_,useLayoutEffect:o_,useMemo:l_,useReducer:Rp,useRef:n_,useState:function(){return Rp(rs)},useDebugValue:om,useDeferredValue:function(e){var t=vn();return at===null?t.memoizedState=e:c_(t,at.memoizedState,e)},useTransition:function(){var e=Rp(rs)[0],t=vn().memoizedState;return[e,t]},useMutableSource:Xk,useSyncExternalStore:Kk,useId:u_,unstable_isNewReconciler:!1};function $n(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function df(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var $c={isMounted:function(e){return(e=e._reactInternals)?_o(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=jt(),n=Dr(e),i=ur(o,n);i.payload=t,r!=null&&(i.callback=r),t=jr(e,i,n),t!==null&&(Rn(t,e,n,o),Ul(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=jt(),n=Dr(e),i=ur(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=jr(e,i,n),t!==null&&(Rn(t,e,n,o),Ul(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=jt(),o=Dr(e),n=ur(r,o);n.tag=2,t!=null&&(n.callback=t),t=jr(e,n,o),t!==null&&(Rn(t,e,o,r),Ul(t,e,o))}};function $S(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?!Ka(r,o)||!Ka(n,i):!0}function m_(e,t,r){var o=!1,n=Ar,i=t.contextType;return typeof i=="object"&&i!==null?i=gn(i):(n=Zt(t)?yo:zt.current,o=t.contextTypes,i=(o=o!=null)?di(e,n):Ar),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$c,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function PS(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&&$c.enqueueReplaceState(t,t.state,null)}function pf(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Kf(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=gn(i):(i=Zt(t)?yo:zt.current,n.context=di(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(df(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&&$c.enqueueReplaceState(n,n.state,null),cc(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function gi(e,t){try{var r="",o=t;do r+=Qz(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
5
|
+
`+n[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{gp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ta(e):""}function rI(e){switch(e.tag){case 5:return Ta(e.type);case 16:return Ta("Lazy");case 13:return Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 2:case 15:return e=vp(e.type,!1),e;case 11:return e=vp(e.type.render,!1),e;case 1:return e=vp(e.type,!0),e;default:return""}}function Wp(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 Go:return"Fragment";case Jo:return"Portal";case Lp:return"Profiler";case Cf:return"StrictMode";case Ap:return"Suspense";case Fp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case XS:return(e.displayName||"Context")+".Consumer";case GS:return(e._context.displayName||"Context")+".Provider";case jf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Of:return t=e.displayName||null,t!==null?t:Wp(e.type)||"Memo";case wr:t=e._payload,e=e._init;try{return Wp(e(t))}catch{}}return null}function oI(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 Wp(t);case 8:return t===Cf?"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 Ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function YS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iI(e){var t=YS(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 kl(e){e._valueTracker||(e._valueTracker=iI(e))}function qS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=YS(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Kl(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 Up(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Zb(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Ar(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 QS(e,t){t=t.checked,t!=null&&Tf(e,"checked",t,!1)}function Mp(e,t){QS(e,t);var r=Ar(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")?Bp(e,t.type,r):t.hasOwnProperty("defaultValue")&&Bp(e,t.type,Ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hb(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 Bp(e,t,r){(t!=="number"||Kl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ca=Array.isArray;function ii(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=""+Ar(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 Zp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vb(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(O(92));if(Ca(r)){if(1<r.length)throw Error(O(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ar(r)}}function ek(e,t){var r=Ar(t.value),o=Ar(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 Jb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tk(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 Hp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _l,nk=(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(_l=_l||document.createElement("div"),_l.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ha(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Da={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},aI=["Webkit","ms","Moz","O"];Object.keys(Da).forEach(function(e){aI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Da[t]=Da[e]})});function rk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Da.hasOwnProperty(e)&&Da[e]?(""+t).trim():t+"px"}function ok(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=rk(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var sI=He({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 Vp(e,t){if(t){if(sI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Jp(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 Gp=null;function Df(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xp=null,ai=null,si=null;function Gb(e){if(e=cs(e)){if(typeof Xp!="function")throw Error(O(280));var t=e.stateNode;t&&(t=wc(t),Xp(e.stateNode,e.type,t))}}function ik(e){ai?si?si.push(e):si=[e]:ai=e}function ak(){if(ai){var e=ai,t=si;if(si=ai=null,Gb(e),t)for(e=0;e<t.length;e++)Gb(t[e])}}function sk(e,t){return e(t)}function lk(){}var yp=!1;function ck(e,t,r){if(yp)return e(t,r);yp=!0;try{return sk(e,t,r)}finally{yp=!1,(ai!==null||si!==null)&&(lk(),ak())}}function Va(e,t){var r=e.stateNode;if(r===null)return null;var o=wc(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(O(231,t,typeof r));return r}var Kp=!1;if(dr)try{Ho={},Object.defineProperty(Ho,"passive",{get:function(){Kp=!0}}),window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{Kp=!1}var Ho;function lI(e,t,r,o,n,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Na=!1,Yl=null,ql=!1,Yp=null,cI={onError:function(e){Na=!0,Yl=e}};function uI(e,t,r,o,n,i,a,s,l){Na=!1,Yl=null,lI.apply(cI,arguments)}function dI(e,t,r,o,n,i,a,s,l){if(uI.apply(this,arguments),Na){if(Na){var c=Yl;Na=!1,Yl=null}else throw Error(O(198));ql||(ql=!0,Yp=c)}}function wo(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 uk(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 Xb(e){if(wo(e)!==e)throw Error(O(188))}function pI(e){var t=e.alternate;if(!t){if(t=wo(e),t===null)throw Error(O(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 Xb(n),e;if(i===o)return Xb(n),t;i=i.sibling}throw Error(O(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,s=n.child;s;){if(s===r){a=!0,r=n,o=i;break}if(s===o){a=!0,o=n,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,o=n;break}if(s===o){a=!0,o=i,r=n;break}s=s.sibling}if(!a)throw Error(O(189))}}if(r.alternate!==o)throw Error(O(190))}if(r.tag!==3)throw Error(O(188));return r.stateNode.current===r?e:t}function dk(e){return e=pI(e),e!==null?pk(e):null}function pk(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pk(e);if(t!==null)return t;e=e.sibling}return null}var fk=en.unstable_scheduleCallback,Kb=en.unstable_cancelCallback,fI=en.unstable_shouldYield,mI=en.unstable_requestPaint,qe=en.unstable_now,gI=en.unstable_getCurrentPriorityLevel,Nf=en.unstable_ImmediatePriority,mk=en.unstable_UserBlockingPriority,Ql=en.unstable_NormalPriority,vI=en.unstable_LowPriority,gk=en.unstable_IdlePriority,bc=null,Jn=null;function yI(e){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(bc,e,void 0,(e.current.flags&128)===128)}catch{}}var In=Math.clz32?Math.clz32:bI,hI=Math.log,xI=Math.LN2;function bI(e){return e>>>=0,e===0?32:31-(hI(e)/xI|0)|0}var wl=64,$l=4194304;function ja(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 ec(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 s=a&~n;s!==0?o=ja(s):(i&=a,i!==0&&(o=ja(i)))}else a=r&~n,a!==0?o=ja(a):i!==0&&(o=ja(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-In(t),n=1<<r,o|=e[r],t&=~n;return o}function SI(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 kI(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-In(i),s=1<<a,l=n[a];l===-1?((s&r)===0||(s&o)!==0)&&(n[a]=SI(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function qp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vk(){var e=wl;return wl<<=1,(wl&4194240)===0&&(wl=64),e}function hp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ss(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-In(t),e[t]=r}function _I(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-In(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function Lf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-In(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var Re=0;function yk(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var hk,Af,xk,bk,Sk,Qp=!1,Pl=[],Er=null,Tr=null,Cr=null,Ja=new Map,Ga=new Map,Pr=[],wI="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 Yb(e,t){switch(e){case"focusin":case"focusout":Er=null;break;case"dragenter":case"dragleave":Tr=null;break;case"mouseover":case"mouseout":Cr=null;break;case"pointerover":case"pointerout":Ja.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ga.delete(t.pointerId)}}function wa(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=cs(t),t!==null&&Af(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function $I(e,t,r,o,n){switch(t){case"focusin":return Er=wa(Er,e,t,r,o,n),!0;case"dragenter":return Tr=wa(Tr,e,t,r,o,n),!0;case"mouseover":return Cr=wa(Cr,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return Ja.set(i,wa(Ja.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,Ga.set(i,wa(Ga.get(i)||null,e,t,r,o,n)),!0}return!1}function kk(e){var t=fo(e.target);if(t!==null){var r=wo(t);if(r!==null){if(t=r.tag,t===13){if(t=uk(r),t!==null){e.blockedOn=t,Sk(e.priority,function(){xk(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 Wl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ef(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Gp=o,r.target.dispatchEvent(o),Gp=null}else return t=cs(r),t!==null&&Af(t),e.blockedOn=r,!1;t.shift()}return!0}function qb(e,t,r){Wl(e)&&r.delete(t)}function PI(){Qp=!1,Er!==null&&Wl(Er)&&(Er=null),Tr!==null&&Wl(Tr)&&(Tr=null),Cr!==null&&Wl(Cr)&&(Cr=null),Ja.forEach(qb),Ga.forEach(qb)}function $a(e,t){e.blockedOn===t&&(e.blockedOn=null,Qp||(Qp=!0,en.unstable_scheduleCallback(en.unstable_NormalPriority,PI)))}function Xa(e){function t(n){return $a(n,e)}if(0<Pl.length){$a(Pl[0],e);for(var r=1;r<Pl.length;r++){var o=Pl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Er!==null&&$a(Er,e),Tr!==null&&$a(Tr,e),Cr!==null&&$a(Cr,e),Ja.forEach(t),Ga.forEach(t),r=0;r<Pr.length;r++)o=Pr[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<Pr.length&&(r=Pr[0],r.blockedOn===null);)kk(r),r.blockedOn===null&&Pr.shift()}var li=gr.ReactCurrentBatchConfig,tc=!0;function zI(e,t,r,o){var n=Re,i=li.transition;li.transition=null;try{Re=1,Ff(e,t,r,o)}finally{Re=n,li.transition=i}}function II(e,t,r,o){var n=Re,i=li.transition;li.transition=null;try{Re=4,Ff(e,t,r,o)}finally{Re=n,li.transition=i}}function Ff(e,t,r,o){if(tc){var n=ef(e,t,r,o);if(n===null)$p(e,t,o,nc,r),Yb(e,o);else if($I(n,e,t,r,o))o.stopPropagation();else if(Yb(e,o),t&4&&-1<wI.indexOf(e)){for(;n!==null;){var i=cs(n);if(i!==null&&hk(i),i=ef(e,t,r,o),i===null&&$p(e,t,o,nc,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else $p(e,t,o,null,r)}}var nc=null;function ef(e,t,r,o){if(nc=null,e=Df(o),e=fo(e),e!==null)if(t=wo(e),t===null)e=null;else if(r=t.tag,r===13){if(e=uk(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 nc=e,null}function _k(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(gI()){case Nf:return 1;case mk:return 4;case Ql:case vI:return 16;case gk:return 536870912;default:return 16}default:return 16}}var Ir=null,Wf=null,Ul=null;function wk(){if(Ul)return Ul;var e,t=Wf,r=t.length,o,n="value"in Ir?Ir.value:Ir.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 Ul=n.slice(e,1<o?1-o:void 0)}function Ml(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 zl(){return!0}function Qb(){return!1}function tn(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 s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?zl:Qb,this.isPropagationStopped=Qb,this}return He(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=zl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=zl)},persist:function(){},isPersistent:zl}),t}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uf=tn(hi),ls=He({},hi,{view:0,detail:0}),RI=tn(ls),xp,bp,Pa,Sc=He({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mf,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!==Pa&&(Pa&&e.type==="mousemove"?(xp=e.screenX-Pa.screenX,bp=e.screenY-Pa.screenY):bp=xp=0,Pa=e),xp)},movementY:function(e){return"movementY"in e?e.movementY:bp}}),eS=tn(Sc),EI=He({},Sc,{dataTransfer:0}),TI=tn(EI),CI=He({},ls,{relatedTarget:0}),Sp=tn(CI),jI=He({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),OI=tn(jI),DI=He({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NI=tn(DI),LI=He({},hi,{data:0}),tS=tn(LI),AI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FI={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"},WI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WI[e])?!!t[e]:!1}function Mf(){return UI}var MI=He({},ls,{key:function(e){if(e.key){var t=AI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ml(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mf,charCode:function(e){return e.type==="keypress"?Ml(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ml(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BI=tn(MI),ZI=He({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nS=tn(ZI),HI=He({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mf}),VI=tn(HI),JI=He({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),GI=tn(JI),XI=He({},Sc,{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}),KI=tn(XI),YI=[9,13,27,32],Bf=dr&&"CompositionEvent"in window,La=null;dr&&"documentMode"in document&&(La=document.documentMode);var qI=dr&&"TextEvent"in window&&!La,$k=dr&&(!Bf||La&&8<La&&11>=La),rS=" ",oS=!1;function Pk(e,t){switch(e){case"keyup":return YI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xo=!1;function QI(e,t){switch(e){case"compositionend":return zk(t);case"keypress":return t.which!==32?null:(oS=!0,rS);case"textInput":return e=t.data,e===rS&&oS?null:e;default:return null}}function eR(e,t){if(Xo)return e==="compositionend"||!Bf&&Pk(e,t)?(e=wk(),Ul=Wf=Ir=null,Xo=!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 $k&&t.locale!=="ko"?null:t.data;default:return null}}var tR={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 iS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tR[e.type]:t==="textarea"}function Ik(e,t,r,o){ik(o),t=rc(t,"onChange"),0<t.length&&(r=new Uf("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Aa=null,Ka=null;function nR(e){Fk(e,0)}function kc(e){var t=qo(e);if(qS(t))return e}function rR(e,t){if(e==="change")return t}var Rk=!1;dr&&(dr?(Rl="oninput"in document,Rl||(kp=document.createElement("div"),kp.setAttribute("oninput","return;"),Rl=typeof kp.oninput=="function"),Il=Rl):Il=!1,Rk=Il&&(!document.documentMode||9<document.documentMode));var Il,Rl,kp;function aS(){Aa&&(Aa.detachEvent("onpropertychange",Ek),Ka=Aa=null)}function Ek(e){if(e.propertyName==="value"&&kc(Ka)){var t=[];Ik(t,Ka,e,Df(e)),ck(nR,t)}}function oR(e,t,r){e==="focusin"?(aS(),Aa=t,Ka=r,Aa.attachEvent("onpropertychange",Ek)):e==="focusout"&&aS()}function iR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kc(Ka)}function aR(e,t){if(e==="click")return kc(t)}function sR(e,t){if(e==="input"||e==="change")return kc(t)}function lR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var En=typeof Object.is=="function"?Object.is:lR;function Ya(e,t){if(En(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(!Np.call(t,n)||!En(e[n],t[n]))return!1}return!0}function sS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lS(e,t){var r=sS(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=sS(r)}}function Tk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ck(){for(var e=window,t=Kl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Kl(e.document)}return t}function Zf(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 cR(e){var t=Ck(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Tk(r.ownerDocument.documentElement,r)){if(o!==null&&Zf(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=lS(r,i);var a=lS(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 uR=dr&&"documentMode"in document&&11>=document.documentMode,Ko=null,tf=null,Fa=null,nf=!1;function cS(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;nf||Ko==null||Ko!==Kl(o)||(o=Ko,"selectionStart"in o&&Zf(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}),Fa&&Ya(Fa,o)||(Fa=o,o=rc(tf,"onSelect"),0<o.length&&(t=new Uf("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Ko)))}function El(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Yo={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionend:El("Transition","TransitionEnd")},_p={},jk={};dr&&(jk=document.createElement("div").style,"AnimationEvent"in window||(delete Yo.animationend.animation,delete Yo.animationiteration.animation,delete Yo.animationstart.animation),"TransitionEvent"in window||delete Yo.transitionend.transition);function _c(e){if(_p[e])return _p[e];if(!Yo[e])return e;var t=Yo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in jk)return _p[e]=t[r];return e}var Ok=_c("animationend"),Dk=_c("animationiteration"),Nk=_c("animationstart"),Lk=_c("transitionend"),Ak=new Map,uS="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 Wr(e,t){Ak.set(e,t),_o(t,[e])}for(Tl=0;Tl<uS.length;Tl++)Cl=uS[Tl],dS=Cl.toLowerCase(),pS=Cl[0].toUpperCase()+Cl.slice(1),Wr(dS,"on"+pS);var Cl,dS,pS,Tl;Wr(Ok,"onAnimationEnd");Wr(Dk,"onAnimationIteration");Wr(Nk,"onAnimationStart");Wr("dblclick","onDoubleClick");Wr("focusin","onFocus");Wr("focusout","onBlur");Wr(Lk,"onTransitionEnd");di("onMouseEnter",["mouseout","mouseover"]);di("onMouseLeave",["mouseout","mouseover"]);di("onPointerEnter",["pointerout","pointerover"]);di("onPointerLeave",["pointerout","pointerover"]);_o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_o("onBeforeInput",["compositionend","keypress","textInput","paste"]);_o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oa="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(" "),dR=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oa));function fS(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,dI(o,t,void 0,e),e.currentTarget=null}function Fk(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 s=o[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&n.isPropagationStopped())break e;fS(n,s,c),i=l}else for(a=0;a<o.length;a++){if(s=o[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&n.isPropagationStopped())break e;fS(n,s,c),i=l}}}if(ql)throw e=Yp,ql=!1,Yp=null,e}function Ae(e,t){var r=t[lf];r===void 0&&(r=t[lf]=new Set);var o=e+"__bubble";r.has(o)||(Wk(t,e,2,!1),r.add(o))}function wp(e,t,r){var o=0;t&&(o|=4),Wk(r,e,o,t)}var jl="_reactListening"+Math.random().toString(36).slice(2);function qa(e){if(!e[jl]){e[jl]=!0,JS.forEach(function(r){r!=="selectionchange"&&(dR.has(r)||wp(r,!1,e),wp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jl]||(t[jl]=!0,wp("selectionchange",!1,t))}}function Wk(e,t,r,o){switch(_k(t)){case 1:var n=zI;break;case 4:n=II;break;default:n=Ff}r=n.bind(null,t,r,e),n=void 0,!Kp||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 $p(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 s=o.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;a=a.return}for(;s!==null;){if(a=fo(s),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}s=s.parentNode}}o=o.return}ck(function(){var c=i,d=Df(r),p=[];e:{var f=Ak.get(e);if(f!==void 0){var m=Uf,x=e;switch(e){case"keypress":if(Ml(r)===0)break e;case"keydown":case"keyup":m=BI;break;case"focusin":x="focus",m=Sp;break;case"focusout":x="blur",m=Sp;break;case"beforeblur":case"afterblur":m=Sp;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":m=eS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=TI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=VI;break;case Ok:case Dk:case Nk:m=OI;break;case Lk:m=GI;break;case"scroll":m=RI;break;case"wheel":m=KI;break;case"copy":case"cut":case"paste":m=NI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=nS}var h=(t&4)!==0,_=!h&&e==="scroll",v=h?f!==null?f+"Capture":null:f;h=[];for(var g=c,y;g!==null;){y=g;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=Va(g,v),S!=null&&h.push(Qa(g,S,y)))),_)break;g=g.return}0<h.length&&(f=new m(f,x,null,r,d),p.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&r!==Gp&&(x=r.relatedTarget||r.fromElement)&&(fo(x)||x[pr]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(x=r.relatedTarget||r.toElement,m=c,x=x?fo(x):null,x!==null&&(_=wo(x),x!==_||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=c),m!==x)){if(h=eS,S="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=nS,S="onPointerLeave",v="onPointerEnter",g="pointer"),_=m==null?f:qo(m),y=x==null?f:qo(x),f=new h(S,g+"leave",m,r,d),f.target=_,f.relatedTarget=y,S=null,fo(d)===c&&(h=new h(v,g+"enter",x,r,d),h.target=y,h.relatedTarget=_,S=h),_=S,m&&x)t:{for(h=m,v=x,g=0,y=h;y;y=Vo(y))g++;for(y=0,S=v;S;S=Vo(S))y++;for(;0<g-y;)h=Vo(h),g--;for(;0<y-g;)v=Vo(v),y--;for(;g--;){if(h===v||v!==null&&h===v.alternate)break t;h=Vo(h),v=Vo(v)}h=null}else h=null;m!==null&&mS(p,f,m,h,!1),x!==null&&_!==null&&mS(p,_,x,h,!0)}}e:{if(f=c?qo(c):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var w=rR;else if(iS(f))if(Rk)w=sR;else{w=iR;var E=oR}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=aR);if(w&&(w=w(e,c))){Ik(p,w,r,d);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Bp(f,"number",f.value)}switch(E=c?qo(c):window,e){case"focusin":(iS(E)||E.contentEditable==="true")&&(Ko=E,tf=c,Fa=null);break;case"focusout":Fa=tf=Ko=null;break;case"mousedown":nf=!0;break;case"contextmenu":case"mouseup":case"dragend":nf=!1,cS(p,r,d);break;case"selectionchange":if(uR)break;case"keydown":case"keyup":cS(p,r,d)}var L;if(Bf)e:{switch(e){case"compositionstart":var H="onCompositionStart";break e;case"compositionend":H="onCompositionEnd";break e;case"compositionupdate":H="onCompositionUpdate";break e}H=void 0}else Xo?Pk(e,r)&&(H="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(H="onCompositionStart");H&&($k&&r.locale!=="ko"&&(Xo||H!=="onCompositionStart"?H==="onCompositionEnd"&&Xo&&(L=wk()):(Ir=d,Wf="value"in Ir?Ir.value:Ir.textContent,Xo=!0)),E=rc(c,H),0<E.length&&(H=new tS(H,e,null,r,d),p.push({event:H,listeners:E}),L?H.data=L:(L=zk(r),L!==null&&(H.data=L)))),(L=qI?QI(e,r):eR(e,r))&&(c=rc(c,"onBeforeInput"),0<c.length&&(d=new tS("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:c}),d.data=L))}Fk(p,t)})}function Qa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function rc(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=Va(e,r),i!=null&&o.unshift(Qa(e,i,n)),i=Va(e,t),i!=null&&o.push(Qa(e,i,n))),e=e.return}return o}function Vo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mS(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===o)break;s.tag===5&&c!==null&&(s=c,n?(l=Va(r,i),l!=null&&a.unshift(Qa(r,l,s))):n||(l=Va(r,i),l!=null&&a.push(Qa(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var pR=/\r\n?/g,fR=/\u0000|\uFFFD/g;function gS(e){return(typeof e=="string"?e:""+e).replace(pR,`
|
|
6
|
+
`).replace(fR,"")}function Ol(e,t,r){if(t=gS(t),gS(e)!==t&&r)throw Error(O(425))}function oc(){}var rf=null,of=null;function af(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 sf=typeof setTimeout=="function"?setTimeout:void 0,mR=typeof clearTimeout=="function"?clearTimeout:void 0,vS=typeof Promise=="function"?Promise:void 0,gR=typeof queueMicrotask=="function"?queueMicrotask:typeof vS<"u"?function(e){return vS.resolve(null).then(e).catch(vR)}:sf;function vR(e){setTimeout(function(){throw e})}function Pp(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),Xa(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);Xa(t)}function jr(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 yS(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 xi=Math.random().toString(36).slice(2),Vn="__reactFiber$"+xi,es="__reactProps$"+xi,pr="__reactContainer$"+xi,lf="__reactEvents$"+xi,yR="__reactListeners$"+xi,hR="__reactHandles$"+xi;function fo(e){var t=e[Vn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pr]||r[Vn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=yS(e);e!==null;){if(r=e[Vn])return r;e=yS(e)}return t}e=r,r=e.parentNode}return null}function cs(e){return e=e[Vn]||e[pr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function wc(e){return e[es]||null}var cf=[],Qo=-1;function Ur(e){return{current:e}}function Fe(e){0>Qo||(e.current=cf[Qo],cf[Qo]=null,Qo--)}function Ne(e,t){Qo++,cf[Qo]=e.current,e.current=t}var Fr={},zt=Ur(Fr),Bt=Ur(!1),ho=Fr;function pi(e,t){var r=e.type.contextTypes;if(!r)return Fr;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 Zt(e){return e=e.childContextTypes,e!=null}function ic(){Fe(Bt),Fe(zt)}function hS(e,t,r){if(zt.current!==Fr)throw Error(O(168));Ne(zt,t),Ne(Bt,r)}function Uk(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(O(108,oI(e)||"Unknown",n));return He({},r,o)}function ac(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fr,ho=zt.current,Ne(zt,e),Ne(Bt,Bt.current),!0}function xS(e,t,r){var o=e.stateNode;if(!o)throw Error(O(169));r?(e=Uk(e,t,ho),o.__reactInternalMemoizedMergedChildContext=e,Fe(Bt),Fe(zt),Ne(zt,e)):Fe(Bt),Ne(Bt,r)}var sr=null,$c=!1,zp=!1;function Mk(e){sr===null?sr=[e]:sr.push(e)}function xR(e){$c=!0,Mk(e)}function Mr(){if(!zp&&sr!==null){zp=!0;var e=0,t=Re;try{var r=sr;for(Re=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}sr=null,$c=!1}catch(n){throw sr!==null&&(sr=sr.slice(e+1)),fk(Nf,Mr),n}finally{Re=t,zp=!1}}return null}var ei=[],ti=0,sc=null,lc=0,dn=[],pn=0,xo=null,lr=1,cr="";function uo(e,t){ei[ti++]=lc,ei[ti++]=sc,sc=e,lc=t}function Bk(e,t,r){dn[pn++]=lr,dn[pn++]=cr,dn[pn++]=xo,xo=e;var o=lr;e=cr;var n=32-In(o)-1;o&=~(1<<n),r+=1;var i=32-In(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,lr=1<<32-In(t)+n|r<<n|o,cr=i+e}else lr=1<<i|r<<n|o,cr=e}function Hf(e){e.return!==null&&(uo(e,1),Bk(e,1,0))}function Vf(e){for(;e===sc;)sc=ei[--ti],ei[ti]=null,lc=ei[--ti],ei[ti]=null;for(;e===xo;)xo=dn[--pn],dn[pn]=null,cr=dn[--pn],dn[pn]=null,lr=dn[--pn],dn[pn]=null}var Qt=null,qt=null,Ue=!1,zn=null;function Zk(e,t){var r=fn(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 bS(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,Qt=e,qt=jr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qt=e,qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=xo!==null?{id:lr,overflow:cr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=fn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Qt=e,qt=null,!0):!1;default:return!1}}function uf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function df(e){if(Ue){var t=qt;if(t){var r=t;if(!bS(e,t)){if(uf(e))throw Error(O(418));t=jr(r.nextSibling);var o=Qt;t&&bS(e,t)?Zk(o,r):(e.flags=e.flags&-4097|2,Ue=!1,Qt=e)}}else{if(uf(e))throw Error(O(418));e.flags=e.flags&-4097|2,Ue=!1,Qt=e}}}function SS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qt=e}function Dl(e){if(e!==Qt)return!1;if(!Ue)return SS(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!af(e.type,e.memoizedProps)),t&&(t=qt)){if(uf(e))throw Hk(),Error(O(418));for(;t;)Zk(e,t),t=jr(t.nextSibling)}if(SS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){qt=jr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}qt=null}}else qt=Qt?jr(e.stateNode.nextSibling):null;return!0}function Hk(){for(var e=qt;e;)e=jr(e.nextSibling)}function fi(){qt=Qt=null,Ue=!1}function Jf(e){zn===null?zn=[e]:zn.push(e)}var bR=gr.ReactCurrentBatchConfig;function za(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(O(309));var o=r.stateNode}if(!o)throw Error(O(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 s=n.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!r._owner)throw Error(O(290,e))}return e}function Nl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kS(e){var t=e._init;return t(e._payload)}function Vk(e){function t(v,g){if(e){var y=v.deletions;y===null?(v.deletions=[g],v.flags|=16):y.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function o(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function n(v,g){return v=Lr(v,g),v.index=0,v.sibling=null,v}function i(v,g,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<g?(v.flags|=2,g):y):(v.flags|=2,g)):(v.flags|=1048576,g)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,g,y,S){return g===null||g.tag!==6?(g=Op(y,v.mode,S),g.return=v,g):(g=n(g,y),g.return=v,g)}function l(v,g,y,S){var w=y.type;return w===Go?d(v,g,y.props.children,S,y.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===wr&&kS(w)===g.type)?(S=n(g,y.props),S.ref=za(v,g,y),S.return=v,S):(S=Xl(y.type,y.key,y.props,null,v.mode,S),S.ref=za(v,g,y),S.return=v,S)}function c(v,g,y,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Dp(y,v.mode,S),g.return=v,g):(g=n(g,y.children||[]),g.return=v,g)}function d(v,g,y,S,w){return g===null||g.tag!==7?(g=yo(y,v.mode,S,w),g.return=v,g):(g=n(g,y),g.return=v,g)}function p(v,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Op(""+g,v.mode,y),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Sl:return y=Xl(g.type,g.key,g.props,null,v.mode,y),y.ref=za(v,null,g),y.return=v,y;case Jo:return g=Dp(g,v.mode,y),g.return=v,g;case wr:var S=g._init;return p(v,S(g._payload),y)}if(Ca(g)||_a(g))return g=yo(g,v.mode,y,null),g.return=v,g;Nl(v,g)}return null}function f(v,g,y,S){var w=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:s(v,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Sl:return y.key===w?l(v,g,y,S):null;case Jo:return y.key===w?c(v,g,y,S):null;case wr:return w=y._init,f(v,g,w(y._payload),S)}if(Ca(y)||_a(y))return w!==null?null:d(v,g,y,S,null);Nl(v,y)}return null}function m(v,g,y,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,s(g,v,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Sl:return v=v.get(S.key===null?y:S.key)||null,l(g,v,S,w);case Jo:return v=v.get(S.key===null?y:S.key)||null,c(g,v,S,w);case wr:var E=S._init;return m(v,g,y,E(S._payload),w)}if(Ca(S)||_a(S))return v=v.get(y)||null,d(g,v,S,w,null);Nl(g,S)}return null}function x(v,g,y,S){for(var w=null,E=null,L=g,H=g=0,Z=null;L!==null&&H<y.length;H++){L.index>H?(Z=L,L=null):Z=L.sibling;var j=f(v,L,y[H],S);if(j===null){L===null&&(L=Z);break}e&&L&&j.alternate===null&&t(v,L),g=i(j,g,H),E===null?w=j:E.sibling=j,E=j,L=Z}if(H===y.length)return r(v,L),Ue&&uo(v,H),w;if(L===null){for(;H<y.length;H++)L=p(v,y[H],S),L!==null&&(g=i(L,g,H),E===null?w=L:E.sibling=L,E=L);return Ue&&uo(v,H),w}for(L=o(v,L);H<y.length;H++)Z=m(L,v,H,y[H],S),Z!==null&&(e&&Z.alternate!==null&&L.delete(Z.key===null?H:Z.key),g=i(Z,g,H),E===null?w=Z:E.sibling=Z,E=Z);return e&&L.forEach(function(we){return t(v,we)}),Ue&&uo(v,H),w}function h(v,g,y,S){var w=_a(y);if(typeof w!="function")throw Error(O(150));if(y=w.call(y),y==null)throw Error(O(151));for(var E=w=null,L=g,H=g=0,Z=null,j=y.next();L!==null&&!j.done;H++,j=y.next()){L.index>H?(Z=L,L=null):Z=L.sibling;var we=f(v,L,j.value,S);if(we===null){L===null&&(L=Z);break}e&&L&&we.alternate===null&&t(v,L),g=i(we,g,H),E===null?w=we:E.sibling=we,E=we,L=Z}if(j.done)return r(v,L),Ue&&uo(v,H),w;if(L===null){for(;!j.done;H++,j=y.next())j=p(v,j.value,S),j!==null&&(g=i(j,g,H),E===null?w=j:E.sibling=j,E=j);return Ue&&uo(v,H),w}for(L=o(v,L);!j.done;H++,j=y.next())j=m(L,v,H,j.value,S),j!==null&&(e&&j.alternate!==null&&L.delete(j.key===null?H:j.key),g=i(j,g,H),E===null?w=j:E.sibling=j,E=j);return e&&L.forEach(function(W){return t(v,W)}),Ue&&uo(v,H),w}function _(v,g,y,S){if(typeof y=="object"&&y!==null&&y.type===Go&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Sl:e:{for(var w=y.key,E=g;E!==null;){if(E.key===w){if(w=y.type,w===Go){if(E.tag===7){r(v,E.sibling),g=n(E,y.props.children),g.return=v,v=g;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===wr&&kS(w)===E.type){r(v,E.sibling),g=n(E,y.props),g.ref=za(v,E,y),g.return=v,v=g;break e}r(v,E);break}else t(v,E);E=E.sibling}y.type===Go?(g=yo(y.props.children,v.mode,S,y.key),g.return=v,v=g):(S=Xl(y.type,y.key,y.props,null,v.mode,S),S.ref=za(v,g,y),S.return=v,v=S)}return a(v);case Jo:e:{for(E=y.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(v,g.sibling),g=n(g,y.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=Dp(y,v.mode,S),g.return=v,v=g}return a(v);case wr:return E=y._init,_(v,g,E(y._payload),S)}if(Ca(y))return x(v,g,y,S);if(_a(y))return h(v,g,y,S);Nl(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(v,g.sibling),g=n(g,y),g.return=v,v=g):(r(v,g),g=Op(y,v.mode,S),g.return=v,v=g),a(v)):r(v,g)}return _}var mi=Vk(!0),Jk=Vk(!1),cc=Ur(null),uc=null,ni=null,Gf=null;function Xf(){Gf=ni=uc=null}function Kf(e){var t=cc.current;Fe(cc),e._currentValue=t}function pf(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 ci(e,t){uc=e,Gf=ni=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Mt=!0),e.firstContext=null)}function gn(e){var t=e._currentValue;if(Gf!==e)if(e={context:e,memoizedValue:t,next:null},ni===null){if(uc===null)throw Error(O(308));ni=e,uc.dependencies={lanes:0,firstContext:e}}else ni=ni.next=e;return t}var mo=null;function Yf(e){mo===null?mo=[e]:mo.push(e)}function Gk(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,Yf(t)):(r.next=n.next,n.next=r),t.interleaved=r,fr(e,o)}function fr(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 $r=!1;function qf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xk(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 ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Or(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(_e&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,fr(e,r)}return n=o.interleaved,n===null?(t.next=t,Yf(o)):(t.next=n.next,n.next=t),o.interleaved=t,fr(e,r)}function Bl(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,Lf(e,r)}}function _S(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 dc(e,t,r,o){var n=e.updateQueue;$r=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var p=n.baseState;a=0,d=c=l=null,s=i;do{var f=s.lane,m=s.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,h=s;switch(f=t,m=r,h.tag){case 1:if(x=h.payload,typeof x=="function"){p=x.call(m,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=h.payload,f=typeof x=="function"?x.call(m,p,f):x,f==null)break e;p=He({},p,f);break e;case 2:$r=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[s]:f.push(s))}else m={eventTime:m,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=m,l=p):d=d.next=m,a|=f;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;f=s,s=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(l=p),n.baseState=l,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);So|=a,e.lanes=a,e.memoizedState=p}}function wS(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(O(191,n));n.call(o)}}}var us={},Gn=Ur(us),ts=Ur(us),ns=Ur(us);function go(e){if(e===us)throw Error(O(174));return e}function Qf(e,t){switch(Ne(ns,t),Ne(ts,e),Ne(Gn,us),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hp(t,e)}Fe(Gn),Ne(Gn,t)}function gi(){Fe(Gn),Fe(ts),Fe(ns)}function Kk(e){go(ns.current);var t=go(Gn.current),r=Hp(t,e.type);t!==r&&(Ne(ts,e),Ne(Gn,r))}function em(e){ts.current===e&&(Fe(Gn),Fe(ts))}var Be=Ur(0);function pc(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 Ip=[];function tm(){for(var e=0;e<Ip.length;e++)Ip[e]._workInProgressVersionPrimary=null;Ip.length=0}var Zl=gr.ReactCurrentDispatcher,Rp=gr.ReactCurrentBatchConfig,bo=0,Ze=null,at=null,pt=null,fc=!1,Wa=!1,rs=0,SR=0;function wt(){throw Error(O(321))}function nm(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!En(e[r],t[r]))return!1;return!0}function rm(e,t,r,o,n,i){if(bo=i,Ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zl.current=e===null||e.memoizedState===null?$R:PR,e=r(o,n),Wa){i=0;do{if(Wa=!1,rs=0,25<=i)throw Error(O(301));i+=1,pt=at=null,t.updateQueue=null,Zl.current=zR,e=r(o,n)}while(Wa)}if(Zl.current=mc,t=at!==null&&at.next!==null,bo=0,pt=at=Ze=null,fc=!1,t)throw Error(O(300));return e}function om(){var e=rs!==0;return rs=0,e}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ze.memoizedState=pt=e:pt=pt.next=e,pt}function vn(){if(at===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=pt===null?Ze.memoizedState:pt.next;if(t!==null)pt=t,at=e;else{if(e===null)throw Error(O(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},pt===null?Ze.memoizedState=pt=e:pt=pt.next=e}return pt}function os(e,t){return typeof t=="function"?t(e):t}function Ep(e){var t=vn(),r=t.queue;if(r===null)throw Error(O(311));r.lastRenderedReducer=e;var o=at,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 s=a=null,l=null,c=i;do{var d=c.lane;if((bo&d)===d)l!==null&&(l=l.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};l===null?(s=l=p,a=o):l=l.next=p,Ze.lanes|=d,So|=d}c=c.next}while(c!==null&&c!==i);l===null?a=o:l.next=s,En(o,t.memoizedState)||(Mt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=l,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Ze.lanes|=i,So|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Tp(e){var t=vn(),r=t.queue;if(r===null)throw Error(O(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);En(i,t.memoizedState)||(Mt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Yk(){}function qk(e,t){var r=Ze,o=vn(),n=t(),i=!En(o.memoizedState,n);if(i&&(o.memoizedState=n,Mt=!0),o=o.queue,im(t_.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,is(9,e_.bind(null,r,o,n,t),void 0,null),ft===null)throw Error(O(349));(bo&30)!==0||Qk(r,t,n)}return n}function Qk(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function e_(e,t,r,o){t.value=r,t.getSnapshot=o,n_(t)&&r_(e)}function t_(e,t,r){return r(function(){n_(t)&&r_(e)})}function n_(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!En(e,r)}catch{return!0}}function r_(e){var t=fr(e,1);t!==null&&Rn(t,e,1,-1)}function $S(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:os,lastRenderedState:e},t.queue=e,e=e.dispatch=wR.bind(null,Ze,e),[t.memoizedState,e]}function is(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.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 o_(){return vn().memoizedState}function Hl(e,t,r,o){var n=Hn();Ze.flags|=e,n.memoizedState=is(1|t,r,void 0,o===void 0?null:o)}function Pc(e,t,r,o){var n=vn();o=o===void 0?null:o;var i=void 0;if(at!==null){var a=at.memoizedState;if(i=a.destroy,o!==null&&nm(o,a.deps)){n.memoizedState=is(t,r,i,o);return}}Ze.flags|=e,n.memoizedState=is(1|t,r,i,o)}function PS(e,t){return Hl(8390656,8,e,t)}function im(e,t){return Pc(2048,8,e,t)}function i_(e,t){return Pc(4,2,e,t)}function a_(e,t){return Pc(4,4,e,t)}function s_(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 l_(e,t,r){return r=r!=null?r.concat([e]):null,Pc(4,4,s_.bind(null,t,e),r)}function am(){}function c_(e,t){var r=vn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&nm(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function u_(e,t){var r=vn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&nm(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function d_(e,t,r){return(bo&21)===0?(e.baseState&&(e.baseState=!1,Mt=!0),e.memoizedState=r):(En(r,t)||(r=vk(),Ze.lanes|=r,So|=r,e.baseState=!0),t)}function kR(e,t){var r=Re;Re=r!==0&&4>r?r:4,e(!0);var o=Rp.transition;Rp.transition={};try{e(!1),t()}finally{Re=r,Rp.transition=o}}function p_(){return vn().memoizedState}function _R(e,t,r){var o=Nr(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},f_(e))m_(t,r);else if(r=Gk(e,t,r,o),r!==null){var n=jt();Rn(r,e,o,n),g_(r,t,o)}}function wR(e,t,r){var o=Nr(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(f_(e))m_(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,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,En(s,a)){var l=t.interleaved;l===null?(n.next=n,Yf(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}r=Gk(e,t,n,o),r!==null&&(n=jt(),Rn(r,e,o,n),g_(r,t,o))}}function f_(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function m_(e,t){Wa=fc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function g_(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Lf(e,r)}}var mc={readContext:gn,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},$R={readContext:gn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:gn,useEffect:PS,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Hl(4194308,4,s_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hl(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=_R.bind(null,Ze,e),[o.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:$S,useDebugValue:am,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=$S(!1),t=e[0];return e=kR.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Ze,n=Hn();if(Ue){if(r===void 0)throw Error(O(407));r=r()}else{if(r=t(),ft===null)throw Error(O(349));(bo&30)!==0||Qk(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,PS(t_.bind(null,o,i,e),[e]),o.flags|=2048,is(9,e_.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Hn(),t=ft.identifierPrefix;if(Ue){var r=cr,o=lr;r=(o&~(1<<32-In(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=rs++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=SR++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},PR={readContext:gn,useCallback:c_,useContext:gn,useEffect:im,useImperativeHandle:l_,useInsertionEffect:i_,useLayoutEffect:a_,useMemo:u_,useReducer:Ep,useRef:o_,useState:function(){return Ep(os)},useDebugValue:am,useDeferredValue:function(e){var t=vn();return d_(t,at.memoizedState,e)},useTransition:function(){var e=Ep(os)[0],t=vn().memoizedState;return[e,t]},useMutableSource:Yk,useSyncExternalStore:qk,useId:p_,unstable_isNewReconciler:!1},zR={readContext:gn,useCallback:c_,useContext:gn,useEffect:im,useImperativeHandle:l_,useInsertionEffect:i_,useLayoutEffect:a_,useMemo:u_,useReducer:Tp,useRef:o_,useState:function(){return Tp(os)},useDebugValue:am,useDeferredValue:function(e){var t=vn();return at===null?t.memoizedState=e:d_(t,at.memoizedState,e)},useTransition:function(){var e=Tp(os)[0],t=vn().memoizedState;return[e,t]},useMutableSource:Yk,useSyncExternalStore:qk,useId:p_,unstable_isNewReconciler:!1};function $n(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function ff(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var zc={isMounted:function(e){return(e=e._reactInternals)?wo(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=jt(),n=Nr(e),i=ur(o,n);i.payload=t,r!=null&&(i.callback=r),t=Or(e,i,n),t!==null&&(Rn(t,e,n,o),Bl(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=jt(),n=Nr(e),i=ur(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Or(e,i,n),t!==null&&(Rn(t,e,n,o),Bl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=jt(),o=Nr(e),n=ur(r,o);n.tag=2,t!=null&&(n.callback=t),t=Or(e,n,o),t!==null&&(Rn(t,e,o,r),Bl(t,e,o))}};function zS(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?!Ya(r,o)||!Ya(n,i):!0}function v_(e,t,r){var o=!1,n=Fr,i=t.contextType;return typeof i=="object"&&i!==null?i=gn(i):(n=Zt(t)?ho:zt.current,o=t.contextTypes,i=(o=o!=null)?pi(e,n):Fr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zc,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function IS(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&&zc.enqueueReplaceState(t,t.state,null)}function mf(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},qf(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=gn(i):(i=Zt(t)?ho:zt.current,n.context=pi(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ff(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&&zc.enqueueReplaceState(n,n.state,null),dc(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function vi(e,t){try{var r="",o=t;do r+=rI(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 Ep(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ff(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var wR=typeof WeakMap=="function"?WeakMap:Map;function g_(e,t,r){r=ur(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){mc||(mc=!0,_f=o),ff(e,t)},r}function v_(e,t,r){r=ur(-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(){ff(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ff(e,t),typeof o!="function"&&(Or===null?Or=new Set([this]):Or.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function zS(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new wR;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=AR.bind(null,e,t,r),t.then(e,e))}function IS(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 RS(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=ur(-1,1),t.tag=2,jr(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var $R=gr.ReactCurrentOwner,Mt=!1;function Ct(e,t,r,o){t.child=e===null?Hk(t,null,r,o):fi(t,e.child,r,o)}function ES(e,t,r,o,n){r=r.render;var i=t.ref;return li(t,n),o=tm(e,t,r,o,i,n),r=nm(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,mr(e,t,n)):(Ue&&r&&Bf(t),t.flags|=1,Ct(e,t,o,n),t.child)}function TS(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!pm(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,y_(e,t,i,o,n)):(e=Jl(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:Ka,r(a,o)&&e.ref===t.ref)return mr(e,t,n)}return t.flags|=1,e=Nr(i,o),e.ref=t.ref,e.return=t,t.child=e}function y_(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(Ka(i,o)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,mr(e,t,n)}return mf(e,t,r,o,n)}function h_(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},Ne(ri,Yt),Yt|=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,Ne(ri,Yt),Yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Ne(ri,Yt),Yt|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Ne(ri,Yt),Yt|=o;return Ct(e,t,n,r),t.child}function x_(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function mf(e,t,r,o,n){var i=Zt(r)?yo:zt.current;return i=di(t,i),li(t,n),r=tm(e,t,r,o,i,n),o=nm(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,mr(e,t,n)):(Ue&&o&&Bf(t),t.flags|=1,Ct(e,t,r,n),t.child)}function CS(e,t,r,o,n){if(Zt(r)){var i=!0;oc(t)}else i=!1;if(li(t,n),t.stateNode===null)Zl(e,t),m_(t,r,o),pf(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=gn(c):(c=Zt(r)?yo:zt.current,c=di(t,c));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==o||l!==c)&&PS(t,a,o,c),wr=!1;var f=t.memoizedState;a.state=f,cc(t,o,a,n),l=t.memoizedState,s!==o||f!==l||Bt.current||wr?(typeof d=="function"&&(df(t,r,d,o),l=t.memoizedState),(s=wr||$S(t,r,s,o,f,l,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=l),a.props=o,a.state=l,a.context=c,o=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,Jk(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:$n(t.type,s),a.props=c,p=t.pendingProps,f=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=gn(l):(l=Zt(r)?yo:zt.current,l=di(t,l));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||f!==l)&&PS(t,a,o,l),wr=!1,f=t.memoizedState,a.state=f,cc(t,o,a,n);var x=t.memoizedState;s!==p||f!==x||Bt.current||wr?(typeof m=="function"&&(df(t,r,m,o),x=t.memoizedState),(c=wr||$S(t,r,c,o,f,x,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=l,o=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return gf(e,t,r,o,i,n)}function gf(e,t,r,o,n,i){x_(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&yS(t,r,!1),mr(e,t,i);o=t.stateNode,$R.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=fi(t,e.child,null,i),t.child=fi(t,null,s,i)):Ct(e,t,s,i),t.memoizedState=o.state,n&&yS(t,r,!0),t.child}function b_(e){var t=e.stateNode;t.pendingContext?vS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vS(e,t.context,!1),Yf(e,t.containerInfo)}function jS(e,t,r,o,n){return pi(),Hf(n),t.flags|=256,Ct(e,t,r,o),t.child}var vf={dehydrated:null,treeContext:null,retryLane:0};function yf(e){return{baseLanes:e,cachePool:null,transitions:null}}function S_(e,t,r){var o=t.pendingProps,n=Be.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Ne(Be,n&1),e===null)return cf(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=Ic(a,o,0,null),e=vo(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=yf(r),t.memoizedState=vf,e):im(t,a));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return PR(e,t,a,o,s,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,s=n.sibling;var l={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=Nr(n,l),o.subtreeFlags=n.subtreeFlags&14680064),s!==null?i=Nr(s,i):(i=vo(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?yf(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=vf,o}return i=e.child,e=i.sibling,o=Nr(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 im(e,t){return t=Ic({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dl(e,t,r,o){return o!==null&&Hf(o),fi(t,e.child,null,r),e=im(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function PR(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=Ep(Error(O(422))),Dl(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=Ic({mode:"visible",children:o.children},n,0,null),i=vo(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&fi(t,e.child,null,a),t.child.memoizedState=yf(a),t.memoizedState=vf,i);if((t.mode&1)===0)return Dl(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var s=o.dgst;return o=s,i=Error(O(419)),o=Ep(i,o,void 0),Dl(e,t,a,o)}if(s=(a&e.childLanes)!==0,Mt||s){if(o=ft,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,fr(e,n),Rn(o,e,n,-1))}return dm(),o=Ep(Error(O(421))),Dl(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=FR.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,qt=Cr(n.nextSibling),Qt=t,Ue=!0,zn=null,e!==null&&(dn[pn++]=lr,dn[pn++]=cr,dn[pn++]=ho,lr=e.id,cr=e.overflow,ho=t),t=im(t,o.children),t.flags|=4096,t)}function OS(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),uf(e.return,t,r)}function Tp(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 k_(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(Ct(e,t,o.children,r),o=Be.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&&OS(e,r,t);else if(e.tag===19)OS(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(Ne(Be,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&&uc(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),Tp(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&&uc(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}Tp(t,!0,r,null,i);break;case"together":Tp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),bo|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,r=Nr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Nr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function zR(e,t,r){switch(t.tag){case 3:b_(t),pi();break;case 5:Gk(t);break;case 1:Zt(t.type)&&oc(t);break;case 4:Yf(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;Ne(sc,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ne(Be,Be.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?S_(e,t,r):(Ne(Be,Be.current&1),e=mr(e,t,r),e!==null?e.sibling:null);Ne(Be,Be.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return k_(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ne(Be,Be.current),o)break;return null;case 22:case 23:return t.lanes=0,h_(e,t,r)}return mr(e,t,r)}var __,hf,w_,$_;__=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}};hf=function(){};w_=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,mo(Gn.current);var i=null;switch(r){case"input":n=Fp(e,n),o=Fp(e,o),i=[];break;case"select":n=He({},n,{value:void 0}),o=He({},o,{value:void 0}),i=[];break;case"textarea":n=Mp(e,n),o=Mp(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=nc)}Zp(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var s=n[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ba.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(s=n?.[c],o.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ba.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ae("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};$_=function(e,t,r,o){r!==o&&(t.flags|=4)};function za(e,t){if(!Ue)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 $t(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 IR(e,t,r){var o=t.pendingProps;switch(Zf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(t),null;case 1:return Zt(t.type)&&rc(),$t(t),null;case 3:return o=t.stateNode,mi(),Fe(Bt),Fe(zt),Qf(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(jl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zn!==null&&(Pf(zn),zn=null))),hf(e,t),$t(t),null;case 5:qf(t);var n=mo(ts.current);if(r=t.type,e!==null&&t.stateNode!=null)w_(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(O(166));return $t(t),null}if(e=mo(Gn.current),jl(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Vn]=t,o[Qa]=i,e=(t.mode&1)!==0,r){case"dialog":Ae("cancel",o),Ae("close",o);break;case"iframe":case"object":case"embed":Ae("load",o);break;case"video":case"audio":for(n=0;n<ja.length;n++)Ae(ja[n],o);break;case"source":Ae("error",o);break;case"img":case"image":case"link":Ae("error",o),Ae("load",o);break;case"details":Ae("toggle",o);break;case"input":Mb(o,i),Ae("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Ae("invalid",o);break;case"textarea":Zb(o,i),Ae("invalid",o)}Zp(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?o.textContent!==s&&(i.suppressHydrationWarning!==!0&&Cl(o.textContent,s,e),n=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Cl(o.textContent,s,e),n=["children",""+s]):Ba.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ae("scroll",o)}switch(r){case"input":bl(o),Bb(o,i,!0);break;case"textarea":bl(o),Hb(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=nc)}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=QS(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[Vn]=t,e[Qa]=o,__(e,t,!1,!1),t.stateNode=e;e:{switch(a=Hp(r,o),r){case"dialog":Ae("cancel",e),Ae("close",e),n=o;break;case"iframe":case"object":case"embed":Ae("load",e),n=o;break;case"video":case"audio":for(n=0;n<ja.length;n++)Ae(ja[n],e);n=o;break;case"source":Ae("error",e),n=o;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),n=o;break;case"details":Ae("toggle",e),n=o;break;case"input":Mb(e,o),n=Fp(e,o),Ae("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=He({},o,{value:void 0}),Ae("invalid",e);break;case"textarea":Zb(e,o),n=Mp(e,o),Ae("invalid",e);break;default:n=o}Zp(r,n),s=n;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?nk(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ek(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Za(e,l):typeof l=="number"&&Za(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ba.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ae("scroll",e):l!=null&&Rf(e,i,l,a))}switch(r){case"input":bl(e),Bb(e,o,!1);break;case"textarea":bl(e),Hb(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Lr(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?oi(e,!!o.multiple,i,!1):o.defaultValue!=null&&oi(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=nc)}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 $t(t),null;case 6:if(e&&t.stateNode!=null)$_(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(O(166));if(r=mo(ts.current),mo(Gn.current),jl(t)){if(o=t.stateNode,r=t.memoizedProps,o[Vn]=t,(i=o.nodeValue!==r)&&(e=Qt,e!==null))switch(e.tag){case 3:Cl(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cl(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Vn]=t,t.stateNode=o}return $t(t),null;case 13:if(Fe(Be),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&qt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Bk(),pi(),t.flags|=98560,i=!1;else if(i=jl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Vn]=t}else pi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$t(t),i=!1}else zn!==null&&(Pf(zn),zn=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||(Be.current&1)!==0?st===0&&(st=3):dm())),t.updateQueue!==null&&(t.flags|=4),$t(t),null);case 4:return mi(),hf(e,t),e===null&&Ya(t.stateNode.containerInfo),$t(t),null;case 10:return Gf(t.type._context),$t(t),null;case 17:return Zt(t.type)&&rc(),$t(t),null;case 19:if(Fe(Be),i=t.memoizedState,i===null)return $t(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)za(i,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=uc(e),a!==null){for(t.flags|=128,za(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 Ne(Be,Be.current&1|2),t.child}e=e.sibling}i.tail!==null&&qe()>vi&&(t.flags|=128,o=!0,za(i,!1),t.lanes=4194304)}else{if(!o)if(e=uc(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),za(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ue)return $t(t),null}else 2*qe()-i.renderingStartTime>vi&&r!==1073741824&&(t.flags|=128,o=!0,za(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=qe(),t.sibling=null,r=Be.current,Ne(Be,o?r&1|2:r&1),t):($t(t),null);case 22:case 23:return um(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Yt&1073741824)!==0&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function RR(e,t){switch(Zf(t),t.tag){case 1:return Zt(t.type)&&rc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mi(),Fe(Bt),Fe(zt),Qf(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return qf(t),null;case 13:if(Fe(Be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(Be),null;case 4:return mi(),null;case 10:return Gf(t.type._context),null;case 22:case 23:return um(),null;case 24:return null;default:return null}}var Nl=!1,Pt=!1,ER=typeof WeakSet=="function"?WeakSet:Set,J=null;function ni(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Ge(e,t,o)}else r.current=null}function xf(e,t,r){try{r()}catch(o){Ge(e,t,o)}}var DS=!1;function TR(e,t){if(tf=Ql,e=Ek(),Mf(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,s=-1,l=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==r||n!==0&&p.nodeType!==3||(s=a+n),p!==i||o!==0&&p.nodeType!==3||(l=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(m=p.firstChild)!==null;)f=p,p=m;for(;;){if(p===e)break t;if(f===r&&++c===n&&(s=a),f===i&&++d===o&&(l=a),(m=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(nf={focusedElem:e,selectionRange:r},Ql=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;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 h=x.memoizedProps,_=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:$n(t.type,h),_);v.__reactInternalSnapshotBeforeUpdate=g}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(O(163))}}catch(S){Ge(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=DS,DS=!1,x}function Wa(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&&xf(t,r,i)}n=n.next}while(n!==o)}}function Pc(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 bf(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 P_(e){var t=e.alternate;t!==null&&(e.alternate=null,P_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vn],delete t[Qa],delete t[af],delete t[fR],delete t[mR])),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 z_(e){return e.tag===5||e.tag===3||e.tag===4}function NS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z_(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 Sf(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=nc));else if(o!==4&&(e=e.child,e!==null))for(Sf(e,t,r),e=e.sibling;e!==null;)Sf(e,t,r),e=e.sibling}function kf(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(kf(e,t,r),e=e.sibling;e!==null;)kf(e,t,r),e=e.sibling}var mt=null,Pn=!1;function kr(e,t,r){for(r=r.child;r!==null;)I_(e,t,r),r=r.sibling}function I_(e,t,r){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(hc,r)}catch{}switch(r.tag){case 5:Pt||ni(r,t);case 6:var o=mt,n=Pn;mt=null,kr(e,t,r),mt=o,Pn=n,mt!==null&&(Pn?(e=mt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):mt.removeChild(r.stateNode));break;case 18:mt!==null&&(Pn?(e=mt,r=r.stateNode,e.nodeType===8?wp(e.parentNode,r):e.nodeType===1&&wp(e,r),Ga(e)):wp(mt,r.stateNode));break;case 4:o=mt,n=Pn,mt=r.stateNode.containerInfo,Pn=!0,kr(e,t,r),mt=o,Pn=n;break;case 0:case 11:case 14:case 15:if(!Pt&&(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)&&xf(r,t,a),n=n.next}while(n!==o)}kr(e,t,r);break;case 1:if(!Pt&&(ni(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){Ge(r,t,s)}kr(e,t,r);break;case 21:kr(e,t,r);break;case 22:r.mode&1?(Pt=(o=Pt)||r.memoizedState!==null,kr(e,t,r),Pt=o):kr(e,t,r);break;default:kr(e,t,r)}}function LS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new ER),t.forEach(function(o){var n=WR.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function wn(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,s=a;e:for(;s!==null;){switch(s.tag){case 5:mt=s.stateNode,Pn=!1;break e;case 3:mt=s.stateNode.containerInfo,Pn=!0;break e;case 4:mt=s.stateNode.containerInfo,Pn=!0;break e}s=s.return}if(mt===null)throw Error(O(160));I_(i,a,n),mt=null,Pn=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){Ge(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)R_(t,e),t=t.sibling}function R_(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wn(t,e),Zn(e),o&4){try{Wa(3,e,e.return),Pc(3,e)}catch(h){Ge(e,e.return,h)}try{Wa(5,e,e.return)}catch(h){Ge(e,e.return,h)}}break;case 1:wn(t,e),Zn(e),o&512&&r!==null&&ni(r,r.return);break;case 5:if(wn(t,e),Zn(e),o&512&&r!==null&&ni(r,r.return),e.flags&32){var n=e.stateNode;try{Za(n,"")}catch(h){Ge(e,e.return,h)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&YS(n,i),Hp(s,a);var c=Hp(s,i);for(a=0;a<l.length;a+=2){var d=l[a],p=l[a+1];d==="style"?nk(n,p):d==="dangerouslySetInnerHTML"?ek(n,p):d==="children"?Za(n,p):Rf(n,d,p,c)}switch(s){case"input":Wp(n,i);break;case"textarea":qS(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?oi(n,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?oi(n,!!i.multiple,i.defaultValue,!0):oi(n,!!i.multiple,i.multiple?[]:"",!1))}n[Qa]=i}catch(h){Ge(e,e.return,h)}}break;case 6:if(wn(t,e),Zn(e),o&4){if(e.stateNode===null)throw Error(O(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(h){Ge(e,e.return,h)}}break;case 3:if(wn(t,e),Zn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Ga(t.containerInfo)}catch(h){Ge(e,e.return,h)}break;case 4:wn(t,e),Zn(e);break;case 13:wn(t,e),Zn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(lm=qe())),o&4&&LS(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Pt=(c=Pt)||d,wn(t,e),Pt=c):wn(t,e),Zn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(J=e,d=e.child;d!==null;){for(p=J=d;J!==null;){switch(f=J,m=f.child,f.tag){case 0:case 11:case 14:case 15:Wa(4,f,f.return);break;case 1:ni(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(h){Ge(o,r,h)}}break;case 5:ni(f,f.return);break;case 22:if(f.memoizedState!==null){FS(p);continue}}m!==null?(m.return=f,J=m):FS(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"):(s=p.stateNode,l=p.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=tk("display",a))}catch(h){Ge(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(h){Ge(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:wn(t,e),Zn(e),o&4&&LS(e);break;case 21:break;default:wn(t,e),Zn(e)}}function Zn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(z_(r)){var o=r;break e}r=r.return}throw Error(O(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(Za(n,""),o.flags&=-33);var i=NS(e);kf(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,s=NS(e);Sf(e,s,a);break;default:throw Error(O(161))}}catch(l){Ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function CR(e,t,r){J=e,E_(e,t,r)}function E_(e,t,r){for(var o=(e.mode&1)!==0;J!==null;){var n=J,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||Nl;if(!a){var s=n.alternate,l=s!==null&&s.memoizedState!==null||Pt;s=Nl;var c=Pt;if(Nl=a,(Pt=l)&&!c)for(J=n;J!==null;)a=J,l=a.child,a.tag===22&&a.memoizedState!==null?WS(n):l!==null?(l.return=a,J=l):WS(n);for(;i!==null;)J=i,E_(i,t,r),i=i.sibling;J=n,Nl=s,Pt=c}AS(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,J=i):AS(e,t,r)}}function AS(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Pt||Pc(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Pt)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:$n(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&kS(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}kS(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.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&&Ga(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Pt||t.flags&512&&bf(t)}catch(f){Ge(t,t.return,f)}}if(t===e){J=null;break}if(r=t.sibling,r!==null){r.return=t.return,J=r;break}J=t.return}}function FS(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var r=t.sibling;if(r!==null){r.return=t.return,J=r;break}J=t.return}}function WS(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Pc(4,t)}catch(l){Ge(t,r,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(l){Ge(t,n,l)}}var i=t.return;try{bf(t)}catch(l){Ge(t,i,l)}break;case 5:var a=t.return;try{bf(t)}catch(l){Ge(t,a,l)}}}catch(l){Ge(t,t.return,l)}if(t===e){J=null;break}var s=t.sibling;if(s!==null){s.return=t.return,J=s;break}J=t.return}}var jR=Math.ceil,fc=gr.ReactCurrentDispatcher,am=gr.ReactCurrentOwner,mn=gr.ReactCurrentBatchConfig,_e=0,ft=null,et=null,gt=0,Yt=0,ri=Wr(0),st=0,is=null,bo=0,zc=0,sm=0,Ua=null,Ut=null,lm=0,vi=1/0,ar=null,mc=!1,_f=null,Or=null,Ll=!1,Ir=null,gc=0,Ma=0,wf=null,Hl=-1,Vl=0;function jt(){return(_e&6)!==0?qe():Hl!==-1?Hl:Hl=qe()}function Dr(e){return(e.mode&1)===0?1:(_e&2)!==0&>!==0?gt&-gt:vR.transition!==null?(Vl===0&&(Vl=mk()),Vl):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:Sk(e.type)),e)}function Rn(e,t,r,o){if(50<Ma)throw Ma=0,wf=null,Error(O(185));as(e,r,o),((_e&2)===0||e!==ft)&&(e===ft&&((_e&2)===0&&(zc|=r),st===4&&Pr(e,gt)),Ht(e,o),r===1&&_e===0&&(t.mode&1)===0&&(vi=qe()+500,_c&&Ur()))}function Ht(e,t){var r=e.callbackNode;hI(e,t);var o=ql(e,e===ft?gt:0);if(o===0)r!==null&&Gb(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Gb(r),t===1)e.tag===0?gR(US.bind(null,e)):Wk(US.bind(null,e)),dR(function(){(_e&6)===0&&Ur()}),r=null;else{switch(gk(o)){case 1:r=Of;break;case 4:r=pk;break;case 16:r=Yl;break;case 536870912:r=fk;break;default:r=Yl}r=A_(r,T_.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function T_(e,t){if(Hl=-1,Vl=0,(_e&6)!==0)throw Error(O(327));var r=e.callbackNode;if(ci()&&e.callbackNode!==r)return null;var o=ql(e,e===ft?gt:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=vc(e,o);else{t=o;var n=_e;_e|=2;var i=j_();(ft!==e||gt!==t)&&(ar=null,vi=qe()+500,go(e,t));do try{NR();break}catch(s){C_(e,s)}while(!0);Jf(),fc.current=i,_e=n,et!==null?t=0:(ft=null,gt=0,t=st)}if(t!==0){if(t===2&&(n=Kp(e),n!==0&&(o=n,t=$f(e,n))),t===1)throw r=is,go(e,0),Pr(e,o),Ht(e,qe()),r;if(t===6)Pr(e,o);else{if(n=e.current.alternate,(o&30)===0&&!OR(n)&&(t=vc(e,o),t===2&&(i=Kp(e),i!==0&&(o=i,t=$f(e,i))),t===1))throw r=is,go(e,0),Pr(e,o),Ht(e,qe()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(O(345));case 2:uo(e,Ut,ar);break;case 3:if(Pr(e,o),(o&130023424)===o&&(t=lm+500-qe(),10<t)){if(ql(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){jt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=of(uo.bind(null,e,Ut,ar),t);break}uo(e,Ut,ar);break;case 4:if(Pr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-In(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=qe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*jR(o/1960))-o,10<o){e.timeoutHandle=of(uo.bind(null,e,Ut,ar),o);break}uo(e,Ut,ar);break;case 5:uo(e,Ut,ar);break;default:throw Error(O(329))}}}return Ht(e,qe()),e.callbackNode===r?T_.bind(null,e):null}function $f(e,t){var r=Ua;return e.current.memoizedState.isDehydrated&&(go(e,t).flags|=256),e=vc(e,t),e!==2&&(t=Ut,Ut=r,t!==null&&Pf(t)),e}function Pf(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function OR(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(!En(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 Pr(e,t){for(t&=~sm,t&=~zc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-In(t),o=1<<r;e[r]=-1,t&=~o}}function US(e){if((_e&6)!==0)throw Error(O(327));ci();var t=ql(e,0);if((t&1)===0)return Ht(e,qe()),null;var r=vc(e,t);if(e.tag!==0&&r===2){var o=Kp(e);o!==0&&(t=o,r=$f(e,o))}if(r===1)throw r=is,go(e,0),Pr(e,t),Ht(e,qe()),r;if(r===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uo(e,Ut,ar),Ht(e,qe()),null}function cm(e,t){var r=_e;_e|=1;try{return e(t)}finally{_e=r,_e===0&&(vi=qe()+500,_c&&Ur())}}function So(e){Ir!==null&&Ir.tag===0&&(_e&6)===0&&ci();var t=_e;_e|=1;var r=mn.transition,o=Ie;try{if(mn.transition=null,Ie=1,e)return e()}finally{Ie=o,mn.transition=r,_e=t,(_e&6)===0&&Ur()}}function um(){Yt=ri.current,Fe(ri)}function go(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,uR(r)),et!==null)for(r=et.return;r!==null;){var o=r;switch(Zf(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&rc();break;case 3:mi(),Fe(Bt),Fe(zt),Qf();break;case 5:qf(o);break;case 4:mi();break;case 13:Fe(Be);break;case 19:Fe(Be);break;case 10:Gf(o.type._context);break;case 22:case 23:um()}r=r.return}if(ft=e,et=e=Nr(e.current,null),gt=Yt=t,st=0,is=null,sm=zc=bo=0,Ut=Ua=null,fo!==null){for(t=0;t<fo.length;t++)if(r=fo[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}fo=null}return e}function C_(e,t){do{var r=et;try{if(Jf(),Ml.current=pc,dc){for(var o=Ze.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}dc=!1}if(xo=0,pt=at=Ze=null,Fa=!1,ns=0,am.current=null,r===null||r.return===null){st=1,is=t,et=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=gt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=s,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 m=IS(a);if(m!==null){m.flags&=-257,RS(m,a,s,i,t),m.mode&1&&zS(i,c,t),t=m,l=c;var x=t.updateQueue;if(x===null){var h=new Set;h.add(l),t.updateQueue=h}else x.add(l);break e}else{if((t&1)===0){zS(i,c,t),dm();break e}l=Error(O(426))}}else if(Ue&&s.mode&1){var _=IS(a);if(_!==null){(_.flags&65536)===0&&(_.flags|=256),RS(_,a,s,i,t),Hf(gi(l,s));break e}}i=l=gi(l,s),st!==4&&(st=2),Ua===null?Ua=[i]:Ua.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=g_(i,l,t);SS(i,v);break e;case 1:s=l;var g=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Or===null||!Or.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=v_(i,s,t);SS(i,S);break e}}i=i.return}while(i!==null)}D_(r)}catch(w){t=w,et===r&&r!==null&&(et=r=r.return);continue}break}while(!0)}function j_(){var e=fc.current;return fc.current=pc,e===null?pc:e}function dm(){(st===0||st===3||st===2)&&(st=4),ft===null||(bo&268435455)===0&&(zc&268435455)===0||Pr(ft,gt)}function vc(e,t){var r=_e;_e|=2;var o=j_();(ft!==e||gt!==t)&&(ar=null,go(e,t));do try{DR();break}catch(n){C_(e,n)}while(!0);if(Jf(),_e=r,fc.current=o,et!==null)throw Error(O(261));return ft=null,gt=0,st}function DR(){for(;et!==null;)O_(et)}function NR(){for(;et!==null&&!cI();)O_(et)}function O_(e){var t=L_(e.alternate,e,Yt);e.memoizedProps=e.pendingProps,t===null?D_(e):et=t,am.current=null}function D_(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=IR(r,t,Yt),r!==null){et=r;return}}else{if(r=RR(r,t),r!==null){r.flags&=32767,et=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{st=6,et=null;return}}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);st===0&&(st=5)}function uo(e,t,r){var o=Ie,n=mn.transition;try{mn.transition=null,Ie=1,LR(e,t,r,o)}finally{mn.transition=n,Ie=o}return null}function LR(e,t,r,o){do ci();while(Ir!==null);if((_e&6)!==0)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(xI(e,i),e===ft&&(et=ft=null,gt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ll||(Ll=!0,A_(Yl,function(){return ci(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=mn.transition,mn.transition=null;var a=Ie;Ie=1;var s=_e;_e|=4,am.current=null,TR(e,r),R_(r,e),iR(nf),Ql=!!tf,nf=tf=null,e.current=r,CR(r,e,n),uI(),_e=s,Ie=a,mn.transition=i}else e.current=r;if(Ll&&(Ll=!1,Ir=e,gc=n),i=e.pendingLanes,i===0&&(Or=null),fI(r.stateNode,o),Ht(e,qe()),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(mc)throw mc=!1,e=_f,_f=null,e;return(gc&1)!==0&&e.tag!==0&&ci(),i=e.pendingLanes,(i&1)!==0?e===wf?Ma++:(Ma=0,wf=e):Ma=0,Ur(),null}function ci(){if(Ir!==null){var e=gk(gc),t=mn.transition,r=Ie;try{if(mn.transition=null,Ie=16>e?16:e,Ir===null)var o=!1;else{if(e=Ir,Ir=null,gc=0,(_e&6)!==0)throw Error(O(331));var n=_e;for(_e|=4,J=e.current;J!==null;){var i=J,a=i.child;if((J.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(J=c;J!==null;){var d=J;switch(d.tag){case 0:case 11:case 15:Wa(8,d,i)}var p=d.child;if(p!==null)p.return=d,J=p;else for(;J!==null;){d=J;var f=d.sibling,m=d.return;if(P_(d),d===c){J=null;break}if(f!==null){f.return=m,J=f;break}J=m}}}var x=i.alternate;if(x!==null){var h=x.child;if(h!==null){x.child=null;do{var _=h.sibling;h.sibling=null,h=_}while(h!==null)}}J=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,J=a;else e:for(;J!==null;){if(i=J,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Wa(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,J=v;break e}J=i.return}}var g=e.current;for(J=g;J!==null;){a=J;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,J=y;else e:for(a=g;J!==null;){if(s=J,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:Pc(9,s)}}catch(w){Ge(s,s.return,w)}if(s===a){J=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,J=S;break e}J=s.return}}if(_e=n,Ur(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(hc,e)}catch{}o=!0}return o}finally{Ie=r,mn.transition=t}}return!1}function MS(e,t,r){t=gi(r,t),t=g_(e,t,1),e=jr(e,t,1),t=jt(),e!==null&&(as(e,1,t),Ht(e,t))}function Ge(e,t,r){if(e.tag===3)MS(e,e,r);else for(;t!==null;){if(t.tag===3){MS(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Or===null||!Or.has(o))){e=gi(r,e),e=v_(t,e,1),t=jr(t,e,1),e=jt(),t!==null&&(as(t,1,e),Ht(t,e));break}}t=t.return}}function AR(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=jt(),e.pingedLanes|=e.suspendedLanes&r,ft===e&&(gt&r)===r&&(st===4||st===3&&(gt&130023424)===gt&&500>qe()-lm?go(e,0):sm|=r),Ht(e,t)}function N_(e,t){t===0&&((e.mode&1)===0?t=1:(t=_l,_l<<=1,(_l&130023424)===0&&(_l=4194304)));var r=jt();e=fr(e,t),e!==null&&(as(e,t,r),Ht(e,r))}function FR(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),N_(e,r)}function WR(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(O(314))}o!==null&&o.delete(t),N_(e,r)}var L_;L_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bt.current)Mt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Mt=!1,zR(e,t,r);Mt=(e.flags&131072)!==0}else Mt=!1,Ue&&(t.flags&1048576)!==0&&Uk(t,ac,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Zl(e,t),e=t.pendingProps;var n=di(t,zt.current);li(t,r),n=tm(null,t,o,e,n,r);var i=nm();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,Zt(o)?(i=!0,oc(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Kf(t),n.updater=$c,t.stateNode=n,n._reactInternals=t,pf(t,o,e,r),t=gf(null,t,o,!0,i,r)):(t.tag=0,Ue&&i&&Bf(t),Ct(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Zl(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=MR(o),e=$n(o,e),n){case 0:t=mf(null,t,o,e,r);break e;case 1:t=CS(null,t,o,e,r);break e;case 11:t=ES(null,t,o,e,r);break e;case 14:t=TS(null,t,o,$n(o.type,e),r);break e}throw Error(O(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),mf(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),CS(e,t,o,n,r);case 3:e:{if(b_(t),e===null)throw Error(O(387));o=t.pendingProps,i=t.memoizedState,n=i.element,Jk(e,t),cc(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=gi(Error(O(423)),t),t=jS(e,t,o,r,n);break e}else if(o!==n){n=gi(Error(O(424)),t),t=jS(e,t,o,r,n);break e}else for(qt=Cr(t.stateNode.containerInfo.firstChild),Qt=t,Ue=!0,zn=null,r=Hk(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(pi(),o===n){t=mr(e,t,r);break e}Ct(e,t,o,r)}t=t.child}return t;case 5:return Gk(t),e===null&&cf(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,rf(o,n)?a=null:i!==null&&rf(o,i)&&(t.flags|=32),x_(e,t),Ct(e,t,a,r),t.child;case 6:return e===null&&cf(t),null;case 13:return S_(e,t,r);case 4:return Yf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=fi(t,null,o,r):Ct(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),ES(e,t,o,n,r);case 7:return Ct(e,t,t.pendingProps,r),t.child;case 8:return Ct(e,t,t.pendingProps.children,r),t.child;case 12:return Ct(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,Ne(sc,o._currentValue),o._currentValue=a,i!==null)if(En(i.value,a)){if(i.children===n.children&&!Bt.current){t=mr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=ur(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),uf(i.return,r,t),s.lanes|=r;break}l=l.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(O(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),uf(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}Ct(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,li(t,r),n=gn(n),o=o(n),t.flags|=1,Ct(e,t,o,r),t.child;case 14:return o=t.type,n=$n(o,t.pendingProps),n=$n(o.type,n),TS(e,t,o,n,r);case 15:return y_(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),Zl(e,t),t.tag=1,Zt(o)?(e=!0,oc(t)):e=!1,li(t,r),m_(t,o,n),pf(t,o,n,r),gf(null,t,o,!0,e,r);case 19:return k_(e,t,r);case 22:return h_(e,t,r)}throw Error(O(156,t.tag))};function A_(e,t){return dk(e,t)}function UR(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 fn(e,t,r,o){return new UR(e,t,r,o)}function pm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MR(e){if(typeof e=="function")return pm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tf)return 11;if(e===Cf)return 14}return 2}function Nr(e,t){var r=e.alternate;return r===null?(r=fn(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 Jl(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")pm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Jo:return vo(r.children,n,i,t);case Ef:a=8,n|=8;break;case Dp:return e=fn(12,r,t,n|2),e.elementType=Dp,e.lanes=i,e;case Np:return e=fn(13,r,t,n),e.elementType=Np,e.lanes=i,e;case Lp:return e=fn(19,r,t,n),e.elementType=Lp,e.lanes=i,e;case GS:return Ic(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VS:a=10;break e;case JS:a=9;break e;case Tf:a=11;break e;case Cf:a=14;break e;case _r:a=16,o=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=fn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function vo(e,t,r,o){return e=fn(7,e,o,t),e.lanes=r,e}function Ic(e,t,r,o){return e=fn(22,e,o,t),e.elementType=GS,e.lanes=r,e.stateNode={isHidden:!1},e}function Cp(e,t,r){return e=fn(6,e,null,t),e.lanes=r,e}function jp(e,t,r){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BR(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=vp(0),this.expirationTimes=vp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vp(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function fm(e,t,r,o,n,i,a,s,l){return e=new BR(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=fn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kf(i),e}function ZR(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vo,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function F_(e){if(!e)return Ar;e=e._reactInternals;e:{if(_o(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var r=e.type;if(Zt(r))return Fk(e,r,t)}return t}function W_(e,t,r,o,n,i,a,s,l){return e=fm(r,o,!0,e,n,i,a,s,l),e.context=F_(null),r=e.current,o=jt(),n=Dr(r),i=ur(o,n),i.callback=t??null,jr(r,i,n),e.current.lanes=n,as(e,n,o),Ht(e,o),e}function Rc(e,t,r,o){var n=t.current,i=jt(),a=Dr(n);return r=F_(r),t.context===null?t.context=r:t.pendingContext=r,t=ur(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=jr(n,t,a),e!==null&&(Rn(e,n,a,i),Ul(e,n,a)),a}function yc(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function BS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function mm(e,t){BS(e,t),(e=e.alternate)&&BS(e,t)}function HR(){return null}var U_=typeof reportError=="function"?reportError:function(e){console.error(e)};function gm(e){this._internalRoot=e}Ec.prototype.render=gm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Rc(e,t,null,null)};Ec.prototype.unmount=gm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;So(function(){Rc(null,e,null,null)}),t[pr]=null}};function Ec(e){this._internalRoot=e}Ec.prototype.unstable_scheduleHydration=function(e){if(e){var t=hk();e={blockedOn:null,target:e,priority:t};for(var r=0;r<$r.length&&t!==0&&t<$r[r].priority;r++);$r.splice(r,0,e),r===0&&bk(e)}};function vm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ZS(){}function VR(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=yc(a);i.call(c)}}var a=W_(t,o,e,0,null,!1,!1,"",ZS);return e._reactRootContainer=a,e[pr]=a.current,Ya(e.nodeType===8?e.parentNode:e),So(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var s=o;o=function(){var c=yc(l);s.call(c)}}var l=fm(e,0,!1,null,null,!1,!1,"",ZS);return e._reactRootContainer=l,e[pr]=l.current,Ya(e.nodeType===8?e.parentNode:e),So(function(){Rc(t,l,r,o)}),l}function Cc(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var s=n;n=function(){var l=yc(a);s.call(l)}}Rc(t,a,e,n)}else a=VR(r,t,e,n,o);return yc(a)}vk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ca(t.pendingLanes);r!==0&&(Df(t,r|1),Ht(t,qe()),(_e&6)===0&&(vi=qe()+500,Ur()))}break;case 13:So(function(){var o=fr(e,1);if(o!==null){var n=jt();Rn(o,e,1,n)}}),mm(e,1)}};Nf=function(e){if(e.tag===13){var t=fr(e,134217728);if(t!==null){var r=jt();Rn(t,e,134217728,r)}mm(e,134217728)}};yk=function(e){if(e.tag===13){var t=Dr(e),r=fr(e,t);if(r!==null){var o=jt();Rn(r,e,t,o)}mm(e,t)}};hk=function(){return Ie};xk=function(e,t){var r=Ie;try{return Ie=e,t()}finally{Ie=r}};Jp=function(e,t,r){switch(t){case"input":if(Wp(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=kc(o);if(!n)throw Error(O(90));KS(o),Wp(o,n)}}}break;case"textarea":qS(e,r);break;case"select":t=r.value,t!=null&&oi(e,!!r.multiple,t,!1)}};ik=cm;ak=So;var JR={usingClientEntryPoint:!1,Events:[ls,Yo,kc,rk,ok,cm]},Ia={findFiberByHostInstance:po,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},GR={bundleType:Ia.bundleType,version:Ia.version,rendererPackageName:Ia.rendererPackageName,rendererConfig:Ia.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ck(e),e===null?null:e.stateNode},findFiberByHostInstance:Ia.findFiberByHostInstance||HR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ra=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ra.isDisabled&&Ra.supportsFiber))try{hc=Ra.inject(GR),Jn=Ra}catch{}var Ra;nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JR;nn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vm(t))throw Error(O(200));return ZR(e,t,null,r)};nn.createRoot=function(e,t){if(!vm(e))throw Error(O(299));var r=!1,o="",n=U_;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=fm(e,1,!1,null,null,r,!1,o,n),e[pr]=t.current,Ya(e.nodeType===8?e.parentNode:e),new gm(t)};nn.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=ck(t),e=e===null?null:e.stateNode,e};nn.flushSync=function(e){return So(e)};nn.hydrate=function(e,t,r){if(!Tc(t))throw Error(O(200));return Cc(null,e,t,!0,r)};nn.hydrateRoot=function(e,t,r){if(!vm(e))throw Error(O(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=U_;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=W_(t,null,e,1,r??null,n,!1,i,a),e[pr]=t.current,Ya(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 Ec(t)};nn.render=function(e,t,r){if(!Tc(t))throw Error(O(200));return Cc(null,e,t,!1,r)};nn.unmountComponentAtNode=function(e){if(!Tc(e))throw Error(O(40));return e._reactRootContainer?(So(function(){Cc(null,null,e,!1,function(){e._reactRootContainer=null,e[pr]=null})}),!0):!1};nn.unstable_batchedUpdates=cm;nn.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Tc(r))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Cc(e,t,r,!1,o)};nn.version="18.3.1-next-f1338f8080-20240426"});var H_=or((f2,Z_)=>{"use strict";function B_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B_)}catch(e){console.error(e)}}B_(),Z_.exports=M_()});var J_=or(ym=>{"use strict";var V_=H_();ym.createRoot=V_.createRoot,ym.hydrateRoot=V_.hydrateRoot;var m2});var m$=or(wd=>{"use strict";var Nj=me(),Lj=Symbol.for("react.element"),Aj=Symbol.for("react.fragment"),Fj=Object.prototype.hasOwnProperty,Wj=Nj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uj={key:!0,ref:!0,__self:!0,__source:!0};function f$(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)Fj.call(t,o)&&!Uj.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:Lj,type:e,key:i,ref:a,props:n,_owner:Wj.current}}wd.Fragment=Aj;wd.jsx=f$;wd.jsxs=f$});var V=or((SF,g$)=>{"use strict";g$.exports=m$()});var _z=P(me(),1),wz=P(J_(),1);var xt=P(me(),1);var Js=P(me(),1);var u={};ir(u,{$brand:()=>xm,$input:()=>Wv,$output:()=>Fv,NEVER:()=>hm,TimePrecision:()=>Zv,ZodAny:()=>jh,ZodArray:()=>Lh,ZodBase64:()=>id,ZodBase64URL:()=>ad,ZodBigInt:()=>Xi,ZodBigIntFormat:()=>cd,ZodBoolean:()=>Gi,ZodCIDRv4:()=>rd,ZodCIDRv6:()=>od,ZodCUID:()=>Ku,ZodCUID2:()=>Yu,ZodCatch:()=>ix,ZodCodec:()=>Us,ZodCustom:()=>Ms,ZodCustomStringFormat:()=>Vi,ZodDate:()=>Ns,ZodDefault:()=>Qh,ZodDiscriminatedUnion:()=>Fh,ZodE164:()=>sd,ZodEmail:()=>Ju,ZodEmoji:()=>Gu,ZodEnum:()=>Zi,ZodError:()=>$C,ZodExactOptional:()=>Kh,ZodFile:()=>Gh,ZodFirstPartyTypeKind:()=>hx,ZodFunction:()=>gx,ZodGUID:()=>Ts,ZodIPv4:()=>td,ZodIPv6:()=>nd,ZodISODate:()=>Uu,ZodISODateTime:()=>Wu,ZodISODuration:()=>Bu,ZodISOTime:()=>Mu,ZodIntersection:()=>Wh,ZodIssueCode:()=>zC,ZodJWT:()=>ld,ZodKSUID:()=>ed,ZodLazy:()=>px,ZodLiteral:()=>Jh,ZodMAC:()=>Ph,ZodMap:()=>Hh,ZodNaN:()=>sx,ZodNanoID:()=>Xu,ZodNever:()=>Dh,ZodNonOptional:()=>gd,ZodNull:()=>Th,ZodNullable:()=>qh,ZodNumber:()=>Ji,ZodNumberFormat:()=>Co,ZodObject:()=>As,ZodOptional:()=>md,ZodPipe:()=>Ws,ZodPrefault:()=>tx,ZodPreprocess:()=>lx,ZodPromise:()=>mx,ZodReadonly:()=>cx,ZodRealError:()=>Gt,ZodRecord:()=>Bi,ZodSet:()=>Vh,ZodString:()=>Hi,ZodStringFormat:()=>Ce,ZodSuccess:()=>ox,ZodSymbol:()=>Rh,ZodTemplateLiteral:()=>dx,ZodTransform:()=>Xh,ZodTuple:()=>Mh,ZodType:()=>le,ZodULID:()=>qu,ZodURL:()=>Ds,ZodUUID:()=>qn,ZodUndefined:()=>Eh,ZodUnion:()=>Fs,ZodUnknown:()=>Oh,ZodVoid:()=>Nh,ZodXID:()=>Qu,ZodXor:()=>Ah,_ZodString:()=>Vu,_default:()=>ex,_function:()=>D1,any:()=>p1,array:()=>Ls,base64:()=>Xw,base64url:()=>Kw,bigint:()=>s1,boolean:()=>Ih,catch:()=>ax,check:()=>N1,cidrv4:()=>Jw,cidrv6:()=>Gw,clone:()=>Dt,codec:()=>T1,coerce:()=>xx,config:()=>Xe,core:()=>hr,cuid:()=>Fw,cuid2:()=>Ww,custom:()=>L1,date:()=>m1,decode:()=>xh,decodeAsync:()=>Sh,describe:()=>A1,discriminatedUnion:()=>b1,e164:()=>Yw,email:()=>Rw,emoji:()=>Lw,encode:()=>hh,encodeAsync:()=>bh,endsWith:()=>ji,enum:()=>pd,exactOptional:()=>Yh,file:()=>z1,flattenError:()=>ys,float32:()=>r1,float64:()=>o1,formatError:()=>hs,fromJSONSchema:()=>H1,function:()=>D1,getErrorMap:()=>RC,globalRegistry:()=>yt,gt:()=>Kn,gte:()=>Lt,guid:()=>Ew,hash:()=>n1,hex:()=>t1,hostname:()=>e1,httpUrl:()=>Nw,includes:()=>Ti,instanceof:()=>W1,int:()=>Zu,int32:()=>i1,int64:()=>l1,intersection:()=>Uh,invertCodec:()=>C1,ipv4:()=>Zw,ipv6:()=>Vw,iso:()=>Mi,json:()=>M1,jwt:()=>qw,keyof:()=>g1,ksuid:()=>Bw,lazy:()=>fx,length:()=>Eo,literal:()=>P1,locales:()=>Ps,looseObject:()=>h1,looseRecord:()=>k1,lowercase:()=>Ri,lt:()=>Xn,lte:()=>on,mac:()=>Hw,map:()=>_1,maxLength:()=>Ro,maxSize:()=>Gr,meta:()=>F1,mime:()=>Oi,minLength:()=>yr,minSize:()=>Yn,multipleOf:()=>Jr,nan:()=>E1,nanoid:()=>Aw,nativeEnum:()=>$1,negative:()=>Eu,never:()=>ud,nonnegative:()=>Cu,nonoptional:()=>rx,nonpositive:()=>Tu,normalize:()=>Di,null:()=>Ch,nullable:()=>js,nullish:()=>I1,number:()=>zh,object:()=>v1,optional:()=>Cs,overwrite:()=>Cn,parse:()=>mh,parseAsync:()=>gh,partialRecord:()=>S1,pipe:()=>Hu,positive:()=>Ru,prefault:()=>nx,preprocess:()=>B1,prettifyError:()=>Cm,promise:()=>O1,property:()=>ju,readonly:()=>ux,record:()=>Zh,refine:()=>vx,regex:()=>Ii,regexes:()=>rn,registry:()=>lu,safeDecode:()=>_h,safeDecodeAsync:()=>$h,safeEncode:()=>kh,safeEncodeAsync:()=>wh,safeParse:()=>vh,safeParseAsync:()=>yh,set:()=>w1,setErrorMap:()=>IC,size:()=>Io,slugify:()=>Fi,startsWith:()=>Ci,strictObject:()=>y1,string:()=>Es,stringFormat:()=>Qw,stringbool:()=>U1,success:()=>R1,superRefine:()=>yx,symbol:()=>u1,templateLiteral:()=>j1,toJSONSchema:()=>Lu,toLowerCase:()=>Li,toUpperCase:()=>Ai,transform:()=>fd,treeifyError:()=>Tm,trim:()=>Ni,tuple:()=>Bh,uint32:()=>a1,uint64:()=>c1,ulid:()=>Uw,undefined:()=>d1,union:()=>dd,unknown:()=>To,uppercase:()=>Ei,url:()=>Dw,util:()=>j,uuid:()=>Tw,uuidv4:()=>Cw,uuidv6:()=>jw,uuidv7:()=>Ow,void:()=>f1,xid:()=>Mw,xor:()=>x1});var hr={};ir(hr,{$ZodAny:()=>sv,$ZodArray:()=>pv,$ZodAsyncError:()=>Tn,$ZodBase64:()=>Yg,$ZodBase64URL:()=>qg,$ZodBigInt:()=>eu,$ZodBigIntFormat:()=>rv,$ZodBoolean:()=>ks,$ZodCIDRv4:()=>Gg,$ZodCIDRv6:()=>Xg,$ZodCUID:()=>Ng,$ZodCUID2:()=>Lg,$ZodCatch:()=>Ev,$ZodCheck:()=>Oe,$ZodCheckBigIntFormat:()=>pg,$ZodCheckEndsWith:()=>wg,$ZodCheckGreaterThan:()=>Gc,$ZodCheckIncludes:()=>kg,$ZodCheckLengthEquals:()=>hg,$ZodCheckLessThan:()=>Jc,$ZodCheckLowerCase:()=>bg,$ZodCheckMaxLength:()=>vg,$ZodCheckMaxSize:()=>fg,$ZodCheckMimeType:()=>Pg,$ZodCheckMinLength:()=>yg,$ZodCheckMinSize:()=>mg,$ZodCheckMultipleOf:()=>ug,$ZodCheckNumberFormat:()=>dg,$ZodCheckOverwrite:()=>zg,$ZodCheckProperty:()=>$g,$ZodCheckRegex:()=>xg,$ZodCheckSizeEquals:()=>gg,$ZodCheckStartsWith:()=>_g,$ZodCheckStringFormat:()=>Pi,$ZodCheckUpperCase:()=>Sg,$ZodCodec:()=>ws,$ZodCustom:()=>Av,$ZodCustomStringFormat:()=>tv,$ZodDate:()=>dv,$ZodDefault:()=>Pv,$ZodDiscriminatedUnion:()=>gv,$ZodE164:()=>Qg,$ZodEmail:()=>Cg,$ZodEmoji:()=>Og,$ZodEncodeError:()=>Mr,$ZodEnum:()=>bv,$ZodError:()=>vs,$ZodExactOptional:()=>wv,$ZodFile:()=>kv,$ZodFunction:()=>Dv,$ZodGUID:()=>Eg,$ZodIPv4:()=>Hg,$ZodIPv6:()=>Vg,$ZodISODate:()=>Mg,$ZodISODateTime:()=>Ug,$ZodISODuration:()=>Zg,$ZodISOTime:()=>Bg,$ZodIntersection:()=>vv,$ZodJWT:()=>ev,$ZodKSUID:()=>Wg,$ZodLazy:()=>Lv,$ZodLiteral:()=>Sv,$ZodMAC:()=>Jg,$ZodMap:()=>hv,$ZodNaN:()=>Tv,$ZodNanoID:()=>Dg,$ZodNever:()=>cv,$ZodNonOptional:()=>Iv,$ZodNull:()=>av,$ZodNullable:()=>$v,$ZodNumber:()=>Qc,$ZodNumberFormat:()=>nv,$ZodObject:()=>w0,$ZodObjectJIT:()=>fv,$ZodOptional:()=>nu,$ZodPipe:()=>ru,$ZodPrefault:()=>zv,$ZodPreprocess:()=>Cv,$ZodPromise:()=>Nv,$ZodReadonly:()=>jv,$ZodRealError:()=>Jt,$ZodRecord:()=>yv,$ZodRegistry:()=>su,$ZodSet:()=>xv,$ZodString:()=>zo,$ZodStringFormat:()=>Te,$ZodSuccess:()=>Rv,$ZodSymbol:()=>ov,$ZodTemplateLiteral:()=>Ov,$ZodTransform:()=>_v,$ZodTuple:()=>tu,$ZodType:()=>ie,$ZodULID:()=>Ag,$ZodURL:()=>jg,$ZodUUID:()=>Tg,$ZodUndefined:()=>iv,$ZodUnion:()=>_s,$ZodUnknown:()=>lv,$ZodVoid:()=>uv,$ZodXID:()=>Fg,$ZodXor:()=>mv,$brand:()=>xm,$constructor:()=>b,$input:()=>Wv,$output:()=>Fv,Doc:()=>Ss,JSONSchema:()=>Pw,JSONSchemaGenerator:()=>Au,NEVER:()=>hm,TimePrecision:()=>Zv,_any:()=>dy,_array:()=>hy,_base64:()=>$u,_base64url:()=>Pu,_bigint:()=>oy,_boolean:()=>ny,_catch:()=>yC,_check:()=>$w,_cidrv4:()=>_u,_cidrv6:()=>wu,_coercedBigint:()=>iy,_coercedBoolean:()=>ry,_coercedDate:()=>vy,_coercedNumber:()=>Kv,_coercedString:()=>Mv,_cuid:()=>vu,_cuid2:()=>yu,_custom:()=>by,_date:()=>gy,_decode:()=>Ac,_decodeAsync:()=>Wc,_default:()=>mC,_discriminatedUnion:()=>nC,_e164:()=>zu,_email:()=>cu,_emoji:()=>mu,_encode:()=>Lc,_encodeAsync:()=>Fc,_endsWith:()=>ji,_enum:()=>lC,_file:()=>xy,_float32:()=>qv,_float64:()=>Qv,_gt:()=>Kn,_gte:()=>Lt,_guid:()=>zs,_includes:()=>Ti,_int:()=>Yv,_int32:()=>ey,_int64:()=>ay,_intersection:()=>rC,_ipv4:()=>Su,_ipv6:()=>ku,_isoDate:()=>Vv,_isoDateTime:()=>Hv,_isoDuration:()=>Gv,_isoTime:()=>Jv,_jwt:()=>Iu,_ksuid:()=>bu,_lazy:()=>SC,_length:()=>Eo,_literal:()=>uC,_lowercase:()=>Ri,_lt:()=>Xn,_lte:()=>on,_mac:()=>Bv,_map:()=>aC,_max:()=>on,_maxLength:()=>Ro,_maxSize:()=>Gr,_mime:()=>Oi,_min:()=>Lt,_minLength:()=>yr,_minSize:()=>Yn,_multipleOf:()=>Jr,_nan:()=>yy,_nanoid:()=>gu,_nativeEnum:()=>cC,_negative:()=>Eu,_never:()=>fy,_nonnegative:()=>Cu,_nonoptional:()=>gC,_nonpositive:()=>Tu,_normalize:()=>Di,_null:()=>uy,_nullable:()=>fC,_number:()=>Xv,_optional:()=>pC,_overwrite:()=>Cn,_parse:()=>ki,_parseAsync:()=>_i,_pipe:()=>hC,_positive:()=>Ru,_promise:()=>kC,_property:()=>ju,_readonly:()=>xC,_record:()=>iC,_refine:()=>Sy,_regex:()=>Ii,_safeDecode:()=>Mc,_safeDecodeAsync:()=>Zc,_safeEncode:()=>Uc,_safeEncodeAsync:()=>Bc,_safeParse:()=>wi,_safeParseAsync:()=>$i,_set:()=>sC,_size:()=>Io,_slugify:()=>Fi,_startsWith:()=>Ci,_string:()=>Uv,_stringFormat:()=>Wi,_stringbool:()=>$y,_success:()=>vC,_superRefine:()=>ky,_symbol:()=>ly,_templateLiteral:()=>bC,_toLowerCase:()=>Li,_toUpperCase:()=>Ai,_transform:()=>dC,_trim:()=>Ni,_tuple:()=>oC,_uint32:()=>ty,_uint64:()=>sy,_ulid:()=>hu,_undefined:()=>cy,_union:()=>eC,_unknown:()=>py,_uppercase:()=>Ei,_url:()=>Is,_uuid:()=>uu,_uuidv4:()=>du,_uuidv6:()=>pu,_uuidv7:()=>fu,_void:()=>my,_xid:()=>xu,_xor:()=>tC,clone:()=>Dt,config:()=>Xe,createStandardJSONSchemaMethod:()=>Ui,createToJSONSchemaMethod:()=>Py,decode:()=>kE,decodeAsync:()=>wE,describe:()=>_y,encode:()=>SE,encodeAsync:()=>_E,extractDefs:()=>Kr,finalize:()=>Yr,flattenError:()=>ys,formatError:()=>hs,globalConfig:()=>wo,globalRegistry:()=>yt,initializeContext:()=>Xr,isValidBase64:()=>Kg,isValidBase64URL:()=>b0,isValidJWT:()=>S0,locales:()=>Ps,meta:()=>wy,parse:()=>Dc,parseAsync:()=>Nc,prettifyError:()=>Cm,process:()=>$e,regexes:()=>rn,registry:()=>lu,safeDecode:()=>PE,safeDecodeAsync:()=>IE,safeEncode:()=>$E,safeEncodeAsync:()=>zE,safeParse:()=>jm,safeParseAsync:()=>Om,toDotPath:()=>Q_,toJSONSchema:()=>Lu,treeifyError:()=>Tm,util:()=>j,version:()=>Ig});var G_,hm=Object.freeze({status:"aborted"});function b(e,t,r){function o(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let c=a.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in s||(s[f]=c[f].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;let c=r?.Parent?new i:this;o(c,s),(l=c._zod).deferred??(l.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var xm=Symbol("zod_brand"),Tn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Mr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(G_=globalThis).__zod_globalConfig??(G_.__zod_globalConfig={});var wo=globalThis.__zod_globalConfig;function Xe(e){return e&&Object.assign(wo,e),wo}var j={};ir(j,{BIGINT_FORMAT_RANGES:()=>Rm,Class:()=>Sm,NUMBER_FORMAT_RANGES:()=>Im,aborted:()=>Vr,allowsEval:()=>wm,assert:()=>QR,assertEqual:()=>XR,assertIs:()=>YR,assertNever:()=>qR,assertNotEqual:()=>KR,assignProp:()=>Zr,base64ToUint8Array:()=>K_,base64urlToUint8Array:()=>vE,cached:()=>bi,captureStackTrace:()=>Oc,cleanEnum:()=>gE,cleanRegex:()=>ps,clone:()=>Dt,cloneDef:()=>tE,createTransparentProxy:()=>sE,defineLazy:()=>ge,esc:()=>jc,escapeRegex:()=>yn,explicitlyAborted:()=>Em,extend:()=>uE,finalizeIssue:()=>Nt,floatSafeRemainder:()=>km,getElementAtPath:()=>nE,getEnumValues:()=>ds,getLengthableOrigin:()=>gs,getParsedType:()=>aE,getSizableOrigin:()=>ms,hexToUint8Array:()=>hE,isObject:()=>$o,isPlainObject:()=>Hr,issue:()=>Si,joinValues:()=>k,jsonStringifyReplacer:()=>xi,merge:()=>pE,mergeDefs:()=>vr,normalizeParams:()=>N,nullish:()=>Br,numKeys:()=>iE,objectClone:()=>eE,omit:()=>cE,optionalKeys:()=>zm,parsedType:()=>C,partial:()=>fE,pick:()=>lE,prefixIssues:()=>Vt,primitiveTypes:()=>Pm,promiseAllObject:()=>rE,propertyKeyTypes:()=>fs,randomString:()=>oE,required:()=>mE,safeExtend:()=>dE,shallowClone:()=>$m,slugify:()=>_m,stringifyPrimitive:()=>E,uint8ArrayToBase64:()=>Y_,uint8ArrayToBase64url:()=>yE,uint8ArrayToHex:()=>xE,unwrapMessage:()=>us});function XR(e){return e}function KR(e){return e}function YR(e){}function qR(e){throw new Error("Unexpected value in exhaustive check")}function QR(e){}function ds(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=>E(r)).join(t)}function xi(e,t){return typeof t=="bigint"?t.toString():t}function bi(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Br(e){return e==null}function ps(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function km(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 X_=Symbol("evaluating");function ge(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==X_)return o===void 0&&(o=X_,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function eE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Zr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function vr(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function tE(e){return vr(e._zod.def)}function nE(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function rE(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 oE(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function jc(e){return JSON.stringify(e)}function _m(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Oc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function $o(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var wm=bi(()=>{if(wo.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Hr(e){if($o(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!($o(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function $m(e){return Hr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function iE(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var aE=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}`)}},fs=new Set(["string","number","symbol"]),Pm=new Set(["string","number","bigint","boolean","symbol","undefined"]);function yn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function N(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 sE(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 E(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function zm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Im={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]},Rm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function lE(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=vr(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Zr(this,"shape",a),a},checks:[]});return Dt(e,i)}function cE(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=vr(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Zr(this,"shape",a),a},checks:[]});return Dt(e,i)}function uE(e,t){if(!Hr(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=vr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Zr(this,"shape",i),i}});return Dt(e,n)}function dE(e,t){if(!Hr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=vr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Zr(this,"shape",o),o}});return Dt(e,r)}function pE(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=vr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Zr(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Dt(e,r)}function fE(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=vr(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(l[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)l[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return Zr(this,"shape",l),l},checks:[]});return Dt(t,a)}function mE(e,t,r){let o=vr(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 Zr(this,"shape",i),i}});return Dt(t,o)}function Vr(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 Em(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 Vt(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function us(e){return typeof e=="string"?e:e?.message}function Nt(e,t,r){let o=e.message?e.message:us(e.inst?._zod.def?.error?.(e))??us(t?.error?.(e))??us(r.customError?.(e))??us(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function ms(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function gs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function C(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 Si(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function gE(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function K_(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 Y_(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function vE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return K_(t+r)}function yE(e){return Y_(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function hE(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 xE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Sm=class{constructor(...t){}};var q_=(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,xi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},vs=b("$ZodError",q_),Jt=b("$ZodError",q_,{Parent:Error});function ys(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 hs(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(s=>o({issues:s},[...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 s=[...i,...a.path];if(s.length===0)r._errors.push(t(a));else{let l=r,c=0;for(;c<s.length;){let d=s[c];c===s.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(a))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}}};return o(e),r}function Tm(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>o({issues:c},[...i,...l.path]));else if(l.code==="invalid_key")o({issues:l.issues},[...i,...l.path]);else if(l.code==="invalid_element")o({issues:l.issues},[...i,...l.path]);else{let c=[...i,...l.path];if(c.length===0){r.errors.push(t(l));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],m=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=[]),(s=d.items)[f]??(s[f]={errors:[]}),d=d.items[f]),m&&d.errors.push(t(l)),p++}}};return o(e),r}function Q_(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 Cm(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 ${Q_(o.path)}`);return t.join(`
|
|
9
|
-
`)}var ki=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 Tn;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>Nt(l,i,Xe())));throw Oc(s,n?.callee),s}return a.value},Dc=ki(Jt),_i=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 s=new(n?.Err??e)(a.issues.map(l=>Nt(l,i,Xe())));throw Oc(s,n?.callee),s}return a.value},Nc=_i(Jt),wi=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 Tn;return i.issues.length?{success:!1,error:new(e??vs)(i.issues.map(a=>Nt(a,n,Xe())))}:{success:!0,data:i.value}},jm=wi(Jt),$i=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=>Nt(a,n,Xe())))}:{success:!0,data:i.value}},Om=$i(Jt),Lc=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return ki(e)(t,r,n)},SE=Lc(Jt),Ac=e=>(t,r,o)=>ki(e)(t,r,o),kE=Ac(Jt),Fc=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return _i(e)(t,r,n)},_E=Fc(Jt),Wc=e=>async(t,r,o)=>_i(e)(t,r,o),wE=Wc(Jt),Uc=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return wi(e)(t,r,n)},$E=Uc(Jt),Mc=e=>(t,r,o)=>wi(e)(t,r,o),PE=Mc(Jt),Bc=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return $i(e)(t,r,n)},zE=Bc(Jt),Zc=e=>async(t,r,o)=>$i(e)(t,r,o),IE=Zc(Jt);var rn={};ir(rn,{base64:()=>Km,base64url:()=>Hc,bigint:()=>rg,boolean:()=>ig,browserEmail:()=>NE,cidrv4:()=>Gm,cidrv6:()=>Xm,cuid:()=>Dm,cuid2:()=>Nm,date:()=>Qm,datetime:()=>tg,domain:()=>FE,duration:()=>Um,e164:()=>qm,email:()=>Bm,emoji:()=>Zm,extendedDuration:()=>RE,guid:()=>Mm,hex:()=>WE,hostname:()=>AE,html5Email:()=>jE,httpProtocol:()=>Ym,idnEmail:()=>DE,integer:()=>og,ipv4:()=>Hm,ipv6:()=>Vm,ksuid:()=>Fm,lowercase:()=>lg,mac:()=>Jm,md5_base64:()=>ME,md5_base64url:()=>BE,md5_hex:()=>UE,nanoid:()=>Wm,null:()=>ag,number:()=>Vc,rfc5322Email:()=>OE,sha1_base64:()=>HE,sha1_base64url:()=>VE,sha1_hex:()=>ZE,sha256_base64:()=>GE,sha256_base64url:()=>XE,sha256_hex:()=>JE,sha384_base64:()=>YE,sha384_base64url:()=>qE,sha384_hex:()=>KE,sha512_base64:()=>eT,sha512_base64url:()=>tT,sha512_hex:()=>QE,string:()=>ng,time:()=>eg,ulid:()=>Lm,undefined:()=>sg,unicodeEmail:()=>e0,uppercase:()=>cg,uuid:()=>Po,uuid4:()=>EE,uuid6:()=>TE,uuid7:()=>CE,xid:()=>Am});var Dm=/^[cC][0-9a-z]{6,}$/,Nm=/^[0-9a-z]+$/,Lm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Am=/^[0-9a-vA-V]{20}$/,Fm=/^[A-Za-z0-9]{27}$/,Wm=/^[a-zA-Z0-9_-]{21}$/,Um=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,RE=/^[-+]?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)?)??$/,Mm=/^([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})$/,Po=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)$/,EE=Po(4),TE=Po(6),CE=Po(7),Bm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,jE=/^[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])?)*$/,OE=/^(([^<>()\[\]\\.,;:\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,}))$/,e0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,DE=e0,NE=/^[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])?)*$/,LE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Zm(){return new RegExp(LE,"u")}var Hm=/^(?:(?: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])$/,Vm=/^(([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}|:))$/,Jm=e=>{let t=yn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Gm=/^((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])$/,Xm=/^(([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])$/,Km=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hc=/^[A-Za-z0-9_-]*$/,AE=/^(?=.{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])?)*\.?$/,FE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ym=/^https?$/,qm=/^\+[1-9]\d{6,14}$/,t0="(?:(?:\\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])))",Qm=new RegExp(`^${t0}$`);function n0(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 eg(e){return new RegExp(`^${n0(e)}$`)}function tg(e){let t=n0({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(`^${t0}T(?:${o})$`)}var ng=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rg=/^-?\d+n?$/,og=/^-?\d+$/,Vc=/^-?\d+(?:\.\d+)?$/,ig=/^(?:true|false)$/i,ag=/^null$/i;var sg=/^undefined$/i;var lg=/^[^A-Z]*$/,cg=/^[^a-z]*$/,WE=/^[0-9a-fA-F]*$/;function xs(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function bs(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var UE=/^[0-9a-fA-F]{32}$/,ME=xs(22,"=="),BE=bs(22),ZE=/^[0-9a-fA-F]{40}$/,HE=xs(27,"="),VE=bs(27),JE=/^[0-9a-fA-F]{64}$/,GE=xs(43,"="),XE=bs(43),KE=/^[0-9a-fA-F]{96}$/,YE=xs(64,""),qE=bs(64),QE=/^[0-9a-fA-F]{128}$/,eT=xs(86,"=="),tT=bs(86);var Oe=b("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),o0={number:"number",bigint:"bigint",object:"date"},Jc=b("$ZodCheckLessThan",(e,t)=>{Oe.init(e,t);let r=o0[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})}}),Gc=b("$ZodCheckGreaterThan",(e,t)=>{Oe.init(e,t);let r=o0[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})}}),ug=b("$ZodCheckMultipleOf",(e,t)=>{Oe.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):km(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})}}),dg=b("$ZodCheckNumberFormat",(e,t)=>{Oe.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Im[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=og)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),pg=b("$ZodCheckBigIntFormat",(e,t)=>{Oe.init(e,t);let[r,o]=Rm[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})}}),fg=b("$ZodCheckMaxSize",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Br(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:ms(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),mg=b("$ZodCheckMinSize",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Br(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:ms(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),gg=b("$ZodCheckSizeEquals",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Br(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:ms(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})}}),vg=b("$ZodCheckMaxLength",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Br(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=gs(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),yg=b("$ZodCheckMinLength",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Br(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=gs(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),hg=b("$ZodCheckLengthEquals",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Br(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=gs(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Pi=b("$ZodCheckStringFormat",(e,t)=>{var r,o;Oe.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=()=>{})}),xg=b("$ZodCheckRegex",(e,t)=>{Pi.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})}}),bg=b("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=lg),Pi.init(e,t)}),Sg=b("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=cg),Pi.init(e,t)}),kg=b("$ZodCheckIncludes",(e,t)=>{Oe.init(e,t);let r=yn(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})}}),_g=b("$ZodCheckStartsWith",(e,t)=>{Oe.init(e,t);let r=new RegExp(`^${yn(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})}}),wg=b("$ZodCheckEndsWith",(e,t)=>{Oe.init(e,t);let r=new RegExp(`.*${yn(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 r0(e,t,r){e.issues.length&&t.issues.push(...Vt(r,e.issues))}var $g=b("$ZodCheckProperty",(e,t)=>{Oe.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=>r0(n,r,t.property));r0(o,r,t.property)}}),Pg=b("$ZodCheckMimeType",(e,t)=>{Oe.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})}}),zg=b("$ZodCheckOverwrite",(e,t)=>{Oe.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Ss=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 Cp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function gf(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var IR=typeof WeakMap=="function"?WeakMap:Map;function y_(e,t,r){r=ur(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){vc||(vc=!0,$f=o),gf(e,t)},r}function h_(e,t,r){r=ur(-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(){gf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){gf(e,t),typeof o!="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function RS(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new IR;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=MR.bind(null,e,t,r),t.then(e,e))}function ES(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 TS(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=ur(-1,1),t.tag=2,Or(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var RR=gr.ReactCurrentOwner,Mt=!1;function Ct(e,t,r,o){t.child=e===null?Jk(t,null,r,o):mi(t,e.child,r,o)}function CS(e,t,r,o,n){r=r.render;var i=t.ref;return ci(t,n),o=rm(e,t,r,o,i,n),r=om(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,mr(e,t,n)):(Ue&&r&&Hf(t),t.flags|=1,Ct(e,t,o,n),t.child)}function jS(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!mm(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,x_(e,t,i,o,n)):(e=Xl(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:Ya,r(a,o)&&e.ref===t.ref)return mr(e,t,n)}return t.flags|=1,e=Lr(i,o),e.ref=t.ref,e.return=t,t.child=e}function x_(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(Ya(i,o)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,mr(e,t,n)}return vf(e,t,r,o,n)}function b_(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},Ne(oi,Yt),Yt|=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,Ne(oi,Yt),Yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Ne(oi,Yt),Yt|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Ne(oi,Yt),Yt|=o;return Ct(e,t,n,r),t.child}function S_(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function vf(e,t,r,o,n){var i=Zt(r)?ho:zt.current;return i=pi(t,i),ci(t,n),r=rm(e,t,r,o,i,n),o=om(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,mr(e,t,n)):(Ue&&o&&Hf(t),t.flags|=1,Ct(e,t,r,n),t.child)}function OS(e,t,r,o,n){if(Zt(r)){var i=!0;ac(t)}else i=!1;if(ci(t,n),t.stateNode===null)Vl(e,t),v_(t,r,o),mf(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=gn(c):(c=Zt(r)?ho:zt.current,c=pi(t,c));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==o||l!==c)&&IS(t,a,o,c),$r=!1;var f=t.memoizedState;a.state=f,dc(t,o,a,n),l=t.memoizedState,s!==o||f!==l||Bt.current||$r?(typeof d=="function"&&(ff(t,r,d,o),l=t.memoizedState),(s=$r||zS(t,r,s,o,f,l,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=l),a.props=o,a.state=l,a.context=c,o=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,Xk(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:$n(t.type,s),a.props=c,p=t.pendingProps,f=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=gn(l):(l=Zt(r)?ho:zt.current,l=pi(t,l));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||f!==l)&&IS(t,a,o,l),$r=!1,f=t.memoizedState,a.state=f,dc(t,o,a,n);var x=t.memoizedState;s!==p||f!==x||Bt.current||$r?(typeof m=="function"&&(ff(t,r,m,o),x=t.memoizedState),(c=$r||zS(t,r,c,o,f,x,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=l,o=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return yf(e,t,r,o,i,n)}function yf(e,t,r,o,n,i){S_(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&xS(t,r,!1),mr(e,t,i);o=t.stateNode,RR.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=mi(t,e.child,null,i),t.child=mi(t,null,s,i)):Ct(e,t,s,i),t.memoizedState=o.state,n&&xS(t,r,!0),t.child}function k_(e){var t=e.stateNode;t.pendingContext?hS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hS(e,t.context,!1),Qf(e,t.containerInfo)}function DS(e,t,r,o,n){return fi(),Jf(n),t.flags|=256,Ct(e,t,r,o),t.child}var hf={dehydrated:null,treeContext:null,retryLane:0};function xf(e){return{baseLanes:e,cachePool:null,transitions:null}}function __(e,t,r){var o=t.pendingProps,n=Be.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Ne(Be,n&1),e===null)return df(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=Ec(a,o,0,null),e=yo(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=xf(r),t.memoizedState=hf,e):sm(t,a));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return ER(e,t,a,o,s,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,s=n.sibling;var l={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=Lr(n,l),o.subtreeFlags=n.subtreeFlags&14680064),s!==null?i=Lr(s,i):(i=yo(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?xf(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=hf,o}return i=e.child,e=i.sibling,o=Lr(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 sm(e,t){return t=Ec({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ll(e,t,r,o){return o!==null&&Jf(o),mi(t,e.child,null,r),e=sm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ER(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=Cp(Error(O(422))),Ll(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=Ec({mode:"visible",children:o.children},n,0,null),i=yo(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&mi(t,e.child,null,a),t.child.memoizedState=xf(a),t.memoizedState=hf,i);if((t.mode&1)===0)return Ll(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var s=o.dgst;return o=s,i=Error(O(419)),o=Cp(i,o,void 0),Ll(e,t,a,o)}if(s=(a&e.childLanes)!==0,Mt||s){if(o=ft,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,fr(e,n),Rn(o,e,n,-1))}return fm(),o=Cp(Error(O(421))),Ll(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=BR.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,qt=jr(n.nextSibling),Qt=t,Ue=!0,zn=null,e!==null&&(dn[pn++]=lr,dn[pn++]=cr,dn[pn++]=xo,lr=e.id,cr=e.overflow,xo=t),t=sm(t,o.children),t.flags|=4096,t)}function NS(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),pf(e.return,t,r)}function jp(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 w_(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(Ct(e,t,o.children,r),o=Be.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&&NS(e,r,t);else if(e.tag===19)NS(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(Ne(Be,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&&pc(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),jp(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&&pc(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}jp(t,!0,r,null,i);break;case"together":jp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),So|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,r=Lr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Lr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function TR(e,t,r){switch(t.tag){case 3:k_(t),fi();break;case 5:Kk(t);break;case 1:Zt(t.type)&&ac(t);break;case 4:Qf(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;Ne(cc,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ne(Be,Be.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?__(e,t,r):(Ne(Be,Be.current&1),e=mr(e,t,r),e!==null?e.sibling:null);Ne(Be,Be.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return w_(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ne(Be,Be.current),o)break;return null;case 22:case 23:return t.lanes=0,b_(e,t,r)}return mr(e,t,r)}var $_,bf,P_,z_;$_=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}};bf=function(){};P_=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,go(Gn.current);var i=null;switch(r){case"input":n=Up(e,n),o=Up(e,o),i=[];break;case"select":n=He({},n,{value:void 0}),o=He({},o,{value:void 0}),i=[];break;case"textarea":n=Zp(e,n),o=Zp(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=oc)}Vp(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var s=n[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Za.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(s=n?.[c],o.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Za.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ae("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};z_=function(e,t,r,o){r!==o&&(t.flags|=4)};function Ia(e,t){if(!Ue)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 $t(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 CR(e,t,r){var o=t.pendingProps;switch(Vf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(t),null;case 1:return Zt(t.type)&&ic(),$t(t),null;case 3:return o=t.stateNode,gi(),Fe(Bt),Fe(zt),tm(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zn!==null&&(If(zn),zn=null))),bf(e,t),$t(t),null;case 5:em(t);var n=go(ns.current);if(r=t.type,e!==null&&t.stateNode!=null)P_(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(O(166));return $t(t),null}if(e=go(Gn.current),Dl(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Vn]=t,o[es]=i,e=(t.mode&1)!==0,r){case"dialog":Ae("cancel",o),Ae("close",o);break;case"iframe":case"object":case"embed":Ae("load",o);break;case"video":case"audio":for(n=0;n<Oa.length;n++)Ae(Oa[n],o);break;case"source":Ae("error",o);break;case"img":case"image":case"link":Ae("error",o),Ae("load",o);break;case"details":Ae("toggle",o);break;case"input":Zb(o,i),Ae("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Ae("invalid",o);break;case"textarea":Vb(o,i),Ae("invalid",o)}Vp(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?o.textContent!==s&&(i.suppressHydrationWarning!==!0&&Ol(o.textContent,s,e),n=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ol(o.textContent,s,e),n=["children",""+s]):Za.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ae("scroll",o)}switch(r){case"input":kl(o),Hb(o,i,!0);break;case"textarea":kl(o),Jb(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=oc)}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=tk(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[Vn]=t,e[es]=o,$_(e,t,!1,!1),t.stateNode=e;e:{switch(a=Jp(r,o),r){case"dialog":Ae("cancel",e),Ae("close",e),n=o;break;case"iframe":case"object":case"embed":Ae("load",e),n=o;break;case"video":case"audio":for(n=0;n<Oa.length;n++)Ae(Oa[n],e);n=o;break;case"source":Ae("error",e),n=o;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),n=o;break;case"details":Ae("toggle",e),n=o;break;case"input":Zb(e,o),n=Up(e,o),Ae("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=He({},o,{value:void 0}),Ae("invalid",e);break;case"textarea":Vb(e,o),n=Zp(e,o),Ae("invalid",e);break;default:n=o}Vp(r,n),s=n;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?ok(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&nk(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ha(e,l):typeof l=="number"&&Ha(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Za.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ae("scroll",e):l!=null&&Tf(e,i,l,a))}switch(r){case"input":kl(e),Hb(e,o,!1);break;case"textarea":kl(e),Jb(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Ar(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?ii(e,!!o.multiple,i,!1):o.defaultValue!=null&&ii(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=oc)}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 $t(t),null;case 6:if(e&&t.stateNode!=null)z_(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(O(166));if(r=go(ns.current),go(Gn.current),Dl(t)){if(o=t.stateNode,r=t.memoizedProps,o[Vn]=t,(i=o.nodeValue!==r)&&(e=Qt,e!==null))switch(e.tag){case 3:Ol(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ol(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Vn]=t,t.stateNode=o}return $t(t),null;case 13:if(Fe(Be),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&qt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Hk(),fi(),t.flags|=98560,i=!1;else if(i=Dl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Vn]=t}else fi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$t(t),i=!1}else zn!==null&&(If(zn),zn=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||(Be.current&1)!==0?st===0&&(st=3):fm())),t.updateQueue!==null&&(t.flags|=4),$t(t),null);case 4:return gi(),bf(e,t),e===null&&qa(t.stateNode.containerInfo),$t(t),null;case 10:return Kf(t.type._context),$t(t),null;case 17:return Zt(t.type)&&ic(),$t(t),null;case 19:if(Fe(Be),i=t.memoizedState,i===null)return $t(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)Ia(i,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=pc(e),a!==null){for(t.flags|=128,Ia(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 Ne(Be,Be.current&1|2),t.child}e=e.sibling}i.tail!==null&&qe()>yi&&(t.flags|=128,o=!0,Ia(i,!1),t.lanes=4194304)}else{if(!o)if(e=pc(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ia(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ue)return $t(t),null}else 2*qe()-i.renderingStartTime>yi&&r!==1073741824&&(t.flags|=128,o=!0,Ia(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=qe(),t.sibling=null,r=Be.current,Ne(Be,o?r&1|2:r&1),t):($t(t),null);case 22:case 23:return pm(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Yt&1073741824)!==0&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function jR(e,t){switch(Vf(t),t.tag){case 1:return Zt(t.type)&&ic(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gi(),Fe(Bt),Fe(zt),tm(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return em(t),null;case 13:if(Fe(Be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(Be),null;case 4:return gi(),null;case 10:return Kf(t.type._context),null;case 22:case 23:return pm(),null;case 24:return null;default:return null}}var Al=!1,Pt=!1,OR=typeof WeakSet=="function"?WeakSet:Set,G=null;function ri(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Ge(e,t,o)}else r.current=null}function Sf(e,t,r){try{r()}catch(o){Ge(e,t,o)}}var LS=!1;function DR(e,t){if(rf=tc,e=Ck(),Zf(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,s=-1,l=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==r||n!==0&&p.nodeType!==3||(s=a+n),p!==i||o!==0&&p.nodeType!==3||(l=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(m=p.firstChild)!==null;)f=p,p=m;for(;;){if(p===e)break t;if(f===r&&++c===n&&(s=a),f===i&&++d===o&&(l=a),(m=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(of={focusedElem:e,selectionRange:r},tc=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;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 h=x.memoizedProps,_=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:$n(t.type,h),_);v.__reactInternalSnapshotBeforeUpdate=g}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(O(163))}}catch(S){Ge(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return x=LS,LS=!1,x}function Ua(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&&Sf(t,r,i)}n=n.next}while(n!==o)}}function Ic(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 kf(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 I_(e){var t=e.alternate;t!==null&&(e.alternate=null,I_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vn],delete t[es],delete t[lf],delete t[yR],delete t[hR])),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 R_(e){return e.tag===5||e.tag===3||e.tag===4}function AS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R_(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 _f(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=oc));else if(o!==4&&(e=e.child,e!==null))for(_f(e,t,r),e=e.sibling;e!==null;)_f(e,t,r),e=e.sibling}function wf(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(wf(e,t,r),e=e.sibling;e!==null;)wf(e,t,r),e=e.sibling}var gt=null,Pn=!1;function _r(e,t,r){for(r=r.child;r!==null;)E_(e,t,r),r=r.sibling}function E_(e,t,r){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(bc,r)}catch{}switch(r.tag){case 5:Pt||ri(r,t);case 6:var o=gt,n=Pn;gt=null,_r(e,t,r),gt=o,Pn=n,gt!==null&&(Pn?(e=gt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):gt.removeChild(r.stateNode));break;case 18:gt!==null&&(Pn?(e=gt,r=r.stateNode,e.nodeType===8?Pp(e.parentNode,r):e.nodeType===1&&Pp(e,r),Xa(e)):Pp(gt,r.stateNode));break;case 4:o=gt,n=Pn,gt=r.stateNode.containerInfo,Pn=!0,_r(e,t,r),gt=o,Pn=n;break;case 0:case 11:case 14:case 15:if(!Pt&&(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)&&Sf(r,t,a),n=n.next}while(n!==o)}_r(e,t,r);break;case 1:if(!Pt&&(ri(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){Ge(r,t,s)}_r(e,t,r);break;case 21:_r(e,t,r);break;case 22:r.mode&1?(Pt=(o=Pt)||r.memoizedState!==null,_r(e,t,r),Pt=o):_r(e,t,r);break;default:_r(e,t,r)}}function FS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new OR),t.forEach(function(o){var n=ZR.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function wn(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,s=a;e:for(;s!==null;){switch(s.tag){case 5:gt=s.stateNode,Pn=!1;break e;case 3:gt=s.stateNode.containerInfo,Pn=!0;break e;case 4:gt=s.stateNode.containerInfo,Pn=!0;break e}s=s.return}if(gt===null)throw Error(O(160));E_(i,a,n),gt=null,Pn=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){Ge(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)T_(t,e),t=t.sibling}function T_(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wn(t,e),Zn(e),o&4){try{Ua(3,e,e.return),Ic(3,e)}catch(h){Ge(e,e.return,h)}try{Ua(5,e,e.return)}catch(h){Ge(e,e.return,h)}}break;case 1:wn(t,e),Zn(e),o&512&&r!==null&&ri(r,r.return);break;case 5:if(wn(t,e),Zn(e),o&512&&r!==null&&ri(r,r.return),e.flags&32){var n=e.stateNode;try{Ha(n,"")}catch(h){Ge(e,e.return,h)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&QS(n,i),Jp(s,a);var c=Jp(s,i);for(a=0;a<l.length;a+=2){var d=l[a],p=l[a+1];d==="style"?ok(n,p):d==="dangerouslySetInnerHTML"?nk(n,p):d==="children"?Ha(n,p):Tf(n,d,p,c)}switch(s){case"input":Mp(n,i);break;case"textarea":ek(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?ii(n,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?ii(n,!!i.multiple,i.defaultValue,!0):ii(n,!!i.multiple,i.multiple?[]:"",!1))}n[es]=i}catch(h){Ge(e,e.return,h)}}break;case 6:if(wn(t,e),Zn(e),o&4){if(e.stateNode===null)throw Error(O(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(h){Ge(e,e.return,h)}}break;case 3:if(wn(t,e),Zn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Xa(t.containerInfo)}catch(h){Ge(e,e.return,h)}break;case 4:wn(t,e),Zn(e);break;case 13:wn(t,e),Zn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(um=qe())),o&4&&FS(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Pt=(c=Pt)||d,wn(t,e),Pt=c):wn(t,e),Zn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(G=e,d=e.child;d!==null;){for(p=G=d;G!==null;){switch(f=G,m=f.child,f.tag){case 0:case 11:case 14:case 15:Ua(4,f,f.return);break;case 1:ri(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(h){Ge(o,r,h)}}break;case 5:ri(f,f.return);break;case 22:if(f.memoizedState!==null){US(p);continue}}m!==null?(m.return=f,G=m):US(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"):(s=p.stateNode,l=p.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=rk("display",a))}catch(h){Ge(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(h){Ge(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:wn(t,e),Zn(e),o&4&&FS(e);break;case 21:break;default:wn(t,e),Zn(e)}}function Zn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(R_(r)){var o=r;break e}r=r.return}throw Error(O(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(Ha(n,""),o.flags&=-33);var i=AS(e);wf(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,s=AS(e);_f(e,s,a);break;default:throw Error(O(161))}}catch(l){Ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function NR(e,t,r){G=e,C_(e,t,r)}function C_(e,t,r){for(var o=(e.mode&1)!==0;G!==null;){var n=G,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||Al;if(!a){var s=n.alternate,l=s!==null&&s.memoizedState!==null||Pt;s=Al;var c=Pt;if(Al=a,(Pt=l)&&!c)for(G=n;G!==null;)a=G,l=a.child,a.tag===22&&a.memoizedState!==null?MS(n):l!==null?(l.return=a,G=l):MS(n);for(;i!==null;)G=i,C_(i,t,r),i=i.sibling;G=n,Al=s,Pt=c}WS(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,G=i):WS(e,t,r)}}function WS(e){for(;G!==null;){var t=G;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Pt||Ic(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Pt)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:$n(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&wS(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}wS(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.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&&Xa(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Pt||t.flags&512&&kf(t)}catch(f){Ge(t,t.return,f)}}if(t===e){G=null;break}if(r=t.sibling,r!==null){r.return=t.return,G=r;break}G=t.return}}function US(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var r=t.sibling;if(r!==null){r.return=t.return,G=r;break}G=t.return}}function MS(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ic(4,t)}catch(l){Ge(t,r,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(l){Ge(t,n,l)}}var i=t.return;try{kf(t)}catch(l){Ge(t,i,l)}break;case 5:var a=t.return;try{kf(t)}catch(l){Ge(t,a,l)}}}catch(l){Ge(t,t.return,l)}if(t===e){G=null;break}var s=t.sibling;if(s!==null){s.return=t.return,G=s;break}G=t.return}}var LR=Math.ceil,gc=gr.ReactCurrentDispatcher,lm=gr.ReactCurrentOwner,mn=gr.ReactCurrentBatchConfig,_e=0,ft=null,et=null,vt=0,Yt=0,oi=Ur(0),st=0,as=null,So=0,Rc=0,cm=0,Ma=null,Ut=null,um=0,yi=1/0,ar=null,vc=!1,$f=null,Dr=null,Fl=!1,Rr=null,yc=0,Ba=0,Pf=null,Jl=-1,Gl=0;function jt(){return(_e&6)!==0?qe():Jl!==-1?Jl:Jl=qe()}function Nr(e){return(e.mode&1)===0?1:(_e&2)!==0&&vt!==0?vt&-vt:bR.transition!==null?(Gl===0&&(Gl=vk()),Gl):(e=Re,e!==0||(e=window.event,e=e===void 0?16:_k(e.type)),e)}function Rn(e,t,r,o){if(50<Ba)throw Ba=0,Pf=null,Error(O(185));ss(e,r,o),((_e&2)===0||e!==ft)&&(e===ft&&((_e&2)===0&&(Rc|=r),st===4&&zr(e,vt)),Ht(e,o),r===1&&_e===0&&(t.mode&1)===0&&(yi=qe()+500,$c&&Mr()))}function Ht(e,t){var r=e.callbackNode;kI(e,t);var o=ec(e,e===ft?vt:0);if(o===0)r!==null&&Kb(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Kb(r),t===1)e.tag===0?xR(BS.bind(null,e)):Mk(BS.bind(null,e)),gR(function(){(_e&6)===0&&Mr()}),r=null;else{switch(yk(o)){case 1:r=Nf;break;case 4:r=mk;break;case 16:r=Ql;break;case 536870912:r=gk;break;default:r=Ql}r=W_(r,j_.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function j_(e,t){if(Jl=-1,Gl=0,(_e&6)!==0)throw Error(O(327));var r=e.callbackNode;if(ui()&&e.callbackNode!==r)return null;var o=ec(e,e===ft?vt:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=hc(e,o);else{t=o;var n=_e;_e|=2;var i=D_();(ft!==e||vt!==t)&&(ar=null,yi=qe()+500,vo(e,t));do try{WR();break}catch(s){O_(e,s)}while(!0);Xf(),gc.current=i,_e=n,et!==null?t=0:(ft=null,vt=0,t=st)}if(t!==0){if(t===2&&(n=qp(e),n!==0&&(o=n,t=zf(e,n))),t===1)throw r=as,vo(e,0),zr(e,o),Ht(e,qe()),r;if(t===6)zr(e,o);else{if(n=e.current.alternate,(o&30)===0&&!AR(n)&&(t=hc(e,o),t===2&&(i=qp(e),i!==0&&(o=i,t=zf(e,i))),t===1))throw r=as,vo(e,0),zr(e,o),Ht(e,qe()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(O(345));case 2:po(e,Ut,ar);break;case 3:if(zr(e,o),(o&130023424)===o&&(t=um+500-qe(),10<t)){if(ec(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){jt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=sf(po.bind(null,e,Ut,ar),t);break}po(e,Ut,ar);break;case 4:if(zr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-In(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=qe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*LR(o/1960))-o,10<o){e.timeoutHandle=sf(po.bind(null,e,Ut,ar),o);break}po(e,Ut,ar);break;case 5:po(e,Ut,ar);break;default:throw Error(O(329))}}}return Ht(e,qe()),e.callbackNode===r?j_.bind(null,e):null}function zf(e,t){var r=Ma;return e.current.memoizedState.isDehydrated&&(vo(e,t).flags|=256),e=hc(e,t),e!==2&&(t=Ut,Ut=r,t!==null&&If(t)),e}function If(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function AR(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(!En(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 zr(e,t){for(t&=~cm,t&=~Rc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-In(t),o=1<<r;e[r]=-1,t&=~o}}function BS(e){if((_e&6)!==0)throw Error(O(327));ui();var t=ec(e,0);if((t&1)===0)return Ht(e,qe()),null;var r=hc(e,t);if(e.tag!==0&&r===2){var o=qp(e);o!==0&&(t=o,r=zf(e,o))}if(r===1)throw r=as,vo(e,0),zr(e,t),Ht(e,qe()),r;if(r===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,po(e,Ut,ar),Ht(e,qe()),null}function dm(e,t){var r=_e;_e|=1;try{return e(t)}finally{_e=r,_e===0&&(yi=qe()+500,$c&&Mr())}}function ko(e){Rr!==null&&Rr.tag===0&&(_e&6)===0&&ui();var t=_e;_e|=1;var r=mn.transition,o=Re;try{if(mn.transition=null,Re=1,e)return e()}finally{Re=o,mn.transition=r,_e=t,(_e&6)===0&&Mr()}}function pm(){Yt=oi.current,Fe(oi)}function vo(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,mR(r)),et!==null)for(r=et.return;r!==null;){var o=r;switch(Vf(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ic();break;case 3:gi(),Fe(Bt),Fe(zt),tm();break;case 5:em(o);break;case 4:gi();break;case 13:Fe(Be);break;case 19:Fe(Be);break;case 10:Kf(o.type._context);break;case 22:case 23:pm()}r=r.return}if(ft=e,et=e=Lr(e.current,null),vt=Yt=t,st=0,as=null,cm=Rc=So=0,Ut=Ma=null,mo!==null){for(t=0;t<mo.length;t++)if(r=mo[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}mo=null}return e}function O_(e,t){do{var r=et;try{if(Xf(),Zl.current=mc,fc){for(var o=Ze.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}fc=!1}if(bo=0,pt=at=Ze=null,Wa=!1,rs=0,lm.current=null,r===null||r.return===null){st=1,as=t,et=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=vt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=s,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 m=ES(a);if(m!==null){m.flags&=-257,TS(m,a,s,i,t),m.mode&1&&RS(i,c,t),t=m,l=c;var x=t.updateQueue;if(x===null){var h=new Set;h.add(l),t.updateQueue=h}else x.add(l);break e}else{if((t&1)===0){RS(i,c,t),fm();break e}l=Error(O(426))}}else if(Ue&&s.mode&1){var _=ES(a);if(_!==null){(_.flags&65536)===0&&(_.flags|=256),TS(_,a,s,i,t),Jf(vi(l,s));break e}}i=l=vi(l,s),st!==4&&(st=2),Ma===null?Ma=[i]:Ma.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=y_(i,l,t);_S(i,v);break e;case 1:s=l;var g=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Dr===null||!Dr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=h_(i,s,t);_S(i,S);break e}}i=i.return}while(i!==null)}L_(r)}catch(w){t=w,et===r&&r!==null&&(et=r=r.return);continue}break}while(!0)}function D_(){var e=gc.current;return gc.current=mc,e===null?mc:e}function fm(){(st===0||st===3||st===2)&&(st=4),ft===null||(So&268435455)===0&&(Rc&268435455)===0||zr(ft,vt)}function hc(e,t){var r=_e;_e|=2;var o=D_();(ft!==e||vt!==t)&&(ar=null,vo(e,t));do try{FR();break}catch(n){O_(e,n)}while(!0);if(Xf(),_e=r,gc.current=o,et!==null)throw Error(O(261));return ft=null,vt=0,st}function FR(){for(;et!==null;)N_(et)}function WR(){for(;et!==null&&!fI();)N_(et)}function N_(e){var t=F_(e.alternate,e,Yt);e.memoizedProps=e.pendingProps,t===null?L_(e):et=t,lm.current=null}function L_(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=CR(r,t,Yt),r!==null){et=r;return}}else{if(r=jR(r,t),r!==null){r.flags&=32767,et=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{st=6,et=null;return}}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);st===0&&(st=5)}function po(e,t,r){var o=Re,n=mn.transition;try{mn.transition=null,Re=1,UR(e,t,r,o)}finally{mn.transition=n,Re=o}return null}function UR(e,t,r,o){do ui();while(Rr!==null);if((_e&6)!==0)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(_I(e,i),e===ft&&(et=ft=null,vt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Fl||(Fl=!0,W_(Ql,function(){return ui(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=mn.transition,mn.transition=null;var a=Re;Re=1;var s=_e;_e|=4,lm.current=null,DR(e,r),T_(r,e),cR(of),tc=!!rf,of=rf=null,e.current=r,NR(r,e,n),mI(),_e=s,Re=a,mn.transition=i}else e.current=r;if(Fl&&(Fl=!1,Rr=e,yc=n),i=e.pendingLanes,i===0&&(Dr=null),yI(r.stateNode,o),Ht(e,qe()),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(vc)throw vc=!1,e=$f,$f=null,e;return(yc&1)!==0&&e.tag!==0&&ui(),i=e.pendingLanes,(i&1)!==0?e===Pf?Ba++:(Ba=0,Pf=e):Ba=0,Mr(),null}function ui(){if(Rr!==null){var e=yk(yc),t=mn.transition,r=Re;try{if(mn.transition=null,Re=16>e?16:e,Rr===null)var o=!1;else{if(e=Rr,Rr=null,yc=0,(_e&6)!==0)throw Error(O(331));var n=_e;for(_e|=4,G=e.current;G!==null;){var i=G,a=i.child;if((G.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(G=c;G!==null;){var d=G;switch(d.tag){case 0:case 11:case 15:Ua(8,d,i)}var p=d.child;if(p!==null)p.return=d,G=p;else for(;G!==null;){d=G;var f=d.sibling,m=d.return;if(I_(d),d===c){G=null;break}if(f!==null){f.return=m,G=f;break}G=m}}}var x=i.alternate;if(x!==null){var h=x.child;if(h!==null){x.child=null;do{var _=h.sibling;h.sibling=null,h=_}while(h!==null)}}G=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,G=a;else e:for(;G!==null;){if(i=G,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Ua(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,G=v;break e}G=i.return}}var g=e.current;for(G=g;G!==null;){a=G;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,G=y;else e:for(a=g;G!==null;){if(s=G,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:Ic(9,s)}}catch(w){Ge(s,s.return,w)}if(s===a){G=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,G=S;break e}G=s.return}}if(_e=n,Mr(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(bc,e)}catch{}o=!0}return o}finally{Re=r,mn.transition=t}}return!1}function ZS(e,t,r){t=vi(r,t),t=y_(e,t,1),e=Or(e,t,1),t=jt(),e!==null&&(ss(e,1,t),Ht(e,t))}function Ge(e,t,r){if(e.tag===3)ZS(e,e,r);else for(;t!==null;){if(t.tag===3){ZS(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Dr===null||!Dr.has(o))){e=vi(r,e),e=h_(t,e,1),t=Or(t,e,1),e=jt(),t!==null&&(ss(t,1,e),Ht(t,e));break}}t=t.return}}function MR(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=jt(),e.pingedLanes|=e.suspendedLanes&r,ft===e&&(vt&r)===r&&(st===4||st===3&&(vt&130023424)===vt&&500>qe()-um?vo(e,0):cm|=r),Ht(e,t)}function A_(e,t){t===0&&((e.mode&1)===0?t=1:(t=$l,$l<<=1,($l&130023424)===0&&($l=4194304)));var r=jt();e=fr(e,t),e!==null&&(ss(e,t,r),Ht(e,r))}function BR(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),A_(e,r)}function ZR(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(O(314))}o!==null&&o.delete(t),A_(e,r)}var F_;F_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bt.current)Mt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Mt=!1,TR(e,t,r);Mt=(e.flags&131072)!==0}else Mt=!1,Ue&&(t.flags&1048576)!==0&&Bk(t,lc,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Vl(e,t),e=t.pendingProps;var n=pi(t,zt.current);ci(t,r),n=rm(null,t,o,e,n,r);var i=om();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,Zt(o)?(i=!0,ac(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,qf(t),n.updater=zc,t.stateNode=n,n._reactInternals=t,mf(t,o,e,r),t=yf(null,t,o,!0,i,r)):(t.tag=0,Ue&&i&&Hf(t),Ct(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=VR(o),e=$n(o,e),n){case 0:t=vf(null,t,o,e,r);break e;case 1:t=OS(null,t,o,e,r);break e;case 11:t=CS(null,t,o,e,r);break e;case 14:t=jS(null,t,o,$n(o.type,e),r);break e}throw Error(O(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),vf(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),OS(e,t,o,n,r);case 3:e:{if(k_(t),e===null)throw Error(O(387));o=t.pendingProps,i=t.memoizedState,n=i.element,Xk(e,t),dc(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=vi(Error(O(423)),t),t=DS(e,t,o,r,n);break e}else if(o!==n){n=vi(Error(O(424)),t),t=DS(e,t,o,r,n);break e}else for(qt=jr(t.stateNode.containerInfo.firstChild),Qt=t,Ue=!0,zn=null,r=Jk(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(fi(),o===n){t=mr(e,t,r);break e}Ct(e,t,o,r)}t=t.child}return t;case 5:return Kk(t),e===null&&df(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,af(o,n)?a=null:i!==null&&af(o,i)&&(t.flags|=32),S_(e,t),Ct(e,t,a,r),t.child;case 6:return e===null&&df(t),null;case 13:return __(e,t,r);case 4:return Qf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=mi(t,null,o,r):Ct(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),CS(e,t,o,n,r);case 7:return Ct(e,t,t.pendingProps,r),t.child;case 8:return Ct(e,t,t.pendingProps.children,r),t.child;case 12:return Ct(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,Ne(cc,o._currentValue),o._currentValue=a,i!==null)if(En(i.value,a)){if(i.children===n.children&&!Bt.current){t=mr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=ur(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),pf(i.return,r,t),s.lanes|=r;break}l=l.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(O(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),pf(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}Ct(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,ci(t,r),n=gn(n),o=o(n),t.flags|=1,Ct(e,t,o,r),t.child;case 14:return o=t.type,n=$n(o,t.pendingProps),n=$n(o.type,n),jS(e,t,o,n,r);case 15:return x_(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:$n(o,n),Vl(e,t),t.tag=1,Zt(o)?(e=!0,ac(t)):e=!1,ci(t,r),v_(t,o,n),mf(t,o,n,r),yf(null,t,o,!0,e,r);case 19:return w_(e,t,r);case 22:return b_(e,t,r)}throw Error(O(156,t.tag))};function W_(e,t){return fk(e,t)}function HR(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 fn(e,t,r,o){return new HR(e,t,r,o)}function mm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function VR(e){if(typeof e=="function")return mm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jf)return 11;if(e===Of)return 14}return 2}function Lr(e,t){var r=e.alternate;return r===null?(r=fn(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 Xl(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")mm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Go:return yo(r.children,n,i,t);case Cf:a=8,n|=8;break;case Lp:return e=fn(12,r,t,n|2),e.elementType=Lp,e.lanes=i,e;case Ap:return e=fn(13,r,t,n),e.elementType=Ap,e.lanes=i,e;case Fp:return e=fn(19,r,t,n),e.elementType=Fp,e.lanes=i,e;case KS:return Ec(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case GS:a=10;break e;case XS:a=9;break e;case jf:a=11;break e;case Of:a=14;break e;case wr:a=16,o=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=fn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function yo(e,t,r,o){return e=fn(7,e,o,t),e.lanes=r,e}function Ec(e,t,r,o){return e=fn(22,e,o,t),e.elementType=KS,e.lanes=r,e.stateNode={isHidden:!1},e}function Op(e,t,r){return e=fn(6,e,null,t),e.lanes=r,e}function Dp(e,t,r){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JR(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=hp(0),this.expirationTimes=hp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hp(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function gm(e,t,r,o,n,i,a,s,l){return e=new JR(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=fn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qf(i),e}function GR(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jo,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function U_(e){if(!e)return Fr;e=e._reactInternals;e:{if(wo(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var r=e.type;if(Zt(r))return Uk(e,r,t)}return t}function M_(e,t,r,o,n,i,a,s,l){return e=gm(r,o,!0,e,n,i,a,s,l),e.context=U_(null),r=e.current,o=jt(),n=Nr(r),i=ur(o,n),i.callback=t??null,Or(r,i,n),e.current.lanes=n,ss(e,n,o),Ht(e,o),e}function Tc(e,t,r,o){var n=t.current,i=jt(),a=Nr(n);return r=U_(r),t.context===null?t.context=r:t.pendingContext=r,t=ur(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=Or(n,t,a),e!==null&&(Rn(e,n,a,i),Bl(e,n,a)),a}function xc(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function HS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function vm(e,t){HS(e,t),(e=e.alternate)&&HS(e,t)}function XR(){return null}var B_=typeof reportError=="function"?reportError:function(e){console.error(e)};function ym(e){this._internalRoot=e}Cc.prototype.render=ym.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Tc(e,t,null,null)};Cc.prototype.unmount=ym.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ko(function(){Tc(null,e,null,null)}),t[pr]=null}};function Cc(e){this._internalRoot=e}Cc.prototype.unstable_scheduleHydration=function(e){if(e){var t=bk();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Pr.length&&t!==0&&t<Pr[r].priority;r++);Pr.splice(r,0,e),r===0&&kk(e)}};function hm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function VS(){}function KR(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=xc(a);i.call(c)}}var a=M_(t,o,e,0,null,!1,!1,"",VS);return e._reactRootContainer=a,e[pr]=a.current,qa(e.nodeType===8?e.parentNode:e),ko(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var s=o;o=function(){var c=xc(l);s.call(c)}}var l=gm(e,0,!1,null,null,!1,!1,"",VS);return e._reactRootContainer=l,e[pr]=l.current,qa(e.nodeType===8?e.parentNode:e),ko(function(){Tc(t,l,r,o)}),l}function Oc(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var s=n;n=function(){var l=xc(a);s.call(l)}}Tc(t,a,e,n)}else a=KR(r,t,e,n,o);return xc(a)}hk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ja(t.pendingLanes);r!==0&&(Lf(t,r|1),Ht(t,qe()),(_e&6)===0&&(yi=qe()+500,Mr()))}break;case 13:ko(function(){var o=fr(e,1);if(o!==null){var n=jt();Rn(o,e,1,n)}}),vm(e,1)}};Af=function(e){if(e.tag===13){var t=fr(e,134217728);if(t!==null){var r=jt();Rn(t,e,134217728,r)}vm(e,134217728)}};xk=function(e){if(e.tag===13){var t=Nr(e),r=fr(e,t);if(r!==null){var o=jt();Rn(r,e,t,o)}vm(e,t)}};bk=function(){return Re};Sk=function(e,t){var r=Re;try{return Re=e,t()}finally{Re=r}};Xp=function(e,t,r){switch(t){case"input":if(Mp(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=wc(o);if(!n)throw Error(O(90));qS(o),Mp(o,n)}}}break;case"textarea":ek(e,r);break;case"select":t=r.value,t!=null&&ii(e,!!r.multiple,t,!1)}};sk=dm;lk=ko;var YR={usingClientEntryPoint:!1,Events:[cs,qo,wc,ik,ak,dm]},Ra={findFiberByHostInstance:fo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qR={bundleType:Ra.bundleType,version:Ra.version,rendererPackageName:Ra.rendererPackageName,rendererConfig:Ra.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dk(e),e===null?null:e.stateNode},findFiberByHostInstance:Ra.findFiberByHostInstance||XR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ea=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ea.isDisabled&&Ea.supportsFiber))try{bc=Ea.inject(qR),Jn=Ea}catch{}var Ea;nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YR;nn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hm(t))throw Error(O(200));return GR(e,t,null,r)};nn.createRoot=function(e,t){if(!hm(e))throw Error(O(299));var r=!1,o="",n=B_;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=gm(e,1,!1,null,null,r,!1,o,n),e[pr]=t.current,qa(e.nodeType===8?e.parentNode:e),new ym(t)};nn.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=dk(t),e=e===null?null:e.stateNode,e};nn.flushSync=function(e){return ko(e)};nn.hydrate=function(e,t,r){if(!jc(t))throw Error(O(200));return Oc(null,e,t,!0,r)};nn.hydrateRoot=function(e,t,r){if(!hm(e))throw Error(O(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=B_;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=M_(t,null,e,1,r??null,n,!1,i,a),e[pr]=t.current,qa(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 Cc(t)};nn.render=function(e,t,r){if(!jc(t))throw Error(O(200));return Oc(null,e,t,!1,r)};nn.unmountComponentAtNode=function(e){if(!jc(e))throw Error(O(40));return e._reactRootContainer?(ko(function(){Oc(null,null,e,!1,function(){e._reactRootContainer=null,e[pr]=null})}),!0):!1};nn.unstable_batchedUpdates=dm;nn.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!jc(r))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Oc(e,t,r,!1,o)};nn.version="18.3.1-next-f1338f8080-20240426"});var J_=or((y2,V_)=>{"use strict";function H_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(H_)}catch(e){console.error(e)}}H_(),V_.exports=Z_()});var X_=or(xm=>{"use strict";var G_=J_();xm.createRoot=G_.createRoot,xm.hydrateRoot=G_.hydrateRoot;var h2});var y$=or($d=>{"use strict";var Wj=me(),Uj=Symbol.for("react.element"),Mj=Symbol.for("react.fragment"),Bj=Object.prototype.hasOwnProperty,Zj=Wj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hj={key:!0,ref:!0,__self:!0,__source:!0};function v$(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)Bj.call(t,o)&&!Hj.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:Uj,type:e,key:i,ref:a,props:n,_owner:Zj.current}}$d.Fragment=Mj;$d.jsx=v$;$d.jsxs=v$});var J=or(($F,h$)=>{"use strict";h$.exports=y$()});var zz=P(me(),1),Iz=P(X_(),1);var bt=P(me(),1);var Gs=P(me(),1);var u={};ir(u,{$brand:()=>Sm,$input:()=>Mv,$output:()=>Uv,NEVER:()=>bm,TimePrecision:()=>Vv,ZodAny:()=>Dh,ZodArray:()=>Fh,ZodBase64:()=>sd,ZodBase64URL:()=>ld,ZodBigInt:()=>Ki,ZodBigIntFormat:()=>dd,ZodBoolean:()=>Xi,ZodCIDRv4:()=>id,ZodCIDRv6:()=>ad,ZodCUID:()=>qu,ZodCUID2:()=>Qu,ZodCatch:()=>sx,ZodCodec:()=>Ms,ZodCustom:()=>Bs,ZodCustomStringFormat:()=>Ji,ZodDate:()=>Ls,ZodDefault:()=>tx,ZodDiscriminatedUnion:()=>Uh,ZodE164:()=>cd,ZodEmail:()=>Xu,ZodEmoji:()=>Ku,ZodEnum:()=>Hi,ZodError:()=>RC,ZodExactOptional:()=>qh,ZodFile:()=>Kh,ZodFirstPartyTypeKind:()=>bx,ZodFunction:()=>yx,ZodGUID:()=>Cs,ZodIPv4:()=>rd,ZodIPv6:()=>od,ZodISODate:()=>Bu,ZodISODateTime:()=>Mu,ZodISODuration:()=>Hu,ZodISOTime:()=>Zu,ZodIntersection:()=>Mh,ZodIssueCode:()=>TC,ZodJWT:()=>ud,ZodKSUID:()=>nd,ZodLazy:()=>mx,ZodLiteral:()=>Xh,ZodMAC:()=>Ih,ZodMap:()=>Jh,ZodNaN:()=>cx,ZodNanoID:()=>Yu,ZodNever:()=>Lh,ZodNonOptional:()=>yd,ZodNull:()=>jh,ZodNullable:()=>ex,ZodNumber:()=>Gi,ZodNumberFormat:()=>jo,ZodObject:()=>Fs,ZodOptional:()=>vd,ZodPipe:()=>Us,ZodPrefault:()=>rx,ZodPreprocess:()=>ux,ZodPromise:()=>vx,ZodReadonly:()=>dx,ZodRealError:()=>Gt,ZodRecord:()=>Zi,ZodSet:()=>Gh,ZodString:()=>Vi,ZodStringFormat:()=>Ce,ZodSuccess:()=>ax,ZodSymbol:()=>Th,ZodTemplateLiteral:()=>fx,ZodTransform:()=>Yh,ZodTuple:()=>Zh,ZodType:()=>ce,ZodULID:()=>ed,ZodURL:()=>Ns,ZodUUID:()=>qn,ZodUndefined:()=>Ch,ZodUnion:()=>Ws,ZodUnknown:()=>Nh,ZodVoid:()=>Ah,ZodXID:()=>td,ZodXor:()=>Wh,_ZodString:()=>Gu,_default:()=>nx,_function:()=>L1,any:()=>m1,array:()=>As,base64:()=>Yw,base64url:()=>qw,bigint:()=>c1,boolean:()=>Eh,catch:()=>lx,check:()=>A1,cidrv4:()=>Xw,cidrv6:()=>Kw,clone:()=>Dt,codec:()=>j1,coerce:()=>Sx,config:()=>Xe,core:()=>hr,cuid:()=>Uw,cuid2:()=>Mw,custom:()=>F1,date:()=>v1,decode:()=>Sh,decodeAsync:()=>_h,describe:()=>W1,discriminatedUnion:()=>k1,e164:()=>Qw,email:()=>Tw,emoji:()=>Fw,encode:()=>bh,encodeAsync:()=>kh,endsWith:()=>Oi,enum:()=>md,exactOptional:()=>Qh,file:()=>R1,flattenError:()=>hs,float32:()=>i1,float64:()=>a1,formatError:()=>xs,fromJSONSchema:()=>J1,function:()=>L1,getErrorMap:()=>jC,globalRegistry:()=>ht,gt:()=>Kn,gte:()=>Lt,guid:()=>Cw,hash:()=>o1,hex:()=>r1,hostname:()=>n1,httpUrl:()=>Aw,includes:()=>Ci,instanceof:()=>M1,int:()=>Vu,int32:()=>s1,int64:()=>u1,intersection:()=>Bh,invertCodec:()=>O1,ipv4:()=>Vw,ipv6:()=>Gw,iso:()=>Bi,json:()=>Z1,jwt:()=>e1,keyof:()=>y1,ksuid:()=>Hw,lazy:()=>gx,length:()=>To,literal:()=>I1,locales:()=>zs,looseObject:()=>b1,looseRecord:()=>w1,lowercase:()=>Ei,lt:()=>Xn,lte:()=>on,mac:()=>Jw,map:()=>$1,maxLength:()=>Eo,maxSize:()=>Xr,meta:()=>U1,mime:()=>Di,minLength:()=>yr,minSize:()=>Yn,multipleOf:()=>Gr,nan:()=>C1,nanoid:()=>Ww,nativeEnum:()=>z1,negative:()=>Cu,never:()=>pd,nonnegative:()=>Ou,nonoptional:()=>ix,nonpositive:()=>ju,normalize:()=>Ni,null:()=>Oh,nullable:()=>Os,nullish:()=>E1,number:()=>Rh,object:()=>h1,optional:()=>js,overwrite:()=>Cn,parse:()=>vh,parseAsync:()=>yh,partialRecord:()=>_1,pipe:()=>Ju,positive:()=>Tu,prefault:()=>ox,preprocess:()=>H1,prettifyError:()=>Om,promise:()=>N1,property:()=>Du,readonly:()=>px,record:()=>Vh,refine:()=>hx,regex:()=>Ri,regexes:()=>rn,registry:()=>uu,safeDecode:()=>$h,safeDecodeAsync:()=>zh,safeEncode:()=>wh,safeEncodeAsync:()=>Ph,safeParse:()=>hh,safeParseAsync:()=>xh,set:()=>P1,setErrorMap:()=>CC,size:()=>Ro,slugify:()=>Wi,startsWith:()=>ji,strictObject:()=>x1,string:()=>Ts,stringFormat:()=>t1,stringbool:()=>B1,success:()=>T1,superRefine:()=>xx,symbol:()=>p1,templateLiteral:()=>D1,toJSONSchema:()=>Fu,toLowerCase:()=>Ai,toUpperCase:()=>Fi,transform:()=>gd,treeifyError:()=>jm,trim:()=>Li,tuple:()=>Hh,uint32:()=>l1,uint64:()=>d1,ulid:()=>Bw,undefined:()=>f1,union:()=>fd,unknown:()=>Co,uppercase:()=>Ti,url:()=>Lw,util:()=>C,uuid:()=>jw,uuidv4:()=>Ow,uuidv6:()=>Dw,uuidv7:()=>Nw,void:()=>g1,xid:()=>Zw,xor:()=>S1});var hr={};ir(hr,{$ZodAny:()=>cv,$ZodArray:()=>mv,$ZodAsyncError:()=>Tn,$ZodBase64:()=>Qg,$ZodBase64URL:()=>ev,$ZodBigInt:()=>nu,$ZodBigIntFormat:()=>iv,$ZodBoolean:()=>_s,$ZodCIDRv4:()=>Kg,$ZodCIDRv6:()=>Yg,$ZodCUID:()=>Ag,$ZodCUID2:()=>Fg,$ZodCatch:()=>Cv,$ZodCheck:()=>Oe,$ZodCheckBigIntFormat:()=>mg,$ZodCheckEndsWith:()=>Pg,$ZodCheckGreaterThan:()=>Kc,$ZodCheckIncludes:()=>wg,$ZodCheckLengthEquals:()=>bg,$ZodCheckLessThan:()=>Xc,$ZodCheckLowerCase:()=>kg,$ZodCheckMaxLength:()=>hg,$ZodCheckMaxSize:()=>gg,$ZodCheckMimeType:()=>Ig,$ZodCheckMinLength:()=>xg,$ZodCheckMinSize:()=>vg,$ZodCheckMultipleOf:()=>pg,$ZodCheckNumberFormat:()=>fg,$ZodCheckOverwrite:()=>Rg,$ZodCheckProperty:()=>zg,$ZodCheckRegex:()=>Sg,$ZodCheckSizeEquals:()=>yg,$ZodCheckStartsWith:()=>$g,$ZodCheckStringFormat:()=>zi,$ZodCheckUpperCase:()=>_g,$ZodCodec:()=>$s,$ZodCustom:()=>Wv,$ZodCustomStringFormat:()=>rv,$ZodDate:()=>fv,$ZodDefault:()=>Iv,$ZodDiscriminatedUnion:()=>yv,$ZodE164:()=>tv,$ZodEmail:()=>Og,$ZodEmoji:()=>Ng,$ZodEncodeError:()=>Br,$ZodEnum:()=>kv,$ZodError:()=>ys,$ZodExactOptional:()=>Pv,$ZodFile:()=>wv,$ZodFunction:()=>Lv,$ZodGUID:()=>Cg,$ZodIPv4:()=>Jg,$ZodIPv6:()=>Gg,$ZodISODate:()=>Zg,$ZodISODateTime:()=>Bg,$ZodISODuration:()=>Vg,$ZodISOTime:()=>Hg,$ZodIntersection:()=>hv,$ZodJWT:()=>nv,$ZodKSUID:()=>Mg,$ZodLazy:()=>Fv,$ZodLiteral:()=>_v,$ZodMAC:()=>Xg,$ZodMap:()=>bv,$ZodNaN:()=>jv,$ZodNanoID:()=>Lg,$ZodNever:()=>dv,$ZodNonOptional:()=>Ev,$ZodNull:()=>lv,$ZodNullable:()=>zv,$ZodNumber:()=>tu,$ZodNumberFormat:()=>ov,$ZodObject:()=>P0,$ZodObjectJIT:()=>gv,$ZodOptional:()=>ou,$ZodPipe:()=>iu,$ZodPrefault:()=>Rv,$ZodPreprocess:()=>Ov,$ZodPromise:()=>Av,$ZodReadonly:()=>Dv,$ZodRealError:()=>Jt,$ZodRecord:()=>xv,$ZodRegistry:()=>cu,$ZodSet:()=>Sv,$ZodString:()=>Io,$ZodStringFormat:()=>Te,$ZodSuccess:()=>Tv,$ZodSymbol:()=>av,$ZodTemplateLiteral:()=>Nv,$ZodTransform:()=>$v,$ZodTuple:()=>ru,$ZodType:()=>ie,$ZodULID:()=>Wg,$ZodURL:()=>Dg,$ZodUUID:()=>jg,$ZodUndefined:()=>sv,$ZodUnion:()=>ws,$ZodUnknown:()=>uv,$ZodVoid:()=>pv,$ZodXID:()=>Ug,$ZodXor:()=>vv,$brand:()=>Sm,$constructor:()=>b,$input:()=>Mv,$output:()=>Uv,Doc:()=>ks,JSONSchema:()=>Iw,JSONSchemaGenerator:()=>Wu,NEVER:()=>bm,TimePrecision:()=>Vv,_any:()=>fy,_array:()=>by,_base64:()=>zu,_base64url:()=>Iu,_bigint:()=>ay,_boolean:()=>oy,_catch:()=>SC,_check:()=>zw,_cidrv4:()=>$u,_cidrv6:()=>Pu,_coercedBigint:()=>sy,_coercedBoolean:()=>iy,_coercedDate:()=>hy,_coercedNumber:()=>qv,_coercedString:()=>Zv,_cuid:()=>hu,_cuid2:()=>xu,_custom:()=>ky,_date:()=>yy,_decode:()=>Wc,_decodeAsync:()=>Mc,_default:()=>hC,_discriminatedUnion:()=>aC,_e164:()=>Ru,_email:()=>du,_emoji:()=>vu,_encode:()=>Fc,_encodeAsync:()=>Uc,_endsWith:()=>Oi,_enum:()=>pC,_file:()=>Sy,_float32:()=>ey,_float64:()=>ty,_gt:()=>Kn,_gte:()=>Lt,_guid:()=>Is,_includes:()=>Ci,_int:()=>Qv,_int32:()=>ny,_int64:()=>ly,_intersection:()=>sC,_ipv4:()=>_u,_ipv6:()=>wu,_isoDate:()=>Gv,_isoDateTime:()=>Jv,_isoDuration:()=>Kv,_isoTime:()=>Xv,_jwt:()=>Eu,_ksuid:()=>ku,_lazy:()=>$C,_length:()=>To,_literal:()=>mC,_lowercase:()=>Ei,_lt:()=>Xn,_lte:()=>on,_mac:()=>Hv,_map:()=>uC,_max:()=>on,_maxLength:()=>Eo,_maxSize:()=>Xr,_mime:()=>Di,_min:()=>Lt,_minLength:()=>yr,_minSize:()=>Yn,_multipleOf:()=>Gr,_nan:()=>xy,_nanoid:()=>yu,_nativeEnum:()=>fC,_negative:()=>Cu,_never:()=>gy,_nonnegative:()=>Ou,_nonoptional:()=>xC,_nonpositive:()=>ju,_normalize:()=>Ni,_null:()=>py,_nullable:()=>yC,_number:()=>Yv,_optional:()=>vC,_overwrite:()=>Cn,_parse:()=>_i,_parseAsync:()=>wi,_pipe:()=>kC,_positive:()=>Tu,_promise:()=>PC,_property:()=>Du,_readonly:()=>_C,_record:()=>cC,_refine:()=>_y,_regex:()=>Ri,_safeDecode:()=>Zc,_safeDecodeAsync:()=>Vc,_safeEncode:()=>Bc,_safeEncodeAsync:()=>Hc,_safeParse:()=>$i,_safeParseAsync:()=>Pi,_set:()=>dC,_size:()=>Ro,_slugify:()=>Wi,_startsWith:()=>ji,_string:()=>Bv,_stringFormat:()=>Ui,_stringbool:()=>zy,_success:()=>bC,_superRefine:()=>wy,_symbol:()=>uy,_templateLiteral:()=>wC,_toLowerCase:()=>Ai,_toUpperCase:()=>Fi,_transform:()=>gC,_trim:()=>Li,_tuple:()=>lC,_uint32:()=>ry,_uint64:()=>cy,_ulid:()=>bu,_undefined:()=>dy,_union:()=>oC,_unknown:()=>my,_uppercase:()=>Ti,_url:()=>Rs,_uuid:()=>pu,_uuidv4:()=>fu,_uuidv6:()=>mu,_uuidv7:()=>gu,_void:()=>vy,_xid:()=>Su,_xor:()=>iC,clone:()=>Dt,config:()=>Xe,createStandardJSONSchemaMethod:()=>Mi,createToJSONSchemaMethod:()=>Iy,decode:()=>PE,decodeAsync:()=>IE,describe:()=>$y,encode:()=>$E,encodeAsync:()=>zE,extractDefs:()=>Yr,finalize:()=>qr,flattenError:()=>hs,formatError:()=>xs,globalConfig:()=>$o,globalRegistry:()=>ht,initializeContext:()=>Kr,isValidBase64:()=>qg,isValidBase64URL:()=>k0,isValidJWT:()=>_0,locales:()=>zs,meta:()=>Py,parse:()=>Lc,parseAsync:()=>Ac,prettifyError:()=>Om,process:()=>Pe,regexes:()=>rn,registry:()=>uu,safeDecode:()=>EE,safeDecodeAsync:()=>CE,safeEncode:()=>RE,safeEncodeAsync:()=>TE,safeParse:()=>Dm,safeParseAsync:()=>Nm,toDotPath:()=>t0,toJSONSchema:()=>Fu,treeifyError:()=>jm,util:()=>C,version:()=>Eg});var K_,bm=Object.freeze({status:"aborted"});function b(e,t,r){function o(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let c=a.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in s||(s[f]=c[f].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;let c=r?.Parent?new i:this;o(c,s),(l=c._zod).deferred??(l.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Sm=Symbol("zod_brand"),Tn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Br=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(K_=globalThis).__zod_globalConfig??(K_.__zod_globalConfig={});var $o=globalThis.__zod_globalConfig;function Xe(e){return e&&Object.assign($o,e),$o}var C={};ir(C,{BIGINT_FORMAT_RANGES:()=>Tm,Class:()=>_m,NUMBER_FORMAT_RANGES:()=>Em,aborted:()=>Jr,allowsEval:()=>Pm,assert:()=>rE,assertEqual:()=>QR,assertIs:()=>tE,assertNever:()=>nE,assertNotEqual:()=>eE,assignProp:()=>Hr,base64ToUint8Array:()=>q_,base64urlToUint8Array:()=>bE,cached:()=>Si,captureStackTrace:()=>Nc,cleanEnum:()=>xE,cleanRegex:()=>fs,clone:()=>Dt,cloneDef:()=>iE,createTransparentProxy:()=>dE,defineLazy:()=>ge,esc:()=>Dc,escapeRegex:()=>yn,explicitlyAborted:()=>Cm,extend:()=>mE,finalizeIssue:()=>Nt,floatSafeRemainder:()=>wm,getElementAtPath:()=>aE,getEnumValues:()=>ps,getLengthableOrigin:()=>vs,getParsedType:()=>uE,getSizableOrigin:()=>gs,hexToUint8Array:()=>kE,isObject:()=>Po,isPlainObject:()=>Vr,issue:()=>ki,joinValues:()=>k,jsonStringifyReplacer:()=>bi,merge:()=>vE,mergeDefs:()=>vr,normalizeParams:()=>N,nullish:()=>Zr,numKeys:()=>cE,objectClone:()=>oE,omit:()=>fE,optionalKeys:()=>Rm,parsedType:()=>T,partial:()=>yE,pick:()=>pE,prefixIssues:()=>Vt,primitiveTypes:()=>Im,promiseAllObject:()=>sE,propertyKeyTypes:()=>ms,randomString:()=>lE,required:()=>hE,safeExtend:()=>gE,shallowClone:()=>zm,slugify:()=>$m,stringifyPrimitive:()=>R,uint8ArrayToBase64:()=>Q_,uint8ArrayToBase64url:()=>SE,uint8ArrayToHex:()=>_E,unwrapMessage:()=>ds});function QR(e){return e}function eE(e){return e}function tE(e){}function nE(e){throw new Error("Unexpected value in exhaustive check")}function rE(e){}function ps(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=>R(r)).join(t)}function bi(e,t){return typeof t=="bigint"?t.toString():t}function Si(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Zr(e){return e==null}function fs(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function wm(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 Y_=Symbol("evaluating");function ge(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Y_)return o===void 0&&(o=Y_,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function oE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Hr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function vr(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function iE(e){return vr(e._zod.def)}function aE(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function sE(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 lE(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Dc(e){return JSON.stringify(e)}function $m(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Nc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Po(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Pm=Si(()=>{if($o.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Vr(e){if(Po(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Po(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function zm(e){return Vr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function cE(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var uE=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}`)}},ms=new Set(["string","number","symbol"]),Im=new Set(["string","number","bigint","boolean","symbol","undefined"]);function yn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function N(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 dE(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 R(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Rm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Em={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]},Tm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function pE(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=vr(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Hr(this,"shape",a),a},checks:[]});return Dt(e,i)}function fE(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=vr(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Hr(this,"shape",a),a},checks:[]});return Dt(e,i)}function mE(e,t){if(!Vr(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=vr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Hr(this,"shape",i),i}});return Dt(e,n)}function gE(e,t){if(!Vr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=vr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Hr(this,"shape",o),o}});return Dt(e,r)}function vE(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=vr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Hr(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Dt(e,r)}function yE(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=vr(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(l[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)l[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return Hr(this,"shape",l),l},checks:[]});return Dt(t,a)}function hE(e,t,r){let o=vr(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 Hr(this,"shape",i),i}});return Dt(t,o)}function Jr(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 Cm(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 Vt(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function ds(e){return typeof e=="string"?e:e?.message}function Nt(e,t,r){let o=e.message?e.message:ds(e.inst?._zod.def?.error?.(e))??ds(t?.error?.(e))??ds(r.customError?.(e))??ds(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function gs(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function vs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function T(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 ki(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function xE(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function q_(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 Q_(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function bE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return q_(t+r)}function SE(e){return Q_(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function kE(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 _E(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var _m=class{constructor(...t){}};var e0=(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,bi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ys=b("$ZodError",e0),Jt=b("$ZodError",e0,{Parent:Error});function hs(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 xs(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(s=>o({issues:s},[...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 s=[...i,...a.path];if(s.length===0)r._errors.push(t(a));else{let l=r,c=0;for(;c<s.length;){let d=s[c];c===s.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(a))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}}};return o(e),r}function jm(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>o({issues:c},[...i,...l.path]));else if(l.code==="invalid_key")o({issues:l.issues},[...i,...l.path]);else if(l.code==="invalid_element")o({issues:l.issues},[...i,...l.path]);else{let c=[...i,...l.path];if(c.length===0){r.errors.push(t(l));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],m=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=[]),(s=d.items)[f]??(s[f]={errors:[]}),d=d.items[f]),m&&d.errors.push(t(l)),p++}}};return o(e),r}function t0(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 Om(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 ${t0(o.path)}`);return t.join(`
|
|
9
|
+
`)}var _i=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 Tn;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>Nt(l,i,Xe())));throw Nc(s,n?.callee),s}return a.value},Lc=_i(Jt),wi=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 s=new(n?.Err??e)(a.issues.map(l=>Nt(l,i,Xe())));throw Nc(s,n?.callee),s}return a.value},Ac=wi(Jt),$i=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 Tn;return i.issues.length?{success:!1,error:new(e??ys)(i.issues.map(a=>Nt(a,n,Xe())))}:{success:!0,data:i.value}},Dm=$i(Jt),Pi=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=>Nt(a,n,Xe())))}:{success:!0,data:i.value}},Nm=Pi(Jt),Fc=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return _i(e)(t,r,n)},$E=Fc(Jt),Wc=e=>(t,r,o)=>_i(e)(t,r,o),PE=Wc(Jt),Uc=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return wi(e)(t,r,n)},zE=Uc(Jt),Mc=e=>async(t,r,o)=>wi(e)(t,r,o),IE=Mc(Jt),Bc=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return $i(e)(t,r,n)},RE=Bc(Jt),Zc=e=>(t,r,o)=>$i(e)(t,r,o),EE=Zc(Jt),Hc=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Pi(e)(t,r,n)},TE=Hc(Jt),Vc=e=>async(t,r,o)=>Pi(e)(t,r,o),CE=Vc(Jt);var rn={};ir(rn,{base64:()=>qm,base64url:()=>Jc,bigint:()=>ig,boolean:()=>sg,browserEmail:()=>WE,cidrv4:()=>Km,cidrv6:()=>Ym,cuid:()=>Lm,cuid2:()=>Am,date:()=>tg,datetime:()=>rg,domain:()=>BE,duration:()=>Bm,e164:()=>eg,email:()=>Hm,emoji:()=>Vm,extendedDuration:()=>jE,guid:()=>Zm,hex:()=>ZE,hostname:()=>ME,html5Email:()=>LE,httpProtocol:()=>Qm,idnEmail:()=>FE,integer:()=>ag,ipv4:()=>Jm,ipv6:()=>Gm,ksuid:()=>Um,lowercase:()=>ug,mac:()=>Xm,md5_base64:()=>VE,md5_base64url:()=>JE,md5_hex:()=>HE,nanoid:()=>Mm,null:()=>lg,number:()=>Gc,rfc5322Email:()=>AE,sha1_base64:()=>XE,sha1_base64url:()=>KE,sha1_hex:()=>GE,sha256_base64:()=>qE,sha256_base64url:()=>QE,sha256_hex:()=>YE,sha384_base64:()=>tT,sha384_base64url:()=>nT,sha384_hex:()=>eT,sha512_base64:()=>oT,sha512_base64url:()=>iT,sha512_hex:()=>rT,string:()=>og,time:()=>ng,ulid:()=>Fm,undefined:()=>cg,unicodeEmail:()=>n0,uppercase:()=>dg,uuid:()=>zo,uuid4:()=>OE,uuid6:()=>DE,uuid7:()=>NE,xid:()=>Wm});var Lm=/^[cC][0-9a-z]{6,}$/,Am=/^[0-9a-z]+$/,Fm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Wm=/^[0-9a-vA-V]{20}$/,Um=/^[A-Za-z0-9]{27}$/,Mm=/^[a-zA-Z0-9_-]{21}$/,Bm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jE=/^[-+]?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)?)??$/,Zm=/^([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})$/,zo=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)$/,OE=zo(4),DE=zo(6),NE=zo(7),Hm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,LE=/^[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])?)*$/,AE=/^(([^<>()\[\]\\.,;:\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,}))$/,n0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,FE=n0,WE=/^[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])?)*$/,UE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Vm(){return new RegExp(UE,"u")}var Jm=/^(?:(?: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])$/,Gm=/^(([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}|:))$/,Xm=e=>{let t=yn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Km=/^((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])$/,Ym=/^(([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])$/,qm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jc=/^[A-Za-z0-9_-]*$/,ME=/^(?=.{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])?)*\.?$/,BE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Qm=/^https?$/,eg=/^\+[1-9]\d{6,14}$/,r0="(?:(?:\\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])))",tg=new RegExp(`^${r0}$`);function o0(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 ng(e){return new RegExp(`^${o0(e)}$`)}function rg(e){let t=o0({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(`^${r0}T(?:${o})$`)}var og=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ig=/^-?\d+n?$/,ag=/^-?\d+$/,Gc=/^-?\d+(?:\.\d+)?$/,sg=/^(?:true|false)$/i,lg=/^null$/i;var cg=/^undefined$/i;var ug=/^[^A-Z]*$/,dg=/^[^a-z]*$/,ZE=/^[0-9a-fA-F]*$/;function bs(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ss(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var HE=/^[0-9a-fA-F]{32}$/,VE=bs(22,"=="),JE=Ss(22),GE=/^[0-9a-fA-F]{40}$/,XE=bs(27,"="),KE=Ss(27),YE=/^[0-9a-fA-F]{64}$/,qE=bs(43,"="),QE=Ss(43),eT=/^[0-9a-fA-F]{96}$/,tT=bs(64,""),nT=Ss(64),rT=/^[0-9a-fA-F]{128}$/,oT=bs(86,"=="),iT=Ss(86);var Oe=b("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),a0={number:"number",bigint:"bigint",object:"date"},Xc=b("$ZodCheckLessThan",(e,t)=>{Oe.init(e,t);let r=a0[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})}}),Kc=b("$ZodCheckGreaterThan",(e,t)=>{Oe.init(e,t);let r=a0[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})}}),pg=b("$ZodCheckMultipleOf",(e,t)=>{Oe.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):wm(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})}}),fg=b("$ZodCheckNumberFormat",(e,t)=>{Oe.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Em[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=ag)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),mg=b("$ZodCheckBigIntFormat",(e,t)=>{Oe.init(e,t);let[r,o]=Tm[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})}}),gg=b("$ZodCheckMaxSize",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Zr(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:gs(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),vg=b("$ZodCheckMinSize",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Zr(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:gs(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),yg=b("$ZodCheckSizeEquals",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Zr(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:gs(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})}}),hg=b("$ZodCheckMaxLength",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Zr(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=vs(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),xg=b("$ZodCheckMinLength",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Zr(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=vs(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),bg=b("$ZodCheckLengthEquals",(e,t)=>{var r;Oe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Zr(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=vs(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),zi=b("$ZodCheckStringFormat",(e,t)=>{var r,o;Oe.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=()=>{})}),Sg=b("$ZodCheckRegex",(e,t)=>{zi.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})}}),kg=b("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ug),zi.init(e,t)}),_g=b("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=dg),zi.init(e,t)}),wg=b("$ZodCheckIncludes",(e,t)=>{Oe.init(e,t);let r=yn(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})}}),$g=b("$ZodCheckStartsWith",(e,t)=>{Oe.init(e,t);let r=new RegExp(`^${yn(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})}}),Pg=b("$ZodCheckEndsWith",(e,t)=>{Oe.init(e,t);let r=new RegExp(`.*${yn(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 i0(e,t,r){e.issues.length&&t.issues.push(...Vt(r,e.issues))}var zg=b("$ZodCheckProperty",(e,t)=>{Oe.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=>i0(n,r,t.property));i0(o,r,t.property)}}),Ig=b("$ZodCheckMimeType",(e,t)=>{Oe.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})}}),Rg=b("$ZodCheckOverwrite",(e,t)=>{Oe.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var ks=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 Ig={major:4,minor:4,patch:3};var ie=b("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ig;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,s,l)=>{let c=Vr(a),d;for(let p of s){if(p._zod.def.when){if(Em(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,m=p._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new Tn;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(c||(c=Vr(a,f)))});else{if(a.issues.length===f)continue;c||(c=Vr(a,f))}}return d?d.then(()=>a):a},i=(a,s,l)=>{if(Vr(a))return a.aborted=!0,a;let c=n(s,o,l);if(c instanceof Promise){if(l.async===!1)throw new Tn;return c.then(d=>e._zod.parse(d,l))}return e._zod.parse(c,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(d=>i(d,a,s)):i(c,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new Tn;return l.then(c=>n(c,o,s))}return n(l,o,s)}}ge(e,"~standard",()=>({validate:n=>{try{let i=jm(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Om(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),zo=b("$ZodString",(e,t)=>{ie.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ng(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}}),Te=b("$ZodStringFormat",(e,t)=>{Pi.init(e,t),zo.init(e,t)}),Eg=b("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Mm),Te.init(e,t)}),Tg=b("$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=Po(o))}else t.pattern??(t.pattern=Po());Te.init(e,t)}),Cg=b("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Bm),Te.init(e,t)}),jg=b("$ZodURL",(e,t)=>{Te.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===Ym.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})}}}),Og=b("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Zm()),Te.init(e,t)}),Dg=b("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Wm),Te.init(e,t)}),Ng=b("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Dm),Te.init(e,t)}),Lg=b("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Nm),Te.init(e,t)}),Ag=b("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Lm),Te.init(e,t)}),Fg=b("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Am),Te.init(e,t)}),Wg=b("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Fm),Te.init(e,t)}),Ug=b("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tg(t)),Te.init(e,t)}),Mg=b("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Qm),Te.init(e,t)}),Bg=b("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=eg(t)),Te.init(e,t)}),Zg=b("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Um),Te.init(e,t)}),Hg=b("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Hm),Te.init(e,t),e._zod.bag.format="ipv4"}),Vg=b("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Vm),Te.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})}}}),Jg=b("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Jm(t.delimiter)),Te.init(e,t),e._zod.bag.format="mac"}),Gg=b("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Gm),Te.init(e,t)}),Xg=b("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Xm),Te.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 Kg(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Yg=b("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Km),Te.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Kg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function b0(e){if(!Hc.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Kg(r)}var qg=b("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Hc),Te.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{b0(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Qg=b("$ZodE164",(e,t)=>{t.pattern??(t.pattern=qm),Te.init(e,t)});function S0(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 ev=b("$ZodJWT",(e,t)=>{Te.init(e,t),e._zod.check=r=>{S0(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),tv=b("$ZodCustomStringFormat",(e,t)=>{Te.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})}}),Qc=b("$ZodNumber",(e,t)=>{ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??Vc,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}}),nv=b("$ZodNumberFormat",(e,t)=>{dg.init(e,t),Qc.init(e,t)}),ks=b("$ZodBoolean",(e,t)=>{ie.init(e,t),e._zod.pattern=ig,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}}),eu=b("$ZodBigInt",(e,t)=>{ie.init(e,t),e._zod.pattern=rg,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}}),rv=b("$ZodBigIntFormat",(e,t)=>{pg.init(e,t),eu.init(e,t)}),ov=b("$ZodSymbol",(e,t)=>{ie.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}}),iv=b("$ZodUndefined",(e,t)=>{ie.init(e,t),e._zod.pattern=sg,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}}),av=b("$ZodNull",(e,t)=>{ie.init(e,t),e._zod.pattern=ag,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}}),sv=b("$ZodAny",(e,t)=>{ie.init(e,t),e._zod.parse=r=>r}),lv=b("$ZodUnknown",(e,t)=>{ie.init(e,t),e._zod.parse=r=>r}),cv=b("$ZodNever",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),uv=b("$ZodVoid",(e,t)=>{ie.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}}),dv=b("$ZodDate",(e,t)=>{ie.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 a0(e,t,r){e.issues.length&&t.issues.push(...Vt(r,e.issues)),t.value[r]=e.value}var pv=b("$ZodArray",(e,t)=>{ie.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 s=n[a],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?i.push(l.then(c=>a0(c,r,a))):a0(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function qc(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...Vt(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 k0(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=zm(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function _0(e,t,r,o,n,i){let a=[],s=n.keySet,l=n.catchall._zod,c=l.def.type,d=l.optin==="optional",p=l.optout==="optional";for(let f in t){if(f==="__proto__"||s.has(f))continue;if(c==="never"){a.push(f);continue}let m=l.run({value:t[f],issues:[]},o);m instanceof Promise?e.push(m.then(x=>qc(x,r,f,t,d,p))):qc(m,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 w0=b("$ZodObject",(e,t)=>{if(ie.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let o=bi(()=>k0(t));ge(e._zod,"propValues",()=>{let s=t.shape,l={};for(let c in s){let d=s[c]._zod;if(d.values){l[c]??(l[c]=new Set);for(let p of d.values)l[c].add(p)}}return l});let n=$o,i=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=o.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let d=[],p=a.shape;for(let f of a.keys){let m=p[f],x=m._zod.optin==="optional",h=m._zod.optout==="optional",_=m._zod.run({value:c[f],issues:[]},l);_ instanceof Promise?d.push(_.then(v=>qc(v,s,f,c,x,h))):qc(_,s,f,c,x,h)}return i?_0(d,c,s,l,o.value,e):d.length?Promise.all(d).then(()=>s):s}}),fv=b("$ZodObjectJIT",(e,t)=>{w0.init(e,t);let r=e._zod.parse,o=bi(()=>k0(t)),n=f=>{let m=new Ss(["shape","payload","ctx"]),x=o.value,h=y=>{let S=jc(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};m.write("const input = payload.value;");let _=Object.create(null),v=0;for(let y of x.keys)_[y]=`key_${v++}`;m.write("const newResult = {};");for(let y of x.keys){let S=_[y],w=jc(y),T=f[y],I=T?._zod?.optin==="optional",L=T?._zod?.optout==="optional";m.write(`const ${S} = ${h(y)};`),I&&L?m.write(`
|
|
11
|
+
`))}};var Eg={major:4,minor:4,patch:3};var ie=b("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Eg;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,s,l)=>{let c=Jr(a),d;for(let p of s){if(p._zod.def.when){if(Cm(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,m=p._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new Tn;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(c||(c=Jr(a,f)))});else{if(a.issues.length===f)continue;c||(c=Jr(a,f))}}return d?d.then(()=>a):a},i=(a,s,l)=>{if(Jr(a))return a.aborted=!0,a;let c=n(s,o,l);if(c instanceof Promise){if(l.async===!1)throw new Tn;return c.then(d=>e._zod.parse(d,l))}return e._zod.parse(c,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(d=>i(d,a,s)):i(c,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new Tn;return l.then(c=>n(c,o,s))}return n(l,o,s)}}ge(e,"~standard",()=>({validate:n=>{try{let i=Dm(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Nm(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Io=b("$ZodString",(e,t)=>{ie.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??og(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}}),Te=b("$ZodStringFormat",(e,t)=>{zi.init(e,t),Io.init(e,t)}),Cg=b("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Zm),Te.init(e,t)}),jg=b("$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=zo(o))}else t.pattern??(t.pattern=zo());Te.init(e,t)}),Og=b("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Hm),Te.init(e,t)}),Dg=b("$ZodURL",(e,t)=>{Te.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===Qm.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})}}}),Ng=b("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Vm()),Te.init(e,t)}),Lg=b("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Mm),Te.init(e,t)}),Ag=b("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Lm),Te.init(e,t)}),Fg=b("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Am),Te.init(e,t)}),Wg=b("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Fm),Te.init(e,t)}),Ug=b("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Wm),Te.init(e,t)}),Mg=b("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Um),Te.init(e,t)}),Bg=b("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=rg(t)),Te.init(e,t)}),Zg=b("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tg),Te.init(e,t)}),Hg=b("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ng(t)),Te.init(e,t)}),Vg=b("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Bm),Te.init(e,t)}),Jg=b("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Jm),Te.init(e,t),e._zod.bag.format="ipv4"}),Gg=b("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gm),Te.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})}}}),Xg=b("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Xm(t.delimiter)),Te.init(e,t),e._zod.bag.format="mac"}),Kg=b("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Km),Te.init(e,t)}),Yg=b("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ym),Te.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 qg(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Qg=b("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=qm),Te.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{qg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function k0(e){if(!Jc.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return qg(r)}var ev=b("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Jc),Te.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{k0(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),tv=b("$ZodE164",(e,t)=>{t.pattern??(t.pattern=eg),Te.init(e,t)});function _0(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 nv=b("$ZodJWT",(e,t)=>{Te.init(e,t),e._zod.check=r=>{_0(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),rv=b("$ZodCustomStringFormat",(e,t)=>{Te.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})}}),tu=b("$ZodNumber",(e,t)=>{ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??Gc,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}}),ov=b("$ZodNumberFormat",(e,t)=>{fg.init(e,t),tu.init(e,t)}),_s=b("$ZodBoolean",(e,t)=>{ie.init(e,t),e._zod.pattern=sg,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}}),nu=b("$ZodBigInt",(e,t)=>{ie.init(e,t),e._zod.pattern=ig,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}}),iv=b("$ZodBigIntFormat",(e,t)=>{mg.init(e,t),nu.init(e,t)}),av=b("$ZodSymbol",(e,t)=>{ie.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}}),sv=b("$ZodUndefined",(e,t)=>{ie.init(e,t),e._zod.pattern=cg,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}}),lv=b("$ZodNull",(e,t)=>{ie.init(e,t),e._zod.pattern=lg,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}}),cv=b("$ZodAny",(e,t)=>{ie.init(e,t),e._zod.parse=r=>r}),uv=b("$ZodUnknown",(e,t)=>{ie.init(e,t),e._zod.parse=r=>r}),dv=b("$ZodNever",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),pv=b("$ZodVoid",(e,t)=>{ie.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}}),fv=b("$ZodDate",(e,t)=>{ie.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 l0(e,t,r){e.issues.length&&t.issues.push(...Vt(r,e.issues)),t.value[r]=e.value}var mv=b("$ZodArray",(e,t)=>{ie.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 s=n[a],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?i.push(l.then(c=>l0(c,r,a))):l0(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function eu(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...Vt(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 w0(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=Rm(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function $0(e,t,r,o,n,i){let a=[],s=n.keySet,l=n.catchall._zod,c=l.def.type,d=l.optin==="optional",p=l.optout==="optional";for(let f in t){if(f==="__proto__"||s.has(f))continue;if(c==="never"){a.push(f);continue}let m=l.run({value:t[f],issues:[]},o);m instanceof Promise?e.push(m.then(x=>eu(x,r,f,t,d,p))):eu(m,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 P0=b("$ZodObject",(e,t)=>{if(ie.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let o=Si(()=>w0(t));ge(e._zod,"propValues",()=>{let s=t.shape,l={};for(let c in s){let d=s[c]._zod;if(d.values){l[c]??(l[c]=new Set);for(let p of d.values)l[c].add(p)}}return l});let n=Po,i=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=o.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let d=[],p=a.shape;for(let f of a.keys){let m=p[f],x=m._zod.optin==="optional",h=m._zod.optout==="optional",_=m._zod.run({value:c[f],issues:[]},l);_ instanceof Promise?d.push(_.then(v=>eu(v,s,f,c,x,h))):eu(_,s,f,c,x,h)}return i?$0(d,c,s,l,o.value,e):d.length?Promise.all(d).then(()=>s):s}}),gv=b("$ZodObjectJIT",(e,t)=>{P0.init(e,t);let r=e._zod.parse,o=Si(()=>w0(t)),n=f=>{let m=new ks(["shape","payload","ctx"]),x=o.value,h=y=>{let S=Dc(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};m.write("const input = payload.value;");let _=Object.create(null),v=0;for(let y of x.keys)_[y]=`key_${v++}`;m.write("const newResult = {};");for(let y of x.keys){let S=_[y],w=Dc(y),E=f[y],L=E?._zod?.optin==="optional",H=E?._zod?.optout==="optional";m.write(`const ${S} = ${h(y)};`),L&&H?m.write(`
|
|
12
12
|
if (${S}.issues.length) {
|
|
13
13
|
if (${w} in input) {
|
|
14
14
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
@@ -26,7 +26,7 @@ Error generating stack: `+i.message+`
|
|
|
26
26
|
newResult[${w}] = ${S}.value;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
`):
|
|
29
|
+
`):L?m.write(`
|
|
30
30
|
if (${S}.issues.length) {
|
|
31
31
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
32
32
|
...iss,
|
|
@@ -67,11 +67,11 @@ Error generating stack: `+i.message+`
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
`)}m.write("payload.value = newResult;"),m.write("return payload;");let g=m.compile();return(y,S)=>g(f,y,S)},i,a=$o,s=!wo.jitless,c=s&&wm.value,d=t.catchall,p;e._zod.parse=(f,m)=>{p??(p=o.value);let x=f.value;return a(x)?s&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=n(t.shape)),f=i(f,m),d?_0([],x,f,m,p,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function s0(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=>!Vr(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=>Nt(a,o,Xe())))}),t)}var _s=b("$ZodUnion",(e,t)=>{ie.init(e,t),ge(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ge(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ge(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ge(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=>ps(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 s of t.options){let l=s._zod.run({value:o.value,issues:[]},n);if(l instanceof Promise)a.push(l),i=!0;else{if(l.issues.length===0)return l;a.push(l)}}return i?Promise.all(a).then(s=>s0(s,o,e,n)):s0(a,o,e,n)}});function l0(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=>Nt(a,o,Xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var mv=b("$ZodXor",(e,t)=>{_s.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 s of t.options){let l=s._zod.run({value:o.value,issues:[]},n);l instanceof Promise?(a.push(l),i=!0):a.push(l)}return i?Promise.all(a).then(s=>l0(s,o,e,n)):l0(a,o,e,n)}}),gv=b("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,_s.init(e,t);let r=e._zod.parse;ge(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[s,l]of Object.entries(a)){n[s]||(n[s]=new Set);for(let c of l)n[s].add(c)}}return n});let o=bi(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let l of s){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!$o(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._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)}}),vv=b("$ZodIntersection",(e,t)=>{ie.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(([l,c])=>c0(r,l,c)):c0(r,i,a)}});function Rg(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(Hr(e)&&Hr(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=Rg(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=Rg(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 c0(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),Vr(e))return e;let a=Rg(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 tu=b("$ZodTuple",(e,t)=>{ie.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=[],s=u0(r,"optin"),l=u0(r,"optout");if(!t.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,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 m=t.rest._zod.run({value:f,issues:[]},n);m instanceof Promise?a.push(m.then(x=>d0(x,o,d))):d0(m,o,d)}}return a.length?Promise.all(a).then(()=>p0(c,o,r,i,l)):p0(c,o,r,i,l)}});function u0(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function d0(e,t,r){e.issues.length&&t.issues.push(...Vt(r,e.issues)),t.value[r]=e.value}function p0(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],s=i<o.length;if(a.issues.length){if(!s&&i>=n){t.value.length=i;break}t.issues.push(...Vt(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 yv=b("$ZodRecord",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Hr(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 s=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.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(m=>Nt(m,o,Xe())),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(m=>{m.issues.length&&r.issues.push(...Vt(c,m.issues)),r.value[p]=m.value})):(f.issues.length&&r.issues.push(...Vt(c,f.issues)),r.value[p]=f.value)}let l;for(let c in n)s.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let l=t.keyType._zod.run({value:s,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Vc.test(s)&&l.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>Nt(p,o,Xe())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:n[s],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&r.issues.push(...Vt(s,p.issues)),r.value[l.value]=p.value})):(d.issues.length&&r.issues.push(...Vt(s,d.issues)),r.value[l.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),hv=b("$ZodMap",(e,t)=>{ie.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,s]of n){let l=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||c instanceof Promise?i.push(Promise.all([l,c]).then(([d,p])=>{f0(d,p,r,a,n,e,o)})):f0(l,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function f0(e,t,r,o,n,i,a){e.issues.length&&(fs.has(typeof o)?r.issues.push(...Vt(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>Nt(s,a,Xe()))})),t.issues.length&&(fs.has(typeof o)?r.issues.push(...Vt(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>Nt(s,a,Xe()))})),r.value.set(e.value,t.value)}var xv=b("$ZodSet",(e,t)=>{ie.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 s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(l=>m0(l,r))):m0(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function m0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var bv=b("$ZodEnum",(e,t)=>{ie.init(e,t);let r=ds(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>fs.has(typeof n)).map(n=>typeof n=="string"?yn(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}}),Sv=b("$ZodLiteral",(e,t)=>{if(ie.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"?yn(o):o?yn(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}}),kv=b("$ZodFile",(e,t)=>{ie.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}}),_v=b("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Mr(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 Tn;return r.value=n,r.fallback=!0,r}});function g0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var nu=b("$ZodOptional",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ge(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ps(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=>g0(a,n)):g0(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),wv=b("$ZodExactOptional",(e,t)=>{nu.init(e,t),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),$v=b("$ZodNullable",(e,t)=>{ie.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ps(r.source)}|null)$`):void 0}),ge(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)}),Pv=b("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(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=>v0(i,t)):v0(n,t)}});function v0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var zv=b("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(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))}),Iv=b("$ZodNonOptional",(e,t)=>{ie.init(e,t),ge(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=>y0(i,e)):y0(n,e)}});function y0(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 Rv=b("$ZodSuccess",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Mr("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)}}),Ev=b("$ZodCatch",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(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=>Nt(a,o,Xe()))},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=>Nt(i,o,Xe()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),Tv=b("$ZodNaN",(e,t)=>{ie.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)}),ru=b("$ZodPipe",(e,t)=>{ie.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(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=>Xc(a,t.in,o)):Xc(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Xc(i,t.out,o)):Xc(n,t.out,o)}});function Xc(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 ws=b("$ZodCodec",(e,t)=>{ie.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(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=>Kc(a,t,o)):Kc(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Kc(a,t,o)):Kc(i,t,o)}}});function Kc(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=>Yc(e,i,t.out,r)):Yc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Yc(e,i,t.in,r)):Yc(e,n,t.in,r)}}function Yc(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var Cv=b("$ZodPreprocess",(e,t)=>{ru.init(e,t)}),jv=b("$ZodReadonly",(e,t)=>{ie.init(e,t),ge(e._zod,"propValues",()=>t.innerType._zod.propValues),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"optin",()=>t.innerType?._zod?.optin),ge(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(h0):h0(n)}});function h0(e){return e.value=Object.freeze(e.value),e}var Ov=b("$ZodTemplateLiteral",(e,t)=>{ie.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||Pm.has(typeof o))r.push(yn(`${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)}),Dv=b("$ZodFunction",(e,t)=>(ie.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?Dc(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Dc(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 Nc(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Nc(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 tu({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)),Nv=b("$ZodPromise",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Lv=b("$ZodLazy",(e,t)=>{ie.init(e,t),ge(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),ge(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ge(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ge(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ge(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Av=b("$ZodCustom",(e,t)=>{Oe.init(e,t),ie.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=>x0(i,r,o,e));x0(n,r,o,e)}});function x0(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(Si(n))}}var Ps={};ir(Ps,{ar:()=>$0,az:()=>P0,be:()=>I0,bg:()=>R0,ca:()=>E0,cs:()=>T0,da:()=>C0,de:()=>j0,el:()=>O0,en:()=>ou,eo:()=>D0,es:()=>N0,fa:()=>L0,fi:()=>A0,fr:()=>F0,frCA:()=>W0,he:()=>U0,hr:()=>M0,hu:()=>B0,hy:()=>H0,id:()=>V0,is:()=>J0,it:()=>G0,ja:()=>X0,ka:()=>K0,kh:()=>Y0,km:()=>iu,ko:()=>q0,lt:()=>ew,mk:()=>tw,ms:()=>nw,nl:()=>rw,no:()=>ow,ota:()=>iw,pl:()=>sw,ps:()=>aw,pt:()=>lw,ro:()=>cw,ru:()=>dw,sl:()=>pw,sv:()=>fw,ta:()=>mw,th:()=>gw,tr:()=>vw,ua:()=>yw,uk:()=>au,ur:()=>hw,uz:()=>xw,vi:()=>bw,yo:()=>_w,zhCN:()=>Sw,zhTW:()=>kw});var rT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 $0(){return{localeError:rT()}}var oT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${E(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 P0(){return{localeError:oT()}}function z0(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 iT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 s=Number(n.maximum),l=z0(s,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()} ${l}`}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 s=Number(n.minimum),l=z0(s,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()} ${l}`}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 I0(){return{localeError:iT()}}var aT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 R0(){return{localeError:aT()}}var sT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${E(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 E0(){return{localeError:sT()}}var lT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${E(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 T0(){return{localeError:lT()}}var cT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${E(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} 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 C0(){return{localeError:cT()}}var uT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${E(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 j0(){return{localeError:uT()}}var dT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 O0(){return{localeError:dT()}}var pT=()=>{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=C(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${E(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 ou(){return{localeError:pT()}}var fT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${E(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 D0(){return{localeError:fT()}}var mT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${E(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),s=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} 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 N0(){return{localeError:mT()}}var gT=()=>{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=C(n.input),s=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 ${s} \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 ${s} \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 ${E(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 L0(){return{localeError:gT()}}var vT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${E(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 A0(){return{localeError:vT()}}var yT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${E(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 F0(){return{localeError:yT()}}var hT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${E(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 W0(){return{localeError:hT()}}var xT=()=>{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,s={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"}},l={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=l[d??""]??o(d),f=C(c.input),m=l[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 ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}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 ${E(c.values[0])}`;let d=c.values.map(m=>E(m));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",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} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?"<=":"<",m=i(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${m} ${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 _=(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 ${_}`}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} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?">=":">",m=i(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${m} ${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=s[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 U0(){return{localeError:xT()}}var bT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${E(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} 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 M0(){return{localeError:bT()}}var ST=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${E(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 B0(){return{localeError:ST()}}function Z0(e,t,r){return Math.abs(e)===1?t:r}function zi(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 kT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 s=Number(n.maximum),l=Z0(s,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 ${zi(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}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 ${zi(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 s=Number(n.minimum),l=Z0(s,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 ${zi(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}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 ${zi(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 ${zi(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 ${zi(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function H0(){return{localeError:kT()}}var _T=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${E(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 V0(){return{localeError:_T()}}var wT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${E(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 J0(){return{localeError:wT()}}var $T=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${E(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 G0(){return{localeError:$T()}}var PT=()=>{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=C(n.input),s=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${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${E(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 X0(){return{localeError:PT()}}var zT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 K0(){return{localeError:zT()}}var IT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 iu(){return{localeError:IT()}}function Y0(){return iu()}var RT=()=>{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=C(n.input),s=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 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${E(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",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${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",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${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 q0(){return{localeError:RT()}}var $s=e=>e.charAt(0).toUpperCase()+e.slice(1);function Q0(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 ET=()=>{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,s){let l=e[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[s][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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${E(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,Q0(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${$s(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${$s(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,Q0(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${$s(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${$s(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${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`${$s(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function ew(){return{localeError:ET()}}var TT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${E(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 tw(){return{localeError:TT()}}var CT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${E(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 nw(){return{localeError:CT()}}var jT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${E(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: 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 rw(){return{localeError:jT()}}var OT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${E(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 ow(){return{localeError:OT()}}var DT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${E(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 iw(){return{localeError:DT()}}var NT=()=>{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=C(n.input),s=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 ${s} \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 ${s} \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 ${E(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 aw(){return{localeError:NT()}}var LT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${E(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 sw(){return{localeError:LT()}}var AT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${E(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 lw(){return{localeError:AT()}}var FT=()=>{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=C(n.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${E(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 cw(){return{localeError:FT()}}function uw(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 WT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 s=Number(n.maximum),l=uw(s,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()} ${l}`}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 s=Number(n.minimum),l=uw(s,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()} ${l}`}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 dw(){return{localeError:WT()}}var UT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${E(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 pw(){return{localeError:UT()}}var MT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${E(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 fw(){return{localeError:MT()}}var BT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 mw(){return{localeError:BT()}}var ZT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 gw(){return{localeError:ZT()}}var HT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${E(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 vw(){return{localeError:HT()}}var VT=()=>{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=C(n.input),s=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 ${s}`:`\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 ${s}`}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 ${E(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 au(){return{localeError:VT()}}function yw(){return au()}var JT=()=>{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=C(n.input),s=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 ${s} \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 ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${E(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 hw(){return{localeError:JT()}}var GT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${E(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 xw(){return{localeError:GT()}}var XT=()=>{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=C(n.input),s=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 ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${E(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 bw(){return{localeError:XT()}}var KT=()=>{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=C(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${E(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 Sw(){return{localeError:KT()}}var YT=()=>{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=C(n.input),s=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 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${E(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 kw(){return{localeError:YT()}}var qT=()=>{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=C(n.input),s=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 ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${E(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 _w(){return{localeError:qT()}}var ww,Fv=Symbol("ZodOutput"),Wv=Symbol("ZodInput"),su=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 lu(){return new su}(ww=globalThis).__zod_globalRegistry??(ww.__zod_globalRegistry=lu());var yt=globalThis.__zod_globalRegistry;function Uv(e,t){return new e({type:"string",...N(t)})}function Mv(e,t){return new e({type:"string",coerce:!0,...N(t)})}function cu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...N(t)})}function zs(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...N(t)})}function uu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...N(t)})}function du(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...N(t)})}function pu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...N(t)})}function fu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...N(t)})}function Is(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...N(t)})}function mu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...N(t)})}function gu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...N(t)})}function vu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...N(t)})}function yu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...N(t)})}function hu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...N(t)})}function xu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...N(t)})}function bu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...N(t)})}function Su(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...N(t)})}function ku(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...N(t)})}function Bv(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...N(t)})}function _u(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...N(t)})}function wu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...N(t)})}function $u(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...N(t)})}function Pu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...N(t)})}function zu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...N(t)})}function Iu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...N(t)})}var Zv={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hv(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...N(t)})}function Vv(e,t){return new e({type:"string",format:"date",check:"string_format",...N(t)})}function Jv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...N(t)})}function Gv(e,t){return new e({type:"string",format:"duration",check:"string_format",...N(t)})}function Xv(e,t){return new e({type:"number",checks:[],...N(t)})}function Kv(e,t){return new e({type:"number",coerce:!0,checks:[],...N(t)})}function Yv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...N(t)})}function qv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...N(t)})}function Qv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...N(t)})}function ey(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...N(t)})}function ty(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...N(t)})}function ny(e,t){return new e({type:"boolean",...N(t)})}function ry(e,t){return new e({type:"boolean",coerce:!0,...N(t)})}function oy(e,t){return new e({type:"bigint",...N(t)})}function iy(e,t){return new e({type:"bigint",coerce:!0,...N(t)})}function ay(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...N(t)})}function sy(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...N(t)})}function ly(e,t){return new e({type:"symbol",...N(t)})}function cy(e,t){return new e({type:"undefined",...N(t)})}function uy(e,t){return new e({type:"null",...N(t)})}function dy(e){return new e({type:"any"})}function py(e){return new e({type:"unknown"})}function fy(e,t){return new e({type:"never",...N(t)})}function my(e,t){return new e({type:"void",...N(t)})}function gy(e,t){return new e({type:"date",...N(t)})}function vy(e,t){return new e({type:"date",coerce:!0,...N(t)})}function yy(e,t){return new e({type:"nan",...N(t)})}function Xn(e,t){return new Jc({check:"less_than",...N(t),value:e,inclusive:!1})}function on(e,t){return new Jc({check:"less_than",...N(t),value:e,inclusive:!0})}function Kn(e,t){return new Gc({check:"greater_than",...N(t),value:e,inclusive:!1})}function Lt(e,t){return new Gc({check:"greater_than",...N(t),value:e,inclusive:!0})}function Ru(e){return Kn(0,e)}function Eu(e){return Xn(0,e)}function Tu(e){return on(0,e)}function Cu(e){return Lt(0,e)}function Jr(e,t){return new ug({check:"multiple_of",...N(t),value:e})}function Gr(e,t){return new fg({check:"max_size",...N(t),maximum:e})}function Yn(e,t){return new mg({check:"min_size",...N(t),minimum:e})}function Io(e,t){return new gg({check:"size_equals",...N(t),size:e})}function Ro(e,t){return new vg({check:"max_length",...N(t),maximum:e})}function yr(e,t){return new yg({check:"min_length",...N(t),minimum:e})}function Eo(e,t){return new hg({check:"length_equals",...N(t),length:e})}function Ii(e,t){return new xg({check:"string_format",format:"regex",...N(t),pattern:e})}function Ri(e){return new bg({check:"string_format",format:"lowercase",...N(e)})}function Ei(e){return new Sg({check:"string_format",format:"uppercase",...N(e)})}function Ti(e,t){return new kg({check:"string_format",format:"includes",...N(t),includes:e})}function Ci(e,t){return new _g({check:"string_format",format:"starts_with",...N(t),prefix:e})}function ji(e,t){return new wg({check:"string_format",format:"ends_with",...N(t),suffix:e})}function ju(e,t,r){return new $g({check:"property",property:e,schema:t,...N(r)})}function Oi(e,t){return new Pg({check:"mime_type",mime:e,...N(t)})}function Cn(e){return new zg({check:"overwrite",tx:e})}function Di(e){return Cn(t=>t.normalize(e))}function Ni(){return Cn(e=>e.trim())}function Li(){return Cn(e=>e.toLowerCase())}function Ai(){return Cn(e=>e.toUpperCase())}function Fi(){return Cn(e=>_m(e))}function hy(e,t,r){return new e({type:"array",element:t,...N(r)})}function eC(e,t,r){return new e({type:"union",options:t,...N(r)})}function tC(e,t,r){return new e({type:"union",options:t,inclusive:!1,...N(r)})}function nC(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...N(o)})}function rC(e,t,r){return new e({type:"intersection",left:t,right:r})}function oC(e,t,r,o){let n=r instanceof ie,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...N(i)})}function iC(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...N(o)})}function aC(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...N(o)})}function sC(e,t,r){return new e({type:"set",valueType:t,...N(r)})}function lC(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...N(r)})}function cC(e,t,r){return new e({type:"enum",entries:t,...N(r)})}function uC(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...N(r)})}function xy(e,t){return new e({type:"file",...N(t)})}function dC(e,t){return new e({type:"transform",transform:t})}function pC(e,t){return new e({type:"optional",innerType:t})}function fC(e,t){return new e({type:"nullable",innerType:t})}function mC(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():$m(r)}})}function gC(e,t,r){return new e({type:"nonoptional",innerType:t,...N(r)})}function vC(e,t){return new e({type:"success",innerType:t})}function yC(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function hC(e,t,r){return new e({type:"pipe",in:t,out:r})}function xC(e,t){return new e({type:"readonly",innerType:t})}function bC(e,t,r){return new e({type:"template_literal",parts:t,...N(r)})}function SC(e,t){return new e({type:"lazy",getter:t})}function kC(e,t){return new e({type:"promise",innerType:t})}function by(e,t,r){let o=N(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Sy(e,t,r){return new e({type:"custom",check:"custom",fn:t,...N(r)})}function ky(e,t){let r=$w(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Si(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(Si(i))}},e(o.value,o)),t);return r}function $w(e,t){let r=new Oe({check:"custom",...N(t)});return r._zod.check=e,r}function _y(e){let t=new Oe({check:"describe"});return t._zod.onattach=[r=>{let o=yt.get(r)??{};yt.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function wy(e){let t=new Oe({check:"meta"});return t._zod.onattach=[r=>{let o=yt.get(r)??{};yt.add(r,{...o,...e})}],t._zod.check=()=>{},t}function $y(e,t){let r=N(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(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));let i=new Set(o),a=new Set(n),s=e.Codec??ws,l=e.Boolean??ks,c=e.String??zo,d=new c({type:"string",error:r.error}),p=new l({type:"boolean",error:r.error}),f=new s({type:"pipe",in:d,out:p,transform:((m,x)=>{let h=m;return r.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:a.has(h)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:f,continue:!1}),{})}),reverseTransform:((m,x)=>m===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function Wi(e,t,r,o={}){let n=N(o),i={...N(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Xr(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??yt,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 $e(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 s=e._zod.toJSONSchema?.();if(s)a.schema=s;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,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),$e(p,t,d),t.seen.get(p).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&At(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 Kr(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 s=e.metadataRegistry.get(a[0])?.id;if(s){let l=o.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let n=a=>{let s=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 m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${m}`}}if(a[1]===r)return{ref:"#"};let c=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:c}=n(a);s.def={...s.schema},c&&(s.defId=c);let d=s.schema;for(let p in d)delete d[p];d.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
70
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");let g=m.compile();return(y,S)=>g(f,y,S)},i,a=Po,s=!$o.jitless,c=s&&Pm.value,d=t.catchall,p;e._zod.parse=(f,m)=>{p??(p=o.value);let x=f.value;return a(x)?s&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=n(t.shape)),f=i(f,m),d?$0([],x,f,m,p,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function c0(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=>!Jr(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=>Nt(a,o,Xe())))}),t)}var ws=b("$ZodUnion",(e,t)=>{ie.init(e,t),ge(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ge(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ge(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ge(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=>fs(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 s of t.options){let l=s._zod.run({value:o.value,issues:[]},n);if(l instanceof Promise)a.push(l),i=!0;else{if(l.issues.length===0)return l;a.push(l)}}return i?Promise.all(a).then(s=>c0(s,o,e,n)):c0(a,o,e,n)}});function u0(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=>Nt(a,o,Xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var vv=b("$ZodXor",(e,t)=>{ws.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 s of t.options){let l=s._zod.run({value:o.value,issues:[]},n);l instanceof Promise?(a.push(l),i=!0):a.push(l)}return i?Promise.all(a).then(s=>u0(s,o,e,n)):u0(a,o,e,n)}}),yv=b("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ws.init(e,t);let r=e._zod.parse;ge(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[s,l]of Object.entries(a)){n[s]||(n[s]=new Set);for(let c of l)n[s].add(c)}}return n});let o=Si(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let l of s){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Po(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._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)}}),hv=b("$ZodIntersection",(e,t)=>{ie.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(([l,c])=>d0(r,l,c)):d0(r,i,a)}});function Tg(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(Vr(e)&&Vr(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=Tg(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=Tg(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 d0(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),Jr(e))return e;let a=Tg(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 ru=b("$ZodTuple",(e,t)=>{ie.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=[],s=p0(r,"optin"),l=p0(r,"optout");if(!t.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,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 m=t.rest._zod.run({value:f,issues:[]},n);m instanceof Promise?a.push(m.then(x=>f0(x,o,d))):f0(m,o,d)}}return a.length?Promise.all(a).then(()=>m0(c,o,r,i,l)):m0(c,o,r,i,l)}});function p0(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function f0(e,t,r){e.issues.length&&t.issues.push(...Vt(r,e.issues)),t.value[r]=e.value}function m0(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],s=i<o.length;if(a.issues.length){if(!s&&i>=n){t.value.length=i;break}t.issues.push(...Vt(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 xv=b("$ZodRecord",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Vr(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 s=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.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(m=>Nt(m,o,Xe())),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(m=>{m.issues.length&&r.issues.push(...Vt(c,m.issues)),r.value[p]=m.value})):(f.issues.length&&r.issues.push(...Vt(c,f.issues)),r.value[p]=f.value)}let l;for(let c in n)s.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let l=t.keyType._zod.run({value:s,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Gc.test(s)&&l.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>Nt(p,o,Xe())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:n[s],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&r.issues.push(...Vt(s,p.issues)),r.value[l.value]=p.value})):(d.issues.length&&r.issues.push(...Vt(s,d.issues)),r.value[l.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),bv=b("$ZodMap",(e,t)=>{ie.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,s]of n){let l=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||c instanceof Promise?i.push(Promise.all([l,c]).then(([d,p])=>{g0(d,p,r,a,n,e,o)})):g0(l,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function g0(e,t,r,o,n,i,a){e.issues.length&&(ms.has(typeof o)?r.issues.push(...Vt(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>Nt(s,a,Xe()))})),t.issues.length&&(ms.has(typeof o)?r.issues.push(...Vt(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>Nt(s,a,Xe()))})),r.value.set(e.value,t.value)}var Sv=b("$ZodSet",(e,t)=>{ie.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 s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(l=>v0(l,r))):v0(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function v0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var kv=b("$ZodEnum",(e,t)=>{ie.init(e,t);let r=ps(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>ms.has(typeof n)).map(n=>typeof n=="string"?yn(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}}),_v=b("$ZodLiteral",(e,t)=>{if(ie.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"?yn(o):o?yn(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}}),wv=b("$ZodFile",(e,t)=>{ie.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}}),$v=b("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Br(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 Tn;return r.value=n,r.fallback=!0,r}});function y0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var ou=b("$ZodOptional",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ge(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${fs(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=>y0(a,n)):y0(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Pv=b("$ZodExactOptional",(e,t)=>{ou.init(e,t),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),zv=b("$ZodNullable",(e,t)=>{ie.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${fs(r.source)}|null)$`):void 0}),ge(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)}),Iv=b("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(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=>h0(i,t)):h0(n,t)}});function h0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Rv=b("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(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))}),Ev=b("$ZodNonOptional",(e,t)=>{ie.init(e,t),ge(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=>x0(i,e)):x0(n,e)}});function x0(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 Tv=b("$ZodSuccess",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Br("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)}}),Cv=b("$ZodCatch",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(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=>Nt(a,o,Xe()))},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=>Nt(i,o,Xe()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),jv=b("$ZodNaN",(e,t)=>{ie.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)}),iu=b("$ZodPipe",(e,t)=>{ie.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(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=>Yc(a,t.in,o)):Yc(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Yc(i,t.out,o)):Yc(n,t.out,o)}});function Yc(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 $s=b("$ZodCodec",(e,t)=>{ie.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(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=>qc(a,t,o)):qc(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>qc(a,t,o)):qc(i,t,o)}}});function qc(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=>Qc(e,i,t.out,r)):Qc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Qc(e,i,t.in,r)):Qc(e,n,t.in,r)}}function Qc(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var Ov=b("$ZodPreprocess",(e,t)=>{iu.init(e,t)}),Dv=b("$ZodReadonly",(e,t)=>{ie.init(e,t),ge(e._zod,"propValues",()=>t.innerType._zod.propValues),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"optin",()=>t.innerType?._zod?.optin),ge(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(b0):b0(n)}});function b0(e){return e.value=Object.freeze(e.value),e}var Nv=b("$ZodTemplateLiteral",(e,t)=>{ie.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||Im.has(typeof o))r.push(yn(`${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)}),Lv=b("$ZodFunction",(e,t)=>(ie.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?Lc(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Lc(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 Ac(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Ac(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 ru({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)),Av=b("$ZodPromise",(e,t)=>{ie.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Fv=b("$ZodLazy",(e,t)=>{ie.init(e,t),ge(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),ge(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ge(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ge(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ge(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Wv=b("$ZodCustom",(e,t)=>{Oe.init(e,t),ie.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=>S0(i,r,o,e));S0(n,r,o,e)}});function S0(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(ki(n))}}var zs={};ir(zs,{ar:()=>z0,az:()=>I0,be:()=>E0,bg:()=>T0,ca:()=>C0,cs:()=>j0,da:()=>O0,de:()=>D0,el:()=>N0,en:()=>au,eo:()=>L0,es:()=>A0,fa:()=>F0,fi:()=>W0,fr:()=>U0,frCA:()=>M0,he:()=>B0,hr:()=>Z0,hu:()=>H0,hy:()=>J0,id:()=>G0,is:()=>X0,it:()=>K0,ja:()=>Y0,ka:()=>q0,kh:()=>Q0,km:()=>su,ko:()=>ew,lt:()=>nw,mk:()=>rw,ms:()=>ow,nl:()=>iw,no:()=>aw,ota:()=>sw,pl:()=>cw,ps:()=>lw,pt:()=>uw,ro:()=>dw,ru:()=>fw,sl:()=>mw,sv:()=>gw,ta:()=>vw,th:()=>yw,tr:()=>hw,ua:()=>xw,uk:()=>lu,ur:()=>bw,uz:()=>Sw,vi:()=>kw,yo:()=>$w,zhCN:()=>_w,zhTW:()=>ww});var sT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 z0(){return{localeError:sT()}}var lT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${R(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 I0(){return{localeError:lT()}}function R0(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 cT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 s=Number(n.maximum),l=R0(s,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()} ${l}`}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 s=Number(n.minimum),l=R0(s,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()} ${l}`}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 E0(){return{localeError:cT()}}var uT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 T0(){return{localeError:uT()}}var dT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${R(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 C0(){return{localeError:dT()}}var pT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${R(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 j0(){return{localeError:pT()}}var fT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${R(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} 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 O0(){return{localeError:fT()}}var mT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${R(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 D0(){return{localeError:mT()}}var gT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 N0(){return{localeError:gT()}}var vT=()=>{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=T(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${R(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 au(){return{localeError:vT()}}var yT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${R(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 L0(){return{localeError:yT()}}var hT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${R(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),s=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} 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 A0(){return{localeError:hT()}}var xT=()=>{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=T(n.input),s=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 ${s} \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 ${s} \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 ${R(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 F0(){return{localeError:xT()}}var bT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${R(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 W0(){return{localeError:bT()}}var ST=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${R(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 U0(){return{localeError:ST()}}var kT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${R(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 M0(){return{localeError:kT()}}var _T=()=>{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,s={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"}},l={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=l[d??""]??o(d),f=T(c.input),m=l[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 ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}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 ${R(c.values[0])}`;let d=c.values.map(m=>R(m));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",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} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?"<=":"<",m=i(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${m} ${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 _=(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 ${_}`}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} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?">=":">",m=i(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${m} ${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=s[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 B0(){return{localeError:_T()}}var wT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${R(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} 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 Z0(){return{localeError:wT()}}var $T=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${R(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 H0(){return{localeError:$T()}}function V0(e,t,r){return Math.abs(e)===1?t:r}function Ii(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 PT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 s=Number(n.maximum),l=V0(s,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 ${Ii(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}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 ${Ii(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 s=Number(n.minimum),l=V0(s,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 ${Ii(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}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 ${Ii(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 ${Ii(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 ${Ii(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function J0(){return{localeError:PT()}}var zT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${R(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 G0(){return{localeError:zT()}}var IT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${R(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 X0(){return{localeError:IT()}}var RT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${R(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 K0(){return{localeError:RT()}}var ET=()=>{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=T(n.input),s=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${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${R(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 Y0(){return{localeError:ET()}}var TT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 q0(){return{localeError:TT()}}var CT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 su(){return{localeError:CT()}}function Q0(){return su()}var jT=()=>{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=T(n.input),s=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 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${R(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",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${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",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${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 ew(){return{localeError:jT()}}var Ps=e=>e.charAt(0).toUpperCase()+e.slice(1);function tw(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 OT=()=>{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,s){let l=e[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[s][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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${R(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,tw(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Ps(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Ps(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,tw(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Ps(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Ps(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${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`${Ps(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function nw(){return{localeError:OT()}}var DT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${R(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 rw(){return{localeError:DT()}}var NT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${R(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 ow(){return{localeError:NT()}}var LT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${R(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: 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 iw(){return{localeError:LT()}}var AT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${R(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 aw(){return{localeError:AT()}}var FT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${R(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 sw(){return{localeError:FT()}}var WT=()=>{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=T(n.input),s=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 ${s} \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 ${s} \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 ${R(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 lw(){return{localeError:WT()}}var UT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${R(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 cw(){return{localeError:UT()}}var MT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${R(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 uw(){return{localeError:MT()}}var BT=()=>{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=T(n.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${R(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 dw(){return{localeError:BT()}}function pw(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 ZT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 s=Number(n.maximum),l=pw(s,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()} ${l}`}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 s=Number(n.minimum),l=pw(s,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()} ${l}`}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 fw(){return{localeError:ZT()}}var HT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${R(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 mw(){return{localeError:HT()}}var VT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${R(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 gw(){return{localeError:VT()}}var JT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 vw(){return{localeError:JT()}}var GT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 yw(){return{localeError:GT()}}var XT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${R(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 hw(){return{localeError:XT()}}var KT=()=>{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=T(n.input),s=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 ${s}`:`\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 ${s}`}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 ${R(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 lu(){return{localeError:KT()}}function xw(){return lu()}var YT=()=>{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=T(n.input),s=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 ${s} \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 ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${R(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 bw(){return{localeError:YT()}}var qT=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${R(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 Sw(){return{localeError:qT()}}var QT=()=>{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=T(n.input),s=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 ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${R(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 kw(){return{localeError:QT()}}var eC=()=>{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=T(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${R(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 _w(){return{localeError:eC()}}var tC=()=>{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=T(n.input),s=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 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${R(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 ww(){return{localeError:tC()}}var nC=()=>{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=T(n.input),s=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 ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${R(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 $w(){return{localeError:nC()}}var Pw,Uv=Symbol("ZodOutput"),Mv=Symbol("ZodInput"),cu=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 uu(){return new cu}(Pw=globalThis).__zod_globalRegistry??(Pw.__zod_globalRegistry=uu());var ht=globalThis.__zod_globalRegistry;function Bv(e,t){return new e({type:"string",...N(t)})}function Zv(e,t){return new e({type:"string",coerce:!0,...N(t)})}function du(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...N(t)})}function Is(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...N(t)})}function pu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...N(t)})}function fu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...N(t)})}function mu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...N(t)})}function gu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...N(t)})}function Rs(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...N(t)})}function vu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...N(t)})}function yu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...N(t)})}function hu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...N(t)})}function xu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...N(t)})}function bu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...N(t)})}function Su(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...N(t)})}function ku(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...N(t)})}function _u(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...N(t)})}function wu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...N(t)})}function Hv(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...N(t)})}function $u(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...N(t)})}function Pu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...N(t)})}function zu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...N(t)})}function Iu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...N(t)})}function Ru(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...N(t)})}function Eu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...N(t)})}var Vv={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Jv(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...N(t)})}function Gv(e,t){return new e({type:"string",format:"date",check:"string_format",...N(t)})}function Xv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...N(t)})}function Kv(e,t){return new e({type:"string",format:"duration",check:"string_format",...N(t)})}function Yv(e,t){return new e({type:"number",checks:[],...N(t)})}function qv(e,t){return new e({type:"number",coerce:!0,checks:[],...N(t)})}function Qv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...N(t)})}function ey(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...N(t)})}function ty(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...N(t)})}function ny(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...N(t)})}function ry(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...N(t)})}function oy(e,t){return new e({type:"boolean",...N(t)})}function iy(e,t){return new e({type:"boolean",coerce:!0,...N(t)})}function ay(e,t){return new e({type:"bigint",...N(t)})}function sy(e,t){return new e({type:"bigint",coerce:!0,...N(t)})}function ly(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...N(t)})}function cy(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...N(t)})}function uy(e,t){return new e({type:"symbol",...N(t)})}function dy(e,t){return new e({type:"undefined",...N(t)})}function py(e,t){return new e({type:"null",...N(t)})}function fy(e){return new e({type:"any"})}function my(e){return new e({type:"unknown"})}function gy(e,t){return new e({type:"never",...N(t)})}function vy(e,t){return new e({type:"void",...N(t)})}function yy(e,t){return new e({type:"date",...N(t)})}function hy(e,t){return new e({type:"date",coerce:!0,...N(t)})}function xy(e,t){return new e({type:"nan",...N(t)})}function Xn(e,t){return new Xc({check:"less_than",...N(t),value:e,inclusive:!1})}function on(e,t){return new Xc({check:"less_than",...N(t),value:e,inclusive:!0})}function Kn(e,t){return new Kc({check:"greater_than",...N(t),value:e,inclusive:!1})}function Lt(e,t){return new Kc({check:"greater_than",...N(t),value:e,inclusive:!0})}function Tu(e){return Kn(0,e)}function Cu(e){return Xn(0,e)}function ju(e){return on(0,e)}function Ou(e){return Lt(0,e)}function Gr(e,t){return new pg({check:"multiple_of",...N(t),value:e})}function Xr(e,t){return new gg({check:"max_size",...N(t),maximum:e})}function Yn(e,t){return new vg({check:"min_size",...N(t),minimum:e})}function Ro(e,t){return new yg({check:"size_equals",...N(t),size:e})}function Eo(e,t){return new hg({check:"max_length",...N(t),maximum:e})}function yr(e,t){return new xg({check:"min_length",...N(t),minimum:e})}function To(e,t){return new bg({check:"length_equals",...N(t),length:e})}function Ri(e,t){return new Sg({check:"string_format",format:"regex",...N(t),pattern:e})}function Ei(e){return new kg({check:"string_format",format:"lowercase",...N(e)})}function Ti(e){return new _g({check:"string_format",format:"uppercase",...N(e)})}function Ci(e,t){return new wg({check:"string_format",format:"includes",...N(t),includes:e})}function ji(e,t){return new $g({check:"string_format",format:"starts_with",...N(t),prefix:e})}function Oi(e,t){return new Pg({check:"string_format",format:"ends_with",...N(t),suffix:e})}function Du(e,t,r){return new zg({check:"property",property:e,schema:t,...N(r)})}function Di(e,t){return new Ig({check:"mime_type",mime:e,...N(t)})}function Cn(e){return new Rg({check:"overwrite",tx:e})}function Ni(e){return Cn(t=>t.normalize(e))}function Li(){return Cn(e=>e.trim())}function Ai(){return Cn(e=>e.toLowerCase())}function Fi(){return Cn(e=>e.toUpperCase())}function Wi(){return Cn(e=>$m(e))}function by(e,t,r){return new e({type:"array",element:t,...N(r)})}function oC(e,t,r){return new e({type:"union",options:t,...N(r)})}function iC(e,t,r){return new e({type:"union",options:t,inclusive:!1,...N(r)})}function aC(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...N(o)})}function sC(e,t,r){return new e({type:"intersection",left:t,right:r})}function lC(e,t,r,o){let n=r instanceof ie,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...N(i)})}function cC(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...N(o)})}function uC(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...N(o)})}function dC(e,t,r){return new e({type:"set",valueType:t,...N(r)})}function pC(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...N(r)})}function fC(e,t,r){return new e({type:"enum",entries:t,...N(r)})}function mC(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...N(r)})}function Sy(e,t){return new e({type:"file",...N(t)})}function gC(e,t){return new e({type:"transform",transform:t})}function vC(e,t){return new e({type:"optional",innerType:t})}function yC(e,t){return new e({type:"nullable",innerType:t})}function hC(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():zm(r)}})}function xC(e,t,r){return new e({type:"nonoptional",innerType:t,...N(r)})}function bC(e,t){return new e({type:"success",innerType:t})}function SC(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function kC(e,t,r){return new e({type:"pipe",in:t,out:r})}function _C(e,t){return new e({type:"readonly",innerType:t})}function wC(e,t,r){return new e({type:"template_literal",parts:t,...N(r)})}function $C(e,t){return new e({type:"lazy",getter:t})}function PC(e,t){return new e({type:"promise",innerType:t})}function ky(e,t,r){let o=N(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function _y(e,t,r){return new e({type:"custom",check:"custom",fn:t,...N(r)})}function wy(e,t){let r=zw(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(ki(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(ki(i))}},e(o.value,o)),t);return r}function zw(e,t){let r=new Oe({check:"custom",...N(t)});return r._zod.check=e,r}function $y(e){let t=new Oe({check:"describe"});return t._zod.onattach=[r=>{let o=ht.get(r)??{};ht.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Py(e){let t=new Oe({check:"meta"});return t._zod.onattach=[r=>{let o=ht.get(r)??{};ht.add(r,{...o,...e})}],t._zod.check=()=>{},t}function zy(e,t){let r=N(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(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));let i=new Set(o),a=new Set(n),s=e.Codec??$s,l=e.Boolean??_s,c=e.String??Io,d=new c({type:"string",error:r.error}),p=new l({type:"boolean",error:r.error}),f=new s({type:"pipe",in:d,out:p,transform:((m,x)=>{let h=m;return r.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:a.has(h)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:f,continue:!1}),{})}),reverseTransform:((m,x)=>m===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function Ui(e,t,r,o={}){let n=N(o),i={...N(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Kr(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??ht,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 Pe(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 s=e._zod.toJSONSchema?.();if(s)a.schema=s;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,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),Pe(p,t,d),t.seen.get(p).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&At(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 Yr(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 s=e.metadataRegistry.get(a[0])?.id;if(s){let l=o.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let n=a=>{let s=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 m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${m}`}}if(a[1]===r)return{ref:"#"};let c=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:c}=n(a);s.def={...s.schema},c&&(s.defId=c);let d=s.schema;for(let p in d)delete d[p];d.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.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 s=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(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function Yr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let l=e.seen.get(s);if(l.ref===null)return;let c=l.def??l.schema,d={...c},p=l.ref;if(l.ref=null,p){o(p);let m=e.seen.get(p),x=m.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),s._zod.parent===p)for(let _ in c)_==="$ref"||_==="allOf"||_ in d||delete c[_];if(x.$ref&&m.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in m.def&&JSON.stringify(c[_])===JSON.stringify(m.def[_])&&delete c[_]}let f=s._zod.parent;if(f&&f!==p){o(f);let m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let x in c)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(c[x])===JSON.stringify(m.def[x])&&delete c[x]}e.override({zodSchema:s,jsonSchema:c,path:l.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[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 s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}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 s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,a[l.defId]=l.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ui(t,"input",e.processors),output:Ui(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function At(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 At(o.element,r);if(o.type==="set")return At(o.valueType,r);if(o.type==="lazy")return At(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 At(o.innerType,r);if(o.type==="intersection")return At(o.left,r)||At(o.right,r);if(o.type==="record"||o.type==="map")return At(o.keyType,r)||At(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:At(o.in,r)||At(o.out,r);if(o.type==="object"){for(let n in o.shape)if(At(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(At(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(At(n,r))return!0;return!!(o.rest&&At(o.rest,r))}return!1}var Py=(e,t={})=>r=>{let o=Xr({...r,processors:t});return $e(e,o),Kr(o,e),Yr(o,e)},Ui=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=Xr({...n??{},target:i,io:t,processors:r});return $e(e,a),Kr(a,e),Yr(a,e)};var _C={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zy=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=_C[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),l&&l.size>0){let d=[...l];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}))])}},Iy=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.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),m=t.target==="draft-04"||t.target==="openapi-3.0";p?m?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d:typeof i=="number"&&(n.minimum=i),f?m?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof l=="number"&&(n.multipleOf=l)},Ry=(e,t,r,o)=>{r.type="boolean"},Ey=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Ty=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Cy=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},jy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Oy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Dy=(e,t,r,o)=>{r.not={}},Ny=(e,t,r,o)=>{},Ly=(e,t,r,o)=>{},Ay=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Fy=(e,t,r,o)=>{let n=e._zod.def,i=ds(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},Wy=(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},Uy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},My=(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},By=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:l}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(n,i)},Zy=(e,t,r,o)=>{r.type="boolean"},Hy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Vy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Jy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Gy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Xy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Ky=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=$e(i.element,t,{...o,path:[...o.path,"items"]})},Yy=(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]=$e(a[c],t,{...o,path:[...o.path,"properties",c]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(c=>{let d=i.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=$e(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Du=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,l)=>$e(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},qy=(e,t,r,o)=>{let n=e._zod.def,i=$e(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=$e(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l},Qy=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((f,m)=>$e(f,t,{...o,path:[...o.path,a,m]})),c=i.rest?$e(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:l},c&&n.items.anyOf.push(c),n.minItems=l.length,c||(n.maxItems=l.length)):(n.items=l,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},eh=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,l=a._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let d=$e(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of l)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=$e(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=$e(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)}},th=(e,t,r,o)=>{let n=e._zod.def,i=$e(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"}]},nh=(e,t,r,o)=>{let n=e._zod.def;$e(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},rh=(e,t,r,o)=>{let n=e._zod.def;$e(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},oh=(e,t,r,o)=>{let n=e._zod.def;$e(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)))},ih=(e,t,r,o)=>{let n=e._zod.def;$e(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},ah=(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;$e(a,t,o);let s=t.seen.get(e);s.ref=a},sh=(e,t,r,o)=>{let n=e._zod.def;$e(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},lh=(e,t,r,o)=>{let n=e._zod.def;$e(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Nu=(e,t,r,o)=>{let n=e._zod.def;$e(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ch=(e,t,r,o)=>{let n=e._zod.innerType;$e(n,t,o);let i=t.seen.get(e);i.ref=n},Ou={string:zy,number:Iy,boolean:Ry,bigint:Ey,symbol:Ty,null:Cy,undefined:jy,void:Oy,never:Dy,any:Ny,unknown:Ly,date:Ay,enum:Fy,literal:Wy,nan:Uy,template_literal:My,file:By,success:Zy,custom:Hy,function:Vy,transform:Jy,map:Gy,set:Xy,array:Ky,object:Yy,union:Du,intersection:qy,tuple:Qy,record:eh,nullable:th,nonoptional:nh,default:rh,prefault:oh,catch:ih,pipe:ah,readonly:sh,promise:lh,optional:Nu,lazy:ch};function Lu(e,t){if("_idmap"in e){let o=e,n=Xr({...t,processors:Ou}),i={};for(let l of o._idmap.entries()){let[c,d]=l;$e(d,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let l of o._idmap.entries()){let[c,d]=l;Kr(n,d),a[c]=Yr(n,d)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}let r=Xr({...t,processors:Ou});return $e(e,r),Kr(r,e),Yr(r,e)}var Au=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=Xr({processors:Ou,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 $e(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)),Kr(this.ctx,t);let o=Yr(this.ctx,t),{"~standard":n,...i}=o;return i}};var Pw={};var Rs={};ir(Rs,{ZodAny:()=>jh,ZodArray:()=>Lh,ZodBase64:()=>id,ZodBase64URL:()=>ad,ZodBigInt:()=>Xi,ZodBigIntFormat:()=>cd,ZodBoolean:()=>Gi,ZodCIDRv4:()=>rd,ZodCIDRv6:()=>od,ZodCUID:()=>Ku,ZodCUID2:()=>Yu,ZodCatch:()=>ix,ZodCodec:()=>Us,ZodCustom:()=>Ms,ZodCustomStringFormat:()=>Vi,ZodDate:()=>Ns,ZodDefault:()=>Qh,ZodDiscriminatedUnion:()=>Fh,ZodE164:()=>sd,ZodEmail:()=>Ju,ZodEmoji:()=>Gu,ZodEnum:()=>Zi,ZodExactOptional:()=>Kh,ZodFile:()=>Gh,ZodFunction:()=>gx,ZodGUID:()=>Ts,ZodIPv4:()=>td,ZodIPv6:()=>nd,ZodIntersection:()=>Wh,ZodJWT:()=>ld,ZodKSUID:()=>ed,ZodLazy:()=>px,ZodLiteral:()=>Jh,ZodMAC:()=>Ph,ZodMap:()=>Hh,ZodNaN:()=>sx,ZodNanoID:()=>Xu,ZodNever:()=>Dh,ZodNonOptional:()=>gd,ZodNull:()=>Th,ZodNullable:()=>qh,ZodNumber:()=>Ji,ZodNumberFormat:()=>Co,ZodObject:()=>As,ZodOptional:()=>md,ZodPipe:()=>Ws,ZodPrefault:()=>tx,ZodPreprocess:()=>lx,ZodPromise:()=>mx,ZodReadonly:()=>cx,ZodRecord:()=>Bi,ZodSet:()=>Vh,ZodString:()=>Hi,ZodStringFormat:()=>Ce,ZodSuccess:()=>ox,ZodSymbol:()=>Rh,ZodTemplateLiteral:()=>dx,ZodTransform:()=>Xh,ZodTuple:()=>Mh,ZodType:()=>le,ZodULID:()=>qu,ZodURL:()=>Ds,ZodUUID:()=>qn,ZodUndefined:()=>Eh,ZodUnion:()=>Fs,ZodUnknown:()=>Oh,ZodVoid:()=>Nh,ZodXID:()=>Qu,ZodXor:()=>Ah,_ZodString:()=>Vu,_default:()=>ex,_function:()=>D1,any:()=>p1,array:()=>Ls,base64:()=>Xw,base64url:()=>Kw,bigint:()=>s1,boolean:()=>Ih,catch:()=>ax,check:()=>N1,cidrv4:()=>Jw,cidrv6:()=>Gw,codec:()=>T1,cuid:()=>Fw,cuid2:()=>Ww,custom:()=>L1,date:()=>m1,describe:()=>A1,discriminatedUnion:()=>b1,e164:()=>Yw,email:()=>Rw,emoji:()=>Lw,enum:()=>pd,exactOptional:()=>Yh,file:()=>z1,float32:()=>r1,float64:()=>o1,function:()=>D1,guid:()=>Ew,hash:()=>n1,hex:()=>t1,hostname:()=>e1,httpUrl:()=>Nw,instanceof:()=>W1,int:()=>Zu,int32:()=>i1,int64:()=>l1,intersection:()=>Uh,invertCodec:()=>C1,ipv4:()=>Zw,ipv6:()=>Vw,json:()=>M1,jwt:()=>qw,keyof:()=>g1,ksuid:()=>Bw,lazy:()=>fx,literal:()=>P1,looseObject:()=>h1,looseRecord:()=>k1,mac:()=>Hw,map:()=>_1,meta:()=>F1,nan:()=>E1,nanoid:()=>Aw,nativeEnum:()=>$1,never:()=>ud,nonoptional:()=>rx,null:()=>Ch,nullable:()=>js,nullish:()=>I1,number:()=>zh,object:()=>v1,optional:()=>Cs,partialRecord:()=>S1,pipe:()=>Hu,prefault:()=>nx,preprocess:()=>B1,promise:()=>O1,readonly:()=>ux,record:()=>Zh,refine:()=>vx,set:()=>w1,strictObject:()=>y1,string:()=>Es,stringFormat:()=>Qw,stringbool:()=>U1,success:()=>R1,superRefine:()=>yx,symbol:()=>u1,templateLiteral:()=>j1,transform:()=>fd,tuple:()=>Bh,uint32:()=>a1,uint64:()=>c1,ulid:()=>Uw,undefined:()=>d1,union:()=>dd,unknown:()=>To,url:()=>Dw,uuid:()=>Tw,uuidv4:()=>Cw,uuidv6:()=>jw,uuidv7:()=>Ow,void:()=>f1,xid:()=>Mw,xor:()=>x1});var Fu={};ir(Fu,{endsWith:()=>ji,gt:()=>Kn,gte:()=>Lt,includes:()=>Ti,length:()=>Eo,lowercase:()=>Ri,lt:()=>Xn,lte:()=>on,maxLength:()=>Ro,maxSize:()=>Gr,mime:()=>Oi,minLength:()=>yr,minSize:()=>Yn,multipleOf:()=>Jr,negative:()=>Eu,nonnegative:()=>Cu,nonpositive:()=>Tu,normalize:()=>Di,overwrite:()=>Cn,positive:()=>Ru,property:()=>ju,regex:()=>Ii,size:()=>Io,slugify:()=>Fi,startsWith:()=>Ci,toLowerCase:()=>Li,toUpperCase:()=>Ai,trim:()=>Ni,uppercase:()=>Ei});var Mi={};ir(Mi,{ZodISODate:()=>Uu,ZodISODateTime:()=>Wu,ZodISODuration:()=>Bu,ZodISOTime:()=>Mu,date:()=>dh,datetime:()=>uh,duration:()=>fh,time:()=>ph});var Wu=b("ZodISODateTime",(e,t)=>{Ug.init(e,t),Ce.init(e,t)});function uh(e){return Hv(Wu,e)}var Uu=b("ZodISODate",(e,t)=>{Mg.init(e,t),Ce.init(e,t)});function dh(e){return Vv(Uu,e)}var Mu=b("ZodISOTime",(e,t)=>{Bg.init(e,t),Ce.init(e,t)});function ph(e){return Jv(Mu,e)}var Bu=b("ZodISODuration",(e,t)=>{Zg.init(e,t),Ce.init(e,t)});function fh(e){return Gv(Bu,e)}var zw=(e,t)=>{vs.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>hs(e,r)},flatten:{value:r=>ys(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,xi,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,xi,2)}},isEmpty:{get(){return e.issues.length===0}}})},$C=b("ZodError",zw),Gt=b("ZodError",zw,{Parent:Error});var mh=ki(Gt),gh=_i(Gt),vh=wi(Gt),yh=$i(Gt),hh=Lc(Gt),xh=Ac(Gt),bh=Fc(Gt),Sh=Wc(Gt),kh=Uc(Gt),_h=Mc(Gt),wh=Bc(Gt),$h=Zc(Gt);var Iw=new WeakMap;function Os(e,t,r){let o=Object.getPrototypeOf(e),n=Iw.get(o);if(n||(n=new Set,Iw.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 s=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var le=b("ZodType",(e,t)=>(ie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ui(e,"input"),output:Ui(e,"output")}}),e.toJSONSchema=Py(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>mh(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>vh(e,r,o),e.parseAsync=async(r,o)=>gh(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>yh(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>hh(e,r,o),e.decode=(r,o)=>xh(e,r,o),e.encodeAsync=async(r,o)=>bh(e,r,o),e.decodeAsync=async(r,o)=>Sh(e,r,o),e.safeEncode=(r,o)=>kh(e,r,o),e.safeDecode=(r,o)=>_h(e,r,o),e.safeEncodeAsync=async(r,o)=>wh(e,r,o),e.safeDecodeAsync=async(r,o)=>$h(e,r,o),Os(e,"ZodType",{check(...r){let o=this.def;return this.clone(j.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 Dt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(vx(r,o))},superRefine(r,o){return this.check(yx(r,o))},overwrite(r){return this.check(Cn(r))},optional(){return Cs(this)},exactOptional(){return Yh(this)},nullable(){return js(this)},nullish(){return Cs(js(this))},nonoptional(r){return rx(this,r)},array(){return Ls(this)},or(r){return dd([this,r])},and(r){return Uh(this,r)},transform(r){return Hu(this,fd(r))},default(r){return ex(this,r)},prefault(r){return nx(this,r)},catch(r){return ax(this,r)},pipe(r){return Hu(this,r)},readonly(){return ux(this)},describe(r){let o=this.clone();return yt.add(o,{description:r}),o},meta(...r){if(r.length===0)return yt.get(this);let o=this.clone();return yt.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 yt.get(e)?.description},configurable:!0}),e)),Vu=b("_ZodString",(e,t)=>{zo.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>zy(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Os(e,"_ZodString",{regex(...o){return this.check(Ii(...o))},includes(...o){return this.check(Ti(...o))},startsWith(...o){return this.check(Ci(...o))},endsWith(...o){return this.check(ji(...o))},min(...o){return this.check(yr(...o))},max(...o){return this.check(Ro(...o))},length(...o){return this.check(Eo(...o))},nonempty(...o){return this.check(yr(1,...o))},lowercase(o){return this.check(Ri(o))},uppercase(o){return this.check(Ei(o))},trim(){return this.check(Ni())},normalize(...o){return this.check(Di(...o))},toLowerCase(){return this.check(Li())},toUpperCase(){return this.check(Ai())},slugify(){return this.check(Fi())}})}),Hi=b("ZodString",(e,t)=>{zo.init(e,t),Vu.init(e,t),e.email=r=>e.check(cu(Ju,r)),e.url=r=>e.check(Is(Ds,r)),e.jwt=r=>e.check(Iu(ld,r)),e.emoji=r=>e.check(mu(Gu,r)),e.guid=r=>e.check(zs(Ts,r)),e.uuid=r=>e.check(uu(qn,r)),e.uuidv4=r=>e.check(du(qn,r)),e.uuidv6=r=>e.check(pu(qn,r)),e.uuidv7=r=>e.check(fu(qn,r)),e.nanoid=r=>e.check(gu(Xu,r)),e.guid=r=>e.check(zs(Ts,r)),e.cuid=r=>e.check(vu(Ku,r)),e.cuid2=r=>e.check(yu(Yu,r)),e.ulid=r=>e.check(hu(qu,r)),e.base64=r=>e.check($u(id,r)),e.base64url=r=>e.check(Pu(ad,r)),e.xid=r=>e.check(xu(Qu,r)),e.ksuid=r=>e.check(bu(ed,r)),e.ipv4=r=>e.check(Su(td,r)),e.ipv6=r=>e.check(ku(nd,r)),e.cidrv4=r=>e.check(_u(rd,r)),e.cidrv6=r=>e.check(wu(od,r)),e.e164=r=>e.check(zu(sd,r)),e.datetime=r=>e.check(uh(r)),e.date=r=>e.check(dh(r)),e.time=r=>e.check(ph(r)),e.duration=r=>e.check(fh(r))});function Es(e){return Uv(Hi,e)}var Ce=b("ZodStringFormat",(e,t)=>{Te.init(e,t),Vu.init(e,t)}),Ju=b("ZodEmail",(e,t)=>{Cg.init(e,t),Ce.init(e,t)});function Rw(e){return cu(Ju,e)}var Ts=b("ZodGUID",(e,t)=>{Eg.init(e,t),Ce.init(e,t)});function Ew(e){return zs(Ts,e)}var qn=b("ZodUUID",(e,t)=>{Tg.init(e,t),Ce.init(e,t)});function Tw(e){return uu(qn,e)}function Cw(e){return du(qn,e)}function jw(e){return pu(qn,e)}function Ow(e){return fu(qn,e)}var Ds=b("ZodURL",(e,t)=>{jg.init(e,t),Ce.init(e,t)});function Dw(e){return Is(Ds,e)}function Nw(e){return Is(Ds,{protocol:rn.httpProtocol,hostname:rn.domain,...j.normalizeParams(e)})}var Gu=b("ZodEmoji",(e,t)=>{Og.init(e,t),Ce.init(e,t)});function Lw(e){return mu(Gu,e)}var Xu=b("ZodNanoID",(e,t)=>{Dg.init(e,t),Ce.init(e,t)});function Aw(e){return gu(Xu,e)}var Ku=b("ZodCUID",(e,t)=>{Ng.init(e,t),Ce.init(e,t)});function Fw(e){return vu(Ku,e)}var Yu=b("ZodCUID2",(e,t)=>{Lg.init(e,t),Ce.init(e,t)});function Ww(e){return yu(Yu,e)}var qu=b("ZodULID",(e,t)=>{Ag.init(e,t),Ce.init(e,t)});function Uw(e){return hu(qu,e)}var Qu=b("ZodXID",(e,t)=>{Fg.init(e,t),Ce.init(e,t)});function Mw(e){return xu(Qu,e)}var ed=b("ZodKSUID",(e,t)=>{Wg.init(e,t),Ce.init(e,t)});function Bw(e){return bu(ed,e)}var td=b("ZodIPv4",(e,t)=>{Hg.init(e,t),Ce.init(e,t)});function Zw(e){return Su(td,e)}var Ph=b("ZodMAC",(e,t)=>{Jg.init(e,t),Ce.init(e,t)});function Hw(e){return Bv(Ph,e)}var nd=b("ZodIPv6",(e,t)=>{Vg.init(e,t),Ce.init(e,t)});function Vw(e){return ku(nd,e)}var rd=b("ZodCIDRv4",(e,t)=>{Gg.init(e,t),Ce.init(e,t)});function Jw(e){return _u(rd,e)}var od=b("ZodCIDRv6",(e,t)=>{Xg.init(e,t),Ce.init(e,t)});function Gw(e){return wu(od,e)}var id=b("ZodBase64",(e,t)=>{Yg.init(e,t),Ce.init(e,t)});function Xw(e){return $u(id,e)}var ad=b("ZodBase64URL",(e,t)=>{qg.init(e,t),Ce.init(e,t)});function Kw(e){return Pu(ad,e)}var sd=b("ZodE164",(e,t)=>{Qg.init(e,t),Ce.init(e,t)});function Yw(e){return zu(sd,e)}var ld=b("ZodJWT",(e,t)=>{ev.init(e,t),Ce.init(e,t)});function qw(e){return Iu(ld,e)}var Vi=b("ZodCustomStringFormat",(e,t)=>{tv.init(e,t),Ce.init(e,t)});function Qw(e,t,r={}){return Wi(Vi,e,t,r)}function e1(e){return Wi(Vi,"hostname",rn.hostname,e)}function t1(e){return Wi(Vi,"hex",rn.hex,e)}function n1(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=rn[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Wi(Vi,o,n,t)}var Ji=b("ZodNumber",(e,t)=>{Qc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Iy(e,o,n,i),Os(e,"ZodNumber",{gt(o,n){return this.check(Kn(o,n))},gte(o,n){return this.check(Lt(o,n))},min(o,n){return this.check(Lt(o,n))},lt(o,n){return this.check(Xn(o,n))},lte(o,n){return this.check(on(o,n))},max(o,n){return this.check(on(o,n))},int(o){return this.check(Zu(o))},safe(o){return this.check(Zu(o))},positive(o){return this.check(Kn(0,o))},nonnegative(o){return this.check(Lt(0,o))},negative(o){return this.check(Xn(0,o))},nonpositive(o){return this.check(on(0,o))},multipleOf(o,n){return this.check(Jr(o,n))},step(o,n){return this.check(Jr(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 zh(e){return Xv(Ji,e)}var Co=b("ZodNumberFormat",(e,t)=>{nv.init(e,t),Ji.init(e,t)});function Zu(e){return Yv(Co,e)}function r1(e){return qv(Co,e)}function o1(e){return Qv(Co,e)}function i1(e){return ey(Co,e)}function a1(e){return ty(Co,e)}var Gi=b("ZodBoolean",(e,t)=>{ks.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ry(e,r,o,n)});function Ih(e){return ny(Gi,e)}var Xi=b("ZodBigInt",(e,t)=>{eu.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Ey(e,o,n,i),e.gte=(o,n)=>e.check(Lt(o,n)),e.min=(o,n)=>e.check(Lt(o,n)),e.gt=(o,n)=>e.check(Kn(o,n)),e.gte=(o,n)=>e.check(Lt(o,n)),e.min=(o,n)=>e.check(Lt(o,n)),e.lt=(o,n)=>e.check(Xn(o,n)),e.lte=(o,n)=>e.check(on(o,n)),e.max=(o,n)=>e.check(on(o,n)),e.positive=o=>e.check(Kn(BigInt(0),o)),e.negative=o=>e.check(Xn(BigInt(0),o)),e.nonpositive=o=>e.check(on(BigInt(0),o)),e.nonnegative=o=>e.check(Lt(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Jr(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function s1(e){return oy(Xi,e)}var cd=b("ZodBigIntFormat",(e,t)=>{rv.init(e,t),Xi.init(e,t)});function l1(e){return ay(cd,e)}function c1(e){return sy(cd,e)}var Rh=b("ZodSymbol",(e,t)=>{ov.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ty(e,r,o,n)});function u1(e){return ly(Rh,e)}var Eh=b("ZodUndefined",(e,t)=>{iv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jy(e,r,o,n)});function d1(e){return cy(Eh,e)}var Th=b("ZodNull",(e,t)=>{av.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cy(e,r,o,n)});function Ch(e){return uy(Th,e)}var jh=b("ZodAny",(e,t)=>{sv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ny(e,r,o,n)});function p1(){return dy(jh)}var Oh=b("ZodUnknown",(e,t)=>{lv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ly(e,r,o,n)});function To(){return py(Oh)}var Dh=b("ZodNever",(e,t)=>{cv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dy(e,r,o,n)});function ud(e){return fy(Dh,e)}var Nh=b("ZodVoid",(e,t)=>{uv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Oy(e,r,o,n)});function f1(e){return my(Nh,e)}var Ns=b("ZodDate",(e,t)=>{dv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Ay(e,o,n,i),e.min=(o,n)=>e.check(Lt(o,n)),e.max=(o,n)=>e.check(on(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 m1(e){return gy(Ns,e)}var Lh=b("ZodArray",(e,t)=>{pv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ky(e,r,o,n),e.element=t.element,Os(e,"ZodArray",{min(r,o){return this.check(yr(r,o))},nonempty(r){return this.check(yr(1,r))},max(r,o){return this.check(Ro(r,o))},length(r,o){return this.check(Eo(r,o))},unwrap(){return this.element}})});function Ls(e,t){return hy(Lh,e,t)}function g1(e){let t=e._zod.def.shape;return pd(Object.keys(t))}var As=b("ZodObject",(e,t)=>{fv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yy(e,r,o,n),j.defineLazy(e,"shape",()=>t.shape),Os(e,"ZodObject",{keyof(){return pd(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:To()})},loose(){return this.clone({...this._zod.def,catchall:To()})},strict(){return this.clone({...this._zod.def,catchall:ud()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return j.extend(this,r)},safeExtend(r){return j.safeExtend(this,r)},merge(r){return j.merge(this,r)},pick(r){return j.pick(this,r)},omit(r){return j.omit(this,r)},partial(...r){return j.partial(md,this,r[0])},required(...r){return j.required(gd,this,r[0])}})});function v1(e,t){let r={type:"object",shape:e??{},...j.normalizeParams(t)};return new As(r)}function y1(e,t){return new As({type:"object",shape:e,catchall:ud(),...j.normalizeParams(t)})}function h1(e,t){return new As({type:"object",shape:e,catchall:To(),...j.normalizeParams(t)})}var Fs=b("ZodUnion",(e,t)=>{_s.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Du(e,r,o,n),e.options=t.options});function dd(e,t){return new Fs({type:"union",options:e,...j.normalizeParams(t)})}var Ah=b("ZodXor",(e,t)=>{Fs.init(e,t),mv.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Du(e,r,o,n),e.options=t.options});function x1(e,t){return new Ah({type:"union",options:e,inclusive:!1,...j.normalizeParams(t)})}var Fh=b("ZodDiscriminatedUnion",(e,t)=>{Fs.init(e,t),gv.init(e,t)});function b1(e,t,r){return new Fh({type:"union",options:t,discriminator:e,...j.normalizeParams(r)})}var Wh=b("ZodIntersection",(e,t)=>{vv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qy(e,r,o,n)});function Uh(e,t){return new Wh({type:"intersection",left:e,right:t})}var Mh=b("ZodTuple",(e,t)=>{tu.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qy(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Bh(e,t,r){let o=t instanceof ie,n=o?r:t,i=o?t:null;return new Mh({type:"tuple",items:e,rest:i,...j.normalizeParams(n)})}var Bi=b("ZodRecord",(e,t)=>{yv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>eh(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Zh(e,t,r){return!t||!t._zod?new Bi({type:"record",keyType:Es(),valueType:e,...j.normalizeParams(t)}):new Bi({type:"record",keyType:e,valueType:t,...j.normalizeParams(r)})}function S1(e,t,r){let o=Dt(e);return o._zod.values=void 0,new Bi({type:"record",keyType:o,valueType:t,...j.normalizeParams(r)})}function k1(e,t,r){return new Bi({type:"record",keyType:e,valueType:t,mode:"loose",...j.normalizeParams(r)})}var Hh=b("ZodMap",(e,t)=>{hv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gy(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Yn(...r)),e.nonempty=r=>e.check(Yn(1,r)),e.max=(...r)=>e.check(Gr(...r)),e.size=(...r)=>e.check(Io(...r))});function _1(e,t,r){return new Hh({type:"map",keyType:e,valueType:t,...j.normalizeParams(r)})}var Vh=b("ZodSet",(e,t)=>{xv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xy(e,r,o,n),e.min=(...r)=>e.check(Yn(...r)),e.nonempty=r=>e.check(Yn(1,r)),e.max=(...r)=>e.check(Gr(...r)),e.size=(...r)=>e.check(Io(...r))});function w1(e,t){return new Vh({type:"set",valueType:e,...j.normalizeParams(t)})}var Zi=b("ZodEnum",(e,t)=>{bv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Fy(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 Zi({...t,checks:[],...j.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 Zi({...t,checks:[],...j.normalizeParams(n),entries:i})}});function pd(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Zi({type:"enum",entries:r,...j.normalizeParams(t)})}function $1(e,t){return new Zi({type:"enum",entries:e,...j.normalizeParams(t)})}var Jh=b("ZodLiteral",(e,t)=>{Sv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Wy(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 P1(e,t){return new Jh({type:"literal",values:Array.isArray(e)?e:[e],...j.normalizeParams(t)})}var Gh=b("ZodFile",(e,t)=>{kv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>By(e,r,o,n),e.min=(r,o)=>e.check(Yn(r,o)),e.max=(r,o)=>e.check(Gr(r,o)),e.mime=(r,o)=>e.check(Oi(Array.isArray(r)?r:[r],o))});function z1(e){return xy(Gh,e)}var Xh=b("ZodTransform",(e,t)=>{_v.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jy(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Mr(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(j.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(j.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 fd(e){return new Xh({type:"transform",transform:e})}var md=b("ZodOptional",(e,t)=>{nu.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Cs(e){return new md({type:"optional",innerType:e})}var Kh=b("ZodExactOptional",(e,t)=>{wv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Yh(e){return new Kh({type:"optional",innerType:e})}var qh=b("ZodNullable",(e,t)=>{$v.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>th(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function js(e){return new qh({type:"nullable",innerType:e})}function I1(e){return Cs(js(e))}var Qh=b("ZodDefault",(e,t)=>{Pv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ex(e,t){return new Qh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var tx=b("ZodPrefault",(e,t)=>{zv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>oh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function nx(e,t){return new tx({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var gd=b("ZodNonOptional",(e,t)=>{Iv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>nh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function rx(e,t){return new gd({type:"nonoptional",innerType:e,...j.normalizeParams(t)})}var ox=b("ZodSuccess",(e,t)=>{Rv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function R1(e){return new ox({type:"success",innerType:e})}var ix=b("ZodCatch",(e,t)=>{Ev.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ih(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ax(e,t){return new ix({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var sx=b("ZodNaN",(e,t)=>{Tv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uy(e,r,o,n)});function E1(e){return yy(sx,e)}var Ws=b("ZodPipe",(e,t)=>{ru.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ah(e,r,o,n),e.in=t.in,e.out=t.out});function Hu(e,t){return new Ws({type:"pipe",in:e,out:t})}var Us=b("ZodCodec",(e,t)=>{Ws.init(e,t),ws.init(e,t)});function T1(e,t,r){return new Us({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function C1(e){let t=e._zod.def;return new Us({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var lx=b("ZodPreprocess",(e,t)=>{Ws.init(e,t),Cv.init(e,t)}),cx=b("ZodReadonly",(e,t)=>{jv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ux(e){return new cx({type:"readonly",innerType:e})}var dx=b("ZodTemplateLiteral",(e,t)=>{Ov.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>My(e,r,o,n)});function j1(e,t){return new dx({type:"template_literal",parts:e,...j.normalizeParams(t)})}var px=b("ZodLazy",(e,t)=>{Lv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ch(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function fx(e){return new px({type:"lazy",getter:e})}var mx=b("ZodPromise",(e,t)=>{Nv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function O1(e){return new mx({type:"promise",innerType:e})}var gx=b("ZodFunction",(e,t)=>{Dv.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vy(e,r,o,n)});function D1(e){return new gx({type:"function",input:Array.isArray(e?.input)?Bh(e?.input):e?.input??Ls(To()),output:e?.output??To()})}var Ms=b("ZodCustom",(e,t)=>{Av.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hy(e,r,o,n)});function N1(e){let t=new Oe({check:"custom"});return t._zod.check=e,t}function L1(e,t){return by(Ms,e??(()=>!0),t)}function vx(e,t={}){return Sy(Ms,e,t)}function yx(e,t){return ky(e,t)}var A1=_y,F1=wy;function W1(e,t={}){let r=new Ms({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...j.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 U1=(...e)=>$y({Codec:Us,Boolean:Gi,String:Hi},...e);function M1(e){let t=fx(()=>dd([Es(e),zh(),Ih(),Ch(),Ls(t),Zh(Es(),t)]));return t}function B1(e,t){return new lx({type:"pipe",in:fd(e),out:t})}var zC={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 IC(e){Xe({customError:e})}function RC(){return Xe().customError}var hx;hx||(hx={});var H={...Rs,...Fu,iso:Mi},EC=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 TC(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 CC(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 Z1(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return H.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 H.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=CC(n,t),a=It(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 H.null();if(n.length===0)return H.never();if(n.length===1)return H.literal(n[0]);if(n.every(a=>typeof a=="string"))return H.enum(n);let i=n.map(a=>H.literal(a));return i.length<2?i[0]:H.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return H.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return Z1(a,t)});return n.length===0?H.never():n.length===1?n[0]:H.union(n)}if(!r)return H.any();let o;switch(r){case"string":{let n=H.string();if(e.format){let i=e.format;i==="email"?n=n.check(H.email()):i==="uri"||i==="uri-reference"?n=n.check(H.url()):i==="uuid"||i==="guid"?n=n.check(H.uuid()):i==="date-time"?n=n.check(H.iso.datetime()):i==="date"?n=n.check(H.iso.date()):i==="time"?n=n.check(H.iso.time()):i==="duration"?n=n.check(H.iso.duration()):i==="ipv4"?n=n.check(H.ipv4()):i==="ipv6"?n=n.check(H.ipv6()):i==="mac"?n=n.check(H.mac()):i==="cidr"?n=n.check(H.cidrv4()):i==="cidr-v6"?n=n.check(H.cidrv6()):i==="base64"?n=n.check(H.base64()):i==="base64url"?n=n.check(H.base64url()):i==="e164"?n=n.check(H.e164()):i==="jwt"?n=n.check(H.jwt()):i==="emoji"?n=n.check(H.emoji()):i==="nanoid"?n=n.check(H.nanoid()):i==="cuid"?n=n.check(H.cuid()):i==="cuid2"?n=n.check(H.cuid2()):i==="ulid"?n=n.check(H.ulid()):i==="xid"?n=n.check(H.xid()):i==="ksuid"&&(n=n.check(H.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"?H.number().int():H.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=H.boolean();break}case"null":{o=H.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[l,c]of Object.entries(i)){let d=It(c,t);n[l]=a.has(l)?d:d.optional()}if(e.propertyNames){let l=It(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?It(e.additionalProperties,t):H.any();if(Object.keys(n).length===0){o=H.record(l,c);break}let d=H.object(n).passthrough(),p=H.looseRecord(l,c);o=H.intersection(d,p);break}if(e.patternProperties){let l=e.patternProperties,c=Object.keys(l),d=[];for(let f of c){let m=It(l[f],t),x=H.string().regex(new RegExp(f));d.push(H.looseRecord(x,m))}let p=[];if(Object.keys(n).length>0&&p.push(H.object(n).passthrough()),p.push(...d),p.length===0)o=H.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=H.intersection(p[0],p[1]);for(let m=2;m<p.length;m++)f=H.intersection(f,p[m]);o=f}break}let s=H.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(It(e.additionalProperties,t)):o=s.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(l=>It(l,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?It(i,t):void 0;s?o=H.tuple(a).rest(s):o=H.tuple(a),typeof e.minItems=="number"&&(o=o.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(H.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(l=>It(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?It(e.additionalItems,t):void 0;s?o=H.tuple(a).rest(s):o=H.tuple(a),typeof e.minItems=="number"&&(o=o.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(H.maxLength(e.maxItems)))}else if(i!==void 0){let a=It(i,t),s=H.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=H.array(H.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function It(e,t){if(typeof e=="boolean")return e?H.any():H.never();let r=Z1(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>It(c,t)),l=H.union(s);r=o?H.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>It(c,t)),l=H.xor(s);r=o?H.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:H.any();else{let s=o?r:It(e.allOf[0],t),l=o?0:1;for(let c=l;c<e.allOf.length;c++)s=H.intersection(s,It(e.allOf[c],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=H.nullable(r)),e.readOnly===!0&&(r=H.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))EC.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function H1(e,t){if(typeof e=="boolean")return e?H.any():H.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=TC(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??yt};return It(r,i)}var xx={};ir(xx,{bigint:()=>NC,boolean:()=>DC,date:()=>LC,number:()=>OC,string:()=>jC});function jC(e){return Mv(Hi,e)}function OC(e){return Kv(Ji,e)}function DC(e){return ry(Gi,e)}function NC(e){return iy(Xi,e)}function LC(e){return vy(Ns,e)}Xe(ou());var vd=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:""}),yd=Object.freeze({status:"absent",series:[],startedAt:""});function AC(e){let t=e.split("/").pop()??e,r=t.lastIndexOf(".");if(r>0&&r<t.length-1)return t.slice(r+1).toLowerCase();let o=e.split("/").find(n=>n!=="");return o!==void 0&&o!==""?o.toLowerCase():"file"}function V1(e){let t=Object.entries(e.files).map(([o,n])=>({id:o,label:n.path,kind:AC(n.path)})),r=Object.entries(e.derived).map(([o,n])=>({from:o,to:n.from_nectar,kind:"derived_from"}));return{built:t.length>0,nodes:t,edges:r}}var jo=u.object({id:u.string().catch(""),name:u.string().catch("")}),hd=u.object({pending:u.boolean().catch(!0),selected:u.boolean().catch(!1),authenticated:u.boolean().catch(!1),org:jo.nullable().catch(null),workspace:jo.nullable().catch(null),confirmedBy:u.enum(["selection","grandfathered"]).optional().catch(void 0)}),Ki=Object.freeze({pending:!0,selected:!1,authenticated:!1,org:null,workspace:null}),J1=u.object({orgs:u.array(jo).catch([])}),xd=Object.freeze({orgs:[]}),G1=u.object({org:u.string().catch(""),workspaces:u.array(jo).catch([]),canCreate:u.boolean().catch(!1)}),bd=Object.freeze({org:"",workspaces:[],canCreate:!1}),FC=u.object({selected:u.literal(!0),org:jo,workspace:jo,reminted:u.boolean().catch(!1)}),WC=u.object({selected:u.literal(!1),error:u.string().catch("Selection could not be saved.")}),X1=u.union([FC,WC]),UC=u.object({created:u.literal(!0),workspace:jo}),MC=u.object({created:u.literal(!1),error:u.string().catch("Workspace could not be created.")}),K1=u.union([UC,MC]);var X=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",hiveGraphSearch:"/api/hive-graph/search",hiveGraphStatus:"/api/hive-graph/status",hiveGraphProjection:"/api/hive-graph/projection",hiveGraphBuild:"/api/hive-graph/build",hiveGraphProjects:"/api/hive-graph/projects",hiveGraphBrooding:"/api/hive-graph/projects/brooding",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",setupTenancy:"/setup/tenancy",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"}),BC="x-honeycomb-project";function Oo(e){return e!==void 0&&e!==""?{[BC]:e}:{}}function bx(e){return e!==void 0&&e!==""?`?project=${encodeURIComponent(e)}`:""}var ZC=50,HC=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)}),s$=u.object({sessionId:u.string().catch(""),project:u.string().catch(""),startedAt:u.string().catch(""),eventCount:u.number().catch(0),status:u.string().catch("captured")}),VC=u.object({sessions:u.array(s$).catch([])}),JC=u.object({orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),settings:u.record(u.string(),u.string()).catch({})}),GC=u.object({id:u.string().catch(""),label:u.string().catch(""),kind:u.string().catch("")}),XC=u.object({from:u.string().catch(""),to:u.string().catch(""),kind:u.string().catch("")}),KC=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)}),Y1=u.object({built:u.boolean().catch(!1),nodes:u.array(GC).catch([]),edges:u.array(XC).catch([]),meta:KC.optional().catch(void 0)}),YC=u.object({id:u.string().catch(""),title:u.string().catch(""),active:u.boolean().catch(!1)}),qC=u.object({rules:u.array(YC).catch([])}),QC=u.object({name:u.string().catch(""),scope:u.string().catch(""),syncState:u.string().catch("pending")}),e4=u.object({skills:u.array(QC).catch([])}),Qn=u.number().int().catch(0),kx=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("absent"),l$=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("unreachable"),_x=u.enum(["measured","allocated","none"]).catch("none"),t4=u.object({kind:u.string().catch(""),assumptionText:u.string().catch(""),signedOff:u.boolean().catch(!1)}),n4=u.object({status:kx,measuredCents:Qn,modeledCents:Qn,assumption:t4.catch({kind:"",assumptionText:"",signedOff:!1}),blendedCentsPerMtok:u.number().int().nullable().catch(null)}),r4=u.object({status:l$,cents:Qn,costBasis:_x}),o4=u.object({label:u.string().catch(""),cents:Qn}),i4=u.object({status:l$,cents:Qn,lines:u.array(o4).catch([])}),a4=u.object({status:kx,computed:u.boolean().catch(!1),netCents:Qn,modeled:u.boolean().catch(!0),costBasis:_x}),s4=u.object({key:u.string().catch(""),label:u.string().catch(""),measuredSavingsCents:Qn,netCents:Qn,infraCostCents:Qn,costBasis:_x,sessions:u.number().int().catch(0)}),l4=u.object({dimension:u.enum(["org","team","agent","project"]).catch("org"),rows:u.array(s4).catch([]),mixedBasis:u.boolean().catch(!1)}),c4=u.object({savings:n4.catch({status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null}),infra:r4.catch({status:"unreachable",cents:0,costBasis:"none"}),pollination:i4.catch({status:"unreachable",cents:0,lines:[]}),net:a4.catch({status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"}),rollups:u.array(l4).catch([]),perUserAvailable:u.boolean().catch(!1),scopedAcrossDevices:u.boolean().catch(!1),ratesAsOf:u.string().catch("")}),u4=u.object({period:u.string().catch(""),cents:Qn}),d4=u.object({label:u.string().catch(""),modeled:u.boolean().catch(!1),points:u.array(u4).catch([])}),p4=u.object({status:kx,series:u.array(d4).catch([]),startedAt:u.string().catch("")}),q1=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)}),f4=u.object({skills:u.array(q1).catch([]),agents:u.array(q1).catch([])}),m4=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)}),Sd=Object.freeze({skills:[],agents:[]}),g4=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)}),v4=u.object({hits:u.array(g4).catch([]),sources:u.array(u.string()).catch([]),degraded:u.boolean().catch(!0)}),c$=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)}),y4=u.object({memories:u.array(c$).catch([])}),h4=u.object({memory:c$}),x4=u.object({id:u.string().nullable().catch(null),action:u.string().catch("")}),Q1=u.object({id:u.string().nullable().catch(null),action:u.string().catch(""),audited:u.boolean().catch(!1)}),b4=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)}),S4=u.object({ok:u.boolean().catch(!1),summaries:u.array(b4).catch([]),skippedTables:u.array(u.string()).catch([])}),k4=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)}),_4=u.object({conflicts:u.array(k4).catch([]),status:u.string().catch("open")}),w4=u.object({memoryId:u.string().catch(""),refStatus:u.string().catch("stale"),staleRefs:u.array(u.string()).catch([]),verifiedAt:u.string().nullable().catch(null)}),$4=u.object({staleRefs:u.array(w4).catch([])}),P4=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("")}),z4=u.object({history:u.array(P4).catch([]),type:u.string().catch("lifecycle")}),I4=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)}),R4=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(I4).catch([])}),kd=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),wx=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()}),E4=u.object({records:u.array(wx).catch([]),count:u.number().catch(0)}),T4=u.object({records:u.array(wx).catch([]),count:u.number().catch(0),nextCursor:u.string().nullable().catch(null),persistent:u.boolean().catch(!1)}),C4=u.object({sessions:u.array(s$).catch([]),nextCursor:u.string().nullable().catch(null)}),j4=u.object({kind:u.string().catch(""),binary:u.string().catch(""),fallbackBin:u.string().optional()}),O4=u.object({bin:u.string().catch(""),args:u.array(u.string()).catch([]),fallbackBin:u.string().optional()}),D4=u.object({name:u.string().catch(""),runtimePath:u.string().catch(""),contextChannel:u.string().catch(""),hostCli:O4.catch({bin:"",args:[]}),lifecycleEvents:u.array(u.string()).catch([]),agents:j4.optional(),workspaceRoots:u.boolean().optional(),mcpRegistration:u.boolean().optional(),contractedTools:u.boolean().optional(),agentsMdContext:u.boolean().optional(),userVisibleLogin:u.boolean().optional()}),N4=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:D4.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),L4=u.object({harnesses:u.array(N4).catch([])}),A4=u.object({triggered:u.boolean().catch(!1),status:u.string().catch("skipped"),reason:u.string().optional()}),F4=u.object({built:u.boolean().catch(!1),nodeCount:u.number().catch(0),edgeCount:u.number().catch(0),fileCount:u.number().catch(0)}),Sx=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),W4=u.object({source:u.literal("nectar").catch("nectar"),id:u.string().catch(""),path:u.string().catch(""),title:u.string().catch(""),body:u.string().catch(""),concepts:u.string().catch(""),content_hash:u.string().catch("")}),U4=u.object({hits:u.array(W4).catch([]),sources:u.array(u.literal("nectar")).catch([]),degraded:u.boolean().catch(!0)}),M4=u.object({pending:u.number().catch(0),described:u.number().catch(0),failed:u.number().catch(0),"skipped-too-large":u.number().catch(0),"skipped-binary":u.number().catch(0),"skipped-deleted":u.number().catch(0)}),B4=u.object({queueDepth:u.number().catch(0),describeStatus:M4.catch({pending:0,described:0,failed:0,"skipped-too-large":0,"skipped-binary":0,"skipped-deleted":0}),costSpentUsd:u.number().catch(0),degraded:u.boolean().catch(!0)}),qi=Object.freeze({queueDepth:0,describeStatus:{pending:0,described:0,failed:0,"skipped-too-large":0,"skipped-binary":0,"skipped-deleted":0},costSpentUsd:0,degraded:!0}),Z4=u.object({content_hash:u.string().catch(""),path:u.string().catch(""),title:u.string().catch(""),description:u.string().catch(""),concepts:u.array(u.string()).catch([]),describe_model:u.string().catch(""),described_at:u.string().catch("")}),H4=u.object({from_nectar:u.string().catch(""),fork_content_hash:u.string().catch("")}),V4=u.object({version:u.number().catch(0),generated_at:u.string().catch(""),generator:u.string().catch(""),project:u.object({org_id:u.string().catch(""),workspace_id:u.string().catch(""),project_id:u.string().catch("")}).catch({org_id:"",workspace_id:"",project_id:""}),files:u.record(u.string(),Z4).catch({}),derived:u.record(u.string(),H4).catch({})}),e$=Object.freeze({state:"failed",message:"Build failed"}),J4=u.enum(["active","paused","global-paused"]),G4=u.object({described:u.number().catch(0),pending:u.number().catch(0)}).catch({described:0,pending:0}),X4=u.object({projectId:u.string().catch(""),name:u.string().catch(""),path:u.string().catch(""),brooding:J4.catch("active"),watcher:u.string().catch(""),counts:G4}),t$=u.object({globalBrooding:u.enum(["on","paused"]).catch("on"),projects:u.array(X4).catch([]),tenancyOrgName:u.string().optional(),tenancyWorkspaceName:u.string().optional(),tenancyOrgId:u.string().optional(),tenancyWorkspaceId:u.string().optional()}),u$=Object.freeze({globalBrooding:"on",projects:[],unreachable:!1}),Yi=Object.freeze({globalBrooding:"on",projects:[],unreachable:!0}),Do=Object.freeze({...Ki,unreachable:!0}),n$=12e4,K4=u.object({ok:u.boolean().catch(!1)}),Y4=u.object({ok:u.boolean(),enabled:u.boolean()}),q4=u.object({ok:u.boolean().catch(!1),restarting:u.boolean().catch(!1)}),Q4=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("")}),ej=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")}),tj=u.object({status:u.string().catch("ok"),reasons:ej.optional()}),nj=u.object({id:u.string().catch(""),label:u.string().catch(""),models:u.array(u.string()).catch([]),openEnded:u.boolean().catch(!1)}),rj=u.union([u.string(),u.number(),u.boolean()]).catch(""),oj=u.object({settings:u.record(u.string(),rj).catch({}),catalog:u.array(nj).catch([])}),ij=u.object({names:u.array(u.string()).catch([])}),Bs=Object.freeze({settings:{},catalog:[]}),aj=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()}),$x=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),sj=u.object({deeplake:u.boolean().catch(!1),honeycomb:u.boolean().catch(!1),hivemind:u.boolean().catch(!1)}),lj=u.object({enabled:u.boolean().catch(!1),live:u.boolean().catch(!1),warm:u.boolean().catch(!1)}),cj=u.object({credentials:sj.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:lj.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()}),Zs=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}}),uj=u.object({user_code:u.string().catch(""),verification_uri:u.string().catch(""),verification_uri_complete:u.string().optional()}),dj=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()}),pj=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),fj=u.object({ok:u.boolean().catch(!1),phase:u.literal("rolled_back").catch("rolled_back"),message:u.string().catch("")}),mj=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),gj=u.object({id:u.string().catch(""),name:u.string().catch("")}),vj=u.object({orgs:u.array(gj).catch([])}),yj=u.object({id:u.string().catch(""),name:u.string().catch("")}),hj=u.object({workspaces:u.array(yj).catch([]),org:u.string().catch(""),reminted:u.boolean().catch(!1)}),xj=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)}),bj=u.object({projects:u.array(xj).catch([]),org:u.string().catch(""),workspace:u.string().catch("")}),Sj=u.object({name:u.string().catch(""),path:u.string().catch(""),isGitRepo:u.boolean().catch(!1)}),kj=u.object({path:u.string().catch(""),root:u.string().catch(""),parent:u.string().nullable().catch(null),children:u.array(Sj).catch([]),error:u.string().optional()}),Px=Object.freeze({path:"",root:"",parent:null,children:[]}),r$=u.object({bound:u.boolean().catch(!1),path:u.string().catch(""),projectId:u.string().catch(""),error:u.string().optional()}),o$=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),_j=u.object({unbound:u.boolean().catch(!1),path:u.string().catch("")}),wj=Object.freeze({unbound:!1,path:""}),$j=u.object({switched:u.boolean().catch(!1),org:u.string().catch(""),orgName:u.string().optional(),reminted:u.boolean().catch(!1),error:u.string().optional()}),Pj=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),zj=u.object({switched:u.boolean().catch(!1),workspace:u.string().catch(""),error:u.string().optional()}),Ij=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),Ft=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function je(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...Ft,...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 ht(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},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 Rj(e){return e==="memories"?"team":e==="memory"?"org":"session"}var i$=280;function Ej(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 Tj(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=s=>typeof s=="string"?s.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 s=Ej(r.input??r.tool_input),l=i!==""?i:"tool";return s!==""?`${l} \xB7 ${s}`:l}return a!==""?a:null}function Cj(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=Tj(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=i$?o:`${o.slice(0,i$-1).trimEnd()}\u2026`}var zx={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},Ix={orgId:"",orgName:"",workspace:"",settings:{}},jn={built:!1,nodes:[],edges:[]},No=1500,a$=5e3;function Hs(e,t){let r=e.nodes.length>t,o=e.edges.length>a$;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(s=>s.id)),a=[];for(let s of e.edges)if(!(!i.has(s.from)||!i.has(s.to))&&(a.push(s),a.length>=a$))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var Rx=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),jj=Object.freeze({sessions:[],nextCursor:null});function Oj(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 qr(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(n){return await je(r,o(X.kpis),HC,Oo(n))??zx},async sessions(){return(await je(r,o(X.sessions),VC))?.sessions??[]},async settings(){return await je(r,o(X.settings),JC)??Ix},async rules(){return(await je(r,o(X.rules),qC))?.rules??[]},async skills(){return(await je(r,o(X.skills),e4))?.skills??[]},async graph(n){return await je(r,o(X.graph),Y1,Oo(n))??jn},async memoryGraph(n){return await je(r,o(X.memoryGraph),Y1,Oo(n))??jn},async roi(n){return await je(r,o(X.roi),c4,Oo(n))??vd},async roiTrend(n,i){let a=n!==""?`?range=${encodeURIComponent(n)}`:"";return await je(r,o(`${X.roiTrend}${a}`),p4,Oo(i))??yd},async recall(n,i){try{let a=await r(o(X.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft,...Oo(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let s=v4.safeParse(await a.json());return s.success?{memories:s.data.hits.map((c,d)=>({memoryKey:c.id!==""?c.id:`hit-${d+1}`,snippet:Cj(c.text,c.kind),source:c.source,score:c.score,scope:Rj(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:s.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=ZC,i){return(await je(r,o(`${X.memories}?limit=${n}`),y4,Oo(i)))?.memories??[]},async getMemory(n){return(await je(r,o(`${X.memories}/${encodeURIComponent(n)}`),h4))?.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),ht(r,o(X.memories),i,x4)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),ht(r,o(`${X.memories}/${encodeURIComponent(n)}/modify`),a,Q1)},async forgetMemory(n,i){return ht(r,o(`${X.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},Q1)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return ht(r,o(X.compact),i,S4)},async lifecycleConflicts(n="open"){return(await je(r,o(`${X.lifecycleConflicts}?status=${encodeURIComponent(n)}`),_4))?.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(`${X.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await je(r,o(X.lifecycleStaleRefs),$4))?.staleRefs??[]},async lifecycleHistory(){return(await je(r,o(`${X.lifecycleHistory}?type=lifecycle`),z4))?.history??[]},async calibration(){return await je(r,o(X.calibration),R4)??kd},async logs(n=40){return(await je(r,o(`${X.logs}?limit=${n}`),E4))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a=null,s=l=>{let c=Dj(l.data);c!==null&&n(c)};try{a=new i(o(X.logsStream)),a.addEventListener("log",s)}catch{}return()=>{try{a?.removeEventListener("log",s),a?.close()}catch{}}},async logsHistory(n={}){let i=Oj(n);return await je(r,o(`${X.logs}/history${i}`),T4)??Rx},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 je(r,o(`${X.sessions}${a}`),C4)??jj},async harnesses(){return(await je(r,o(X.harnesses),L4))?.harnesses??[]},async assetsView(){return await je(r,o(X.assets),f4)??Sd},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),ht(r,o(`${X.syncAction}/${n}`),a,m4)},async health(){try{let n=await r(o(X.health),{headers:{accept:"application/json",...Ft}}),i=n.ok,a=null;try{let s=await n.json(),l=tj.safeParse(s);a=l.success?l.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(X.pollinate),{method:"POST",headers:{...Ft}}),i=A4.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(),n$);try{let a=await r(o(X.graphBuild),{method:"POST",headers:{accept:"application/json",...Ft},signal:n.signal});if(!a.ok)return Sx;let s=F4.safeParse(await a.json());return s.success?s.data:Sx}catch{return Sx}finally{clearTimeout(i)}},async hiveGraphFileGraph(n){try{let i=bx(n),a=await r(o(`${X.hiveGraphProjection}${i}`),{headers:{accept:"application/json",...Ft}});if(!a.ok)return{graph:jn,files:{},derived:{},unreachable:!0};let s=V4.safeParse(await a.json());return s.success?{graph:V1(s.data),files:s.data.files,derived:s.data.derived,unreachable:!1}:{graph:jn,files:{},derived:{},unreachable:!0}}catch{return{graph:jn,files:{},derived:{},unreachable:!0}}},async hiveGraphSearch(n,i){try{let a=bx(i),s=await r(o(`${X.hiveGraphSearch}${a}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify({query:n})});if(!s.ok)return{hits:[],sources:[],degraded:!0,unreachable:!0};let l=U4.safeParse(await s.json());return l.success?{...l.data,unreachable:!1}:{hits:[],sources:[],degraded:!0,unreachable:!0}}catch{return{hits:[],sources:[],degraded:!0,unreachable:!0}}},async hiveGraphStatus(n){try{let i=bx(n),a=await r(o(`${X.hiveGraphStatus}${i}`),{headers:{accept:"application/json",...Ft}});if(!a.ok)return{...qi,unreachable:!0};let s=B4.safeParse(await a.json());return s.success?{...s.data,unreachable:!1}:{...qi,unreachable:!0}}catch{return{...qi,unreachable:!0}}},async hiveGraphBuild(){let n=new AbortController,i=setTimeout(()=>n.abort(),n$);try{let a=await r(o(X.hiveGraphBuild),{method:"POST",headers:{accept:"application/json","content-type":"application/json",...Ft},body:JSON.stringify({}),signal:n.signal}),s=await a.json().catch(()=>({})),l=typeof s=="object"&&s!==null?s:{};return a.status===501&&l.error==="build_unavailable"?{state:"unavailable",message:typeof l.reason=="string"?l.reason:"Build unavailable on this daemon"}:a.status===409&&l.status==="already_running"?{state:"already_running",message:typeof l.message=="string"?l.message:"A brood is already in progress"}:a.ok?{state:"accepted",message:"Build triggered"}:l.error==="build_failed"?{state:"failed",message:typeof l.reason=="string"?l.reason:"Build failed"}:e$}catch{return e$}finally{clearTimeout(i)}},async nectarProjects(){try{let n=await r(o(X.hiveGraphProjects),{headers:{accept:"application/json",...Ft}});if(!n.ok)return Yi;let i=t$.safeParse(await n.json());return i.success?{...i.data,unreachable:!1}:Yi}catch{return Yi}},async setNectarBrooding(n){try{let i=await r(o(X.hiveGraphBrooding),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify(n)});if(!i.ok)return Yi;let a=t$.safeParse(await i.json());return a.success?{...a.data,unreachable:!1}:Yi}catch{return Yi}},async vaultSettings(){return await je(r,o(X.vaultSettings),oj)??Bs},async setSetting(n,i){try{return(await r(o(`${X.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await je(r,o(X.secrets),ij))?.names??[]},async setSecret(n,i){try{return(await r(o(`${X.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify({value:i})})).ok}catch{return!1}},async logout(){return(await ht(r,o(X.actionsLogout),{},K4))?.ok===!0},async setEmbeddings(n){let i=await ht(r,o(X.actionsEmbeddings),{enabled:n},Y4);return i?.ok===!0&&i.enabled===n},async restartDaemon(){return(await ht(r,o(X.actionsRestart),{},q4))?.restarting===!0},async uninstall(){return ht(r,o(X.actionsUninstall),{},Q4)},async authStatus(){return await je(r,o(X.authStatus),aj)??$x},async setupState(){return await je(r,o(X.setupState),cj)??Zs},async setupLogin(){return ht(r,o(X.setupLogin),{},uj)},async setupTenancy(){try{let n=await r(o(X.setupTenancy),{headers:{accept:"application/json"}});if(!n.ok)return Do;let i=hd.safeParse(await n.json());return i.success?{...i.data,unreachable:!1}:Do}catch{return Do}},async migrateFromHivemind(){return await ht(r,o(X.setupMigrate),{},dj)??pj},async rollbackMigration(){return await ht(r,o(X.setupMigrateRollback),{},fj)??mj},async scopeOrgs(){return(await je(r,o(X.scopeOrgs),vj))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await je(r,o(`${X.scopeWorkspaces}${i}`),hj)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await je(r,o(`${X.scopeProjects}${i}`),bj))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await je(r,o(`${X.fsBrowse}${i}`),kj)??Px},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await ht(r,o(X.projectsBind),i,r$)??o$},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await ht(r,o(X.projectsBindExisting),i,r$)??o$},async unbindProject(n){return await ht(r,o(X.projectsUnbind),{path:n.path},_j)??wj},async switchOrg(n){return await ht(r,o(X.scopeOrgSwitch),{org:n},$j)??Pj},async switchWorkspace(n){return await ht(r,o(X.scopeWorkspaceSwitch),{workspace:n},zj)??Ij}}}function Dj(e){if(typeof e!="string")return null;try{let t=wx.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function Qr(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 d$="/api/diagnostics/sync/";function _d(e){return(e.path??"").startsWith(d$)}function p$(e){let t=(e.path??"").slice(d$.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 Ke=P(me(),1),lt=P(V(),1),Cx=Object.freeze({org:"local",workspace:"default"}),v$="honeycomb.dashboard.scope",y$=Ke.default.createContext({scope:Cx,setScope:()=>{}});function Wt(){return Ke.default.useContext(y$)}var Mj=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),h$=Ke.default.createContext(Mj);function Vs(){return Ke.default.useContext(h$)}function Bj(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(v$);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 Zj(e){try{if(typeof localStorage>"u")return;localStorage.setItem(v$,JSON.stringify(e))}catch{}}function x$({wire:e,children:t}){let r=Ke.default.useMemo(()=>Bj(),[]),[o,n]=Ke.default.useState(r??Cx),[i,a]=Ke.default.useState([]),[s,l]=Ke.default.useState([]),[c,d]=Ke.default.useState([]),[p,f]=Ke.default.useState(!1),[m,x]=Ke.default.useState(!1),[h,_]=Ke.default.useState(null),v=Ke.default.useCallback(G=>{n(G),Zj(G)},[]),g=Ke.default.useCallback(G=>v(G),[v]),y=Ke.default.useCallback(async()=>{let G=await e.scopeProjects();d(G),f(!0)},[e]);Ke.default.useEffect(()=>{let G=!0;return(async()=>{let Z=await e.scopeOrgs();G&&a(Z)})(),(async()=>{let Z=await e.scopeWorkspaces();G&&l(Z.workspaces)})(),y(),()=>{G=!1}},[e,y]);let S=Ke.default.useCallback(G=>{x(!0),_({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let Z=await e.switchOrg(G);if(!Z.switched){_({kind:"error",message:Z.error!==void 0&&Z.error!==""?`could not switch: ${Z.error}`:"could not switch org"});return}v({org:Z.org,workspace:Cx.workspace,project:void 0});let Re=await e.scopeWorkspaces(Z.org);l(Re.workspaces),d([]),f(!0),_({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]),w=Ke.default.useCallback(G=>{_({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let Z=await e.switchWorkspace(G);if(!Z.switched){_({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(),_({kind:"persisted",message:`switched to ${Z.workspace}`})})()},[e,v,o.org,y]),T=Ke.default.useCallback(G=>{v({org:o.org,workspace:o.workspace,...G!==void 0?{project:G}:{}}),_({kind:"view",message:G!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),I=Ke.default.useMemo(()=>({scope:o,setScope:g}),[o,g]),L=Ke.default.useMemo(()=>({orgs:i,workspaces:s,projects:c,projectsHydrated:p,loadingWorkspaces:m,switchFeedback:h,selectOrg:S,selectWorkspace:w,selectProject:T}),[i,s,c,p,m,h,S,w,T]);return(0,lt.jsx)(y$.Provider,{value:I,children:(0,lt.jsx)(h$.Provider,{value:L,children:t})})}var Hj={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 Ex({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,lt.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,lt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,lt.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...Hj,opacity:o?.6:1},children:i})]})}var Vj="__unsorted__",Tx="";function b$({collapsed:e}){let{scope:t}=Wt(),r=Vs();return e?null:(0,lt.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,lt.jsxs)(Ex,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,lt.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,lt.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,lt.jsxs)(Ex,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,lt.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,lt.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,lt.jsxs)(Ex,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??Tx,onChange:o=>r.selectProject(o===Tx?void 0:o),children:[(0,lt.jsx)("option",{value:Tx,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,lt.jsx)("option",{value:o.projectId,children:o.projectId===Vj?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,lt.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,lt.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 _$=P(V(),1);function $d(e){if(e.unreachable)return{kind:"unavailable"};if(!e.authenticated)return{kind:"not-linked"};if(!e.selected)return{kind:"not-selected"};let t=e.org?.name!==""&&e.org?.name!==void 0?e.org.name:e.org?.id??"",r=e.workspace?.name!==""&&e.workspace?.name!==void 0?e.workspace.name:e.workspace?.id??"";return t===""||r===""?{kind:"unavailable"}:e.confirmedBy!==void 0?{kind:"ok",org:t,workspace:r,confirmedBy:e.confirmedBy}:{kind:"ok",org:t,workspace:r}}function Jj(e){switch(e.kind){case"ok":return e.confirmedBy==="grandfathered"?`${e.org} \xB7 ${e.workspace} (grandfathered)`:`${e.org} \xB7 ${e.workspace}`;case"unavailable":return"tenancy unavailable";case"not-linked":return"not linked";case"not-selected":return"tenancy not selected";default:return e}}function S$({wire:e,refreshKey:t=0}){let{switchFeedback:r}=Vs(),[o,n]=Js.default.useState(Do),i=Js.default.useCallback(async()=>{n(await e.setupTenancy())},[e]);Js.default.useEffect(()=>{i()},[i,t]),Js.default.useEffect(()=>{r?.kind==="persisted"&&r.pending!==!0&&i()},[r,i]);let a=$d(o),s=Jj(a);return(0,_$.jsx)("span",{"data-testid":"active-tenancy-display","data-tenancy-state":a.kind,style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:a.kind==="ok"?"var(--text-secondary)":"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:s})}function k$(e,t){return e?.org!==void 0&&e.org!==""&&e.workspace!==void 0&&e.workspace!==""?`${e.org} \xB7 ${e.workspace}`:t.kind==="ok"?`${t.org} \xB7 ${t.workspace} (fleet credential)`:t.kind==="unavailable"?"tenancy unknown":t.kind==="not-linked"?"not linked":t.kind==="not-selected"?"tenancy not selected":"tenancy unknown"}var w$=P(me(),1),Pe=P(V(),1);function R({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:s="button",style:l,...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)"}},m=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",...m,...l},h={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:s,disabled:o,onClick:a,style:x,onMouseEnter:S=>{o||(S.currentTarget.style.background=h[t]??h.primary)},onMouseLeave:S=>{o||(S.currentTarget.style.background=String(m.background))},onMouseDown:S=>{o||(S.currentTarget.style.transform="translateY(1px)")},onMouseUp:S=>{o||(S.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function K({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 On({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:s,type:l="text",style:c,...d}){let[p,f]=w$.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:[s&&(0,Pe.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:s}),(0,Pe.jsx)("input",{type:l,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 hn({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)"},s=a[n]??a.honey,l=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:s,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:l?"var(--verified)":"var(--severity-critical)"},children:[l?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function Pd({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:s,secondary:l=!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:l?.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"}),(l||s==="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 er=P(me(),1);var Gj=P(me(),1);var $$=P(V(),1);function Xj(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),s=Math.max(1,t.height-56),l=n>1?a/(n-1):0,c=i>1?s/(i-1):0;for(let d=0;d<o;d++){let p=e[d];if(p===void 0)continue;let f=d%n,m=Math.floor(d/n);r.set(p.id,{x:n>1?28+f*l:t.width/2,y:i>1?28+m*c:t.height/2})}return r}function Qi(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 Xj(e,r);let s=Math.max(0,Math.min(i,a)-28),l=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)/l;o.set(d.id,{x:i+s*Math.cos(p),y:a+s*Math.sin(p)})}return o}function P$(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],s=[];for(let l of t){if(l.from===e&&l.to!==e){let c=`${l.kind}\0${l.to}`;n.has(c)||(n.add(c),r.has(l.kind)||(r.set(l.kind,[]),a.push(l.kind)),r.get(l.kind)?.push(l.to))}if(l.to===e&&l.from!==e){let c=`${l.kind}\0${l.from}`;i.has(c)||(i.add(c),o.has(l.kind)||(o.set(l.kind,[]),s.push(l.kind)),o.get(l.kind)?.push(l.from))}}return{outgoing:a.map(l=>({kind:l,ids:r.get(l)??[]})),incoming:s.map(l=>({kind:l,ids:o.get(l)??[]}))}}var F=P(V(),1);function re({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,F.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,F.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,F.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,F.jsx)("span",{style:{flex:1}}),r]}),(0,F.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function Ox({children:e}){return(0,F.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var Xs={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},Ks="var(--text-tertiary)",Gs=5;function z$({label:e,onClick:t,disabled:r}){return(0,F.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 R$({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/Gs)),[o,n]=er.default.useState(0),i=Math.min(o,r-1),a=i*Gs,s=e.slice(a,a+Gs),l=t===0?0:a+1,c=Math.min(a+Gs,t),d=t>Gs?(0,F.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,F.jsx)(z$,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,F.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[l,"\u2013",c," of ",t]}),(0,F.jsx)(z$,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,F.jsx)(re,{title:"Turns",eyebrow:`${t} captured`,right:d,children:t===0?(0,F.jsx)(Ox,{children:"No turns captured yet."}):(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:s.map((p,f)=>(0,F.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,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,F.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,F.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,F.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,F.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,F.jsx)(K,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function E$({rules:e}){return(0,F.jsx)(re,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,F.jsx)(Ox,{children:"No rules defined."}):(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,F.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,F.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var Dx={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function T$({skills:e}){return(0,F.jsx)(re,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,F.jsx)(Ox,{children:"No skills synced."}):(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,F.jsx)(K,{tone:Dx[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var zd={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},Id="var(--text-tertiary)";function eo({lines:e}){return(0,F.jsx)(re,{title:"Live log",right:(0,F.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,F.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,F.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,F.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var tt=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode",portkeyEnabled:"portkey.enabled",portkeyConfig:"portkey.config",portkeyFallbackToProvider:"portkey.fallbackToProvider"}),ta=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY",portkey:"PORTKEY_API_KEY"});function I$({value:e,onChange:t,options:r,ariaLabel:o}){return(0,F.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,F.jsx)("option",{value:n.value,children:n.label},n.value))})}function jx({on:e,onToggle:t,ariaLabel:r}){return(0,F.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,F.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function ea({label:e,hint:t,children:r}){return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,F.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,F.jsx)("span",{style:{flex:1}}),r]})}function Rd({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[tt.activeProvider]??""),i=String(t[tt.activeModel]??""),a=t[tt.pollinatingEnabled]===!0||t[tt.pollinatingEnabled]==="true",s=e.find(h=>h.id===n),[l,c]=er.default.useState(i);er.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"},...(s?.models??[]).map(h=>({value:h,label:h}))],f=h=>{o(tt.activeProvider,h)},m=h=>{h.length!==0&&o(tt.activeModel,h)},x=()=>{let h=l.trim();h.length>0&&h!==i&&o(tt.activeModel,h)};return(0,F.jsx)(re,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,F.jsxs)(ea,{label:"Provider",hint:"inference provider",children:[(0,F.jsx)(I$,{ariaLabel:"provider",value:n,onChange:f,options:d}),n.length>0&&(0,F.jsx)(Yj,{provider:n,secretNames:r})]}),(0,F.jsx)(ea,{label:"Model",hint:s?.openEnded?"free-form id":"from catalog",children:s===void 0?(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):s.openEnded?(0,F.jsx)("input",{"aria-label":"model",type:"text",value:l,placeholder:"vendor/model",onChange:h=>c(h.target.value),onBlur:x,onKeyDown:h=>{h.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,F.jsx)(I$,{ariaLabel:"model",value:i,onChange:m,options:p})}),(0,F.jsx)(ea,{label:"Pollinating",hint:"background consolidation",children:(0,F.jsx)(jx,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(tt.pollinatingEnabled,!a)}})})]})})}function Yj({provider:e,secretNames:t}){let r=ta[e],o=r!==void 0&&t.includes(r);return(0,F.jsx)(K,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function C$({settings:e,secretNames:t,onSaveSetting:r,onSaveKey:o}){let n=e[tt.portkeyEnabled]===!0||e[tt.portkeyEnabled]==="true",i=String(e[tt.portkeyConfig]??""),a=e[tt.portkeyFallbackToProvider]===!0||e[tt.portkeyFallbackToProvider]==="true",[s,l]=er.default.useState(i);er.default.useEffect(()=>l(i),[i]);let[c,d]=er.default.useState(""),[p,f]=er.default.useState(!1),[m,x]=er.default.useState(!1),h=()=>{let y=s.trim();y!==i&&r(tt.portkeyConfig,y)},_=er.default.useCallback(async()=>{let y=c;if(y.length===0){x(!0);return}f(!0),x(!1);let S=await o(y);f(!1),S?d(""):x(!0)},[c,o]),v=ta.portkey??"PORTKEY_API_KEY",g=t.includes(v);return(0,F.jsx)(re,{title:"Portkey gateway",eyebrow:"portkey.enabled \xB7 config \xB7 API key \xB7 fallback",children:(0,F.jsxs)("div",{"data-testid":"portkey-gateway-section",style:{display:"flex",flexDirection:"column",gap:2},children:[(0,F.jsx)(ea,{label:"Use Portkey gateway",hint:"routes all inference through Portkey",children:(0,F.jsx)(jx,{ariaLabel:"portkey enabled",on:n,onToggle:()=>{r(tt.portkeyEnabled,!n)}})}),(0,F.jsx)(ea,{label:"Portkey config",hint:"config id or virtual key from your Portkey dashboard",children:(0,F.jsx)("input",{"aria-label":"portkey config","data-testid":"portkey-config-input",type:"text",value:s,placeholder:"pk-\u2026",onChange:y=>l(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,F.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,F.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:"Portkey API key"}),(0,F.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,F.jsx)("input",{"aria-label":"portkey api key","data-testid":"portkey-key-input",type:"password",value:c,placeholder:g?"replace key\u2026":"paste key\u2026",onChange:y=>{d(y.target.value),m&&x(!1)},onKeyDown:y=>{y.key==="Enter"&&_()},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,F.jsx)("button",{type:"button",disabled:p,"data-testid":"portkey-key-save",onClick:()=>{_()},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,F.jsx)(K,{tone:g?"verified":"neutral",mono:!0,dot:!0,children:g?"key set \u2713":"not set"}),m&&(0,F.jsx)("span",{"data-testid":"portkey-key-rejected",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]}),(0,F.jsx)(ea,{label:"Fallback to provider",hint:"use per-provider key if Portkey is unreachable",children:(0,F.jsx)(jx,{ariaLabel:"portkey fallback to provider",on:a,onToggle:()=>{r(tt.portkeyFallbackToProvider,!a)}})})]})})}function j$({url:e,onRetry:t}){return(0,F.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,F.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,F.jsxs)("div",{style:{flex:1},children:[(0,F.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,F.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,F.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 qj=["error","degraded","starting","warming","active"];function O$(e){return qj.includes(e)}function D$(e){return{health:e.health,lastSeen:e.lastSeen,telemetryFault:e.telemetryFault}}function Ys(e){return{health:e.health,lastSeen:null,telemetryFault:null}}var Qj=1e4,eO=2e4;function qs(e){let{signal:t,now:r,firstActiveAt:o}=e,n=e.warmingGraceMs??Qj,i=e.staleAfterMs??eO;if(t===null)return"starting";if(t.telemetryFault!==null)return"degraded";if(t.health==="unreachable")return"error";if(t.lastSeen!==null){let a=Date.parse(t.lastSeen);if(Number.isFinite(a)&&r-a>i)return"error"}switch(t.health){case"degraded":return"degraded";case"unknown":return"starting";case"ok":return o!==null&&r-o<n?"warming":"active";default:return t.health}}function Nx(e,t,r){return e!=="ok"?null:t??r}var Se=P(V(),1);function Ed(){return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("ellipse",{cx:12,cy:13,rx:4.4,ry:5.4,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,Se.jsx)("path",{d:"M8.4 11.2h7.2M8.1 14.4h7.8",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}),(0,Se.jsx)("circle",{cx:12,cy:6.6,r:2.1,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,Se.jsx)("path",{d:"M10.8 5.2 9.6 3.2M13.2 5.2l1.2-2",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round"})]})}var na={width:22,height:22,viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1};function tO(){return(0,Se.jsxs)("svg",{...na,"data-service-state":"starting",children:[(0,Se.jsx)("path",{d:"M12 3.5 19 7.75v8.5L12 20.5 5 16.25v-8.5z",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"2.5 2.5",strokeLinejoin:"round"}),(0,Se.jsx)("circle",{cx:12,cy:12,r:1.6,fill:"currentColor",opacity:.6})]})}function nO(){return(0,Se.jsxs)("svg",{...na,"data-service-state":"warming",children:[(0,Se.jsx)(Ed,{}),(0,Se.jsx)("path",{d:"M8.2 12.4c-1.6-.6-2.6-.2-3-.7M15.8 12.4c1.6-.6 2.6-.2 3-.7",fill:"none",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round",opacity:.65})]})}function rO(){return(0,Se.jsxs)("svg",{...na,"data-service-state":"active",children:[(0,Se.jsx)(Ed,{}),(0,Se.jsx)("ellipse",{cx:5.6,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(-24 5.6 10.4)"}),(0,Se.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"})]})}function oO(){return(0,Se.jsxs)("svg",{...na,"data-service-state":"degraded",children:[(0,Se.jsx)(Ed,{}),(0,Se.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"}),(0,Se.jsx)("path",{d:"M18.4 2.4v3.6M18.4 7.4v.01",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round"})]})}function iO(){return(0,Se.jsxs)("svg",{...na,"data-service-state":"error",children:[(0,Se.jsx)("g",{transform:"rotate(180 12 12)",children:(0,Se.jsx)(Ed,{})}),(0,Se.jsx)("path",{d:"M8.6 9.6l3.4 3.4-3.4 3.4M15.4 9.6l-3.4 3.4 3.4 3.4",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",opacity:.85})]})}function aO(){return(0,Se.jsxs)("svg",{...na,"data-service-state":"unknown",children:[(0,Se.jsx)("circle",{cx:12,cy:12,r:8,fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"3 3"}),(0,Se.jsx)("path",{d:"M12 9v4M12 15.5v.01",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round"})]})}function to({state:e}){if(!O$(e))return(0,Se.jsx)(aO,{});let t=e;switch(t){case"starting":return(0,Se.jsx)(tO,{});case"warming":return(0,Se.jsx)(nO,{});case"active":return(0,Se.jsx)(rO,{});case"degraded":return(0,Se.jsx)(oO,{});case"error":return(0,Se.jsx)(iO,{});default:return t}}var Dn={starting:"starting",warming:"warming up",active:"active",degraded:"degraded",error:"error"},no={starting:"var(--text-tertiary)",warming:"var(--severity-warning)",active:"var(--verified)",degraded:"var(--severity-warning)",error:"var(--severity-critical)"};var Lo=P(me(),1);var Lx="fleet-telemetry",sO=u.enum(["ok","degraded","unreachable","unknown"]),lO=u.enum(["missing","locked","malformed","read-error"]),cO=u.object({connected:u.boolean().nullable(),lastCommunicationAt:u.string().nullable()}),uO=u.object({name:u.string().min(1),health:sO,lastSeen:u.string().nullable(),metrics:u.record(u.string(),u.number()),deeplake:cO.nullable(),telemetryFault:lO.nullable()}),dO=u.object({service:u.string().min(1),ts:u.string().min(1),level:u.string().min(1),message:u.string()}),pO=u.object({asOf:u.string().min(1),services:u.array(uO),logs:u.array(dO)});function N$(e){let t;try{t=JSON.parse(e)}catch{return null}let r=pO.safeParse(t);return r.success?r.data:null}var fO="/api/registered-services",mO="/api/telemetry/stream",gO="/api/fleet-status",vO=2e3,L$=500;function yO(e=[]){return{registeredNames:e,services:new Map,logs:[],source:"none",asOf:null}}function Ax(e,t){return e.includes(t)?e:[...e,t]}function hO(e,t){let r=e.registeredNames;for(let o of t)r=Ax(r,o);return r===e.registeredNames?e:{...e,registeredNames:r}}function xO(e,t){if(t.length===0)return e;let r=[...e,...t];return r.length>L$?r.slice(r.length-L$):r}function bO(e,t,r){let o=e.registeredNames,n=new Map(e.services);for(let i of t.services){o=Ax(o,i.name);let a=D$(i),s=n.get(i.name);n.set(i.name,{signal:a,metrics:i.metrics,deeplake:i.deeplake,firstActiveAt:Nx(i.health,s?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:xO(e.logs,t.logs),source:"sse",asOf:t.asOf}}function SO(e,t,r){if(t.supervisor!=="reachable")return{...e,source:"rest"};let o=e.registeredNames,n=new Map;for(let i of t.daemons){o=Ax(o,i.name);let a=Ys(i),s=e.services.get(i.name);n.set(i.name,{signal:a,metrics:s?.metrics??{},deeplake:s?.deeplake??null,firstActiveAt:Nx(i.health,s?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:e.logs,source:"rest",asOf:t.asOf}}function kO(e,t){return e.registeredNames.map(r=>{let o=e.services.get(r),n=qs({signal:o?.signal??null,now:t,firstActiveAt:o?.firstActiveAt??null});return{name:r,state:n,health:o?.signal.health??null,lastSeen:o?.signal.lastSeen??null,metrics:o?.metrics??{},deeplake:o?.deeplake??null,telemetryFault:o?.signal.telemetryFault??null}})}function _O(e,t){return{services:kO(e,t),logs:e.logs,source:e.source,asOf:e.asOf}}function ra(e={}){let t=e.restPollMs??vO,[r,o]=Lo.default.useState(()=>yO()),[n,i]=Lo.default.useState(()=>Date.now());return Lo.default.useEffect(()=>{let a=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(a)},[]),Lo.default.useEffect(()=>{let a=!0;return(async()=>{try{let s=await fetch(fO);if(!s.ok)return;let l=await s.json();if(!a||!Array.isArray(l.names))return;let c=l.names.filter(d=>typeof d=="string");c.length>0&&o(d=>hO(d,c))}catch{}})(),()=>{a=!1}},[]),Lo.default.useEffect(()=>{let a=!0,s=null;function l(){s!==null&&(clearInterval(s),s=null)}function c(){if(s!==null)return;let x=async()=>{try{let _=await(await fetch(gO)).json();if(!a)return;o(v=>SO(v,_,Date.now()))}catch{}};x(),s=setInterval(()=>{x()},t)}let d=globalThis.EventSource;if(d===void 0)return c(),()=>{a=!1,l()};let p=null,f=x=>{if(!a)return;let h=typeof x.data=="string"?x.data:String(x.data),_=N$(h);_!==null&&(l(),o(v=>bO(v,_,Date.now())))},m=()=>c();try{p=new d(mO),p.addEventListener(Lx,f),p.addEventListener("error",m)}catch{c()}return()=>{a=!1,l();try{p?.removeEventListener(Lx,f),p?.removeEventListener("error",m),p?.close()}catch{}}},[t]),Lo.default.useMemo(()=>_O(r,n),[r,n])}var Qs=["debug","info","warn","error"];function wO(e){let t=Qs.indexOf(e.trim().toLowerCase());return t===-1?Qs.indexOf("info"):t}function A$(e,t){let r=Qs.indexOf(t);return e.filter(o=>wO(o.level)>=r)}var xn=P(V(),1),F$="/health",$O={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0};function PO({service:e}){let t=`${e.name}: ${Dn[e.state]}`;return(0,xn.jsxs)("span",{"data-testid":`health-rail-pill-${e.name}`,"data-state":e.state,title:t,style:{display:"inline-flex",alignItems:"center",gap:6,height:26,padding:"0 10px",borderRadius:"var(--radius-full)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)",flex:"none"},children:[(0,xn.jsx)("span",{style:{color:no[e.state],display:"inline-flex",width:14,height:14},"aria-hidden":"true",children:(0,xn.jsx)(to,{state:e.state})}),(0,xn.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-secondary)",whiteSpace:"nowrap"},children:[e.name,(0,xn.jsxs)("span",{style:$O,children:[": ",Dn[e.state]]})]})]})}function W$({onOpenHealth:e}={}){let t=ra();return(0,xn.jsxs)("div",{"data-testid":"health-rail",role:"status","aria-live":"polite","aria-label":"Fleet health",style:{display:"flex",alignItems:"center",gap:8,padding:"8px 28px",borderBottom:"1px solid var(--border-subtle)",overflowX:"auto"},children:[t.services.length===0?(0,xn.jsx)("span",{"data-testid":"health-rail-empty",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"no services registered"}):t.services.map(r=>(0,xn.jsx)(PO,{service:r},r.name)),(0,xn.jsx)("span",{style:{flex:1}}),e!==void 0&&(0,xn.jsx)("button",{type:"button","data-testid":"health-rail-open-health",onClick:e,style:{background:"transparent",border:"none",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:11,cursor:"pointer",padding:0},children:"health details \u2192"})]})}var Le=P(me(),1);var K$=P(me(),1);var el=P(me(),1);var Td=P(me(),1),xr=P(V(),1),Cd=1180;function Ye({title:e,eyebrow:t,right:r,children:o}){return(0,xr.jsxs)("div",{style:{maxWidth:Cd,margin:"0 auto",width:"100%"},children:[(0,xr.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,xr.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,xr.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,xr.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,xr.jsx)("span",{style:{flex:1}}),r]}),(0,xr.jsx)("div",{children:o})]})}function an(){return typeof document<"u"&&document.visibilityState==="hidden"}function Nn(e,t){let r=Td.default.useRef(e);Td.default.useEffect(()=>{r.current=e},[e]),Td.default.useEffect(()=>{let o=!0,n=async()=>{!o||an()||await r.current()};n();let i=setInterval(()=>{n()},t),a=()=>{an()||n()};return typeof document<"u"&&document.addEventListener("visibilitychange",a),()=>{o=!1,clearInterval(i),typeof document<"u"&&document.removeEventListener("visibilitychange",a)}},[t])}var jd=P(me(),1);function U$(e){let t=e.trim();return t===""?"/":t}var Fx="hive:pathchange";function Od(){let[e,t]=jd.default.useState(()=>typeof window>"u"?"/":U$(window.location.pathname));jd.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(U$(window.location.pathname));return o(),window.addEventListener("popstate",o),window.addEventListener(Fx,o),()=>{window.removeEventListener("popstate",o),window.removeEventListener(Fx,o)}},[]);let r=jd.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("/")?o:`/${o}`;window.location.pathname!==n&&window.history.pushState(null,"",n),window.dispatchEvent(new Event(Fx))},[]);return{route:e,navigate:r}}var U=P(V(),1),zO=5e3,IO=2500,M$=12,B$="/harnesses/";function RO(e){if(!e.startsWith(B$))return null;let t=e.slice(B$.length).split("/")[0]??"";return t===""?null:t}function Wx({name:e}){return(0,U.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:Xs[e]??Ks}})}function Dd(e){return e.installed?e.active?"active":"idle":"not installed"}var H$={active:"verified",idle:"neutral","not installed":"neutral"};function oa(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 V$={active:"active",idle:"idle","not installed":"not installed"};function EO({h:e,onOpen:t}){let r=Dd(e),o=r==="not installed";return(0,U.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,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,U.jsx)(Wx,{name:e.name}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)(K,{tone:H$[r],mono:!0,dot:!0,children:V$[r]})]}),(0,U.jsx)(hn,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,U.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",oa(e.lastSeen)]})]})}function Z$({on:e}){return(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function TO({harnesses:e,onOpen:t}){return(0,U.jsx)(re,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,U.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,U.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,U.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,U.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,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,U.jsx)(Wx,{name:r.name}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,U.jsx)(Z$,{on:r.installed}),(0,U.jsx)(Z$,{on:r.active}),(0,U.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:oa(r.lastSeen)}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function CO({harnesses:e,onOpen:t}){return(0,U.jsx)(Ye,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,U.jsx)(re,{title:"Harnesses",children:(0,U.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,U.jsx)(EO,{h:r,onOpen:t},r.name))}),(0,U.jsx)(TO,{harnesses:e,onOpen:t})]})})}function sn({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:130},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"},children:t})]})}function jO({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(re,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,U.jsx)(sn,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,U.jsx)(sn,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,U.jsx)(sn,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,U.jsx)(sn,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,U.jsx)(sn,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,U.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,U.jsxs)(re,{title:"Agents",eyebrow:"cursor-agent",children:[(0,U.jsx)(sn,{label:"agent kind",children:e.agents.kind}),(0,U.jsx)(sn,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,U.jsx)(sn,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,U.jsx)(sn,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,U.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"MCP",eyebrow:"registered",children:(0,U.jsx)(sn,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,U.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"Contracted tools",eyebrow:"registered",children:(0,U.jsx)(sn,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,U.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,U.jsx)(sn,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,U.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"Context surface",eyebrow:"login line",children:(0,U.jsx)(sn,{label:"injection",children:"user-visible login line"})})})]})}function OO(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function DO({name:e,status:t,lines:r,onBack:o}){let n=(0,U.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,U.jsx)(Ye,{title:e,eyebrow:"harness",right:n,children:(0,U.jsx)(re,{title:"Unknown harness",children:(0,U.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,U.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=Dd(t);return(0,U.jsxs)(Ye,{title:e,eyebrow:"harness",right:n,children:[(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,U.jsx)(Wx,{name:e}),(0,U.jsx)(K,{tone:H$[i],mono:!0,dot:!0,children:V$[i]}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",oa(t.lastSeen)]})]}),(0,U.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,U.jsx)(hn,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,U.jsx)(hn,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,U.jsx)(hn,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,U.jsx)(jO,{cap:t.capabilities}),(0,U.jsx)(eo,{lines:r})]})}function J$({wire:e}){let{route:t,navigate:r}=Od(),o=RO(t),[n,i]=el.default.useState([]),[a,s]=el.default.useState([]);Nn(async()=>i(await e.harnesses()),zO),Nn(async()=>{if(o===null){s([]);return}let d=await e.logs(M$*4),p=OO(d,o);s(p.slice(-M$).reverse().map(Qr))},IO);let l=el.default.useCallback(d=>r(`/harnesses/${d}`),[r]),c=el.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let d=n.find(p=>p.name===o)??null;return(0,U.jsx)(DO,{name:o,status:d,lines:a,onBack:c})}return(0,U.jsx)(CO,{harnesses:n,onOpen:l})}function G$(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 nt=P(V(),1),X$={active:"verified",idle:"neutral"};function NO({h:e}){let r=Dd(e)==="active"?X$.active:X$.idle;return(0,nt.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${oa(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,nt.jsxs)(K,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,nt.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:Xs[e.name]??Ks}}),e.name]})})}function LO({h:e}){return(0,nt.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,nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,nt.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:Xs[e.name]??Ks}}),(0,nt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,nt.jsx)(hn,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,nt.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",oa(e.lastSeen)]})]})}function Y$({harnesses:e,streamLines:t}){let r=K$.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,nt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,nt.jsx)(re,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,nt.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,nt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,nt.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,nt.jsx)(NO,{h:o},o.name))}),(0,nt.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,nt.jsx)(LO,{h:o},o.name))})]})}),(0,nt.jsx)(eo,{lines:t})]})}var se=P(V(),1),AO=2500,FO=5e3,Nd=8,WO=5;function UO(){return new Date().toTimeString().slice(0,8)}function MO({query:e,setQuery:t,onRecall:r,busy:o}){return(0,se.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,se.jsx)("div",{style:{flex:1},children:(0,se.jsx)(On,{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,se.jsx)(R,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function BO(){return(0,se.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,se.jsx)(K,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var ZO=[{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 HO({reasons:e}){return e===null?null:(0,se.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,se.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),ZO.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,se.jsxs)(K,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function q$({wire:e,pollinating:t=!1,healthReasons:r=null}){let{scope:o}=Wt(),[n,i]=Le.default.useState(zx),[a,s]=Le.default.useState([]),[l,c]=Le.default.useState([]),[d,p]=Le.default.useState([]),[f,m]=Le.default.useState(Bs),[x,h]=Le.default.useState([]),[_,v]=Le.default.useState([]),[g,y]=Le.default.useState("how do we deploy"),[S,w]=Le.default.useState([]),[T,I]=Le.default.useState(!1),[L,G]=Le.default.useState(!1),[Z,Re]=Le.default.useState(0),[W,ne]=Le.default.useState(!1),[ue,Je]=Le.default.useState([]),[Rt,ao]=Le.default.useState([]),Sn=Le.default.useCallback(q=>{ao(ve=>[`${UO()} ${q}`,...ve].slice(0,Nd))},[]),br=Le.default.useRef(0),Ee=Le.default.useCallback(async()=>{let q=++br.current,[ve,Me,kn,Mn,rr,$z]=await Promise.all([e.kpis(o.project),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);q===br.current&&(i(ve),s(Me),c(kn),p(Mn),m(rr),h($z))},[e,o.project]),kt=Le.default.useCallback(async(q,ve)=>{let Me=await e.setSetting(q,ve),[kn,Mn]=await Promise.all([e.vaultSettings(),e.secretNames()]);return m(kn),h(Mn),Me},[e]);Le.default.useEffect(()=>{Ee()},[Ee]);let[Un,so]=Le.default.useState(!1);Le.default.useEffect(()=>{so(!0)},[]),Nn(async()=>{let q=await e.logs(Nd);Je(q.slice(-Nd).reverse().map(Qr))},AO),Nn(async()=>v(await e.harnesses()),FO);let he=Le.default.useCallback(async()=>{let q=g.trim();if(q===""||T)return;I(!0);let{memories:ve,degraded:Me}=await e.recall(q);w(ve),G(!0),ne(Me),Re(Mn=>Mn+1);let kn=ve.length>0?` \xB7 ${ve[0]?.score.toFixed(2)} top`:"";Sn(`recall "${q}" \u2192 ${ve.length} hits${kn}`),I(!1)},[g,T,e,Sn]),Kt=Le.default.useMemo(()=>[...Rt,...ue].slice(0,Nd),[Rt,ue]),Et=Le.default.useMemo(()=>ue.slice(0,WO),[ue]);return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,se.jsx)(HO,{reasons:r}),(0,se.jsxs)("div",{className:"kpirow",children:[(0,se.jsx)(hn,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,se.jsx)(hn,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,se.jsx)(hn,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,se.jsx)(hn,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,se.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,se.jsx)(MO,{query:g,setQuery:y,onRecall:he,busy:T}),L&&W&&(0,se.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,se.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,se.jsx)(BO,{})]}),(0,se.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:S.length===0?L&&(0,se.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):S.map((q,ve)=>(0,se.jsx)("div",{className:"mem-enter",style:{animationDelay:`${ve*55}ms`},children:(0,se.jsx)(Pd,{...q,pollinating:t&&ve===1})},q.memoryKey))},Z)]}),(0,se.jsx)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:Un&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)("div",{style:{marginBottom:16},children:(0,se.jsx)(Y$,{harnesses:_,streamLines:Et})}),(0,se.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,se.jsxs)("div",{className:"col",children:[(0,se.jsx)(R$,{sessions:a}),(0,se.jsx)(E$,{rules:l})]}),(0,se.jsxs)("div",{className:"col",children:[(0,se.jsx)(Rd,{catalog:f.catalog,settings:f.settings,secretNames:x,onSave:kt}),(0,se.jsx)(T$,{skills:d})]})]}),(0,se.jsx)(eo,{lines:Kt})]})})]})}var ct=P(me(),1);var Ux=P(me(),1);var ln=P(me(),1);var fe=P(V(),1),VO="honeycomb project bind";function Q$(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function JO({child:e,onDescend:t}){return(0,fe.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,fe.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,fe.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,fe.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,fe.jsx)(K,{tone:"honey",mono:!0,children:"git"})]})}function ia({wire:e,onBound:t,onCancel:r}){let[o,n]=ln.default.useState(Px),[i,a]=ln.default.useState(!1),[s,l]=ln.default.useState(null),[c,d]=ln.default.useState(""),[p,f]=ln.default.useState(!1),[m,x]=ln.default.useState(""),h=ln.default.useRef(!1),_=ln.default.useCallback(async T=>{let I=await e.fsBrowse(T);n(I),a(!0)},[e]);ln.default.useEffect(()=>{_(void 0)},[_]);let v=i&&o.path===""&&o.children.length===0,g=o.error!==void 0&&o.error!=="",y=ln.default.useCallback(()=>{o.path!==""&&(l({path:o.path,isGitRepo:!1}),d(Q$(o.path)),x(""))},[o.path]),S=ln.default.useCallback(T=>{l({path:T.path,isGitRepo:T.isGitRepo}),d(Q$(T.path)),x("")},[]),w=ln.default.useCallback(async()=>{if(s===null||h.current)return;h.current=!0,f(!0),x("");let T=await e.bindProject({path:s.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),h.current=!1,T.bound){t(T);return}x(T.error!==void 0&&T.error!==""?T.error:"Could not bind that folder.")},[s,c,e,t]);return(0,fe.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,fe.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,fe.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,fe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,fe.jsx)("code",{style:{color:"var(--honey)"},children:VO})]}),r!==void 0&&(0,fe.jsx)("div",{children:(0,fe.jsx)(R,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,fe.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,fe.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>{_(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,fe.jsx)(R,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,fe.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,fe.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:g?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(T=>(0,fe.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,fe.jsx)("div",{style:{flex:1,minWidth:0},children:(0,fe.jsx)(JO,{child:T,onDescend:I=>{_(I)}})}),(0,fe.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>S(T),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},T.path)):(0,fe.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),s!==null&&(0,fe.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,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:s.path}),s.isGitRepo&&(0,fe.jsx)(K,{tone:"honey",mono:!0,children:"git"})]}),(0,fe.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,fe.jsx)(On,{mono:!0,value:c,placeholder:"project name",onChange:T=>d(T.target.value),"data-testid":"picker-name"})]}),(0,fe.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,fe.jsx)(R,{variant:"primary",onClick:()=>{w()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,fe.jsx)(R,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),m!==""&&(0,fe.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:m})]})]})]})})}var cn=P(V(),1);function ro({surface:e}){return(0,cn.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,cn.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,cn.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 eP({wire:e,navigate:t,assetBase:r}){let[o,n]=Ux.default.useState(!1),i=Ux.default.useCallback(a=>{t(Mx)},[t]);return(0,cn.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,cn.jsx)("img",{src:`${r}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""}),(0,cn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,cn.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,cn.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,cn.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,cn.jsx)(ia,{wire:e,onBound:i,onCancel:()=>n(!1)})}):(0,cn.jsx)(R,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var Q=P(V(),1),GO=8e3,oo={width:1600,height:1e3},aa=.25,sa=4,Ao=1.15,tl={scale:1,tx:0,ty:0};function Bx(e,t,r){return Math.min(r,Math.max(t,e))}function XO(e){let t=oo.width/e.scale,r=oo.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function Zx(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 Hx(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 KO(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 Vx(e,t){let r=oo.width/t,o=oo.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function Jx({kind:e,count:t,hidden:r,onToggle:o}){let n=zd[e]??Id;return(0,Q.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,Q.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,Q.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function tP({kind:e,labels:t}){return(0,Q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,Q.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,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function YO({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=P$(e.id,t.edges),i=l=>t.nodes.find(c=>c.id===l)?.label||l,a=l=>l.map(i),s=o.length>0||n.length>0;return(0,Q.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,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Q.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:zd[e.kind]??Id,flex:"none"}}),(0,Q.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,Q.jsx)("span",{style:{flex:1}}),(0,Q.jsx)(K,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,Q.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!s&&(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,Q.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,Q.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(l=>(0,Q.jsx)(tP,{kind:l.kind,labels:a(l.ids)},`out-${l.kind}`))]}),n.length>0&&(0,Q.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,Q.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(l=>(0,Q.jsx)(tP,{kind:l.kind,labels:a(l.ids)},`in-${l.kind}`))]}),(0,Q.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 Gx({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=ct.default.useMemo(()=>Qi(e.nodes,e.edges,oo),[e]),s=ct.default.useRef(null),l=f=>{s.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let m=s.current;if(m===null)return;let x=(f.clientX-m.x)/r.scale,h=(f.clientY-m.y)/r.scale;i({scale:r.scale,tx:m.tx-x,ty:m.ty-h})},d=()=>{s.current=null},p=f=>{let m=f.deltaY<0?Ao:1/Ao,x=Bx(r.scale*m,aa,sa);i({scale:x,tx:r.tx,ty:r.ty})};return(0,Q.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:XO(r),onPointerDown:l,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,m)=>{let x=a.get(f.from),h=a.get(f.to);return x===void 0||h===void 0?null:(0,Q.jsx)("line",{x1:x.x,y1:x.y,x2:h.x,y2:h.y,stroke:"var(--border-strong)",strokeWidth:1.5},m)}),e.nodes.map(f=>{let m=a.get(f.id);if(m===void 0)return null;let x=f.id===t;return(0,Q.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":x,"data-node-id":f.id,style:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),o(f.id)},children:[x&&(0,Q.jsx)("circle",{cx:m.x,cy:m.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,Q.jsx)("circle",{cx:m.x,cy:m.y,r:x?12:9,fill:zd[f.kind]??Id}),(0,Q.jsx)("text",{x:m.x+15,y:m.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function qO(){return(0,Q.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,Q.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,Q.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 nl({label:e,ariaLabel:t,onClick:r}){return(0,Q.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 nP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=ct.default.useState(jn),[i,a]=ct.default.useState(null),[s,l]=ct.default.useState(new Set),[c,d]=ct.default.useState(""),[p,f]=ct.default.useState(tl);ct.default.useEffect(()=>{if(r===void 0){n(jn);return}let W=!0,ne=async()=>{if(!W||an())return;let Je=await e.memoryGraph(r);W&&n(Je)};ne();let ue=setInterval(()=>{ne()},GO);return()=>{W=!1,clearInterval(ue)}},[e,r]);let m=ct.default.useMemo(()=>Zx(o),[o]),x=ct.default.useMemo(()=>Hx(o,s),[o,s]),{graph:h,capped:_}=ct.default.useMemo(()=>Hs(x,No),[x]),v=o.meta?.truncated??!1,g=v||_,y=i!==null?h.nodes.find(W=>W.id===i)??null:null,S=ct.default.useCallback(W=>{l(ne=>{let ue=new Set(ne);return ue.has(W)?ue.delete(W):ue.add(W),ue})},[]),w=ct.default.useCallback(W=>{d(W);let ne=KO(h,W);if(ne===null)return;a(ne);let Je=Qi(h.nodes,h.edges,oo).get(ne);Je!==void 0&&f(Vx(Je,Math.max(p.scale,1.4)))},[h,p.scale]),T=ct.default.useCallback(()=>f(tl),[]),I=ct.default.useCallback(()=>f(W=>({...W,scale:Bx(W.scale*Ao,aa,sa)})),[]),L=ct.default.useCallback(()=>f(W=>({...W,scale:Bx(W.scale/Ao,aa,sa)})),[]),G=ct.default.useCallback(W=>a(ne=>ne===W?null:W),[]),Z=ct.default.useCallback(()=>a(null),[]),Re=`${h.nodes.length} nodes \xB7 ${h.edges.length} edges`;return(0,Q.jsx)(Ye,{title:"Memory Graph",eyebrow:r===void 0?"memory graph":Re,children:r===void 0?(0,Q.jsx)(ro,{surface:"memory graph"}):o.built?(0,Q.jsxs)(Q.Fragment,{children:[g&&(0,Q.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,Q.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 ${No.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,Q.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:c,placeholder:"search id or label\u2026",onChange:W=>w(W.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,Q.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:m.map(W=>{let ne=o.nodes.filter(ue=>ue.kind===W).length;return(0,Q.jsx)(Jx,{kind:W,count:ne,hidden:s.has(W),onToggle:()=>S(W)},W)})}),(0,Q.jsx)("span",{style:{flex:1}}),(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Q.jsx)(nl,{label:"\u2212",ariaLabel:"zoom out",onClick:L}),(0,Q.jsx)(nl,{label:"+",ariaLabel:"zoom in",onClick:I}),(0,Q.jsx)("button",{type:"button","data-testid":"fit-view",onClick:T,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,Q.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,Q.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,Q.jsx)(Gx,{graph:h,selected:y?.id??null,transform:p,onSelect:G,onClear:Z,onPanZoom:f})}),y!==null&&(0,Q.jsx)(YO,{node:y,graph:o,onClear:Z})]})]}):(0,Q.jsx)(qO,{})})}var ye=P(me(),1);var M=P(V(),1),oP=8e3,QO={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function eD(e){switch(e){case"active":return"brooding";case"paused":return"paused";case"global-paused":return"global-paused";default:return e}}function tD(e){switch(e){case"active":return"verified";case"paused":return"neutral";case"global-paused":return"warning";default:return e}}function nD({wire:e}){let[t,r]=ye.default.useState(u$),[o,n]=ye.default.useState(()=>$d(Do)),[i,a]=ye.default.useState(!1),[s,l]=ye.default.useState(null),c=ye.default.useRef(!1),d=ye.default.useCallback(async()=>{let[h,_]=await Promise.all([e.nectarProjects(),e.setupTenancy()]);r(h),n($d(_)),a(!0)},[e]);ye.default.useEffect(()=>{let h=!0,_=async()=>{!h||an()||await d()};_();let v=setInterval(()=>{_()},oP);return()=>{h=!1,clearInterval(v)}},[d]);let p=ye.default.useCallback(async(h,_)=>{if(!(c.current||t.unreachable)){c.current=!0,l(_);try{let v=await e.setNectarBrooding(h);v.unreachable||r(v),await d()}finally{c.current=!1,l(null)}}},[e,d,t.unreachable]),f=ye.default.useCallback(()=>{d()},[d]),m=!i||t.unreachable||s!==null,x=!t.unreachable&&i?k$({org:t.tenancyOrgName??t.tenancyOrgId,workspace:t.tenancyWorkspaceName??t.tenancyWorkspaceId},o):null;return(0,M.jsxs)(re,{title:"Nectar projects",right:(0,M.jsx)(R,{variant:"secondary",size:"sm","data-testid":"nectar-global-brooding-toggle",disabled:m,onClick:()=>{p({global:t.globalBrooding==="on"?"paused":"on"},"global")},children:t.globalBrooding==="on"?"Pause all brooding":"Resume all brooding"}),children:[x!==null&&(0,M.jsxs)("p",{"data-testid":"nectar-projects-tenancy",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",margin:"0 0 10px"},children:["Writing to: ",x]}),t.unreachable?(0,M.jsx)("div",{"data-testid":"nectar-projects-unreachable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Nectar is unreachable \u2014 project brooding controls are disabled."}):i?t.projects.length===0?(0,M.jsxs)("div",{"data-testid":"nectar-needs-project",style:{display:"flex",flexDirection:"column",gap:12},children:[(0,M.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"No active nectar projects yet. Pick a folder to activate brooding for a project directory."}),(0,M.jsx)(ia,{wire:e,onBound:f})]}):(0,M.jsx)("div",{"data-testid":"nectar-projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:t.projects.map(h=>(0,M.jsxs)("div",{"data-testid":"nectar-project-row","data-project-id":h.projectId,style:{...QO,display:"flex",flexDirection:"column",gap:8},children:[(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,M.jsx)("span",{"data-testid":"nectar-project-name",style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:h.name!==""?h.name:h.projectId}),(0,M.jsx)(K,{tone:tD(h.brooding),mono:!0,children:(0,M.jsx)("span",{"data-testid":"nectar-brooding-badge",children:eD(h.brooding)})}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsx)(R,{variant:"ghost",size:"sm","data-testid":"nectar-brooding-toggle",disabled:m,onClick:()=>{p({projectId:h.projectId,brooding:h.brooding==="active"?"off":"on"},h.projectId)},children:h.brooding==="active"?"Turn off brooding":"Turn on brooding"})]}),(0,M.jsx)("span",{"data-testid":"nectar-project-path",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",wordBreak:"break-all"},children:h.path})]},h.projectId))}):(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]})}function rP(e,t,r){return Math.min(r,Math.max(t,e))}function rD({node:e,file:t,derived:r,onClear:o}){return(0,M.jsxs)("aside",{"data-testid":"hive-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:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsx)(K,{tone:"neutral",mono:!0,children:e.kind||"file"})]}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),t!==void 0&&t.description!==""&&(0,M.jsx)("p",{style:{fontSize:13,color:"var(--text-secondary)",margin:0,lineHeight:1.45},children:t.description}),r!==void 0&&r.from_nectar!==""&&(0,M.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["derived from ",r.from_nectar]}),(0,M.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",alignSelf:"flex-start",marginTop:"auto"},children:"clear selection"})]})}function oD({unreachable:e}){return(0,M.jsxs)("div",{"data-testid":"hive-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,M.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:e?"Nectar is unreachable \u2014 the Hive Graph is unavailable.":"No Hive Graph yet for this project."}),!e&&(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"Describe files with nectar, or trigger a build below, to populate the graph."})]})}function iD({status:e}){if(e.unreachable)return(0,M.jsx)("div",{"data-testid":"hive-graph-status-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Status unavailable \u2014 nectar is unreachable."});let t=e.describeStatus;return(0,M.jsxs)("div",{"data-testid":"hive-graph-status-widgets",style:{display:"flex",flexWrap:"wrap",gap:10},children:[(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["queue ",e.queueDepth]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["described ",t.described]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["pending ",t.pending]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["failed ",t.failed]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["cost $",e.costSpentUsd.toFixed(2)]}),e.degraded&&(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"degraded read"})]})}function aD({results:e,onSelect:t}){return e.unreachable?(0,M.jsx)("div",{"data-testid":"hive-graph-search-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Search unavailable \u2014 nectar is unreachable."}):(0,M.jsxs)("div",{"data-testid":"hive-graph-search-results",style:{display:"flex",flexDirection:"column",gap:8},children:[e.hits.length===0?(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"No matches."}):e.hits.map(r=>(0,M.jsxs)("button",{type:"button","data-testid":`hive-graph-search-hit-${r.id}`,onClick:()=>t(r),style:{textAlign:"left",padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer"},children:[(0,M.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)"},children:r.path}),r.body!==""&&(0,M.jsx)("div",{style:{fontSize:12,color:"var(--text-secondary)",marginTop:4,lineHeight:1.4},children:r.body})]},r.id)),e.degraded&&(0,M.jsx)("div",{"data-testid":"hive-graph-search-degraded",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Search ran in degraded mode (lexical-only or partial index)."})]})}function sD({onBuild:e}){let[t,r]=ye.default.useState(!1),[o,n]=ye.default.useState(null),i=ye.default.useRef(!1),a=ye.default.useCallback(async()=>{if(!i.current){i.current=!0,r(!0),n(null);try{n(await e())}finally{i.current=!1,r(!1)}}},[e]);return(0,M.jsxs)("div",{"data-testid":"hive-graph-build",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,M.jsx)(R,{variant:"primary",onClick:()=>{a()},disabled:t,"data-testid":"hive-graph-build-button",children:t?"Building\u2026":"Build Hive Graph"}),o!==null&&o.state!=="accepted"&&(0,M.jsx)("span",{"data-testid":"hive-graph-build-message",style:{fontFamily:"var(--font-mono)",fontSize:12,color:o.state==="already_running"?"var(--severity-warning)":"var(--severity-critical)"},children:o.message}),o!==null&&o.state==="accepted"&&(0,M.jsx)("span",{"data-testid":"hive-graph-build-accepted",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:o.message})]})}function iP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=ye.default.useState(jn),[i,a]=ye.default.useState({}),[s,l]=ye.default.useState({}),[c,d]=ye.default.useState(!1),[p,f]=ye.default.useState({...qi,unreachable:!1}),[m,x]=ye.default.useState(null),[h,_]=ye.default.useState(new Set),[v,g]=ye.default.useState(tl),[y,S]=ye.default.useState(""),[w,T]=ye.default.useState(null),[I,L]=ye.default.useState(!1);ye.default.useEffect(()=>{if(r===void 0){n(jn),a({}),l({}),d(!1),f({...qi,unreachable:!1});return}let he=!0,Kt=async()=>{if(!he||an())return;let[q,ve]=await Promise.all([e.hiveGraphFileGraph(r),e.hiveGraphStatus(r)]);he&&(n(q.graph),a(q.files),l(q.derived),d(q.unreachable),f(ve))};Kt();let Et=setInterval(()=>{Kt()},oP);return()=>{he=!1,clearInterval(Et)}},[e,r]);let G=ye.default.useCallback(async()=>{if(!(r===void 0||y.trim()==="")){L(!0);try{T(await e.hiveGraphSearch(y,r))}finally{L(!1)}}},[e,r,y]),Z=ye.default.useCallback(he=>{x(he);let Et=Qi(Je.current.nodes,Je.current.edges,oo).get(he);Et!==void 0&&g(q=>Vx(Et,Math.max(q.scale,1.4)))},[]),Re=ye.default.useMemo(()=>Zx(o),[o]),W=ye.default.useMemo(()=>Hx(o,h),[o,h]),{graph:ne,capped:ue}=ye.default.useMemo(()=>Hs(W,No),[W]),Je=ye.default.useRef(ne);Je.current=ne;let Rt=m!==null?ne.nodes.find(he=>he.id===m)??null:null,ao=ye.default.useCallback(he=>{_(Kt=>{let Et=new Set(Kt);return Et.has(he)?Et.delete(he):Et.add(he),Et})},[]),Sn=ye.default.useCallback(()=>g(tl),[]),br=ye.default.useCallback(()=>g(he=>({...he,scale:rP(he.scale*Ao,aa,sa)})),[]),Ee=ye.default.useCallback(()=>g(he=>({...he,scale:rP(he.scale/Ao,aa,sa)})),[]),kt=ye.default.useCallback(he=>x(Kt=>Kt===he?null:he),[]),Un=ye.default.useCallback(()=>x(null),[]),so=`${ne.nodes.length} files \xB7 ${ne.edges.length} provenance links`;return(0,M.jsx)(Ye,{title:"Hive Graph",eyebrow:r===void 0?"hive graph":so,children:(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,M.jsx)(nD,{wire:e}),r===void 0?(0,M.jsx)(ro,{surface:"Hive Graph"}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(re,{title:"Pipeline status",right:(0,M.jsx)(sD,{onBuild:()=>e.hiveGraphBuild()}),children:(0,M.jsx)(iD,{status:p})}),(0,M.jsxs)(re,{title:"Search",children:[(0,M.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,M.jsx)("input",{"aria-label":"search hive graph","data-testid":"hive-graph-search-input",type:"text",value:y,disabled:r===void 0,placeholder:"search files and descriptions\u2026",onChange:he=>S(he.target.value),onKeyDown:he=>{he.key==="Enter"&&G()},style:{flex:1,height:30,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:13}}),(0,M.jsx)(R,{variant:"primary",onClick:()=>{G()},disabled:I||y.trim()==="","data-testid":"hive-graph-search-submit",children:I?"Searching\u2026":"Search"})]}),w!==null&&(0,M.jsx)(aD,{results:w,onSelect:he=>Z(he.id)})]}),c||!o.built?(0,M.jsx)(oD,{unreachable:c}):(0,M.jsxs)(M.Fragment,{children:[ue&&(0,M.jsxs)("div",{"data-testid":"hive-graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,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"}}),"Rendering is capped at ",No.toLocaleString()," nodes. Use search and kind filters to focus."]}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,M.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:Re.map(he=>{let Kt=o.nodes.filter(Et=>Et.kind===he).length;return(0,M.jsx)(Jx,{kind:he,count:Kt,hidden:h.has(he),onToggle:()=>ao(he)},he)})}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,M.jsx)(nl,{label:"\u2212",ariaLabel:"zoom out",onClick:Ee}),(0,M.jsx)(nl,{label:"+",ariaLabel:"zoom in",onClick:br}),(0,M.jsx)("button",{type:"button","data-testid":"hive-graph-fit-view",onClick:Sn,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)(Gx,{graph:ne,selected:Rt?.id??null,transform:v,onSelect:kt,onClear:Un,onPanZoom:g})}),Rt!==null&&(0,M.jsx)(rD,{node:Rt,file:i[Rt.id],derived:s[Rt.id],onClear:Un})]})]})]})]})})}var Xx=P(me(),1);var de=P(V(),1),lD=200;function cD(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase()}function uD({service:e}){let t=Object.entries(e.metrics);return(0,de.jsxs)("div",{"data-testid":`health-service-${e.name}`,style:{display:"flex",flexDirection:"column",gap:10,padding:"14px 16px",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:[(0,de.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,de.jsx)("span",{style:{color:no[e.state],display:"inline-flex",flex:"none"},children:(0,de.jsx)(to,{state:e.state})}),(0,de.jsx)("span",{style:{fontWeight:600,fontSize:"var(--text-base)",color:"var(--text-primary)"},children:e.name}),(0,de.jsx)("span",{"data-testid":`health-service-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"lowercase"},children:Dn[e.state]})]}),t.length===0?(0,de.jsx)("div",{"data-testid":`health-metrics-empty-${e.name}`,style:{fontSize:12,color:"var(--text-tertiary)"},children:"No metrics reported yet."}):(0,de.jsx)("div",{"data-testid":`health-metrics-${e.name}`,style:{display:"grid",gridTemplateColumns:"1fr auto",rowGap:4,columnGap:12},children:t.map(([r,o])=>(0,de.jsxs)(Xx.default.Fragment,{children:[(0,de.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)",textTransform:"capitalize"},children:cD(r)}),(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:o})]},r))}),(0,de.jsxs)("div",{"data-testid":`health-deeplake-${e.name}`,style:{display:"flex",alignItems:"center",gap:8,paddingTop:8,borderTop:"1px solid var(--border-subtle)"},children:[(0,de.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)"},children:"Deep Lake"}),e.deeplake===null?(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"not reported"}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("span",{"data-testid":`health-deeplake-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:e.deeplake.connected===!0?"var(--verified)":"var(--severity-critical)"},children:e.deeplake.connected===!0?"connected":e.deeplake.connected===!1?"unreachable":"unknown"}),(0,de.jsx)("span",{style:{flex:1}}),(0,de.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["last comm: ",e.deeplake.lastCommunicationAt??"never"]})]})]})]})}function dD({entry:e}){return(0,de.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto auto 1fr",gap:10,padding:"4px 0",fontFamily:"var(--font-mono)",fontSize:12},children:[(0,de.jsx)("span",{style:{color:"var(--text-tertiary)"},children:(e.ts||"").slice(11,19)||e.ts}),(0,de.jsx)("span",{style:{color:"var(--text-secondary)",textTransform:"uppercase"},children:e.level}),(0,de.jsxs)("span",{style:{color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,de.jsxs)("span",{style:{color:"var(--text-tertiary)"},children:["[",e.service,"]"]})," ",e.message]})]})}function pD({value:e,onChange:t}){return(0,de.jsx)("select",{"aria-label":"log verbosity","data-testid":"log-verbosity-select",value:e,onChange:r=>t(r.target.value),style:{height:30,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:Qs.map(r=>(0,de.jsxs)("option",{value:r,children:[r,"+"]},r))})}function fD({logs:e}){let[t,r]=Xx.default.useState("info"),o=A$(e,t),n=o.slice(Math.max(0,o.length-lD)).reverse();return(0,de.jsx)(re,{title:"Live logs",eyebrow:`${o.length} of ${e.length} lines`,right:(0,de.jsx)(pD,{value:t,onChange:r}),children:n.length===0?(0,de.jsx)("div",{"data-testid":"health-logs-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No log lines at this verbosity yet."}):(0,de.jsx)("div",{"data-testid":"health-logs-list",style:{maxHeight:360,overflowY:"auto"},children:n.map((i,a)=>(0,de.jsx)(dD,{entry:i},`${i.ts}-${i.service}-${a}`))})})}function mD(e){return e.services.length===0}function aP(e){let t=ra();return(0,de.jsx)(Ye,{title:"Health",eyebrow:t.source==="sse"?"live":t.source==="rest"?"fallback":"unavailable",children:(0,de.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[mD(t)?(0,de.jsx)(re,{title:"Fleet metrics",children:(0,de.jsx)("div",{"data-testid":"health-telemetry-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Telemetry unavailable. Waiting for doctor to report the fleet."})}):(0,de.jsx)("div",{"data-testid":"health-service-grid",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:12},children:t.services.map(r=>(0,de.jsx)(uD,{service:r},r.name))}),(0,de.jsx)(fD,{logs:t.logs})]})})}var Ve=P(me(),1);var B=P(V(),1),sP=30,gD=50,lP=50;function vD(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function yD(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function dP({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,B.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,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:yD(e.time)}),(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,B.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,B.jsx)(K,{tone:vD(r),mono:!0,children:r>0?r:"\u2014"}),(0,B.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,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function hD(){let e=(t,r="left")=>(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,B.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 la={since:"",until:"",status:"",path:"",org:""};function cP(e){let t={limit:gD};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,B.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,B.jsx)(On,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function xD({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,B.jsx)(re,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,B.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,B.jsx)(rl,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,B.jsx)(rl,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,B.jsx)(rl,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,B.jsx)(rl,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,B.jsx)(rl,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,B.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,B.jsx)(R,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,B.jsx)(R,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function bD(e,t){let r=[t,...e];return r.length>sP?r.slice(0,sP):r}function SD({records:e,open:t,onToggle:r}){return(0,B.jsx)(re,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,B.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,B.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,B.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,B.jsx)(dP,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,B.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function kD({page:e,loading:t,error:r,onLoadMore:o}){return(0,B.jsx)(re,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,B.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,B.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,B.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(hD,{}),(0,B.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,B.jsx)(dP,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,B.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,B.jsx)(R,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,B.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,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,B.jsx)("span",{style:{flex:1}}),(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function _D({turn:e,onBack:t}){return(0,B.jsx)(re,{title:"Turn detail",eyebrow:e.sessionId,right:(0,B.jsx)(R,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,B.jsxs)("div",{"data-testid":"turn-detail",children:[(0,B.jsx)(ol,{label:"turn id",children:e.sessionId||"\u2014"}),(0,B.jsx)(ol,{label:"project",children:e.project||"\u2014"}),(0,B.jsx)(ol,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,B.jsx)(ol,{label:"event count",children:e.eventCount}),(0,B.jsx)(ol,{label:"status",children:(0,B.jsx)(K,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function wD({turn:e,onOpen:t}){return(0,B.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,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,B.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,B.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,B.jsx)(K,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function $D({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,B.jsx)(re,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,B.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,B.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,B.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{"data-testid":"turns-list",children:e.map((a,s)=>(0,B.jsx)(wD,{turn:a,onOpen:n},a.sessionId||s))}),o&&(0,B.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,B.jsx)(R,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function uP({label:e,active:t,onClick:r,testid:o}){return(0,B.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 pP({wire:e,daemonUp:t}){let[r,o]=Ve.default.useState("requests"),[n,i]=Ve.default.useState(Rx),[a,s]=Ve.default.useState(la),[l,c]=Ve.default.useState(la),[d,p]=Ve.default.useState(!1),[f,m]=Ve.default.useState(!1),[x,h]=Ve.default.useState([]),[_,v]=Ve.default.useState(!0),[g,y]=Ve.default.useState([]),[S,w]=Ve.default.useState(null),[T,I]=Ve.default.useState(!1),[L,G]=Ve.default.useState(!1),[Z,Re]=Ve.default.useState(null),W=Ve.default.useCallback(async Ee=>{p(!0),m(!1);try{let kt=await e.logsHistory(cP(Ee));i(kt)}catch{m(!0)}finally{p(!1)}},[e]),ne=Ve.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let Ee=await e.logsHistory({...cP(a),cursor:n.nextCursor});i(kt=>({records:[...kt.records,...Ee.records],count:kt.count+Ee.count,nextCursor:Ee.nextCursor,persistent:Ee.persistent}))}catch{m(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),ue=Ve.default.useCallback(async()=>{I(!0),G(!1);try{let Ee=await e.turnsHistory({limit:lP});y(Ee.sessions),w(Ee.nextCursor)}catch{G(!0)}finally{I(!1)}},[e]),Je=Ve.default.useCallback(async()=>{if(S!==null){I(!0);try{let Ee=await e.turnsHistory({limit:lP,cursor:S});y(kt=>[...kt,...Ee.sessions]),w(Ee.nextCursor)}catch{G(!0)}finally{I(!1)}}},[e,S]);Ve.default.useEffect(()=>{W(la),ue()},[W,ue]),Ve.default.useEffect(()=>{let Ee=!0,kt=e.logsStream(Un=>{Ee&&h(so=>bD(so,Un))});return()=>{Ee=!1,kt()}},[e]);let Rt=Ve.default.useCallback(()=>{s(l),W(l)},[l,W]),ao=Ve.default.useCallback(()=>{c(la),s(la),W(la)},[W]),Sn=Ve.default.useCallback((Ee,kt)=>{c(Un=>({...Un,[Ee]:kt}))},[]);return(0,B.jsx)(Ye,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,B.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,B.jsx)(uP,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,B.jsx)(uP,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,B.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,B.jsx)(SD,{records:x,open:_,onToggle:()=>v(Ee=>!Ee)}),(0,B.jsx)(xD,{draft:l,onChangeField:Sn,onApply:Rt,onClear:ao}),(0,B.jsx)(kD,{page:n,loading:d,error:f,onLoadMore:()=>{ne()}})]}):Z!==null?(0,B.jsx)(_D,{turn:Z,onBack:()=>Re(null)}):(0,B.jsx)($D,{turns:g,loading:T,error:L,hasMore:S!==null,onOpen:Ee=>Re(Ee),onLoadMore:()=>{Je()}})})}var ae=P(me(),1);var Ln=P(me(),1);var ee=P(V(),1),PD=6,zD=150;function ID(e){return new Promise(t=>setTimeout(t,e))}async function Ld(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 RD={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function io({label:e,value:t}){return(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function ED(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function TD(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 CD(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function jD({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,ee.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ee.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,ee.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,ee.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,ee.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var OD=["review","supersede","keep-both"];function DD({conflict:e,onResolve:t}){let[r,o]=Ln.default.useState("review"),[n,i]=Ln.default.useState(e.memoryAId),[a,s]=Ln.default.useState(!1),l=async()=>{a||(s(!0),await t(e.id,r,r==="supersede"?n:""),s(!1))};return(0,ee.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,ee.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,ee.jsx)(K,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,ee.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,ee.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,ee.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:OD.map(c=>(0,ee.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,ee.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,ee.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,ee.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,ee.jsx)(R,{variant:"secondary",size:"sm",onClick:()=>{l()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function fP({wire:e}){let[t,r]=Ln.default.useState([]),[o,n]=Ln.default.useState([]),[i,a]=Ln.default.useState(kd),[s,l]=Ln.default.useState(!1),c=Ln.default.useCallback(async()=>{let _=await Ld(e,"lifecycleConflicts",[],"open");return r(_),_},[e]);Ln.default.useEffect(()=>{let _=!0;return(async()=>{let[v,g,y]=await Promise.all([Ld(e,"lifecycleConflicts",[],"open"),Ld(e,"lifecycleStaleRefs",[]),Ld(e,"calibration",kd)]);_&&(r(v),n(g),a(y),l(!0))})(),()=>{_=!1}},[e]);let d=Ln.default.useCallback(async(_,v,g)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(_,{verdict:v,...g!==""?{winnerId:g}:{}}):!1)){await c();return}for(let S=0;S<PD;S+=1){if(!(await c()).some(T=>T.id===_))return;await ID(zD)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,m=i.identity?1:Math.max(0,1-i.ece),x=t.length>0?.5:1,h=TD({freshness:p,calibrationConfidence:m,staleness:f,kappa:x});return(0,ee.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...RD,display:"flex",flexDirection:"column",gap:16},children:[(0,ee.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,ee.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,ee.jsx)(K,{tone:ED(h),mono:!0,dot:!0,children:(0,ee.jsxs)("span",{"data-testid":"health-badge",children:["H ",h.toFixed(2)]})})]}),(0,ee.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,ee.jsx)(io,{label:"freshness",value:CD(p)}),(0,ee.jsx)(io,{label:"calibrated confidence",value:i.identity?"\u2014":m.toFixed(2)}),(0,ee.jsx)(io,{label:"open conflicts",value:String(t.length)}),(0,ee.jsx)(io,{label:"stale refs",value:String(o.length)}),(0,ee.jsx)(io,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,ee.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),s?t.length===0?(0,ee.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(_=>(0,ee.jsx)(DD,{conflict:_,onResolve:d},_.id)):(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,ee.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),s?o.length===0?(0,ee.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(_=>(0,ee.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,ee.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:_.memoryId}),(0,ee.jsx)("span",{style:{color:"var(--text-tertiary)"},children:_.staleRefs.length>0?_.staleRefs.join(", "):"(refs unrecorded)"})]},_.memoryId)):(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,ee.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,ee.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,ee.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,ee.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,ee.jsx)(io,{label:"ECE",value:i.ece.toFixed(3)}),(0,ee.jsx)(io,{label:"Brier",value:i.brier.toFixed(3)}),(0,ee.jsx)(io,{label:"samples",value:String(i.nSamples)})]}),(0,ee.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(_=>(0,ee.jsx)(jD,{lower:_.lower,upper:_.upper,accuracy:_.accuracy},`${_.lower}-${_.upper}`))})]})]})]})}var mP=["fact","convention","preference","decision","gotcha","reference"],Ad="fact",Kx=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 $=P(V(),1),gP=50,ND=2500,LD=12,AD=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],FD=5,WD=150;function UD(e){return new Promise(t=>setTimeout(t,e))}function MD(e){return AD.some(t=>e.startsWith(t))}function ca({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 BD({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)(K,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function ZD({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=ae.default.useState(!1),[a,s]=ae.default.useState(e.content),[l,c]=ae.default.useState(""),[d,p]=ae.default.useState(!1),[f,m]=ae.default.useState(""),[x,h]=ae.default.useState(!1);ae.default.useEffect(()=>{s(e.content),c(""),i(!1),h(!1)},[e.id,e.content,e.version]);let _=l.trim()==="",v=a.trim()==="",g=async()=>{if(d||v||_)return;p(!0),m("");let S=await r(e.id,a,l);p(!1),i(!1),c(""),m(S??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(d)return;p(!0),m("");let S=await o(e.id,"forgotten via dashboard");p(!1),S===null&&m("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)(K,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,$.jsx)(K,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)(R,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,$.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:S=>s(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)(ca,{label:"scope",value:[e.visibility,e.agentId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(ca,{label:"source",value:[e.sourceType,e.sourceId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(ca,{label:"version",value:e.version>0?String(e.version):""}),(0,$.jsx)(ca,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,$.jsx)(ca,{label:"created",value:e.createdAt}),(0,$.jsx)(ca,{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)(On,{mono:!0,"aria-label":"edit reason",value:l,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)(R,{variant:"primary",onClick:()=>{g()},disabled:d||v||_,children:d?"\u2026":"Save new version"}),(0,$.jsx)(R,{variant:"ghost",onClick:()=>i(!1),disabled:d,children:"Cancel"}),_&&(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)(R,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(R,{variant:"danger",onClick:()=>{y()},disabled:d,children:d?"\u2026":"Confirm forget"}),(0,$.jsx)(R,{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)(R,{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 HD={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 VD({onAdd:e}){let[t,r]=ae.default.useState(""),[o,n]=ae.default.useState(Ad),[i,a]=ae.default.useState(!1),[s,l]=ae.default.useState(""),c=t.trim()==="",d=async()=>{if(i||c)return;a(!0),l("");let p=await e(t,o);if(a(!1),p===null){l("Add failed \u2014 nothing was stored.");return}r(""),n(Ad),l(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:Kx[o],style:{...HD,width:180,cursor:"pointer"},children:mP.map(p=>(0,$.jsx)("option",{value:p,title:Kx[p],children:p===Ad?`${p} (default)`:p},p))}),(0,$.jsx)(R,{variant:"primary",onClick:()=>{d()},disabled:i||c,children:i?"\u2026":"Add memory"}),s!==""&&(0,$.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:s})]})]})}function JD(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 GD({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,s]=ae.default.useState(!1),[l,c]=ae.default.useState(!1),[d,p]=ae.default.useState(null),[f,m]=ae.default.useState(!1),[x,h]=ae.default.useState(""),_=async()=>{if(l)return;s(!1),c(!0);let g=await t();c(!1),p(g)},v=async()=>{if(f)return;m(!0),h("");let g=await r();m(!1),g.triggered?h(g.status==="running"?"already running":"consolidating\u2026"):h(`skipped \xB7 ${g.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)(R,{variant:"danger",onClick:()=>{_()},disabled:l,children:l?"\u2026":"Confirm compact"}),(0,$.jsx)(R,{variant:"ghost",onClick:()=>s(!1),disabled:l,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)(R,{variant:"secondary",onClick:()=>s(!0),disabled:l,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(g=>(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:g.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:JD(g)},g.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)(R,{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)(R,{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((g,y)=>(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:g},y))})]})]})}function vP({wire:e,pollinating:t=!1}){let{scope:r}=Wt(),o=r.project,[n,i]=ae.default.useState([]),[a,s]=ae.default.useState(gP),[l,c]=ae.default.useState(!1),[d,p]=ae.default.useState(""),[f,m]=ae.default.useState([]),[x,h]=ae.default.useState(!1),[_,v]=ae.default.useState(!1),[g,y]=ae.default.useState(!1),[S,w]=ae.default.useState(null),[T,I]=ae.default.useState(null),[L,G]=ae.default.useState(!1),[Z,Re]=ae.default.useState(!1),[W,ne]=ae.default.useState([]),ue=ae.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]);ae.default.useEffect(()=>{ue(a)},[ue,a]),ae.default.useEffect(()=>{if(!Z)return;let q=!0,ve=async()=>{if(!q||an())return;let kn=await e.logs(40);if(!q)return;let Mn=kn.filter(rr=>MD(rr.path)).slice(-LD).reverse().map(Qr);ne(Mn)};ve();let Me=setInterval(()=>{ve()},ND);return()=>{q=!1,clearInterval(Me)}},[Z,e]);let Je=ae.default.useCallback(async()=>{let q=d.trim();if(q===""){v(!1),m([]);return}h(!0);let{memories:ve,degraded:Me}=await e.recall(q,o);m(ve),y(Me),v(!0),h(!1)},[d,e,o]),Rt=ae.default.useCallback(()=>{p(""),v(!1),m([])},[]),ao=ae.default.useCallback(async q=>{w(q),I(null),G(!1);let ve=await e.getMemory(q);if(ve===null){G(!0);return}I(ve)},[e]),Sn=ae.default.useCallback(()=>{w(null),I(null),G(!1)},[]),br=ae.default.useCallback(async(q,ve)=>{let Me=null;for(let kn=0;kn<FD;kn+=1){if(Me=await e.getMemory(q),Me!==null&&ve(Me))return Me;await UD(WD)}return Me},[e]),Ee=ae.default.useCallback(async(q,ve,Me)=>{if(await e.modifyMemory(q,{content:ve,reason:Me})===null){let rr=await e.getMemory(q);return rr!==null&&I(rr),null}let Mn=await br(q,rr=>rr.content===ve||rr.version>0);return Mn!==null&&I(Mn),ue(a),"saved \xB7 new version"},[e,br,ue,a]),kt=ae.default.useCallback(async(q,ve)=>await e.forgetMemory(q,{reason:ve})===null?null:(Sn(),ue(a),"forgotten"),[e,Sn,ue,a]),Un=ae.default.useCallback(async(q,ve)=>{let Me=await e.addMemory({content:q,...ve!==""?{type:ve}:{}});return Me===null?null:(await ue(a),Me.id!==null?`stored \xB7 ${Me.id}`:`stored \xB7 ${Me.action||"ok"}`)},[e,ue,a]),so=ae.default.useCallback(()=>e.compact(),[e]),he=ae.default.useCallback(()=>e.pollinate(),[e]),Kt=ae.default.useCallback(()=>{Re(q=>!q),ne([])},[]),Et=S!==null;return(0,$.jsx)(Ye,{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)(ro,{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)(On,{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"&&Je()}})}),(0,$.jsx)(R,{variant:"primary",size:"lg",onClick:()=>{Je()},disabled:x,children:x?"\u2026":"Search"}),_&&(0,$.jsx)(R,{variant:"ghost",size:"lg",onClick:Rt,children:"Clear"})]}),_&&g&&(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)(K,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),Et?L?(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)(R,{variant:"ghost",size:"sm",onClick:Sn,children:"\u2190 back"})})]}):T!==null?(0,$.jsx)(ZD,{record:T,onClose:Sn,onEdit:Ee,onForget:kt}):(0,$.jsx)("div",{style:{...il,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,$.jsxs)($.Fragment,{children:[_?(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)(Pd,{...q,pollinating:t&&ve===1},q.memoryKey))}):(0,$.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:l?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)(BD,{record:q,onOpen:ao},q.id)),n.length>=a&&(0,$.jsx)("div",{style:{paddingTop:4},children:(0,$.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>s(q=>q+gP),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)(VD,{onAdd:Un}),(0,$.jsx)(fP,{wire:e}),(0,$.jsx)(GD,{pollinating:t,onCompact:so,onPollinate:he,watchLines:W,watching:Z,onToggleWatch:Kt})]})]})]})})}var ze=P(me(),1);var A=P(V(),1),Wd="__unsorted__",Yx={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function qx(){return(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function XD(e){if(e===null||e==="")return(0,A.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,A.jsx)(qx,{}):new Date(t).toLocaleString()}function KD({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=ze.default.useState(!1),[a,s]=ze.default.useState(null),[l,c]=ze.default.useState(!1),[d,p]=ze.default.useState(""),f=ze.default.useRef(!1),m=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),s(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,A.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...Yx,display:"flex",flexDirection:"column",gap:10},children:[(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,A.jsx)(K,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)(R,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,A.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>i(x=>!x),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,A.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,A.jsx)(Fd,{label:"bound path",value:(0,A.jsx)(YD,{paths:e.boundPaths})}),(0,A.jsx)(Fd,{label:"git remote",value:e.remote!==""?e.remote:(0,A.jsx)(qx,{})}),(0,A.jsx)(Fd,{label:"last capture",value:XD(e.lastCapture)}),(0,A.jsx)(Fd,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,A.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,A.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,A.jsx)(hP,{wire:t,onSelect:s,selected:a}),(0,A.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,A.jsx)(R,{variant:"danger",size:"sm",onClick:()=>{m()},disabled:l||a===null,"data-testid":"project-unbind-confirm",children:l?"\u2026":"Unbind this folder"}),d!==""&&(0,A.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:d})]})]})]})}function YD({paths:e}){return e.length===0?(0,A.jsx)(qx,{}):(0,A.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,A.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function Fd({label:e,value:t}){return(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function qD({inbox:e}){return(0,A.jsxs)("div",{"data-testid":"inbox-row",style:{...Yx,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,A.jsx)(K,{tone:"neutral",mono:!0,children:Wd}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function QD({onNew:e,onImport:t}){let[r,o]=ze.default.useState(!1);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(R,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,A.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,A.jsx)(yP,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,A.jsx)(yP,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function yP({label:e,hint:t,onClick:r,testId:o}){return(0,A.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,A.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function eN({wire:e,onClose:t,onImported:r}){let[o,n]=ze.default.useState([]),[i,a]=ze.default.useState(!1),[s,l]=ze.default.useState(null),[c,d]=ze.default.useState(null),[p,f]=ze.default.useState(!1),[m,x]=ze.default.useState(""),h=ze.default.useRef(!1);ze.default.useEffect(()=>{let v=!0;return(async()=>{let g=await e.scopeProjects({unbound:!0});v&&(n(g.filter(y=>y.projectId!==Wd)),a(!0))})(),()=>{v=!1}},[e]);let _=ze.default.useCallback(async()=>{if(s===null||c===null||h.current)return;h.current=!0,f(!0),x("");let v=await e.bindExistingProject({path:c,projectId:s});if(f(!1),h.current=!1,v.bound){r(v);return}x(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[s,c,e,r]);return(0,A.jsx)(tN,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,A.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,A.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,A.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,A.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>l(v.projectId),"aria-pressed":s===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:s===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${s===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:s===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,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),s!==null&&(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,A.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,A.jsx)("span",{style:{color:"var(--honey)"},children:s})]}),(0,A.jsx)(hP,{wire:e,onSelect:d,selected:c})]}),(0,A.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,A.jsx)(R,{variant:"primary",onClick:()=>{_()},disabled:p||s===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,A.jsx)(R,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),m!==""&&(0,A.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:m})]})]})})}function hP({wire:e,onSelect:t,selected:r}){let[o,n]=ze.default.useState(""),[i,a]=ze.default.useState(null),[s,l]=ze.default.useState([]),[c,d]=ze.default.useState(!1),p=ze.default.useCallback(async f=>{let m=await e.fsBrowse(f);n(m.path),a(m.parent),l(m.children),d(!0)},[e]);return ze.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&s.length===0?(0,A.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,A.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,A.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,A.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,A.jsx)(R,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:s.map(f=>(0,A.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,A.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,A.jsx)(K,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,A.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function tN({title:e,onClose:t,testId:r,children:o}){return(0,A.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,A.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,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,A.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)(R,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function xP({wire:e}){let{scope:t,setScope:r}=Wt(),[o,n]=ze.default.useState([]),[i,a]=ze.default.useState(!1),[s,l]=ze.default.useState("none"),c=ze.default.useCallback(async()=>{let h=await e.scopeProjects();n(h),a(!0)},[e]);ze.default.useEffect(()=>{c()},[c]);let d=o.filter(h=>h.boundLocally&&h.projectId!==Wd),p=o.find(h=>h.projectId===Wd),f=ze.default.useCallback(h=>{r({org:t.org,workspace:t.workspace,project:h})},[r,t.org,t.workspace]),m=ze.default.useCallback(h=>{l("none"),c()},[c]),x=ze.default.useCallback(h=>{l("none"),c()},[c]);return(0,A.jsxs)(Ye,{eyebrow:"projects",title:"Projects",right:(0,A.jsx)(QD,{onNew:()=>l("new"),onImport:()=>l("import")}),children:[s==="new"&&(0,A.jsxs)("div",{style:{...Yx,marginBottom:16},children:[(0,A.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,A.jsx)(ia,{wire:e,onBound:m,onCancel:()=>l("none")})]}),s==="import"&&(0,A.jsx)(eN,{wire:e,onClose:()=>l("none"),onImported:x}),(0,A.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?d.length===0?(0,A.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,A.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):d.map(h=>(0,A.jsx)(KD,{project:h,wire:e,onOpen:f,onUnbound:()=>{c()}},h.projectId)):(0,A.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,A.jsx)(qD,{inbox:p})]})]})}var tr=P(me(),1);var Ud=P(me(),1),bn=P(V(),1),ua={width:640,height:200},An={top:12,right:12,bottom:18,left:12};function bP(e,t){return e.includes("net")?"var(--honey)":e.includes("infra")||e.includes("cost")?"var(--severity-info)":t?"var(--severity-warning)":"var(--verified)"}function nN(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 rN(e){let t=ua.height-An.top-An.bottom,r=(0-e.min)/(e.max-e.min);return An.top+t-r*t}function oN(e,t){let r=e.points;if(r.length===0)return"";let o=ua.width-An.left-An.right,n=ua.height-An.top-An.bottom,i=r.length>1?o/(r.length-1):0,a=t.max-t.min;return r.map((s,l)=>{let c=An.left+l*i,d=Math.max(0,Math.min(1,(s.cents-t.min)/a)),p=An.top+n-d*n;return`${c.toFixed(1)},${p.toFixed(1)}`}).join(" ")}function iN(){try{return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}catch{return!1}}function SP({trend:e}){let t=Ud.default.useMemo(()=>iN(),[]),[r,o]=Ud.default.useState(t);Ud.default.useEffect(()=>{if(t)return;let s=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(s)},[t]);let n=e.series.some(s=>s.points.length>0);if(e.status==="absent"||!n)return(0,bn.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=nN(e.series),a=rN(i);return(0,bn.jsxs)("div",{"data-testid":"roi-trend-chart",children:[(0,bn.jsxs)("svg",{viewBox:`0 0 ${ua.width} ${ua.height}`,style:{width:"100%",height:200,display:"block"},role:"img","aria-label":"ROI trend over time",children:[(0,bn.jsx)("line",{x1:An.left,y1:a,x2:ua.width-An.right,y2:a,stroke:"var(--border-subtle)",strokeWidth:"1"}),e.series.map(s=>{let l=oN(s,i);if(l==="")return null;let c=bP(s.label,s.modeled);return(0,bn.jsx)("polyline",{"data-testid":`roi-trend-series-${s.label}`,"data-modeled":s.modeled?"true":"false",points:l,fill:"none",stroke:c,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:s.modeled?"5 4":void 0,style:{opacity:r?1:0,transition:t?void 0:"opacity var(--dur-base) var(--ease-out)"}},s.label)})]}),(0,bn.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:14,marginTop:8},children:e.series.map(s=>(0,bn.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,bn.jsx)("svg",{width:22,height:8,"aria-hidden":"true",style:{flex:"none"},children:(0,bn.jsx)("line",{x1:1,y1:4,x2:21,y2:4,stroke:bP(s.label,s.modeled),strokeWidth:"2",strokeDasharray:s.modeled?"4 3":void 0})}),(0,bn.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[s.label,s.modeled?" (est.)":""]})]},s.label))})]})}var D=P(V(),1),aN="#/settings",sN=6e4,lN=15e3,cN="30d",uN=["7d","30d","90d"],Md="\u2014";function nr(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 dN(e){return e===null?Md:`$${(e/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}/Mtok`}function kP(e){return e?"warning":"verified"}function pN(e){return e?"var(--text-secondary)":"var(--text-primary)"}function $P(e){return e<0?"var(--severity-critical)":"var(--verified)"}function eb(e){return e==="allocated"}function fN(e){return e>0?"var(--severity-critical)":e<0?"var(--verified)":"var(--text-tertiary)"}function da({children:e,color:t="var(--text-tertiary)"}){return(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:t},children:e})}function mN({assumption:e}){let[t,r]=tr.default.useState(!1),o=e.assumptionText!==""?e.assumptionText:"Assumption not yet provided.";return(0,D.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,D.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,D.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,D.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 _P({label:e,cents:t,modeled:r,dash:o,indent:n,tone:i,toneLabel:a,trailing:s,testid:l}){return(0,D.jsxs)("div",{"data-testid":l,style:{display:"flex",alignItems:"center",gap:10,padding:"10px 6px",paddingLeft:n?22:6,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)("span",{style:{fontSize:14,color:n?"var(--text-secondary)":"var(--text-primary)"},children:e}),(0,D.jsx)(K,{tone:i,mono:!0,children:a}),s,(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{"data-testid":`${l}-figure`,"data-modeled":r?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:n?15:17,fontWeight:700,color:o?"var(--text-tertiary)":pN(r)},children:o?Md:nr(t,r)})]})}function Qx(e){return e==="absent"||e==="unreachable"||e==="unauthenticated"}function gN({net:e,onRetry:t,retrying:r}){let o=e.computed&&e.status==="ok",n=eb(e.costBasis);return(0,D.jsx)(re,{title:"Net ROI",eyebrow:e.modeled?"saved \u2212 (infra + pollination) \xB7 est.":"saved \u2212 (infra + pollination)",children:(0,D.jsxs)("div",{"data-testid":"net-hero",style:{display:"flex",alignItems:"center",gap:16,padding:"14px 6px",flexWrap:"wrap"},children:[(0,D.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?$P(e.netCents):"var(--text-tertiary)"},children:o?nr(e.netCents,!0):Md}),o?(0,D.jsx)(K,{tone:"warning",mono:!0,children:"est."}):e.status==="unreachable"?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(da,{children:"net not computed - billing is unreachable"}),(0,D.jsx)(R,{variant:"ghost",size:"sm","data-testid":"net-retry",disabled:r,onClick:t,children:r?"retrying...":"Retry"})]}):(0,D.jsx)(da,{children:"net not computed yet"}),o&&n&&(0,D.jsx)(da,{children:"includes an allocated (estimated) infra share"})]})})}function vN(){return(0,D.jsx)("span",{"data-testid":"claude-code-only",style:{marginLeft:4,display:"inline-flex"},children:(0,D.jsx)(K,{tone:"info",children:"Claude Code only"})})}function yN({savings:e}){let t=Qx(e.status);return(0,D.jsx)(re,{title:"Savings",eyebrow:"measured cache \xB7 modeled memory injection",right:e.status==="partial"?(0,D.jsx)(vN,{}):void 0,children:(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,D.jsx)(_P,{testid:"savings-measured",label:"Measured cache savings",cents:e.measuredCents,modeled:!1,dash:t,tone:kP(!1),toneLabel:"measured"}),(0,D.jsx)(_P,{testid:"savings-modeled",label:"Modeled memory-injection savings",cents:e.modeledCents,modeled:!0,dash:t,indent:!0,tone:kP(!0),toneLabel:"modeled",trailing:(0,D.jsx)(mN,{assumption:e.assumption})}),(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)(da,{children:"blended rate"}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{"data-testid":"blended-rate",style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:dN(e.blendedCentsPerMtok)})]})]})})}function wP({label:e,cents:t,deltaCents:r,dash:o,testid:n}){return(0,D.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,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,D.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?Md:nr(t)}),!o&&r!==void 0&&r!==0&&(0,D.jsxs)("span",{"data-testid":`${n}-delta`,style:{fontFamily:"var(--font-mono)",fontSize:12,color:fN(r)},children:[r>0?"\u25B2":"\u25BC"," ",nr(Math.abs(r))," vs prior period"]})]})}function hN({infraCents:e,infraDash:t,infraBasis:r,pollinationCents:o,pollinationDash:n,pollinationLines:i,infraDeltaCents:a}){return(0,D.jsxs)(re,{title:"Cost",eyebrow:"infra \xB7 pollination",children:[(0,D.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12,marginBottom:6},children:[(0,D.jsx)(wP,{testid:"infra-kpi",label:eb(r)?"Infra (allocated, est.)":"Infra cost",cents:e,deltaCents:a,dash:t}),(0,D.jsx)(wP,{testid:"pollination-kpi",label:"Pollination cost",cents:o,dash:n})]}),(0,D.jsx)("div",{"data-testid":"pollination-lines",children:n||i.length===0?(0,D.jsx)("div",{style:{padding:"10px 6px",fontSize:13,color:"var(--text-tertiary)"},children:n?"Pollination cost unavailable.":"No pollination contributors yet."}):i.map((s,l)=>(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)(da,{children:s.label}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:nr(s.cents)})]},s.label||l))})]})}function PP({label:e,active:t,onClick:r,testid:o}){return(0,D.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 xN=["org","team","agent","project"];function bN({rollup:e,perUserAvailable:t}){return e.dimension==="agent"&&!t?(0,D.jsx)("div",{"data-testid":`rollup-${e.dimension}`,children:(0,D.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,D.jsx)(da,{color:"var(--severity-info)",children:"Per-user requires verified login - sign in to attribute ROI per person."})})}):(0,D.jsxs)("div",{"data-testid":`rollup-${e.dimension}`,children:[e.mixedBasis&&(0,D.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,D.jsxs)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e.dimension," rows yet."]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,padding:"4px 6px 8px"},children:["","saved","infra","net"].map((r,o)=>(0,D.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=eb(r.costBasis);return(0,D.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,D.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,D.jsx)("span",{style:{fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label||r.key}),n&&(0,D.jsx)("span",{"data-testid":`rollup-allocated-${r.key}`,style:{display:"inline-flex"},children:(0,D.jsx)(K,{tone:"warning",mono:!0,children:"allocated est."})})]}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:nr(r.measuredSavingsCents)}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:n?"var(--text-secondary)":"var(--text-primary)",textAlign:"right"},children:n?nr(r.infraCostCents,!0):nr(r.infraCostCents)}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:$P(r.netCents),textAlign:"right"},children:n?nr(r.netCents,!0):nr(r.netCents)})]},r.key||o)})]})]})}function SN({rollups:e,perUserAvailable:t}){let r=xN.filter(s=>e.some(l=>l.dimension===s)),[o,n]=tr.default.useState(r[0]??"org"),i=r.includes(o)?o:r[0]??"org",a=e.find(s=>s.dimension===i);return(0,D.jsx)(re,{title:"Rollups",eyebrow:"org \xB7 team \xB7 agent \xB7 project",right:(0,D.jsx)("div",{style:{display:"flex",gap:6},children:r.map(s=>(0,D.jsx)(PP,{testid:`rollup-tab-${s}`,label:s,active:s===i,onClick:()=>n(s)},s))}),children:r.length===0||a===void 0?(0,D.jsx)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:"No rollups yet."}):(0,D.jsx)(bN,{rollup:a,perUserAvailable:t})})}function kN(){return(0,D.jsx)(re,{title:"ROI ledger",eyebrow:"locked",children:(0,D.jsxs)("div",{"data-testid":"auth-gate",style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,padding:"20px 8px"},children:[(0,D.jsx)("span",{"data-testid":"auth-redacted-status",style:{display:"inline-flex"},children:(0,D.jsx)(K,{tone:"neutral",mono:!0,dot:!0,children:"not connected"})}),(0,D.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,D.jsx)(R,{variant:"primary",size:"sm","data-testid":"auth-settings-cta",onClick:()=>{window.location.hash=aN},children:"Open Settings"})]})})}function zP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=tr.default.useState(vd),[i,a]=tr.default.useState(yd),[s,l]=tr.default.useState(cN),[c,d]=tr.default.useState(!1),p=tr.default.useCallback(async()=>{let h=await e.roi(r);n(h)},[e,r]);Nn(p,sN),Nn(p,lN),tr.default.useEffect(()=>{let h=!0;return(async()=>{let _=await e.roiTrend(s,r);h&&a(_)})(),()=>{h=!1}},[e,s,r]);let f=tr.default.useCallback(async()=>{d(!0);try{await p();let h=await e.roiTrend(s,r);a(h)}finally{d(!1)}},[p,e,s,r]),m=o.savings.status==="unauthenticated"||o.net.status==="unauthenticated",x=o.scopedAcrossDevices?"across devices":"this device";return(0,D.jsx)(Ye,{title:"ROI",eyebrow:`net-roi ledger \xB7 ${x}`,children:m?(0,D.jsx)(kN,{}):(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,D.jsx)(gN,{net:o.net,onRetry:()=>{f()},retrying:c}),(0,D.jsx)(yN,{savings:o.savings}),(0,D.jsx)(hN,{infraCents:o.infra.cents,infraDash:Qx(o.infra.status),infraBasis:o.infra.costBasis,pollinationCents:o.pollination.cents,pollinationDash:Qx(o.pollination.status),pollinationLines:o.pollination.lines}),(0,D.jsx)(re,{title:"Trend",eyebrow:"measured (solid) \xB7 modeled (dashed)",right:(0,D.jsx)("div",{style:{display:"flex",gap:6},children:uN.map(h=>(0,D.jsx)(PP,{testid:`trend-range-${h}`,label:h,active:h===s,onClick:()=>l(h)},h))}),children:(0,D.jsx)(SP,{trend:i})}),(0,D.jsx)(SN,{rollups:o.rollups,perUserAvailable:o.perUserAvailable}),(0,D.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,D.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,D.jsxs)("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)"},children:["\xB7 rates as of ",o.ratesAsOf]})]})]})})}var be=P(me(),1);var IP=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 z=P(V(),1),_N=5e3;function Fo({label:e,children:t}){return(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,z.jsx)("span",{style:{flex:1}}),(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function wN(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function $N(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function PN({wire:e}){let[t,r]=be.default.useState(null),[o,n]=be.default.useState(!1),[i,a]=be.default.useState(!1),s=be.default.useRef(!1),l=be.default.useCallback(async()=>{if(s.current)return;s.current=!0,n(!0),a(!1);let c=await e.setupLogin();if(c===null){a(!0),n(!1),s.current=!1;return}r(c)},[e]);return(0,z.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:10,padding:"10px 6px"},children:[(0,z.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Not connected to DeepLake."}),t===null?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(R,{variant:"primary",size:"sm",disabled:o,onClick:()=>{l()},"data-testid":"auth-connect-button",children:o?"Starting\u2026":"Connect to DeepLake"}),i&&(0,z.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,z.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,z.jsxs)("div",{"data-testid":"auth-connect-grant",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,z.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Enter this code to finish signing in:"}),(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:16,color:"var(--honey)",letterSpacing:"0.08em"},children:t.user_code}),(0,z.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,z.jsx)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]}),(0,z.jsxs)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:["or, from your terminal: ",(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--honey)"},children:"honeycomb login"})]})]})}function zN({wire:e}){let[t,r]=be.default.useState($x),[o,n]=be.default.useState(!0),[i,a]=be.default.useState(!1),s=be.default.useCallback(async()=>{let c=await e.authStatus();r(c),n(!1)},[e]),l=be.default.useCallback(async()=>{a(!0),await e.logout(),await s(),a(!1)},[e,s]);return be.default.useEffect(()=>{let c=!0,d=async()=>{!c||an()||await s()};d();let p=setInterval(()=>{d()},_N),f=()=>{d()};return typeof window<"u"&&window.addEventListener("focus",f),()=>{c=!1,clearInterval(p),typeof window<"u"&&window.removeEventListener("focus",f)}},[s]),(0,z.jsx)(re,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,z.jsx)(K,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,z.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,z.jsxs)("div",{"data-testid":"auth-connected",children:[(0,z.jsx)(Fo,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,z.jsx)(Fo,{label:"org id",children:t.orgId||"\u2014"}),(0,z.jsx)(Fo,{label:"workspace",children:t.workspace||"\u2014"}),(0,z.jsx)(Fo,{label:"agent",children:t.agentId||"\u2014"}),(0,z.jsx)(Fo,{label:"source",children:wN(t.source)}),(0,z.jsx)(Fo,{label:"last login",children:t.savedAt||"unknown"}),(0,z.jsx)(Fo,{label:"token expiry",children:$N(t.expiresAt)}),(0,z.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:10},children:(0,z.jsx)(R,{variant:"secondary",size:"sm",disabled:i,onClick:()=>{l()},"data-testid":"auth-logout-button",children:i?"Logging out\u2026":"Log out"})})]}):(0,z.jsx)("div",{"data-testid":"auth-disconnected",children:(0,z.jsx)(PN,{wire:e})})})}var IN=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function RN({id:e,label:t,present:r,onSave:o}){let[n,i]=be.default.useState(""),[a,s]=be.default.useState(!1),[l,c]=be.default.useState(!1),d=be.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}s(!0),c(!1);let f=await o(e,p);s(!1),f?i(""):c(!0)},[n,e,o]);return(0,z.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,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,z.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,z.jsx)(On,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),l&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&d()},"data-testid":`provider-input-${e}`})}),(0,z.jsx)(R,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{d()},children:a?"saving\u2026":"Save key"}),(0,z.jsx)(K,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),l&&(0,z.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function EN({wire:e,secretNames:t,onSaved:r}){let o=be.default.useCallback(async(n,i)=>{let a=ta[n];if(a===void 0)return!1;let s=await e.setSecret(a,i);return s&&r(),s},[e,r]);return(0,z.jsx)(re,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,z.jsx)("div",{"data-testid":"provider-keys",children:IN.map(n=>{let i=ta[n.id]??"",a=i!==""&&t.includes(i);return(0,z.jsx)(RN,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var TN=[{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 CN({value:e,onChange:t}){return(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,z.jsx)("span",{style:{flex:1}}),(0,z.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:TN.map(r=>(0,z.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function jN({settings:e,catalog:t,secretNames:r,onSave:o,portkeyEnabled:n}){let i=String(e[tt.recallMode]??"");return(0,z.jsx)(re,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,z.jsxs)("div",{"data-testid":"search-inference",children:[(0,z.jsx)(CN,{value:i,onChange:a=>{o(tt.recallMode,a)}}),n===!0&&(0,z.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,z.jsx)("div",{style:{marginTop:8,opacity:n===!0?.45:1,transition:"opacity 0.15s"},children:(0,z.jsx)(Rd,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function ON({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,z.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,z.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,z.jsx)(K,{tone:"honey",mono:!0,children:e}),(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,z.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,z.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,z.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function DN(){return(0,z.jsx)(re,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,z.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,z.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."}),IP.map(e=>(0,z.jsx)(ON,{...e},e.configPath))]})})}function NN({wire:e}){let[t,r]=be.default.useState(null),[o,n]=be.default.useState(!1),i=be.default.useCallback(async()=>{try{let l=await e.health();r(l?.reasons?.embeddings==="on")}catch{r(!1)}},[e]);be.default.useEffect(()=>{i()},[i]);let a=be.default.useCallback(async()=>{if(t===null)return;n(!0);let l=!t;await e.setEmbeddings(l)&&r(l),n(!1),i()},[t,e,i]);return(0,z.jsx)(re,{title:"Embeddings",eyebrow:"semantic recall \xB7 local model",right:(0,z.jsx)(K,{tone:t?"verified":"neutral",mono:!0,dot:!0,children:t===null?"\u2026":t?"on":"off"}),children:(0,z.jsxs)("div",{"data-testid":"embeddings-section",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Semantic vector recall"}),(0,z.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,z.jsx)(R,{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 LN({wire:e}){let[t,r]=be.default.useState(!1),[o,n]=be.default.useState(!1),[i,a]=be.default.useState(!1),[s,l]=be.default.useState(!1),[c,d]=be.default.useState(null),[p,f]=be.default.useState(!1),m=be.default.useCallback(async()=>{r(!1),n(!0),await e.restartDaemon()||n(!1)},[e]),x=be.default.useCallback(async()=>{a(!1),l(!0),f(!1);let h=await e.uninstall();d(h),f(h===null),l(!1)},[e]);return(0,z.jsxs)(re,{title:"System",eyebrow:"restart \xB7 uninstall",children:[(0,z.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,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Restart the daemon"}),(0,z.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Stops and relaunches the background daemon. The dashboard reconnects automatically."})]}),o?(0,z.jsx)("span",{"data-testid":"system-restarting",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:"restarting\u2026"}):t?(0,z.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,z.jsx)(R,{variant:"secondary",size:"sm",onClick:()=>r(!1),children:"Cancel"}),(0,z.jsx)(R,{variant:"danger",size:"sm",onClick:()=>{m()},"data-testid":"system-restart-confirm",children:"Confirm restart"})]}):(0,z.jsx)(R,{variant:"secondary",size:"sm",onClick:()=>r(!0),"data-testid":"system-restart-button",children:"Restart"})]}),(0,z.jsxs)("div",{"data-testid":"system-uninstall",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Uninstall Honeycomb"}),(0,z.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,z.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,z.jsx)(R,{variant:"secondary",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,z.jsx)(R,{variant:"danger",size:"sm",disabled:s,onClick:()=>{x()},"data-testid":"system-uninstall-confirm",children:s?"Working\u2026":"Confirm uninstall"})]}):(0,z.jsx)(R,{variant:"danger",size:"sm",onClick:()=>a(!0),"data-testid":"system-uninstall-button",children:"Uninstall"})]}),c!==null&&(0,z.jsxs)("div",{"data-testid":"system-uninstall-result",style:{display:"flex",flexDirection:"column",gap:6,padding:"8px 0"},children:[(0,z.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:c.note}),c.harnesses.length>0&&(0,z.jsxs)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:["Detected: ",c.harnesses.join(", ")]}),(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:c.command})]}),p&&(0,z.jsxs)("span",{"data-testid":"system-uninstall-error",style:{fontSize:12,color:"var(--severity-critical)"},children:["Could not load uninstall guidance. Retry, or run ",(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:"honeycomb uninstall"})," in your terminal."]})]})]})}function RP({wire:e}){let[t,r]=be.default.useState(Bs),[o,n]=be.default.useState([]),i=be.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=be.default.useCallback(async()=>{n(await e.secretNames())},[e]);be.default.useEffect(()=>{i(),a()},[i,a]);let s=be.default.useCallback(async(d,p)=>{let f=await e.setSetting(d,p);return await i(),f},[e,i]),l=t.settings[tt.portkeyEnabled]===!0,c=be.default.useCallback(async d=>{let p=await e.setSecret(ta.portkey,d);return await a(),p},[e,a]);return(0,z.jsx)(Ye,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,z.jsx)(zN,{wire:e}),(0,z.jsx)(EN,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,z.jsx)(NN,{wire:e}),(0,z.jsx)(C$,{settings:t.settings,secretNames:o,onSaveSetting:s,onSaveKey:c}),(0,z.jsx)(jN,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:s,portkeyEnabled:l}),(0,z.jsx)(DN,{}),(0,z.jsx)(LN,{wire:e})]})})}var Fn=P(me(),1);var Y=P(V(),1),AN=5e3,al=12;function Bd(e,t){return`${e}:${t}`}function pa({label:e,children:t}){return(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,Y.jsx)("span",{style:{flex:1}}),(0,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function TP({state:e}){let t=Dx[e]??"neutral";return(0,Y.jsx)(K,{tone:t,mono:!0,dot:!0,children:e})}function FN({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,Y.jsx)(R,{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,Y.jsx)(R,{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,Y.jsx)(R,{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,Y.jsx)(R,{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,Y.jsx)(R,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function WN({row:e}){return(0,Y.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,Y.jsxs)(re,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,Y.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,Y.jsx)(pa,{label:"state",children:(0,Y.jsx)(TP,{state:e.state})}),(0,Y.jsx)(pa,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,Y.jsx)(pa,{label:"scope",children:e.scope||"\u2014"}),(0,Y.jsx)(pa,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,Y.jsx)(pa,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,Y.jsx)(pa,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function UN({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,Y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,Y.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,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,Y.jsx)(TP,{state:e.state}),e.version>0&&(0,Y.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,Y.jsx)(FN,{row:e,flight:r,onAction:n})]}),t&&(0,Y.jsx)(WN,{row:e})]})}function MN({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,Y.jsx)(re,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,Y.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,Y.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(s=>(0,Y.jsx)(UN,{row:s,open:r===Bd(e,s.name),flight:o[Bd(e,s.name)],onToggle:n,onAction:i},`${s.assetType}:${s.name}`))})})}function tb({label:e,value:t,tone:r}){return(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,Y.jsx)(K,{tone:r,mono:!0,children:t}),(0,Y.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function BN(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 ZN({view:e}){let t=BN(e);return(0,Y.jsx)(re,{title:"Sync state",eyebrow:"per scope",children:(0,Y.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,Y.jsx)(tb,{label:"shared with team",value:t.shared,tone:"verified"}),(0,Y.jsx)(tb,{label:"local only",value:t.local,tone:"neutral"}),(0,Y.jsx)(tb,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function HN(e){return e.filter(_d).slice(-al).reverse().map(t=>{let r=Qr(t),o=p$(t);return o!==""?`${r} \xB7 ${o}`:r})}function VN(e,t){if(!_d(t))return e;let r=[...e,t];return r.length>al?r.slice(-al):r}function CP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=Fn.default.useState(Sd),[i,a]=Fn.default.useState([]),[s,l]=Fn.default.useState("skill"),[c,d]=Fn.default.useState(null),[p,f]=Fn.default.useState({});Fn.default.useEffect(()=>{if(r===void 0){n(Sd);return}let v=!0,g=async()=>{if(!v||an())return;let S=await e.assetsView();v&&n(S)};g();let y=setInterval(()=>{g()},AN);return()=>{v=!1,clearInterval(y)}},[e,r]),Fn.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(al*6);v&&a(y.filter(_d).slice(-al))})();let g=e.logsStream(y=>{v&&a(S=>VN(S,y))});return()=>{v=!1,g()}},[e]);let m=Fn.default.useMemo(()=>HN(i),[i]),x=Fn.default.useCallback(v=>{let g=Bd(v.assetType,v.name);d(y=>y===g?null:g)},[]),h=Fn.default.useCallback((v,g)=>{let y=Bd(g.assetType,g.name);f(S=>({...S,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:g.assetType,name:g.name,honeycombId:g.honeycombId!==""?g.honeycombId:void 0}),n(await e.assetsView())}finally{f(S=>{let w={...S};return delete w[y],w})}})()},[e]),_=s==="skill"?o.skills:o.agents;return(0,Y.jsx)(Ye,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,Y.jsx)(ro,{surface:"sync state"}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ZN,{view:o}),(0,Y.jsx)("div",{style:{height:16}}),(0,Y.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,Y.jsx)(EP,{label:"Skills",active:s==="skill",count:o.skills.length,onClick:()=>l("skill")}),(0,Y.jsx)(EP,{label:"Agents",active:s==="agent",count:o.agents.length,onClick:()=>l("agent")})]}),(0,Y.jsx)(MN,{kind:s,rows:_,openKey:c,inFlight:p,onToggle:x,onAction:h}),(0,Y.jsx)("div",{style:{height:16}}),(0,Y.jsx)(eo,{lines:m})]})})}function EP({label:e,active:t,count:r,onClick:o}){return(0,Y.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,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var pe=P(V(),1);function Wn({children:e}){return(0,pe.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 JN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,pe.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,pe.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,pe.jsx)("rect",{x:14,y:14,width:7,height:7})]}),GN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,pe.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,pe.jsx)("path",{d:"M13 15h4"})]}),XN=(0,pe.jsx)(Wn,{children:(0,pe.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"})}),KN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,pe.jsx)("path",{d:"M12 8v8"})]}),YN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,pe.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,pe.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,pe.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),qN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M6 4h8a2 2 0 0 1 2 2v12H4V6a2 2 0 0 1 2-2z"}),(0,pe.jsx)("path",{d:"M8 8h6M8 12h4"}),(0,pe.jsx)("path",{d:"M14 4v4h4"})]}),QN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,pe.jsx)("path",{d:"M21 4v4h-4"})]}),e6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,pe.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),t6=(0,pe.jsx)(Wn,{children:(0,pe.jsx)("path",{d:"M3 12h4l2-7 4 14 2-7h6"})}),n6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M4 19V5"}),(0,pe.jsx)("path",{d:"M4 19h16"}),(0,pe.jsx)("path",{d:"M7 15l4-5 3 3 5-7"})]}),r6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("circle",{cx:12,cy:12,r:3}),(0,pe.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"})]}),Mx="/projects",Zd=[{route:"/",label:"Dashboard",icon:JN,component:q$},{route:Mx,label:"Projects",icon:XN,component:xP},{route:"/harnesses",label:"Harnesses",icon:GN,component:J$,dynamic:{resolve:G$}},{route:"/memories",label:"Memories",icon:KN,component:vP},{route:"/graph",label:"Memory Graph",icon:YN,component:nP},{route:"/hive-graph",label:"Hive Graph",icon:qN,component:iP},{route:"/sync",label:"Sync",icon:QN,component:CP},{route:"/logs",label:"Logs",icon:e6,component:pP},{route:"/health",label:"Health",icon:t6,component:aP},{route:"/roi",label:"ROI",icon:n6,component:zP},{route:"/settings",label:"Settings",icon:r6,component:RP}],ZU=Zd[0];function jP(e,t=Zd){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 rt=P(V(),1),o6=220,i6=56;function a6(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 s6({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,rt.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,rt.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,rt.jsx)("span",{children:e.label})]})}function l6({daemonUp:e,collapsed:t}){return(0,rt.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,rt.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,rt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function OP({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:s}){let l=a6(e,t);return(0,rt.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?i6:o6,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,rt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,rt.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,rt.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,rt.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,rt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,rt.jsx)(b$,{collapsed:a}),(0,rt.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,rt.jsx)(s6,{entry:c,active:c.route===l,collapsed:a,onNavigate:r},c.route))}),(0,rt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,rt.jsx)(l6,{daemonUp:o,collapsed:a}),(0,rt.jsx)(R,{variant:"ghost",size:"sm",onClick:s,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var nb=Object.freeze({honeycomb:"http://127.0.0.1:3850",nectar:"http://127.0.0.1:3854"});var c6=["/hive-graph"];function DP(e){for(let t of c6)if(e===t||e.startsWith(`${t}/`))return"nectar";return"honeycomb"}var ut=P(V(),1),u6=5e3,d6=Object.freeze({honeycomb:!0,nectar:!0}),p6=900;function f6({route:e,pageProps:t,navigate:r}){let o=jP(e),n=o.component,{projects:i,projectsHydrated:a}=Vs();xt.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let s=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),l=o.route==="/"&&a&&!s;return(0,ut.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,ut.jsx)("div",{style:{maxWidth:Cd,margin:"0 auto"},children:l?(0,ut.jsx)(eP,{wire:t.wire,navigate:r,assetBase:t.assetBase}):(0,ut.jsx)(n,{...t})})})}function NP({client:e,assetBase:t="assets"}={}){let r=xt.default.useMemo(()=>e??qr(),[e]),{route:o,navigate:n}=Od(),[i,a]=xt.default.useState(d6),[s,l]=xt.default.useState(null),[c,d]=xt.default.useState(Ix),[p,f]=xt.default.useState(!1),[m,x]=xt.default.useState(0),[h,_]=xt.default.useState(!1),v=DP(o),g=i[v],y=i.honeycomb,S=v==="nectar"?nb.nectar:c.settings.port?`http://127.0.0.1:${c.settings.port}`:nb.honeycomb,w=xt.default.useCallback(async()=>{d(await r.settings())},[r]);xt.default.useEffect(()=>{w()},[w]);let T=xt.default.useRef(null);Nn(async()=>{let[W,ne]=await Promise.all([r.health(),r.hiveGraphStatus()]),ue=W.up,Je=!ne.unreachable;a({honeycomb:ue,nectar:Je}),l(W.reasons),ue&&T.current===!1&&(w(),x(Rt=>Rt+1)),T.current=ue},u6),xt.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let W=window.matchMedia(`(max-width: ${p6}px)`),ne=Je=>{Je&&_(!0)};ne(W.matches);let ue=Je=>ne(Je.matches);return W.addEventListener("change",ue),()=>W.removeEventListener("change",ue)},[]);let I=xt.default.useRef(!1),L=xt.default.useRef(null);xt.default.useEffect(()=>()=>{L.current!==null&&clearTimeout(L.current)},[]);let G=xt.default.useCallback(async()=>{if(I.current)return;I.current=!0,f(!0),(await r.pollinate()).triggered?L.current=setTimeout(()=>{f(!1),I.current=!1},4200):(f(!1),I.current=!1)},[r]),Z=`${c.orgName||c.orgId||"local"} \xB7 ${c.workspace||"default"}`;return(0,ut.jsx)(x$,{wire:r,children:(0,ut.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,ut.jsx)(OP,{entries:Zd,activeRoute:o,onNavigate:n,daemonUp:y,identity:Z,assetBase:t,collapsed:h,onToggleCollapsed:()=>_(W=>!W)}),(0,ut.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,ut.jsx)(W$,{onOpenHealth:()=>n(F$)}),(0,ut.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,ut.jsx)(S$,{wire:r,refreshKey:m}),(0,ut.jsx)("span",{style:{flex:1}}),(0,ut.jsx)(R,{variant:"pollinate",onClick:()=>{G()},disabled:p,children:p?"pollinating\u2026":"Pollinate now"})]}),g?(0,ut.jsx)(f6,{route:o,pageProps:{wire:r,daemonUp:g,assetBase:t,pollinating:p,healthReasons:s},navigate:n}):(0,ut.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,ut.jsx)("div",{style:{maxWidth:Cd,margin:"0 auto"},children:(0,ut.jsx)(j$,{url:S,onRetry:()=>{(async()=>{if(v==="nectar"){let ne=!(await r.hiveGraphStatus()).unreachable;a(ue=>({...ue,nectar:ne}))}else{let{up:W}=await r.health();a(ne=>({...ne,honeycomb:W})),W&&w()}})()}})})})]})]})})}var m6="/buzzing",g6="/login",v6="/onboarding";function LP(e){return e===m6?"buzzing":e===g6?"login":e===v6?"onboarding":"shell"}var fa=P(me(),1);var y6=["honeycomb"];function AP(e){return e==="ok"||e==="degraded"}function FP(e){return e.supervisor!=="reachable"||!AP(e.health)?!1:y6.every(t=>e.daemons.some(r=>r.name===t&&AP(r.health)))}var ke=P(V(),1),h6=45e3;function x6({service:e}){let t=e.state==="starting"||e.state==="warming"||e.state==="degraded";return(0,ke.jsxs)("li",{"data-testid":`buzzing-tile-${e.name}`,"data-state":e.state,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",background:"var(--bg-elevated)"},children:[(0,ke.jsx)("span",{style:{color:no[e.state],display:"inline-flex",flex:"none",animation:t?"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"},children:(0,ke.jsx)(to,{state:e.state})}),(0,ke.jsx)("span",{style:{flex:1,fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-primary)"},children:e.name}),(0,ke.jsx)("span",{"data-testid":`buzzing-tile-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",textTransform:"lowercase"},children:Dn[e.state]})]})}function b6(){return(0,ke.jsxs)("div",{"data-testid":"buzzing-empty",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",padding:"16px 20px",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)"},children:[(0,ke.jsx)("span",{role:"img","aria-label":"doctor supervisor: unreachable",style:{width:8,height:8,borderRadius:"50%",background:"var(--text-tertiary)",animation:"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate"}}),(0,ke.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5,textAlign:"center"},children:"Waiting on doctor. No services are registered yet."})]})}function S6(){return(0,ke.jsx)("div",{"data-testid":"buzzing-progress-bar",role:"progressbar","aria-label":"Fleet still starting",style:{width:"100%",height:6,borderRadius:"var(--radius-full)",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",overflow:"hidden",position:"relative"},children:(0,ke.jsx)("div",{style:{position:"absolute",inset:0,width:"40%",borderRadius:"var(--radius-full)",background:"linear-gradient(90deg, transparent, var(--honey), transparent)",animation:"hc-shimmer-sweep 1.6s var(--ease-in-out) infinite"}})})}function k6(e){return[{name:"Hive",blurb:"Your one dashboard: the front door to the whole fleet.",icon:"/assets/brand/hive-mark.svg"},{name:"Honeycomb",blurb:"Shared AI memory your coding tools carry across sessions.",icon:`${e}/honeycomb-memory-cluster.svg`},{name:"Nectar",blurb:"Gives every file a stable identity, so recall survives renames.",icon:"/assets/brand/nectar-mark.svg"},{name:"Doctor",blurb:"The watchdog that restarts crashed daemons and keeps the fleet healthy.",icon:"/assets/brand/doctor-mark.svg"}]}function _6({assetBase:e}){return(0,ke.jsxs)("div",{"data-testid":"buzzing-while-you-wait",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",textAlign:"left"},children:[(0,ke.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:"While you wait"}),(0,ke.jsx)("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8},children:k6(e).map(t=>(0,ke.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,ke.jsx)("img",{src:t.icon,width:18,height:18,alt:"","aria-hidden":"true",style:{flex:"none"}}),(0,ke.jsxs)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",lineHeight:1.4},children:[(0,ke.jsxs)("strong",{style:{color:"var(--text-primary)"},children:[t.name,":"]})," ",t.blurb]})]},t.name))})]})}function w6(e){let t=e.filter(o=>o.state!=="active");if(t.length===0)return null;let r=t.map(o=>`${o.name} (${Dn[o.state]})`);return t.length===1?`Still settling: ${r[0]}.`:`Still settling: ${r.join(", ")}.`}function WP({assetBase:e,pollMs:t=1500,onReady:r}){let o=ra(),[n,i]=fa.default.useState(!1),[a,s]=fa.default.useState(0);fa.default.useEffect(()=>{if(n)return;let c=Date.now(),d=setInterval(()=>s(Date.now()-c),1e3);return()=>clearInterval(d)},[n]),fa.default.useEffect(()=>{if(n)return;let c=!0,d=!1,p=async()=>{if(!d){d=!0;try{let x=await(await fetch("/api/fleet-status")).json();if(!c)return;FP(x)&&i(!0)}catch{}finally{d=!1}}};p();let f=setInterval(()=>{p()},t);return()=>{c=!1,clearInterval(f)}},[n,t]),fa.default.useEffect(()=>{if(n){if(r!==void 0){r();return}typeof window<"u"&&window.location.assign("/")}},[n,r]);let l=w6(o.services);return(0,ke.jsxs)("div",{"data-testid":"buzzing-screen",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,ke.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:24,width:"100%",maxWidth:560,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,ke.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",width:88,height:88,borderRadius:"50%",background:"var(--honey-subtle)",border:"1px solid var(--honey-border)",animation:"hc-badge-breathe 2.4s var(--ease-in-out) infinite alternate"},children:(0,ke.jsx)("img",{src:`${e}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""})}),(0,ke.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Waiting for the hive\u2026"}),(0,ke.jsxs)("div",{"data-testid":"buzzing-status-region",role:"status","aria-live":"polite",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%"},children:[(0,ke.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Starting required services."}),(0,ke.jsx)("p",{"data-testid":"buzzing-time-expectation",style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:"This usually takes about 20 to 40 seconds on a fresh install; a cold boot can take a minute."}),a>h6&&(0,ke.jsx)("p",{"data-testid":"buzzing-still-working",role:"note",style:{fontSize:"var(--text-xs)",color:"var(--severity-info)",margin:0,lineHeight:1.5},children:"Still working. Some services take longer on first run; this is not stuck."}),(0,ke.jsx)(S6,{}),o.services.length===0?(0,ke.jsx)(b6,{}):(0,ke.jsx)("ul",{"data-testid":"buzzing-tile-grid",style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8,width:"100%",textAlign:"left"},children:o.services.map(c=>(0,ke.jsx)(x6,{service:c},c.name))}),l!==null&&(0,ke.jsx)("p",{"data-testid":"buzzing-long-pole",style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:l})]}),(0,ke.jsx)(_6,{assetBase:e}),(0,ke.jsx)("p",{"data-testid":"buzzing-whats-next",style:{fontSize:"var(--text-xs)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Once every service reports ready, you will land straight on your dashboard, already linked to Deeplake. From there, the Apiary keeps your whole local AI fleet visible and healthy, day to day."})]}),(0,ke.jsx)("style",{children:["@keyframes hc-readiness-pulse { from { opacity: .45 } to { opacity: 1 } }","@keyframes hc-badge-breathe { from { transform: scale(1); opacity: 0.9 } to { transform: scale(1.05); opacity: 1 } }","@keyframes hc-shimmer-sweep { 0% { transform: translateX(-120%) } 100% { transform: translateX(340%) } }"].join(`
|
|
73
|
-
`)})]})}var St=P(me(),1);var rb=P(me(),1);var Hd={doctor:{title:"Doctor",headline:"Doctor keeps your daemons alive while you are not looking.",lines:["Restarts a crashed daemon, then climbs an escalating repair ladder if a plain restart is not enough.","Runs OS-supervised so it starts on boot and survives its own crashes too."],recommended:!0},honeycomb:{title:"Honeycomb",headline:"Honeycomb is the shared memory your agents keep across sessions.",lines:["Captures what happens on every turn and recalls it in any harness, on any machine.","Mines reusable skills from real sessions and propagates them to your whole team automatically."],recommended:!1},nectar:{title:"Nectar",headline:"Nectar gives every file in your repo an identity that survives refactors.",lines:["Tracks files through renames and moves, so memory tied to an old path never goes stale.","Feeds Honeycomb's recall a fourth arm, so asking where the login logic lives actually works."],recommended:!1}},UP="Installed straight from the public npm registry. Every package here is signed and provenance verified through npm Trusted Publishing (OIDC), so what installs is exactly what we published.",MP="Without Doctor, nothing restarts your daemons after a crash or reboot.";function Wo(e,t){return e==="honeycomb"?`${t}/honeycomb-memory-cluster.svg`:`/assets/brand/${e}-mark.svg`}var BP={resolving:"Resolving the package",downloading:"Downloading from npm",linking:"Linking the binary",registering_service:"Registering the service",completed:"Installed",failed:"Installation failed"};var dt=P(V(),1);function $6({product:e,checked:t,onToggle:r,assetBase:o}){let n=Hd[e];return(0,dt.jsxs)("label",{"data-testid":`onboarding-picker-item-${e}`,"data-checked":t,style:{display:"flex",alignItems:"center",gap:14,padding:"14px 16px",borderRadius:"var(--radius-lg)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,background:t?"var(--honey-subtle)":"var(--bg-elevated)",cursor:"pointer",textAlign:"left"},children:[(0,dt.jsx)("input",{type:"checkbox",checked:t,onChange:r,"data-testid":`onboarding-picker-checkbox-${e}`,style:{width:18,height:18,flex:"none",accentColor:"var(--honey)"}}),(0,dt.jsx)("img",{src:Wo(e,o),width:32,height:32,alt:"",style:{flex:"none"}}),(0,dt.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:2},children:[(0,dt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,dt.jsx)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",fontWeight:700,color:"var(--text-primary)"},children:n.title}),n.recommended&&(0,dt.jsx)(K,{tone:"honey",children:"Recommended"})]}),(0,dt.jsx)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-secondary)"},children:n.headline})]})]})}function ZP({products:e,assetBase:t,onConfirm:r}){let[o,n]=rb.default.useState(()=>new Set(e)),i=rb.default.useCallback(s=>{n(l=>{let c=new Set(l);return c.has(s)?c.delete(s):c.add(s),c})},[]),a=e.includes("doctor")&&!o.has("doctor");return(0,dt.jsx)("div",{"data-testid":"onboarding-picker",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:(0,dt.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:22,width:"100%",maxWidth:520},children:[(0,dt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,dt.jsx)("h1",{style:{fontSize:"var(--text-2xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Pick what you want to install"}),(0,dt.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Everything you skip stays skipped until you come back and choose it."})]}),(0,dt.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10,width:"100%",textAlign:"left"},children:e.map(s=>(0,dt.jsx)($6,{product:s,checked:o.has(s),onToggle:()=>i(s),assetBase:t},s))}),a&&(0,dt.jsx)("p",{"data-testid":"onboarding-picker-doctor-warning",style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--severity-warning)",background:"var(--severity-warning-bg)",border:"1px solid var(--severity-warning)",borderRadius:"var(--radius-md)",padding:"10px 14px",margin:0,width:"100%"},children:MP}),(0,dt.jsx)(R,{variant:"primary",size:"lg","data-testid":"onboarding-picker-confirm",onClick:()=>r(e.filter(s=>o.has(s))),children:"Continue"})]})})}var HP=["honeycomb","doctor","hive","nectar"],VP=["doctor","honeycomb","nectar"];var P6=HP,ga=VP;function JP(e){return ga.includes(e)}var z6=["not_installed","installed","install_in_progress","install_failed"],I6=u.object({stage:u.string().catch(""),summary:u.string().catch("")}),Vd=u.object({state:u.enum(z6).catch("not_installed"),version:u.string().optional(),error:I6.optional()}),ma=Object.freeze({state:"not_installed"}),R6=u.object({honeycomb:Vd.optional(),doctor:Vd.optional(),hive:Vd.optional(),nectar:Vd.optional()}).catch({});function GP(e){return{honeycomb:e.honeycomb??ma,doctor:e.doctor??ma,hive:e.hive??ma,nectar:e.nectar??ma}}var XP=Object.freeze(GP({})),KP=u.object({products:R6.transform(e=>GP(e)).catch(XP)}),Jd=Object.freeze({products:XP});function va(e,t){return e.products[t]}function YP(e){return P6.every(t=>va(e,t).state==="installed")}function ll(e){return ga.filter(t=>va(e,t).state!=="installed")}function qP(e){return ll(e).some(t=>{let r=va(e,t).state;return r==="install_in_progress"||r==="install_failed"})}function QP(e,t){let r=ll(e);return t!==null?r.filter(o=>t.includes(o)):r.filter(o=>{let n=va(e,o).state;return n==="install_in_progress"||n==="install_failed"})}var ez=u.object({product:u.enum(ga).catch("doctor"),state:u.enum(["install_in_progress","installed"]).catch("install_in_progress")}),tz=u.object({error:u.enum(["unpublished","manifest_unresolved"])});function nz(e){return e==="unpublished"?"This product is not published to npm yet, so the installer will not pull it. Retry after the release train publishes the package.":"The fleet version manifest could not be resolved, so the installer does not know which package version to install. Retry after the manifest is available."}var E6=["resolving","downloading","linking","registering_service","completed","failed"],Gd=["resolving","downloading","linking","registering_service"],rz=u.object({stage:u.enum(E6).catch("resolving"),detail:u.string().optional()}),sl=Object.freeze({ready:!1,status:{supervisor:"unreachable",daemons:[]}});function oz(e){if(typeof e!="object"||e===null)return sl;let t=e,r=typeof t.ready=="boolean"?t.ready:!1,o=T6(t.status)?t.status:sl.status;return{ready:r,status:o}}function T6(e){if(typeof e!="object"||e===null)return!1;let t=e.supervisor;return t==="reachable"||t==="unreachable"}var ob="hive-onboarding-selection";function ib(){try{return typeof window>"u"?null:window.sessionStorage}catch{return null}}function ab(e){let t=ib();if(t===null)return;let r=ga.filter(o=>e.includes(o));try{t.setItem(ob,JSON.stringify(r))}catch{}}function iz(){let e=ib();if(e===null)return null;let t;try{t=e.getItem(ob)}catch{return null}if(t===null)return null;try{let r=JSON.parse(t);if(!Array.isArray(r))return null;let o=r.filter(n=>typeof n=="string"&&JP(n));return o.length>0?ga.filter(n=>o.includes(n)):null}catch{return null}}function sb(){let e=ib();if(e!==null)try{e.removeItem(ob)}catch{}}var Uo=P(me(),1);var we=P(V(),1),C6=45e3;function j6(e){return[{name:"Hive",blurb:"Your one dashboard: the front door to the whole fleet.",icon:"/assets/brand/hive-mark.svg"},{name:"Honeycomb",blurb:"Shared AI memory your coding tools carry across sessions.",icon:`${e}/honeycomb-memory-cluster.svg`},{name:"Nectar",blurb:"Gives every file a stable identity, so recall survives renames.",icon:"/assets/brand/nectar-mark.svg"},{name:"Doctor",blurb:"The watchdog that restarts crashed daemons and keeps the fleet healthy.",icon:"/assets/brand/doctor-mark.svg"}]}function O6({assetBase:e}){return(0,we.jsxs)("div",{"data-testid":"onboarding-health-while-you-wait",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",textAlign:"left"},children:[(0,we.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:"While you wait"}),(0,we.jsx)("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8},children:j6(e).map(t=>(0,we.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,we.jsx)("img",{src:t.icon,width:18,height:18,alt:"","aria-hidden":"true",style:{flex:"none"}}),(0,we.jsxs)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",lineHeight:1.4},children:[(0,we.jsxs)("strong",{style:{color:"var(--text-primary)"},children:[t.name,":"]})," ",t.blurb]})]},t.name))})]})}function D6(e){let t=e.filter(o=>o.state!=="active");if(t.length===0)return null;let r=t.map(o=>`${o.name} (${Dn[o.state]})`);return t.length===1?`Still settling: ${r[0]}.`:`Still settling: ${r.join(", ")}.`}function N6(){return(0,we.jsx)("div",{"data-testid":"onboarding-health-progress-bar",role:"progressbar","aria-label":"Fleet still starting",style:{width:"100%",height:6,borderRadius:"var(--radius-full)",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",overflow:"hidden",position:"relative"},children:(0,we.jsx)("div",{style:{position:"absolute",inset:0,width:"40%",borderRadius:"var(--radius-full)",background:"linear-gradient(90deg, transparent, var(--honey), transparent)",animation:"hc-shimmer-sweep 1.6s var(--ease-in-out) infinite"}})})}function az({client:e,onReady:t,pollMs:r=1500,assetBase:o=""}){let[n,i]=Uo.default.useState([]),[a,s]=Uo.default.useState(!1),[l,c]=Uo.default.useState(0);Uo.default.useEffect(()=>{if(a)return;let f=Date.now(),m=setInterval(()=>c(Date.now()-f),1e3);return()=>clearInterval(m)},[a]),Uo.default.useEffect(()=>{if(a)return;let f=!0,m=!1,x=async()=>{if(!m){m=!0;try{let _=await e.health();if(!f)return;i(_.status.supervisor==="reachable"?_.status.daemons:[]),_.ready&&s(!0)}finally{m=!1}}};x();let h=setInterval(()=>{x()},r);return()=>{f=!1,clearInterval(h)}},[a,r,e]),Uo.default.useEffect(()=>{a&&t()},[a,t]);let d=n.map(f=>({name:f.name,state:qs({signal:Ys(f),now:Date.now(),firstActiveAt:null})})),p=D6(d);return(0,we.jsxs)("div",{"data-testid":"onboarding-health-view",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,we.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:22,width:"100%",maxWidth:560,padding:"40px 36px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,we.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",width:72,height:72,borderRadius:"50%",background:"var(--honey-subtle)",border:"1px solid var(--honey-border)",animation:"hc-badge-breathe 2.4s var(--ease-in-out) infinite alternate"},children:(0,we.jsx)("img",{src:`${o}/honeycomb-memory-cluster.svg`,width:40,height:40,alt:""})}),(0,we.jsx)("h1",{style:{fontSize:"var(--text-2xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Bringing the fleet up green"}),(0,we.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"One last check before your dashboard: every daemon needs to report healthy."}),(0,we.jsx)("p",{"data-testid":"onboarding-health-time-expectation",style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:"This usually takes about 20 to 40 seconds on a fresh install; a cold boot can take a minute."}),l>C6&&(0,we.jsx)("p",{"data-testid":"onboarding-health-still-working",role:"note",style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--severity-info)",margin:0,lineHeight:1.5},children:"Still working. Some services take longer on first run; this is not stuck."}),(0,we.jsx)(N6,{}),(0,we.jsx)("ul",{role:"status","aria-live":"polite",style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8,width:"100%",textAlign:"left"},children:n.length===0?(0,we.jsx)("li",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Checking the fleet\u2026"}):n.map(f=>{let m=qs({signal:Ys(f),now:Date.now(),firstActiveAt:null}),x=m==="starting"||m==="warming"||m==="degraded";return(0,we.jsxs)("li",{"data-testid":`onboarding-health-row-${f.name}`,"data-state":m,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",background:"var(--bg-elevated)"},children:[(0,we.jsx)("span",{style:{color:no[m],display:"inline-flex",flex:"none",animation:x?"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"},children:(0,we.jsx)(to,{state:m})}),(0,we.jsx)("span",{style:{flex:1,fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-primary)"},children:f.name}),(0,we.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-secondary)"},children:Dn[m]})]},f.name)})}),p!==null&&(0,we.jsx)("p",{"data-testid":"onboarding-health-long-pole",style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:p}),(0,we.jsx)(O6,{assetBase:o}),(0,we.jsx)("p",{"data-testid":"onboarding-health-whats-next",style:{fontSize:"var(--text-xs)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Next: a quick sign-in links this machine to your Deeplake account, then you pick a workspace and land on your dashboard. From there, the Apiary keeps your whole local AI fleet visible and healthy, day to day."})]}),(0,we.jsx)("style",{children:["@keyframes hc-readiness-pulse { from { opacity: .45 } to { opacity: 1 } }","@keyframes hc-badge-breathe { from { transform: scale(1); opacity: 0.9 } to { transform: scale(1.05); opacity: 1 } }","@keyframes hc-shimmer-sweep { 0% { transform: translateX(-120%) } 100% { transform: translateX(340%) } }"].join(`
|
|
74
|
-
`)})]})}var
|
|
72
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=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(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function qr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let l=e.seen.get(s);if(l.ref===null)return;let c=l.def??l.schema,d={...c},p=l.ref;if(l.ref=null,p){o(p);let m=e.seen.get(p),x=m.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),s._zod.parent===p)for(let _ in c)_==="$ref"||_==="allOf"||_ in d||delete c[_];if(x.$ref&&m.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in m.def&&JSON.stringify(c[_])===JSON.stringify(m.def[_])&&delete c[_]}let f=s._zod.parent;if(f&&f!==p){o(f);let m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let x in c)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(c[x])===JSON.stringify(m.def[x])&&delete c[x]}e.override({zodSchema:s,jsonSchema:c,path:l.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[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 s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}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 s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,a[l.defId]=l.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Mi(t,"input",e.processors),output:Mi(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function At(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 At(o.element,r);if(o.type==="set")return At(o.valueType,r);if(o.type==="lazy")return At(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 At(o.innerType,r);if(o.type==="intersection")return At(o.left,r)||At(o.right,r);if(o.type==="record"||o.type==="map")return At(o.keyType,r)||At(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:At(o.in,r)||At(o.out,r);if(o.type==="object"){for(let n in o.shape)if(At(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(At(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(At(n,r))return!0;return!!(o.rest&&At(o.rest,r))}return!1}var Iy=(e,t={})=>r=>{let o=Kr({...r,processors:t});return Pe(e,o),Yr(o,e),qr(o,e)},Mi=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=Kr({...n??{},target:i,io:t,processors:r});return Pe(e,a),Yr(a,e),qr(a,e)};var zC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ry=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=zC[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),l&&l.size>0){let d=[...l];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}))])}},Ey=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.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),m=t.target==="draft-04"||t.target==="openapi-3.0";p?m?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d:typeof i=="number"&&(n.minimum=i),f?m?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof l=="number"&&(n.multipleOf=l)},Ty=(e,t,r,o)=>{r.type="boolean"},Cy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},jy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Oy=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Dy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Ny=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ly=(e,t,r,o)=>{r.not={}},Ay=(e,t,r,o)=>{},Fy=(e,t,r,o)=>{},Wy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Uy=(e,t,r,o)=>{let n=e._zod.def,i=ps(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},My=(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},By=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Zy=(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},Hy=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:l}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(n,i)},Vy=(e,t,r,o)=>{r.type="boolean"},Jy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Gy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Xy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ky=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Yy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},qy=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=Pe(i.element,t,{...o,path:[...o.path,"items"]})},Qy=(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]=Pe(a[c],t,{...o,path:[...o.path,"properties",c]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(c=>{let d=i.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Pe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Lu=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,l)=>Pe(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},eh=(e,t,r,o)=>{let n=e._zod.def,i=Pe(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=Pe(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l},th=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((f,m)=>Pe(f,t,{...o,path:[...o.path,a,m]})),c=i.rest?Pe(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:l},c&&n.items.anyOf.push(c),n.minItems=l.length,c||(n.maxItems=l.length)):(n.items=l,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},nh=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,l=a._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let d=Pe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of l)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=Pe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Pe(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)}},rh=(e,t,r,o)=>{let n=e._zod.def,i=Pe(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"}]},oh=(e,t,r,o)=>{let n=e._zod.def;Pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ih=(e,t,r,o)=>{let n=e._zod.def;Pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},ah=(e,t,r,o)=>{let n=e._zod.def;Pe(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)))},sh=(e,t,r,o)=>{let n=e._zod.def;Pe(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},lh=(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;Pe(a,t,o);let s=t.seen.get(e);s.ref=a},ch=(e,t,r,o)=>{let n=e._zod.def;Pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},uh=(e,t,r,o)=>{let n=e._zod.def;Pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Au=(e,t,r,o)=>{let n=e._zod.def;Pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},dh=(e,t,r,o)=>{let n=e._zod.innerType;Pe(n,t,o);let i=t.seen.get(e);i.ref=n},Nu={string:Ry,number:Ey,boolean:Ty,bigint:Cy,symbol:jy,null:Oy,undefined:Dy,void:Ny,never:Ly,any:Ay,unknown:Fy,date:Wy,enum:Uy,literal:My,nan:By,template_literal:Zy,file:Hy,success:Vy,custom:Jy,function:Gy,transform:Xy,map:Ky,set:Yy,array:qy,object:Qy,union:Lu,intersection:eh,tuple:th,record:nh,nullable:rh,nonoptional:oh,default:ih,prefault:ah,catch:sh,pipe:lh,readonly:ch,promise:uh,optional:Au,lazy:dh};function Fu(e,t){if("_idmap"in e){let o=e,n=Kr({...t,processors:Nu}),i={};for(let l of o._idmap.entries()){let[c,d]=l;Pe(d,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let l of o._idmap.entries()){let[c,d]=l;Yr(n,d),a[c]=qr(n,d)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}let r=Kr({...t,processors:Nu});return Pe(e,r),Yr(r,e),qr(r,e)}var Wu=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=Kr({processors:Nu,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 Pe(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)),Yr(this.ctx,t);let o=qr(this.ctx,t),{"~standard":n,...i}=o;return i}};var Iw={};var Es={};ir(Es,{ZodAny:()=>Dh,ZodArray:()=>Fh,ZodBase64:()=>sd,ZodBase64URL:()=>ld,ZodBigInt:()=>Ki,ZodBigIntFormat:()=>dd,ZodBoolean:()=>Xi,ZodCIDRv4:()=>id,ZodCIDRv6:()=>ad,ZodCUID:()=>qu,ZodCUID2:()=>Qu,ZodCatch:()=>sx,ZodCodec:()=>Ms,ZodCustom:()=>Bs,ZodCustomStringFormat:()=>Ji,ZodDate:()=>Ls,ZodDefault:()=>tx,ZodDiscriminatedUnion:()=>Uh,ZodE164:()=>cd,ZodEmail:()=>Xu,ZodEmoji:()=>Ku,ZodEnum:()=>Hi,ZodExactOptional:()=>qh,ZodFile:()=>Kh,ZodFunction:()=>yx,ZodGUID:()=>Cs,ZodIPv4:()=>rd,ZodIPv6:()=>od,ZodIntersection:()=>Mh,ZodJWT:()=>ud,ZodKSUID:()=>nd,ZodLazy:()=>mx,ZodLiteral:()=>Xh,ZodMAC:()=>Ih,ZodMap:()=>Jh,ZodNaN:()=>cx,ZodNanoID:()=>Yu,ZodNever:()=>Lh,ZodNonOptional:()=>yd,ZodNull:()=>jh,ZodNullable:()=>ex,ZodNumber:()=>Gi,ZodNumberFormat:()=>jo,ZodObject:()=>Fs,ZodOptional:()=>vd,ZodPipe:()=>Us,ZodPrefault:()=>rx,ZodPreprocess:()=>ux,ZodPromise:()=>vx,ZodReadonly:()=>dx,ZodRecord:()=>Zi,ZodSet:()=>Gh,ZodString:()=>Vi,ZodStringFormat:()=>Ce,ZodSuccess:()=>ax,ZodSymbol:()=>Th,ZodTemplateLiteral:()=>fx,ZodTransform:()=>Yh,ZodTuple:()=>Zh,ZodType:()=>ce,ZodULID:()=>ed,ZodURL:()=>Ns,ZodUUID:()=>qn,ZodUndefined:()=>Ch,ZodUnion:()=>Ws,ZodUnknown:()=>Nh,ZodVoid:()=>Ah,ZodXID:()=>td,ZodXor:()=>Wh,_ZodString:()=>Gu,_default:()=>nx,_function:()=>L1,any:()=>m1,array:()=>As,base64:()=>Yw,base64url:()=>qw,bigint:()=>c1,boolean:()=>Eh,catch:()=>lx,check:()=>A1,cidrv4:()=>Xw,cidrv6:()=>Kw,codec:()=>j1,cuid:()=>Uw,cuid2:()=>Mw,custom:()=>F1,date:()=>v1,describe:()=>W1,discriminatedUnion:()=>k1,e164:()=>Qw,email:()=>Tw,emoji:()=>Fw,enum:()=>md,exactOptional:()=>Qh,file:()=>R1,float32:()=>i1,float64:()=>a1,function:()=>L1,guid:()=>Cw,hash:()=>o1,hex:()=>r1,hostname:()=>n1,httpUrl:()=>Aw,instanceof:()=>M1,int:()=>Vu,int32:()=>s1,int64:()=>u1,intersection:()=>Bh,invertCodec:()=>O1,ipv4:()=>Vw,ipv6:()=>Gw,json:()=>Z1,jwt:()=>e1,keyof:()=>y1,ksuid:()=>Hw,lazy:()=>gx,literal:()=>I1,looseObject:()=>b1,looseRecord:()=>w1,mac:()=>Jw,map:()=>$1,meta:()=>U1,nan:()=>C1,nanoid:()=>Ww,nativeEnum:()=>z1,never:()=>pd,nonoptional:()=>ix,null:()=>Oh,nullable:()=>Os,nullish:()=>E1,number:()=>Rh,object:()=>h1,optional:()=>js,partialRecord:()=>_1,pipe:()=>Ju,prefault:()=>ox,preprocess:()=>H1,promise:()=>N1,readonly:()=>px,record:()=>Vh,refine:()=>hx,set:()=>P1,strictObject:()=>x1,string:()=>Ts,stringFormat:()=>t1,stringbool:()=>B1,success:()=>T1,superRefine:()=>xx,symbol:()=>p1,templateLiteral:()=>D1,transform:()=>gd,tuple:()=>Hh,uint32:()=>l1,uint64:()=>d1,ulid:()=>Bw,undefined:()=>f1,union:()=>fd,unknown:()=>Co,url:()=>Lw,uuid:()=>jw,uuidv4:()=>Ow,uuidv6:()=>Dw,uuidv7:()=>Nw,void:()=>g1,xid:()=>Zw,xor:()=>S1});var Uu={};ir(Uu,{endsWith:()=>Oi,gt:()=>Kn,gte:()=>Lt,includes:()=>Ci,length:()=>To,lowercase:()=>Ei,lt:()=>Xn,lte:()=>on,maxLength:()=>Eo,maxSize:()=>Xr,mime:()=>Di,minLength:()=>yr,minSize:()=>Yn,multipleOf:()=>Gr,negative:()=>Cu,nonnegative:()=>Ou,nonpositive:()=>ju,normalize:()=>Ni,overwrite:()=>Cn,positive:()=>Tu,property:()=>Du,regex:()=>Ri,size:()=>Ro,slugify:()=>Wi,startsWith:()=>ji,toLowerCase:()=>Ai,toUpperCase:()=>Fi,trim:()=>Li,uppercase:()=>Ti});var Bi={};ir(Bi,{ZodISODate:()=>Bu,ZodISODateTime:()=>Mu,ZodISODuration:()=>Hu,ZodISOTime:()=>Zu,date:()=>fh,datetime:()=>ph,duration:()=>gh,time:()=>mh});var Mu=b("ZodISODateTime",(e,t)=>{Bg.init(e,t),Ce.init(e,t)});function ph(e){return Jv(Mu,e)}var Bu=b("ZodISODate",(e,t)=>{Zg.init(e,t),Ce.init(e,t)});function fh(e){return Gv(Bu,e)}var Zu=b("ZodISOTime",(e,t)=>{Hg.init(e,t),Ce.init(e,t)});function mh(e){return Xv(Zu,e)}var Hu=b("ZodISODuration",(e,t)=>{Vg.init(e,t),Ce.init(e,t)});function gh(e){return Kv(Hu,e)}var Rw=(e,t)=>{ys.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>xs(e,r)},flatten:{value:r=>hs(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,bi,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,bi,2)}},isEmpty:{get(){return e.issues.length===0}}})},RC=b("ZodError",Rw),Gt=b("ZodError",Rw,{Parent:Error});var vh=_i(Gt),yh=wi(Gt),hh=$i(Gt),xh=Pi(Gt),bh=Fc(Gt),Sh=Wc(Gt),kh=Uc(Gt),_h=Mc(Gt),wh=Bc(Gt),$h=Zc(Gt),Ph=Hc(Gt),zh=Vc(Gt);var Ew=new WeakMap;function Ds(e,t,r){let o=Object.getPrototypeOf(e),n=Ew.get(o);if(n||(n=new Set,Ew.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 s=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var ce=b("ZodType",(e,t)=>(ie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Mi(e,"input"),output:Mi(e,"output")}}),e.toJSONSchema=Iy(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>vh(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>hh(e,r,o),e.parseAsync=async(r,o)=>yh(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>xh(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>bh(e,r,o),e.decode=(r,o)=>Sh(e,r,o),e.encodeAsync=async(r,o)=>kh(e,r,o),e.decodeAsync=async(r,o)=>_h(e,r,o),e.safeEncode=(r,o)=>wh(e,r,o),e.safeDecode=(r,o)=>$h(e,r,o),e.safeEncodeAsync=async(r,o)=>Ph(e,r,o),e.safeDecodeAsync=async(r,o)=>zh(e,r,o),Ds(e,"ZodType",{check(...r){let o=this.def;return this.clone(C.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 Dt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(hx(r,o))},superRefine(r,o){return this.check(xx(r,o))},overwrite(r){return this.check(Cn(r))},optional(){return js(this)},exactOptional(){return Qh(this)},nullable(){return Os(this)},nullish(){return js(Os(this))},nonoptional(r){return ix(this,r)},array(){return As(this)},or(r){return fd([this,r])},and(r){return Bh(this,r)},transform(r){return Ju(this,gd(r))},default(r){return nx(this,r)},prefault(r){return ox(this,r)},catch(r){return lx(this,r)},pipe(r){return Ju(this,r)},readonly(){return px(this)},describe(r){let o=this.clone();return ht.add(o,{description:r}),o},meta(...r){if(r.length===0)return ht.get(this);let o=this.clone();return ht.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 ht.get(e)?.description},configurable:!0}),e)),Gu=b("_ZodString",(e,t)=>{Io.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Ry(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Ds(e,"_ZodString",{regex(...o){return this.check(Ri(...o))},includes(...o){return this.check(Ci(...o))},startsWith(...o){return this.check(ji(...o))},endsWith(...o){return this.check(Oi(...o))},min(...o){return this.check(yr(...o))},max(...o){return this.check(Eo(...o))},length(...o){return this.check(To(...o))},nonempty(...o){return this.check(yr(1,...o))},lowercase(o){return this.check(Ei(o))},uppercase(o){return this.check(Ti(o))},trim(){return this.check(Li())},normalize(...o){return this.check(Ni(...o))},toLowerCase(){return this.check(Ai())},toUpperCase(){return this.check(Fi())},slugify(){return this.check(Wi())}})}),Vi=b("ZodString",(e,t)=>{Io.init(e,t),Gu.init(e,t),e.email=r=>e.check(du(Xu,r)),e.url=r=>e.check(Rs(Ns,r)),e.jwt=r=>e.check(Eu(ud,r)),e.emoji=r=>e.check(vu(Ku,r)),e.guid=r=>e.check(Is(Cs,r)),e.uuid=r=>e.check(pu(qn,r)),e.uuidv4=r=>e.check(fu(qn,r)),e.uuidv6=r=>e.check(mu(qn,r)),e.uuidv7=r=>e.check(gu(qn,r)),e.nanoid=r=>e.check(yu(Yu,r)),e.guid=r=>e.check(Is(Cs,r)),e.cuid=r=>e.check(hu(qu,r)),e.cuid2=r=>e.check(xu(Qu,r)),e.ulid=r=>e.check(bu(ed,r)),e.base64=r=>e.check(zu(sd,r)),e.base64url=r=>e.check(Iu(ld,r)),e.xid=r=>e.check(Su(td,r)),e.ksuid=r=>e.check(ku(nd,r)),e.ipv4=r=>e.check(_u(rd,r)),e.ipv6=r=>e.check(wu(od,r)),e.cidrv4=r=>e.check($u(id,r)),e.cidrv6=r=>e.check(Pu(ad,r)),e.e164=r=>e.check(Ru(cd,r)),e.datetime=r=>e.check(ph(r)),e.date=r=>e.check(fh(r)),e.time=r=>e.check(mh(r)),e.duration=r=>e.check(gh(r))});function Ts(e){return Bv(Vi,e)}var Ce=b("ZodStringFormat",(e,t)=>{Te.init(e,t),Gu.init(e,t)}),Xu=b("ZodEmail",(e,t)=>{Og.init(e,t),Ce.init(e,t)});function Tw(e){return du(Xu,e)}var Cs=b("ZodGUID",(e,t)=>{Cg.init(e,t),Ce.init(e,t)});function Cw(e){return Is(Cs,e)}var qn=b("ZodUUID",(e,t)=>{jg.init(e,t),Ce.init(e,t)});function jw(e){return pu(qn,e)}function Ow(e){return fu(qn,e)}function Dw(e){return mu(qn,e)}function Nw(e){return gu(qn,e)}var Ns=b("ZodURL",(e,t)=>{Dg.init(e,t),Ce.init(e,t)});function Lw(e){return Rs(Ns,e)}function Aw(e){return Rs(Ns,{protocol:rn.httpProtocol,hostname:rn.domain,...C.normalizeParams(e)})}var Ku=b("ZodEmoji",(e,t)=>{Ng.init(e,t),Ce.init(e,t)});function Fw(e){return vu(Ku,e)}var Yu=b("ZodNanoID",(e,t)=>{Lg.init(e,t),Ce.init(e,t)});function Ww(e){return yu(Yu,e)}var qu=b("ZodCUID",(e,t)=>{Ag.init(e,t),Ce.init(e,t)});function Uw(e){return hu(qu,e)}var Qu=b("ZodCUID2",(e,t)=>{Fg.init(e,t),Ce.init(e,t)});function Mw(e){return xu(Qu,e)}var ed=b("ZodULID",(e,t)=>{Wg.init(e,t),Ce.init(e,t)});function Bw(e){return bu(ed,e)}var td=b("ZodXID",(e,t)=>{Ug.init(e,t),Ce.init(e,t)});function Zw(e){return Su(td,e)}var nd=b("ZodKSUID",(e,t)=>{Mg.init(e,t),Ce.init(e,t)});function Hw(e){return ku(nd,e)}var rd=b("ZodIPv4",(e,t)=>{Jg.init(e,t),Ce.init(e,t)});function Vw(e){return _u(rd,e)}var Ih=b("ZodMAC",(e,t)=>{Xg.init(e,t),Ce.init(e,t)});function Jw(e){return Hv(Ih,e)}var od=b("ZodIPv6",(e,t)=>{Gg.init(e,t),Ce.init(e,t)});function Gw(e){return wu(od,e)}var id=b("ZodCIDRv4",(e,t)=>{Kg.init(e,t),Ce.init(e,t)});function Xw(e){return $u(id,e)}var ad=b("ZodCIDRv6",(e,t)=>{Yg.init(e,t),Ce.init(e,t)});function Kw(e){return Pu(ad,e)}var sd=b("ZodBase64",(e,t)=>{Qg.init(e,t),Ce.init(e,t)});function Yw(e){return zu(sd,e)}var ld=b("ZodBase64URL",(e,t)=>{ev.init(e,t),Ce.init(e,t)});function qw(e){return Iu(ld,e)}var cd=b("ZodE164",(e,t)=>{tv.init(e,t),Ce.init(e,t)});function Qw(e){return Ru(cd,e)}var ud=b("ZodJWT",(e,t)=>{nv.init(e,t),Ce.init(e,t)});function e1(e){return Eu(ud,e)}var Ji=b("ZodCustomStringFormat",(e,t)=>{rv.init(e,t),Ce.init(e,t)});function t1(e,t,r={}){return Ui(Ji,e,t,r)}function n1(e){return Ui(Ji,"hostname",rn.hostname,e)}function r1(e){return Ui(Ji,"hex",rn.hex,e)}function o1(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=rn[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Ui(Ji,o,n,t)}var Gi=b("ZodNumber",(e,t)=>{tu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Ey(e,o,n,i),Ds(e,"ZodNumber",{gt(o,n){return this.check(Kn(o,n))},gte(o,n){return this.check(Lt(o,n))},min(o,n){return this.check(Lt(o,n))},lt(o,n){return this.check(Xn(o,n))},lte(o,n){return this.check(on(o,n))},max(o,n){return this.check(on(o,n))},int(o){return this.check(Vu(o))},safe(o){return this.check(Vu(o))},positive(o){return this.check(Kn(0,o))},nonnegative(o){return this.check(Lt(0,o))},negative(o){return this.check(Xn(0,o))},nonpositive(o){return this.check(on(0,o))},multipleOf(o,n){return this.check(Gr(o,n))},step(o,n){return this.check(Gr(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 Rh(e){return Yv(Gi,e)}var jo=b("ZodNumberFormat",(e,t)=>{ov.init(e,t),Gi.init(e,t)});function Vu(e){return Qv(jo,e)}function i1(e){return ey(jo,e)}function a1(e){return ty(jo,e)}function s1(e){return ny(jo,e)}function l1(e){return ry(jo,e)}var Xi=b("ZodBoolean",(e,t)=>{_s.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ty(e,r,o,n)});function Eh(e){return oy(Xi,e)}var Ki=b("ZodBigInt",(e,t)=>{nu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Cy(e,o,n,i),e.gte=(o,n)=>e.check(Lt(o,n)),e.min=(o,n)=>e.check(Lt(o,n)),e.gt=(o,n)=>e.check(Kn(o,n)),e.gte=(o,n)=>e.check(Lt(o,n)),e.min=(o,n)=>e.check(Lt(o,n)),e.lt=(o,n)=>e.check(Xn(o,n)),e.lte=(o,n)=>e.check(on(o,n)),e.max=(o,n)=>e.check(on(o,n)),e.positive=o=>e.check(Kn(BigInt(0),o)),e.negative=o=>e.check(Xn(BigInt(0),o)),e.nonpositive=o=>e.check(on(BigInt(0),o)),e.nonnegative=o=>e.check(Lt(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Gr(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function c1(e){return ay(Ki,e)}var dd=b("ZodBigIntFormat",(e,t)=>{iv.init(e,t),Ki.init(e,t)});function u1(e){return ly(dd,e)}function d1(e){return cy(dd,e)}var Th=b("ZodSymbol",(e,t)=>{av.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jy(e,r,o,n)});function p1(e){return uy(Th,e)}var Ch=b("ZodUndefined",(e,t)=>{sv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dy(e,r,o,n)});function f1(e){return dy(Ch,e)}var jh=b("ZodNull",(e,t)=>{lv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Oy(e,r,o,n)});function Oh(e){return py(jh,e)}var Dh=b("ZodAny",(e,t)=>{cv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ay(e,r,o,n)});function m1(){return fy(Dh)}var Nh=b("ZodUnknown",(e,t)=>{uv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fy(e,r,o,n)});function Co(){return my(Nh)}var Lh=b("ZodNever",(e,t)=>{dv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ly(e,r,o,n)});function pd(e){return gy(Lh,e)}var Ah=b("ZodVoid",(e,t)=>{pv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ny(e,r,o,n)});function g1(e){return vy(Ah,e)}var Ls=b("ZodDate",(e,t)=>{fv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Wy(e,o,n,i),e.min=(o,n)=>e.check(Lt(o,n)),e.max=(o,n)=>e.check(on(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 v1(e){return yy(Ls,e)}var Fh=b("ZodArray",(e,t)=>{mv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qy(e,r,o,n),e.element=t.element,Ds(e,"ZodArray",{min(r,o){return this.check(yr(r,o))},nonempty(r){return this.check(yr(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 As(e,t){return by(Fh,e,t)}function y1(e){let t=e._zod.def.shape;return md(Object.keys(t))}var Fs=b("ZodObject",(e,t)=>{gv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qy(e,r,o,n),C.defineLazy(e,"shape",()=>t.shape),Ds(e,"ZodObject",{keyof(){return md(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Co()})},loose(){return this.clone({...this._zod.def,catchall:Co()})},strict(){return this.clone({...this._zod.def,catchall:pd()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return C.extend(this,r)},safeExtend(r){return C.safeExtend(this,r)},merge(r){return C.merge(this,r)},pick(r){return C.pick(this,r)},omit(r){return C.omit(this,r)},partial(...r){return C.partial(vd,this,r[0])},required(...r){return C.required(yd,this,r[0])}})});function h1(e,t){let r={type:"object",shape:e??{},...C.normalizeParams(t)};return new Fs(r)}function x1(e,t){return new Fs({type:"object",shape:e,catchall:pd(),...C.normalizeParams(t)})}function b1(e,t){return new Fs({type:"object",shape:e,catchall:Co(),...C.normalizeParams(t)})}var Ws=b("ZodUnion",(e,t)=>{ws.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Lu(e,r,o,n),e.options=t.options});function fd(e,t){return new Ws({type:"union",options:e,...C.normalizeParams(t)})}var Wh=b("ZodXor",(e,t)=>{Ws.init(e,t),vv.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Lu(e,r,o,n),e.options=t.options});function S1(e,t){return new Wh({type:"union",options:e,inclusive:!1,...C.normalizeParams(t)})}var Uh=b("ZodDiscriminatedUnion",(e,t)=>{Ws.init(e,t),yv.init(e,t)});function k1(e,t,r){return new Uh({type:"union",options:t,discriminator:e,...C.normalizeParams(r)})}var Mh=b("ZodIntersection",(e,t)=>{hv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>eh(e,r,o,n)});function Bh(e,t){return new Mh({type:"intersection",left:e,right:t})}var Zh=b("ZodTuple",(e,t)=>{ru.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>th(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Hh(e,t,r){let o=t instanceof ie,n=o?r:t,i=o?t:null;return new Zh({type:"tuple",items:e,rest:i,...C.normalizeParams(n)})}var Zi=b("ZodRecord",(e,t)=>{xv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>nh(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Vh(e,t,r){return!t||!t._zod?new Zi({type:"record",keyType:Ts(),valueType:e,...C.normalizeParams(t)}):new Zi({type:"record",keyType:e,valueType:t,...C.normalizeParams(r)})}function _1(e,t,r){let o=Dt(e);return o._zod.values=void 0,new Zi({type:"record",keyType:o,valueType:t,...C.normalizeParams(r)})}function w1(e,t,r){return new Zi({type:"record",keyType:e,valueType:t,mode:"loose",...C.normalizeParams(r)})}var Jh=b("ZodMap",(e,t)=>{bv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ky(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Yn(...r)),e.nonempty=r=>e.check(Yn(1,r)),e.max=(...r)=>e.check(Xr(...r)),e.size=(...r)=>e.check(Ro(...r))});function $1(e,t,r){return new Jh({type:"map",keyType:e,valueType:t,...C.normalizeParams(r)})}var Gh=b("ZodSet",(e,t)=>{Sv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yy(e,r,o,n),e.min=(...r)=>e.check(Yn(...r)),e.nonempty=r=>e.check(Yn(1,r)),e.max=(...r)=>e.check(Xr(...r)),e.size=(...r)=>e.check(Ro(...r))});function P1(e,t){return new Gh({type:"set",valueType:e,...C.normalizeParams(t)})}var Hi=b("ZodEnum",(e,t)=>{kv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Uy(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 Hi({...t,checks:[],...C.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 Hi({...t,checks:[],...C.normalizeParams(n),entries:i})}});function md(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Hi({type:"enum",entries:r,...C.normalizeParams(t)})}function z1(e,t){return new Hi({type:"enum",entries:e,...C.normalizeParams(t)})}var Xh=b("ZodLiteral",(e,t)=>{_v.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>My(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 I1(e,t){return new Xh({type:"literal",values:Array.isArray(e)?e:[e],...C.normalizeParams(t)})}var Kh=b("ZodFile",(e,t)=>{wv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hy(e,r,o,n),e.min=(r,o)=>e.check(Yn(r,o)),e.max=(r,o)=>e.check(Xr(r,o)),e.mime=(r,o)=>e.check(Di(Array.isArray(r)?r:[r],o))});function R1(e){return Sy(Kh,e)}var Yh=b("ZodTransform",(e,t)=>{$v.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xy(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Br(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(C.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(C.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 gd(e){return new Yh({type:"transform",transform:e})}var vd=b("ZodOptional",(e,t)=>{ou.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Au(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function js(e){return new vd({type:"optional",innerType:e})}var qh=b("ZodExactOptional",(e,t)=>{Pv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Au(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Qh(e){return new qh({type:"optional",innerType:e})}var ex=b("ZodNullable",(e,t)=>{zv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Os(e){return new ex({type:"nullable",innerType:e})}function E1(e){return js(Os(e))}var tx=b("ZodDefault",(e,t)=>{Iv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ih(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nx(e,t){return new tx({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}var rx=b("ZodPrefault",(e,t)=>{Rv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ah(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ox(e,t){return new rx({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}var yd=b("ZodNonOptional",(e,t)=>{Ev.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>oh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ix(e,t){return new yd({type:"nonoptional",innerType:e,...C.normalizeParams(t)})}var ax=b("ZodSuccess",(e,t)=>{Tv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function T1(e){return new ax({type:"success",innerType:e})}var sx=b("ZodCatch",(e,t)=>{Cv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function lx(e,t){return new sx({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var cx=b("ZodNaN",(e,t)=>{jv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>By(e,r,o,n)});function C1(e){return xy(cx,e)}var Us=b("ZodPipe",(e,t)=>{iu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lh(e,r,o,n),e.in=t.in,e.out=t.out});function Ju(e,t){return new Us({type:"pipe",in:e,out:t})}var Ms=b("ZodCodec",(e,t)=>{Us.init(e,t),$s.init(e,t)});function j1(e,t,r){return new Ms({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function O1(e){let t=e._zod.def;return new Ms({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var ux=b("ZodPreprocess",(e,t)=>{Us.init(e,t),Ov.init(e,t)}),dx=b("ZodReadonly",(e,t)=>{Dv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ch(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function px(e){return new dx({type:"readonly",innerType:e})}var fx=b("ZodTemplateLiteral",(e,t)=>{Nv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zy(e,r,o,n)});function D1(e,t){return new fx({type:"template_literal",parts:e,...C.normalizeParams(t)})}var mx=b("ZodLazy",(e,t)=>{Fv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dh(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function gx(e){return new mx({type:"lazy",getter:e})}var vx=b("ZodPromise",(e,t)=>{Av.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>uh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function N1(e){return new vx({type:"promise",innerType:e})}var yx=b("ZodFunction",(e,t)=>{Lv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gy(e,r,o,n)});function L1(e){return new yx({type:"function",input:Array.isArray(e?.input)?Hh(e?.input):e?.input??As(Co()),output:e?.output??Co()})}var Bs=b("ZodCustom",(e,t)=>{Wv.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jy(e,r,o,n)});function A1(e){let t=new Oe({check:"custom"});return t._zod.check=e,t}function F1(e,t){return ky(Bs,e??(()=>!0),t)}function hx(e,t={}){return _y(Bs,e,t)}function xx(e,t){return wy(e,t)}var W1=$y,U1=Py;function M1(e,t={}){let r=new Bs({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...C.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 B1=(...e)=>zy({Codec:Ms,Boolean:Xi,String:Vi},...e);function Z1(e){let t=gx(()=>fd([Ts(e),Rh(),Eh(),Oh(),As(t),Vh(Ts(),t)]));return t}function H1(e,t){return new ux({type:"pipe",in:gd(e),out:t})}var TC={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 CC(e){Xe({customError:e})}function jC(){return Xe().customError}var bx;bx||(bx={});var V={...Es,...Uu,iso:Bi},OC=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 DC(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 NC(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 V1(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return V.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 V.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=NC(n,t),a=It(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 V.null();if(n.length===0)return V.never();if(n.length===1)return V.literal(n[0]);if(n.every(a=>typeof a=="string"))return V.enum(n);let i=n.map(a=>V.literal(a));return i.length<2?i[0]:V.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return V.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return V1(a,t)});return n.length===0?V.never():n.length===1?n[0]:V.union(n)}if(!r)return V.any();let o;switch(r){case"string":{let n=V.string();if(e.format){let i=e.format;i==="email"?n=n.check(V.email()):i==="uri"||i==="uri-reference"?n=n.check(V.url()):i==="uuid"||i==="guid"?n=n.check(V.uuid()):i==="date-time"?n=n.check(V.iso.datetime()):i==="date"?n=n.check(V.iso.date()):i==="time"?n=n.check(V.iso.time()):i==="duration"?n=n.check(V.iso.duration()):i==="ipv4"?n=n.check(V.ipv4()):i==="ipv6"?n=n.check(V.ipv6()):i==="mac"?n=n.check(V.mac()):i==="cidr"?n=n.check(V.cidrv4()):i==="cidr-v6"?n=n.check(V.cidrv6()):i==="base64"?n=n.check(V.base64()):i==="base64url"?n=n.check(V.base64url()):i==="e164"?n=n.check(V.e164()):i==="jwt"?n=n.check(V.jwt()):i==="emoji"?n=n.check(V.emoji()):i==="nanoid"?n=n.check(V.nanoid()):i==="cuid"?n=n.check(V.cuid()):i==="cuid2"?n=n.check(V.cuid2()):i==="ulid"?n=n.check(V.ulid()):i==="xid"?n=n.check(V.xid()):i==="ksuid"&&(n=n.check(V.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"?V.number().int():V.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=V.boolean();break}case"null":{o=V.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[l,c]of Object.entries(i)){let d=It(c,t);n[l]=a.has(l)?d:d.optional()}if(e.propertyNames){let l=It(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?It(e.additionalProperties,t):V.any();if(Object.keys(n).length===0){o=V.record(l,c);break}let d=V.object(n).passthrough(),p=V.looseRecord(l,c);o=V.intersection(d,p);break}if(e.patternProperties){let l=e.patternProperties,c=Object.keys(l),d=[];for(let f of c){let m=It(l[f],t),x=V.string().regex(new RegExp(f));d.push(V.looseRecord(x,m))}let p=[];if(Object.keys(n).length>0&&p.push(V.object(n).passthrough()),p.push(...d),p.length===0)o=V.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=V.intersection(p[0],p[1]);for(let m=2;m<p.length;m++)f=V.intersection(f,p[m]);o=f}break}let s=V.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(It(e.additionalProperties,t)):o=s.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(l=>It(l,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?It(i,t):void 0;s?o=V.tuple(a).rest(s):o=V.tuple(a),typeof e.minItems=="number"&&(o=o.check(V.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(V.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(l=>It(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?It(e.additionalItems,t):void 0;s?o=V.tuple(a).rest(s):o=V.tuple(a),typeof e.minItems=="number"&&(o=o.check(V.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(V.maxLength(e.maxItems)))}else if(i!==void 0){let a=It(i,t),s=V.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=V.array(V.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function It(e,t){if(typeof e=="boolean")return e?V.any():V.never();let r=V1(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>It(c,t)),l=V.union(s);r=o?V.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>It(c,t)),l=V.xor(s);r=o?V.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:V.any();else{let s=o?r:It(e.allOf[0],t),l=o?0:1;for(let c=l;c<e.allOf.length;c++)s=V.intersection(s,It(e.allOf[c],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=V.nullable(r)),e.readOnly===!0&&(r=V.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))OC.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function J1(e,t){if(typeof e=="boolean")return e?V.any():V.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=DC(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??ht};return It(r,i)}var Sx={};ir(Sx,{bigint:()=>WC,boolean:()=>FC,date:()=>UC,number:()=>AC,string:()=>LC});function LC(e){return Zv(Vi,e)}function AC(e){return qv(Gi,e)}function FC(e){return iy(Xi,e)}function WC(e){return sy(Ki,e)}function UC(e){return hy(Ls,e)}Xe(au());var hd=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:""}),xd=Object.freeze({status:"absent",series:[],startedAt:""});function MC(e){let t=e.split("/").pop()??e,r=t.lastIndexOf(".");if(r>0&&r<t.length-1)return t.slice(r+1).toLowerCase();let o=e.split("/").find(n=>n!=="");return o!==void 0&&o!==""?o.toLowerCase():"file"}function G1(e){let t=Object.entries(e.files).map(([o,n])=>({id:o,label:n.path,kind:MC(n.path)})),r=Object.entries(e.derived).map(([o,n])=>({from:o,to:n.from_nectar,kind:"derived_from"}));return{built:t.length>0,nodes:t,edges:r}}var Oo=u.object({id:u.string().catch(""),name:u.string().catch("")}),bd=u.object({pending:u.boolean().catch(!0),selected:u.boolean().catch(!1),authenticated:u.boolean().catch(!1),org:Oo.nullable().catch(null),workspace:Oo.nullable().catch(null),confirmedBy:u.enum(["selection","grandfathered"]).optional().catch(void 0)}),Yi=Object.freeze({pending:!0,selected:!1,authenticated:!1,org:null,workspace:null}),X1=u.object({orgs:u.array(Oo).catch([])}),Sd=Object.freeze({orgs:[]}),K1=u.object({org:u.string().catch(""),workspaces:u.array(Oo).catch([]),canCreate:u.boolean().catch(!1)}),Y1=Object.freeze({org:"",workspaces:[],canCreate:!1}),BC=u.object({selected:u.literal(!0),org:Oo,workspace:Oo,reminted:u.boolean().catch(!1)}),ZC=u.object({selected:u.literal(!1),error:u.string().catch("Selection could not be saved.")}),q1=u.union([BC,ZC]),HC=u.object({created:u.literal(!0),workspace:Oo}),VC=u.object({created:u.literal(!1),error:u.string().catch("Workspace could not be created.")}),Q1=u.union([HC,VC]);var X=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",hiveGraphSearch:"/api/hive-graph/search",hiveGraphStatus:"/api/hive-graph/status",hiveGraphProjection:"/api/hive-graph/projection",hiveGraphBuild:"/api/hive-graph/build",hiveGraphProjects:"/api/hive-graph/projects",hiveGraphBrooding:"/api/hive-graph/projects/brooding",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",setupTenancy:"/setup/tenancy",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"}),JC="x-honeycomb-project";function Do(e){return e!==void 0&&e!==""?{[JC]:e}:{}}function kx(e){return e!==void 0&&e!==""?`?project=${encodeURIComponent(e)}`:""}var GC=50,XC=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)}),u$=u.object({sessionId:u.string().catch(""),project:u.string().catch(""),startedAt:u.string().catch(""),eventCount:u.number().catch(0),status:u.string().catch("captured")}),KC=u.object({sessions:u.array(u$).catch([])}),YC=u.object({orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),settings:u.record(u.string(),u.string()).catch({})}),qC=u.object({id:u.string().catch(""),label:u.string().catch(""),kind:u.string().catch("")}),QC=u.object({from:u.string().catch(""),to:u.string().catch(""),kind:u.string().catch("")}),e4=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)}),e$=u.object({built:u.boolean().catch(!1),nodes:u.array(qC).catch([]),edges:u.array(QC).catch([]),meta:e4.optional().catch(void 0)}),t4=u.object({id:u.string().catch(""),title:u.string().catch(""),active:u.boolean().catch(!1)}),n4=u.object({rules:u.array(t4).catch([])}),r4=u.object({name:u.string().catch(""),scope:u.string().catch(""),syncState:u.string().catch("pending")}),o4=u.object({skills:u.array(r4).catch([])}),Qn=u.number().int().catch(0),wx=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("absent"),d$=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("unreachable"),$x=u.enum(["measured","allocated","none"]).catch("none"),i4=u.object({kind:u.string().catch(""),assumptionText:u.string().catch(""),signedOff:u.boolean().catch(!1)}),a4=u.object({status:wx,measuredCents:Qn,modeledCents:Qn,assumption:i4.catch({kind:"",assumptionText:"",signedOff:!1}),blendedCentsPerMtok:u.number().int().nullable().catch(null)}),s4=u.object({status:d$,cents:Qn,costBasis:$x}),l4=u.object({label:u.string().catch(""),cents:Qn}),c4=u.object({status:d$,cents:Qn,lines:u.array(l4).catch([])}),u4=u.object({status:wx,computed:u.boolean().catch(!1),netCents:Qn,modeled:u.boolean().catch(!0),costBasis:$x}),d4=u.object({key:u.string().catch(""),label:u.string().catch(""),measuredSavingsCents:Qn,netCents:Qn,infraCostCents:Qn,costBasis:$x,sessions:u.number().int().catch(0)}),p4=u.object({dimension:u.enum(["org","team","agent","project"]).catch("org"),rows:u.array(d4).catch([]),mixedBasis:u.boolean().catch(!1)}),f4=u.object({savings:a4.catch({status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null}),infra:s4.catch({status:"unreachable",cents:0,costBasis:"none"}),pollination:c4.catch({status:"unreachable",cents:0,lines:[]}),net:u4.catch({status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"}),rollups:u.array(p4).catch([]),perUserAvailable:u.boolean().catch(!1),scopedAcrossDevices:u.boolean().catch(!1),ratesAsOf:u.string().catch("")}),m4=u.object({period:u.string().catch(""),cents:Qn}),g4=u.object({label:u.string().catch(""),modeled:u.boolean().catch(!1),points:u.array(m4).catch([])}),v4=u.object({status:wx,series:u.array(g4).catch([]),startedAt:u.string().catch("")}),t$=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)}),y4=u.object({skills:u.array(t$).catch([]),agents:u.array(t$).catch([])}),h4=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)}),kd=Object.freeze({skills:[],agents:[]}),x4=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)}),b4=u.object({hits:u.array(x4).catch([]),sources:u.array(u.string()).catch([]),degraded:u.boolean().catch(!0)}),p$=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)}),S4=u.object({memories:u.array(p$).catch([])}),k4=u.object({memory:p$}),_4=u.object({id:u.string().nullable().catch(null),action:u.string().catch("")}),n$=u.object({id:u.string().nullable().catch(null),action:u.string().catch(""),audited:u.boolean().catch(!1)}),w4=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)}),$4=u.object({ok:u.boolean().catch(!1),summaries:u.array(w4).catch([]),skippedTables:u.array(u.string()).catch([])}),P4=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)}),z4=u.object({conflicts:u.array(P4).catch([]),status:u.string().catch("open")}),I4=u.object({memoryId:u.string().catch(""),refStatus:u.string().catch("stale"),staleRefs:u.array(u.string()).catch([]),verifiedAt:u.string().nullable().catch(null)}),R4=u.object({staleRefs:u.array(I4).catch([])}),E4=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("")}),T4=u.object({history:u.array(E4).catch([]),type:u.string().catch("lifecycle")}),C4=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)}),j4=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(C4).catch([])}),_d=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),Px=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()}),O4=u.object({records:u.array(Px).catch([]),count:u.number().catch(0)}),D4=u.object({records:u.array(Px).catch([]),count:u.number().catch(0),nextCursor:u.string().nullable().catch(null),persistent:u.boolean().catch(!1)}),N4=u.object({sessions:u.array(u$).catch([]),nextCursor:u.string().nullable().catch(null)}),L4=u.object({kind:u.string().catch(""),binary:u.string().catch(""),fallbackBin:u.string().optional()}),A4=u.object({bin:u.string().catch(""),args:u.array(u.string()).catch([]),fallbackBin:u.string().optional()}),F4=u.object({name:u.string().catch(""),runtimePath:u.string().catch(""),contextChannel:u.string().catch(""),hostCli:A4.catch({bin:"",args:[]}),lifecycleEvents:u.array(u.string()).catch([]),agents:L4.optional(),workspaceRoots:u.boolean().optional(),mcpRegistration:u.boolean().optional(),contractedTools:u.boolean().optional(),agentsMdContext:u.boolean().optional(),userVisibleLogin:u.boolean().optional()}),W4=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:F4.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),U4=u.object({harnesses:u.array(W4).catch([])}),M4=u.object({triggered:u.boolean().catch(!1),status:u.string().catch("skipped"),reason:u.string().optional()}),B4=u.object({built:u.boolean().catch(!1),nodeCount:u.number().catch(0),edgeCount:u.number().catch(0),fileCount:u.number().catch(0)}),_x=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),Z4=u.object({source:u.literal("nectar").catch("nectar"),id:u.string().catch(""),path:u.string().catch(""),title:u.string().catch(""),body:u.string().catch(""),concepts:u.string().catch(""),content_hash:u.string().catch("")}),H4=u.object({hits:u.array(Z4).catch([]),sources:u.array(u.literal("nectar")).catch([]),degraded:u.boolean().catch(!0)}),V4=u.object({pending:u.number().catch(0),described:u.number().catch(0),failed:u.number().catch(0),"skipped-too-large":u.number().catch(0),"skipped-binary":u.number().catch(0),"skipped-deleted":u.number().catch(0)}),J4=u.object({queueDepth:u.number().catch(0),describeStatus:V4.catch({pending:0,described:0,failed:0,"skipped-too-large":0,"skipped-binary":0,"skipped-deleted":0}),costSpentUsd:u.number().catch(0),degraded:u.boolean().catch(!0)}),Qi=Object.freeze({queueDepth:0,describeStatus:{pending:0,described:0,failed:0,"skipped-too-large":0,"skipped-binary":0,"skipped-deleted":0},costSpentUsd:0,degraded:!0}),G4=u.object({content_hash:u.string().catch(""),path:u.string().catch(""),title:u.string().catch(""),description:u.string().catch(""),concepts:u.array(u.string()).catch([]),describe_model:u.string().catch(""),described_at:u.string().catch("")}),X4=u.object({from_nectar:u.string().catch(""),fork_content_hash:u.string().catch("")}),K4=u.object({version:u.number().catch(0),generated_at:u.string().catch(""),generator:u.string().catch(""),project:u.object({org_id:u.string().catch(""),workspace_id:u.string().catch(""),project_id:u.string().catch("")}).catch({org_id:"",workspace_id:"",project_id:""}),files:u.record(u.string(),G4).catch({}),derived:u.record(u.string(),X4).catch({})}),r$=Object.freeze({state:"failed",message:"Build failed"}),Y4=u.enum(["active","paused","global-paused"]),q4=u.object({described:u.number().catch(0),pending:u.number().catch(0)}).catch({described:0,pending:0}),Q4=u.object({projectId:u.string().catch(""),name:u.string().catch(""),path:u.string().catch(""),brooding:Y4.catch("active"),watcher:u.string().catch(""),counts:q4}),o$=u.object({globalBrooding:u.enum(["on","paused"]).catch("on"),projects:u.array(Q4).catch([]),tenancyOrgName:u.string().optional(),tenancyWorkspaceName:u.string().optional(),tenancyOrgId:u.string().optional(),tenancyWorkspaceId:u.string().optional()}),f$=Object.freeze({globalBrooding:"on",projects:[],unreachable:!1}),qi=Object.freeze({globalBrooding:"on",projects:[],unreachable:!0}),No=Object.freeze({...Yi,unreachable:!0}),i$=12e4,ej=u.object({ok:u.boolean().catch(!1)}),tj=u.object({ok:u.boolean(),enabled:u.boolean()}),nj=u.object({ok:u.boolean().catch(!1),restarting:u.boolean().catch(!1)}),rj=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("")}),oj=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")}),ij=u.object({status:u.string().catch("ok"),reasons:oj.optional()}),aj=u.object({id:u.string().catch(""),label:u.string().catch(""),models:u.array(u.string()).catch([]),openEnded:u.boolean().catch(!1)}),sj=u.union([u.string(),u.number(),u.boolean()]).catch(""),lj=u.object({settings:u.record(u.string(),sj).catch({}),catalog:u.array(aj).catch([])}),cj=u.object({names:u.array(u.string()).catch([])}),Zs=Object.freeze({settings:{},catalog:[]}),uj=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()}),zx=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),dj=u.object({deeplake:u.boolean().catch(!1),honeycomb:u.boolean().catch(!1),hivemind:u.boolean().catch(!1)}),pj=u.object({enabled:u.boolean().catch(!1),live:u.boolean().catch(!1),warm:u.boolean().catch(!1)}),fj=u.object({credentials:dj.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:pj.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()}),Hs=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}}),mj=u.object({user_code:u.string().catch(""),verification_uri:u.string().catch(""),verification_uri_complete:u.string().optional()}),gj=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()}),vj=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),yj=u.object({ok:u.boolean().catch(!1),phase:u.literal("rolled_back").catch("rolled_back"),message:u.string().catch("")}),hj=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),xj=u.object({id:u.string().catch(""),name:u.string().catch("")}),bj=u.object({orgs:u.array(xj).catch([])}),Sj=u.object({id:u.string().catch(""),name:u.string().catch("")}),kj=u.object({workspaces:u.array(Sj).catch([]),org:u.string().catch(""),reminted:u.boolean().catch(!1)}),_j=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)}),wj=u.object({projects:u.array(_j).catch([]),org:u.string().catch(""),workspace:u.string().catch("")}),$j=u.object({name:u.string().catch(""),path:u.string().catch(""),isGitRepo:u.boolean().catch(!1)}),Pj=u.object({path:u.string().catch(""),root:u.string().catch(""),parent:u.string().nullable().catch(null),children:u.array($j).catch([]),error:u.string().optional()}),Ix=Object.freeze({path:"",root:"",parent:null,children:[]}),a$=u.object({bound:u.boolean().catch(!1),path:u.string().catch(""),projectId:u.string().catch(""),error:u.string().optional()}),s$=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),zj=u.object({unbound:u.boolean().catch(!1),path:u.string().catch("")}),Ij=Object.freeze({unbound:!1,path:""}),Rj=u.object({switched:u.boolean().catch(!1),org:u.string().catch(""),orgName:u.string().optional(),reminted:u.boolean().catch(!1),error:u.string().optional()}),Ej=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),Tj=u.object({switched:u.boolean().catch(!1),workspace:u.string().catch(""),error:u.string().optional()}),Cj=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),Ft=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function je(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...Ft,...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 xt(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},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 jj(e){return e==="memories"?"team":e==="memory"?"org":"session"}var l$=280;function Oj(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 Dj(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=s=>typeof s=="string"?s.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 s=Oj(r.input??r.tool_input),l=i!==""?i:"tool";return s!==""?`${l} \xB7 ${s}`:l}return a!==""?a:null}function Nj(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=Dj(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=l$?o:`${o.slice(0,l$-1).trimEnd()}\u2026`}var Rx={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},Ex={orgId:"",orgName:"",workspace:"",settings:{}},jn={built:!1,nodes:[],edges:[]},Lo=1500,c$=5e3;function Vs(e,t){let r=e.nodes.length>t,o=e.edges.length>c$;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(s=>s.id)),a=[];for(let s of e.edges)if(!(!i.has(s.from)||!i.has(s.to))&&(a.push(s),a.length>=c$))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var Tx=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),Lj=Object.freeze({sessions:[],nextCursor:null});function Aj(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 Qr(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(n){return await je(r,o(X.kpis),XC,Do(n))??Rx},async sessions(){return(await je(r,o(X.sessions),KC))?.sessions??[]},async settings(){return await je(r,o(X.settings),YC)??Ex},async rules(){return(await je(r,o(X.rules),n4))?.rules??[]},async skills(){return(await je(r,o(X.skills),o4))?.skills??[]},async graph(n){return await je(r,o(X.graph),e$,Do(n))??jn},async memoryGraph(n){return await je(r,o(X.memoryGraph),e$,Do(n))??jn},async roi(n){return await je(r,o(X.roi),f4,Do(n))??hd},async roiTrend(n,i){let a=n!==""?`?range=${encodeURIComponent(n)}`:"";return await je(r,o(`${X.roiTrend}${a}`),v4,Do(i))??xd},async recall(n,i){try{let a=await r(o(X.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft,...Do(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let s=b4.safeParse(await a.json());return s.success?{memories:s.data.hits.map((c,d)=>({memoryKey:c.id!==""?c.id:`hit-${d+1}`,snippet:Nj(c.text,c.kind),source:c.source,score:c.score,scope:jj(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:s.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=GC,i){return(await je(r,o(`${X.memories}?limit=${n}`),S4,Do(i)))?.memories??[]},async getMemory(n){return(await je(r,o(`${X.memories}/${encodeURIComponent(n)}`),k4))?.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),xt(r,o(X.memories),i,_4)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),xt(r,o(`${X.memories}/${encodeURIComponent(n)}/modify`),a,n$)},async forgetMemory(n,i){return xt(r,o(`${X.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},n$)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return xt(r,o(X.compact),i,$4)},async lifecycleConflicts(n="open"){return(await je(r,o(`${X.lifecycleConflicts}?status=${encodeURIComponent(n)}`),z4))?.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(`${X.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await je(r,o(X.lifecycleStaleRefs),R4))?.staleRefs??[]},async lifecycleHistory(){return(await je(r,o(`${X.lifecycleHistory}?type=lifecycle`),T4))?.history??[]},async calibration(){return await je(r,o(X.calibration),j4)??_d},async logs(n=40){return(await je(r,o(`${X.logs}?limit=${n}`),O4))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a=null,s=l=>{let c=Fj(l.data);c!==null&&n(c)};try{a=new i(o(X.logsStream)),a.addEventListener("log",s)}catch{}return()=>{try{a?.removeEventListener("log",s),a?.close()}catch{}}},async logsHistory(n={}){let i=Aj(n);return await je(r,o(`${X.logs}/history${i}`),D4)??Tx},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 je(r,o(`${X.sessions}${a}`),N4)??Lj},async harnesses(){return(await je(r,o(X.harnesses),U4))?.harnesses??[]},async assetsView(){return await je(r,o(X.assets),y4)??kd},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),xt(r,o(`${X.syncAction}/${n}`),a,h4)},async health(){try{let n=await r(o(X.health),{headers:{accept:"application/json",...Ft}}),i=n.ok,a=null;try{let s=await n.json(),l=ij.safeParse(s);a=l.success?l.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(X.pollinate),{method:"POST",headers:{...Ft}}),i=M4.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(),i$);try{let a=await r(o(X.graphBuild),{method:"POST",headers:{accept:"application/json",...Ft},signal:n.signal});if(!a.ok)return _x;let s=B4.safeParse(await a.json());return s.success?s.data:_x}catch{return _x}finally{clearTimeout(i)}},async hiveGraphFileGraph(n){try{let i=kx(n),a=await r(o(`${X.hiveGraphProjection}${i}`),{headers:{accept:"application/json",...Ft}});if(!a.ok)return{graph:jn,files:{},derived:{},unreachable:!0};let s=K4.safeParse(await a.json());return s.success?{graph:G1(s.data),files:s.data.files,derived:s.data.derived,unreachable:!1}:{graph:jn,files:{},derived:{},unreachable:!0}}catch{return{graph:jn,files:{},derived:{},unreachable:!0}}},async hiveGraphSearch(n,i){try{let a=kx(i),s=await r(o(`${X.hiveGraphSearch}${a}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify({query:n})});if(!s.ok)return{hits:[],sources:[],degraded:!0,unreachable:!0};let l=H4.safeParse(await s.json());return l.success?{...l.data,unreachable:!1}:{hits:[],sources:[],degraded:!0,unreachable:!0}}catch{return{hits:[],sources:[],degraded:!0,unreachable:!0}}},async hiveGraphStatus(n){try{let i=kx(n),a=await r(o(`${X.hiveGraphStatus}${i}`),{headers:{accept:"application/json",...Ft}});if(!a.ok)return{...Qi,unreachable:!0};let s=J4.safeParse(await a.json());return s.success?{...s.data,unreachable:!1}:{...Qi,unreachable:!0}}catch{return{...Qi,unreachable:!0}}},async hiveGraphBuild(){let n=new AbortController,i=setTimeout(()=>n.abort(),i$);try{let a=await r(o(X.hiveGraphBuild),{method:"POST",headers:{accept:"application/json","content-type":"application/json",...Ft},body:JSON.stringify({}),signal:n.signal}),s=await a.json().catch(()=>({})),l=typeof s=="object"&&s!==null?s:{};return a.status===501&&l.error==="build_unavailable"?{state:"unavailable",message:typeof l.reason=="string"?l.reason:"Build unavailable on this daemon"}:a.status===409&&l.status==="already_running"?{state:"already_running",message:typeof l.message=="string"?l.message:"A brood is already in progress"}:a.ok?{state:"accepted",message:"Build triggered"}:l.error==="build_failed"?{state:"failed",message:typeof l.reason=="string"?l.reason:"Build failed"}:r$}catch{return r$}finally{clearTimeout(i)}},async nectarProjects(){try{let n=await r(o(X.hiveGraphProjects),{headers:{accept:"application/json",...Ft}});if(!n.ok)return qi;let i=o$.safeParse(await n.json());return i.success?{...i.data,unreachable:!1}:qi}catch{return qi}},async setNectarBrooding(n){try{let i=await r(o(X.hiveGraphBrooding),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify(n)});if(!i.ok)return qi;let a=o$.safeParse(await i.json());return a.success?{...a.data,unreachable:!1}:qi}catch{return qi}},async vaultSettings(){return await je(r,o(X.vaultSettings),lj)??Zs},async setSetting(n,i){try{return(await r(o(`${X.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await je(r,o(X.secrets),cj))?.names??[]},async setSecret(n,i){try{return(await r(o(`${X.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Ft},body:JSON.stringify({value:i})})).ok}catch{return!1}},async logout(){return(await xt(r,o(X.actionsLogout),{},ej))?.ok===!0},async setEmbeddings(n){let i=await xt(r,o(X.actionsEmbeddings),{enabled:n},tj);return i?.ok===!0&&i.enabled===n},async restartDaemon(){return(await xt(r,o(X.actionsRestart),{},nj))?.restarting===!0},async uninstall(){return xt(r,o(X.actionsUninstall),{},rj)},async authStatus(){return await je(r,o(X.authStatus),uj)??zx},async setupState(){return await je(r,o(X.setupState),fj)??Hs},async setupLogin(){return xt(r,o(X.setupLogin),{},mj)},async setupTenancy(){try{let n=await r(o(X.setupTenancy),{headers:{accept:"application/json"}});if(!n.ok)return No;let i=bd.safeParse(await n.json());return i.success?{...i.data,unreachable:!1}:No}catch{return No}},async migrateFromHivemind(){return await xt(r,o(X.setupMigrate),{},gj)??vj},async rollbackMigration(){return await xt(r,o(X.setupMigrateRollback),{},yj)??hj},async scopeOrgs(){return(await je(r,o(X.scopeOrgs),bj))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await je(r,o(`${X.scopeWorkspaces}${i}`),kj)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await je(r,o(`${X.scopeProjects}${i}`),wj))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await je(r,o(`${X.fsBrowse}${i}`),Pj)??Ix},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await xt(r,o(X.projectsBind),i,a$)??s$},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await xt(r,o(X.projectsBindExisting),i,a$)??s$},async unbindProject(n){return await xt(r,o(X.projectsUnbind),{path:n.path},zj)??Ij},async switchOrg(n){return await xt(r,o(X.scopeOrgSwitch),{org:n},Rj)??Ej},async switchWorkspace(n){return await xt(r,o(X.scopeWorkspaceSwitch),{workspace:n},Tj)??Cj}}}function Fj(e){if(typeof e!="string")return null;try{let t=Px.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function eo(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 m$="/api/diagnostics/sync/";function wd(e){return(e.path??"").startsWith(m$)}function g$(e){let t=(e.path??"").slice(m$.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 Ke=P(me(),1),lt=P(J(),1),Ox=Object.freeze({org:"local",workspace:"default"}),x$="honeycomb.dashboard.scope",b$=Ke.default.createContext({scope:Ox,setScope:()=>{}});function Wt(){return Ke.default.useContext(b$)}var Vj=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),S$=Ke.default.createContext(Vj);function Js(){return Ke.default.useContext(S$)}function Jj(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(x$);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 Gj(e){try{if(typeof localStorage>"u")return;localStorage.setItem(x$,JSON.stringify(e))}catch{}}function k$({wire:e,children:t}){let r=Ke.default.useMemo(()=>Jj(),[]),[o,n]=Ke.default.useState(r??Ox),[i,a]=Ke.default.useState([]),[s,l]=Ke.default.useState([]),[c,d]=Ke.default.useState([]),[p,f]=Ke.default.useState(!1),[m,x]=Ke.default.useState(!1),[h,_]=Ke.default.useState(null),v=Ke.default.useCallback(Z=>{n(Z),Gj(Z)},[]),g=Ke.default.useCallback(Z=>v(Z),[v]),y=Ke.default.useCallback(async()=>{let Z=await e.scopeProjects();d(Z),f(!0)},[e]);Ke.default.useEffect(()=>{let Z=!0;return(async()=>{let j=await e.scopeOrgs();Z&&a(j)})(),(async()=>{let j=await e.scopeWorkspaces();Z&&l(j.workspaces)})(),y(),()=>{Z=!1}},[e,y]);let S=Ke.default.useCallback(Z=>{x(!0),_({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let j=await e.switchOrg(Z);if(!j.switched){_({kind:"error",message:j.error!==void 0&&j.error!==""?`could not switch: ${j.error}`:"could not switch org"});return}v({org:j.org,workspace:Ox.workspace,project:void 0});let we=await e.scopeWorkspaces(j.org);l(we.workspaces),d([]),f(!0),_({kind:"persisted",message:j.reminted?`switched to ${j.orgName??j.org} \xB7 re-minted`:`switched to ${j.orgName??j.org}`})}finally{x(!1)}})()},[e,v]),w=Ke.default.useCallback(Z=>{_({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let j=await e.switchWorkspace(Z);if(!j.switched){_({kind:"error",message:j.error!==void 0&&j.error!==""?`could not switch: ${j.error}`:"could not switch workspace"});return}v({org:o.org,workspace:j.workspace,project:void 0}),await y(),_({kind:"persisted",message:`switched to ${j.workspace}`})})()},[e,v,o.org,y]),E=Ke.default.useCallback(Z=>{v({org:o.org,workspace:o.workspace,...Z!==void 0?{project:Z}:{}}),_({kind:"view",message:Z!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),L=Ke.default.useMemo(()=>({scope:o,setScope:g}),[o,g]),H=Ke.default.useMemo(()=>({orgs:i,workspaces:s,projects:c,projectsHydrated:p,loadingWorkspaces:m,switchFeedback:h,selectOrg:S,selectWorkspace:w,selectProject:E}),[i,s,c,p,m,h,S,w,E]);return(0,lt.jsx)(b$.Provider,{value:L,children:(0,lt.jsx)(S$.Provider,{value:H,children:t})})}var Xj={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 Cx({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,lt.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,lt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,lt.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...Xj,opacity:o?.6:1},children:i})]})}var Kj="__unsorted__",jx="";function _$({collapsed:e}){let{scope:t}=Wt(),r=Js();return e?null:(0,lt.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,lt.jsxs)(Cx,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,lt.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,lt.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,lt.jsxs)(Cx,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,lt.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,lt.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,lt.jsxs)(Cx,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??jx,onChange:o=>r.selectProject(o===jx?void 0:o),children:[(0,lt.jsx)("option",{value:jx,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,lt.jsx)("option",{value:o.projectId,children:o.projectId===Kj?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,lt.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,lt.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 P$=P(J(),1);function Pd(e){if(e.unreachable)return{kind:"unavailable"};if(!e.authenticated)return{kind:"not-linked"};if(!e.selected)return{kind:"not-selected"};let t=e.org?.name!==""&&e.org?.name!==void 0?e.org.name:e.org?.id??"",r=e.workspace?.name!==""&&e.workspace?.name!==void 0?e.workspace.name:e.workspace?.id??"";return t===""||r===""?{kind:"unavailable"}:e.confirmedBy!==void 0?{kind:"ok",org:t,workspace:r,confirmedBy:e.confirmedBy}:{kind:"ok",org:t,workspace:r}}function Yj(e){switch(e.kind){case"ok":return e.confirmedBy==="grandfathered"?`${e.org} \xB7 ${e.workspace} (grandfathered)`:`${e.org} \xB7 ${e.workspace}`;case"unavailable":return"tenancy unavailable";case"not-linked":return"not linked";case"not-selected":return"tenancy not selected";default:return e}}function w$({wire:e,refreshKey:t=0}){let{switchFeedback:r}=Js(),[o,n]=Gs.default.useState(No),i=Gs.default.useCallback(async()=>{n(await e.setupTenancy())},[e]);Gs.default.useEffect(()=>{i()},[i,t]),Gs.default.useEffect(()=>{r?.kind==="persisted"&&r.pending!==!0&&i()},[r,i]);let a=Pd(o),s=Yj(a);return(0,P$.jsx)("span",{"data-testid":"active-tenancy-display","data-tenancy-state":a.kind,style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:a.kind==="ok"?"var(--text-secondary)":"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:s})}function $$(e,t){return e?.org!==void 0&&e.org!==""&&e.workspace!==void 0&&e.workspace!==""?`${e.org} \xB7 ${e.workspace}`:t.kind==="ok"?`${t.org} \xB7 ${t.workspace} (fleet credential)`:t.kind==="unavailable"?"tenancy unknown":t.kind==="not-linked"?"not linked":t.kind==="not-selected"?"tenancy not selected":"tenancy unknown"}var z$=P(me(),1),ze=P(J(),1);function I({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:s="button",style:l,...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)"}},m=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",...m,...l},h={primary:"var(--honey-hover)",secondary:"var(--bg-subtle)",ghost:"var(--bg-elevated)",pollinate:"var(--pollinate-hover)",danger:"var(--severity-critical-bg)"};return(0,ze.jsxs)("button",{type:s,disabled:o,onClick:a,style:x,onMouseEnter:S=>{o||(S.currentTarget.style.background=h[t]??h.primary)},onMouseLeave:S=>{o||(S.currentTarget.style.background=String(m.background))},onMouseDown:S=>{o||(S.currentTarget.style.transform="translateY(1px)")},onMouseUp:S=>{o||(S.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function K({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,ze.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,ze.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:a.fg,flex:"none"}}),e]})}function On({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:s,type:l="text",style:c,...d}){let[p,f]=z$.default.useState(!1),x={sm:32,md:40,lg:48}[i]??40;return(0,ze.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:[s&&(0,ze.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:s}),(0,ze.jsx)("input",{type:l,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 hn({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)"},s=a[n]??a.honey,l=typeof o=="number"?o>=0:null;return(0,ze.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,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,ze.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:s,letterSpacing:"-0.01em"},children:t}),r&&(0,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--text-tertiary)"},children:r})]}),o!=null&&(0,ze.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:l?"var(--verified)":"var(--severity-critical)"},children:[l?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function zd({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:s,secondary:l=!1,style:c}){let d=a?"var(--pollinate)":i?"var(--verified)":"var(--honey)";return(0,ze.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:l?.72:1,...c},children:[(0,ze.jsx)("div",{style:{flex:"none",paddingTop:2},children:(0,ze.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,ze.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:7},children:[(0,ze.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ze.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,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)",flex:"none"},children:"\u2713 verified"}),(l||s==="session")&&!a&&(0,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",flex:"none"},children:"session"}),a&&(0,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--pollinate)",flex:"none"},children:"pollinating\u2026"})]}),(0,ze.jsx)("div",{style:{fontSize:"var(--text-sm)",lineHeight:"20px",color:"var(--text-primary)"},children:t}),(0,ze.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:1},children:[r&&(0,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:220},children:r}),(0,ze.jsx)("span",{style:{flex:1}}),(0,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:n}),typeof o=="number"&&(0,ze.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,color:"var(--text-secondary)"},children:o.toFixed(2)})]})]}),(0,ze.jsx)("style",{children:"@keyframes hc-pollinate-pulse { from { opacity: .5 } to { opacity: 1 } }"})]})}var er=P(me(),1);var qj=P(me(),1);var I$=P(J(),1);function Qj(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),s=Math.max(1,t.height-56),l=n>1?a/(n-1):0,c=i>1?s/(i-1):0;for(let d=0;d<o;d++){let p=e[d];if(p===void 0)continue;let f=d%n,m=Math.floor(d/n);r.set(p.id,{x:n>1?28+f*l:t.width/2,y:i>1?28+m*c:t.height/2})}return r}function ea(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 Qj(e,r);let s=Math.max(0,Math.min(i,a)-28),l=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)/l;o.set(d.id,{x:i+s*Math.cos(p),y:a+s*Math.sin(p)})}return o}function R$(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],s=[];for(let l of t){if(l.from===e&&l.to!==e){let c=`${l.kind}\0${l.to}`;n.has(c)||(n.add(c),r.has(l.kind)||(r.set(l.kind,[]),a.push(l.kind)),r.get(l.kind)?.push(l.to))}if(l.to===e&&l.from!==e){let c=`${l.kind}\0${l.from}`;i.has(c)||(i.add(c),o.has(l.kind)||(o.set(l.kind,[]),s.push(l.kind)),o.get(l.kind)?.push(l.from))}}return{outgoing:a.map(l=>({kind:l,ids:r.get(l)??[]})),incoming:s.map(l=>({kind:l,ids:o.get(l)??[]}))}}var F=P(J(),1);function re({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,F.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,F.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,F.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,F.jsx)("span",{style:{flex:1}}),r]}),(0,F.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function Nx({children:e}){return(0,F.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var Ks={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},Ys="var(--text-tertiary)",Xs=5;function E$({label:e,onClick:t,disabled:r}){return(0,F.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 C$({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/Xs)),[o,n]=er.default.useState(0),i=Math.min(o,r-1),a=i*Xs,s=e.slice(a,a+Xs),l=t===0?0:a+1,c=Math.min(a+Xs,t),d=t>Xs?(0,F.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,F.jsx)(E$,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,F.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[l,"\u2013",c," of ",t]}),(0,F.jsx)(E$,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,F.jsx)(re,{title:"Turns",eyebrow:`${t} captured`,right:d,children:t===0?(0,F.jsx)(Nx,{children:"No turns captured yet."}):(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:s.map((p,f)=>(0,F.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,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,F.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,F.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,F.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,F.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,F.jsx)(K,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function j$({rules:e}){return(0,F.jsx)(re,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,F.jsx)(Nx,{children:"No rules defined."}):(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,F.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,F.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var Lx={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function O$({skills:e}){return(0,F.jsx)(re,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,F.jsx)(Nx,{children:"No skills synced."}):(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,F.jsx)(K,{tone:Lx[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var Id={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},Rd="var(--text-tertiary)";function to({lines:e}){return(0,F.jsx)(re,{title:"Live log",right:(0,F.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,F.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,F.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,F.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var tt=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode",portkeyEnabled:"portkey.enabled",portkeyConfig:"portkey.config",portkeyFallbackToProvider:"portkey.fallbackToProvider"}),na=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY",portkey:"PORTKEY_API_KEY"});function T$({value:e,onChange:t,options:r,ariaLabel:o}){return(0,F.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,F.jsx)("option",{value:n.value,children:n.label},n.value))})}function Dx({on:e,onToggle:t,ariaLabel:r}){return(0,F.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,F.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function ta({label:e,hint:t,children:r}){return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,F.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,F.jsx)("span",{style:{flex:1}}),r]})}function Ed({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[tt.activeProvider]??""),i=String(t[tt.activeModel]??""),a=t[tt.pollinatingEnabled]===!0||t[tt.pollinatingEnabled]==="true",s=e.find(h=>h.id===n),[l,c]=er.default.useState(i);er.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"},...(s?.models??[]).map(h=>({value:h,label:h}))],f=h=>{o(tt.activeProvider,h)},m=h=>{h.length!==0&&o(tt.activeModel,h)},x=()=>{let h=l.trim();h.length>0&&h!==i&&o(tt.activeModel,h)};return(0,F.jsx)(re,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,F.jsxs)(ta,{label:"Provider",hint:"inference provider",children:[(0,F.jsx)(T$,{ariaLabel:"provider",value:n,onChange:f,options:d}),n.length>0&&(0,F.jsx)(tO,{provider:n,secretNames:r})]}),(0,F.jsx)(ta,{label:"Model",hint:s?.openEnded?"free-form id":"from catalog",children:s===void 0?(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):s.openEnded?(0,F.jsx)("input",{"aria-label":"model",type:"text",value:l,placeholder:"vendor/model",onChange:h=>c(h.target.value),onBlur:x,onKeyDown:h=>{h.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,F.jsx)(T$,{ariaLabel:"model",value:i,onChange:m,options:p})}),(0,F.jsx)(ta,{label:"Pollinating",hint:"background consolidation",children:(0,F.jsx)(Dx,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(tt.pollinatingEnabled,!a)}})})]})})}function tO({provider:e,secretNames:t}){let r=na[e],o=r!==void 0&&t.includes(r);return(0,F.jsx)(K,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function D$({settings:e,secretNames:t,onSaveSetting:r,onSaveKey:o}){let n=e[tt.portkeyEnabled]===!0||e[tt.portkeyEnabled]==="true",i=String(e[tt.portkeyConfig]??""),a=e[tt.portkeyFallbackToProvider]===!0||e[tt.portkeyFallbackToProvider]==="true",[s,l]=er.default.useState(i);er.default.useEffect(()=>l(i),[i]);let[c,d]=er.default.useState(""),[p,f]=er.default.useState(!1),[m,x]=er.default.useState(!1),h=()=>{let y=s.trim();y!==i&&r(tt.portkeyConfig,y)},_=er.default.useCallback(async()=>{let y=c;if(y.length===0){x(!0);return}f(!0),x(!1);let S=await o(y);f(!1),S?d(""):x(!0)},[c,o]),v=na.portkey??"PORTKEY_API_KEY",g=t.includes(v);return(0,F.jsx)(re,{title:"Portkey gateway",eyebrow:"portkey.enabled \xB7 config \xB7 API key \xB7 fallback",children:(0,F.jsxs)("div",{"data-testid":"portkey-gateway-section",style:{display:"flex",flexDirection:"column",gap:2},children:[(0,F.jsx)(ta,{label:"Use Portkey gateway",hint:"routes all inference through Portkey",children:(0,F.jsx)(Dx,{ariaLabel:"portkey enabled",on:n,onToggle:()=>{r(tt.portkeyEnabled,!n)}})}),(0,F.jsx)(ta,{label:"Portkey config",hint:"config id or virtual key from your Portkey dashboard",children:(0,F.jsx)("input",{"aria-label":"portkey config","data-testid":"portkey-config-input",type:"text",value:s,placeholder:"pk-\u2026",onChange:y=>l(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,F.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,F.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:"Portkey API key"}),(0,F.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,F.jsx)("input",{"aria-label":"portkey api key","data-testid":"portkey-key-input",type:"password",value:c,placeholder:g?"replace key\u2026":"paste key\u2026",onChange:y=>{d(y.target.value),m&&x(!1)},onKeyDown:y=>{y.key==="Enter"&&_()},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,F.jsx)("button",{type:"button",disabled:p,"data-testid":"portkey-key-save",onClick:()=>{_()},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,F.jsx)(K,{tone:g?"verified":"neutral",mono:!0,dot:!0,children:g?"key set \u2713":"not set"}),m&&(0,F.jsx)("span",{"data-testid":"portkey-key-rejected",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]}),(0,F.jsx)(ta,{label:"Fallback to provider",hint:"use per-provider key if Portkey is unreachable",children:(0,F.jsx)(Dx,{ariaLabel:"portkey fallback to provider",on:a,onToggle:()=>{r(tt.portkeyFallbackToProvider,!a)}})})]})})}function N$({url:e,onRetry:t}){return(0,F.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,F.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,F.jsxs)("div",{style:{flex:1},children:[(0,F.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,F.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,F.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 nO=["error","degraded","starting","warming","active"];function L$(e){return nO.includes(e)}function A$(e){return{health:e.health,lastSeen:e.lastSeen,telemetryFault:e.telemetryFault}}function qs(e){return{health:e.health,lastSeen:null,telemetryFault:null}}var rO=1e4,oO=2e4;function Qs(e){let{signal:t,now:r,firstActiveAt:o}=e,n=e.warmingGraceMs??rO,i=e.staleAfterMs??oO;if(t===null)return"starting";if(t.telemetryFault!==null)return"degraded";if(t.health==="unreachable")return"error";if(t.lastSeen!==null){let a=Date.parse(t.lastSeen);if(Number.isFinite(a)&&r-a>i)return"error"}switch(t.health){case"degraded":return"degraded";case"unknown":return"starting";case"ok":return o!==null&&r-o<n?"warming":"active";default:return t.health}}function Ax(e,t,r){return e!=="ok"?null:t??r}var Se=P(J(),1);function Td(){return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("ellipse",{cx:12,cy:13,rx:4.4,ry:5.4,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,Se.jsx)("path",{d:"M8.4 11.2h7.2M8.1 14.4h7.8",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}),(0,Se.jsx)("circle",{cx:12,cy:6.6,r:2.1,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,Se.jsx)("path",{d:"M10.8 5.2 9.6 3.2M13.2 5.2l1.2-2",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round"})]})}var ra={width:22,height:22,viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1};function iO(){return(0,Se.jsxs)("svg",{...ra,"data-service-state":"starting",children:[(0,Se.jsx)("path",{d:"M12 3.5 19 7.75v8.5L12 20.5 5 16.25v-8.5z",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"2.5 2.5",strokeLinejoin:"round"}),(0,Se.jsx)("circle",{cx:12,cy:12,r:1.6,fill:"currentColor",opacity:.6})]})}function aO(){return(0,Se.jsxs)("svg",{...ra,"data-service-state":"warming",children:[(0,Se.jsx)(Td,{}),(0,Se.jsx)("path",{d:"M8.2 12.4c-1.6-.6-2.6-.2-3-.7M15.8 12.4c1.6-.6 2.6-.2 3-.7",fill:"none",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round",opacity:.65})]})}function sO(){return(0,Se.jsxs)("svg",{...ra,"data-service-state":"active",children:[(0,Se.jsx)(Td,{}),(0,Se.jsx)("ellipse",{cx:5.6,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(-24 5.6 10.4)"}),(0,Se.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"})]})}function lO(){return(0,Se.jsxs)("svg",{...ra,"data-service-state":"degraded",children:[(0,Se.jsx)(Td,{}),(0,Se.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"}),(0,Se.jsx)("path",{d:"M18.4 2.4v3.6M18.4 7.4v.01",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round"})]})}function cO(){return(0,Se.jsxs)("svg",{...ra,"data-service-state":"error",children:[(0,Se.jsx)("g",{transform:"rotate(180 12 12)",children:(0,Se.jsx)(Td,{})}),(0,Se.jsx)("path",{d:"M8.6 9.6l3.4 3.4-3.4 3.4M15.4 9.6l-3.4 3.4 3.4 3.4",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",opacity:.85})]})}function uO(){return(0,Se.jsxs)("svg",{...ra,"data-service-state":"unknown",children:[(0,Se.jsx)("circle",{cx:12,cy:12,r:8,fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"3 3"}),(0,Se.jsx)("path",{d:"M12 9v4M12 15.5v.01",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round"})]})}function no({state:e}){if(!L$(e))return(0,Se.jsx)(uO,{});let t=e;switch(t){case"starting":return(0,Se.jsx)(iO,{});case"warming":return(0,Se.jsx)(aO,{});case"active":return(0,Se.jsx)(sO,{});case"degraded":return(0,Se.jsx)(lO,{});case"error":return(0,Se.jsx)(cO,{});default:return t}}var Dn={starting:"starting",warming:"warming up",active:"active",degraded:"degraded",error:"error"},ro={starting:"var(--text-tertiary)",warming:"var(--severity-warning)",active:"var(--verified)",degraded:"var(--severity-warning)",error:"var(--severity-critical)"};var Ao=P(me(),1);var Fx="fleet-telemetry",dO=u.enum(["ok","degraded","unreachable","unknown"]),pO=u.enum(["missing","locked","malformed","read-error"]),fO=u.object({connected:u.boolean().nullable(),lastCommunicationAt:u.string().nullable()}),mO=u.object({name:u.string().min(1),health:dO,lastSeen:u.string().nullable(),metrics:u.record(u.string(),u.number()),deeplake:fO.nullable(),telemetryFault:pO.nullable()}),gO=u.object({service:u.string().min(1),ts:u.string().min(1),level:u.string().min(1),message:u.string()}),vO=u.object({asOf:u.string().min(1),services:u.array(mO),logs:u.array(gO)});function F$(e){let t;try{t=JSON.parse(e)}catch{return null}let r=vO.safeParse(t);return r.success?r.data:null}var yO="/api/registered-services",hO="/api/telemetry/stream",xO="/api/fleet-status",bO=2e3,W$=500;function SO(e=[]){return{registeredNames:e,services:new Map,logs:[],source:"none",asOf:null,reconnecting:!1}}function Wx(e,t){return e.includes(t)?e:[...e,t]}function kO(e,t){let r=e.registeredNames;for(let o of t)r=Wx(r,o);return r===e.registeredNames?e:{...e,registeredNames:r}}function _O(e,t){if(t.length===0)return e;let r=[...e,...t];return r.length>W$?r.slice(r.length-W$):r}function wO(e,t,r){let o=e.registeredNames,n=new Map(e.services);for(let i of t.services){o=Wx(o,i.name);let a=A$(i),s=n.get(i.name);n.set(i.name,{signal:a,metrics:i.metrics,deeplake:i.deeplake,firstActiveAt:Ax(i.health,s?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:_O(e.logs,t.logs),source:"sse",asOf:t.asOf,reconnecting:!1}}function $O(e,t,r){if(t.supervisor!=="reachable")return{...e,source:"rest",reconnecting:!0};if(t.daemons.length===0&&e.services.size>0)return{...e,source:"rest",asOf:t.asOf,reconnecting:!0};let o=e.registeredNames,n=new Map;for(let i of t.daemons){o=Wx(o,i.name);let a=qs(i),s=e.services.get(i.name);n.set(i.name,{signal:a,metrics:s?.metrics??{},deeplake:s?.deeplake??null,firstActiveAt:Ax(i.health,s?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:e.logs,source:"rest",asOf:t.asOf,reconnecting:!1}}function PO(e,t){return e.registeredNames.map(r=>{let o=e.services.get(r),n=Qs({signal:o?.signal??null,now:t,firstActiveAt:o?.firstActiveAt??null});return{name:r,state:n,health:o?.signal.health??null,lastSeen:o?.signal.lastSeen??null,metrics:o?.metrics??{},deeplake:o?.deeplake??null,telemetryFault:o?.signal.telemetryFault??null}})}function zO(e,t){return{services:PO(e,t),logs:e.logs,source:e.source,asOf:e.asOf,reconnecting:e.reconnecting}}function oa(e={}){let t=e.restPollMs??bO,[r,o]=Ao.default.useState(()=>SO()),[n,i]=Ao.default.useState(()=>Date.now());return Ao.default.useEffect(()=>{let a=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(a)},[]),Ao.default.useEffect(()=>{let a=!0;return(async()=>{try{let s=await fetch(yO);if(!s.ok)return;let l=await s.json();if(!a||!Array.isArray(l.names))return;let c=l.names.filter(d=>typeof d=="string");c.length>0&&o(d=>kO(d,c))}catch{}})(),()=>{a=!1}},[]),Ao.default.useEffect(()=>{let a=!0,s=null;function l(){s!==null&&(clearInterval(s),s=null)}function c(){if(s!==null)return;let x=async()=>{try{let h=await fetch(xO);if(!h.ok)return;let _=await h.json();if(!a)return;o(v=>$O(v,_,Date.now()))}catch{}};x(),s=setInterval(()=>{x()},t)}let d=globalThis.EventSource;if(d===void 0)return c(),()=>{a=!1,l()};let p=null,f=x=>{if(!a)return;let h=typeof x.data=="string"?x.data:String(x.data),_=F$(h);_!==null&&(l(),o(v=>wO(v,_,Date.now())))},m=()=>c();try{p=new d(hO),p.addEventListener(Fx,f),p.addEventListener("error",m)}catch{c()}return()=>{a=!1,l();try{p?.removeEventListener(Fx,f),p?.removeEventListener("error",m),p?.close()}catch{}}},[t]),Ao.default.useMemo(()=>zO(r,n),[r,n])}var el=["debug","info","warn","error"];function IO(e){let t=el.indexOf(e.trim().toLowerCase());return t===-1?el.indexOf("info"):t}function U$(e,t){let r=el.indexOf(t);return e.filter(o=>IO(o.level)>=r)}var xn=P(J(),1),M$="/health",RO={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0};function EO({service:e}){let t=`${e.name}: ${Dn[e.state]}`;return(0,xn.jsxs)("span",{"data-testid":`health-rail-pill-${e.name}`,"data-state":e.state,title:t,style:{display:"inline-flex",alignItems:"center",gap:6,height:26,padding:"0 10px",borderRadius:"var(--radius-full)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)",flex:"none"},children:[(0,xn.jsx)("span",{style:{color:ro[e.state],display:"inline-flex",width:14,height:14},"aria-hidden":"true",children:(0,xn.jsx)(no,{state:e.state})}),(0,xn.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-secondary)",whiteSpace:"nowrap"},children:[e.name,(0,xn.jsxs)("span",{style:RO,children:[": ",Dn[e.state]]})]})]})}function B$({onOpenHealth:e}={}){let t=oa();return(0,xn.jsxs)("div",{"data-testid":"health-rail",role:"status","aria-live":"polite","aria-label":"Fleet health",style:{display:"flex",alignItems:"center",gap:8,padding:"8px 28px",borderBottom:"1px solid var(--border-subtle)",overflowX:"auto"},children:[t.services.length===0?(0,xn.jsx)("span",{"data-testid":"health-rail-empty",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"no services registered"}):t.services.map(r=>(0,xn.jsx)(EO,{service:r},r.name)),(0,xn.jsx)("span",{style:{flex:1}}),e!==void 0&&(0,xn.jsx)("button",{type:"button","data-testid":"health-rail-open-health",onClick:e,style:{background:"transparent",border:"none",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:11,cursor:"pointer",padding:0},children:"health details \u2192"})]})}var Le=P(me(),1);var Q$=P(me(),1);var tl=P(me(),1);var Cd=P(me(),1),xr=P(J(),1),jd=1180;function Ye({title:e,eyebrow:t,right:r,children:o}){return(0,xr.jsxs)("div",{style:{maxWidth:jd,margin:"0 auto",width:"100%"},children:[(0,xr.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,xr.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,xr.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,xr.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,xr.jsx)("span",{style:{flex:1}}),r]}),(0,xr.jsx)("div",{children:o})]})}function an(){return typeof document<"u"&&document.visibilityState==="hidden"}function Nn(e,t){let r=Cd.default.useRef(e);Cd.default.useEffect(()=>{r.current=e},[e]),Cd.default.useEffect(()=>{let o=!0,n=async()=>{!o||an()||await r.current()};n();let i=setInterval(()=>{n()},t),a=()=>{an()||n()};return typeof document<"u"&&document.addEventListener("visibilitychange",a),()=>{o=!1,clearInterval(i),typeof document<"u"&&document.removeEventListener("visibilitychange",a)}},[t])}var Od=P(me(),1);function Z$(e){let t=e.trim();return t===""?"/":t}var Ux="hive:pathchange";function Dd(){let[e,t]=Od.default.useState(()=>typeof window>"u"?"/":Z$(window.location.pathname));Od.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(Z$(window.location.pathname));return o(),window.addEventListener("popstate",o),window.addEventListener(Ux,o),()=>{window.removeEventListener("popstate",o),window.removeEventListener(Ux,o)}},[]);let r=Od.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("/")?o:`/${o}`;window.location.pathname!==n&&window.history.pushState(null,"",n),window.dispatchEvent(new Event(Ux))},[]);return{route:e,navigate:r}}var U=P(J(),1),TO=5e3,CO=2500,H$=12,V$="/harnesses/";function jO(e){if(!e.startsWith(V$))return null;let t=e.slice(V$.length).split("/")[0]??"";return t===""?null:t}function Mx({name:e}){return(0,U.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:Ks[e]??Ys}})}function Nd(e){return e.installed?e.active?"active":"idle":"not installed"}var G$={active:"verified",idle:"neutral","not installed":"neutral"};function ia(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 X$={active:"active",idle:"idle","not installed":"not installed"};function OO({h:e,onOpen:t}){let r=Nd(e),o=r==="not installed";return(0,U.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,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,U.jsx)(Mx,{name:e.name}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)(K,{tone:G$[r],mono:!0,dot:!0,children:X$[r]})]}),(0,U.jsx)(hn,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,U.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",ia(e.lastSeen)]})]})}function J$({on:e}){return(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function DO({harnesses:e,onOpen:t}){return(0,U.jsx)(re,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,U.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,U.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,U.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,U.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,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,U.jsx)(Mx,{name:r.name}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,U.jsx)(J$,{on:r.installed}),(0,U.jsx)(J$,{on:r.active}),(0,U.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:ia(r.lastSeen)}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function NO({harnesses:e,onOpen:t}){return(0,U.jsx)(Ye,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,U.jsx)(re,{title:"Harnesses",children:(0,U.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,U.jsx)(OO,{h:r,onOpen:t},r.name))}),(0,U.jsx)(DO,{harnesses:e,onOpen:t})]})})}function sn({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:130},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"},children:t})]})}function LO({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(re,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,U.jsx)(sn,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,U.jsx)(sn,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,U.jsx)(sn,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,U.jsx)(sn,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,U.jsx)(sn,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,U.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,U.jsxs)(re,{title:"Agents",eyebrow:"cursor-agent",children:[(0,U.jsx)(sn,{label:"agent kind",children:e.agents.kind}),(0,U.jsx)(sn,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,U.jsx)(sn,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,U.jsx)(sn,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,U.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"MCP",eyebrow:"registered",children:(0,U.jsx)(sn,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,U.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"Contracted tools",eyebrow:"registered",children:(0,U.jsx)(sn,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,U.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,U.jsx)(sn,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,U.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,U.jsx)(re,{title:"Context surface",eyebrow:"login line",children:(0,U.jsx)(sn,{label:"injection",children:"user-visible login line"})})})]})}function AO(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function FO({name:e,status:t,lines:r,onBack:o}){let n=(0,U.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,U.jsx)(Ye,{title:e,eyebrow:"harness",right:n,children:(0,U.jsx)(re,{title:"Unknown harness",children:(0,U.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,U.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=Nd(t);return(0,U.jsxs)(Ye,{title:e,eyebrow:"harness",right:n,children:[(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,U.jsx)(Mx,{name:e}),(0,U.jsx)(K,{tone:G$[i],mono:!0,dot:!0,children:X$[i]}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",ia(t.lastSeen)]})]}),(0,U.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,U.jsx)(hn,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,U.jsx)(hn,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,U.jsx)(hn,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,U.jsx)(LO,{cap:t.capabilities}),(0,U.jsx)(to,{lines:r})]})}function K$({wire:e}){let{route:t,navigate:r}=Dd(),o=jO(t),[n,i]=tl.default.useState([]),[a,s]=tl.default.useState([]);Nn(async()=>i(await e.harnesses()),TO),Nn(async()=>{if(o===null){s([]);return}let d=await e.logs(H$*4),p=AO(d,o);s(p.slice(-H$).reverse().map(eo))},CO);let l=tl.default.useCallback(d=>r(`/harnesses/${d}`),[r]),c=tl.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let d=n.find(p=>p.name===o)??null;return(0,U.jsx)(FO,{name:o,status:d,lines:a,onBack:c})}return(0,U.jsx)(NO,{harnesses:n,onOpen:l})}function Y$(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 nt=P(J(),1),q$={active:"verified",idle:"neutral"};function WO({h:e}){let r=Nd(e)==="active"?q$.active:q$.idle;return(0,nt.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${ia(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,nt.jsxs)(K,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,nt.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:Ks[e.name]??Ys}}),e.name]})})}function UO({h:e}){return(0,nt.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,nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,nt.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:Ks[e.name]??Ys}}),(0,nt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,nt.jsx)(hn,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,nt.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",ia(e.lastSeen)]})]})}function eP({harnesses:e,streamLines:t}){let r=Q$.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,nt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,nt.jsx)(re,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,nt.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,nt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,nt.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,nt.jsx)(WO,{h:o},o.name))}),(0,nt.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,nt.jsx)(UO,{h:o},o.name))})]})}),(0,nt.jsx)(to,{lines:t})]})}var se=P(J(),1),MO=2500,BO=5e3,Ld=8,ZO=5;function HO(){return new Date().toTimeString().slice(0,8)}function VO({query:e,setQuery:t,onRecall:r,busy:o}){return(0,se.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,se.jsx)("div",{style:{flex:1},children:(0,se.jsx)(On,{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,se.jsx)(I,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function JO(){return(0,se.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,se.jsx)(K,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var GO=[{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 XO({reasons:e}){return e===null?null:(0,se.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,se.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),GO.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,se.jsxs)(K,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function tP({wire:e,pollinating:t=!1,healthReasons:r=null}){let{scope:o}=Wt(),[n,i]=Le.default.useState(Rx),[a,s]=Le.default.useState([]),[l,c]=Le.default.useState([]),[d,p]=Le.default.useState([]),[f,m]=Le.default.useState(Zs),[x,h]=Le.default.useState([]),[_,v]=Le.default.useState([]),[g,y]=Le.default.useState("how do we deploy"),[S,w]=Le.default.useState([]),[E,L]=Le.default.useState(!1),[H,Z]=Le.default.useState(!1),[j,we]=Le.default.useState(0),[W,te]=Le.default.useState(!1),[ue,Je]=Le.default.useState([]),[Rt,so]=Le.default.useState([]),Sn=Le.default.useCallback(q=>{so(ve=>[`${HO()} ${q}`,...ve].slice(0,Ld))},[]),Sr=Le.default.useRef(0),Ee=Le.default.useCallback(async()=>{let q=++Sr.current,[ve,Me,kn,Mn,rr,Rz]=await Promise.all([e.kpis(o.project),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);q===Sr.current&&(i(ve),s(Me),c(kn),p(Mn),m(rr),h(Rz))},[e,o.project]),kt=Le.default.useCallback(async(q,ve)=>{let Me=await e.setSetting(q,ve),[kn,Mn]=await Promise.all([e.vaultSettings(),e.secretNames()]);return m(kn),h(Mn),Me},[e]);Le.default.useEffect(()=>{Ee()},[Ee]);let[Un,lo]=Le.default.useState(!1);Le.default.useEffect(()=>{lo(!0)},[]),Nn(async()=>{let q=await e.logs(Ld);Je(q.slice(-Ld).reverse().map(eo))},MO),Nn(async()=>v(await e.harnesses()),BO);let he=Le.default.useCallback(async()=>{let q=g.trim();if(q===""||E)return;L(!0);let{memories:ve,degraded:Me}=await e.recall(q);w(ve),Z(!0),te(Me),we(Mn=>Mn+1);let kn=ve.length>0?` \xB7 ${ve[0]?.score.toFixed(2)} top`:"";Sn(`recall "${q}" \u2192 ${ve.length} hits${kn}`),L(!1)},[g,E,e,Sn]),Kt=Le.default.useMemo(()=>[...Rt,...ue].slice(0,Ld),[Rt,ue]),Et=Le.default.useMemo(()=>ue.slice(0,ZO),[ue]);return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,se.jsx)(XO,{reasons:r}),(0,se.jsxs)("div",{className:"kpirow",children:[(0,se.jsx)(hn,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,se.jsx)(hn,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,se.jsx)(hn,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,se.jsx)(hn,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,se.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,se.jsx)(VO,{query:g,setQuery:y,onRecall:he,busy:E}),H&&W&&(0,se.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,se.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,se.jsx)(JO,{})]}),(0,se.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:S.length===0?H&&(0,se.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):S.map((q,ve)=>(0,se.jsx)("div",{className:"mem-enter",style:{animationDelay:`${ve*55}ms`},children:(0,se.jsx)(zd,{...q,pollinating:t&&ve===1})},q.memoryKey))},j)]}),(0,se.jsx)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:Un&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)("div",{style:{marginBottom:16},children:(0,se.jsx)(eP,{harnesses:_,streamLines:Et})}),(0,se.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,se.jsxs)("div",{className:"col",children:[(0,se.jsx)(C$,{sessions:a}),(0,se.jsx)(j$,{rules:l})]}),(0,se.jsxs)("div",{className:"col",children:[(0,se.jsx)(Ed,{catalog:f.catalog,settings:f.settings,secretNames:x,onSave:kt}),(0,se.jsx)(O$,{skills:d})]})]}),(0,se.jsx)(to,{lines:Kt})]})})]})}var ct=P(me(),1);var Bx=P(me(),1);var ln=P(me(),1);var fe=P(J(),1),KO="honeycomb project bind";function nP(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function YO({child:e,onDescend:t}){return(0,fe.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,fe.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,fe.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,fe.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,fe.jsx)(K,{tone:"honey",mono:!0,children:"git"})]})}function aa({wire:e,onBound:t,onCancel:r}){let[o,n]=ln.default.useState(Ix),[i,a]=ln.default.useState(!1),[s,l]=ln.default.useState(null),[c,d]=ln.default.useState(""),[p,f]=ln.default.useState(!1),[m,x]=ln.default.useState(""),h=ln.default.useRef(!1),_=ln.default.useCallback(async E=>{let L=await e.fsBrowse(E);n(L),a(!0)},[e]);ln.default.useEffect(()=>{_(void 0)},[_]);let v=i&&o.path===""&&o.children.length===0,g=o.error!==void 0&&o.error!=="",y=ln.default.useCallback(()=>{o.path!==""&&(l({path:o.path,isGitRepo:!1}),d(nP(o.path)),x(""))},[o.path]),S=ln.default.useCallback(E=>{l({path:E.path,isGitRepo:E.isGitRepo}),d(nP(E.path)),x("")},[]),w=ln.default.useCallback(async()=>{if(s===null||h.current)return;h.current=!0,f(!0),x("");let E=await e.bindProject({path:s.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),h.current=!1,E.bound){t(E);return}x(E.error!==void 0&&E.error!==""?E.error:"Could not bind that folder.")},[s,c,e,t]);return(0,fe.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,fe.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,fe.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,fe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,fe.jsx)("code",{style:{color:"var(--honey)"},children:KO})]}),r!==void 0&&(0,fe.jsx)("div",{children:(0,fe.jsx)(I,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,fe.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,fe.jsx)(I,{variant:"ghost",size:"sm",onClick:()=>{_(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,fe.jsx)(I,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,fe.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,fe.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:g?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(E=>(0,fe.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,fe.jsx)("div",{style:{flex:1,minWidth:0},children:(0,fe.jsx)(YO,{child:E,onDescend:L=>{_(L)}})}),(0,fe.jsx)(I,{variant:"ghost",size:"sm",onClick:()=>S(E),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},E.path)):(0,fe.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),s!==null&&(0,fe.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,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:s.path}),s.isGitRepo&&(0,fe.jsx)(K,{tone:"honey",mono:!0,children:"git"})]}),(0,fe.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,fe.jsx)(On,{mono:!0,value:c,placeholder:"project name",onChange:E=>d(E.target.value),"data-testid":"picker-name"})]}),(0,fe.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,fe.jsx)(I,{variant:"primary",onClick:()=>{w()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,fe.jsx)(I,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),m!==""&&(0,fe.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:m})]})]})]})})}var cn=P(J(),1);function oo({surface:e}){return(0,cn.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,cn.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,cn.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 rP({wire:e,navigate:t,assetBase:r}){let[o,n]=Bx.default.useState(!1),i=Bx.default.useCallback(a=>{t(Zx)},[t]);return(0,cn.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,cn.jsx)("img",{src:`${r}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""}),(0,cn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,cn.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,cn.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,cn.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,cn.jsx)(aa,{wire:e,onBound:i,onCancel:()=>n(!1)})}):(0,cn.jsx)(I,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var Q=P(J(),1),qO=8e3,io={width:1600,height:1e3},sa=.25,la=4,Fo=1.15,nl={scale:1,tx:0,ty:0};function Hx(e,t,r){return Math.min(r,Math.max(t,e))}function QO(e){let t=io.width/e.scale,r=io.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function Vx(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 Jx(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 eD(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 Gx(e,t){let r=io.width/t,o=io.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function Xx({kind:e,count:t,hidden:r,onToggle:o}){let n=Id[e]??Rd;return(0,Q.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,Q.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,Q.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function oP({kind:e,labels:t}){return(0,Q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,Q.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,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function tD({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=R$(e.id,t.edges),i=l=>t.nodes.find(c=>c.id===l)?.label||l,a=l=>l.map(i),s=o.length>0||n.length>0;return(0,Q.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,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Q.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:Id[e.kind]??Rd,flex:"none"}}),(0,Q.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,Q.jsx)("span",{style:{flex:1}}),(0,Q.jsx)(K,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,Q.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!s&&(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,Q.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,Q.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(l=>(0,Q.jsx)(oP,{kind:l.kind,labels:a(l.ids)},`out-${l.kind}`))]}),n.length>0&&(0,Q.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,Q.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(l=>(0,Q.jsx)(oP,{kind:l.kind,labels:a(l.ids)},`in-${l.kind}`))]}),(0,Q.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 Kx({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=ct.default.useMemo(()=>ea(e.nodes,e.edges,io),[e]),s=ct.default.useRef(null),l=f=>{s.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let m=s.current;if(m===null)return;let x=(f.clientX-m.x)/r.scale,h=(f.clientY-m.y)/r.scale;i({scale:r.scale,tx:m.tx-x,ty:m.ty-h})},d=()=>{s.current=null},p=f=>{let m=f.deltaY<0?Fo:1/Fo,x=Hx(r.scale*m,sa,la);i({scale:x,tx:r.tx,ty:r.ty})};return(0,Q.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:QO(r),onPointerDown:l,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,m)=>{let x=a.get(f.from),h=a.get(f.to);return x===void 0||h===void 0?null:(0,Q.jsx)("line",{x1:x.x,y1:x.y,x2:h.x,y2:h.y,stroke:"var(--border-strong)",strokeWidth:1.5},m)}),e.nodes.map(f=>{let m=a.get(f.id);if(m===void 0)return null;let x=f.id===t;return(0,Q.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":x,"data-node-id":f.id,style:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),o(f.id)},children:[x&&(0,Q.jsx)("circle",{cx:m.x,cy:m.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,Q.jsx)("circle",{cx:m.x,cy:m.y,r:x?12:9,fill:Id[f.kind]??Rd}),(0,Q.jsx)("text",{x:m.x+15,y:m.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function nD(){return(0,Q.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,Q.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,Q.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 rl({label:e,ariaLabel:t,onClick:r}){return(0,Q.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 iP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=ct.default.useState(jn),[i,a]=ct.default.useState(null),[s,l]=ct.default.useState(new Set),[c,d]=ct.default.useState(""),[p,f]=ct.default.useState(nl);ct.default.useEffect(()=>{if(r===void 0){n(jn);return}let W=!0,te=async()=>{if(!W||an())return;let Je=await e.memoryGraph(r);W&&n(Je)};te();let ue=setInterval(()=>{te()},qO);return()=>{W=!1,clearInterval(ue)}},[e,r]);let m=ct.default.useMemo(()=>Vx(o),[o]),x=ct.default.useMemo(()=>Jx(o,s),[o,s]),{graph:h,capped:_}=ct.default.useMemo(()=>Vs(x,Lo),[x]),v=o.meta?.truncated??!1,g=v||_,y=i!==null?h.nodes.find(W=>W.id===i)??null:null,S=ct.default.useCallback(W=>{l(te=>{let ue=new Set(te);return ue.has(W)?ue.delete(W):ue.add(W),ue})},[]),w=ct.default.useCallback(W=>{d(W);let te=eD(h,W);if(te===null)return;a(te);let Je=ea(h.nodes,h.edges,io).get(te);Je!==void 0&&f(Gx(Je,Math.max(p.scale,1.4)))},[h,p.scale]),E=ct.default.useCallback(()=>f(nl),[]),L=ct.default.useCallback(()=>f(W=>({...W,scale:Hx(W.scale*Fo,sa,la)})),[]),H=ct.default.useCallback(()=>f(W=>({...W,scale:Hx(W.scale/Fo,sa,la)})),[]),Z=ct.default.useCallback(W=>a(te=>te===W?null:W),[]),j=ct.default.useCallback(()=>a(null),[]),we=`${h.nodes.length} nodes \xB7 ${h.edges.length} edges`;return(0,Q.jsx)(Ye,{title:"Memory Graph",eyebrow:r===void 0?"memory graph":we,children:r===void 0?(0,Q.jsx)(oo,{surface:"memory graph"}):o.built?(0,Q.jsxs)(Q.Fragment,{children:[g&&(0,Q.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,Q.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 ${Lo.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,Q.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:c,placeholder:"search id or label\u2026",onChange:W=>w(W.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,Q.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:m.map(W=>{let te=o.nodes.filter(ue=>ue.kind===W).length;return(0,Q.jsx)(Xx,{kind:W,count:te,hidden:s.has(W),onToggle:()=>S(W)},W)})}),(0,Q.jsx)("span",{style:{flex:1}}),(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Q.jsx)(rl,{label:"\u2212",ariaLabel:"zoom out",onClick:H}),(0,Q.jsx)(rl,{label:"+",ariaLabel:"zoom in",onClick:L}),(0,Q.jsx)("button",{type:"button","data-testid":"fit-view",onClick:E,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,Q.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,Q.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,Q.jsx)(Kx,{graph:h,selected:y?.id??null,transform:p,onSelect:Z,onClear:j,onPanZoom:f})}),y!==null&&(0,Q.jsx)(tD,{node:y,graph:o,onClear:j})]})]}):(0,Q.jsx)(nD,{})})}var ye=P(me(),1);var M=P(J(),1),sP=8e3,rD={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function oD(e){switch(e){case"active":return"brooding";case"paused":return"paused";case"global-paused":return"global-paused";default:return e}}function iD(e){switch(e){case"active":return"verified";case"paused":return"neutral";case"global-paused":return"warning";default:return e}}function aD({wire:e}){let[t,r]=ye.default.useState(f$),[o,n]=ye.default.useState(()=>Pd(No)),[i,a]=ye.default.useState(!1),[s,l]=ye.default.useState(null),c=ye.default.useRef(!1),d=ye.default.useCallback(async()=>{let[h,_]=await Promise.all([e.nectarProjects(),e.setupTenancy()]);r(h),n(Pd(_)),a(!0)},[e]);ye.default.useEffect(()=>{let h=!0,_=async()=>{!h||an()||await d()};_();let v=setInterval(()=>{_()},sP);return()=>{h=!1,clearInterval(v)}},[d]);let p=ye.default.useCallback(async(h,_)=>{if(!(c.current||t.unreachable)){c.current=!0,l(_);try{let v=await e.setNectarBrooding(h);v.unreachable||r(v),await d()}finally{c.current=!1,l(null)}}},[e,d,t.unreachable]),f=ye.default.useCallback(()=>{d()},[d]),m=!i||t.unreachable||s!==null,x=!t.unreachable&&i?$$({org:t.tenancyOrgName??t.tenancyOrgId,workspace:t.tenancyWorkspaceName??t.tenancyWorkspaceId},o):null;return(0,M.jsxs)(re,{title:"Nectar projects",right:(0,M.jsx)(I,{variant:"secondary",size:"sm","data-testid":"nectar-global-brooding-toggle",disabled:m,onClick:()=>{p({global:t.globalBrooding==="on"?"paused":"on"},"global")},children:t.globalBrooding==="on"?"Pause all brooding":"Resume all brooding"}),children:[x!==null&&(0,M.jsxs)("p",{"data-testid":"nectar-projects-tenancy",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",margin:"0 0 10px"},children:["Writing to: ",x]}),t.unreachable?(0,M.jsx)("div",{"data-testid":"nectar-projects-unreachable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Nectar is unreachable \u2014 project brooding controls are disabled."}):i?t.projects.length===0?(0,M.jsxs)("div",{"data-testid":"nectar-needs-project",style:{display:"flex",flexDirection:"column",gap:12},children:[(0,M.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"No active nectar projects yet. Pick a folder to activate brooding for a project directory."}),(0,M.jsx)(aa,{wire:e,onBound:f})]}):(0,M.jsx)("div",{"data-testid":"nectar-projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:t.projects.map(h=>(0,M.jsxs)("div",{"data-testid":"nectar-project-row","data-project-id":h.projectId,style:{...rD,display:"flex",flexDirection:"column",gap:8},children:[(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,M.jsx)("span",{"data-testid":"nectar-project-name",style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:h.name!==""?h.name:h.projectId}),(0,M.jsx)(K,{tone:iD(h.brooding),mono:!0,children:(0,M.jsx)("span",{"data-testid":"nectar-brooding-badge",children:oD(h.brooding)})}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsx)(I,{variant:"ghost",size:"sm","data-testid":"nectar-brooding-toggle",disabled:m,onClick:()=>{p({projectId:h.projectId,brooding:h.brooding==="active"?"off":"on"},h.projectId)},children:h.brooding==="active"?"Turn off brooding":"Turn on brooding"})]}),(0,M.jsx)("span",{"data-testid":"nectar-project-path",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",wordBreak:"break-all"},children:h.path})]},h.projectId))}):(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]})}function aP(e,t,r){return Math.min(r,Math.max(t,e))}function sD({node:e,file:t,derived:r,onClear:o}){return(0,M.jsxs)("aside",{"data-testid":"hive-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:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsx)(K,{tone:"neutral",mono:!0,children:e.kind||"file"})]}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),t!==void 0&&t.description!==""&&(0,M.jsx)("p",{style:{fontSize:13,color:"var(--text-secondary)",margin:0,lineHeight:1.45},children:t.description}),r!==void 0&&r.from_nectar!==""&&(0,M.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["derived from ",r.from_nectar]}),(0,M.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",alignSelf:"flex-start",marginTop:"auto"},children:"clear selection"})]})}function lD({unreachable:e}){return(0,M.jsxs)("div",{"data-testid":"hive-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,M.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:e?"Nectar is unreachable \u2014 the Hive Graph is unavailable.":"No Hive Graph yet for this project."}),!e&&(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"Describe files with nectar, or trigger a build below, to populate the graph."})]})}function cD({status:e}){if(e.unreachable)return(0,M.jsx)("div",{"data-testid":"hive-graph-status-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Status unavailable \u2014 nectar is unreachable."});let t=e.describeStatus;return(0,M.jsxs)("div",{"data-testid":"hive-graph-status-widgets",style:{display:"flex",flexWrap:"wrap",gap:10},children:[(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["queue ",e.queueDepth]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["described ",t.described]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["pending ",t.pending]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["failed ",t.failed]}),(0,M.jsxs)(K,{tone:"neutral",mono:!0,children:["cost $",e.costSpentUsd.toFixed(2)]}),e.degraded&&(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"degraded read"})]})}function uD({results:e,onSelect:t}){return e.unreachable?(0,M.jsx)("div",{"data-testid":"hive-graph-search-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Search unavailable \u2014 nectar is unreachable."}):(0,M.jsxs)("div",{"data-testid":"hive-graph-search-results",style:{display:"flex",flexDirection:"column",gap:8},children:[e.hits.length===0?(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"No matches."}):e.hits.map(r=>(0,M.jsxs)("button",{type:"button","data-testid":`hive-graph-search-hit-${r.id}`,onClick:()=>t(r),style:{textAlign:"left",padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer"},children:[(0,M.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)"},children:r.path}),r.body!==""&&(0,M.jsx)("div",{style:{fontSize:12,color:"var(--text-secondary)",marginTop:4,lineHeight:1.4},children:r.body})]},r.id)),e.degraded&&(0,M.jsx)("div",{"data-testid":"hive-graph-search-degraded",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Search ran in degraded mode (lexical-only or partial index)."})]})}function dD({onBuild:e}){let[t,r]=ye.default.useState(!1),[o,n]=ye.default.useState(null),i=ye.default.useRef(!1),a=ye.default.useCallback(async()=>{if(!i.current){i.current=!0,r(!0),n(null);try{n(await e())}finally{i.current=!1,r(!1)}}},[e]);return(0,M.jsxs)("div",{"data-testid":"hive-graph-build",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,M.jsx)(I,{variant:"primary",onClick:()=>{a()},disabled:t,"data-testid":"hive-graph-build-button",children:t?"Building\u2026":"Build Hive Graph"}),o!==null&&o.state!=="accepted"&&(0,M.jsx)("span",{"data-testid":"hive-graph-build-message",style:{fontFamily:"var(--font-mono)",fontSize:12,color:o.state==="already_running"?"var(--severity-warning)":"var(--severity-critical)"},children:o.message}),o!==null&&o.state==="accepted"&&(0,M.jsx)("span",{"data-testid":"hive-graph-build-accepted",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:o.message})]})}function lP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=ye.default.useState(jn),[i,a]=ye.default.useState({}),[s,l]=ye.default.useState({}),[c,d]=ye.default.useState(!1),[p,f]=ye.default.useState({...Qi,unreachable:!1}),[m,x]=ye.default.useState(null),[h,_]=ye.default.useState(new Set),[v,g]=ye.default.useState(nl),[y,S]=ye.default.useState(""),[w,E]=ye.default.useState(null),[L,H]=ye.default.useState(!1);ye.default.useEffect(()=>{if(r===void 0){n(jn),a({}),l({}),d(!1),f({...Qi,unreachable:!1});return}let he=!0,Kt=async()=>{if(!he||an())return;let[q,ve]=await Promise.all([e.hiveGraphFileGraph(r),e.hiveGraphStatus(r)]);he&&(n(q.graph),a(q.files),l(q.derived),d(q.unreachable),f(ve))};Kt();let Et=setInterval(()=>{Kt()},sP);return()=>{he=!1,clearInterval(Et)}},[e,r]);let Z=ye.default.useCallback(async()=>{if(!(r===void 0||y.trim()==="")){H(!0);try{E(await e.hiveGraphSearch(y,r))}finally{H(!1)}}},[e,r,y]),j=ye.default.useCallback(he=>{x(he);let Et=ea(Je.current.nodes,Je.current.edges,io).get(he);Et!==void 0&&g(q=>Gx(Et,Math.max(q.scale,1.4)))},[]),we=ye.default.useMemo(()=>Vx(o),[o]),W=ye.default.useMemo(()=>Jx(o,h),[o,h]),{graph:te,capped:ue}=ye.default.useMemo(()=>Vs(W,Lo),[W]),Je=ye.default.useRef(te);Je.current=te;let Rt=m!==null?te.nodes.find(he=>he.id===m)??null:null,so=ye.default.useCallback(he=>{_(Kt=>{let Et=new Set(Kt);return Et.has(he)?Et.delete(he):Et.add(he),Et})},[]),Sn=ye.default.useCallback(()=>g(nl),[]),Sr=ye.default.useCallback(()=>g(he=>({...he,scale:aP(he.scale*Fo,sa,la)})),[]),Ee=ye.default.useCallback(()=>g(he=>({...he,scale:aP(he.scale/Fo,sa,la)})),[]),kt=ye.default.useCallback(he=>x(Kt=>Kt===he?null:he),[]),Un=ye.default.useCallback(()=>x(null),[]),lo=`${te.nodes.length} files \xB7 ${te.edges.length} provenance links`;return(0,M.jsx)(Ye,{title:"Hive Graph",eyebrow:r===void 0?"hive graph":lo,children:(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,M.jsx)(aD,{wire:e}),r===void 0?(0,M.jsx)(oo,{surface:"Hive Graph"}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(re,{title:"Pipeline status",right:(0,M.jsx)(dD,{onBuild:()=>e.hiveGraphBuild()}),children:(0,M.jsx)(cD,{status:p})}),(0,M.jsxs)(re,{title:"Search",children:[(0,M.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,M.jsx)("input",{"aria-label":"search hive graph","data-testid":"hive-graph-search-input",type:"text",value:y,disabled:r===void 0,placeholder:"search files and descriptions\u2026",onChange:he=>S(he.target.value),onKeyDown:he=>{he.key==="Enter"&&Z()},style:{flex:1,height:30,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:13}}),(0,M.jsx)(I,{variant:"primary",onClick:()=>{Z()},disabled:L||y.trim()==="","data-testid":"hive-graph-search-submit",children:L?"Searching\u2026":"Search"})]}),w!==null&&(0,M.jsx)(uD,{results:w,onSelect:he=>j(he.id)})]}),c||!o.built?(0,M.jsx)(lD,{unreachable:c}):(0,M.jsxs)(M.Fragment,{children:[ue&&(0,M.jsxs)("div",{"data-testid":"hive-graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,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"}}),"Rendering is capped at ",Lo.toLocaleString()," nodes. Use search and kind filters to focus."]}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,M.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:we.map(he=>{let Kt=o.nodes.filter(Et=>Et.kind===he).length;return(0,M.jsx)(Xx,{kind:he,count:Kt,hidden:h.has(he),onToggle:()=>so(he)},he)})}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,M.jsx)(rl,{label:"\u2212",ariaLabel:"zoom out",onClick:Ee}),(0,M.jsx)(rl,{label:"+",ariaLabel:"zoom in",onClick:Sr}),(0,M.jsx)("button",{type:"button","data-testid":"hive-graph-fit-view",onClick:Sn,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)(Kx,{graph:te,selected:Rt?.id??null,transform:v,onSelect:kt,onClear:Un,onPanZoom:g})}),Rt!==null&&(0,M.jsx)(sD,{node:Rt,file:i[Rt.id],derived:s[Rt.id],onClear:Un})]})]})]})]})})}var Yx=P(me(),1);var de=P(J(),1),pD=200;function fD(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase()}function mD({service:e}){let t=Object.entries(e.metrics);return(0,de.jsxs)("div",{"data-testid":`health-service-${e.name}`,style:{display:"flex",flexDirection:"column",gap:10,padding:"14px 16px",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:[(0,de.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,de.jsx)("span",{style:{color:ro[e.state],display:"inline-flex",flex:"none"},children:(0,de.jsx)(no,{state:e.state})}),(0,de.jsx)("span",{style:{fontWeight:600,fontSize:"var(--text-base)",color:"var(--text-primary)"},children:e.name}),(0,de.jsx)("span",{"data-testid":`health-service-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"lowercase"},children:Dn[e.state]})]}),t.length===0?(0,de.jsx)("div",{"data-testid":`health-metrics-empty-${e.name}`,style:{fontSize:12,color:"var(--text-tertiary)"},children:"No metrics reported yet."}):(0,de.jsx)("div",{"data-testid":`health-metrics-${e.name}`,style:{display:"grid",gridTemplateColumns:"1fr auto",rowGap:4,columnGap:12},children:t.map(([r,o])=>(0,de.jsxs)(Yx.default.Fragment,{children:[(0,de.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)",textTransform:"capitalize"},children:fD(r)}),(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:o})]},r))}),(0,de.jsxs)("div",{"data-testid":`health-deeplake-${e.name}`,style:{display:"flex",alignItems:"center",gap:8,paddingTop:8,borderTop:"1px solid var(--border-subtle)"},children:[(0,de.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)"},children:"Deep Lake"}),e.deeplake===null?(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"not reported"}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("span",{"data-testid":`health-deeplake-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:e.deeplake.connected===!0?"var(--verified)":"var(--severity-critical)"},children:e.deeplake.connected===!0?"connected":e.deeplake.connected===!1?"unreachable":"unknown"}),(0,de.jsx)("span",{style:{flex:1}}),(0,de.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["last comm: ",e.deeplake.lastCommunicationAt??"never"]})]})]})]})}function gD({entry:e}){return(0,de.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto auto 1fr",gap:10,padding:"4px 0",fontFamily:"var(--font-mono)",fontSize:12},children:[(0,de.jsx)("span",{style:{color:"var(--text-tertiary)"},children:(e.ts||"").slice(11,19)||e.ts}),(0,de.jsx)("span",{style:{color:"var(--text-secondary)",textTransform:"uppercase"},children:e.level}),(0,de.jsxs)("span",{style:{color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,de.jsxs)("span",{style:{color:"var(--text-tertiary)"},children:["[",e.service,"]"]})," ",e.message]})]})}function vD({value:e,onChange:t}){return(0,de.jsx)("select",{"aria-label":"log verbosity","data-testid":"log-verbosity-select",value:e,onChange:r=>t(r.target.value),style:{height:30,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:el.map(r=>(0,de.jsxs)("option",{value:r,children:[r,"+"]},r))})}function yD({logs:e}){let[t,r]=Yx.default.useState("info"),o=U$(e,t),n=o.slice(Math.max(0,o.length-pD)).reverse();return(0,de.jsx)(re,{title:"Live logs",eyebrow:`${o.length} of ${e.length} lines`,right:(0,de.jsx)(vD,{value:t,onChange:r}),children:n.length===0?(0,de.jsx)("div",{"data-testid":"health-logs-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No log lines at this verbosity yet."}):(0,de.jsx)("div",{"data-testid":"health-logs-list",style:{maxHeight:360,overflowY:"auto"},children:n.map((i,a)=>(0,de.jsx)(gD,{entry:i},`${i.ts}-${i.service}-${a}`))})})}function hD(e){return e.services.length===0}function cP(e){let t=oa();return(0,de.jsx)(Ye,{title:"Health",eyebrow:t.source==="sse"?"live":t.source==="rest"?"fallback":"unavailable",children:(0,de.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[hD(t)?(0,de.jsx)(re,{title:"Fleet metrics",children:(0,de.jsx)("div",{"data-testid":"health-telemetry-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Telemetry unavailable. Waiting for doctor to report the fleet."})}):(0,de.jsx)("div",{"data-testid":"health-service-grid",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:12},children:t.services.map(r=>(0,de.jsx)(mD,{service:r},r.name))}),(0,de.jsx)(yD,{logs:t.logs})]})})}var Ve=P(me(),1);var B=P(J(),1),uP=30,xD=50,dP=50;function bD(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function SD(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function mP({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,B.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,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:SD(e.time)}),(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,B.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,B.jsx)(K,{tone:bD(r),mono:!0,children:r>0?r:"\u2014"}),(0,B.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,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function kD(){let e=(t,r="left")=>(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,B.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 ca={since:"",until:"",status:"",path:"",org:""};function pP(e){let t={limit:xD};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 ol({label:e,value:t,placeholder:r,onChange:o,testid:n}){return(0,B.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,B.jsx)(On,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function _D({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,B.jsx)(re,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,B.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,B.jsx)(ol,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,B.jsx)(ol,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,B.jsx)(ol,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,B.jsx)(ol,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,B.jsx)(ol,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,B.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,B.jsx)(I,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,B.jsx)(I,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function wD(e,t){let r=[t,...e];return r.length>uP?r.slice(0,uP):r}function $D({records:e,open:t,onToggle:r}){return(0,B.jsx)(re,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,B.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,B.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,B.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,B.jsx)(mP,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,B.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function PD({page:e,loading:t,error:r,onLoadMore:o}){return(0,B.jsx)(re,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,B.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,B.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,B.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(kD,{}),(0,B.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,B.jsx)(mP,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,B.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,B.jsx)(I,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,B.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 il({label:e,children:t}){return(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,B.jsx)("span",{style:{flex:1}}),(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function zD({turn:e,onBack:t}){return(0,B.jsx)(re,{title:"Turn detail",eyebrow:e.sessionId,right:(0,B.jsx)(I,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,B.jsxs)("div",{"data-testid":"turn-detail",children:[(0,B.jsx)(il,{label:"turn id",children:e.sessionId||"\u2014"}),(0,B.jsx)(il,{label:"project",children:e.project||"\u2014"}),(0,B.jsx)(il,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,B.jsx)(il,{label:"event count",children:e.eventCount}),(0,B.jsx)(il,{label:"status",children:(0,B.jsx)(K,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function ID({turn:e,onOpen:t}){return(0,B.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,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,B.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,B.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,B.jsx)(K,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function RD({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,B.jsx)(re,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,B.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,B.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,B.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{"data-testid":"turns-list",children:e.map((a,s)=>(0,B.jsx)(ID,{turn:a,onOpen:n},a.sessionId||s))}),o&&(0,B.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,B.jsx)(I,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function fP({label:e,active:t,onClick:r,testid:o}){return(0,B.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 gP({wire:e,daemonUp:t}){let[r,o]=Ve.default.useState("requests"),[n,i]=Ve.default.useState(Tx),[a,s]=Ve.default.useState(ca),[l,c]=Ve.default.useState(ca),[d,p]=Ve.default.useState(!1),[f,m]=Ve.default.useState(!1),[x,h]=Ve.default.useState([]),[_,v]=Ve.default.useState(!0),[g,y]=Ve.default.useState([]),[S,w]=Ve.default.useState(null),[E,L]=Ve.default.useState(!1),[H,Z]=Ve.default.useState(!1),[j,we]=Ve.default.useState(null),W=Ve.default.useCallback(async Ee=>{p(!0),m(!1);try{let kt=await e.logsHistory(pP(Ee));i(kt)}catch{m(!0)}finally{p(!1)}},[e]),te=Ve.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let Ee=await e.logsHistory({...pP(a),cursor:n.nextCursor});i(kt=>({records:[...kt.records,...Ee.records],count:kt.count+Ee.count,nextCursor:Ee.nextCursor,persistent:Ee.persistent}))}catch{m(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),ue=Ve.default.useCallback(async()=>{L(!0),Z(!1);try{let Ee=await e.turnsHistory({limit:dP});y(Ee.sessions),w(Ee.nextCursor)}catch{Z(!0)}finally{L(!1)}},[e]),Je=Ve.default.useCallback(async()=>{if(S!==null){L(!0);try{let Ee=await e.turnsHistory({limit:dP,cursor:S});y(kt=>[...kt,...Ee.sessions]),w(Ee.nextCursor)}catch{Z(!0)}finally{L(!1)}}},[e,S]);Ve.default.useEffect(()=>{W(ca),ue()},[W,ue]),Ve.default.useEffect(()=>{let Ee=!0,kt=e.logsStream(Un=>{Ee&&h(lo=>wD(lo,Un))});return()=>{Ee=!1,kt()}},[e]);let Rt=Ve.default.useCallback(()=>{s(l),W(l)},[l,W]),so=Ve.default.useCallback(()=>{c(ca),s(ca),W(ca)},[W]),Sn=Ve.default.useCallback((Ee,kt)=>{c(Un=>({...Un,[Ee]:kt}))},[]);return(0,B.jsx)(Ye,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,B.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,B.jsx)(fP,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,B.jsx)(fP,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,B.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,B.jsx)($D,{records:x,open:_,onToggle:()=>v(Ee=>!Ee)}),(0,B.jsx)(_D,{draft:l,onChangeField:Sn,onApply:Rt,onClear:so}),(0,B.jsx)(PD,{page:n,loading:d,error:f,onLoadMore:()=>{te()}})]}):j!==null?(0,B.jsx)(zD,{turn:j,onBack:()=>we(null)}):(0,B.jsx)(RD,{turns:g,loading:E,error:H,hasMore:S!==null,onOpen:Ee=>we(Ee),onLoadMore:()=>{Je()}})})}var ae=P(me(),1);var Ln=P(me(),1);var ee=P(J(),1),ED=6,TD=150;function CD(e){return new Promise(t=>setTimeout(t,e))}async function Ad(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 jD={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function ao({label:e,value:t}){return(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function OD(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function DD(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 ND(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function LD({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,ee.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ee.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,ee.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,ee.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,ee.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var AD=["review","supersede","keep-both"];function FD({conflict:e,onResolve:t}){let[r,o]=Ln.default.useState("review"),[n,i]=Ln.default.useState(e.memoryAId),[a,s]=Ln.default.useState(!1),l=async()=>{a||(s(!0),await t(e.id,r,r==="supersede"?n:""),s(!1))};return(0,ee.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,ee.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,ee.jsx)(K,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,ee.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,ee.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,ee.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:AD.map(c=>(0,ee.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,ee.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,ee.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,ee.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,ee.jsx)(I,{variant:"secondary",size:"sm",onClick:()=>{l()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function vP({wire:e}){let[t,r]=Ln.default.useState([]),[o,n]=Ln.default.useState([]),[i,a]=Ln.default.useState(_d),[s,l]=Ln.default.useState(!1),c=Ln.default.useCallback(async()=>{let _=await Ad(e,"lifecycleConflicts",[],"open");return r(_),_},[e]);Ln.default.useEffect(()=>{let _=!0;return(async()=>{let[v,g,y]=await Promise.all([Ad(e,"lifecycleConflicts",[],"open"),Ad(e,"lifecycleStaleRefs",[]),Ad(e,"calibration",_d)]);_&&(r(v),n(g),a(y),l(!0))})(),()=>{_=!1}},[e]);let d=Ln.default.useCallback(async(_,v,g)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(_,{verdict:v,...g!==""?{winnerId:g}:{}}):!1)){await c();return}for(let S=0;S<ED;S+=1){if(!(await c()).some(E=>E.id===_))return;await CD(TD)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,m=i.identity?1:Math.max(0,1-i.ece),x=t.length>0?.5:1,h=DD({freshness:p,calibrationConfidence:m,staleness:f,kappa:x});return(0,ee.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...jD,display:"flex",flexDirection:"column",gap:16},children:[(0,ee.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,ee.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,ee.jsx)(K,{tone:OD(h),mono:!0,dot:!0,children:(0,ee.jsxs)("span",{"data-testid":"health-badge",children:["H ",h.toFixed(2)]})})]}),(0,ee.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,ee.jsx)(ao,{label:"freshness",value:ND(p)}),(0,ee.jsx)(ao,{label:"calibrated confidence",value:i.identity?"\u2014":m.toFixed(2)}),(0,ee.jsx)(ao,{label:"open conflicts",value:String(t.length)}),(0,ee.jsx)(ao,{label:"stale refs",value:String(o.length)}),(0,ee.jsx)(ao,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,ee.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),s?t.length===0?(0,ee.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(_=>(0,ee.jsx)(FD,{conflict:_,onResolve:d},_.id)):(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,ee.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),s?o.length===0?(0,ee.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(_=>(0,ee.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,ee.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:_.memoryId}),(0,ee.jsx)("span",{style:{color:"var(--text-tertiary)"},children:_.staleRefs.length>0?_.staleRefs.join(", "):"(refs unrecorded)"})]},_.memoryId)):(0,ee.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,ee.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,ee.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,ee.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,ee.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,ee.jsx)(ao,{label:"ECE",value:i.ece.toFixed(3)}),(0,ee.jsx)(ao,{label:"Brier",value:i.brier.toFixed(3)}),(0,ee.jsx)(ao,{label:"samples",value:String(i.nSamples)})]}),(0,ee.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(_=>(0,ee.jsx)(LD,{lower:_.lower,upper:_.upper,accuracy:_.accuracy},`${_.lower}-${_.upper}`))})]})]})]})}var yP=["fact","convention","preference","decision","gotcha","reference"],Fd="fact",qx=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 $=P(J(),1),hP=50,WD=2500,UD=12,MD=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],BD=5,ZD=150;function HD(e){return new Promise(t=>setTimeout(t,e))}function VD(e){return MD.some(t=>e.startsWith(t))}function ua({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 al={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function JD({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)(K,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function GD({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=ae.default.useState(!1),[a,s]=ae.default.useState(e.content),[l,c]=ae.default.useState(""),[d,p]=ae.default.useState(!1),[f,m]=ae.default.useState(""),[x,h]=ae.default.useState(!1);ae.default.useEffect(()=>{s(e.content),c(""),i(!1),h(!1)},[e.id,e.content,e.version]);let _=l.trim()==="",v=a.trim()==="",g=async()=>{if(d||v||_)return;p(!0),m("");let S=await r(e.id,a,l);p(!1),i(!1),c(""),m(S??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(d)return;p(!0),m("");let S=await o(e.id,"forgotten via dashboard");p(!1),S===null&&m("Forget failed \u2014 the memory is unchanged.")};return(0,$.jsxs)("div",{"data-testid":"memory-detail",style:{...al,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)(K,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,$.jsx)(K,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)(I,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,$.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:S=>s(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)(ua,{label:"scope",value:[e.visibility,e.agentId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(ua,{label:"source",value:[e.sourceType,e.sourceId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(ua,{label:"version",value:e.version>0?String(e.version):""}),(0,$.jsx)(ua,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,$.jsx)(ua,{label:"created",value:e.createdAt}),(0,$.jsx)(ua,{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)(On,{mono:!0,"aria-label":"edit reason",value:l,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)(I,{variant:"primary",onClick:()=>{g()},disabled:d||v||_,children:d?"\u2026":"Save new version"}),(0,$.jsx)(I,{variant:"ghost",onClick:()=>i(!1),disabled:d,children:"Cancel"}),_&&(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)(I,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(I,{variant:"danger",onClick:()=>{y()},disabled:d,children:d?"\u2026":"Confirm forget"}),(0,$.jsx)(I,{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)(I,{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 XD={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 KD({onAdd:e}){let[t,r]=ae.default.useState(""),[o,n]=ae.default.useState(Fd),[i,a]=ae.default.useState(!1),[s,l]=ae.default.useState(""),c=t.trim()==="",d=async()=>{if(i||c)return;a(!0),l("");let p=await e(t,o);if(a(!1),p===null){l("Add failed \u2014 nothing was stored.");return}r(""),n(Fd),l(p)};return(0,$.jsxs)("div",{style:{...al,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:qx[o],style:{...XD,width:180,cursor:"pointer"},children:yP.map(p=>(0,$.jsx)("option",{value:p,title:qx[p],children:p===Fd?`${p} (default)`:p},p))}),(0,$.jsx)(I,{variant:"primary",onClick:()=>{d()},disabled:i||c,children:i?"\u2026":"Add memory"}),s!==""&&(0,$.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:s})]})]})}function YD(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 qD({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,s]=ae.default.useState(!1),[l,c]=ae.default.useState(!1),[d,p]=ae.default.useState(null),[f,m]=ae.default.useState(!1),[x,h]=ae.default.useState(""),_=async()=>{if(l)return;s(!1),c(!0);let g=await t();c(!1),p(g)},v=async()=>{if(f)return;m(!0),h("");let g=await r();m(!1),g.triggered?h(g.status==="running"?"already running":"consolidating\u2026"):h(`skipped \xB7 ${g.reason??"unavailable"}`)};return(0,$.jsxs)("div",{style:{...al,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)(I,{variant:"danger",onClick:()=>{_()},disabled:l,children:l?"\u2026":"Confirm compact"}),(0,$.jsx)(I,{variant:"ghost",onClick:()=>s(!1),disabled:l,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)(I,{variant:"secondary",onClick:()=>s(!0),disabled:l,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(g=>(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:g.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:YD(g)},g.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)(I,{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)(I,{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((g,y)=>(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:g},y))})]})]})}function xP({wire:e,pollinating:t=!1}){let{scope:r}=Wt(),o=r.project,[n,i]=ae.default.useState([]),[a,s]=ae.default.useState(hP),[l,c]=ae.default.useState(!1),[d,p]=ae.default.useState(""),[f,m]=ae.default.useState([]),[x,h]=ae.default.useState(!1),[_,v]=ae.default.useState(!1),[g,y]=ae.default.useState(!1),[S,w]=ae.default.useState(null),[E,L]=ae.default.useState(null),[H,Z]=ae.default.useState(!1),[j,we]=ae.default.useState(!1),[W,te]=ae.default.useState([]),ue=ae.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]);ae.default.useEffect(()=>{ue(a)},[ue,a]),ae.default.useEffect(()=>{if(!j)return;let q=!0,ve=async()=>{if(!q||an())return;let kn=await e.logs(40);if(!q)return;let Mn=kn.filter(rr=>VD(rr.path)).slice(-UD).reverse().map(eo);te(Mn)};ve();let Me=setInterval(()=>{ve()},WD);return()=>{q=!1,clearInterval(Me)}},[j,e]);let Je=ae.default.useCallback(async()=>{let q=d.trim();if(q===""){v(!1),m([]);return}h(!0);let{memories:ve,degraded:Me}=await e.recall(q,o);m(ve),y(Me),v(!0),h(!1)},[d,e,o]),Rt=ae.default.useCallback(()=>{p(""),v(!1),m([])},[]),so=ae.default.useCallback(async q=>{w(q),L(null),Z(!1);let ve=await e.getMemory(q);if(ve===null){Z(!0);return}L(ve)},[e]),Sn=ae.default.useCallback(()=>{w(null),L(null),Z(!1)},[]),Sr=ae.default.useCallback(async(q,ve)=>{let Me=null;for(let kn=0;kn<BD;kn+=1){if(Me=await e.getMemory(q),Me!==null&&ve(Me))return Me;await HD(ZD)}return Me},[e]),Ee=ae.default.useCallback(async(q,ve,Me)=>{if(await e.modifyMemory(q,{content:ve,reason:Me})===null){let rr=await e.getMemory(q);return rr!==null&&L(rr),null}let Mn=await Sr(q,rr=>rr.content===ve||rr.version>0);return Mn!==null&&L(Mn),ue(a),"saved \xB7 new version"},[e,Sr,ue,a]),kt=ae.default.useCallback(async(q,ve)=>await e.forgetMemory(q,{reason:ve})===null?null:(Sn(),ue(a),"forgotten"),[e,Sn,ue,a]),Un=ae.default.useCallback(async(q,ve)=>{let Me=await e.addMemory({content:q,...ve!==""?{type:ve}:{}});return Me===null?null:(await ue(a),Me.id!==null?`stored \xB7 ${Me.id}`:`stored \xB7 ${Me.action||"ok"}`)},[e,ue,a]),lo=ae.default.useCallback(()=>e.compact(),[e]),he=ae.default.useCallback(()=>e.pollinate(),[e]),Kt=ae.default.useCallback(()=>{we(q=>!q),te([])},[]),Et=S!==null;return(0,$.jsx)(Ye,{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)(oo,{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)(On,{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"&&Je()}})}),(0,$.jsx)(I,{variant:"primary",size:"lg",onClick:()=>{Je()},disabled:x,children:x?"\u2026":"Search"}),_&&(0,$.jsx)(I,{variant:"ghost",size:"lg",onClick:Rt,children:"Clear"})]}),_&&g&&(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)(K,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),Et?H?(0,$.jsxs)("div",{"data-testid":"memory-forgotten",style:{...al,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)(I,{variant:"ghost",size:"sm",onClick:Sn,children:"\u2190 back"})})]}):E!==null?(0,$.jsx)(GD,{record:E,onClose:Sn,onEdit:Ee,onForget:kt}):(0,$.jsx)("div",{style:{...al,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,$.jsxs)($.Fragment,{children:[_?(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)(zd,{...q,pollinating:t&&ve===1},q.memoryKey))}):(0,$.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:l?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)(JD,{record:q,onOpen:so},q.id)),n.length>=a&&(0,$.jsx)("div",{style:{paddingTop:4},children:(0,$.jsx)(I,{variant:"ghost",size:"sm",onClick:()=>s(q=>q+hP),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)(KD,{onAdd:Un}),(0,$.jsx)(vP,{wire:e}),(0,$.jsx)(qD,{pollinating:t,onCompact:lo,onPollinate:he,watchLines:W,watching:j,onToggleWatch:Kt})]})]})]})})}var Ie=P(me(),1);var A=P(J(),1),Ud="__unsorted__",Qx={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function eb(){return(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function QD(e){if(e===null||e==="")return(0,A.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,A.jsx)(eb,{}):new Date(t).toLocaleString()}function eN({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=Ie.default.useState(!1),[a,s]=Ie.default.useState(null),[l,c]=Ie.default.useState(!1),[d,p]=Ie.default.useState(""),f=Ie.default.useRef(!1),m=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),s(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,A.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...Qx,display:"flex",flexDirection:"column",gap:10},children:[(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,A.jsx)(K,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)(I,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,A.jsx)(I,{variant:"ghost",size:"sm",onClick:()=>i(x=>!x),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,A.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,A.jsx)(Wd,{label:"bound path",value:(0,A.jsx)(tN,{paths:e.boundPaths})}),(0,A.jsx)(Wd,{label:"git remote",value:e.remote!==""?e.remote:(0,A.jsx)(eb,{})}),(0,A.jsx)(Wd,{label:"last capture",value:QD(e.lastCapture)}),(0,A.jsx)(Wd,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,A.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,A.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,A.jsx)(SP,{wire:t,onSelect:s,selected:a}),(0,A.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,A.jsx)(I,{variant:"danger",size:"sm",onClick:()=>{m()},disabled:l||a===null,"data-testid":"project-unbind-confirm",children:l?"\u2026":"Unbind this folder"}),d!==""&&(0,A.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:d})]})]})]})}function tN({paths:e}){return e.length===0?(0,A.jsx)(eb,{}):(0,A.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,A.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function Wd({label:e,value:t}){return(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function nN({inbox:e}){return(0,A.jsxs)("div",{"data-testid":"inbox-row",style:{...Qx,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,A.jsx)(K,{tone:"neutral",mono:!0,children:Ud}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function rN({onNew:e,onImport:t}){let[r,o]=Ie.default.useState(!1);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(I,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,A.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,A.jsx)(bP,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,A.jsx)(bP,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function bP({label:e,hint:t,onClick:r,testId:o}){return(0,A.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,A.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function oN({wire:e,onClose:t,onImported:r}){let[o,n]=Ie.default.useState([]),[i,a]=Ie.default.useState(!1),[s,l]=Ie.default.useState(null),[c,d]=Ie.default.useState(null),[p,f]=Ie.default.useState(!1),[m,x]=Ie.default.useState(""),h=Ie.default.useRef(!1);Ie.default.useEffect(()=>{let v=!0;return(async()=>{let g=await e.scopeProjects({unbound:!0});v&&(n(g.filter(y=>y.projectId!==Ud)),a(!0))})(),()=>{v=!1}},[e]);let _=Ie.default.useCallback(async()=>{if(s===null||c===null||h.current)return;h.current=!0,f(!0),x("");let v=await e.bindExistingProject({path:c,projectId:s});if(f(!1),h.current=!1,v.bound){r(v);return}x(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[s,c,e,r]);return(0,A.jsx)(iN,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,A.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,A.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,A.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,A.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>l(v.projectId),"aria-pressed":s===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:s===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${s===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:s===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,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),s!==null&&(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,A.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,A.jsx)("span",{style:{color:"var(--honey)"},children:s})]}),(0,A.jsx)(SP,{wire:e,onSelect:d,selected:c})]}),(0,A.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,A.jsx)(I,{variant:"primary",onClick:()=>{_()},disabled:p||s===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,A.jsx)(I,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),m!==""&&(0,A.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:m})]})]})})}function SP({wire:e,onSelect:t,selected:r}){let[o,n]=Ie.default.useState(""),[i,a]=Ie.default.useState(null),[s,l]=Ie.default.useState([]),[c,d]=Ie.default.useState(!1),p=Ie.default.useCallback(async f=>{let m=await e.fsBrowse(f);n(m.path),a(m.parent),l(m.children),d(!0)},[e]);return Ie.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&s.length===0?(0,A.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,A.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,A.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,A.jsx)(I,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,A.jsx)(I,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:s.map(f=>(0,A.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,A.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,A.jsx)(K,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,A.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function iN({title:e,onClose:t,testId:r,children:o}){return(0,A.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,A.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,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,A.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)(I,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function kP({wire:e}){let{scope:t,setScope:r}=Wt(),[o,n]=Ie.default.useState([]),[i,a]=Ie.default.useState(!1),[s,l]=Ie.default.useState("none"),c=Ie.default.useCallback(async()=>{let h=await e.scopeProjects();n(h),a(!0)},[e]);Ie.default.useEffect(()=>{c()},[c]);let d=o.filter(h=>h.boundLocally&&h.projectId!==Ud),p=o.find(h=>h.projectId===Ud),f=Ie.default.useCallback(h=>{r({org:t.org,workspace:t.workspace,project:h})},[r,t.org,t.workspace]),m=Ie.default.useCallback(h=>{l("none"),c()},[c]),x=Ie.default.useCallback(h=>{l("none"),c()},[c]);return(0,A.jsxs)(Ye,{eyebrow:"projects",title:"Projects",right:(0,A.jsx)(rN,{onNew:()=>l("new"),onImport:()=>l("import")}),children:[s==="new"&&(0,A.jsxs)("div",{style:{...Qx,marginBottom:16},children:[(0,A.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,A.jsx)(aa,{wire:e,onBound:m,onCancel:()=>l("none")})]}),s==="import"&&(0,A.jsx)(oN,{wire:e,onClose:()=>l("none"),onImported:x}),(0,A.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?d.length===0?(0,A.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,A.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):d.map(h=>(0,A.jsx)(eN,{project:h,wire:e,onOpen:f,onUnbound:()=>{c()}},h.projectId)):(0,A.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,A.jsx)(nN,{inbox:p})]})]})}var tr=P(me(),1);var Md=P(me(),1),bn=P(J(),1),da={width:640,height:200},An={top:12,right:12,bottom:18,left:12};function _P(e,t){return e.includes("net")?"var(--honey)":e.includes("infra")||e.includes("cost")?"var(--severity-info)":t?"var(--severity-warning)":"var(--verified)"}function aN(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 sN(e){let t=da.height-An.top-An.bottom,r=(0-e.min)/(e.max-e.min);return An.top+t-r*t}function lN(e,t){let r=e.points;if(r.length===0)return"";let o=da.width-An.left-An.right,n=da.height-An.top-An.bottom,i=r.length>1?o/(r.length-1):0,a=t.max-t.min;return r.map((s,l)=>{let c=An.left+l*i,d=Math.max(0,Math.min(1,(s.cents-t.min)/a)),p=An.top+n-d*n;return`${c.toFixed(1)},${p.toFixed(1)}`}).join(" ")}function cN(){try{return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}catch{return!1}}function wP({trend:e}){let t=Md.default.useMemo(()=>cN(),[]),[r,o]=Md.default.useState(t);Md.default.useEffect(()=>{if(t)return;let s=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(s)},[t]);let n=e.series.some(s=>s.points.length>0);if(e.status==="absent"||!n)return(0,bn.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=aN(e.series),a=sN(i);return(0,bn.jsxs)("div",{"data-testid":"roi-trend-chart",children:[(0,bn.jsxs)("svg",{viewBox:`0 0 ${da.width} ${da.height}`,style:{width:"100%",height:200,display:"block"},role:"img","aria-label":"ROI trend over time",children:[(0,bn.jsx)("line",{x1:An.left,y1:a,x2:da.width-An.right,y2:a,stroke:"var(--border-subtle)",strokeWidth:"1"}),e.series.map(s=>{let l=lN(s,i);if(l==="")return null;let c=_P(s.label,s.modeled);return(0,bn.jsx)("polyline",{"data-testid":`roi-trend-series-${s.label}`,"data-modeled":s.modeled?"true":"false",points:l,fill:"none",stroke:c,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:s.modeled?"5 4":void 0,style:{opacity:r?1:0,transition:t?void 0:"opacity var(--dur-base) var(--ease-out)"}},s.label)})]}),(0,bn.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:14,marginTop:8},children:e.series.map(s=>(0,bn.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,bn.jsx)("svg",{width:22,height:8,"aria-hidden":"true",style:{flex:"none"},children:(0,bn.jsx)("line",{x1:1,y1:4,x2:21,y2:4,stroke:_P(s.label,s.modeled),strokeWidth:"2",strokeDasharray:s.modeled?"4 3":void 0})}),(0,bn.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[s.label,s.modeled?" (est.)":""]})]},s.label))})]})}var D=P(J(),1),uN="#/settings",dN=6e4,pN=15e3,fN="30d",mN=["7d","30d","90d"],Bd="\u2014";function nr(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 gN(e){return e===null?Bd:`$${(e/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}/Mtok`}function $P(e){return e?"warning":"verified"}function vN(e){return e?"var(--text-secondary)":"var(--text-primary)"}function IP(e){return e<0?"var(--severity-critical)":"var(--verified)"}function nb(e){return e==="allocated"}function yN(e){return e>0?"var(--severity-critical)":e<0?"var(--verified)":"var(--text-tertiary)"}function pa({children:e,color:t="var(--text-tertiary)"}){return(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:t},children:e})}function hN({assumption:e}){let[t,r]=tr.default.useState(!1),o=e.assumptionText!==""?e.assumptionText:"Assumption not yet provided.";return(0,D.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,D.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,D.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,D.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 PP({label:e,cents:t,modeled:r,dash:o,indent:n,tone:i,toneLabel:a,trailing:s,testid:l}){return(0,D.jsxs)("div",{"data-testid":l,style:{display:"flex",alignItems:"center",gap:10,padding:"10px 6px",paddingLeft:n?22:6,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)("span",{style:{fontSize:14,color:n?"var(--text-secondary)":"var(--text-primary)"},children:e}),(0,D.jsx)(K,{tone:i,mono:!0,children:a}),s,(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{"data-testid":`${l}-figure`,"data-modeled":r?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:n?15:17,fontWeight:700,color:o?"var(--text-tertiary)":vN(r)},children:o?Bd:nr(t,r)})]})}function tb(e){return e==="absent"||e==="unreachable"||e==="unauthenticated"}function xN({net:e,onRetry:t,retrying:r}){let o=e.computed&&e.status==="ok",n=nb(e.costBasis);return(0,D.jsx)(re,{title:"Net ROI",eyebrow:e.modeled?"saved \u2212 (infra + pollination) \xB7 est.":"saved \u2212 (infra + pollination)",children:(0,D.jsxs)("div",{"data-testid":"net-hero",style:{display:"flex",alignItems:"center",gap:16,padding:"14px 6px",flexWrap:"wrap"},children:[(0,D.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?IP(e.netCents):"var(--text-tertiary)"},children:o?nr(e.netCents,!0):Bd}),o?(0,D.jsx)(K,{tone:"warning",mono:!0,children:"est."}):e.status==="unreachable"?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(pa,{children:"net not computed - billing is unreachable"}),(0,D.jsx)(I,{variant:"ghost",size:"sm","data-testid":"net-retry",disabled:r,onClick:t,children:r?"retrying...":"Retry"})]}):(0,D.jsx)(pa,{children:"net not computed yet"}),o&&n&&(0,D.jsx)(pa,{children:"includes an allocated (estimated) infra share"})]})})}function bN(){return(0,D.jsx)("span",{"data-testid":"claude-code-only",style:{marginLeft:4,display:"inline-flex"},children:(0,D.jsx)(K,{tone:"info",children:"Claude Code only"})})}function SN({savings:e}){let t=tb(e.status);return(0,D.jsx)(re,{title:"Savings",eyebrow:"measured cache \xB7 modeled memory injection",right:e.status==="partial"?(0,D.jsx)(bN,{}):void 0,children:(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,D.jsx)(PP,{testid:"savings-measured",label:"Measured cache savings",cents:e.measuredCents,modeled:!1,dash:t,tone:$P(!1),toneLabel:"measured"}),(0,D.jsx)(PP,{testid:"savings-modeled",label:"Modeled memory-injection savings",cents:e.modeledCents,modeled:!0,dash:t,indent:!0,tone:$P(!0),toneLabel:"modeled",trailing:(0,D.jsx)(hN,{assumption:e.assumption})}),(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)(pa,{children:"blended rate"}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{"data-testid":"blended-rate",style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:gN(e.blendedCentsPerMtok)})]})]})})}function zP({label:e,cents:t,deltaCents:r,dash:o,testid:n}){return(0,D.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,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,D.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?Bd:nr(t)}),!o&&r!==void 0&&r!==0&&(0,D.jsxs)("span",{"data-testid":`${n}-delta`,style:{fontFamily:"var(--font-mono)",fontSize:12,color:yN(r)},children:[r>0?"\u25B2":"\u25BC"," ",nr(Math.abs(r))," vs prior period"]})]})}function kN({infraCents:e,infraDash:t,infraBasis:r,pollinationCents:o,pollinationDash:n,pollinationLines:i,infraDeltaCents:a}){return(0,D.jsxs)(re,{title:"Cost",eyebrow:"infra \xB7 pollination",children:[(0,D.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12,marginBottom:6},children:[(0,D.jsx)(zP,{testid:"infra-kpi",label:nb(r)?"Infra (allocated, est.)":"Infra cost",cents:e,deltaCents:a,dash:t}),(0,D.jsx)(zP,{testid:"pollination-kpi",label:"Pollination cost",cents:o,dash:n})]}),(0,D.jsx)("div",{"data-testid":"pollination-lines",children:n||i.length===0?(0,D.jsx)("div",{style:{padding:"10px 6px",fontSize:13,color:"var(--text-tertiary)"},children:n?"Pollination cost unavailable.":"No pollination contributors yet."}):i.map((s,l)=>(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)(pa,{children:s.label}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:nr(s.cents)})]},s.label||l))})]})}function RP({label:e,active:t,onClick:r,testid:o}){return(0,D.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 _N=["org","team","agent","project"];function wN({rollup:e,perUserAvailable:t}){return e.dimension==="agent"&&!t?(0,D.jsx)("div",{"data-testid":`rollup-${e.dimension}`,children:(0,D.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,D.jsx)(pa,{color:"var(--severity-info)",children:"Per-user requires verified login - sign in to attribute ROI per person."})})}):(0,D.jsxs)("div",{"data-testid":`rollup-${e.dimension}`,children:[e.mixedBasis&&(0,D.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,D.jsxs)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e.dimension," rows yet."]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,padding:"4px 6px 8px"},children:["","saved","infra","net"].map((r,o)=>(0,D.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=nb(r.costBasis);return(0,D.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,D.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,D.jsx)("span",{style:{fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label||r.key}),n&&(0,D.jsx)("span",{"data-testid":`rollup-allocated-${r.key}`,style:{display:"inline-flex"},children:(0,D.jsx)(K,{tone:"warning",mono:!0,children:"allocated est."})})]}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:nr(r.measuredSavingsCents)}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:n?"var(--text-secondary)":"var(--text-primary)",textAlign:"right"},children:n?nr(r.infraCostCents,!0):nr(r.infraCostCents)}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:IP(r.netCents),textAlign:"right"},children:n?nr(r.netCents,!0):nr(r.netCents)})]},r.key||o)})]})]})}function $N({rollups:e,perUserAvailable:t}){let r=_N.filter(s=>e.some(l=>l.dimension===s)),[o,n]=tr.default.useState(r[0]??"org"),i=r.includes(o)?o:r[0]??"org",a=e.find(s=>s.dimension===i);return(0,D.jsx)(re,{title:"Rollups",eyebrow:"org \xB7 team \xB7 agent \xB7 project",right:(0,D.jsx)("div",{style:{display:"flex",gap:6},children:r.map(s=>(0,D.jsx)(RP,{testid:`rollup-tab-${s}`,label:s,active:s===i,onClick:()=>n(s)},s))}),children:r.length===0||a===void 0?(0,D.jsx)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:"No rollups yet."}):(0,D.jsx)(wN,{rollup:a,perUserAvailable:t})})}function PN(){return(0,D.jsx)(re,{title:"ROI ledger",eyebrow:"locked",children:(0,D.jsxs)("div",{"data-testid":"auth-gate",style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,padding:"20px 8px"},children:[(0,D.jsx)("span",{"data-testid":"auth-redacted-status",style:{display:"inline-flex"},children:(0,D.jsx)(K,{tone:"neutral",mono:!0,dot:!0,children:"not connected"})}),(0,D.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,D.jsx)(I,{variant:"primary",size:"sm","data-testid":"auth-settings-cta",onClick:()=>{window.location.hash=uN},children:"Open Settings"})]})})}function EP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=tr.default.useState(hd),[i,a]=tr.default.useState(xd),[s,l]=tr.default.useState(fN),[c,d]=tr.default.useState(!1),p=tr.default.useCallback(async()=>{let h=await e.roi(r);n(h)},[e,r]);Nn(p,dN),Nn(p,pN),tr.default.useEffect(()=>{let h=!0;return(async()=>{let _=await e.roiTrend(s,r);h&&a(_)})(),()=>{h=!1}},[e,s,r]);let f=tr.default.useCallback(async()=>{d(!0);try{await p();let h=await e.roiTrend(s,r);a(h)}finally{d(!1)}},[p,e,s,r]),m=o.savings.status==="unauthenticated"||o.net.status==="unauthenticated",x=o.scopedAcrossDevices?"across devices":"this device";return(0,D.jsx)(Ye,{title:"ROI",eyebrow:`net-roi ledger \xB7 ${x}`,children:m?(0,D.jsx)(PN,{}):(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,D.jsx)(xN,{net:o.net,onRetry:()=>{f()},retrying:c}),(0,D.jsx)(SN,{savings:o.savings}),(0,D.jsx)(kN,{infraCents:o.infra.cents,infraDash:tb(o.infra.status),infraBasis:o.infra.costBasis,pollinationCents:o.pollination.cents,pollinationDash:tb(o.pollination.status),pollinationLines:o.pollination.lines}),(0,D.jsx)(re,{title:"Trend",eyebrow:"measured (solid) \xB7 modeled (dashed)",right:(0,D.jsx)("div",{style:{display:"flex",gap:6},children:mN.map(h=>(0,D.jsx)(RP,{testid:`trend-range-${h}`,label:h,active:h===s,onClick:()=>l(h)},h))}),children:(0,D.jsx)(wP,{trend:i})}),(0,D.jsx)($N,{rollups:o.rollups,perUserAvailable:o.perUserAvailable}),(0,D.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,D.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,D.jsxs)("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)"},children:["\xB7 rates as of ",o.ratesAsOf]})]})]})})}var be=P(me(),1);var TP=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 z=P(J(),1),zN=5e3;function Wo({label:e,children:t}){return(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,z.jsx)("span",{style:{flex:1}}),(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function IN(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function RN(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function EN({wire:e}){let[t,r]=be.default.useState(null),[o,n]=be.default.useState(!1),[i,a]=be.default.useState(!1),s=be.default.useRef(!1),l=be.default.useCallback(async()=>{if(s.current)return;s.current=!0,n(!0),a(!1);let c=await e.setupLogin();if(c===null){a(!0),n(!1),s.current=!1;return}r(c)},[e]);return(0,z.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:10,padding:"10px 6px"},children:[(0,z.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Not connected to DeepLake."}),t===null?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(I,{variant:"primary",size:"sm",disabled:o,onClick:()=>{l()},"data-testid":"auth-connect-button",children:o?"Starting\u2026":"Connect to DeepLake"}),i&&(0,z.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,z.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,z.jsxs)("div",{"data-testid":"auth-connect-grant",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,z.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Enter this code to finish signing in:"}),(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:16,color:"var(--honey)",letterSpacing:"0.08em"},children:t.user_code}),(0,z.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,z.jsx)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]}),(0,z.jsxs)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:["or, from your terminal: ",(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--honey)"},children:"honeycomb login"})]})]})}function TN({wire:e}){let[t,r]=be.default.useState(zx),[o,n]=be.default.useState(!0),[i,a]=be.default.useState(!1),s=be.default.useCallback(async()=>{let c=await e.authStatus();r(c),n(!1)},[e]),l=be.default.useCallback(async()=>{a(!0),await e.logout(),await s(),a(!1)},[e,s]);return be.default.useEffect(()=>{let c=!0,d=async()=>{!c||an()||await s()};d();let p=setInterval(()=>{d()},zN),f=()=>{d()};return typeof window<"u"&&window.addEventListener("focus",f),()=>{c=!1,clearInterval(p),typeof window<"u"&&window.removeEventListener("focus",f)}},[s]),(0,z.jsx)(re,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,z.jsx)(K,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,z.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,z.jsxs)("div",{"data-testid":"auth-connected",children:[(0,z.jsx)(Wo,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,z.jsx)(Wo,{label:"org id",children:t.orgId||"\u2014"}),(0,z.jsx)(Wo,{label:"workspace",children:t.workspace||"\u2014"}),(0,z.jsx)(Wo,{label:"agent",children:t.agentId||"\u2014"}),(0,z.jsx)(Wo,{label:"source",children:IN(t.source)}),(0,z.jsx)(Wo,{label:"last login",children:t.savedAt||"unknown"}),(0,z.jsx)(Wo,{label:"token expiry",children:RN(t.expiresAt)}),(0,z.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:10},children:(0,z.jsx)(I,{variant:"secondary",size:"sm",disabled:i,onClick:()=>{l()},"data-testid":"auth-logout-button",children:i?"Logging out\u2026":"Log out"})})]}):(0,z.jsx)("div",{"data-testid":"auth-disconnected",children:(0,z.jsx)(EN,{wire:e})})})}var CN=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function jN({id:e,label:t,present:r,onSave:o}){let[n,i]=be.default.useState(""),[a,s]=be.default.useState(!1),[l,c]=be.default.useState(!1),d=be.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}s(!0),c(!1);let f=await o(e,p);s(!1),f?i(""):c(!0)},[n,e,o]);return(0,z.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,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,z.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,z.jsx)(On,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),l&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&d()},"data-testid":`provider-input-${e}`})}),(0,z.jsx)(I,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{d()},children:a?"saving\u2026":"Save key"}),(0,z.jsx)(K,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),l&&(0,z.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function ON({wire:e,secretNames:t,onSaved:r}){let o=be.default.useCallback(async(n,i)=>{let a=na[n];if(a===void 0)return!1;let s=await e.setSecret(a,i);return s&&r(),s},[e,r]);return(0,z.jsx)(re,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,z.jsx)("div",{"data-testid":"provider-keys",children:CN.map(n=>{let i=na[n.id]??"",a=i!==""&&t.includes(i);return(0,z.jsx)(jN,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var DN=[{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 NN({value:e,onChange:t}){return(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,z.jsx)("span",{style:{flex:1}}),(0,z.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:DN.map(r=>(0,z.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function LN({settings:e,catalog:t,secretNames:r,onSave:o,portkeyEnabled:n}){let i=String(e[tt.recallMode]??"");return(0,z.jsx)(re,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,z.jsxs)("div",{"data-testid":"search-inference",children:[(0,z.jsx)(NN,{value:i,onChange:a=>{o(tt.recallMode,a)}}),n===!0&&(0,z.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,z.jsx)("div",{style:{marginTop:8,opacity:n===!0?.45:1,transition:"opacity 0.15s"},children:(0,z.jsx)(Ed,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function AN({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,z.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,z.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,z.jsx)(K,{tone:"honey",mono:!0,children:e}),(0,z.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,z.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,z.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,z.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function FN(){return(0,z.jsx)(re,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,z.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,z.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."}),TP.map(e=>(0,z.jsx)(AN,{...e},e.configPath))]})})}function WN({wire:e}){let[t,r]=be.default.useState(null),[o,n]=be.default.useState(!1),i=be.default.useCallback(async()=>{try{let l=await e.health();r(l?.reasons?.embeddings==="on")}catch{r(!1)}},[e]);be.default.useEffect(()=>{i()},[i]);let a=be.default.useCallback(async()=>{if(t===null)return;n(!0);let l=!t;await e.setEmbeddings(l)&&r(l),n(!1),i()},[t,e,i]);return(0,z.jsx)(re,{title:"Embeddings",eyebrow:"semantic recall \xB7 local model",right:(0,z.jsx)(K,{tone:t?"verified":"neutral",mono:!0,dot:!0,children:t===null?"\u2026":t?"on":"off"}),children:(0,z.jsxs)("div",{"data-testid":"embeddings-section",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Semantic vector recall"}),(0,z.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,z.jsx)(I,{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 UN({wire:e}){let[t,r]=be.default.useState(!1),[o,n]=be.default.useState(!1),[i,a]=be.default.useState(!1),[s,l]=be.default.useState(!1),[c,d]=be.default.useState(null),[p,f]=be.default.useState(!1),m=be.default.useCallback(async()=>{r(!1),n(!0),await e.restartDaemon()||n(!1)},[e]),x=be.default.useCallback(async()=>{a(!1),l(!0),f(!1);let h=await e.uninstall();d(h),f(h===null),l(!1)},[e]);return(0,z.jsxs)(re,{title:"System",eyebrow:"restart \xB7 uninstall",children:[(0,z.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,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Restart the daemon"}),(0,z.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Stops and relaunches the background daemon. The dashboard reconnects automatically."})]}),o?(0,z.jsx)("span",{"data-testid":"system-restarting",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:"restarting\u2026"}):t?(0,z.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,z.jsx)(I,{variant:"secondary",size:"sm",onClick:()=>r(!1),children:"Cancel"}),(0,z.jsx)(I,{variant:"danger",size:"sm",onClick:()=>{m()},"data-testid":"system-restart-confirm",children:"Confirm restart"})]}):(0,z.jsx)(I,{variant:"secondary",size:"sm",onClick:()=>r(!0),"data-testid":"system-restart-button",children:"Restart"})]}),(0,z.jsxs)("div",{"data-testid":"system-uninstall",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,z.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Uninstall Honeycomb"}),(0,z.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,z.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,z.jsx)(I,{variant:"secondary",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,z.jsx)(I,{variant:"danger",size:"sm",disabled:s,onClick:()=>{x()},"data-testid":"system-uninstall-confirm",children:s?"Working\u2026":"Confirm uninstall"})]}):(0,z.jsx)(I,{variant:"danger",size:"sm",onClick:()=>a(!0),"data-testid":"system-uninstall-button",children:"Uninstall"})]}),c!==null&&(0,z.jsxs)("div",{"data-testid":"system-uninstall-result",style:{display:"flex",flexDirection:"column",gap:6,padding:"8px 0"},children:[(0,z.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:c.note}),c.harnesses.length>0&&(0,z.jsxs)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:["Detected: ",c.harnesses.join(", ")]}),(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:c.command})]}),p&&(0,z.jsxs)("span",{"data-testid":"system-uninstall-error",style:{fontSize:12,color:"var(--severity-critical)"},children:["Could not load uninstall guidance. Retry, or run ",(0,z.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:"honeycomb uninstall"})," in your terminal."]})]})]})}function CP({wire:e}){let[t,r]=be.default.useState(Zs),[o,n]=be.default.useState([]),i=be.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=be.default.useCallback(async()=>{n(await e.secretNames())},[e]);be.default.useEffect(()=>{i(),a()},[i,a]);let s=be.default.useCallback(async(d,p)=>{let f=await e.setSetting(d,p);return await i(),f},[e,i]),l=t.settings[tt.portkeyEnabled]===!0,c=be.default.useCallback(async d=>{let p=await e.setSecret(na.portkey,d);return await a(),p},[e,a]);return(0,z.jsx)(Ye,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,z.jsx)(TN,{wire:e}),(0,z.jsx)(ON,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,z.jsx)(WN,{wire:e}),(0,z.jsx)(D$,{settings:t.settings,secretNames:o,onSaveSetting:s,onSaveKey:c}),(0,z.jsx)(LN,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:s,portkeyEnabled:l}),(0,z.jsx)(FN,{}),(0,z.jsx)(UN,{wire:e})]})})}var Fn=P(me(),1);var Y=P(J(),1),MN=5e3,sl=12;function Zd(e,t){return`${e}:${t}`}function fa({label:e,children:t}){return(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,Y.jsx)("span",{style:{flex:1}}),(0,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function OP({state:e}){let t=Lx[e]??"neutral";return(0,Y.jsx)(K,{tone:t,mono:!0,dot:!0,children:e})}function BN({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,Y.jsx)(I,{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,Y.jsx)(I,{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,Y.jsx)(I,{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,Y.jsx)(I,{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,Y.jsx)(I,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function ZN({row:e}){return(0,Y.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,Y.jsxs)(re,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,Y.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,Y.jsx)(fa,{label:"state",children:(0,Y.jsx)(OP,{state:e.state})}),(0,Y.jsx)(fa,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,Y.jsx)(fa,{label:"scope",children:e.scope||"\u2014"}),(0,Y.jsx)(fa,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,Y.jsx)(fa,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,Y.jsx)(fa,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function HN({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,Y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,Y.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,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,Y.jsx)(OP,{state:e.state}),e.version>0&&(0,Y.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,Y.jsx)(BN,{row:e,flight:r,onAction:n})]}),t&&(0,Y.jsx)(ZN,{row:e})]})}function VN({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,Y.jsx)(re,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,Y.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,Y.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(s=>(0,Y.jsx)(HN,{row:s,open:r===Zd(e,s.name),flight:o[Zd(e,s.name)],onToggle:n,onAction:i},`${s.assetType}:${s.name}`))})})}function rb({label:e,value:t,tone:r}){return(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,Y.jsx)(K,{tone:r,mono:!0,children:t}),(0,Y.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function JN(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 GN({view:e}){let t=JN(e);return(0,Y.jsx)(re,{title:"Sync state",eyebrow:"per scope",children:(0,Y.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,Y.jsx)(rb,{label:"shared with team",value:t.shared,tone:"verified"}),(0,Y.jsx)(rb,{label:"local only",value:t.local,tone:"neutral"}),(0,Y.jsx)(rb,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function XN(e){return e.filter(wd).slice(-sl).reverse().map(t=>{let r=eo(t),o=g$(t);return o!==""?`${r} \xB7 ${o}`:r})}function KN(e,t){if(!wd(t))return e;let r=[...e,t];return r.length>sl?r.slice(-sl):r}function DP({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=Fn.default.useState(kd),[i,a]=Fn.default.useState([]),[s,l]=Fn.default.useState("skill"),[c,d]=Fn.default.useState(null),[p,f]=Fn.default.useState({});Fn.default.useEffect(()=>{if(r===void 0){n(kd);return}let v=!0,g=async()=>{if(!v||an())return;let S=await e.assetsView();v&&n(S)};g();let y=setInterval(()=>{g()},MN);return()=>{v=!1,clearInterval(y)}},[e,r]),Fn.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(sl*6);v&&a(y.filter(wd).slice(-sl))})();let g=e.logsStream(y=>{v&&a(S=>KN(S,y))});return()=>{v=!1,g()}},[e]);let m=Fn.default.useMemo(()=>XN(i),[i]),x=Fn.default.useCallback(v=>{let g=Zd(v.assetType,v.name);d(y=>y===g?null:g)},[]),h=Fn.default.useCallback((v,g)=>{let y=Zd(g.assetType,g.name);f(S=>({...S,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:g.assetType,name:g.name,honeycombId:g.honeycombId!==""?g.honeycombId:void 0}),n(await e.assetsView())}finally{f(S=>{let w={...S};return delete w[y],w})}})()},[e]),_=s==="skill"?o.skills:o.agents;return(0,Y.jsx)(Ye,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,Y.jsx)(oo,{surface:"sync state"}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(GN,{view:o}),(0,Y.jsx)("div",{style:{height:16}}),(0,Y.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,Y.jsx)(jP,{label:"Skills",active:s==="skill",count:o.skills.length,onClick:()=>l("skill")}),(0,Y.jsx)(jP,{label:"Agents",active:s==="agent",count:o.agents.length,onClick:()=>l("agent")})]}),(0,Y.jsx)(VN,{kind:s,rows:_,openKey:c,inFlight:p,onToggle:x,onAction:h}),(0,Y.jsx)("div",{style:{height:16}}),(0,Y.jsx)(to,{lines:m})]})})}function jP({label:e,active:t,count:r,onClick:o}){return(0,Y.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,Y.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var pe=P(J(),1);function Wn({children:e}){return(0,pe.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 YN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,pe.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,pe.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,pe.jsx)("rect",{x:14,y:14,width:7,height:7})]}),qN=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,pe.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,pe.jsx)("path",{d:"M13 15h4"})]}),QN=(0,pe.jsx)(Wn,{children:(0,pe.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"})}),e6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,pe.jsx)("path",{d:"M12 8v8"})]}),t6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,pe.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,pe.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,pe.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),n6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M6 4h8a2 2 0 0 1 2 2v12H4V6a2 2 0 0 1 2-2z"}),(0,pe.jsx)("path",{d:"M8 8h6M8 12h4"}),(0,pe.jsx)("path",{d:"M14 4v4h4"})]}),r6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,pe.jsx)("path",{d:"M21 4v4h-4"})]}),o6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,pe.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),i6=(0,pe.jsx)(Wn,{children:(0,pe.jsx)("path",{d:"M3 12h4l2-7 4 14 2-7h6"})}),a6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("path",{d:"M4 19V5"}),(0,pe.jsx)("path",{d:"M4 19h16"}),(0,pe.jsx)("path",{d:"M7 15l4-5 3 3 5-7"})]}),s6=(0,pe.jsxs)(Wn,{children:[(0,pe.jsx)("circle",{cx:12,cy:12,r:3}),(0,pe.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"})]}),Zx="/projects",Hd=[{route:"/",label:"Dashboard",icon:YN,component:tP},{route:Zx,label:"Projects",icon:QN,component:kP},{route:"/harnesses",label:"Harnesses",icon:qN,component:K$,dynamic:{resolve:Y$}},{route:"/memories",label:"Memories",icon:e6,component:xP},{route:"/graph",label:"Memory Graph",icon:t6,component:iP},{route:"/hive-graph",label:"Hive Graph",icon:n6,component:lP},{route:"/sync",label:"Sync",icon:r6,component:DP},{route:"/logs",label:"Logs",icon:o6,component:gP},{route:"/health",label:"Health",icon:i6,component:cP},{route:"/roi",label:"ROI",icon:a6,component:EP},{route:"/settings",label:"Settings",icon:s6,component:CP}],GU=Hd[0];function NP(e,t=Hd){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 rt=P(J(),1),l6=220,c6=56;function u6(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 d6({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,rt.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,rt.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,rt.jsx)("span",{children:e.label})]})}function p6({daemonUp:e,collapsed:t}){return(0,rt.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,rt.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,rt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function LP({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:s}){let l=u6(e,t);return(0,rt.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?c6:l6,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,rt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,rt.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,rt.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,rt.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,rt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,rt.jsx)(_$,{collapsed:a}),(0,rt.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,rt.jsx)(d6,{entry:c,active:c.route===l,collapsed:a,onNavigate:r},c.route))}),(0,rt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,rt.jsx)(p6,{daemonUp:o,collapsed:a}),(0,rt.jsx)(I,{variant:"ghost",size:"sm",onClick:s,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var ob=Object.freeze({honeycomb:"http://127.0.0.1:3850",nectar:"http://127.0.0.1:3854"});var f6=["/hive-graph"];function AP(e){for(let t of f6)if(e===t||e.startsWith(`${t}/`))return"nectar";return"honeycomb"}var ut=P(J(),1),m6=5e3,g6=Object.freeze({honeycomb:!0,nectar:!0}),v6=900;function y6({route:e,pageProps:t,navigate:r}){let o=NP(e),n=o.component,{projects:i,projectsHydrated:a}=Js();bt.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let s=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),l=o.route==="/"&&a&&!s;return(0,ut.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,ut.jsx)("div",{style:{maxWidth:jd,margin:"0 auto"},children:l?(0,ut.jsx)(rP,{wire:t.wire,navigate:r,assetBase:t.assetBase}):(0,ut.jsx)(n,{...t})})})}function FP({client:e,assetBase:t="assets"}={}){let r=bt.default.useMemo(()=>e??Qr(),[e]),{route:o,navigate:n}=Dd(),[i,a]=bt.default.useState(g6),[s,l]=bt.default.useState(null),[c,d]=bt.default.useState(Ex),[p,f]=bt.default.useState(!1),[m,x]=bt.default.useState(0),[h,_]=bt.default.useState(!1),v=AP(o),g=i[v],y=i.honeycomb,S=v==="nectar"?ob.nectar:c.settings.port?`http://127.0.0.1:${c.settings.port}`:ob.honeycomb,w=bt.default.useCallback(async()=>{d(await r.settings())},[r]);bt.default.useEffect(()=>{w()},[w]);let E=bt.default.useRef(null);Nn(async()=>{let[W,te]=await Promise.all([r.health(),r.hiveGraphStatus()]),ue=W.up,Je=!te.unreachable;a({honeycomb:ue,nectar:Je}),l(W.reasons),ue&&E.current===!1&&(w(),x(Rt=>Rt+1)),E.current=ue},m6),bt.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let W=window.matchMedia(`(max-width: ${v6}px)`),te=Je=>{Je&&_(!0)};te(W.matches);let ue=Je=>te(Je.matches);return W.addEventListener("change",ue),()=>W.removeEventListener("change",ue)},[]);let L=bt.default.useRef(!1),H=bt.default.useRef(null);bt.default.useEffect(()=>()=>{H.current!==null&&clearTimeout(H.current)},[]);let Z=bt.default.useCallback(async()=>{if(L.current)return;L.current=!0,f(!0),(await r.pollinate()).triggered?H.current=setTimeout(()=>{f(!1),L.current=!1},4200):(f(!1),L.current=!1)},[r]),j=`${c.orgName||c.orgId||"local"} \xB7 ${c.workspace||"default"}`;return(0,ut.jsx)(k$,{wire:r,children:(0,ut.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,ut.jsx)(LP,{entries:Hd,activeRoute:o,onNavigate:n,daemonUp:y,identity:j,assetBase:t,collapsed:h,onToggleCollapsed:()=>_(W=>!W)}),(0,ut.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,ut.jsx)(B$,{onOpenHealth:()=>n(M$)}),(0,ut.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,ut.jsx)(w$,{wire:r,refreshKey:m}),(0,ut.jsx)("span",{style:{flex:1}}),(0,ut.jsx)(I,{variant:"pollinate",onClick:()=>{Z()},disabled:p,children:p?"pollinating\u2026":"Pollinate now"})]}),g?(0,ut.jsx)(y6,{route:o,pageProps:{wire:r,daemonUp:g,assetBase:t,pollinating:p,healthReasons:s},navigate:n}):(0,ut.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,ut.jsx)("div",{style:{maxWidth:jd,margin:"0 auto"},children:(0,ut.jsx)(N$,{url:S,onRetry:()=>{(async()=>{if(v==="nectar"){let te=!(await r.hiveGraphStatus()).unreachable;a(ue=>({...ue,nectar:te}))}else{let{up:W}=await r.health();a(te=>({...te,honeycomb:W})),W&&w()}})()}})})})]})]})})}var h6="/buzzing",x6="/login",b6="/onboarding";function WP(e){return e===h6?"buzzing":e===x6?"login":e===b6?"onboarding":"shell"}var ma=P(me(),1);var S6=["honeycomb"];function UP(e){return e==="ok"||e==="degraded"}function MP(e){return e.supervisor!=="reachable"||!UP(e.health)?!1:S6.every(t=>e.daemons.some(r=>r.name===t&&UP(r.health)))}var ke=P(J(),1),k6=45e3;function _6({service:e}){let t=e.state==="starting"||e.state==="warming"||e.state==="degraded";return(0,ke.jsxs)("li",{"data-testid":`buzzing-tile-${e.name}`,"data-state":e.state,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",background:"var(--bg-elevated)"},children:[(0,ke.jsx)("span",{style:{color:ro[e.state],display:"inline-flex",flex:"none",animation:t?"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"},children:(0,ke.jsx)(no,{state:e.state})}),(0,ke.jsx)("span",{style:{flex:1,fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-primary)"},children:e.name}),(0,ke.jsx)("span",{"data-testid":`buzzing-tile-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",textTransform:"lowercase"},children:Dn[e.state]})]})}function w6(){return(0,ke.jsxs)("div",{"data-testid":"buzzing-empty",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",padding:"16px 20px",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)"},children:[(0,ke.jsx)("span",{role:"img","aria-label":"doctor supervisor: unreachable",style:{width:8,height:8,borderRadius:"50%",background:"var(--text-tertiary)",animation:"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate"}}),(0,ke.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5,textAlign:"center"},children:"Waiting on doctor. No services are registered yet."})]})}function $6(){return(0,ke.jsx)("div",{"data-testid":"buzzing-progress-bar",role:"progressbar","aria-label":"Fleet still starting",style:{width:"100%",height:6,borderRadius:"var(--radius-full)",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",overflow:"hidden",position:"relative"},children:(0,ke.jsx)("div",{style:{position:"absolute",inset:0,width:"40%",borderRadius:"var(--radius-full)",background:"linear-gradient(90deg, transparent, var(--honey), transparent)",animation:"hc-shimmer-sweep 1.6s var(--ease-in-out) infinite"}})})}function P6(e){return[{name:"Hive",blurb:"Your one dashboard: the front door to the whole fleet.",icon:"/assets/brand/hive-mark.svg"},{name:"Honeycomb",blurb:"Shared AI memory your coding tools carry across sessions.",icon:`${e}/honeycomb-memory-cluster.svg`},{name:"Nectar",blurb:"Gives every file a stable identity, so recall survives renames.",icon:"/assets/brand/nectar-mark.svg"},{name:"Doctor",blurb:"The watchdog that restarts crashed daemons and keeps the fleet healthy.",icon:"/assets/brand/doctor-mark.svg"}]}function z6({assetBase:e}){return(0,ke.jsxs)("div",{"data-testid":"buzzing-while-you-wait",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",textAlign:"left"},children:[(0,ke.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:"While you wait"}),(0,ke.jsx)("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8},children:P6(e).map(t=>(0,ke.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,ke.jsx)("img",{src:t.icon,width:18,height:18,alt:"","aria-hidden":"true",style:{flex:"none"}}),(0,ke.jsxs)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",lineHeight:1.4},children:[(0,ke.jsxs)("strong",{style:{color:"var(--text-primary)"},children:[t.name,":"]})," ",t.blurb]})]},t.name))})]})}function I6(e){let t=e.filter(o=>o.state!=="active");if(t.length===0)return null;let r=t.map(o=>`${o.name} (${Dn[o.state]})`);return t.length===1?`Still settling: ${r[0]}.`:`Still settling: ${r.join(", ")}.`}function BP({assetBase:e,pollMs:t=1500,onReady:r}){let o=oa(),[n,i]=ma.default.useState(!1),[a,s]=ma.default.useState(0);ma.default.useEffect(()=>{if(n)return;let c=Date.now(),d=setInterval(()=>s(Date.now()-c),1e3);return()=>clearInterval(d)},[n]),ma.default.useEffect(()=>{if(n)return;let c=!0,d=!1,p=async()=>{if(!d){d=!0;try{let x=await(await fetch("/api/fleet-status")).json();if(!c)return;MP(x)&&i(!0)}catch{}finally{d=!1}}};p();let f=setInterval(()=>{p()},t);return()=>{c=!1,clearInterval(f)}},[n,t]),ma.default.useEffect(()=>{if(n){if(r!==void 0){r();return}typeof window<"u"&&window.location.assign("/")}},[n,r]);let l=I6(o.services);return(0,ke.jsxs)("div",{"data-testid":"buzzing-screen",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,ke.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:24,width:"100%",maxWidth:560,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,ke.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",width:88,height:88,borderRadius:"50%",background:"var(--honey-subtle)",border:"1px solid var(--honey-border)",animation:"hc-badge-breathe 2.4s var(--ease-in-out) infinite alternate"},children:(0,ke.jsx)("img",{src:`${e}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""})}),(0,ke.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Waiting for the hive\u2026"}),(0,ke.jsxs)("div",{"data-testid":"buzzing-status-region",role:"status","aria-live":"polite",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%"},children:[(0,ke.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Starting required services."}),(0,ke.jsx)("p",{"data-testid":"buzzing-time-expectation",style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:"This usually takes about 20 to 40 seconds on a fresh install; a cold boot can take a minute."}),a>k6&&(0,ke.jsx)("p",{"data-testid":"buzzing-still-working",role:"note",style:{fontSize:"var(--text-xs)",color:"var(--severity-info)",margin:0,lineHeight:1.5},children:"Still working. Some services take longer on first run; this is not stuck."}),(0,ke.jsx)($6,{}),o.services.length===0?(0,ke.jsx)(w6,{}):(0,ke.jsx)("ul",{"data-testid":"buzzing-tile-grid",style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8,width:"100%",textAlign:"left"},children:o.services.map(c=>(0,ke.jsx)(_6,{service:c},c.name))}),l!==null&&(0,ke.jsx)("p",{"data-testid":"buzzing-long-pole",style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:l})]}),(0,ke.jsx)(z6,{assetBase:e}),(0,ke.jsx)("p",{"data-testid":"buzzing-whats-next",style:{fontSize:"var(--text-xs)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Once every service reports ready, you will land straight on your dashboard, already linked to Deeplake. From there, the Apiary keeps your whole local AI fleet visible and healthy, day to day."})]}),(0,ke.jsx)("style",{children:["@keyframes hc-readiness-pulse { from { opacity: .45 } to { opacity: 1 } }","@keyframes hc-badge-breathe { from { transform: scale(1); opacity: 0.9 } to { transform: scale(1.05); opacity: 1 } }","@keyframes hc-shimmer-sweep { 0% { transform: translateX(-120%) } 100% { transform: translateX(340%) } }"].join(`
|
|
73
|
+
`)})]})}var St=P(me(),1);var ib=P(me(),1);var Vd={doctor:{title:"Doctor",headline:"Doctor keeps your daemons alive while you are not looking.",lines:["Restarts a crashed daemon, then climbs an escalating repair ladder if a plain restart is not enough.","Runs OS-supervised so it starts on boot and survives its own crashes too."],recommended:!0},honeycomb:{title:"Honeycomb",headline:"Honeycomb is the shared memory your agents keep across sessions.",lines:["Captures what happens on every turn and recalls it in any harness, on any machine.","Mines reusable skills from real sessions and propagates them to your whole team automatically."],recommended:!1},nectar:{title:"Nectar",headline:"Nectar gives every file in your repo an identity that survives refactors.",lines:["Tracks files through renames and moves, so memory tied to an old path never goes stale.","Feeds Honeycomb's recall a fourth arm, so asking where the login logic lives actually works."],recommended:!1}},ZP="Installed straight from the public npm registry. Every package here is signed and provenance verified through npm Trusted Publishing (OIDC), so what installs is exactly what we published.",HP="Without Doctor, nothing restarts your daemons after a crash or reboot.";function Uo(e,t){return e==="honeycomb"?`${t}/honeycomb-memory-cluster.svg`:`/assets/brand/${e}-mark.svg`}var VP={resolving:"Resolving the package",downloading:"Downloading from npm",linking:"Linking the binary",registering_service:"Registering the service",completed:"Installed",failed:"Installation failed"};var dt=P(J(),1);function R6({product:e,checked:t,onToggle:r,assetBase:o}){let n=Vd[e];return(0,dt.jsxs)("label",{"data-testid":`onboarding-picker-item-${e}`,"data-checked":t,style:{display:"flex",alignItems:"center",gap:14,padding:"14px 16px",borderRadius:"var(--radius-lg)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,background:t?"var(--honey-subtle)":"var(--bg-elevated)",cursor:"pointer",textAlign:"left"},children:[(0,dt.jsx)("input",{type:"checkbox",checked:t,onChange:r,"data-testid":`onboarding-picker-checkbox-${e}`,style:{width:18,height:18,flex:"none",accentColor:"var(--honey)"}}),(0,dt.jsx)("img",{src:Uo(e,o),width:32,height:32,alt:"",style:{flex:"none"}}),(0,dt.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:2},children:[(0,dt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,dt.jsx)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",fontWeight:700,color:"var(--text-primary)"},children:n.title}),n.recommended&&(0,dt.jsx)(K,{tone:"honey",children:"Recommended"})]}),(0,dt.jsx)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-secondary)"},children:n.headline})]})]})}function JP({products:e,assetBase:t,onConfirm:r}){let[o,n]=ib.default.useState(()=>new Set(e)),i=ib.default.useCallback(s=>{n(l=>{let c=new Set(l);return c.has(s)?c.delete(s):c.add(s),c})},[]),a=e.includes("doctor")&&!o.has("doctor");return(0,dt.jsx)("div",{"data-testid":"onboarding-picker",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:(0,dt.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:22,width:"100%",maxWidth:520},children:[(0,dt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,dt.jsx)("h1",{style:{fontSize:"var(--text-2xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Pick what you want to install"}),(0,dt.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Everything you skip stays skipped until you come back and choose it."})]}),(0,dt.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10,width:"100%",textAlign:"left"},children:e.map(s=>(0,dt.jsx)(R6,{product:s,checked:o.has(s),onToggle:()=>i(s),assetBase:t},s))}),a&&(0,dt.jsx)("p",{"data-testid":"onboarding-picker-doctor-warning",style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--severity-warning)",background:"var(--severity-warning-bg)",border:"1px solid var(--severity-warning)",borderRadius:"var(--radius-md)",padding:"10px 14px",margin:0,width:"100%"},children:HP}),(0,dt.jsx)(I,{variant:"primary",size:"lg","data-testid":"onboarding-picker-confirm",onClick:()=>r(e.filter(s=>o.has(s))),children:"Continue"})]})})}var GP=["honeycomb","doctor","hive","nectar"],XP=["doctor","honeycomb","nectar"];var E6=GP,va=XP;function KP(e){return va.includes(e)}var T6=["not_installed","installed","install_in_progress","install_failed"],C6=u.object({stage:u.string().catch(""),summary:u.string().catch("")}),Jd=u.object({state:u.enum(T6).catch("not_installed"),version:u.string().optional(),error:C6.optional()}),ga=Object.freeze({state:"not_installed"}),j6=u.object({honeycomb:Jd.optional(),doctor:Jd.optional(),hive:Jd.optional(),nectar:Jd.optional()}).catch({});function YP(e){return{honeycomb:e.honeycomb??ga,doctor:e.doctor??ga,hive:e.hive??ga,nectar:e.nectar??ga}}var qP=Object.freeze(YP({})),QP=u.object({products:j6.transform(e=>YP(e)).catch(qP)}),Gd=Object.freeze({products:qP});function ya(e,t){return e.products[t]}function ez(e){return E6.every(t=>ya(e,t).state==="installed")}function cl(e){return va.filter(t=>ya(e,t).state!=="installed")}function tz(e){return cl(e).some(t=>{let r=ya(e,t).state;return r==="install_in_progress"||r==="install_failed"})}function nz(e,t){let r=cl(e);return t!==null?r.filter(o=>t.includes(o)):r.filter(o=>{let n=ya(e,o).state;return n==="install_in_progress"||n==="install_failed"})}var rz=u.object({product:u.enum(va).catch("doctor"),state:u.enum(["install_in_progress","installed"]).catch("install_in_progress")}),oz=u.object({error:u.enum(["unpublished","manifest_unresolved"])});function iz(e){return e==="unpublished"?"This product is not published to npm yet, so the installer will not pull it. Retry after the release train publishes the package.":"The fleet version manifest could not be resolved, so the installer does not know which package version to install. Retry after the manifest is available."}var O6=["resolving","downloading","linking","registering_service","completed","failed"],Xd=["resolving","downloading","linking","registering_service"],az=u.object({stage:u.enum(O6).catch("resolving"),detail:u.string().optional()}),ll=Object.freeze({ready:!1,status:{supervisor:"unreachable",daemons:[]}});function sz(e){if(typeof e!="object"||e===null)return ll;let t=e,r=typeof t.ready=="boolean"?t.ready:!1,o=D6(t.status)?t.status:ll.status;return{ready:r,status:o}}function D6(e){if(typeof e!="object"||e===null)return!1;let t=e.supervisor;return t==="reachable"||t==="unreachable"}var ab="hive-onboarding-selection";function sb(){try{return typeof window>"u"?null:window.sessionStorage}catch{return null}}function lb(e){let t=sb();if(t===null)return;let r=va.filter(o=>e.includes(o));try{t.setItem(ab,JSON.stringify(r))}catch{}}function lz(){let e=sb();if(e===null)return null;let t;try{t=e.getItem(ab)}catch{return null}if(t===null)return null;try{let r=JSON.parse(t);if(!Array.isArray(r))return null;let o=r.filter(n=>typeof n=="string"&&KP(n));return o.length>0?va.filter(n=>o.includes(n)):null}catch{return null}}function cb(){let e=sb();if(e!==null)try{e.removeItem(ab)}catch{}}var Mo=P(me(),1);var $e=P(J(),1),N6=45e3;function L6(e){return[{name:"Hive",blurb:"Your one dashboard: the front door to the whole fleet.",icon:"/assets/brand/hive-mark.svg"},{name:"Honeycomb",blurb:"Shared AI memory your coding tools carry across sessions.",icon:`${e}/honeycomb-memory-cluster.svg`},{name:"Nectar",blurb:"Gives every file a stable identity, so recall survives renames.",icon:"/assets/brand/nectar-mark.svg"},{name:"Doctor",blurb:"The watchdog that restarts crashed daemons and keeps the fleet healthy.",icon:"/assets/brand/doctor-mark.svg"}]}function A6({assetBase:e}){return(0,$e.jsxs)("div",{"data-testid":"onboarding-health-while-you-wait",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",textAlign:"left"},children:[(0,$e.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:"While you wait"}),(0,$e.jsx)("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8},children:L6(e).map(t=>(0,$e.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,$e.jsx)("img",{src:t.icon,width:18,height:18,alt:"","aria-hidden":"true",style:{flex:"none"}}),(0,$e.jsxs)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",lineHeight:1.4},children:[(0,$e.jsxs)("strong",{style:{color:"var(--text-primary)"},children:[t.name,":"]})," ",t.blurb]})]},t.name))})]})}function F6(e){let t=e.filter(o=>o.state!=="active");if(t.length===0)return null;let r=t.map(o=>`${o.name} (${Dn[o.state]})`);return t.length===1?`Still settling: ${r[0]}.`:`Still settling: ${r.join(", ")}.`}function W6(){return(0,$e.jsx)("div",{"data-testid":"onboarding-health-progress-bar",role:"progressbar","aria-label":"Fleet still starting",style:{width:"100%",height:6,borderRadius:"var(--radius-full)",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",overflow:"hidden",position:"relative"},children:(0,$e.jsx)("div",{style:{position:"absolute",inset:0,width:"40%",borderRadius:"var(--radius-full)",background:"linear-gradient(90deg, transparent, var(--honey), transparent)",animation:"hc-shimmer-sweep 1.6s var(--ease-in-out) infinite"}})})}function cz({client:e,onReady:t,pollMs:r=1500,assetBase:o=""}){let[n,i]=Mo.default.useState([]),[a,s]=Mo.default.useState(!1),[l,c]=Mo.default.useState(0);Mo.default.useEffect(()=>{if(a)return;let f=Date.now(),m=setInterval(()=>c(Date.now()-f),1e3);return()=>clearInterval(m)},[a]),Mo.default.useEffect(()=>{if(a)return;let f=!0,m=!1,x=async()=>{if(!m){m=!0;try{let _=await e.health();if(!f)return;i(_.status.supervisor==="reachable"?_.status.daemons:[]),_.ready&&s(!0)}finally{m=!1}}};x();let h=setInterval(()=>{x()},r);return()=>{f=!1,clearInterval(h)}},[a,r,e]),Mo.default.useEffect(()=>{a&&t()},[a,t]);let d=n.map(f=>({name:f.name,state:Qs({signal:qs(f),now:Date.now(),firstActiveAt:null})})),p=F6(d);return(0,$e.jsxs)("div",{"data-testid":"onboarding-health-view",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,$e.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:22,width:"100%",maxWidth:560,padding:"40px 36px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,$e.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",width:72,height:72,borderRadius:"50%",background:"var(--honey-subtle)",border:"1px solid var(--honey-border)",animation:"hc-badge-breathe 2.4s var(--ease-in-out) infinite alternate"},children:(0,$e.jsx)("img",{src:`${o}/honeycomb-memory-cluster.svg`,width:40,height:40,alt:""})}),(0,$e.jsx)("h1",{style:{fontSize:"var(--text-2xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Bringing the fleet up green"}),(0,$e.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"One last check before your dashboard: every daemon needs to report healthy."}),(0,$e.jsx)("p",{"data-testid":"onboarding-health-time-expectation",style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:"This usually takes about 20 to 40 seconds on a fresh install; a cold boot can take a minute."}),l>N6&&(0,$e.jsx)("p",{"data-testid":"onboarding-health-still-working",role:"note",style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--severity-info)",margin:0,lineHeight:1.5},children:"Still working. Some services take longer on first run; this is not stuck."}),(0,$e.jsx)(W6,{}),(0,$e.jsx)("ul",{role:"status","aria-live":"polite",style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8,width:"100%",textAlign:"left"},children:n.length===0?(0,$e.jsx)("li",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Checking the fleet\u2026"}):n.map(f=>{let m=Qs({signal:qs(f),now:Date.now(),firstActiveAt:null}),x=m==="starting"||m==="warming"||m==="degraded";return(0,$e.jsxs)("li",{"data-testid":`onboarding-health-row-${f.name}`,"data-state":m,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",background:"var(--bg-elevated)"},children:[(0,$e.jsx)("span",{style:{color:ro[m],display:"inline-flex",flex:"none",animation:x?"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"},children:(0,$e.jsx)(no,{state:m})}),(0,$e.jsx)("span",{style:{flex:1,fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-primary)"},children:f.name}),(0,$e.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-secondary)"},children:Dn[m]})]},f.name)})}),p!==null&&(0,$e.jsx)("p",{"data-testid":"onboarding-health-long-pole",style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5},children:p}),(0,$e.jsx)(A6,{assetBase:o}),(0,$e.jsx)("p",{"data-testid":"onboarding-health-whats-next",style:{fontSize:"var(--text-xs)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Next: a quick sign-in links this machine to your Deeplake account, then you pick a workspace and land on your dashboard. From there, the Apiary keeps your whole local AI fleet visible and healthy, day to day."})]}),(0,$e.jsx)("style",{children:["@keyframes hc-readiness-pulse { from { opacity: .45 } to { opacity: 1 } }","@keyframes hc-badge-breathe { from { transform: scale(1); opacity: 0.9 } to { transform: scale(1.05); opacity: 1 } }","@keyframes hc-shimmer-sweep { 0% { transform: translateX(-120%) } 100% { transform: translateX(340%) } }"].join(`
|
|
74
|
+
`)})]})}var Bo=P(me(),1);var ul=P(me(),1),U6=2e3;function uz(e,t){let{minDwellMs:r=U6}=t,o=ul.default.useRef(Date.now()),n=ul.default.useRef(!1),i=ul.default.useRef(t.onDwellSatisfied);i.current=t.onDwellSatisfied,ul.default.useEffect(()=>{if(!e||n.current)return;let a=Date.now()-o.current,s=Math.max(0,r-a),l=setTimeout(()=>{n.current=!0,i.current()},s);return()=>clearTimeout(l)},[e,r])}var ot=P(J(),1);function M6(e,t,r){return e<t?"done":e===t&&r!=="completed"?"active":"pending"}function B6({product:e,stage:t}){let r=Xd.indexOf(t),o=t==="completed"?Xd.length:Math.max(0,r);return(0,ot.jsx)("ul",{"data-testid":`onboarding-install-stage-${e}`,"data-current-stage":t,style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8,width:"100%",textAlign:"left"},children:Xd.map((n,i)=>{let a=M6(i,o,t);return(0,ot.jsxs)("li",{"data-state":a,style:{display:"flex",alignItems:"center",gap:10,fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:a==="pending"?"var(--text-tertiary)":"var(--text-primary)"},children:[(0,ot.jsx)("span",{"aria-hidden":"true",style:{width:8,height:8,flex:"none",borderRadius:"50%",background:a==="done"?"var(--verified)":a==="active"?"var(--honey)":"var(--border-strong)",animation:a==="active"?"hc-onboarding-stage-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"}}),VP[n]]},n)})})}function Z6({product:e}){return(0,ot.jsx)("p",{"data-testid":`onboarding-npm-safety-${e}`,style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0,lineHeight:1.5,padding:"10px 14px",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:ZP})}function dz({product:e,initialDetection:t,client:r,assetBase:o,onAdvance:n,minDwellMs:i}){let a=Bo.default.useRef(t),s=a.current.state==="installed",l=a.current.state==="install_failed",[c,d]=Bo.default.useState(()=>s?"completed":l?"failed":"resolving"),[p,f]=Bo.default.useState(()=>a.current.error??null),[m,x]=Bo.default.useState(0);Bo.default.useEffect(()=>{if(s||l&&m===0)return;let g=!1,y=()=>{};return(async()=>{if(!(m===0&&a.current.state==="install_in_progress")){let w=await r.startInstall(e);if(g)return;if(w===null){f({stage:"resolving",summary:"Could not reach the daemon to start the install. Check your connection and retry."}),d("failed");return}if("error"in w){f({stage:"resolving",summary:iz(w.error)}),d("failed");return}if(w.state==="installed"){d("completed");return}}f(null),y=r.subscribeInstallEvents(e,w=>{g||(d(w.stage),w.stage==="failed"&&f({stage:"unknown",summary:w.detail??"The install failed. Retry below, or check the daemon logs."}))})})(),()=>{g=!0,y()}},[m,l,s]);let h=Bo.default.useCallback(()=>{f(null),d("resolving"),x(g=>g+1)},[]);uz(c==="completed",{onDwellSatisfied:n,minDwellMs:i});let _=Vd[e],v=c==="failed";return(0,ot.jsxs)("div",{"data-testid":`onboarding-install-card-${e}`,"data-stage":c,style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,ot.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:22,width:"100%",maxWidth:540,padding:"44px 40px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,ot.jsx)("img",{src:Uo(e,o),width:64,height:64,alt:""}),(0,ot.jsx)("h1",{style:{fontSize:"var(--text-2xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:_.title}),(0,ot.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxWidth:440},children:[(0,ot.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0},children:_.headline}),(0,ot.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:_.lines[0]}),(0,ot.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:_.lines[1]})]}),v?(0,ot.jsxs)("div",{"data-testid":`onboarding-install-error-${e}`,style:{display:"flex",flexDirection:"column",gap:12,alignItems:"center",width:"100%"},children:[(0,ot.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:p?.summary??"The install failed."}),(0,ot.jsx)("button",{type:"button","data-testid":`onboarding-retry-${e}`,onClick:h,style:{height:40,padding:"0 18px",borderRadius:"var(--radius-md)",border:"1px solid var(--severity-critical)",background:"var(--severity-critical-bg)",color:"var(--severity-critical)",fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",fontWeight:600,cursor:"pointer"},children:"Retry"})]}):(0,ot.jsx)(B6,{product:e,stage:c}),(0,ot.jsx)(Z6,{product:e})]}),(0,ot.jsx)("style",{children:"@keyframes hc-onboarding-stage-pulse { from { opacity: .4 } to { opacity: 1 } }"})]})}var Xt=P(me(),1);var oe=P(J(),1),H6=2500;function pz({children:e}){return(0,oe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e})}var V6=["Shared memory across every coding assistant you use, not just this one","Semantic recall: find past work by meaning, not only keywords","A new tool or machine already knows your project the moment it connects","Right after this: your dashboard opens and the fleet goes green"];function J6(){return(0,oe.jsx)("ul",{style:{display:"flex",flexDirection:"column",gap:8,margin:0,padding:0,listStyle:"none",width:"100%"},children:V6.map(e=>(0,oe.jsxs)("li",{style:{display:"flex",gap:10,alignItems:"flex-start",textAlign:"left"},children:[(0,oe.jsx)("span",{style:{flex:"none",marginTop:7,width:6,height:6,borderRadius:"50%",background:"var(--honey)"}}),(0,oe.jsx)("span",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",lineHeight:1.45},children:e})]},e))})}function G6(){return(0,oe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%",padding:"12px 14px",background:"var(--honey-subtle)",border:"1px solid var(--honey-border)",borderRadius:"var(--radius-md)",textAlign:"left"},children:[(0,oe.jsx)(K,{tone:"honey",mono:!0,children:"Good to know"}),(0,oe.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Deeplake is not free, but it is inexpensive to start. A small amount, around $10, goes a long way, and it is worth trying."})]})}function X6(){return(0,oe.jsxs)("div",{"aria-hidden":"true",style:{position:"relative",width:84,height:92,flex:"none"},children:[(0,oe.jsx)("div",{style:{position:"absolute",left:"50%",top:18,transform:"translateX(-50%)",width:56,height:64,clipPath:"polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)",background:"linear-gradient(180deg, var(--honey-hover), var(--honey))",boxShadow:"var(--glow-honey)",animation:"onboarding-login-cell-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate"}}),[27,39,51].map((e,t)=>(0,oe.jsx)("span",{style:{position:"absolute",left:e,top:0,width:6,height:6,borderRadius:"50%",background:"var(--honey)",boxShadow:"0 0 6px var(--honey)",animation:"onboarding-login-drop 2.1s var(--ease-in-out) infinite",animationDelay:`${t*.5}s`}},e)),(0,oe.jsx)("style",{children:`
|
|
75
75
|
@keyframes onboarding-login-cell-pulse {
|
|
76
76
|
from { opacity: .75; transform: translateX(-50%) scale(0.94); }
|
|
77
77
|
to { opacity: 1; transform: translateX(-50%) scale(1); }
|
|
@@ -82,8 +82,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
82
82
|
70% { opacity: 1; transform: translateY(46px) scale(0.9); }
|
|
83
83
|
100% { transform: translateY(52px) scale(0.3); opacity: 0; }
|
|
84
84
|
}
|
|
85
|
-
`})]})}function
|
|
86
|
-
`)})]})}function fz(e){return{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,minWidth:220,padding:"16px 22px",borderRadius:"var(--radius-lg)",border:e==="primary"?"1px solid transparent":"1px solid var(--border-strong)",background:e==="primary"?"var(--honey)":"var(--bg-elevated)",color:e==="primary"?"var(--honey-on)":"var(--text-primary)",cursor:"pointer",fontFamily:"var(--font-sans)",fontSize:"var(--text-base)",textAlign:"left"}}function mz(e){return{fontSize:"var(--text-xs)",fontWeight:500,color:e==="primary"?"var(--honey-on)":"var(--text-secondary)",opacity:e==="primary"?.85:1}}var bt=P(me(),1);function vz(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async setupTenancy(){try{let n=await r(o("/setup/tenancy"),{headers:{accept:"application/json"}});if(!n.ok)return Ki;let i=hd.safeParse(await n.json());return i.success?i.data:Ki}catch{return Ki}},async listOrgs(){try{let n=await r(o("/setup/tenancy/orgs"),{headers:{accept:"application/json"}});if(!n.ok)return xd;let i=J1.safeParse(await n.json());return i.success?i.data:xd}catch{return xd}},async listWorkspaces(n){try{let i=`?org=${encodeURIComponent(n)}`,a=await r(o(`/setup/tenancy/workspaces${i}`),{headers:{accept:"application/json"}});if(!a.ok)return{...bd,org:n};let s=G1.safeParse(await a.json());return s.success?s.data:{...bd,org:n}}catch{return{...bd,org:n}}},async selectTenancy(n,i){try{let a=await r(o("/setup/tenancy/select"),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify({orgId:n,workspaceId:i})});if(!a.ok)return null;let s=X1.safeParse(await a.json());return s.success?s.data:null}catch{return null}},async createWorkspace(n,i){try{let a=await r(o("/setup/tenancy/workspaces"),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify({org:n,name:i})});if(!a.ok)return null;let s=K1.safeParse(await a.json());return s.success?s.data:null}catch{return null}}}}var ce=P(V(),1),X6=2,cb="hive.onboarding.tenancy.autoCompleteCount";function K6(){try{if(typeof sessionStorage>"u")return 0;let e=sessionStorage.getItem(cb),t=e===null?0:Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:0}catch{return 0}}function yz(e){try{if(typeof sessionStorage>"u")return;e<=0?sessionStorage.removeItem(cb):sessionStorage.setItem(cb,String(e))}catch{}}function ub(){let e=K6()+1;return e>X6?!1:(yz(e),!0)}function Xd(){yz(0)}function Kd(e){return e.name!==""?e.name:e.id}function db({onboardingClient:e,tenancyClient:t,onComplete:r}){let o=bt.default.useMemo(()=>t??vz(),[t]),[n,i]=bt.default.useState({kind:"loading"}),[a,s]=bt.default.useState(!1),[l,c]=bt.default.useState(null),[d,p]=bt.default.useState(""),[f,m]=bt.default.useState(!1),x=bt.default.useRef(!1),h=bt.default.useRef(!1),_=bt.default.useRef(0),v=bt.default.useCallback(()=>{e.sendEvent("dashboard_reached"),(async()=>{if(await e.complete(),r!==void 0){r();return}typeof window<"u"&&window.location.assign("/")})()},[e,r]),g=bt.default.useCallback(async()=>{if(i({kind:"loading"}),c(null),(await o.setupTenancy()).selected){if(!ub()){i({kind:"split-brain"});return}v();return}Xd();let L=await o.listOrgs();if(_.current=L.orgs.length,L.orgs.length===0){i({kind:"error",message:"No organizations are available for this account. Check your Deeplake credential and retry."});return}if(L.orgs.length===1){h.current=!0,i({kind:"org-confirm",org:L.orgs[0]});return}i({kind:"org-list",orgs:L.orgs})},[o,v]);bt.default.useEffect(()=>{x.current||(x.current=!0,e.sendEvent("tenancy_shown"))},[e]),bt.default.useEffect(()=>{g()},[g]);let y=bt.default.useCallback(async I=>{s(!0),c(null),m(!1),p("");let L=await o.listWorkspaces(I.id);s(!1),i({kind:"workspace-list",org:I,workspaces:L.workspaces,canCreate:L.canCreate})},[o]),S=bt.default.useCallback(async(I,L)=>{s(!0),c(null);let G=await o.selectTenancy(I.id,L.id);if(s(!1),G===null||G.selected===!1){let Re=G!==null&&G.selected===!1?G.error:"Selection could not be saved. Retry.";c(Re);return}Xd();let Z=_.current<=1?"single":_.current<=3?"few":"many";e.sendEvent("tenancy_selected",{orgCount:Z,singleOrgConfirm:h.current?"true":"false"}),v()},[o,e,v]),w=bt.default.useCallback(async()=>{if(n.kind!=="workspace-list")return;let I=d.trim();if(I==="")return;s(!0),c(null);let L=await o.createWorkspace(n.org.id,I);if(L===null||L.created===!1){s(!1),c(L!==null&&L.created===!1?L.error:"Workspace could not be created. Retry.");return}e.sendEvent("workspace_created"),s(!1),await S(n.org,L.workspace)},[n,d,o,e,S]),T={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:28,background:"var(--bg-canvas)",textAlign:"center"};return n.kind==="loading"?(0,ce.jsx)("div",{"data-testid":"onboarding-tenancy-step",style:T,children:(0,ce.jsx)("p",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Loading your organizations\u2026"})}):n.kind==="error"?(0,ce.jsxs)("div",{"data-testid":"onboarding-tenancy-step",style:T,children:[(0,ce.jsx)("p",{"data-testid":"onboarding-tenancy-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:n.message}),(0,ce.jsx)(R,{variant:"secondary","data-testid":"onboarding-tenancy-retry",onClick:()=>{g()},children:"Retry"})]}):n.kind==="split-brain"?(0,ce.jsx)("div",{"data-testid":"onboarding-tenancy-step",style:T,children:(0,ce.jsxs)("div",{"data-testid":"onboarding-tenancy-split-brain",style:{display:"flex",flexDirection:"column",gap:12,maxWidth:480},children:[(0,ce.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"The portal keeps returning you here"}),(0,ce.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Your tenancy reads as confirmed in this browser, but the portal cannot verify it and keeps redirecting back to this step. The daemon may be unreachable or out of sync. Check that the honeycomb daemon is running, then continue."}),(0,ce.jsx)(R,{variant:"primary",size:"lg","data-testid":"onboarding-tenancy-split-brain-continue",onClick:()=>{Xd(),v()},children:"Go to dashboard"}),(0,ce.jsx)(R,{variant:"secondary","data-testid":"onboarding-tenancy-split-brain-retry",onClick:()=>{Xd(),g()},children:"Try again"})]})}):(0,ce.jsxs)("div",{"data-testid":"onboarding-tenancy-step",style:T,children:[(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:520},children:[(0,ce.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Choose where capture writes"}),(0,ce.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Select the organization and workspace your fleet will write to. Nothing captures until you confirm."})]}),n.kind==="org-list"&&(0,ce.jsx)("div",{"data-testid":"onboarding-tenancy-org-list",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",maxWidth:420},children:n.orgs.map(I=>(0,ce.jsx)(R,{variant:"secondary",size:"lg","data-testid":"onboarding-tenancy-org-option","data-org-id":I.id,disabled:a,onClick:()=>{y(I)},children:Kd(I)},I.id))}),n.kind==="org-confirm"&&(0,ce.jsxs)("div",{"data-testid":"onboarding-tenancy-org-confirm",style:{display:"flex",flexDirection:"column",gap:12,maxWidth:420},children:[(0,ce.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Your account has one organization. Confirm you want capture to write under:"}),(0,ce.jsxs)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--honey)"},children:[Kd(n.org)," (",n.org.id,")"]}),(0,ce.jsx)(R,{variant:"primary",size:"lg","data-testid":"onboarding-tenancy-org-confirm-btn",disabled:a,onClick:()=>{y(n.org)},children:"Confirm organization"})]}),n.kind==="workspace-list"&&(0,ce.jsxs)("div",{"data-testid":"onboarding-tenancy-workspace-list",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",maxWidth:420},children:[(0,ce.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Organization: ",Kd(n.org)]}),n.workspaces.length===0&&!n.canCreate?(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("p",{"data-testid":"onboarding-tenancy-no-workspaces",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"No workspaces are available in this organization."}),(0,ce.jsx)(R,{variant:"secondary","data-testid":"onboarding-tenancy-back-orgs",disabled:a,onClick:()=>{g()},children:"Back to organizations"})]}):(0,ce.jsxs)(ce.Fragment,{children:[n.workspaces.map(I=>(0,ce.jsx)(R,{variant:"secondary",size:"lg","data-testid":"onboarding-tenancy-workspace-option","data-workspace-id":I.id,disabled:a,onClick:()=>{S(n.org,I)},children:Kd(I)},I.id)),n.canCreate&&(0,ce.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,marginTop:8},children:f?(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,ce.jsx)("input",{"data-testid":"onboarding-tenancy-create-input",type:"text",value:d,placeholder:"New workspace name",disabled:a,onChange:I=>p(I.target.value),style:{height:36,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)"}}),(0,ce.jsx)(R,{variant:"primary","data-testid":"onboarding-tenancy-create-submit",disabled:a||d.trim()==="",onClick:()=>{w()},children:"Create and select"})]}):(0,ce.jsx)(R,{variant:"ghost","data-testid":"onboarding-tenancy-create-toggle",disabled:a,onClick:()=>m(!0),children:"Create a new workspace"})}),n.workspaces.length>0&&_.current>1&&(0,ce.jsx)(R,{variant:"ghost","data-testid":"onboarding-tenancy-back-orgs",disabled:a,onClick:()=>{g()},children:"Back to organizations"})]})]}),l!==null&&(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center"},children:[(0,ce.jsx)("p",{"data-testid":"onboarding-tenancy-select-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l}),(0,ce.jsx)(R,{variant:"secondary",size:"sm","data-testid":"onboarding-tenancy-select-retry",onClick:()=>c(null),children:"Dismiss"})]})]})}var pb=P(me(),1),hz="t";function xz(){let[e,t]=pb.default.useState(null);return pb.default.useEffect(()=>{if(typeof window>"u")return;let o=new URLSearchParams(window.location.search).get(hz);if(o===null||o===""){t("");return}t(o);try{let n=new URL(window.location.href);n.searchParams.delete(hz),window.history.replaceState(null,"",`${n.pathname}${n.search}${n.hash}`)}catch{}},[]),e}var We=P(V(),1);function fb(e){return e.length===0?{kind:"health"}:{kind:"installing",queue:e,index:0}}function Y6({onGoToDashboard:e}){return(0,We.jsx)("div",{"data-testid":"onboarding-short-circuit",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:18,maxWidth:440,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,We.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your fleet is already up"}),(0,We.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Every product is installed and the fleet reads healthy. Nothing to install here."}),(0,We.jsx)(R,{variant:"primary",size:"lg","data-testid":"onboarding-go-to-dashboard",onClick:e,children:"Go to dashboard"})]})})}function q6(){return(0,We.jsx)("div",{"data-testid":"onboarding-missing-token",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:18,maxWidth:480,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,We.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"This setup link has expired"}),(0,We.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"The setup page needs the one-time link the installer opens for you, and this visit did not carry it (refreshing this page drops it too). Re-run the installer to get a fresh link:"}),(0,We.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-primary)",background:"var(--bg-canvas)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",padding:"10px 14px"},children:"curl -fsSL https://get.theapiary.sh | sh"})]})})}function bz(){return(0,We.jsx)("div",{"data-testid":"onboarding-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",background:"var(--bg-canvas)"},children:(0,We.jsx)("p",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Checking what is already installed\u2026"})})}function Sz({assetBase:e="assets",client:t,wire:r,tenancyClient:o,minDwellMs:n,healthPollMs:i,loginPollMs:a,onShortCircuitNavigate:s,onAuthenticated:l}){let c=xz(),d=t!==void 0||c!==null&&c!=="",p=t===void 0&&c==="",f=St.default.useMemo(()=>t??dz(c??""),[t,c]),m=St.default.useMemo(()=>r??qr(),[r]),[x,h]=St.default.useState({kind:"loading"}),[_,v]=St.default.useState(null),g=St.default.useRef(!1);St.default.useEffect(()=>{!d||g.current||(g.current=!0,f.sendEvent("onboarding_started"))},[f,d]),St.default.useEffect(()=>{if(!d)return;let W=!0;return(async()=>{let[ne,ue]=await Promise.all([f.detect(),f.health()]);if(W)if(v(ne),YP(ne)&&ue.ready){if((await m.setupState()).authenticated&&!(await m.setupTenancy()).selected){h({kind:"tenancy"});return}h({kind:"short-circuit"})}else qP(ne)?h(fb(QP(ne,iz()))):h({kind:"hero"})})(),()=>{W=!1}},[f,d,m]);let y=St.default.useCallback(W=>{if(f.sendEvent("mode_selected",{mode:W}),W==="standard"){let ne=_!==null?ll(_):[];ab(ne),h(fb(ne))}else h({kind:"picker"})},[f,_]),S=St.default.useCallback(W=>{ab(W),h(fb(W))},[]),w=St.default.useCallback(()=>{h(W=>{if(W.kind!=="installing")return W;let ne=W.index+1;return ne>=W.queue.length?{kind:"health"}:{kind:"installing",queue:W.queue,index:ne}})},[]),T=St.default.useCallback(()=>h({kind:"login"}),[]),I=St.default.useCallback(()=>{if(sb(),s!==void 0){s();return}typeof window<"u"&&window.location.assign("/")},[s]),L=St.default.useCallback(()=>{if(sb(),l!==void 0){l();return}typeof window<"u"&&window.location.assign("/")},[l]),G=St.default.useCallback(()=>{h({kind:"tenancy"})},[]),[Z,Re]=St.default.useState("probing");if(St.default.useEffect(()=>{if(!p)return;let W=!0;return(async()=>{let[ne,ue]=await Promise.all([m.setupState(),m.setupTenancy()]);if(W){if(!ne.authenticated){Re("expired");return}if(ue.selected&&ub()){L();return}Re("tenancy")}})().catch(()=>{W&&Re("expired")}),()=>{W=!1}},[p,m,L]),p)return Z==="probing"?(0,We.jsx)(bz,{}):Z==="tenancy"?(0,We.jsx)(db,{onboardingClient:f,tenancyClient:o,onComplete:L}):(0,We.jsx)(q6,{});switch(x.kind){case"loading":return(0,We.jsx)(bz,{});case"short-circuit":return(0,We.jsx)(Y6,{onGoToDashboard:I});case"hero":return(0,We.jsx)(gz,{assetBase:e,onChooseStandard:()=>y("standard"),onChooseAdvanced:()=>y("advanced")});case"picker":return(0,We.jsx)(ZP,{products:_!==null?ll(_):[],assetBase:e,onConfirm:S});case"installing":{let W=x.queue[x.index],ne=_!==null?va(_,W):ma;return(0,We.jsx)(lz,{product:W,initialDetection:ne,client:f,assetBase:e,onAdvance:w,minDwellMs:n},W)}case"health":return(0,We.jsx)(az,{client:f,onReady:T,pollMs:i,assetBase:e});case"login":return(0,We.jsx)(uz,{onboardingClient:f,wire:r,onAuthenticated:G,pollMs:a});case"tenancy":return(0,We.jsx)(db,{onboardingClient:f,tenancyClient:o,onComplete:L});default:return x}}var Qe=P(me(),1);var te=P(V(),1),Q6=2500,e2=new Set(["backup","uninstall","link"]);function t2(e){return e.migration!==void 0&&e2.has(e.migration.phase)}function n2(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function r2({wire:e,assetBase:t,state:r}){let[o,n]=Qe.default.useState(null),[i,a]=Qe.default.useState(!1),[s,l]=Qe.default.useState(!1),c=Qe.default.useRef(!1),d=Qe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),l(!1);let m=await e.setupLogin();if(m===null){l(!0),a(!1),c.current=!1;return}n(m)},[e]),p=Qe.default.useCallback(()=>{c.current=!1,a(!1),n(null),d()},[d]),f=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,te.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,te.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,te.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,te.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,te.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:f?"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,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(R,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),s&&(0,te.jsx)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:"Could not start setup. Click the button above to try again."})]}):(0,te.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,te.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,te.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,te.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,te.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"}),(0,te.jsx)(R,{variant:"secondary",size:"sm",onClick:p,"data-testid":"setup-restart-login",children:"Closed the window? Restart login"})]})]})}function o2({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=Qe.default.useState(!1),[i,a]=Qe.default.useState(!1),[s,l]=Qe.default.useState(null),c=Qe.default.useRef(!1),d=Qe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(l(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,te.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,te.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,te.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,te.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,te.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,te.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)."]})]}),s!==null&&s.ok===!1?(0,te.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,te.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:s.message}),s.backupPath!==void 0&&(0,te.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,te.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:s.backupPath})]}),(0,te.jsx)(R,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,te.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,te.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,te.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,te.jsx)(R,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,te.jsx)(R,{variant:"danger",size:"md",onClick:()=>{d()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,te.jsx)(R,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function i2({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=Qe.default.useState(""),[a,s]=Qe.default.useState(null),l=r.migration?.phase??"backup",c=r.migration?.backupPath,d=Qe.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(s(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=Qe.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();s(f.message),i("")},[e]);return(0,te.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,te.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,te.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,te.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,te.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,te.jsx)("code",{children:l})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,te.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,te.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,te.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,te.jsx)(R,{variant:"primary",size:"md",onClick:()=>{d()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,te.jsx)(R,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,te.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function kz({client:e,assetBase:t="assets"}={}){let r=Qe.default.useMemo(()=>e??qr(),[e]),[o,n]=Qe.default.useState(Zs),[i,a]=Qe.default.useState(!1),s=Qe.default.useRef(!1);return Qe.default.useEffect(()=>{if(o.authenticated){!s.current&&typeof window<"u"&&(s.current=!0,window.location.assign("/"));return}let l=!0,c=async()=>{let p=await r.setupState();l&&n(p)};c();let d=setInterval(()=>{c()},Q6);return()=>{l=!1,clearInterval(d)}},[r,o.authenticated]),o.authenticated?(0,te.jsx)(te.Fragment,{}):t2(o)&&!i?(0,te.jsx)(i2,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):n2(o)&&!i?(0,te.jsx)(o2,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,te.jsx)(r2,{wire:r,assetBase:t,state:o})}var ya=P(V(),1);function a2(){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",o=typeof window>"u"?"/":window.location.pathname,n=LP(o),i=n==="buzzing"?(0,ya.jsx)(WP,{assetBase:r}):n==="login"?(0,ya.jsx)(kz,{assetBase:r}):n==="onboarding"?(0,ya.jsx)(Sz,{assetBase:r}):(0,ya.jsx)(NP,{assetBase:r});(0,wz.createRoot)(e).render((0,ya.jsx)(_z.default.StrictMode,{children:i}))}a2();
|
|
85
|
+
`})]})}function K6(){return(0,oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,oe.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser"}),(0,oe.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",gap:3},children:[0,1,2].map(e=>(0,oe.jsx)("span",{style:{width:4,height:4,borderRadius:"50%",background:"var(--honey)",animation:"onboarding-login-blink 1.2s var(--ease-in-out) infinite",animationDelay:`${e*.2}s`}},e))}),(0,oe.jsx)("style",{children:"@keyframes onboarding-login-blink { 0%, 80%, 100% { opacity: .25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }"})]})}function Y6({grant:e,onRestart:t}){return(0,oe.jsxs)("div",{"data-testid":"onboarding-login-grant",style:{display:"flex",flexDirection:"column",gap:12,alignItems:"center",width:"100%",padding:"20px 22px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,oe.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking your Deeplake account:"}),(0,oe.jsx)("code",{"data-testid":"onboarding-login-code",style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-2xl)",fontWeight:700,color:"var(--honey)",letterSpacing:"0.08em"},children:e.user_code}),(0,oe.jsx)("a",{href:e.verification_uri_complete??e.verification_uri,target:"_blank",rel:"noreferrer","data-testid":"onboarding-login-verification-link",style:{fontSize:"var(--text-sm)",color:"var(--honey)",fontWeight:600},children:"Open the verification page \u2192"}),(0,oe.jsx)(K6,{}),(0,oe.jsx)(I,{variant:"secondary",size:"sm",onClick:t,"data-testid":"onboarding-login-restart",children:"Closed the window? Restart login"})]})}function fz({onboardingClient:e,wire:t,onAuthenticated:r,pollMs:o=H6}){let n=Xt.default.useMemo(()=>t??Qr(),[t]),[i,a]=Xt.default.useState(Hs),[s,l]=Xt.default.useState(null),[c,d]=Xt.default.useState(!1),p=Xt.default.useRef(!1),f=Xt.default.useRef(!1),m=Xt.default.useRef(!1),x=Xt.default.useCallback(async()=>{d(!1);let _=await n.setupLogin();if(_===null){d(!0);return}l(_)},[n]),h=Xt.default.useCallback(()=>{l(null),x()},[x]);return Xt.default.useEffect(()=>{p.current||(p.current=!0,x())},[x]),Xt.default.useEffect(()=>{s===null||f.current||(f.current=!0,e.sendEvent("login_shown"))},[s,e]),Xt.default.useEffect(()=>{if(i.authenticated)return;let _=!0,v=async()=>{let y=await n.setupState();_&&a(y)};v();let g=setInterval(()=>{v()},o);return()=>{_=!1,clearInterval(g)}},[n,i.authenticated,o]),Xt.default.useEffect(()=>{if(!(!i.authenticated||m.current)&&(m.current=!0,r!==void 0)){r();return}},[i.authenticated,r]),i.authenticated?(0,oe.jsx)(oe.Fragment,{}):(0,oe.jsxs)("div",{"data-testid":"onboarding-login-step",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:20,minHeight:"100vh",padding:28,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,oe.jsx)(X6,{}),(0,oe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,oe.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"One more step: link Deeplake"}),(0,oe.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Your fleet is installed and ready. Linking turns on the memory that follows you everywhere."})]}),(0,oe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxWidth:480,textAlign:"left"},children:[(0,oe.jsx)(pz,{children:"What is Deeplake?"}),(0,oe.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Deeplake, built by Activeloop, is the cloud backend that stores your fleet's shared AI memory and code identity. Skip linking it and your fleet still runs, just degraded and local to this machine. Link it and capture and recall light up across every coding assistant you use."})]}),(0,oe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:480},children:[(0,oe.jsx)(pz,{children:"What linking unlocks"}),(0,oe.jsx)(J6,{})]}),(0,oe.jsx)("div",{style:{maxWidth:480,width:"100%"},children:(0,oe.jsx)(G6,{})}),s!==null?(0,oe.jsx)("div",{style:{maxWidth:480,width:"100%"},children:(0,oe.jsx)(Y6,{grant:s,onRestart:h})}):c?(0,oe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12,alignItems:"center"},children:[(0,oe.jsx)("p",{"data-testid":"onboarding-login-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:"Could not start the login."}),(0,oe.jsx)(I,{variant:"primary",size:"md",onClick:h,"data-testid":"onboarding-login-retry",children:"Retry login"})]}):(0,oe.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Starting login\u2026"})]})}var q6="x-onboarding-token";function dl(e){return e!==""?{[q6]:e}:{}}function mz(e,t={}){let r=t.origin??"",o=t.fetchImpl??fetch,n=i=>`${r}${i}`;return{async detect(){try{let i=await o(n("/api/onboarding/detect"),{headers:{accept:"application/json",...dl(e)}});if(!i.ok)return Gd;let a=QP.safeParse(await i.json());return a.success?a.data:Gd}catch{return Gd}},async startInstall(i){try{let a=await o(n("/api/onboarding/install"),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...dl(e)},body:JSON.stringify({product:i})});if(a.status===409){let l=oz.safeParse(await a.json());return l.success?l.data:null}if(!a.ok)return null;let s=rz.safeParse(await a.json());return s.success?s.data:null}catch{return null}},subscribeInstallEvents(i,a){let s=t.eventSourceCtor??globalThis.EventSource;if(s===void 0)return()=>{};let l=e!==""?`?t=${encodeURIComponent(e)}`:"",c=null;try{c=new s(n(`/api/onboarding/install/${encodeURIComponent(i)}/events${l}`))}catch{return()=>{}}let d=p=>{let f=typeof p.data=="string"?p.data:String(p.data);try{let m=az.safeParse(JSON.parse(f));m.success&&a(m.data)}catch{}};return c.addEventListener("message",d),()=>{try{c?.removeEventListener("message",d),c?.close()}catch{}}},async health(){try{let i=await o(n("/api/onboarding/health"),{headers:{accept:"application/json",...dl(e)}});return i.ok?sz(await i.json()):ll}catch{return ll}},async complete(){try{await o(n("/api/onboarding/complete"),{method:"POST",headers:dl(e)})}catch{}},sendEvent(i,a){let s=a!==void 0?{event:i,properties:a}:{event:i};o(n("/api/onboarding/event"),{method:"POST",headers:{"content-type":"application/json",...dl(e)},body:JSON.stringify(s)}).catch(()=>{})}}}var it=P(J(),1),ub=["honeycomb","doctor","nectar"];function gz({src:e,delayMs:t,size:r,isAnchor:o,testId:n}){return(0,it.jsx)("span",{"data-testid":n,className:`hc-onboarding-anim${o?" hc-onboarding-hero-anchor":" hc-onboarding-hero-logo"}`,style:{display:"inline-flex",animationDelay:`${t}ms`},children:(0,it.jsx)("img",{src:e,width:r,height:r,alt:""})})}function hz({assetBase:e,onChooseStandard:t,onChooseAdvanced:r,staggerMs:o=140}){return(0,it.jsxs)("div",{"data-testid":"onboarding-hero",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,it.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:36,width:"100%",maxWidth:620},children:[(0,it.jsxs)("div",{"data-testid":"onboarding-hero-marks",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:20},children:[ub.map((n,i)=>(0,it.jsx)(gz,{testId:`onboarding-hero-logo-${n}`,src:Uo(n,e),delayMs:i*o,size:44,isAnchor:!1},n)),(0,it.jsx)(gz,{testId:"onboarding-hero-mark",src:Uo("hive",e),delayMs:ub.length*o,size:56,isAnchor:!0})]}),(0,it.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,it.jsx)("h1",{style:{fontSize:"var(--text-3xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Welcome to the hive"}),(0,it.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-base)",color:"var(--text-secondary)",margin:0},children:"Let\u2019s get the rest of your fleet running."})]}),(0,it.jsxs)("div",{"data-testid":"onboarding-choices",className:"hc-onboarding-anim",style:{animationDelay:`${(ub.length+1)*o}ms`,display:"flex",gap:16,flexWrap:"wrap",justifyContent:"center"},children:[(0,it.jsxs)("button",{type:"button","data-testid":"onboarding-standard-button",onClick:t,style:vz("primary"),children:[(0,it.jsx)("span",{style:{fontWeight:700},children:"Standard User"}),(0,it.jsx)("span",{style:yz("primary"),children:"Install the fleet (recommended)"})]}),(0,it.jsxs)("button",{type:"button","data-testid":"onboarding-advanced-button",onClick:r,style:vz("secondary"),children:[(0,it.jsx)("span",{style:{fontWeight:700},children:"Advanced User"}),(0,it.jsx)("span",{style:yz("secondary"),children:"Custom installation"})]})]})]}),(0,it.jsx)("style",{children:[".hc-onboarding-anim { opacity: 0; animation: hc-onboarding-fade var(--dur-slow) var(--ease-out) both; }","@keyframes hc-onboarding-fade { from { opacity: 0 } to { opacity: 1 } }","@media (prefers-reduced-motion: no-preference) {"," .hc-onboarding-hero-logo { animation-name: hc-onboarding-rise; animation-duration: 620ms; }"," .hc-onboarding-hero-anchor { animation-name: hc-onboarding-settle; animation-duration: 760ms; animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }","}","@keyframes hc-onboarding-rise { from { opacity: 0; transform: translateY(18px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }","@keyframes hc-onboarding-settle { from { opacity: 0; transform: translateY(24px) scale(0.7); } to { opacity: 1; transform: translateY(0) scale(1); } }"].join(`
|
|
86
|
+
`)})]})}function vz(e){return{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,minWidth:220,padding:"16px 22px",borderRadius:"var(--radius-lg)",border:e==="primary"?"1px solid transparent":"1px solid var(--border-strong)",background:e==="primary"?"var(--honey)":"var(--bg-elevated)",color:e==="primary"?"var(--honey-on)":"var(--text-primary)",cursor:"pointer",fontFamily:"var(--font-sans)",fontSize:"var(--text-base)",textAlign:"left"}}function yz(e){return{fontSize:"var(--text-xs)",fontWeight:500,color:e==="primary"?"var(--honey-on)":"var(--text-secondary)",opacity:e==="primary"?.85:1}}var mt=P(me(),1);var pl=15e3,xz=Symbol("tenancyRequestFailure");function br(e){return Object.defineProperty({...e},xz,{value:!0,enumerable:!1})}function Kd(e){return typeof e=="object"&&e!==null&&e[xz]===!0}function bz(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async setupTenancy(){let n=new AbortController,i=setTimeout(()=>n.abort(),pl);try{let a=await r(o("/setup/tenancy"),{headers:{accept:"application/json"},signal:n.signal});if(!a.ok)return br(Yi);let s=bd.safeParse(await a.json());return s.success?s.data:br(Yi)}catch{return br(Yi)}finally{clearTimeout(i)}},async listOrgs(){let n=new AbortController,i=setTimeout(()=>n.abort(),pl);try{let a=await r(o("/setup/tenancy/orgs"),{headers:{accept:"application/json"},signal:n.signal});if(!a.ok)return br(Sd);let s=X1.safeParse(await a.json());return s.success?s.data:br(Sd)}catch{return br(Sd)}finally{clearTimeout(i)}},async listWorkspaces(n){let i=new AbortController,a=setTimeout(()=>i.abort(),pl),s={...Y1,org:n};try{let l=`?org=${encodeURIComponent(n)}`,c=await r(o(`/setup/tenancy/workspaces${l}`),{headers:{accept:"application/json"},signal:i.signal});if(!c.ok)return br(s);let d=K1.safeParse(await c.json());return d.success?d.data:br(s)}catch{return br(s)}finally{clearTimeout(a)}},async selectTenancy(n,i){let a=new AbortController,s=setTimeout(()=>a.abort(),pl);try{let l=await r(o("/setup/tenancy/select"),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify({orgId:n,workspaceId:i}),signal:a.signal});if(!l.ok)return null;let c=q1.safeParse(await l.json());return c.success?c.data:null}catch{return null}finally{clearTimeout(s)}},async createWorkspace(n,i){let a=new AbortController,s=setTimeout(()=>a.abort(),pl);try{let l=await r(o("/setup/tenancy/workspaces"),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify({org:n,name:i}),signal:a.signal});if(!l.ok)return null;let c=Q1.safeParse(await l.json());return c.success?c.data:null}catch{return null}finally{clearTimeout(s)}}}}var le=P(J(),1),Q6=2,db="hive.onboarding.tenancy.autoCompleteCount";function e2(){try{if(typeof sessionStorage>"u")return 0;let e=sessionStorage.getItem(db),t=e===null?0:Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:0}catch{return 0}}function Sz(e){try{if(typeof sessionStorage>"u")return;e<=0?sessionStorage.removeItem(db):sessionStorage.setItem(db,String(e))}catch{}}function pb(){let e=e2()+1;return e>Q6?!1:(Sz(e),!0)}function Yd(){Sz(0)}function qd(e){return e.name!==""?e.name:e.id}function fb({onboardingClient:e,tenancyClient:t,onComplete:r}){let o=mt.default.useMemo(()=>t??bz(),[t]),[n,i]=mt.default.useState({kind:"loading"}),[a,s]=mt.default.useState(!1),[l,c]=mt.default.useState(null),[d,p]=mt.default.useState(null),[f,m]=mt.default.useState(""),[x,h]=mt.default.useState(!1),_=mt.default.useRef(!1),v=mt.default.useRef(!1),g=mt.default.useRef(0),y=mt.default.useCallback(()=>{e.sendEvent("dashboard_reached"),(async()=>{if(await e.complete(),r!==void 0){r();return}typeof window<"u"&&window.location.assign("/")})()},[e,r]),S=mt.default.useCallback(async()=>{i({kind:"loading"}),c(null),p(null);let Z=await o.setupTenancy();if(!Kd(Z)&&Z.selected){if(!pb()){i({kind:"split-brain"});return}y();return}Yd();let j=await o.listOrgs();if(Kd(j)){i({kind:"error",message:"Could not load your organizations. Check your connection and retry.",onRetry:()=>{S()}});return}if(g.current=j.orgs.length,j.orgs.length===0){i({kind:"error",message:"No organizations are available for this account. Check your Deeplake credential and retry.",onRetry:()=>{S()}});return}if(j.orgs.length===1){v.current=!0,i({kind:"org-confirm",org:j.orgs[0]});return}i({kind:"org-list",orgs:j.orgs})},[o,y]);mt.default.useEffect(()=>{_.current||(_.current=!0,e.sendEvent("tenancy_shown"))},[e]),mt.default.useEffect(()=>{S()},[S]);let w=mt.default.useCallback(async Z=>{s(!0),c(null),p(null),h(!1),m("");let j=await o.listWorkspaces(Z.id);if(s(!1),Kd(j)){i({kind:"error",message:"Could not load workspaces for this organization. Check your connection and retry.",onRetry:()=>{w(Z)},onBack:()=>{S()}});return}i({kind:"workspace-list",org:Z,workspaces:j.workspaces,canCreate:j.canCreate})},[o,S]),E=mt.default.useCallback(async(Z,j)=>{s(!0),c(null),p(null);let we=await o.selectTenancy(Z.id,j.id);if(s(!1),we===null||we.selected===!1){let te=we!==null&&we.selected===!1?we.error:"Selection could not be saved. Retry.";c(te),p(()=>()=>{E(Z,j)});return}Yd();let W=g.current<=1?"single":g.current<=3?"few":"many";e.sendEvent("tenancy_selected",{orgCount:W,singleOrgConfirm:v.current?"true":"false"}),y()},[o,e,y]),L=mt.default.useCallback(async()=>{if(n.kind!=="workspace-list")return;let Z=f.trim();if(Z==="")return;s(!0),c(null),p(null);let j=await o.createWorkspace(n.org.id,Z);if(j===null||j.created===!1){s(!1),c(j!==null&&j.created===!1?j.error:"Workspace could not be created. Retry."),p(()=>()=>{L()});return}e.sendEvent("workspace_created"),s(!1),await E(n.org,j.workspace)},[n,f,o,e,E]),H={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:28,background:"var(--bg-canvas)",textAlign:"center"};return n.kind==="loading"?(0,le.jsx)("div",{"data-testid":"onboarding-tenancy-step",style:H,children:(0,le.jsx)("p",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Loading your organizations\u2026"})}):n.kind==="error"?(0,le.jsxs)("div",{"data-testid":"onboarding-tenancy-step",style:H,children:[(0,le.jsx)("p",{"data-testid":"onboarding-tenancy-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:n.message}),(0,le.jsx)(I,{variant:"secondary","data-testid":"onboarding-tenancy-retry",onClick:()=>n.onRetry(),children:"Retry"}),n.onBack!==void 0&&(0,le.jsx)(I,{variant:"ghost","data-testid":"onboarding-tenancy-error-back",onClick:()=>n.onBack?.(),children:"Back to organizations"})]}):n.kind==="split-brain"?(0,le.jsx)("div",{"data-testid":"onboarding-tenancy-step",style:H,children:(0,le.jsxs)("div",{"data-testid":"onboarding-tenancy-split-brain",style:{display:"flex",flexDirection:"column",gap:12,maxWidth:480},children:[(0,le.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"The portal keeps returning you here"}),(0,le.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Your tenancy reads as confirmed in this browser, but the portal cannot verify it and keeps redirecting back to this step. The daemon may be unreachable or out of sync. Check that the honeycomb daemon is running, then continue."}),(0,le.jsx)(I,{variant:"primary",size:"lg","data-testid":"onboarding-tenancy-split-brain-continue",onClick:()=>{Yd(),y()},children:"Go to dashboard"}),(0,le.jsx)(I,{variant:"secondary","data-testid":"onboarding-tenancy-split-brain-retry",onClick:()=>{Yd(),S()},children:"Try again"})]})}):(0,le.jsxs)("div",{"data-testid":"onboarding-tenancy-step",style:H,children:[(0,le.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:520},children:[(0,le.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Choose where capture writes"}),(0,le.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Select the organization and workspace your fleet will write to. Nothing captures until you confirm."})]}),n.kind==="org-list"&&(0,le.jsx)("div",{"data-testid":"onboarding-tenancy-org-list",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",maxWidth:420},children:n.orgs.map(Z=>(0,le.jsx)(I,{variant:"secondary",size:"lg","data-testid":"onboarding-tenancy-org-option","data-org-id":Z.id,disabled:a,onClick:()=>{w(Z)},children:qd(Z)},Z.id))}),n.kind==="org-confirm"&&(0,le.jsxs)("div",{"data-testid":"onboarding-tenancy-org-confirm",style:{display:"flex",flexDirection:"column",gap:12,maxWidth:420},children:[(0,le.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Your account has one organization. Confirm you want capture to write under:"}),(0,le.jsxs)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--honey)"},children:[qd(n.org)," (",n.org.id,")"]}),(0,le.jsx)(I,{variant:"primary",size:"lg","data-testid":"onboarding-tenancy-org-confirm-btn",disabled:a,onClick:()=>{w(n.org)},children:"Confirm organization"})]}),n.kind==="workspace-list"&&(0,le.jsxs)("div",{"data-testid":"onboarding-tenancy-workspace-list",style:{display:"flex",flexDirection:"column",gap:10,width:"100%",maxWidth:420},children:[(0,le.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Organization: ",qd(n.org)]}),n.workspaces.length===0&&!n.canCreate?(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)("p",{"data-testid":"onboarding-tenancy-no-workspaces",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"No workspaces are available in this organization."}),(0,le.jsx)(I,{variant:"secondary","data-testid":"onboarding-tenancy-back-orgs",disabled:a,onClick:()=>{S()},children:"Back to organizations"})]}):(0,le.jsxs)(le.Fragment,{children:[n.workspaces.map(Z=>(0,le.jsx)(I,{variant:"secondary",size:"lg","data-testid":"onboarding-tenancy-workspace-option","data-workspace-id":Z.id,disabled:a,onClick:()=>{E(n.org,Z)},children:qd(Z)},Z.id)),n.canCreate&&(0,le.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,marginTop:8},children:x?(0,le.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,le.jsx)("input",{"data-testid":"onboarding-tenancy-create-input",type:"text",value:f,placeholder:"New workspace name",disabled:a,onChange:Z=>m(Z.target.value),style:{height:36,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)"}}),(0,le.jsx)(I,{variant:"primary","data-testid":"onboarding-tenancy-create-submit",disabled:a||f.trim()==="",onClick:()=>{L()},children:"Create and select"})]}):(0,le.jsx)(I,{variant:"ghost","data-testid":"onboarding-tenancy-create-toggle",disabled:a,onClick:()=>h(!0),children:"Create a new workspace"})}),n.workspaces.length>0&&g.current>1&&(0,le.jsx)(I,{variant:"ghost","data-testid":"onboarding-tenancy-back-orgs",disabled:a,onClick:()=>{S()},children:"Back to organizations"})]})]}),l!==null&&(0,le.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center"},children:[(0,le.jsx)("p",{"data-testid":"onboarding-tenancy-select-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l}),(0,le.jsx)(I,{variant:"secondary",size:"sm","data-testid":"onboarding-tenancy-select-retry",disabled:a,onClick:()=>{d!==null?d():c(null)},children:"Retry"})]})]})}var mb=P(me(),1),kz="t";function _z(){let[e,t]=mb.default.useState(null);return mb.default.useEffect(()=>{if(typeof window>"u")return;let o=new URLSearchParams(window.location.search).get(kz);if(o===null||o===""){t("");return}t(o);try{let n=new URL(window.location.href);n.searchParams.delete(kz),window.history.replaceState(null,"",`${n.pathname}${n.search}${n.hash}`)}catch{}},[]),e}var We=P(J(),1);function gb(e){return e.length===0?{kind:"health"}:{kind:"installing",queue:e,index:0}}function t2({onGoToDashboard:e}){return(0,We.jsx)("div",{"data-testid":"onboarding-short-circuit",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:18,maxWidth:440,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,We.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your fleet is already up"}),(0,We.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Every product is installed and the fleet reads healthy. Nothing to install here."}),(0,We.jsx)(I,{variant:"primary",size:"lg","data-testid":"onboarding-go-to-dashboard",onClick:e,children:"Go to dashboard"})]})})}function n2(){return(0,We.jsx)("div",{"data-testid":"onboarding-missing-token",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:18,maxWidth:480,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,We.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"This setup link has expired"}),(0,We.jsx)("p",{style:{fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"The setup page needs the one-time link the installer opens for you, and this visit did not carry it (refreshing this page drops it too). Re-run the installer to get a fresh link:"}),(0,We.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-primary)",background:"var(--bg-canvas)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",padding:"10px 14px"},children:"curl -fsSL https://get.theapiary.sh | sh"})]})})}function wz(){return(0,We.jsx)("div",{"data-testid":"onboarding-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",background:"var(--bg-canvas)"},children:(0,We.jsx)("p",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Checking what is already installed\u2026"})})}function $z({assetBase:e="assets",client:t,wire:r,tenancyClient:o,minDwellMs:n,healthPollMs:i,loginPollMs:a,onShortCircuitNavigate:s,onAuthenticated:l}){let c=_z(),d=t!==void 0||c!==null&&c!=="",p=t===void 0&&c==="",f=St.default.useMemo(()=>t??mz(c??""),[t,c]),m=St.default.useMemo(()=>r??Qr(),[r]),[x,h]=St.default.useState({kind:"loading"}),[_,v]=St.default.useState(null),g=St.default.useRef(!1);St.default.useEffect(()=>{!d||g.current||(g.current=!0,f.sendEvent("onboarding_started"))},[f,d]),St.default.useEffect(()=>{if(!d)return;let W=!0;return(async()=>{let[te,ue]=await Promise.all([f.detect(),f.health()]);if(W)if(v(te),ez(te)&&ue.ready){if((await m.setupState()).authenticated&&!(await m.setupTenancy()).selected){h({kind:"tenancy"});return}h({kind:"short-circuit"})}else tz(te)?h(gb(nz(te,lz()))):h({kind:"hero"})})(),()=>{W=!1}},[f,d,m]);let y=St.default.useCallback(W=>{if(f.sendEvent("mode_selected",{mode:W}),W==="standard"){let te=_!==null?cl(_):[];lb(te),h(gb(te))}else h({kind:"picker"})},[f,_]),S=St.default.useCallback(W=>{lb(W),h(gb(W))},[]),w=St.default.useCallback(()=>{h(W=>{if(W.kind!=="installing")return W;let te=W.index+1;return te>=W.queue.length?{kind:"health"}:{kind:"installing",queue:W.queue,index:te}})},[]),E=St.default.useCallback(()=>h({kind:"login"}),[]),L=St.default.useCallback(()=>{if(cb(),s!==void 0){s();return}typeof window<"u"&&window.location.assign("/")},[s]),H=St.default.useCallback(()=>{if(cb(),l!==void 0){l();return}typeof window<"u"&&window.location.assign("/")},[l]),Z=St.default.useCallback(()=>{h({kind:"tenancy"})},[]),[j,we]=St.default.useState("probing");if(St.default.useEffect(()=>{if(!p)return;let W=!0;return(async()=>{let[te,ue]=await Promise.all([m.setupState(),m.setupTenancy()]);if(W){if(!te.authenticated){we("expired");return}if(ue.selected&&pb()){H();return}we("tenancy")}})().catch(()=>{W&&we("expired")}),()=>{W=!1}},[p,m,H]),p)return j==="probing"?(0,We.jsx)(wz,{}):j==="tenancy"?(0,We.jsx)(fb,{onboardingClient:f,tenancyClient:o,onComplete:H}):(0,We.jsx)(n2,{});switch(x.kind){case"loading":return(0,We.jsx)(wz,{});case"short-circuit":return(0,We.jsx)(t2,{onGoToDashboard:L});case"hero":return(0,We.jsx)(hz,{assetBase:e,onChooseStandard:()=>y("standard"),onChooseAdvanced:()=>y("advanced")});case"picker":return(0,We.jsx)(JP,{products:_!==null?cl(_):[],assetBase:e,onConfirm:S});case"installing":{let W=x.queue[x.index],te=_!==null?ya(_,W):ga;return(0,We.jsx)(dz,{product:W,initialDetection:te,client:f,assetBase:e,onAdvance:w,minDwellMs:n},W)}case"health":return(0,We.jsx)(cz,{client:f,onReady:E,pollMs:i,assetBase:e});case"login":return(0,We.jsx)(fz,{onboardingClient:f,wire:r,onAuthenticated:Z,pollMs:a});case"tenancy":return(0,We.jsx)(fb,{onboardingClient:f,tenancyClient:o,onComplete:H});default:return x}}var Qe=P(me(),1);var ne=P(J(),1),r2=2500,o2=new Set(["backup","uninstall","link"]);function i2(e){return e.migration!==void 0&&o2.has(e.migration.phase)}function a2(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function s2({wire:e,assetBase:t,state:r}){let[o,n]=Qe.default.useState(null),[i,a]=Qe.default.useState(!1),[s,l]=Qe.default.useState(!1),c=Qe.default.useRef(!1),d=Qe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),l(!1);let m=await e.setupLogin();if(m===null){l(!0),a(!1),c.current=!1;return}n(m)},[e]),p=Qe.default.useCallback(()=>{c.current=!1,a(!1),n(null),d()},[d]),f=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,ne.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,ne.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,ne.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,ne.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,ne.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:f?"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,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(I,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),s&&(0,ne.jsx)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:"Could not start setup. Click the button above to try again."})]}):(0,ne.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,ne.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,ne.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,ne.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,ne.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"}),(0,ne.jsx)(I,{variant:"secondary",size:"sm",onClick:p,"data-testid":"setup-restart-login",children:"Closed the window? Restart login"})]})]})}function l2({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=Qe.default.useState(!1),[i,a]=Qe.default.useState(!1),[s,l]=Qe.default.useState(null),c=Qe.default.useRef(!1),d=Qe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(l(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,ne.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,ne.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,ne.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,ne.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,ne.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,ne.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)."]})]}),s!==null&&s.ok===!1?(0,ne.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,ne.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:s.message}),s.backupPath!==void 0&&(0,ne.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,ne.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:s.backupPath})]}),(0,ne.jsx)(I,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,ne.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,ne.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,ne.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,ne.jsx)(I,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,ne.jsx)(I,{variant:"danger",size:"md",onClick:()=>{d()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,ne.jsx)(I,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function c2({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=Qe.default.useState(""),[a,s]=Qe.default.useState(null),l=r.migration?.phase??"backup",c=r.migration?.backupPath,d=Qe.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(s(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=Qe.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();s(f.message),i("")},[e]);return(0,ne.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,ne.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,ne.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,ne.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,ne.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,ne.jsx)("code",{children:l})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,ne.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,ne.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,ne.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,ne.jsx)(I,{variant:"primary",size:"md",onClick:()=>{d()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,ne.jsx)(I,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,ne.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function Pz({client:e,assetBase:t="assets"}={}){let r=Qe.default.useMemo(()=>e??Qr(),[e]),[o,n]=Qe.default.useState(Hs),[i,a]=Qe.default.useState(!1),s=Qe.default.useRef(!1);return Qe.default.useEffect(()=>{if(o.authenticated){!s.current&&typeof window<"u"&&(s.current=!0,window.location.assign("/"));return}let l=!0,c=async()=>{let p=await r.setupState();l&&n(p)};c();let d=setInterval(()=>{c()},r2);return()=>{l=!1,clearInterval(d)}},[r,o.authenticated]),o.authenticated?(0,ne.jsx)(ne.Fragment,{}):i2(o)&&!i?(0,ne.jsx)(c2,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):a2(o)&&!i?(0,ne.jsx)(l2,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,ne.jsx)(s2,{wire:r,assetBase:t,state:o})}var ha=P(J(),1);function u2(){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",o=typeof window>"u"?"/":window.location.pathname,n=WP(o),i=n==="buzzing"?(0,ha.jsx)(BP,{assetBase:r}):n==="login"?(0,ha.jsx)(Pz,{assetBase:r}):n==="onboarding"?(0,ha.jsx)($z,{assetBase:r}):(0,ha.jsx)(FP,{assetBase:r});(0,Iz.createRoot)(e).render((0,ha.jsx)(zz.default.StrictMode,{children:i}))}u2();
|
|
87
87
|
/*! Bundled license information:
|
|
88
88
|
|
|
89
89
|
react/cjs/react.production.min.js:
|