@ensembleapp/client-sdk 0.0.38 → 0.0.40
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/index.d.ts +237 -72
- package/dist/index.js +1358 -517
- package/dist/index.js.map +1 -1
- package/dist/widget/widget.global.d.ts +26 -0
- package/dist/widget/widget.global.js +212 -0
- package/dist/widget/widget.global.js.map +1 -0
- package/lib/chat/ChatWidget.css +57 -19
- package/package.json +2 -2
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/* Chat Widget - Embeddable chat widget */
|
|
2
|
+
"use strict";var ChatWidgetBundle=(()=>{var XO=Object.create;var Ed=Object.defineProperty;var KO=Object.getOwnPropertyDescriptor;var YO=Object.getOwnPropertyNames;var QO=Object.getPrototypeOf,eR=Object.prototype.hasOwnProperty;var tu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ea=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_r=(e,t)=>{for(var a in t)Ed(e,a,{get:t[a],enumerable:!0})},Vk=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of YO(t))!eR.call(e,r)&&r!==a&&Ed(e,r,{get:()=>t[r],enumerable:!(n=KO(t,r))||n.enumerable});return e};var ne=(e,t,a)=>(a=e!=null?XO(QO(e)):{},Vk(t||!e||!e.__esModule?Ed(a,"default",{value:e,enumerable:!0}):a,e)),tR=e=>Vk(Ed({},"__esModule",{value:!0}),e);var a0=ea(vt=>{"use strict";function Kh(e,t){var a=e.length;e.push(t);e:for(;0<a;){var n=a-1>>>1,r=e[n];if(0<$d(r,t))e[n]=t,e[a]=r,a=n;else break e}}function Pr(e){return e.length===0?null:e[0]}function Dd(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,r=e.length,o=r>>>1;n<o;){var i=2*(n+1)-1,l=e[i],s=i+1,u=e[s];if(0>$d(l,a))s<r&&0>$d(u,l)?(e[n]=u,e[s]=a,n=s):(e[n]=l,e[i]=a,n=i);else if(s<r&&0>$d(u,a))e[n]=u,e[s]=a,n=s;else break e}}return t}function $d(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}vt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Gk=performance,vt.unstable_now=function(){return Gk.now()}):(Wh=Date,Wk=Wh.now(),vt.unstable_now=function(){return Wh.now()-Wk});var Gk,Wh,Wk,on=[],Bn=[],aR=1,ar=null,sa=3,Yh=!1,au=!1,ru=!1,Qh=!1,Kk=typeof setTimeout=="function"?setTimeout:null,Yk=typeof clearTimeout=="function"?clearTimeout:null,Jk=typeof setImmediate<"u"?setImmediate:null;function Md(e){for(var t=Pr(Bn);t!==null;){if(t.callback===null)Dd(Bn);else if(t.startTime<=e)Dd(Bn),t.sortIndex=t.expirationTime,Kh(on,t);else break;t=Pr(Bn)}}function eg(e){if(ru=!1,Md(e),!au)if(Pr(on)!==null)au=!0,Vi||(Vi=!0,Hi());else{var t=Pr(Bn);t!==null&&tg(eg,t.startTime-e)}}var Vi=!1,nu=-1,Qk=5,e0=-1;function t0(){return Qh?!0:!(vt.unstable_now()-e0<Qk)}function Jh(){if(Qh=!1,Vi){var e=vt.unstable_now();e0=e;var t=!0;try{e:{au=!1,ru&&(ru=!1,Yk(nu),nu=-1),Yh=!0;var a=sa;try{t:{for(Md(e),ar=Pr(on);ar!==null&&!(ar.expirationTime>e&&t0());){var n=ar.callback;if(typeof n=="function"){ar.callback=null,sa=ar.priorityLevel;var r=n(ar.expirationTime<=e);if(e=vt.unstable_now(),typeof r=="function"){ar.callback=r,Md(e),t=!0;break t}ar===Pr(on)&&Dd(on),Md(e)}else Dd(on);ar=Pr(on)}if(ar!==null)t=!0;else{var o=Pr(Bn);o!==null&&tg(eg,o.startTime-e),t=!1}}break e}finally{ar=null,sa=a,Yh=!1}t=void 0}}finally{t?Hi():Vi=!1}}}var Hi;typeof Jk=="function"?Hi=function(){Jk(Jh)}:typeof MessageChannel<"u"?(Xh=new MessageChannel,Xk=Xh.port2,Xh.port1.onmessage=Jh,Hi=function(){Xk.postMessage(null)}):Hi=function(){Kk(Jh,0)};var Xh,Xk;function tg(e,t){nu=Kk(function(){e(vt.unstable_now())},t)}vt.unstable_IdlePriority=5;vt.unstable_ImmediatePriority=1;vt.unstable_LowPriority=4;vt.unstable_NormalPriority=3;vt.unstable_Profiling=null;vt.unstable_UserBlockingPriority=2;vt.unstable_cancelCallback=function(e){e.callback=null};vt.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"):Qk=0<e?Math.floor(1e3/e):5};vt.unstable_getCurrentPriorityLevel=function(){return sa};vt.unstable_next=function(e){switch(sa){case 1:case 2:case 3:var t=3;break;default:t=sa}var a=sa;sa=t;try{return e()}finally{sa=a}};vt.unstable_requestPaint=function(){Qh=!0};vt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=sa;sa=e;try{return t()}finally{sa=a}};vt.unstable_scheduleCallback=function(e,t,a){var n=vt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,e={id:aR++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>n?(e.sortIndex=a,Kh(Bn,e),Pr(on)===null&&e===Pr(Bn)&&(ru?(Yk(nu),nu=-1):ru=!0,tg(eg,a-n))):(e.sortIndex=r,Kh(on,e),au||Yh||(au=!0,Vi||(Vi=!0,Hi()))),e};vt.unstable_shouldYield=t0;vt.unstable_wrapCallback=function(e){var t=sa;return function(){var a=sa;sa=t;try{return e.apply(this,arguments)}finally{sa=a}}}});var n0=ea((YZ,r0)=>{"use strict";r0.exports=a0()});var h0=ea(be=>{"use strict";var ng=Symbol.for("react.transitional.element"),rR=Symbol.for("react.portal"),nR=Symbol.for("react.fragment"),oR=Symbol.for("react.strict_mode"),iR=Symbol.for("react.profiler"),lR=Symbol.for("react.consumer"),sR=Symbol.for("react.context"),uR=Symbol.for("react.forward_ref"),cR=Symbol.for("react.suspense"),dR=Symbol.for("react.memo"),u0=Symbol.for("react.lazy"),fR=Symbol.for("react.activity"),o0=Symbol.iterator;function pR(e){return e===null||typeof e!="object"?null:(e=o0&&e[o0]||e["@@iterator"],typeof e=="function"?e:null)}var c0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d0=Object.assign,f0={};function Wi(e,t,a){this.props=e,this.context=t,this.refs=f0,this.updater=a||c0}Wi.prototype.isReactComponent={};Wi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function p0(){}p0.prototype=Wi.prototype;function og(e,t,a){this.props=e,this.context=t,this.refs=f0,this.updater=a||c0}var ig=og.prototype=new p0;ig.constructor=og;d0(ig,Wi.prototype);ig.isPureReactComponent=!0;var i0=Array.isArray;function rg(){}var st={H:null,A:null,T:null,S:null},m0=Object.prototype.hasOwnProperty;function lg(e,t,a){var n=a.ref;return{$$typeof:ng,type:e,key:t,ref:n!==void 0?n:null,props:a}}function mR(e,t){return lg(e.type,t,e.props)}function sg(e){return typeof e=="object"&&e!==null&&e.$$typeof===ng}function hR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var l0=/\/+/g;function ag(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hR(""+e.key):t.toString(36)}function gR(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(rg,rg):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Gi(e,t,a,n,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ng:case rR:i=!0;break;case u0:return i=e._init,Gi(i(e._payload),t,a,n,r)}}if(i)return r=r(e),i=n===""?"."+ag(e,0):n,i0(r)?(a="",i!=null&&(a=i.replace(l0,"$&/")+"/"),Gi(r,t,a,"",function(u){return u})):r!=null&&(sg(r)&&(r=mR(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(l0,"$&/")+"/")+i)),t.push(r)),1;i=0;var l=n===""?".":n+":";if(i0(e))for(var s=0;s<e.length;s++)n=e[s],o=l+ag(n,s),i+=Gi(n,t,a,o,r);else if(s=pR(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,o=l+ag(n,s++),i+=Gi(n,t,a,o,r);else if(o==="object"){if(typeof e.then=="function")return Gi(gR(e),t,a,n,r);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 i}function zd(e,t,a){if(e==null)return e;var n=[],r=0;return Gi(e,n,"","",function(o){return t.call(a,o,r++)}),n}function vR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var s0=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yR={map:zd,forEach:function(e,t,a){zd(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return zd(e,function(){t++}),t},toArray:function(e){return zd(e,function(t){return t})||[]},only:function(e){if(!sg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};be.Activity=fR;be.Children=yR;be.Component=Wi;be.Fragment=nR;be.Profiler=iR;be.PureComponent=og;be.StrictMode=oR;be.Suspense=cR;be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st;be.__COMPILER_RUNTIME={__proto__:null,c:function(e){return st.H.useMemoCache(e)}};be.cache=function(e){return function(){return e.apply(null,arguments)}};be.cacheSignal=function(){return null};be.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=d0({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!m0.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(n[o]=t[o]);var o=arguments.length-2;if(o===1)n.children=a;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];n.children=i}return lg(e.type,r,n)};be.createContext=function(e){return e={$$typeof:sR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:lR,_context:e},e};be.createElement=function(e,t,a){var n,r={},o=null;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)m0.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(r[n]=t[n]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];r.children=l}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)r[n]===void 0&&(r[n]=i[n]);return lg(e,o,r)};be.createRef=function(){return{current:null}};be.forwardRef=function(e){return{$$typeof:uR,render:e}};be.isValidElement=sg;be.lazy=function(e){return{$$typeof:u0,_payload:{_status:-1,_result:e},_init:vR}};be.memo=function(e,t){return{$$typeof:dR,type:e,compare:t===void 0?null:t}};be.startTransition=function(e){var t=st.T,a={};st.T=a;try{var n=e(),r=st.S;r!==null&&r(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(rg,s0)}catch(o){s0(o)}finally{t!==null&&a.types!==null&&(t.types=a.types),st.T=t}};be.unstable_useCacheRefresh=function(){return st.H.useCacheRefresh()};be.use=function(e){return st.H.use(e)};be.useActionState=function(e,t,a){return st.H.useActionState(e,t,a)};be.useCallback=function(e,t){return st.H.useCallback(e,t)};be.useContext=function(e){return st.H.useContext(e)};be.useDebugValue=function(){};be.useDeferredValue=function(e,t){return st.H.useDeferredValue(e,t)};be.useEffect=function(e,t){return st.H.useEffect(e,t)};be.useEffectEvent=function(e){return st.H.useEffectEvent(e)};be.useId=function(){return st.H.useId()};be.useImperativeHandle=function(e,t,a){return st.H.useImperativeHandle(e,t,a)};be.useInsertionEffect=function(e,t){return st.H.useInsertionEffect(e,t)};be.useLayoutEffect=function(e,t){return st.H.useLayoutEffect(e,t)};be.useMemo=function(e,t){return st.H.useMemo(e,t)};be.useOptimistic=function(e,t){return st.H.useOptimistic(e,t)};be.useReducer=function(e,t,a){return st.H.useReducer(e,t,a)};be.useRef=function(e){return st.H.useRef(e)};be.useState=function(e){return st.H.useState(e)};be.useSyncExternalStore=function(e,t,a){return st.H.useSyncExternalStore(e,t,a)};be.useTransition=function(){return st.H.useTransition()};be.version="19.2.4"});var yt=ea((e7,g0)=>{"use strict";g0.exports=h0()});var y0=ea(va=>{"use strict";var xR=yt();function v0(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function qn(){}var ga={d:{f:qn,r:function(){throw Error(v0(522))},D:qn,C:qn,L:qn,m:qn,X:qn,S:qn,M:qn},p:0,findDOMNode:null},bR=Symbol.for("react.portal");function SR(e,t,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:bR,key:n==null?null:""+n,children:e,containerInfo:t,implementation:a}}var ou=xR.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Od(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}va.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ga;va.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(v0(299));return SR(e,t,null,a)};va.flushSync=function(e){var t=ou.T,a=ga.p;try{if(ou.T=null,ga.p=2,e)return e()}finally{ou.T=t,ga.p=a,ga.d.f()}};va.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,ga.d.C(e,t))};va.prefetchDNS=function(e){typeof e=="string"&&ga.d.D(e)};va.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,n=Od(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?ga.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:r,fetchPriority:o}):a==="script"&&ga.d.X(e,{crossOrigin:n,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};va.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Od(t.as,t.crossOrigin);ga.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&ga.d.M(e)};va.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,n=Od(a,t.crossOrigin);ga.d.L(e,a,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};va.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Od(t.as,t.crossOrigin);ga.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else ga.d.m(e)};va.requestFormReset=function(e){ga.d.r(e)};va.unstable_batchedUpdates=function(e,t){return e(t)};va.useFormState=function(e,t,a){return ou.H.useFormState(e,t,a)};va.useFormStatus=function(){return ou.H.useHostTransitionStatus()};va.version="19.2.4"});var S0=ea((a7,b0)=>{"use strict";function x0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x0)}catch(e){console.error(e)}}x0(),b0.exports=y0()});var DL=ea(lp=>{"use strict";var qt=n0(),GC=yt(),wR=S0();function j(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function WC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hu(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function JC(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 XC(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function w0(e){if(Hu(e)!==e)throw Error(j(188))}function _R(e){var t=e.alternate;if(!t){if(t=Hu(e),t===null)throw Error(j(188));return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var o=r.alternate;if(o===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===a)return w0(r),e;if(o===n)return w0(r),t;o=o.sibling}throw Error(j(188))}if(a.return!==n.return)a=r,n=o;else{for(var i=!1,l=r.child;l;){if(l===a){i=!0,a=r,n=o;break}if(l===n){i=!0,n=r,a=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===a){i=!0,a=o,n=r;break}if(l===n){i=!0,n=o,a=r;break}l=l.sibling}if(!i)throw Error(j(189))}}if(a.alternate!==n)throw Error(j(190))}if(a.tag!==3)throw Error(j(188));return a.stateNode.current===a?e:t}function KC(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=KC(e),t!==null)return t;e=e.sibling}return null}var dt=Object.assign,IR=Symbol.for("react.element"),Rd=Symbol.for("react.transitional.element"),pu=Symbol.for("react.portal"),el=Symbol.for("react.fragment"),YC=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),QC=Symbol.for("react.consumer"),mn=Symbol.for("react.context"),Pv=Symbol.for("react.forward_ref"),qg=Symbol.for("react.suspense"),Zg=Symbol.for("react.suspense_list"),Nv=Symbol.for("react.memo"),Zn=Symbol.for("react.lazy"),Hg=Symbol.for("react.activity"),kR=Symbol.for("react.memo_cache_sentinel"),_0=Symbol.iterator;function iu(e){return e===null||typeof e!="object"?null:(e=_0&&e[_0]||e["@@iterator"],typeof e=="function"?e:null)}var CR=Symbol.for("react.client.reference");function Vg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===CR?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case el:return"Fragment";case Bg:return"Profiler";case YC:return"StrictMode";case qg:return"Suspense";case Zg:return"SuspenseList";case Hg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case pu:return"Portal";case mn:return e.displayName||"Context";case QC:return(e._context.displayName||"Context")+".Consumer";case Pv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nv:return t=e.displayName||null,t!==null?t:Vg(e.type)||"Memo";case Zn:t=e._payload,e=e._init;try{return Vg(e(t))}catch{}}return null}var mu=Array.isArray,he=GC.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe=wR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ko={pending:!1,data:null,method:null,action:null},Gg=[],tl=-1;function Br(e){return{current:e}}function Xt(e){0>tl||(e.current=Gg[tl],Gg[tl]=null,tl--)}function lt(e,t){tl++,Gg[tl]=e.current,e.current=t}var jr=Br(null),$u=Br(null),to=Br(null),gf=Br(null);function vf(e,t){switch(lt(to,t),lt($u,e),lt(jr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?EC(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=EC(t),e=xL(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Xt(jr),lt(jr,e)}function xl(){Xt(jr),Xt($u),Xt(to)}function Wg(e){e.memoizedState!==null&<(gf,e);var t=jr.current,a=xL(t,e.type);t!==a&&(lt($u,e),lt(jr,a))}function yf(e){$u.current===e&&(Xt(jr),Xt($u)),gf.current===e&&(Xt(gf),Bu._currentValue=Ko)}var ug,I0;function Go(e){if(ug===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ug=t&&t[1]||"",I0=-1<a.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+ug+e+I0}var cg=!1;function dg(e,t){if(!e||cg)return"";cg=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(f){var p=f}Reflect.construct(e,[],d)}else{try{d.call()}catch(f){p=f}e.call(d.prototype)}}else{try{throw Error()}catch(f){p=f}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(f){if(f&&p&&typeof f.stack=="string")return[f.stack,p.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),i=o[0],l=o[1];if(i&&l){var s=i.split(`
|
|
5
|
+
`),u=l.split(`
|
|
6
|
+
`);for(r=n=0;n<s.length&&!s[n].includes("DetermineComponentFrameRoot");)n++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(n===s.length||r===u.length)for(n=s.length-1,r=u.length-1;1<=n&&0<=r&&s[n]!==u[r];)r--;for(;1<=n&&0<=r;n--,r--)if(s[n]!==u[r]){if(n!==1||r!==1)do if(n--,r--,0>r||s[n]!==u[r]){var c=`
|
|
7
|
+
`+s[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=n&&0<=r);break}}}finally{cg=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Go(a):""}function TR(e,t){switch(e.tag){case 26:case 27:case 5:return Go(e.type);case 16:return Go("Lazy");case 13:return e.child!==t&&t!==null?Go("Suspense Fallback"):Go("Suspense");case 19:return Go("SuspenseList");case 0:case 15:return dg(e.type,!1);case 11:return dg(e.type.render,!1);case 1:return dg(e.type,!0);case 31:return Go("Activity");default:return""}}function k0(e){try{var t="",a=null;do t+=TR(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
8
|
+
Error generating stack: `+n.message+`
|
|
9
|
+
`+n.stack}}var Jg=Object.prototype.hasOwnProperty,Uv=qt.unstable_scheduleCallback,fg=qt.unstable_cancelCallback,LR=qt.unstable_shouldYield,AR=qt.unstable_requestPaint,qa=qt.unstable_now,ER=qt.unstable_getCurrentPriorityLevel,e1=qt.unstable_ImmediatePriority,t1=qt.unstable_UserBlockingPriority,xf=qt.unstable_NormalPriority,$R=qt.unstable_LowPriority,a1=qt.unstable_IdlePriority,MR=qt.log,DR=qt.unstable_setDisableYieldValue,Vu=null,Za=null;function Xn(e){if(typeof MR=="function"&&DR(e),Za&&typeof Za.setStrictMode=="function")try{Za.setStrictMode(Vu,e)}catch{}}var Ha=Math.clz32?Math.clz32:RR,zR=Math.log,OR=Math.LN2;function RR(e){return e>>>=0,e===0?32:31-(zR(e)/OR|0)|0}var Pd=256,Nd=262144,Ud=4194304;function Wo(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hf(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=n&134217727;return l!==0?(n=l&~o,n!==0?r=Wo(n):(i&=l,i!==0?r=Wo(i):a||(a=l&~e,a!==0&&(r=Wo(a))))):(l=n&~o,l!==0?r=Wo(l):i!==0?r=Wo(i):a||(a=n&~e,a!==0&&(r=Wo(a)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:r}function Gu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function PR(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function r1(){var e=Ud;return Ud<<=1,(Ud&62914560)===0&&(Ud=4194304),e}function pg(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function NR(e,t,a,n,r,o){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(a=i&~a;0<a;){var c=31-Ha(a),d=1<<c;l[c]=0,s[c]=-1;var p=u[c];if(p!==null)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];f!==null&&(f.lane&=-536870913)}a&=~d}n!==0&&n1(e,n,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function n1(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ha(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function o1(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ha(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function i1(e,t){var a=t&-t;return a=(a&42)!==0?1:Fv(a),(a&(e.suspendedLanes|t))!==0?0:a}function Fv(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function jv(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function l1(){var e=qe.p;return e!==0?e:(e=window.event,e===void 0?32:EL(e.type))}function C0(e,t){var a=qe.p;try{return qe.p=e,t()}finally{qe.p=a}}var ho=Math.random().toString(36).slice(2),aa="__reactFiber$"+ho,$a="__reactProps$"+ho,El="__reactContainer$"+ho,Xg="__reactEvents$"+ho,UR="__reactListeners$"+ho,FR="__reactHandles$"+ho,T0="__reactResources$"+ho,Ju="__reactMarker$"+ho;function Bv(e){delete e[aa],delete e[$a],delete e[Xg],delete e[UR],delete e[FR]}function al(e){var t=e[aa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[El]||a[aa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=OC(e);e!==null;){if(a=e[aa])return a;e=OC(e)}return t}e=a,a=e.parentNode}return null}function $l(e){if(e=e[aa]||e[El]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function hu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(j(33))}function fl(e){var t=e[T0];return t||(t=e[T0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Jt(e){e[Ju]=!0}var s1=new Set,u1={};function li(e,t){bl(e,t),bl(e+"Capture",t)}function bl(e,t){for(u1[e]=t,e=0;e<t.length;e++)s1.add(t[e])}var jR=RegExp("^[: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]*$"),L0={},A0={};function BR(e){return Jg.call(A0,e)?!0:Jg.call(L0,e)?!1:jR.test(e)?A0[e]=!0:(L0[e]=!0,!1)}function ef(e,t,a){if(BR(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Fd(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ln(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function nr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qR(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kg(e){if(!e._valueTracker){var t=c1(e)?"checked":"value";e._valueTracker=qR(e,t,""+e[t])}}function d1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=c1(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function bf(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}}var ZR=/[\n"\\]/g;function lr(e){return e.replace(ZR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yg(e,t,a,n,r,o,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nr(t)):e.value!==""+nr(t)&&(e.value=""+nr(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Qg(e,i,nr(t)):a!=null?Qg(e,i,nr(a)):n!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+nr(l):e.removeAttribute("name")}function f1(e,t,a,n,r,o,i,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Kg(e);return}a=a!=null?""+nr(a):"",t=t!=null?""+nr(t):a,l||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=l?e.checked:!!n,e.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Kg(e)}function Qg(e,t,a){t==="number"&&bf(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function pl(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+nr(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function p1(e,t,a){if(t!=null&&(t=""+nr(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+nr(a):""}function m1(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(j(92));if(mu(n)){if(1<n.length)throw Error(j(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=nr(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Kg(e)}function Sl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var HR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function E0(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||HR.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function h1(e,t,a){if(t!=null&&typeof t!="object")throw Error(j(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&a[r]!==n&&E0(e,r,n)}else for(var o in t)t.hasOwnProperty(o)&&E0(e,o,t[o])}function qv(e){if(e.indexOf("-")===-1)return!1;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 VR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),GR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tf(e){return GR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hn(){}var ev=null;function Zv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rl=null,ml=null;function $0(e){var t=$l(e);if(t&&(e=t.stateNode)){var a=e[$a]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yg(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+lr(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[$a]||null;if(!r)throw Error(j(90));Yg(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&d1(n)}break e;case"textarea":p1(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&pl(e,!!a.multiple,t,!1)}}}var mg=!1;function g1(e,t,a){if(mg)return e(t,a);mg=!0;try{var n=e(t);return n}finally{if(mg=!1,(rl!==null||ml!==null)&&(rp(),rl&&(t=rl,e=ml,ml=rl=null,$0(t),e)))for(t=0;t<e.length;t++)$0(e[t])}}function Mu(e,t){var a=e.stateNode;if(a===null)return null;var n=a[$a]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(j(231,t,typeof a));return a}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tv=!1;if(bn)try{Ji={},Object.defineProperty(Ji,"passive",{get:function(){tv=!0}}),window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{tv=!1}var Ji,Kn=null,Hv=null,af=null;function v1(){if(af)return af;var e,t=Hv,a=t.length,n,r="value"in Kn?Kn.value:Kn.textContent,o=r.length;for(e=0;e<a&&t[e]===r[e];e++);var i=a-e;for(n=1;n<=i&&t[a-n]===r[o-n];n++);return af=r.slice(e,1<n?1-n:void 0)}function rf(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 jd(){return!0}function M0(){return!1}function Ma(e){function t(a,n,r,o,i){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(a=e[l],this[l]=a?a(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?jd:M0,this.isPropagationStopped=M0,this}return dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=jd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=jd)},persist:function(){},isPersistent:jd}),t}var si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vf=Ma(si),Xu=dt({},si,{view:0,detail:0}),WR=Ma(Xu),hg,gg,lu,Gf=dt({},Xu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vv,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!==lu&&(lu&&e.type==="mousemove"?(hg=e.screenX-lu.screenX,gg=e.screenY-lu.screenY):gg=hg=0,lu=e),hg)},movementY:function(e){return"movementY"in e?e.movementY:gg}}),D0=Ma(Gf),JR=dt({},Gf,{dataTransfer:0}),XR=Ma(JR),KR=dt({},Xu,{relatedTarget:0}),vg=Ma(KR),YR=dt({},si,{animationName:0,elapsedTime:0,pseudoElement:0}),QR=Ma(YR),e4=dt({},si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t4=Ma(e4),a4=dt({},si,{data:0}),z0=Ma(a4),r4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n4={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"},o4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o4[e])?!!t[e]:!1}function Vv(){return i4}var l4=dt({},Xu,{key:function(e){if(e.key){var t=r4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vv,charCode:function(e){return e.type==="keypress"?rf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s4=Ma(l4),u4=dt({},Gf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),O0=Ma(u4),c4=dt({},Xu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vv}),d4=Ma(c4),f4=dt({},si,{propertyName:0,elapsedTime:0,pseudoElement:0}),p4=Ma(f4),m4=dt({},Gf,{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}),h4=Ma(m4),g4=dt({},si,{newState:0,oldState:0}),v4=Ma(g4),y4=[9,13,27,32],Gv=bn&&"CompositionEvent"in window,yu=null;bn&&"documentMode"in document&&(yu=document.documentMode);var x4=bn&&"TextEvent"in window&&!yu,y1=bn&&(!Gv||yu&&8<yu&&11>=yu),R0=" ",P0=!1;function x1(e,t){switch(e){case"keyup":return y4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nl=!1;function b4(e,t){switch(e){case"compositionend":return b1(t);case"keypress":return t.which!==32?null:(P0=!0,R0);case"textInput":return e=t.data,e===R0&&P0?null:e;default:return null}}function S4(e,t){if(nl)return e==="compositionend"||!Gv&&x1(e,t)?(e=v1(),af=Hv=Kn=null,nl=!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 y1&&t.locale!=="ko"?null:t.data;default:return null}}var w4={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 N0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w4[e.type]:t==="textarea"}function S1(e,t,a,n){rl?ml?ml.push(n):ml=[n]:rl=n,t=Nf(t,"onChange"),0<t.length&&(a=new Vf("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var xu=null,Du=null;function _4(e){gL(e,0)}function Wf(e){var t=hu(e);if(d1(t))return e}function U0(e,t){if(e==="change")return t}var w1=!1;bn&&(bn?(qd="oninput"in document,qd||(yg=document.createElement("div"),yg.setAttribute("oninput","return;"),qd=typeof yg.oninput=="function"),Bd=qd):Bd=!1,w1=Bd&&(!document.documentMode||9<document.documentMode));var Bd,qd,yg;function F0(){xu&&(xu.detachEvent("onpropertychange",_1),Du=xu=null)}function _1(e){if(e.propertyName==="value"&&Wf(Du)){var t=[];S1(t,Du,e,Zv(e)),g1(_4,t)}}function I4(e,t,a){e==="focusin"?(F0(),xu=t,Du=a,xu.attachEvent("onpropertychange",_1)):e==="focusout"&&F0()}function k4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wf(Du)}function C4(e,t){if(e==="click")return Wf(t)}function T4(e,t){if(e==="input"||e==="change")return Wf(t)}function L4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ga=typeof Object.is=="function"?Object.is:L4;function zu(e,t){if(Ga(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!Jg.call(t,r)||!Ga(e[r],t[r]))return!1}return!0}function j0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function B0(e,t){var a=j0(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=j0(a)}}function I1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?I1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function k1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bf(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=bf(e.document)}return t}function Wv(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")}var A4=bn&&"documentMode"in document&&11>=document.documentMode,ol=null,av=null,bu=null,rv=!1;function q0(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;rv||ol==null||ol!==bf(n)||(n=ol,"selectionStart"in n&&Wv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bu&&zu(bu,n)||(bu=n,n=Nf(av,"onSelect"),0<n.length&&(t=new Vf("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=ol)))}function Vo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var il={animationend:Vo("Animation","AnimationEnd"),animationiteration:Vo("Animation","AnimationIteration"),animationstart:Vo("Animation","AnimationStart"),transitionrun:Vo("Transition","TransitionRun"),transitionstart:Vo("Transition","TransitionStart"),transitioncancel:Vo("Transition","TransitionCancel"),transitionend:Vo("Transition","TransitionEnd")},xg={},C1={};bn&&(C1=document.createElement("div").style,"AnimationEvent"in window||(delete il.animationend.animation,delete il.animationiteration.animation,delete il.animationstart.animation),"TransitionEvent"in window||delete il.transitionend.transition);function ui(e){if(xg[e])return xg[e];if(!il[e])return e;var t=il[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in C1)return xg[e]=t[a];return e}var T1=ui("animationend"),L1=ui("animationiteration"),A1=ui("animationstart"),E4=ui("transitionrun"),$4=ui("transitionstart"),M4=ui("transitioncancel"),E1=ui("transitionend"),$1=new Map,nv="abort auxClick beforeToggle 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(" ");nv.push("scrollEnd");function Cr(e,t){$1.set(e,t),li(t,[e])}var Sf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rr=[],ll=0,Jv=0;function Jf(){for(var e=ll,t=Jv=ll=0;t<e;){var a=rr[t];rr[t++]=null;var n=rr[t];rr[t++]=null;var r=rr[t];rr[t++]=null;var o=rr[t];if(rr[t++]=null,n!==null&&r!==null){var i=n.pending;i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r}o!==0&&M1(a,r,o)}}function Xf(e,t,a,n){rr[ll++]=e,rr[ll++]=t,rr[ll++]=a,rr[ll++]=n,Jv|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Xv(e,t,a,n){return Xf(e,t,a,n),wf(e)}function ci(e,t){return Xf(e,null,null,t),wf(e)}function M1(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,o=e.return;o!==null;)o.childLanes|=a,n=o.alternate,n!==null&&(n.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-Ha(a),e=o.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),o):null}function wf(e){if(50<Au)throw Au=0,kv=null,Error(j(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var sl={};function D4(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ja(e,t,a,n){return new D4(e,t,a,n)}function Kv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vn(e,t){var a=e.alternate;return a===null?(a=ja(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function D1(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nf(e,t,a,n,r,o){var i=0;if(n=e,typeof e=="function")Kv(e)&&(i=1);else if(typeof e=="string")i=RP(e,a,jr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Hg:return e=ja(31,a,t,r),e.elementType=Hg,e.lanes=o,e;case el:return Yo(a.children,r,o,t);case YC:i=8,r|=24;break;case Bg:return e=ja(12,a,t,r|2),e.elementType=Bg,e.lanes=o,e;case qg:return e=ja(13,a,t,r),e.elementType=qg,e.lanes=o,e;case Zg:return e=ja(19,a,t,r),e.elementType=Zg,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mn:i=10;break e;case QC:i=9;break e;case Pv:i=11;break e;case Nv:i=14;break e;case Zn:i=16,n=null;break e}i=29,a=Error(j(130,e===null?"null":typeof e,"")),n=null}return t=ja(i,a,t,r),t.elementType=e,t.type=n,t.lanes=o,t}function Yo(e,t,a,n){return e=ja(7,e,n,t),e.lanes=a,e}function bg(e,t,a){return e=ja(6,e,null,t),e.lanes=a,e}function z1(e){var t=ja(18,null,null,0);return t.stateNode=e,t}function Sg(e,t,a){return t=ja(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Z0=new WeakMap;function sr(e,t){if(typeof e=="object"&&e!==null){var a=Z0.get(e);return a!==void 0?a:(t={value:e,source:t,stack:k0(t)},Z0.set(e,t),t)}return{value:e,source:t,stack:k0(t)}}var ul=[],cl=0,_f=null,Ou=0,or=[],ir=0,co=null,Nr=1,Ur="";function fn(e,t){ul[cl++]=Ou,ul[cl++]=_f,_f=e,Ou=t}function O1(e,t,a){or[ir++]=Nr,or[ir++]=Ur,or[ir++]=co,co=e;var n=Nr;e=Ur;var r=32-Ha(n)-1;n&=~(1<<r),a+=1;var o=32-Ha(t)+r;if(30<o){var i=r-r%5;o=(n&(1<<i)-1).toString(32),n>>=i,r-=i,Nr=1<<32-Ha(t)+r|a<<r|n,Ur=o+e}else Nr=1<<o|a<<r|n,Ur=e}function Yv(e){e.return!==null&&(fn(e,1),O1(e,1,0))}function Qv(e){for(;e===_f;)_f=ul[--cl],ul[cl]=null,Ou=ul[--cl],ul[cl]=null;for(;e===co;)co=or[--ir],or[ir]=null,Ur=or[--ir],or[ir]=null,Nr=or[--ir],or[ir]=null}function R1(e,t){or[ir++]=Nr,or[ir++]=Ur,or[ir++]=co,Nr=t.id,Ur=t.overflow,co=e}var ra=null,ct=null,Ne=!1,ao=null,ur=!1,ov=Error(j(519));function fo(e){var t=Error(j(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ru(sr(t,e)),ov}function H0(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[aa]=e,t[$a]=n,a){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(a=0;a<Fu.length;a++)ze(Fu[a],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),f1(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),m1(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||yL(t.textContent,a)?(n.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),n.onScroll!=null&&ze("scroll",t),n.onScrollEnd!=null&&ze("scrollend",t),n.onClick!=null&&(t.onclick=hn),t=!0):t=!1,t||fo(e,!0)}function V0(e){for(ra=e.return;ra;)switch(ra.tag){case 5:case 31:case 13:ur=!1;return;case 27:case 3:ur=!0;return;default:ra=ra.return}}function Xi(e){if(e!==ra)return!1;if(!Ne)return V0(e),Ne=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ev(e.type,e.memoizedProps)),a=!a),a&&ct&&fo(e),V0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));ct=zC(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));ct=zC(e)}else t===27?(t=ct,go(e.type)?(e=zv,zv=null,ct=e):ct=t):ct=ra?dr(e.stateNode.nextSibling):null;return!0}function ai(){ct=ra=null,Ne=!1}function wg(){var e=ao;return e!==null&&(Aa===null?Aa=e:Aa.push.apply(Aa,e),ao=null),e}function Ru(e){ao===null?ao=[e]:ao.push(e)}var iv=Br(null),di=null,gn=null;function Vn(e,t,a){lt(iv,t._currentValue),t._currentValue=a}function yn(e){e._currentValue=iv.current,Xt(iv)}function lv(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function sv(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var i=r.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=r;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=a,l=o.alternate,l!==null&&(l.lanes|=a),lv(o.return,a,e),n||(i=null);break e}o=l.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(j(341));i.lanes|=a,o=i.alternate,o!==null&&(o.lanes|=a),lv(i,a,e),i=null}else i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function Ml(e,t,a,n){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(j(387));if(i=i.memoizedProps,i!==null){var l=r.type;Ga(r.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(r===gf.current){if(i=r.alternate,i===null)throw Error(j(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Bu):e=[Bu])}r=r.return}e!==null&&sv(t,e,a,n),t.flags|=262144}function If(e){for(e=e.firstContext;e!==null;){if(!Ga(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ri(e){di=e,gn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function na(e){return P1(di,e)}function Zd(e,t){return di===null&&ri(e),P1(e,t)}function P1(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},gn===null){if(e===null)throw Error(j(308));gn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gn=gn.next=t;return a}var z4=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},O4=qt.unstable_scheduleCallback,R4=qt.unstable_NormalPriority,Rt={$$typeof:mn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ey(){return{controller:new z4,data:new Map,refCount:0}}function Ku(e){e.refCount--,e.refCount===0&&O4(R4,function(){e.controller.abort()})}var Su=null,uv=0,wl=0,hl=null;function P4(e,t){if(Su===null){var a=Su=[];uv=0,wl=ky(),hl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return uv++,t.then(G0,G0),t}function G0(){if(--uv===0&&Su!==null){hl!==null&&(hl.status="fulfilled");var e=Su;Su=null,wl=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function N4(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var W0=he.S;he.S=function(e,t){KT=qa(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&P4(e,t),W0!==null&&W0(e,t)};var Qo=Br(null);function ty(){var e=Qo.current;return e!==null?e:rt.pooledCache}function of(e,t){t===null?lt(Qo,Qo.current):lt(Qo,t.pool)}function N1(){var e=ty();return e===null?null:{parent:Rt._currentValue,pool:e}}var Dl=Error(j(460)),ay=Error(j(474)),Kf=Error(j(542)),kf={then:function(){}};function J0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function U1(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(hn,hn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,K0(e),e;default:if(typeof t.status=="string")t.then(hn,hn);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(j(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,K0(e),e}throw ei=t,Dl}}function Jo(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ei=a,Dl):a}}var ei=null;function X0(){if(ei===null)throw Error(j(459));var e=ei;return ei=null,e}function K0(e){if(e===Dl||e===Kf)throw Error(j(483))}var gl=null,Pu=0;function Hd(e){var t=Pu;return Pu+=1,gl===null&&(gl=[]),U1(gl,e,t)}function su(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vd(e,t){throw t.$$typeof===IR?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function F1(e){function t(g,x){if(e){var h=g.deletions;h===null?(g.deletions=[x],g.flags|=16):h.push(x)}}function a(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g){for(var x=new Map;g!==null;)g.key!==null?x.set(g.key,g):x.set(g.index,g),g=g.sibling;return x}function r(g,x){return g=vn(g,x),g.index=0,g.sibling=null,g}function o(g,x,h){return g.index=h,e?(h=g.alternate,h!==null?(h=h.index,h<x?(g.flags|=67108866,x):h):(g.flags|=67108866,x)):(g.flags|=1048576,x)}function i(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,x,h,b){return x===null||x.tag!==6?(x=bg(h,g.mode,b),x.return=g,x):(x=r(x,h),x.return=g,x)}function s(g,x,h,b){var L=h.type;return L===el?c(g,x,h.props.children,b,h.key):x!==null&&(x.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Zn&&Jo(L)===x.type)?(x=r(x,h.props),su(x,h),x.return=g,x):(x=nf(h.type,h.key,h.props,null,g.mode,b),su(x,h),x.return=g,x)}function u(g,x,h,b){return x===null||x.tag!==4||x.stateNode.containerInfo!==h.containerInfo||x.stateNode.implementation!==h.implementation?(x=Sg(h,g.mode,b),x.return=g,x):(x=r(x,h.children||[]),x.return=g,x)}function c(g,x,h,b,L){return x===null||x.tag!==7?(x=Yo(h,g.mode,b,L),x.return=g,x):(x=r(x,h),x.return=g,x)}function d(g,x,h){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=bg(""+x,g.mode,h),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Rd:return h=nf(x.type,x.key,x.props,null,g.mode,h),su(h,x),h.return=g,h;case pu:return x=Sg(x,g.mode,h),x.return=g,x;case Zn:return x=Jo(x),d(g,x,h)}if(mu(x)||iu(x))return x=Yo(x,g.mode,h,null),x.return=g,x;if(typeof x.then=="function")return d(g,Hd(x),h);if(x.$$typeof===mn)return d(g,Zd(g,x),h);Vd(g,x)}return null}function p(g,x,h,b){var L=x!==null?x.key:null;if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return L!==null?null:l(g,x,""+h,b);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Rd:return h.key===L?s(g,x,h,b):null;case pu:return h.key===L?u(g,x,h,b):null;case Zn:return h=Jo(h),p(g,x,h,b)}if(mu(h)||iu(h))return L!==null?null:c(g,x,h,b,null);if(typeof h.then=="function")return p(g,x,Hd(h),b);if(h.$$typeof===mn)return p(g,x,Zd(g,h),b);Vd(g,h)}return null}function f(g,x,h,b,L){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return g=g.get(h)||null,l(x,g,""+b,L);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Rd:return g=g.get(b.key===null?h:b.key)||null,s(x,g,b,L);case pu:return g=g.get(b.key===null?h:b.key)||null,u(x,g,b,L);case Zn:return b=Jo(b),f(g,x,h,b,L)}if(mu(b)||iu(b))return g=g.get(h)||null,c(x,g,b,L,null);if(typeof b.then=="function")return f(g,x,h,Hd(b),L);if(b.$$typeof===mn)return f(g,x,h,Zd(x,b),L);Vd(x,b)}return null}function m(g,x,h,b){for(var L=null,y=null,_=x,S=x=0,T=null;_!==null&&S<h.length;S++){_.index>S?(T=_,_=null):T=_.sibling;var I=p(g,_,h[S],b);if(I===null){_===null&&(_=T);break}e&&_&&I.alternate===null&&t(g,_),x=o(I,x,S),y===null?L=I:y.sibling=I,y=I,_=T}if(S===h.length)return a(g,_),Ne&&fn(g,S),L;if(_===null){for(;S<h.length;S++)_=d(g,h[S],b),_!==null&&(x=o(_,x,S),y===null?L=_:y.sibling=_,y=_);return Ne&&fn(g,S),L}for(_=n(_);S<h.length;S++)T=f(_,g,S,h[S],b),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?S:T.key),x=o(T,x,S),y===null?L=T:y.sibling=T,y=T);return e&&_.forEach(function(q){return t(g,q)}),Ne&&fn(g,S),L}function w(g,x,h,b){if(h==null)throw Error(j(151));for(var L=null,y=null,_=x,S=x=0,T=null,I=h.next();_!==null&&!I.done;S++,I=h.next()){_.index>S?(T=_,_=null):T=_.sibling;var q=p(g,_,I.value,b);if(q===null){_===null&&(_=T);break}e&&_&&q.alternate===null&&t(g,_),x=o(q,x,S),y===null?L=q:y.sibling=q,y=q,_=T}if(I.done)return a(g,_),Ne&&fn(g,S),L;if(_===null){for(;!I.done;S++,I=h.next())I=d(g,I.value,b),I!==null&&(x=o(I,x,S),y===null?L=I:y.sibling=I,y=I);return Ne&&fn(g,S),L}for(_=n(_);!I.done;S++,I=h.next())I=f(_,g,S,I.value,b),I!==null&&(e&&I.alternate!==null&&_.delete(I.key===null?S:I.key),x=o(I,x,S),y===null?L=I:y.sibling=I,y=I);return e&&_.forEach(function(O){return t(g,O)}),Ne&&fn(g,S),L}function C(g,x,h,b){if(typeof h=="object"&&h!==null&&h.type===el&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Rd:e:{for(var L=h.key;x!==null;){if(x.key===L){if(L=h.type,L===el){if(x.tag===7){a(g,x.sibling),b=r(x,h.props.children),b.return=g,g=b;break e}}else if(x.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Zn&&Jo(L)===x.type){a(g,x.sibling),b=r(x,h.props),su(b,h),b.return=g,g=b;break e}a(g,x);break}else t(g,x);x=x.sibling}h.type===el?(b=Yo(h.props.children,g.mode,b,h.key),b.return=g,g=b):(b=nf(h.type,h.key,h.props,null,g.mode,b),su(b,h),b.return=g,g=b)}return i(g);case pu:e:{for(L=h.key;x!==null;){if(x.key===L)if(x.tag===4&&x.stateNode.containerInfo===h.containerInfo&&x.stateNode.implementation===h.implementation){a(g,x.sibling),b=r(x,h.children||[]),b.return=g,g=b;break e}else{a(g,x);break}else t(g,x);x=x.sibling}b=Sg(h,g.mode,b),b.return=g,g=b}return i(g);case Zn:return h=Jo(h),C(g,x,h,b)}if(mu(h))return m(g,x,h,b);if(iu(h)){if(L=iu(h),typeof L!="function")throw Error(j(150));return h=L.call(h),w(g,x,h,b)}if(typeof h.then=="function")return C(g,x,Hd(h),b);if(h.$$typeof===mn)return C(g,x,Zd(g,h),b);Vd(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,x!==null&&x.tag===6?(a(g,x.sibling),b=r(x,h),b.return=g,g=b):(a(g,x),b=bg(h,g.mode,b),b.return=g,g=b),i(g)):a(g,x)}return function(g,x,h,b){try{Pu=0;var L=C(g,x,h,b);return gl=null,L}catch(_){if(_===Dl||_===Kf)throw _;var y=ja(29,_,null,g.mode);return y.lanes=b,y.return=g,y}}}var ni=F1(!0),j1=F1(!1),Hn=!1;function ry(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ro(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function no(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Be&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=wf(e),M1(e,null,a),t}return Xf(e,n,t,a),wf(e)}function wu(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,o1(e,a)}}function _g(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?r=o=i:o=o.next=i,a=a.next}while(a!==null);o===null?r=o=t:o=o.next=t}else r=o=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var dv=!1;function _u(){if(dv){var e=hl;if(e!==null)throw e}}function Iu(e,t,a,n){dv=!1;var r=e.updateQueue;Hn=!1;var o=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var s=l,u=s.next;s.next=null,i===null?o=u:i.next=u,i=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==i&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(o!==null){var d=r.baseState;i=0,c=u=s=null,l=o;do{var p=l.lane&-536870913,f=p!==l.lane;if(f?(Re&p)===p:(n&p)===p){p!==0&&p===wl&&(dv=!0),c!==null&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,w=l;p=t;var C=a;switch(w.tag){case 1:if(m=w.payload,typeof m=="function"){d=m.call(C,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=w.payload,p=typeof m=="function"?m.call(C,d,p):m,p==null)break e;d=dt({},d,p);break e;case 2:Hn=!0}}p=l.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=r.callbacks,f===null?r.callbacks=[p]:f.push(p))}else f={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=f,s=d):c=c.next=f,i|=p;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;f=l,l=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);c===null&&(s=d),r.baseState=s,r.firstBaseUpdate=u,r.lastBaseUpdate=c,o===null&&(r.shared.lanes=0),mo|=i,e.lanes=i,e.memoizedState=d}}function B1(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function q1(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)B1(a[e],t)}var _l=Br(null),Cf=Br(0);function Y0(e,t){e=In,lt(Cf,e),lt(_l,t),In=e|t.baseLanes}function fv(){lt(Cf,In),lt(_l,_l.current)}function ny(){In=Cf.current,Xt(_l),Xt(Cf)}var Wa=Br(null),cr=null;function Gn(e){var t=e.alternate;lt(Et,Et.current&1),lt(Wa,e),cr===null&&(t===null||_l.current!==null||t.memoizedState!==null)&&(cr=e)}function pv(e){lt(Et,Et.current),lt(Wa,e),cr===null&&(cr=e)}function Z1(e){e.tag===22?(lt(Et,Et.current),lt(Wa,e),cr===null&&(cr=e)):Wn(e)}function Wn(){lt(Et,Et.current),lt(Wa,Wa.current)}function Fa(e){Xt(Wa),cr===e&&(cr=null),Xt(Et)}var Et=Br(0);function Tf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Mv(a)||Dv(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 Sn=0,Ie=null,Ye=null,zt=null,Lf=!1,vl=!1,oi=!1,Af=0,Nu=0,yl=null,U4=0;function It(){throw Error(j(321))}function oy(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ga(e[a],t[a]))return!1;return!0}function iy(e,t,a,n,r,o){return Sn=o,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,he.H=e===null||e.memoizedState===null?ST:vy,oi=!1,o=a(n,r),oi=!1,vl&&(o=V1(t,a,n,r)),H1(e),o}function H1(e){he.H=Uu;var t=Ye!==null&&Ye.next!==null;if(Sn=0,zt=Ye=Ie=null,Lf=!1,Nu=0,yl=null,t)throw Error(j(300));e===null||Pt||(e=e.dependencies,e!==null&&If(e)&&(Pt=!0))}function V1(e,t,a,n){Ie=e;var r=0;do{if(vl&&(yl=null),Nu=0,vl=!1,25<=r)throw Error(j(301));if(r+=1,zt=Ye=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}he.H=wT,o=t(a,n)}while(vl);return o}function F4(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?Yu(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(Ie.flags|=1024),t}function ly(){var e=Af!==0;return Af=0,e}function sy(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function uy(e){if(Lf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lf=!1}Sn=0,zt=Ye=Ie=null,vl=!1,Nu=Af=0,yl=null}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?Ie.memoizedState=zt=e:zt=zt.next=e,zt}function $t(){if(Ye===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=zt===null?Ie.memoizedState:zt.next;if(t!==null)zt=t,Ye=e;else{if(e===null)throw Ie.alternate===null?Error(j(467)):Error(j(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},zt===null?Ie.memoizedState=zt=e:zt=zt.next=e}return zt}function Yf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yu(e){var t=Nu;return Nu+=1,yl===null&&(yl=[]),e=U1(yl,e,t),t=Ie,(zt===null?t.memoizedState:zt.next)===null&&(t=t.alternate,he.H=t===null||t.memoizedState===null?ST:vy),e}function Qf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yu(e);if(e.$$typeof===mn)return na(e)}throw Error(j(438,String(e)))}function cy(e){var t=null,a=Ie.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=Ie.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Yf(),Ie.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=kR;return t.index++,a}function wn(e,t){return typeof t=="function"?t(e):t}function lf(e){var t=$t();return dy(t,Ye,e)}function dy(e,t,a){var n=e.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=a;var r=e.baseQueue,o=n.pending;if(o!==null){if(r!==null){var i=r.next;r.next=o.next,o.next=i}t.baseQueue=r=o,n.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var l=i=null,s=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Re&d)===d:(Sn&d)===d){var p=u.revertLane;if(p===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===wl&&(c=!0);else if((Sn&p)===p){u=u.next,p===wl&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=d,i=o):s=s.next=d,Ie.lanes|=p,mo|=p;d=u.action,oi&&a(o,d),o=u.hasEagerState?u.eagerState:a(o,d)}else p={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=p,i=o):s=s.next=p,Ie.lanes|=d,mo|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=o:s.next=l,!Ga(o,e.memoizedState)&&(Pt=!0,c&&(a=hl,a!==null)))throw a;e.memoizedState=o,e.baseState=i,e.baseQueue=s,n.lastRenderedState=o}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ig(e){var t=$t(),a=t.queue;if(a===null)throw Error(j(311));a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,o=t.memoizedState;if(r!==null){a.pending=null;var i=r=r.next;do o=e(o,i.action),i=i.next;while(i!==r);Ga(o,t.memoizedState)||(Pt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,n]}function G1(e,t,a){var n=Ie,r=$t(),o=Ne;if(o){if(a===void 0)throw Error(j(407));a=a()}else a=t();var i=!Ga((Ye||r).memoizedState,a);if(i&&(r.memoizedState=a,Pt=!0),r=r.queue,fy(X1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||zt!==null&&zt.memoizedState.tag&1){if(n.flags|=2048,Il(9,{destroy:void 0},J1.bind(null,n,r,a,t),null),rt===null)throw Error(j(349));o||(Sn&127)!==0||W1(n,t,a)}return a}function W1(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ie.updateQueue,t===null?(t=Yf(),Ie.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function J1(e,t,a,n){t.value=a,t.getSnapshot=n,K1(t)&&Y1(e)}function X1(e,t,a){return a(function(){K1(t)&&Y1(e)})}function K1(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ga(e,a)}catch{return!0}}function Y1(e){var t=ci(e,2);t!==null&&Ea(t,e,2)}function mv(e){var t=ya();if(typeof e=="function"){var a=e;if(e=a(),oi){Xn(!0);try{a()}finally{Xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:e},t}function Q1(e,t,a,n){return e.baseState=a,dy(e,Ye,typeof n=="function"?n:wn)}function j4(e,t,a,n,r){if(tp(e))throw Error(j(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){o.listeners.push(i)}};he.T!==null?a(!0):o.isTransition=!1,n(o),a=t.pending,a===null?(o.next=t.pending=o,eT(t,o)):(o.next=a.next,t.pending=a.next=o)}}function eT(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var o=he.T,i={};he.T=i;try{var l=a(r,n),s=he.S;s!==null&&s(i,l),Q0(e,t,l)}catch(u){hv(e,t,u)}finally{o!==null&&i.types!==null&&(o.types=i.types),he.T=o}}else try{o=a(r,n),Q0(e,t,o)}catch(u){hv(e,t,u)}}function Q0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){eC(e,t,n)},function(n){return hv(e,t,n)}):eC(e,t,a)}function eC(e,t,a){t.status="fulfilled",t.value=a,tT(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,eT(e,a)))}function hv(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,tT(t),t=t.next;while(t!==n)}e.action=null}function tT(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function aT(e,t){return t}function tC(e,t){if(Ne){var a=rt.formState;if(a!==null){e:{var n=Ie;if(Ne){if(ct){t:{for(var r=ct,o=ur;r.nodeType!==8;){if(!o){r=null;break t}if(r=dr(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){ct=dr(r.nextSibling),n=r.data==="F!";break e}}fo(n)}n=!1}n&&(t=a[0])}}return a=ya(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aT,lastRenderedState:t},a.queue=n,a=yT.bind(null,Ie,n),n.dispatch=a,n=mv(!1),o=gy.bind(null,Ie,!1,n.queue),n=ya(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=j4.bind(null,Ie,r,o,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function aC(e){var t=$t();return rT(t,Ye,e)}function rT(e,t,a){if(t=dy(e,t,aT)[0],e=lf(wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Yu(t)}catch(i){throw i===Dl?Kf:i}else n=t;t=$t();var r=t.queue,o=r.dispatch;return a!==t.memoizedState&&(Ie.flags|=2048,Il(9,{destroy:void 0},B4.bind(null,r,a),null)),[n,o,e]}function B4(e,t){e.action=t}function rC(e){var t=$t(),a=Ye;if(a!==null)return rT(t,a,e);$t(),t=t.memoizedState,a=$t();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Il(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=Ie.updateQueue,t===null&&(t=Yf(),Ie.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function nT(){return $t().memoizedState}function sf(e,t,a,n){var r=ya();Ie.flags|=e,r.memoizedState=Il(1|t,{destroy:void 0},a,n===void 0?null:n)}function ep(e,t,a,n){var r=$t();n=n===void 0?null:n;var o=r.memoizedState.inst;Ye!==null&&n!==null&&oy(n,Ye.memoizedState.deps)?r.memoizedState=Il(t,o,a,n):(Ie.flags|=e,r.memoizedState=Il(1|t,o,a,n))}function nC(e,t){sf(8390656,8,e,t)}function fy(e,t){ep(2048,8,e,t)}function q4(e){Ie.flags|=4;var t=Ie.updateQueue;if(t===null)t=Yf(),Ie.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function oT(e){var t=$t().memoizedState;return q4({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function iT(e,t){return ep(4,2,e,t)}function lT(e,t){return ep(4,4,e,t)}function sT(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uT(e,t,a){a=a!=null?a.concat([e]):null,ep(4,4,sT.bind(null,t,e),a)}function py(){}function cT(e,t){var a=$t();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&oy(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function dT(e,t){var a=$t();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&oy(t,n[1]))return n[0];if(n=e(),oi){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[n,t],n}function my(e,t,a){return a===void 0||(Sn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=QT(),Ie.lanes|=e,mo|=e,a)}function fT(e,t,a,n){return Ga(a,t)?a:_l.current!==null?(e=my(e,a,n),Ga(e,t)||(Pt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(Re&261930)===0?(Pt=!0,e.memoizedState=a):(e=QT(),Ie.lanes|=e,mo|=e,t)}function pT(e,t,a,n,r){var o=qe.p;qe.p=o!==0&&8>o?o:8;var i=he.T,l={};he.T=l,gy(e,!1,t,a);try{var s=r(),u=he.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=N4(s,n);ku(e,t,c,Va(e))}else ku(e,t,n,Va(e))}catch(d){ku(e,t,{then:function(){},status:"rejected",reason:d},Va())}finally{qe.p=o,i!==null&&l.types!==null&&(i.types=l.types),he.T=i}}function Z4(){}function gv(e,t,a,n){if(e.tag!==5)throw Error(j(476));var r=mT(e).queue;pT(e,r,t,Ko,a===null?Z4:function(){return hT(e),a(n)})}function mT(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ko,baseState:Ko,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:Ko},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hT(e){var t=mT(e);t.next===null&&(t=e.alternate.memoizedState),ku(e,t.next.queue,{},Va())}function hy(){return na(Bu)}function gT(){return $t().memoizedState}function vT(){return $t().memoizedState}function H4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Va();e=ro(a);var n=no(t,e,a);n!==null&&(Ea(n,t,a),wu(n,t,a)),t={cache:ey()},e.payload=t;return}t=t.return}}function V4(e,t,a){var n=Va();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},tp(e)?xT(t,a):(a=Xv(e,t,a,n),a!==null&&(Ea(a,e,n),bT(a,t,n)))}function yT(e,t,a){var n=Va();ku(e,t,a,n)}function ku(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(tp(e))xT(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,a);if(r.hasEagerState=!0,r.eagerState=l,Ga(l,i))return Xf(e,t,r,0),rt===null&&Jf(),!1}catch{}if(a=Xv(e,t,r,n),a!==null)return Ea(a,e,n),bT(a,t,n),!0}return!1}function gy(e,t,a,n){if(n={lane:2,revertLane:ky(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tp(e)){if(t)throw Error(j(479))}else t=Xv(e,a,n,2),t!==null&&Ea(t,e,2)}function tp(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function xT(e,t){vl=Lf=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function bT(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,o1(e,a)}}var Uu={readContext:na,use:Qf,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useLayoutEffect:It,useInsertionEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useSyncExternalStore:It,useId:It,useHostTransitionStatus:It,useFormState:It,useActionState:It,useOptimistic:It,useMemoCache:It,useCacheRefresh:It};Uu.useEffectEvent=It;var ST={readContext:na,use:Qf,useCallback:function(e,t){return ya().memoizedState=[e,t===void 0?null:t],e},useContext:na,useEffect:nC,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,sf(4194308,4,sT.bind(null,t,e),a)},useLayoutEffect:function(e,t){return sf(4194308,4,e,t)},useInsertionEffect:function(e,t){sf(4,2,e,t)},useMemo:function(e,t){var a=ya();t=t===void 0?null:t;var n=e();if(oi){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=ya();if(a!==void 0){var r=a(t);if(oi){Xn(!0);try{a(t)}finally{Xn(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=V4.bind(null,Ie,e),[n.memoizedState,e]},useRef:function(e){var t=ya();return e={current:e},t.memoizedState=e},useState:function(e){e=mv(e);var t=e.queue,a=yT.bind(null,Ie,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:py,useDeferredValue:function(e,t){var a=ya();return my(a,e,t)},useTransition:function(){var e=mv(!1);return e=pT.bind(null,Ie,e.queue,!0,!1),ya().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=Ie,r=ya();if(Ne){if(a===void 0)throw Error(j(407));a=a()}else{if(a=t(),rt===null)throw Error(j(349));(Re&127)!==0||W1(n,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,nC(X1.bind(null,n,o,e),[e]),n.flags|=2048,Il(9,{destroy:void 0},J1.bind(null,n,o,a,t),null),a},useId:function(){var e=ya(),t=rt.identifierPrefix;if(Ne){var a=Ur,n=Nr;a=(n&~(1<<32-Ha(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Af++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=U4++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hy,useFormState:tC,useActionState:tC,useOptimistic:function(e){var t=ya();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=gy.bind(null,Ie,!0,a),a.dispatch=t,[e,t]},useMemoCache:cy,useCacheRefresh:function(){return ya().memoizedState=H4.bind(null,Ie)},useEffectEvent:function(e){var t=ya(),a={impl:e};return t.memoizedState=a,function(){if((Be&2)!==0)throw Error(j(440));return a.impl.apply(void 0,arguments)}}},vy={readContext:na,use:Qf,useCallback:cT,useContext:na,useEffect:fy,useImperativeHandle:uT,useInsertionEffect:iT,useLayoutEffect:lT,useMemo:dT,useReducer:lf,useRef:nT,useState:function(){return lf(wn)},useDebugValue:py,useDeferredValue:function(e,t){var a=$t();return fT(a,Ye.memoizedState,e,t)},useTransition:function(){var e=lf(wn)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:Yu(e),t]},useSyncExternalStore:G1,useId:gT,useHostTransitionStatus:hy,useFormState:aC,useActionState:aC,useOptimistic:function(e,t){var a=$t();return Q1(a,Ye,e,t)},useMemoCache:cy,useCacheRefresh:vT};vy.useEffectEvent=oT;var wT={readContext:na,use:Qf,useCallback:cT,useContext:na,useEffect:fy,useImperativeHandle:uT,useInsertionEffect:iT,useLayoutEffect:lT,useMemo:dT,useReducer:Ig,useRef:nT,useState:function(){return Ig(wn)},useDebugValue:py,useDeferredValue:function(e,t){var a=$t();return Ye===null?my(a,e,t):fT(a,Ye.memoizedState,e,t)},useTransition:function(){var e=Ig(wn)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:Yu(e),t]},useSyncExternalStore:G1,useId:gT,useHostTransitionStatus:hy,useFormState:rC,useActionState:rC,useOptimistic:function(e,t){var a=$t();return Ye!==null?Q1(a,Ye,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:cy,useCacheRefresh:vT};wT.useEffectEvent=oT;function kg(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:dt({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var vv={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Va(),r=ro(n);r.payload=t,a!=null&&(r.callback=a),t=no(e,r,n),t!==null&&(Ea(t,e,n),wu(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Va(),r=ro(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=no(e,r,n),t!==null&&(Ea(t,e,n),wu(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Va(),n=ro(a);n.tag=2,t!=null&&(n.callback=t),t=no(e,n,a),t!==null&&(Ea(t,e,a),wu(t,e,a))}};function oC(e,t,a,n,r,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!zu(a,n)||!zu(r,o):!0}function iC(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&vv.enqueueReplaceState(t,t.state,null)}function ii(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=dt({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function _T(e){Sf(e)}function IT(e){console.error(e)}function kT(e){Sf(e)}function Ef(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function lC(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function yv(e,t,a){return a=ro(a),a.tag=3,a.payload={element:null},a.callback=function(){Ef(e,t)},a}function CT(e){return e=ro(e),e.tag=3,e}function TT(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var o=n.value;e.payload=function(){return r(o)},e.callback=function(){lC(t,a,n)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){lC(t,a,n),typeof r!="function"&&(oo===null?oo=new Set([this]):oo.add(this));var l=n.stack;this.componentDidCatch(n.value,{componentStack:l!==null?l:""})})}function G4(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Ml(t,a,r,!0),a=Wa.current,a!==null){switch(a.tag){case 31:case 13:return cr===null?Of():a.alternate===null&&kt===0&&(kt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===kf?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Rg(e,n,r)),!1;case 22:return a.flags|=65536,n===kf?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Rg(e,n,r)),!1}throw Error(j(435,a.tag))}return Rg(e,n,r),Of(),!1}if(Ne)return t=Wa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==ov&&(e=Error(j(422),{cause:n}),Ru(sr(e,a)))):(n!==ov&&(t=Error(j(423),{cause:n}),Ru(sr(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=sr(n,a),r=yv(e.stateNode,n,r),_g(e,r),kt!==4&&(kt=2)),!1;var o=Error(j(520),{cause:n});if(o=sr(o,a),Lu===null?Lu=[o]:Lu.push(o),kt!==4&&(kt=2),t===null)return!0;n=sr(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=yv(a.stateNode,n,e),_g(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(oo===null||!oo.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=CT(r),TT(r,e,a,n),_g(a,r),!1}a=a.return}while(a!==null);return!1}var yy=Error(j(461)),Pt=!1;function ta(e,t,a,n){t.child=e===null?j1(t,null,a,n):ni(t,e.child,a,n)}function sC(e,t,a,n,r){a=a.render;var o=t.ref;if("ref"in n){var i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}else i=n;return ri(t),n=iy(e,t,a,i,o,r),l=ly(),e!==null&&!Pt?(sy(e,t,r),_n(e,t,r)):(Ne&&l&&Yv(t),t.flags|=1,ta(e,t,n,r),t.child)}function uC(e,t,a,n,r){if(e===null){var o=a.type;return typeof o=="function"&&!Kv(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,LT(e,t,o,n,r)):(e=nf(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!xy(e,r)){var i=o.memoizedProps;if(a=a.compare,a=a!==null?a:zu,a(i,n)&&e.ref===t.ref)return _n(e,t,r)}return t.flags|=1,e=vn(o,n),e.ref=t.ref,e.return=t,t.child=e}function LT(e,t,a,n,r){if(e!==null){var o=e.memoizedProps;if(zu(o,n)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=n=o,xy(e,r))(e.flags&131072)!==0&&(Pt=!0);else return t.lanes=e.lanes,_n(e,t,r)}return xv(e,t,a,n,r)}function AT(e,t,a,n){var r=n.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~o}else n=0,t.child=null;return cC(e,t,o,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&of(t,o!==null?o.cachePool:null),o!==null?Y0(t,o):fv(),Z1(t);else return n=t.lanes=536870912,cC(e,t,o!==null?o.baseLanes|a:a,a,n)}else o!==null?(of(t,o.cachePool),Y0(t,o),Wn(t),t.memoizedState=null):(e!==null&&of(t,null),fv(),Wn(t));return ta(e,t,r,a),t.child}function gu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cC(e,t,a,n,r){var o=ty();return o=o===null?null:{parent:Rt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&of(t,null),fv(),Z1(t),e!==null&&Ml(e,t,n,!0),t.childLanes=r,null}function uf(e,t){return t=$f({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dC(e,t,a){return ni(t,e.child,null,a),e=uf(t,t.pendingProps),e.flags|=2,Fa(t),t.memoizedState=null,e}function W4(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(n.mode==="hidden")return e=uf(t,n),t.lanes=536870912,gu(null,e);if(pv(t),(e=ct)?(e=SL(e,ur),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:co!==null?{id:Nr,overflow:Ur}:null,retryLane:536870912,hydrationErrors:null},a=z1(e),a.return=t,t.child=a,ra=t,ct=null)):e=null,e===null)throw fo(t);return t.lanes=536870912,null}return uf(t,n)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if(pv(t),r)if(t.flags&256)t.flags&=-257,t=dC(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(j(558));else if(Pt||Ml(e,t,a,!1),r=(a&e.childLanes)!==0,Pt||r){if(n=rt,n!==null&&(i=i1(n,a),i!==0&&i!==o.retryLane))throw o.retryLane=i,ci(e,i),Ea(n,e,i),yy;Of(),t=dC(e,t,a)}else e=o.treeContext,ct=dr(i.nextSibling),ra=t,Ne=!0,ao=null,ur=!1,e!==null&&R1(t,e),t=uf(t,n),t.flags|=4096;return t}return e=vn(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cf(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(j(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function xv(e,t,a,n,r){return ri(t),a=iy(e,t,a,n,void 0,r),n=ly(),e!==null&&!Pt?(sy(e,t,r),_n(e,t,r)):(Ne&&n&&Yv(t),t.flags|=1,ta(e,t,a,r),t.child)}function fC(e,t,a,n,r,o){return ri(t),t.updateQueue=null,a=V1(t,n,a,r),H1(e),n=ly(),e!==null&&!Pt?(sy(e,t,o),_n(e,t,o)):(Ne&&n&&Yv(t),t.flags|=1,ta(e,t,a,o),t.child)}function pC(e,t,a,n,r){if(ri(t),t.stateNode===null){var o=sl,i=a.contextType;typeof i=="object"&&i!==null&&(o=na(i)),o=new a(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=vv,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},ry(t),i=a.contextType,o.context=typeof i=="object"&&i!==null?na(i):sl,o.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(kg(t,a,i,n),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(i=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),i!==o.state&&vv.enqueueReplaceState(o,o.state,null),Iu(t,n,o,r),_u(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,s=ii(a,l);o.props=s;var u=o.context,c=a.contextType;i=sl,typeof c=="object"&&c!==null&&(i=na(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==i)&&iC(t,o,n,i),Hn=!1;var p=t.memoizedState;o.state=p,Iu(t,n,o,r),_u(),u=t.memoizedState,l||p!==u||Hn?(typeof d=="function"&&(kg(t,a,d,n),u=t.memoizedState),(s=Hn||oC(t,a,s,n,p,u,i))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=i,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,cv(e,t),i=t.memoizedProps,c=ii(a,i),o.props=c,d=t.pendingProps,p=o.context,u=a.contextType,s=sl,typeof u=="object"&&u!==null&&(s=na(u)),l=a.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==d||p!==s)&&iC(t,o,n,s),Hn=!1,p=t.memoizedState,o.state=p,Iu(t,n,o,r),_u();var f=t.memoizedState;i!==d||p!==f||Hn||e!==null&&e.dependencies!==null&&If(e.dependencies)?(typeof l=="function"&&(kg(t,a,l,n),f=t.memoizedState),(c=Hn||oC(t,a,c,n,p,f,s)||e!==null&&e.dependencies!==null&&If(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,f,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,f,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),o.props=n,o.state=f,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return o=n,cf(e,t),n=(t.flags&128)!==0,o||n?(o=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&n?(t.child=ni(t,e.child,null,r),t.child=ni(t,null,a,r)):ta(e,t,a,r),t.memoizedState=o.state,e=t.child):e=_n(e,t,r),e}function mC(e,t,a,n){return ai(),t.flags|=256,ta(e,t,a,n),t.child}var Cg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tg(e){return{baseLanes:e,cachePool:N1()}}function Lg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ba),e}function ET(e,t,a){var n=t.pendingProps,r=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(Et.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(r?Gn(t):Wn(t),(e=ct)?(e=SL(e,ur),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:co!==null?{id:Nr,overflow:Ur}:null,retryLane:536870912,hydrationErrors:null},a=z1(e),a.return=t,t.child=a,ra=t,ct=null)):e=null,e===null)throw fo(t);return Dv(e)?t.lanes=32:t.lanes=536870912,null}var l=n.children;return n=n.fallback,r?(Wn(t),r=t.mode,l=$f({mode:"hidden",children:l},r),n=Yo(n,r,a,null),l.return=t,n.return=t,l.sibling=n,t.child=l,n=t.child,n.memoizedState=Tg(a),n.childLanes=Lg(e,i,a),t.memoizedState=Cg,gu(null,n)):(Gn(t),bv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(o)t.flags&256?(Gn(t),t.flags&=-257,t=Ag(e,t,a)):t.memoizedState!==null?(Wn(t),t.child=e.child,t.flags|=128,t=null):(Wn(t),l=n.fallback,r=t.mode,n=$f({mode:"visible",children:n.children},r),l=Yo(l,r,a,null),l.flags|=2,n.return=t,l.return=t,n.sibling=l,t.child=n,ni(t,e.child,null,a),n=t.child,n.memoizedState=Tg(a),n.childLanes=Lg(e,i,a),t.memoizedState=Cg,t=gu(null,n));else if(Gn(t),Dv(l)){if(i=l.nextSibling&&l.nextSibling.dataset,i)var u=i.dgst;i=u,n=Error(j(419)),n.stack="",n.digest=i,Ru({value:n,source:null,stack:null}),t=Ag(e,t,a)}else if(Pt||Ml(e,t,a,!1),i=(a&e.childLanes)!==0,Pt||i){if(i=rt,i!==null&&(n=i1(i,a),n!==0&&n!==s.retryLane))throw s.retryLane=n,ci(e,n),Ea(i,e,n),yy;Mv(l)||Of(),t=Ag(e,t,a)}else Mv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ct=dr(l.nextSibling),ra=t,Ne=!0,ao=null,ur=!1,e!==null&&R1(t,e),t=bv(t,n.children),t.flags|=4096);return t}return r?(Wn(t),l=n.fallback,r=t.mode,s=e.child,u=s.sibling,n=vn(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=vn(u,l):(l=Yo(l,r,a,null),l.flags|=2),l.return=t,n.return=t,n.sibling=l,t.child=n,gu(null,n),n=t.child,l=e.child.memoizedState,l===null?l=Tg(a):(r=l.cachePool,r!==null?(s=Rt._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=N1(),l={baseLanes:l.baseLanes|a,cachePool:r}),n.memoizedState=l,n.childLanes=Lg(e,i,a),t.memoizedState=Cg,gu(e.child,n)):(Gn(t),a=e.child,e=a.sibling,a=vn(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a)}function bv(e,t){return t=$f({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $f(e,t){return e=ja(22,e,null,t),e.lanes=0,e}function Ag(e,t,a){return ni(t,e.child,null,a),e=bv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hC(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),lv(e.return,t,a)}function Eg(e,t,a,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=a,i.tailMode=r,i.treeForkCount=o)}function $T(e,t,a){var n=t.pendingProps,r=n.revealOrder,o=n.tail;n=n.children;var i=Et.current,l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,lt(Et,i),ta(e,t,n,a),n=Ne?Ou:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hC(e,a,t);else if(e.tag===19)hC(e,a,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}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Tf(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Eg(t,!1,r,a,o,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Tf(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Eg(t,!0,a,null,o,n);break;case"together":Eg(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function _n(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),mo|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ml(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,a=vn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function xy(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&If(e)))}function J4(e,t,a){switch(t.tag){case 3:vf(t,t.stateNode.containerInfo),Vn(t,Rt,e.memoizedState.cache),ai();break;case 27:case 5:Wg(t);break;case 4:vf(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pv(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Gn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?ET(e,t,a):(Gn(t),e=_n(e,t,a),e!==null?e.sibling:null);Gn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Ml(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return $T(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),lt(Et,Et.current),n)break;return null;case 22:return t.lanes=0,AT(e,t,a,t.pendingProps);case 24:Vn(t,Rt,e.memoizedState.cache)}return _n(e,t,a)}function MT(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pt=!0;else{if(!xy(e,a)&&(t.flags&128)===0)return Pt=!1,J4(e,t,a);Pt=(e.flags&131072)!==0}else Pt=!1,Ne&&(t.flags&1048576)!==0&&O1(t,Ou,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Jo(t.elementType),t.type=e,typeof e=="function")Kv(e)?(n=ii(e,n),t.tag=1,t=pC(null,t,e,n,a)):(t.tag=0,t=xv(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===Pv){t.tag=11,t=sC(null,t,e,n,a);break e}else if(r===Nv){t.tag=14,t=uC(null,t,e,n,a);break e}}throw t=Vg(e)||e,Error(j(306,t,""))}}return t;case 0:return xv(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=ii(n,t.pendingProps),pC(e,t,n,r,a);case 3:e:{if(vf(t,t.stateNode.containerInfo),e===null)throw Error(j(387));n=t.pendingProps;var o=t.memoizedState;r=o.element,cv(e,t),Iu(t,n,null,a);var i=t.memoizedState;if(n=i.cache,Vn(t,Rt,n),n!==o.cache&&sv(t,[Rt],a,!0),_u(),n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=mC(e,t,n,a);break e}else if(n!==r){r=sr(Error(j(424)),t),Ru(r),t=mC(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ct=dr(e.firstChild),ra=t,Ne=!0,ao=null,ur=!0,a=j1(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ai(),n===r){t=_n(e,t,a);break e}ta(e,t,n,a)}t=t.child}return t;case 26:return cf(e,t),e===null?(a=PC(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,n=Uf(to.current).createElement(a),n[aa]=t,n[$a]=e,oa(n,a,e),Jt(n),t.stateNode=n):t.memoizedState=PC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Wg(t),e===null&&Ne&&(n=t.stateNode=wL(t.type,t.pendingProps,to.current),ra=t,ur=!0,r=ct,go(t.type)?(zv=r,ct=dr(n.firstChild)):ct=r),ta(e,t,t.pendingProps.children,a),cf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((r=n=ct)&&(n=_P(n,t.type,t.pendingProps,ur),n!==null?(t.stateNode=n,ra=t,ct=dr(n.firstChild),ur=!1,r=!0):r=!1),r||fo(t)),Wg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,n=o.children,Ev(r,o)?n=null:i!==null&&Ev(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=iy(e,t,F4,null,null,a),Bu._currentValue=r),cf(e,t),ta(e,t,n,a),t.child;case 6:return e===null&&Ne&&((e=a=ct)&&(a=IP(a,t.pendingProps,ur),a!==null?(t.stateNode=a,ra=t,ct=null,e=!0):e=!1),e||fo(t)),null;case 13:return ET(e,t,a);case 4:return vf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ni(t,null,n,a):ta(e,t,n,a),t.child;case 11:return sC(e,t,t.type,t.pendingProps,a);case 7:return ta(e,t,t.pendingProps,a),t.child;case 8:return ta(e,t,t.pendingProps.children,a),t.child;case 12:return ta(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Vn(t,t.type,n.value),ta(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,ri(t),r=na(r),n=n(r),t.flags|=1,ta(e,t,n,a),t.child;case 14:return uC(e,t,t.type,t.pendingProps,a);case 15:return LT(e,t,t.type,t.pendingProps,a);case 19:return $T(e,t,a);case 31:return W4(e,t,a);case 22:return AT(e,t,a,t.pendingProps);case 24:return ri(t),n=na(Rt),e===null?(r=ty(),r===null&&(r=rt,o=ey(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:n,cache:r},ry(t),Vn(t,Rt,r)):((e.lanes&a)!==0&&(cv(e,t),Iu(t,null,null,a),_u()),r=e.memoizedState,o=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Vn(t,Rt,n)):(n=o.cache,Vn(t,Rt,n),n!==r.cache&&sv(t,[Rt],a,!0))),ta(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function sn(e){e.flags|=4}function $g(e,t,a,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(aL())e.flags|=8192;else throw ei=kf,ay}else e.flags&=-16777217}function gC(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kL(t))if(aL())e.flags|=8192;else throw ei=kf,ay}function Gd(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?r1():536870912,e.lanes|=t,kl|=t)}function uu(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function X4(e,t,a){var n=t.pendingProps;switch(Qv(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return ut(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),yn(Rt),xl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Xi(t)?sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wg())),ut(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(sn(t),o!==null?(ut(t),gC(t,o)):(ut(t),$g(t,r,null,n,a))):o?o!==e.memoizedState?(sn(t),ut(t),gC(t,o)):(ut(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&sn(t),ut(t),$g(t,r,e,n,a)),null;case 27:if(yf(t),a=to.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&sn(t);else{if(!n){if(t.stateNode===null)throw Error(j(166));return ut(t),null}e=jr.current,Xi(t)?H0(t,e):(e=wL(r,n,a),t.stateNode=e,sn(t))}return ut(t),null;case 5:if(yf(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&sn(t);else{if(!n){if(t.stateNode===null)throw Error(j(166));return ut(t),null}if(o=jr.current,Xi(t))H0(t,o);else{var i=Uf(to.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=i.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r)}}o[aa]=t,o[$a]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)o.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch(oa(o,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&sn(t)}}return ut(t),$g(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&sn(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(j(166));if(e=to.current,Xi(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=ra,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[aa]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||yL(e.nodeValue,a)),e||fo(t,!0)}else e=Uf(e).createTextNode(n),e[aa]=t,t.stateNode=e}return ut(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Xi(t),a!==null){if(e===null){if(!n)throw Error(j(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(557));e[aa]=t}else ai(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),e=!1}else a=wg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Fa(t),t):(Fa(t),null);if((t.flags&128)!==0)throw Error(j(558))}return ut(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Xi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(j(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(j(317));r[aa]=t}else ai(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),r=!1}else r=wg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Fa(t),t):(Fa(t),null)}return Fa(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Gd(t,t.updateQueue),ut(t),null);case 4:return xl(),e===null&&Cy(t.stateNode.containerInfo),ut(t),null;case 10:return yn(t.type),ut(t),null;case 19:if(Xt(Et),n=t.memoizedState,n===null)return ut(t),null;if(r=(t.flags&128)!==0,o=n.rendering,o===null)if(r)uu(n,!1);else{if(kt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Tf(e),o!==null){for(t.flags|=128,uu(n,!1),e=o.updateQueue,t.updateQueue=e,Gd(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)D1(a,e),a=a.sibling;return lt(Et,Et.current&1|2),Ne&&fn(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&qa()>Df&&(t.flags|=128,r=!0,uu(n,!1),t.lanes=4194304)}else{if(!r)if(e=Tf(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Gd(t,e),uu(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!Ne)return ut(t),null}else 2*qa()-n.renderingStartTime>Df&&a!==536870912&&(t.flags|=128,r=!0,uu(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=qa(),e.sibling=null,a=Et.current,lt(Et,r?a&1|2:a&1),Ne&&fn(t,n.treeForkCount),e):(ut(t),null);case 22:case 23:return Fa(t),ny(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),a=t.updateQueue,a!==null&&Gd(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Xt(Qo),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),yn(Rt),ut(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function K4(e,t){switch(Qv(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(Rt),xl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yf(t),null;case 31:if(t.memoizedState!==null){if(Fa(t),t.alternate===null)throw Error(j(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(Et),null;case 4:return xl(),null;case 10:return yn(t.type),null;case 22:case 23:return Fa(t),ny(),e!==null&&Xt(Qo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return yn(Rt),null;case 25:return null;default:return null}}function DT(e,t){switch(Qv(t),t.tag){case 3:yn(Rt),xl();break;case 26:case 27:case 5:yf(t);break;case 4:xl();break;case 31:t.memoizedState!==null&&Fa(t);break;case 13:Fa(t);break;case 19:Xt(Et);break;case 10:yn(t.type);break;case 22:case 23:Fa(t),ny(),e!==null&&Xt(Qo);break;case 24:yn(Rt)}}function Qu(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var o=a.create,i=a.inst;n=o(),i.destroy=n}a=a.next}while(a!==r)}}catch(l){Ge(t,t.return,l)}}function po(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var o=r.next;n=o;do{if((n.tag&e)===e){var i=n.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,r=t;var s=a,u=l;try{u()}catch(c){Ge(r,s,c)}}}n=n.next}while(n!==o)}}catch(c){Ge(t,t.return,c)}}function zT(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{q1(t,a)}catch(n){Ge(e,e.return,n)}}}function OT(e,t,a){a.props=ii(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ge(e,t,n)}}function Cu(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(r){Ge(e,t,r)}}function Fr(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ge(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ge(e,t,r)}else a.current=null}function RT(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Ge(e,e.return,r)}}function Mg(e,t,a){try{var n=e.stateNode;vP(n,e.type,a,t),n[$a]=t}catch(r){Ge(e,e.return,r)}}function PT(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&go(e.type)||e.tag===4}function Dg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||PT(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.tag===27&&go(e.type)||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 Sv(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=hn));else if(n!==4&&(n===27&&go(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Sv(e,t,a),e=e.sibling;e!==null;)Sv(e,t,a),e=e.sibling}function Mf(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&go(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Mf(e,t,a),e=e.sibling;e!==null;)Mf(e,t,a),e=e.sibling}function NT(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);oa(t,n,a),t[aa]=e,t[$a]=a}catch(o){Ge(e,e.return,o)}}var pn=!1,Ot=!1,zg=!1,vC=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function Y4(e,t){if(e=e.containerInfo,Lv=qf,e=k1(e),Wv(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var i=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==a||r!==0&&d.nodeType!==3||(l=i+r),d!==o||n!==0&&d.nodeType!==3||(s=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===a&&++u===r&&(l=i),p===o&&++c===n&&(s=i),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}a=l===-1||s===-1?null:{start:l,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(Av={focusedElem:e,selectionRange:a},qf=!1,Wt=t;Wt!==null;)if(t=Wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Wt=e;else for(;Wt!==null;){switch(t=Wt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,a=t,r=o.memoizedProps,o=o.memoizedState,n=a.stateNode;try{var m=ii(a.type,r);e=n.getSnapshotBeforeUpdate(m,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(w){Ge(a,a.return,w)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)$v(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$v(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(j(163))}if(e=t.sibling,e!==null){e.return=t.return,Wt=e;break}Wt=t.return}}function UT(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:cn(e,a),n&4&&Qu(5,a);break;case 1:if(cn(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Ge(a,a.return,i)}else{var r=ii(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Ge(a,a.return,i)}}n&64&&zT(a),n&512&&Cu(a,a.return);break;case 3:if(cn(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{q1(e,t)}catch(i){Ge(a,a.return,i)}}break;case 27:t===null&&n&4&&NT(a);case 26:case 5:cn(e,a),t===null&&n&4&&RT(a),n&512&&Cu(a,a.return);break;case 12:cn(e,a);break;case 31:cn(e,a),n&4&&BT(e,a);break;case 13:cn(e,a),n&4&&qT(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=lP.bind(null,a),kP(e,a))));break;case 22:if(n=a.memoizedState!==null||pn,!n){t=t!==null&&t.memoizedState!==null||Ot,r=pn;var o=Ot;pn=n,(Ot=t)&&!o?dn(e,a,(a.subtreeFlags&8772)!==0):cn(e,a),pn=r,Ot=o}break;case 30:break;default:cn(e,a)}}function FT(e){var t=e.alternate;t!==null&&(e.alternate=null,FT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Bv(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xt=null,La=!1;function un(e,t,a){for(a=a.child;a!==null;)jT(e,t,a),a=a.sibling}function jT(e,t,a){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(Vu,a)}catch{}switch(a.tag){case 26:Ot||Fr(a,t),un(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ot||Fr(a,t);var n=xt,r=La;go(a.type)&&(xt=a.stateNode,La=!1),un(e,t,a),Eu(a.stateNode),xt=n,La=r;break;case 5:Ot||Fr(a,t);case 6:if(n=xt,r=La,xt=null,un(e,t,a),xt=n,La=r,xt!==null)if(La)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(a.stateNode)}catch(o){Ge(a,t,o)}else try{xt.removeChild(a.stateNode)}catch(o){Ge(a,t,o)}break;case 18:xt!==null&&(La?(e=xt,MC(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Al(e)):MC(xt,a.stateNode));break;case 4:n=xt,r=La,xt=a.stateNode.containerInfo,La=!0,un(e,t,a),xt=n,La=r;break;case 0:case 11:case 14:case 15:po(2,a,t),Ot||po(4,a,t),un(e,t,a);break;case 1:Ot||(Fr(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&OT(a,t,n)),un(e,t,a);break;case 21:un(e,t,a);break;case 22:Ot=(n=Ot)||a.memoizedState!==null,un(e,t,a),Ot=n;break;default:un(e,t,a)}}function BT(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Al(e)}catch(a){Ge(t,t.return,a)}}}function qT(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Al(e)}catch(a){Ge(t,t.return,a)}}function Q4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vC),t;default:throw Error(j(435,e.tag))}}function Wd(e,t){var a=Q4(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=sP.bind(null,e,n);n.then(r,r)}})}function Ca(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n],o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(go(l.type)){xt=l.stateNode,La=!1;break e}break;case 5:xt=l.stateNode,La=!1;break e;case 3:case 4:xt=l.stateNode.containerInfo,La=!0;break e}l=l.return}if(xt===null)throw Error(j(160));jT(o,i,r),xt=null,La=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ZT(t,e),t=t.sibling}var kr=null;function ZT(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ca(t,e),Ta(e),n&4&&(po(3,e,e.return),Qu(3,e),po(5,e,e.return));break;case 1:Ca(t,e),Ta(e),n&512&&(Ot||a===null||Fr(a,a.return)),n&64&&pn&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var r=kr;if(Ca(t,e),Ta(e),n&512&&(Ot||a===null||Fr(a,a.return)),n&4){var o=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Ju]||o[aa]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(n),r.head.insertBefore(o,r.querySelector("head > title"))),oa(o,n,a),o[aa]=e,Jt(o),n=o;break e;case"link":var i=UC("link","href",r).get(n+(a.href||""));if(i){for(var l=0;l<i.length;l++)if(o=i[l],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(l,1);break t}}o=r.createElement(n),oa(o,n,a),r.head.appendChild(o);break;case"meta":if(i=UC("meta","content",r).get(n+(a.content||""))){for(l=0;l<i.length;l++)if(o=i[l],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(l,1);break t}}o=r.createElement(n),oa(o,n,a),r.head.appendChild(o);break;default:throw Error(j(468,n))}o[aa]=e,Jt(o),n=o}e.stateNode=n}else FC(r,e.type,e.stateNode);else e.stateNode=NC(r,n,e.memoizedProps);else o!==n?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,n===null?FC(r,e.type,e.stateNode):NC(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Mg(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ca(t,e),Ta(e),n&512&&(Ot||a===null||Fr(a,a.return)),a!==null&&n&4&&Mg(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ca(t,e),Ta(e),n&512&&(Ot||a===null||Fr(a,a.return)),e.flags&32){r=e.stateNode;try{Sl(r,"")}catch(m){Ge(e,e.return,m)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,Mg(e,r,a!==null?a.memoizedProps:r)),n&1024&&(zg=!0);break;case 6:if(Ca(t,e),Ta(e),n&4){if(e.stateNode===null)throw Error(j(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(m){Ge(e,e.return,m)}}break;case 3:if(pf=null,r=kr,kr=Ff(t.containerInfo),Ca(t,e),kr=r,Ta(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Al(t.containerInfo)}catch(m){Ge(e,e.return,m)}zg&&(zg=!1,HT(e));break;case 4:n=kr,kr=Ff(e.stateNode.containerInfo),Ca(t,e),Ta(e),kr=n;break;case 12:Ca(t,e),Ta(e);break;case 31:Ca(t,e),Ta(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wd(e,n)));break;case 13:Ca(t,e),Ta(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ap=qa()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wd(e,n)));break;case 22:r=e.memoizedState!==null;var s=a!==null&&a.memoizedState!==null,u=pn,c=Ot;if(pn=u||r,Ot=c||s,Ca(t,e),Ot=c,pn=u,Ta(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||s||pn||Ot||Xo(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){s=a=t;try{if(o=s.stateNode,r)i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{l=s.stateNode;var d=s.memoizedProps.style,p=d!=null&&d.hasOwnProperty("display")?d.display:null;l.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(m){Ge(s,s.return,m)}}}else if(t.tag===6){if(a===null){s=t;try{s.stateNode.nodeValue=r?"":s.memoizedProps}catch(m){Ge(s,s.return,m)}}}else if(t.tag===18){if(a===null){s=t;try{var f=s.stateNode;r?DC(f,!0):DC(s.stateNode,!1)}catch(m){Ge(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Wd(e,a))));break;case 19:Ca(t,e),Ta(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wd(e,n)));break;case 30:break;case 21:break;default:Ca(t,e),Ta(e)}}function Ta(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(PT(n)){a=n;break}n=n.return}if(a==null)throw Error(j(160));switch(a.tag){case 27:var r=a.stateNode,o=Dg(e);Mf(e,o,r);break;case 5:var i=a.stateNode;a.flags&32&&(Sl(i,""),a.flags&=-33);var l=Dg(e);Mf(e,l,i);break;case 3:case 4:var s=a.stateNode.containerInfo,u=Dg(e);Sv(e,u,s);break;default:throw Error(j(161))}}catch(c){Ge(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function HT(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;HT(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)UT(e,t.alternate,t),t=t.sibling}function Xo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:po(4,t,t.return),Xo(t);break;case 1:Fr(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&OT(t,t.return,a),Xo(t);break;case 27:Eu(t.stateNode);case 26:case 5:Fr(t,t.return),Xo(t);break;case 22:t.memoizedState===null&&Xo(t);break;case 30:Xo(t);break;default:Xo(t)}e=e.sibling}}function dn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:dn(r,o,a),Qu(4,o);break;case 1:if(dn(r,o,a),n=o,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Ge(n,n.return,u)}if(n=o,r=n.updateQueue,r!==null){var l=n.stateNode;try{var s=r.shared.hiddenCallbacks;if(s!==null)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)B1(s[r],l)}catch(u){Ge(n,n.return,u)}}a&&i&64&&zT(o),Cu(o,o.return);break;case 27:NT(o);case 26:case 5:dn(r,o,a),a&&n===null&&i&4&&RT(o),Cu(o,o.return);break;case 12:dn(r,o,a);break;case 31:dn(r,o,a),a&&i&4&&BT(r,o);break;case 13:dn(r,o,a),a&&i&4&&qT(r,o);break;case 22:o.memoizedState===null&&dn(r,o,a),Cu(o,o.return);break;case 30:break;default:dn(r,o,a)}t=t.sibling}}function by(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ku(a))}function Sy(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ku(e))}function Ir(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)VT(e,t,a,n),t=t.sibling}function VT(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ir(e,t,a,n),r&2048&&Qu(9,t);break;case 1:Ir(e,t,a,n);break;case 3:Ir(e,t,a,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ku(e)));break;case 12:if(r&2048){Ir(e,t,a,n),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Ge(t,t.return,s)}}else Ir(e,t,a,n);break;case 31:Ir(e,t,a,n);break;case 13:Ir(e,t,a,n);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,t.memoizedState!==null?o._visibility&2?Ir(e,t,a,n):Tu(e,t):o._visibility&2?Ir(e,t,a,n):(o._visibility|=2,Yi(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&by(i,t);break;case 24:Ir(e,t,a,n),r&2048&&Sy(t.alternate,t);break;default:Ir(e,t,a,n)}}function Yi(e,t,a,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,i=t,l=a,s=n,u=i.flags;switch(i.tag){case 0:case 11:case 15:Yi(o,i,l,s,r),Qu(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?Yi(o,i,l,s,r):Tu(o,i):(c._visibility|=2,Yi(o,i,l,s,r)),r&&u&2048&&by(i.alternate,i);break;case 24:Yi(o,i,l,s,r),r&&u&2048&&Sy(i.alternate,i);break;default:Yi(o,i,l,s,r)}t=t.sibling}}function Tu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,r=n.flags;switch(n.tag){case 22:Tu(a,n),r&2048&&by(n.alternate,n);break;case 24:Tu(a,n),r&2048&&Sy(n.alternate,n);break;default:Tu(a,n)}t=t.sibling}}var vu=8192;function Ki(e,t,a){if(e.subtreeFlags&vu)for(e=e.child;e!==null;)GT(e,t,a),e=e.sibling}function GT(e,t,a){switch(e.tag){case 26:Ki(e,t,a),e.flags&vu&&e.memoizedState!==null&&PP(a,kr,e.memoizedState,e.memoizedProps);break;case 5:Ki(e,t,a);break;case 3:case 4:var n=kr;kr=Ff(e.stateNode.containerInfo),Ki(e,t,a),kr=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=vu,vu=16777216,Ki(e,t,a),vu=n):Ki(e,t,a));break;default:Ki(e,t,a)}}function WT(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function cu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Wt=n,XT(n,e)}WT(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)JT(e),e=e.sibling}function JT(e){switch(e.tag){case 0:case 11:case 15:cu(e),e.flags&2048&&po(9,e,e.return);break;case 3:cu(e);break;case 12:cu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,df(e)):cu(e);break;default:cu(e)}}function df(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Wt=n,XT(n,e)}WT(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:po(8,t,t.return),df(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,df(t));break;default:df(t)}e=e.sibling}}function XT(e,t){for(;Wt!==null;){var a=Wt;switch(a.tag){case 0:case 11:case 15:po(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ku(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Wt=n;else e:for(a=e;Wt!==null;){n=Wt;var r=n.sibling,o=n.return;if(FT(n),n===a){Wt=null;break e}if(r!==null){r.return=o,Wt=r;break e}Wt=o}}}var eP={getCacheForType:function(e){var t=na(Rt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return na(Rt).controller.signal}},tP=typeof WeakMap=="function"?WeakMap:Map,Be=0,rt=null,Oe=null,Re=0,Ve=0,Ua=null,Yn=!1,zl=!1,wy=!1,In=0,kt=0,mo=0,ti=0,_y=0,Ba=0,kl=0,Lu=null,Aa=null,wv=!1,ap=0,KT=0,Df=1/0,zf=null,oo=null,Bt=0,io=null,Cl=null,xn=0,_v=0,Iv=null,YT=null,Au=0,kv=null;function Va(){return(Be&2)!==0&&Re!==0?Re&-Re:he.T!==null?ky():l1()}function QT(){if(Ba===0)if((Re&536870912)===0||Ne){var e=Nd;Nd<<=1,(Nd&3932160)===0&&(Nd=262144),Ba=e}else Ba=536870912;return e=Wa.current,e!==null&&(e.flags|=32),Ba}function Ea(e,t,a){(e===rt&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(Tl(e,0),Qn(e,Re,Ba,!1)),Wu(e,a),((Be&2)===0||e!==rt)&&(e===rt&&((Be&2)===0&&(ti|=a),kt===4&&Qn(e,Re,Ba,!1)),qr(e))}function eL(e,t,a){if((Be&6)!==0)throw Error(j(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Gu(e,t),r=n?nP(e,t):Og(e,t,!0),o=n;do{if(r===0){zl&&!n&&Qn(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!aP(a)){r=Og(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;r=Lu;var s=l.current.memoizedState.isDehydrated;if(s&&(Tl(l,i).flags|=256),i=Og(l,i,!1),i!==2){if(wy&&!s){l.errorRecoveryDisabledLanes|=o,ti|=o,r=4;break e}o=Aa,Aa=r,o!==null&&(Aa===null?Aa=o:Aa.push.apply(Aa,o))}r=i}if(o=!1,r!==2)continue}}if(r===1){Tl(e,0),Qn(e,t,0,!0);break}e:{switch(n=e,o=r,o){case 0:case 1:throw Error(j(345));case 4:if((t&4194048)!==t)break;case 6:Qn(n,t,Ba,!Yn);break e;case 2:Aa=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(r=ap+300-qa(),10<r)){if(Qn(n,t,Ba,!Yn),Hf(n,0,!0)!==0)break e;xn=t,n.timeoutHandle=bL(yC.bind(null,n,a,Aa,zf,wv,t,Ba,ti,kl,Yn,o,"Throttled",-0,0),r);break e}yC(n,a,Aa,zf,wv,t,Ba,ti,kl,Yn,o,null,-0,0)}}break}while(!0);qr(e)}function yC(e,t,a,n,r,o,i,l,s,u,c,d,p,f){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},GT(t,o,d);var m=(o&62914560)===o?ap-qa():(o&4194048)===o?KT-qa():0;if(m=NP(d,m),m!==null){xn=o,e.cancelPendingCommit=m(bC.bind(null,e,t,o,a,n,r,i,l,s,c,d,null,p,f)),Qn(e,o,i,!u);return}}bC(e,t,o,a,n,r,i,l,s)}function aP(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],o=r.getSnapshot;r=r.value;try{if(!Ga(o(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Qn(e,t,a,n){t&=~_y,t&=~ti,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var o=31-Ha(r),i=1<<o;n[o]=-1,r&=~i}a!==0&&n1(e,a,t)}function rp(){return(Be&6)===0?(ec(0,!1),!1):!0}function Iy(){if(Oe!==null){if(Ve===0)var e=Oe.return;else e=Oe,gn=di=null,uy(e),gl=null,Pu=0,e=Oe;for(;e!==null;)DT(e.alternate,e),e=e.return;Oe=null}}function Tl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,bP(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xn=0,Iy(),rt=e,Oe=a=vn(e.current,null),Re=t,Ve=0,Ua=null,Yn=!1,zl=Gu(e,t),wy=!1,kl=Ba=_y=ti=mo=kt=0,Aa=Lu=null,wv=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ha(n),o=1<<r;t|=e[r],n&=~o}return In=t,Jf(),a}function tL(e,t){Ie=null,he.H=Uu,t===Dl||t===Kf?(t=X0(),Ve=3):t===ay?(t=X0(),Ve=4):Ve=t===yy?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ua=t,Oe===null&&(kt=1,Ef(e,sr(t,e.current)))}function aL(){var e=Wa.current;return e===null?!0:(Re&4194048)===Re?cr===null:(Re&62914560)===Re||(Re&536870912)!==0?e===cr:!1}function rL(){var e=he.H;return he.H=Uu,e===null?Uu:e}function nL(){var e=he.A;return he.A=eP,e}function Of(){kt=4,Yn||(Re&4194048)!==Re&&Wa.current!==null||(zl=!0),(mo&134217727)===0&&(ti&134217727)===0||rt===null||Qn(rt,Re,Ba,!1)}function Og(e,t,a){var n=Be;Be|=2;var r=rL(),o=nL();(rt!==e||Re!==t)&&(zf=null,Tl(e,t)),t=!1;var i=kt;e:do try{if(Ve!==0&&Oe!==null){var l=Oe,s=Ua;switch(Ve){case 8:Iy(),i=6;break e;case 3:case 2:case 9:case 6:Wa.current===null&&(t=!0);var u=Ve;if(Ve=0,Ua=null,dl(e,l,s,u),a&&zl){i=0;break e}break;default:u=Ve,Ve=0,Ua=null,dl(e,l,s,u)}}rP(),i=kt;break}catch(c){tL(e,c)}while(!0);return t&&e.shellSuspendCounter++,gn=di=null,Be=n,he.H=r,he.A=o,Oe===null&&(rt=null,Re=0,Jf()),i}function rP(){for(;Oe!==null;)oL(Oe)}function nP(e,t){var a=Be;Be|=2;var n=rL(),r=nL();rt!==e||Re!==t?(zf=null,Df=qa()+500,Tl(e,t)):zl=Gu(e,t);e:do try{if(Ve!==0&&Oe!==null){t=Oe;var o=Ua;t:switch(Ve){case 1:Ve=0,Ua=null,dl(e,t,o,1);break;case 2:case 9:if(J0(o)){Ve=0,Ua=null,xC(t);break}t=function(){Ve!==2&&Ve!==9||rt!==e||(Ve=7),qr(e)},o.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:J0(o)?(Ve=0,Ua=null,xC(t)):(Ve=0,Ua=null,dl(e,t,o,7));break;case 5:var i=null;switch(Oe.tag){case 26:i=Oe.memoizedState;case 5:case 27:var l=Oe;if(i?kL(i):l.stateNode.complete){Ve=0,Ua=null;var s=l.sibling;if(s!==null)Oe=s;else{var u=l.return;u!==null?(Oe=u,np(u)):Oe=null}break t}}Ve=0,Ua=null,dl(e,t,o,5);break;case 6:Ve=0,Ua=null,dl(e,t,o,6);break;case 8:Iy(),kt=6;break e;default:throw Error(j(462))}}oP();break}catch(c){tL(e,c)}while(!0);return gn=di=null,he.H=n,he.A=r,Be=a,Oe!==null?0:(rt=null,Re=0,Jf(),kt)}function oP(){for(;Oe!==null&&!LR();)oL(Oe)}function oL(e){var t=MT(e.alternate,e,In);e.memoizedProps=e.pendingProps,t===null?np(e):Oe=t}function xC(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=fC(a,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=fC(a,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:uy(t);default:DT(a,t),t=Oe=D1(t,In),t=MT(a,t,In)}e.memoizedProps=e.pendingProps,t===null?np(e):Oe=t}function dl(e,t,a,n){gn=di=null,uy(t),gl=null,Pu=0;var r=t.return;try{if(G4(e,r,t,a,Re)){kt=1,Ef(e,sr(a,e.current)),Oe=null;return}}catch(o){if(r!==null)throw Oe=r,o;kt=1,Ef(e,sr(a,e.current)),Oe=null;return}t.flags&32768?(Ne||n===1?e=!0:zl||(Re&536870912)!==0?e=!1:(Yn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Wa.current,n!==null&&n.tag===13&&(n.flags|=16384))),iL(t,e)):np(t)}function np(e){var t=e;do{if((t.flags&32768)!==0){iL(t,Yn);return}e=t.return;var a=X4(t.alternate,t,In);if(a!==null){Oe=a;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);kt===0&&(kt=5)}function iL(e,t){do{var a=K4(e.alternate,e);if(a!==null){a.flags&=32767,Oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);kt=6,Oe=null}function bC(e,t,a,n,r,o,i,l,s){e.cancelPendingCommit=null;do op();while(Bt!==0);if((Be&6)!==0)throw Error(j(327));if(t!==null){if(t===e.current)throw Error(j(177));if(o=t.lanes|t.childLanes,o|=Jv,NR(e,a,o,i,l,s),e===rt&&(Oe=rt=null,Re=0),Cl=t,io=e,xn=a,_v=o,Iv=r,YT=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uP(xf,function(){return dL(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=he.T,he.T=null,r=qe.p,qe.p=2,i=Be,Be|=4;try{Y4(e,t,a)}finally{Be=i,qe.p=r,he.T=n}}Bt=1,lL(),sL(),uL()}}function lL(){if(Bt===1){Bt=0;var e=io,t=Cl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=he.T,he.T=null;var n=qe.p;qe.p=2;var r=Be;Be|=4;try{ZT(t,e);var o=Av,i=k1(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&I1(l.ownerDocument.documentElement,l)){if(s!==null&&Wv(l)){var u=s.start,c=s.end;if(c===void 0&&(c=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(c,l.value.length);else{var d=l.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),m=l.textContent.length,w=Math.min(s.start,m),C=s.end===void 0?w:Math.min(s.end,m);!f.extend&&w>C&&(i=C,C=w,w=i);var g=B0(l,w),x=B0(l,C);if(g&&x&&(f.rangeCount!==1||f.anchorNode!==g.node||f.anchorOffset!==g.offset||f.focusNode!==x.node||f.focusOffset!==x.offset)){var h=d.createRange();h.setStart(g.node,g.offset),f.removeAllRanges(),w>C?(f.addRange(h),f.extend(x.node,x.offset)):(h.setEnd(x.node,x.offset),f.addRange(h))}}}}for(d=[],f=l;f=f.parentNode;)f.nodeType===1&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<d.length;l++){var b=d[l];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}qf=!!Lv,Av=Lv=null}finally{Be=r,qe.p=n,he.T=a}}e.current=t,Bt=2}}function sL(){if(Bt===2){Bt=0;var e=io,t=Cl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=he.T,he.T=null;var n=qe.p;qe.p=2;var r=Be;Be|=4;try{UT(e,t.alternate,t)}finally{Be=r,qe.p=n,he.T=a}}Bt=3}}function uL(){if(Bt===4||Bt===3){Bt=0,AR();var e=io,t=Cl,a=xn,n=YT;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Bt=5:(Bt=0,Cl=io=null,cL(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(oo=null),jv(a),t=t.stateNode,Za&&typeof Za.onCommitFiberRoot=="function")try{Za.onCommitFiberRoot(Vu,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=he.T,r=qe.p,qe.p=2,he.T=null;try{for(var o=e.onRecoverableError,i=0;i<n.length;i++){var l=n[i];o(l.value,{componentStack:l.stack})}}finally{he.T=t,qe.p=r}}(xn&3)!==0&&op(),qr(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===kv?Au++:(Au=0,kv=e):Au=0,ec(0,!1)}}function cL(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ku(t)))}function op(){return lL(),sL(),uL(),dL()}function dL(){if(Bt!==5)return!1;var e=io,t=_v;_v=0;var a=jv(xn),n=he.T,r=qe.p;try{qe.p=32>a?32:a,he.T=null,a=Iv,Iv=null;var o=io,i=xn;if(Bt=0,Cl=io=null,xn=0,(Be&6)!==0)throw Error(j(331));var l=Be;if(Be|=4,JT(o.current),VT(o,o.current,i,a),Be=l,ec(0,!1),Za&&typeof Za.onPostCommitFiberRoot=="function")try{Za.onPostCommitFiberRoot(Vu,o)}catch{}return!0}finally{qe.p=r,he.T=n,cL(e,t)}}function SC(e,t,a){t=sr(a,t),t=yv(e.stateNode,t,2),e=no(e,t,2),e!==null&&(Wu(e,2),qr(e))}function Ge(e,t,a){if(e.tag===3)SC(e,e,a);else for(;t!==null;){if(t.tag===3){SC(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(oo===null||!oo.has(n))){e=sr(a,e),a=CT(2),n=no(t,a,2),n!==null&&(TT(a,n,t,e),Wu(n,2),qr(n));break}}t=t.return}}function Rg(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new tP;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(wy=!0,r.add(a),e=iP.bind(null,e,t,a),t.then(e,e))}function iP(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(Re&a)===a&&(kt===4||kt===3&&(Re&62914560)===Re&&300>qa()-ap?(Be&2)===0&&Tl(e,0):_y|=a,kl===Re&&(kl=0)),qr(e)}function fL(e,t){t===0&&(t=r1()),e=ci(e,t),e!==null&&(Wu(e,t),qr(e))}function lP(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),fL(e,a)}function sP(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(j(314))}n!==null&&n.delete(t),fL(e,a)}function uP(e,t){return Uv(e,t)}var Rf=null,Qi=null,Cv=!1,Pf=!1,Pg=!1,eo=0;function qr(e){e!==Qi&&e.next===null&&(Qi===null?Rf=Qi=e:Qi=Qi.next=e),Pf=!0,Cv||(Cv=!0,dP())}function ec(e,t){if(!Pg&&Pf){Pg=!0;do for(var a=!1,n=Rf;n!==null;){if(!t)if(e!==0){var r=n.pendingLanes;if(r===0)var o=0;else{var i=n.suspendedLanes,l=n.pingedLanes;o=(1<<31-Ha(42|e)+1)-1,o&=r&~(i&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,wC(n,o))}else o=Re,o=Hf(n,n===rt?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||Gu(n,o)||(a=!0,wC(n,o));n=n.next}while(a);Pg=!1}}function cP(){pL()}function pL(){Pf=Cv=!1;var e=0;eo!==0&&xP()&&(e=eo);for(var t=qa(),a=null,n=Rf;n!==null;){var r=n.next,o=mL(n,t);o===0?(n.next=null,a===null?Rf=r:a.next=r,r===null&&(Qi=a)):(a=n,(e!==0||(o&3)!==0)&&(Pf=!0)),n=r}Bt!==0&&Bt!==5||ec(e,!1),eo!==0&&(eo=0)}function mL(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-Ha(o),l=1<<i,s=r[i];s===-1?((l&a)===0||(l&n)!==0)&&(r[i]=PR(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(t=rt,a=Re,a=Hf(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&fg(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Gu(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&fg(n),jv(a)){case 2:case 8:a=t1;break;case 32:a=xf;break;case 268435456:a=a1;break;default:a=xf}return n=hL.bind(null,e),a=Uv(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&fg(n),e.callbackPriority=2,e.callbackNode=null,2}function hL(e,t){if(Bt!==0&&Bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(op()&&e.callbackNode!==a)return null;var n=Re;return n=Hf(e,e===rt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(eL(e,n,t),mL(e,qa()),e.callbackNode!=null&&e.callbackNode===a?hL.bind(null,e):null)}function wC(e,t){if(op())return null;eL(e,t,!0)}function dP(){SP(function(){(Be&6)!==0?Uv(e1,cP):pL()})}function ky(){if(eo===0){var e=wl;e===0&&(e=Pd,Pd<<=1,(Pd&261888)===0&&(Pd=256)),eo=e}return eo}function _C(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tf(""+e)}function IC(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function fP(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var o=_C((r[$a]||null).action),i=n.submitter;i&&(t=(t=i[$a]||null)?_C(t.formAction):i.getAttribute("formAction"),t!==null&&(o=t,i=null));var l=new Vf("action","action",null,n,r);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(eo!==0){var s=i?IC(r,i):new FormData(r);gv(a,{pending:!0,data:s,method:r.method,action:o},null,s)}}else typeof o=="function"&&(l.preventDefault(),s=i?IC(r,i):new FormData(r),gv(a,{pending:!0,data:s,method:r.method,action:o},o,s))},currentTarget:r}]})}}for(Jd=0;Jd<nv.length;Jd++)Xd=nv[Jd],kC=Xd.toLowerCase(),CC=Xd[0].toUpperCase()+Xd.slice(1),Cr(kC,"on"+CC);var Xd,kC,CC,Jd;Cr(T1,"onAnimationEnd");Cr(L1,"onAnimationIteration");Cr(A1,"onAnimationStart");Cr("dblclick","onDoubleClick");Cr("focusin","onFocus");Cr("focusout","onBlur");Cr(E4,"onTransitionRun");Cr($4,"onTransitionStart");Cr(M4,"onTransitionCancel");Cr(E1,"onTransitionEnd");bl("onMouseEnter",["mouseout","mouseover"]);bl("onMouseLeave",["mouseout","mouseover"]);bl("onPointerEnter",["pointerout","pointerover"]);bl("onPointerLeave",["pointerout","pointerover"]);li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));li("onBeforeInput",["compositionend","keypress","textInput","paste"]);li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fu="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(" "),pP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fu));function gL(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],r=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var l=n[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){Sf(c)}r.currentTarget=null,o=s}else for(i=0;i<n.length;i++){if(l=n[i],s=l.instance,u=l.currentTarget,l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){Sf(c)}r.currentTarget=null,o=s}}}}function ze(e,t){var a=t[Xg];a===void 0&&(a=t[Xg]=new Set);var n=e+"__bubble";a.has(n)||(vL(t,e,2,!1),a.add(n))}function Ng(e,t,a){var n=0;t&&(n|=4),vL(a,e,n,t)}var Kd="_reactListening"+Math.random().toString(36).slice(2);function Cy(e){if(!e[Kd]){e[Kd]=!0,s1.forEach(function(a){a!=="selectionchange"&&(pP.has(a)||Ng(a,!1,e),Ng(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kd]||(t[Kd]=!0,Ng("selectionchange",!1,t))}}function vL(e,t,a,n){switch(EL(t)){case 2:var r=jP;break;case 8:r=BP;break;default:r=Ey}a=r.bind(null,t,a,e),r=void 0,!tv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Ug(e,t,a,n,r){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var l=n.stateNode.containerInfo;if(l===r)break;if(i===4)for(i=n.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;l!==null;){if(i=al(l),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){n=o=i;continue e}l=l.parentNode}}n=n.return}g1(function(){var u=o,c=Zv(a),d=[];e:{var p=$1.get(e);if(p!==void 0){var f=Vf,m=e;switch(e){case"keypress":if(rf(a)===0)break e;case"keydown":case"keyup":f=s4;break;case"focusin":m="focus",f=vg;break;case"focusout":m="blur",f=vg;break;case"beforeblur":case"afterblur":f=vg;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=D0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=XR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=d4;break;case T1:case L1:case A1:f=QR;break;case E1:f=p4;break;case"scroll":case"scrollend":f=WR;break;case"wheel":f=h4;break;case"copy":case"cut":case"paste":f=t4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=O0;break;case"toggle":case"beforetoggle":f=v4}var w=(t&4)!==0,C=!w&&(e==="scroll"||e==="scrollend"),g=w?p!==null?p+"Capture":null:p;w=[];for(var x=u,h;x!==null;){var b=x;if(h=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||h===null||g===null||(b=Mu(x,g),b!=null&&w.push(ju(x,b,h))),C)break;x=x.return}0<w.length&&(p=new f(p,m,null,a,c),d.push({event:p,listeners:w}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&a!==ev&&(m=a.relatedTarget||a.fromElement)&&(al(m)||m[El]))break e;if((f||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,f?(m=a.relatedTarget||a.toElement,f=u,m=m?al(m):null,m!==null&&(C=Hu(m),w=m.tag,m!==C||w!==5&&w!==27&&w!==6)&&(m=null)):(f=null,m=u),f!==m)){if(w=D0,b="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(w=O0,b="onPointerLeave",g="onPointerEnter",x="pointer"),C=f==null?p:hu(f),h=m==null?p:hu(m),p=new w(b,x+"leave",f,a,c),p.target=C,p.relatedTarget=h,b=null,al(c)===u&&(w=new w(g,x+"enter",m,a,c),w.target=h,w.relatedTarget=C,b=w),C=b,f&&m)t:{for(w=mP,g=f,x=m,h=0,b=g;b;b=w(b))h++;b=0;for(var L=x;L;L=w(L))b++;for(;0<h-b;)g=w(g),h--;for(;0<b-h;)x=w(x),b--;for(;h--;){if(g===x||x!==null&&g===x.alternate){w=g;break t}g=w(g),x=w(x)}w=null}else w=null;f!==null&&TC(d,p,f,w,!1),m!==null&&C!==null&&TC(d,C,m,w,!0)}}e:{if(p=u?hu(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var y=U0;else if(N0(p))if(w1)y=T4;else{y=k4;var _=I4}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&qv(u.elementType)&&(y=U0):y=C4;if(y&&(y=y(e,u))){S1(d,y,a,c);break e}_&&_(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&Qg(p,"number",p.value)}switch(_=u?hu(u):window,e){case"focusin":(N0(_)||_.contentEditable==="true")&&(ol=_,av=u,bu=null);break;case"focusout":bu=av=ol=null;break;case"mousedown":rv=!0;break;case"contextmenu":case"mouseup":case"dragend":rv=!1,q0(d,a,c);break;case"selectionchange":if(A4)break;case"keydown":case"keyup":q0(d,a,c)}var S;if(Gv)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else nl?x1(e,a)&&(T="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(T="onCompositionStart");T&&(y1&&a.locale!=="ko"&&(nl||T!=="onCompositionStart"?T==="onCompositionEnd"&&nl&&(S=v1()):(Kn=c,Hv="value"in Kn?Kn.value:Kn.textContent,nl=!0)),_=Nf(u,T),0<_.length&&(T=new z0(T,e,null,a,c),d.push({event:T,listeners:_}),S?T.data=S:(S=b1(a),S!==null&&(T.data=S)))),(S=x4?b4(e,a):S4(e,a))&&(T=Nf(u,"onBeforeInput"),0<T.length&&(_=new z0("onBeforeInput","beforeinput",null,a,c),d.push({event:_,listeners:T}),_.data=S)),fP(d,e,u,a,c)}gL(d,t)})}function ju(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Nf(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=Mu(e,a),r!=null&&n.unshift(ju(e,r,o)),r=Mu(e,t),r!=null&&n.push(ju(e,r,o))),e.tag===3)return n;e=e.return}return[]}function mP(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function TC(e,t,a,n,r){for(var o=t._reactName,i=[];a!==null&&a!==n;){var l=a,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===n)break;l!==5&&l!==26&&l!==27||u===null||(s=u,r?(u=Mu(a,o),u!=null&&i.unshift(ju(a,u,s))):r||(u=Mu(a,o),u!=null&&i.push(ju(a,u,s)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var hP=/\r\n?/g,gP=/\u0000|\uFFFD/g;function LC(e){return(typeof e=="string"?e:""+e).replace(hP,`
|
|
10
|
+
`).replace(gP,"")}function yL(e,t){return t=LC(t),LC(e)===t}function Ke(e,t,a,n,r,o){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Sl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Sl(e,""+n);break;case"className":Fd(e,"class",n);break;case"tabIndex":Fd(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Fd(e,a,n);break;case"style":h1(e,n,o);break;case"data":if(t!=="object"){Fd(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=tf(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&Ke(e,t,"name",r.name,r,null),Ke(e,t,"formEncType",r.formEncType,r,null),Ke(e,t,"formMethod",r.formMethod,r,null),Ke(e,t,"formTarget",r.formTarget,r,null)):(Ke(e,t,"encType",r.encType,r,null),Ke(e,t,"method",r.method,r,null),Ke(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=tf(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=hn);break;case"onScroll":n!=null&&ze("scroll",e);break;case"onScrollEnd":n!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(j(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(j(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=tf(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ze("beforetoggle",e),ze("toggle",e),ef(e,"popover",n);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":ef(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=VR.get(a)||a,ef(e,a,n))}}function Tv(e,t,a,n,r,o){switch(a){case"style":h1(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(j(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(j(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Sl(e,n):(typeof n=="number"||typeof n=="bigint")&&Sl(e,""+n);break;case"onScroll":n!=null&&ze("scroll",e);break;case"onScrollEnd":n!=null&&ze("scrollend",e);break;case"onClick":n!=null&&(e.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!u1.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),o=e[$a]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof n=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):ef(e,a,n)}}}function oa(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var n=!1,r=!1,o;for(o in a)if(a.hasOwnProperty(o)){var i=a[o];if(i!=null)switch(o){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ke(e,t,o,i,a,null)}}r&&Ke(e,t,"srcSet",a.srcSet,a,null),n&&Ke(e,t,"src",a.src,a,null);return;case"input":ze("invalid",e);var l=o=i=r=null,s=null,u=null;for(n in a)if(a.hasOwnProperty(n)){var c=a[n];if(c!=null)switch(n){case"name":r=c;break;case"type":i=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":o=c;break;case"defaultValue":l=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(j(137,t));break;default:Ke(e,t,n,c,a,null)}}f1(e,o,l,s,u,i,r,!1);return;case"select":ze("invalid",e),n=i=o=null;for(r in a)if(a.hasOwnProperty(r)&&(l=a[r],l!=null))switch(r){case"value":o=l;break;case"defaultValue":i=l;break;case"multiple":n=l;default:Ke(e,t,r,l,a,null)}t=o,a=i,e.multiple=!!n,t!=null?pl(e,!!n,t,!1):a!=null&&pl(e,!!n,a,!0);return;case"textarea":ze("invalid",e),o=r=n=null;for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"value":n=l;break;case"defaultValue":r=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(j(91));break;default:Ke(e,t,i,l,a,null)}m1(e,n,r,o);return;case"option":for(s in a)a.hasOwnProperty(s)&&(n=a[s],n!=null)&&(s==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Ke(e,t,s,n,a,null));return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(n=0;n<Fu.length;n++)ze(Fu[n],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(n=a[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ke(e,t,u,n,a,null)}return;default:if(qv(t)){for(c in a)a.hasOwnProperty(c)&&(n=a[c],n!==void 0&&Tv(e,t,c,n,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null&&Ke(e,t,l,n,a,null))}function vP(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,i=null,l=null,s=null,u=null,c=null;for(f in a){var d=a[f];if(a.hasOwnProperty(f)&&d!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":s=d;default:n.hasOwnProperty(f)||Ke(e,t,f,null,n,d)}}for(var p in n){var f=n[p];if(d=a[p],n.hasOwnProperty(p)&&(f!=null||d!=null))switch(p){case"type":o=f;break;case"name":r=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(j(137,t));break;default:f!==d&&Ke(e,t,p,f,n,d)}}Yg(e,i,l,s,u,c,o,r);return;case"select":f=i=l=p=null;for(o in a)if(s=a[o],a.hasOwnProperty(o)&&s!=null)switch(o){case"value":break;case"multiple":f=s;default:n.hasOwnProperty(o)||Ke(e,t,o,null,n,s)}for(r in n)if(o=n[r],s=a[r],n.hasOwnProperty(r)&&(o!=null||s!=null))switch(r){case"value":p=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&Ke(e,t,r,o,n,s)}t=l,a=i,n=f,p!=null?pl(e,!!a,p,!1):!!n!=!!a&&(t!=null?pl(e,!!a,t,!0):pl(e,!!a,a?[]:"",!1));return;case"textarea":f=p=null;for(l in a)if(r=a[l],a.hasOwnProperty(l)&&r!=null&&!n.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Ke(e,t,l,null,n,r)}for(i in n)if(r=n[i],o=a[i],n.hasOwnProperty(i)&&(r!=null||o!=null))switch(i){case"value":p=r;break;case"defaultValue":f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(j(91));break;default:r!==o&&Ke(e,t,i,r,n,o)}p1(e,p,f);return;case"option":for(var m in a)p=a[m],a.hasOwnProperty(m)&&p!=null&&!n.hasOwnProperty(m)&&(m==="selected"?e.selected=!1:Ke(e,t,m,null,n,p));for(s in n)p=n[s],f=a[s],n.hasOwnProperty(s)&&p!==f&&(p!=null||f!=null)&&(s==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":Ke(e,t,s,p,n,f));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var w in a)p=a[w],a.hasOwnProperty(w)&&p!=null&&!n.hasOwnProperty(w)&&Ke(e,t,w,null,n,p);for(u in n)if(p=n[u],f=a[u],n.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(j(137,t));break;default:Ke(e,t,u,p,n,f)}return;default:if(qv(t)){for(var C in a)p=a[C],a.hasOwnProperty(C)&&p!==void 0&&!n.hasOwnProperty(C)&&Tv(e,t,C,void 0,n,p);for(c in n)p=n[c],f=a[c],!n.hasOwnProperty(c)||p===f||p===void 0&&f===void 0||Tv(e,t,c,p,n,f);return}}for(var g in a)p=a[g],a.hasOwnProperty(g)&&p!=null&&!n.hasOwnProperty(g)&&Ke(e,t,g,null,n,p);for(d in n)p=n[d],f=a[d],!n.hasOwnProperty(d)||p===f||p==null&&f==null||Ke(e,t,d,p,n,f)}function AC(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yP(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],o=r.transferSize,i=r.initiatorType,l=r.duration;if(o&&l&&AC(i)){for(i=0,l=r.responseEnd,n+=1;n<a.length;n++){var s=a[n],u=s.startTime;if(u>l)break;var c=s.transferSize,d=s.initiatorType;c&&AC(d)&&(s=s.responseEnd,i+=c*(s<l?1:(l-u)/(s-u)))}if(--n,t+=8*(o+i)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Lv=null,Av=null;function Uf(e){return e.nodeType===9?e:e.ownerDocument}function EC(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xL(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ev(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fg=null;function xP(){var e=window.event;return e&&e.type==="popstate"?e===Fg?!1:(Fg=e,!0):(Fg=null,!1)}var bL=typeof setTimeout=="function"?setTimeout:void 0,bP=typeof clearTimeout=="function"?clearTimeout:void 0,$C=typeof Promise=="function"?Promise:void 0,SP=typeof queueMicrotask=="function"?queueMicrotask:typeof $C<"u"?function(e){return $C.resolve(null).then(e).catch(wP)}:bL;function wP(e){setTimeout(function(){throw e})}function go(e){return e==="head"}function MC(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(r),Al(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Eu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Eu(a);for(var o=a.firstChild;o;){var i=o.nextSibling,l=o.nodeName;o[Ju]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=i}}else a==="body"&&Eu(e.ownerDocument.body);a=r}while(a);Al(t)}function DC(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function $v(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":$v(a),Bv(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function _P(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Ju])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=dr(e.nextSibling),e===null)break}return null}function IP(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=dr(e.nextSibling),e===null))return null;return e}function SL(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dr(e.nextSibling),e===null))return null;return e}function Mv(e){return e.data==="$?"||e.data==="$~"}function Dv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function kP(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function dr(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zv=null;function zC(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return dr(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function OC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function wL(e,t,a){switch(t=Uf(a),e){case"html":if(e=t.documentElement,!e)throw Error(j(452));return e;case"head":if(e=t.head,!e)throw Error(j(453));return e;case"body":if(e=t.body,!e)throw Error(j(454));return e;default:throw Error(j(451))}}function Eu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Bv(e)}var fr=new Map,RC=new Set;function Ff(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kn=qe.d;qe.d={f:CP,r:TP,D:LP,C:AP,L:EP,m:$P,X:DP,S:MP,M:zP};function CP(){var e=kn.f(),t=rp();return e||t}function TP(e){var t=$l(e);t!==null&&t.tag===5&&t.type==="form"?hT(t):kn.r(e)}var Ol=typeof document>"u"?null:document;function _L(e,t,a){var n=Ol;if(n&&typeof t=="string"&&t){var r=lr(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),RC.has(r)||(RC.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),oa(t,"link",e),Jt(t),n.head.appendChild(t)))}}function LP(e){kn.D(e),_L("dns-prefetch",e,null)}function AP(e,t){kn.C(e,t),_L("preconnect",e,t)}function EP(e,t,a){kn.L(e,t,a);var n=Ol;if(n&&e&&t){var r='link[rel="preload"][as="'+lr(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+lr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+lr(a.imageSizes)+'"]')):r+='[href="'+lr(e)+'"]';var o=r;switch(t){case"style":o=Ll(e);break;case"script":o=Rl(e)}fr.has(o)||(e=dt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fr.set(o,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(tc(o))||t==="script"&&n.querySelector(ac(o))||(t=n.createElement("link"),oa(t,"link",e),Jt(t),n.head.appendChild(t)))}}function $P(e,t){kn.m(e,t);var a=Ol;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+lr(n)+'"][href="'+lr(e)+'"]',o=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Rl(e)}if(!fr.has(o)&&(e=dt({rel:"modulepreload",href:e},t),fr.set(o,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ac(o)))return}n=a.createElement("link"),oa(n,"link",e),Jt(n),a.head.appendChild(n)}}}function MP(e,t,a){kn.S(e,t,a);var n=Ol;if(n&&e){var r=fl(n).hoistableStyles,o=Ll(e);t=t||"default";var i=r.get(o);if(!i){var l={loading:0,preload:null};if(i=n.querySelector(tc(o)))l.loading=5;else{e=dt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fr.get(o))&&Ty(e,a);var s=i=n.createElement("link");Jt(s),oa(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,ff(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:l},r.set(o,i)}}}function DP(e,t){kn.X(e,t);var a=Ol;if(a&&e){var n=fl(a).hoistableScripts,r=Rl(e),o=n.get(r);o||(o=a.querySelector(ac(r)),o||(e=dt({src:e,async:!0},t),(t=fr.get(r))&&Ly(e,t),o=a.createElement("script"),Jt(o),oa(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function zP(e,t){kn.M(e,t);var a=Ol;if(a&&e){var n=fl(a).hoistableScripts,r=Rl(e),o=n.get(r);o||(o=a.querySelector(ac(r)),o||(e=dt({src:e,async:!0,type:"module"},t),(t=fr.get(r))&&Ly(e,t),o=a.createElement("script"),Jt(o),oa(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function PC(e,t,a,n){var r=(r=to.current)?Ff(r):null;if(!r)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ll(a.href),a=fl(r).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ll(a.href);var o=fl(r).hoistableStyles,i=o.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,i),(o=r.querySelector(tc(e)))&&!o._p&&(i.instance=o,i.state.loading=5),fr.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fr.set(e,a),o||OP(r,e,a,i.state))),t&&n===null)throw Error(j(528,""));return i}if(t&&n!==null)throw Error(j(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Rl(a),a=fl(r).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function Ll(e){return'href="'+lr(e)+'"'}function tc(e){return'link[rel="stylesheet"]['+e+"]"}function IL(e){return dt({},e,{"data-precedence":e.precedence,precedence:null})}function OP(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),oa(t,"link",a),Jt(t),e.head.appendChild(t))}function Rl(e){return'[src="'+lr(e)+'"]'}function ac(e){return"script[async]"+e}function NC(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+lr(a.href)+'"]');if(n)return t.instance=n,Jt(n),n;var r=dt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Jt(n),oa(n,"style",r),ff(n,a.precedence,e),t.instance=n;case"stylesheet":r=Ll(a.href);var o=e.querySelector(tc(r));if(o)return t.state.loading|=4,t.instance=o,Jt(o),o;n=IL(a),(r=fr.get(r))&&Ty(n,r),o=(e.ownerDocument||e).createElement("link"),Jt(o);var i=o;return i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),oa(o,"link",n),t.state.loading|=4,ff(o,a.precedence,e),t.instance=o;case"script":return o=Rl(a.src),(r=e.querySelector(ac(o)))?(t.instance=r,Jt(r),r):(n=a,(r=fr.get(o))&&(n=dt({},a),Ly(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Jt(r),oa(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,ff(n,a.precedence,e));return t.instance}function ff(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,o=r,i=0;i<n.length;i++){var l=n[i];if(l.dataset.precedence===t)o=l;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ty(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ly(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pf=null;function UC(e,t,a){if(pf===null){var n=new Map,r=pf=new Map;r.set(a,n)}else r=pf,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var o=a[r];if(!(o[Ju]||o[aa]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var i=o.getAttribute(t)||"";i=e+i;var l=n.get(i);l?l.push(o):n.set(i,[o])}}return n}function FC(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function RP(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function kL(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function PP(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Ll(n.href),o=t.querySelector(tc(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jf.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,Jt(o);return}o=t.ownerDocument||t,n=IL(n),(r=fr.get(r))&&Ty(n,r),o=o.createElement("link"),Jt(o);var i=o;i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),oa(o,"link",n),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=jf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var jg=0;function NP(e,t){return e.stylesheets&&e.count===0&&mf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&mf(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&jg===0&&(jg=62500*yP());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mf(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>jg?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bf=null;function mf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bf=new Map,t.forEach(UP,e),Bf=null,jf.call(e))}function UP(e,t){if(!(t.state.loading&4)){var a=Bf.get(e);if(a)var n=a.get(null);else{a=new Map,Bf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var i=r[o];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),n=i)}n&&a.set(null,n)}r=t.instance,i=r.getAttribute("data-precedence"),o=a.get(i)||n,o===n&&a.set(null,r),a.set(i,r),this.count++,n=jf.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Bu={$$typeof:mn,Provider:null,Consumer:null,_currentValue:Ko,_currentValue2:Ko,_threadCount:0};function FP(e,t,a,n,r,o,i,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=pg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pg(0),this.hiddenUpdates=pg(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function CL(e,t,a,n,r,o,i,l,s,u,c,d){return e=new FP(e,t,a,i,s,u,c,d,l),t=1,o===!0&&(t|=24),o=ja(3,null,null,t),e.current=o,o.stateNode=e,t=ey(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:a,cache:t},ry(o),e}function TL(e){return e?(e=sl,e):sl}function LL(e,t,a,n,r,o){r=TL(r),n.context===null?n.context=r:n.pendingContext=r,n=ro(t),n.payload={element:a},o=o===void 0?null:o,o!==null&&(n.callback=o),a=no(e,n,t),a!==null&&(Ea(a,e,t),wu(a,e,t))}function jC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ay(e,t){jC(e,t),(e=e.alternate)&&jC(e,t)}function AL(e){if(e.tag===13||e.tag===31){var t=ci(e,67108864);t!==null&&Ea(t,e,67108864),Ay(e,67108864)}}function BC(e){if(e.tag===13||e.tag===31){var t=Va();t=Fv(t);var a=ci(e,t);a!==null&&Ea(a,e,t),Ay(e,t)}}var qf=!0;function jP(e,t,a,n){var r=he.T;he.T=null;var o=qe.p;try{qe.p=2,Ey(e,t,a,n)}finally{qe.p=o,he.T=r}}function BP(e,t,a,n){var r=he.T;he.T=null;var o=qe.p;try{qe.p=8,Ey(e,t,a,n)}finally{qe.p=o,he.T=r}}function Ey(e,t,a,n){if(qf){var r=Ov(n);if(r===null)Ug(e,t,n,Zf,a),qC(e,n);else if(ZP(r,e,t,a,n))n.stopPropagation();else if(qC(e,n),t&4&&-1<qP.indexOf(e)){for(;r!==null;){var o=$l(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var i=Wo(o.pendingLanes);if(i!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-Ha(i);l.entanglements[1]|=s,i&=~s}qr(o),(Be&6)===0&&(Df=qa()+500,ec(0,!1))}}break;case 31:case 13:l=ci(o,2),l!==null&&Ea(l,o,2),rp(),Ay(o,2)}if(o=Ov(n),o===null&&Ug(e,t,n,Zf,a),o===r)break;r=o}r!==null&&n.stopPropagation()}else Ug(e,t,n,null,a)}}function Ov(e){return e=Zv(e),$y(e)}var Zf=null;function $y(e){if(Zf=null,e=al(e),e!==null){var t=Hu(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=JC(t),e!==null)return e;e=null}else if(a===31){if(e=XC(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zf=e,null}function EL(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ER()){case e1:return 2;case t1:return 8;case xf:case $R:return 32;case a1:return 268435456;default:return 32}default:return 32}}var Rv=!1,lo=null,so=null,uo=null,qu=new Map,Zu=new Map,Jn=[],qP="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".split(" ");function qC(e,t){switch(e){case"focusin":case"focusout":lo=null;break;case"dragenter":case"dragleave":so=null;break;case"mouseover":case"mouseout":uo=null;break;case"pointerover":case"pointerout":qu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zu.delete(t.pointerId)}}function du(e,t,a,n,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:o,targetContainers:[r]},t!==null&&(t=$l(t),t!==null&&AL(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function ZP(e,t,a,n,r){switch(t){case"focusin":return lo=du(lo,e,t,a,n,r),!0;case"dragenter":return so=du(so,e,t,a,n,r),!0;case"mouseover":return uo=du(uo,e,t,a,n,r),!0;case"pointerover":var o=r.pointerId;return qu.set(o,du(qu.get(o)||null,e,t,a,n,r)),!0;case"gotpointercapture":return o=r.pointerId,Zu.set(o,du(Zu.get(o)||null,e,t,a,n,r)),!0}return!1}function $L(e){var t=al(e.target);if(t!==null){var a=Hu(t);if(a!==null){if(t=a.tag,t===13){if(t=JC(a),t!==null){e.blockedOn=t,C0(e.priority,function(){BC(a)});return}}else if(t===31){if(t=XC(a),t!==null){e.blockedOn=t,C0(e.priority,function(){BC(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ov(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);ev=n,a.target.dispatchEvent(n),ev=null}else return t=$l(a),t!==null&&AL(t),e.blockedOn=a,!1;t.shift()}return!0}function ZC(e,t,a){hf(e)&&a.delete(t)}function HP(){Rv=!1,lo!==null&&hf(lo)&&(lo=null),so!==null&&hf(so)&&(so=null),uo!==null&&hf(uo)&&(uo=null),qu.forEach(ZC),Zu.forEach(ZC)}function Yd(e,t){e.blockedOn===t&&(e.blockedOn=null,Rv||(Rv=!0,qt.unstable_scheduleCallback(qt.unstable_NormalPriority,HP)))}var Qd=null;function HC(e){Qd!==e&&(Qd=e,qt.unstable_scheduleCallback(qt.unstable_NormalPriority,function(){Qd===e&&(Qd=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if($y(n||a)===null)continue;break}var o=$l(a);o!==null&&(e.splice(t,3),t-=3,gv(o,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function Al(e){function t(s){return Yd(s,e)}lo!==null&&Yd(lo,e),so!==null&&Yd(so,e),uo!==null&&Yd(uo,e),qu.forEach(t),Zu.forEach(t);for(var a=0;a<Jn.length;a++){var n=Jn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Jn.length&&(a=Jn[0],a.blockedOn===null);)$L(a),a.blockedOn===null&&Jn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],o=a[n+1],i=r[$a]||null;if(typeof o=="function")i||HC(a);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(r=o,i=o[$a]||null)l=i.formAction;else if($y(r)!==null)continue}else l=i.action;typeof l=="function"?a[n+1]=l:(a.splice(n,3),n-=3),HC(a)}}}function ML(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(i){return r=i})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function My(e){this._internalRoot=e}ip.prototype.render=My.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var a=t.current,n=Va();LL(a,n,e,t,null,null)};ip.prototype.unmount=My.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;LL(e.current,2,null,e,null,null),rp(),t[El]=null}};function ip(e){this._internalRoot=e}ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=l1();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Jn.length&&t!==0&&t<Jn[a].priority;a++);Jn.splice(a,0,e),a===0&&$L(e)}};var VC=GC.version;if(VC!=="19.2.4")throw Error(j(527,VC,"19.2.4"));qe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=_R(t),e=e!==null?KC(e):null,e=e===null?null:e.stateNode,e};var VP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(fu=__REACT_DEVTOOLS_GLOBAL_HOOK__,!fu.isDisabled&&fu.supportsFiber))try{Vu=fu.inject(VP),Za=fu}catch{}var fu;lp.createRoot=function(e,t){if(!WC(e))throw Error(j(299));var a=!1,n="",r=_T,o=IT,i=kT;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=CL(e,1,!1,null,null,a,n,null,r,o,i,ML),e[El]=t.current,Cy(e),new My(t)};lp.hydrateRoot=function(e,t,a){if(!WC(e))throw Error(j(299));var n=!1,r="",o=_T,i=IT,l=kT,s=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError),a.formState!==void 0&&(s=a.formState)),t=CL(e,1,!0,t,a??null,n,r,s,o,i,l,ML),t.context=TL(null),a=t.current,n=Va(),n=Fv(n),r=ro(n),r.callback=null,no(a,r,n),a=n,t.current.lanes=a,Wu(t,a),qr(t),e[El]=t.current,Cy(e),new ip(t)};lp.version="19.2.4"});var RL=ea((n7,OL)=>{"use strict";function zL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zL)}catch(e){console.error(e)}}zL(),OL.exports=DL()});var SM=ea((IX,bM)=>{"use strict";function kB(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let a,n=0;return function(...o){clearTimeout(a);let i=Date.now(),l=i-n,s=t-l;s<=0?(n=i,e.apply(this,o)):a=setTimeout(()=>{n=Date.now(),e.apply(this,o)},s)}}bM.exports=kB});var UM=ea(ih=>{"use strict";var l5=Symbol.for("react.transitional.element"),s5=Symbol.for("react.fragment");function NM(e,t,a){var n=null;if(a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:l5,type:e,key:n,ref:t!==void 0?t:null,props:a}}ih.Fragment=s5;ih.jsx=NM;ih.jsxs=NM});var xe=ea((qX,FM)=>{"use strict";FM.exports=UM()});var sD=ea((_Y,lD)=>{"use strict";var rD=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,x5=/\n/g,b5=/^\s*/,S5=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,w5=/^:\s*/,_5=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I5=/^[;\s]*/,k5=/^\s+|\s+$/g,C5=`
|
|
11
|
+
`,nD="/",oD="*",Ei="",T5="comment",L5="declaration";function A5(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var a=1,n=1;function r(m){var w=m.match(x5);w&&(a+=w.length);var C=m.lastIndexOf(C5);n=~C?m.length-C:n+m.length}function o(){var m={line:a,column:n};return function(w){return w.position=new i(m),u(),w}}function i(m){this.start=m,this.end={line:a,column:n},this.source=t.source}i.prototype.content=e;function l(m){var w=new Error(t.source+":"+a+":"+n+": "+m);if(w.reason=m,w.filename=t.source,w.line=a,w.column=n,w.source=e,!t.silent)throw w}function s(m){var w=m.exec(e);if(w){var C=w[0];return r(C),e=e.slice(C.length),w}}function u(){s(b5)}function c(m){var w;for(m=m||[];w=d();)w!==!1&&m.push(w);return m}function d(){var m=o();if(!(nD!=e.charAt(0)||oD!=e.charAt(1))){for(var w=2;Ei!=e.charAt(w)&&(oD!=e.charAt(w)||nD!=e.charAt(w+1));)++w;if(w+=2,Ei===e.charAt(w-1))return l("End of comment missing");var C=e.slice(2,w-2);return n+=2,r(C),e=e.slice(w),n+=2,m({type:T5,comment:C})}}function p(){var m=o(),w=s(S5);if(w){if(d(),!s(w5))return l("property missing ':'");var C=s(_5),g=m({type:L5,property:iD(w[0].replace(rD,Ei)),value:C?iD(C[0].replace(rD,Ei)):Ei});return s(I5),g}}function f(){var m=[];c(m);for(var w;w=p();)w!==!1&&(m.push(w),c(m));return m}return u(),f()}function iD(e){return e?e.replace(k5,Ei):Ei}lD.exports=A5});var uD=ea(md=>{"use strict";var E5=md&&md.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(md,"__esModule",{value:!0});md.default=M5;var $5=E5(sD());function M5(e,t){let a=null;if(!e||typeof e!="string")return a;let n=(0,$5.default)(e),r=typeof t=="function";return n.forEach(o=>{if(o.type!=="declaration")return;let{property:i,value:l}=o;r?t(i,l,o):l&&(a=a||{},a[i]=l)}),a}});var dD=ea(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.camelCase=void 0;var D5=/^--[a-zA-Z0-9_-]+$/,z5=/-([a-z])/g,O5=/^[^-]+$/,R5=/^-(webkit|moz|ms|o|khtml)-/,P5=/^-(ms)-/,N5=function(e){return!e||O5.test(e)||D5.test(e)},U5=function(e,t){return t.toUpperCase()},cD=function(e,t){return"".concat(t,"-")},F5=function(e,t){return t===void 0&&(t={}),N5(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(P5,cD):e=e.replace(R5,cD),e.replace(z5,U5))};ph.camelCase=F5});var pD=ea((yI,fD)=>{"use strict";var j5=yI&&yI.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},B5=j5(uD()),q5=dD();function vI(e,t){var a={};return!e||typeof e!="string"||(0,B5.default)(e,function(n,r){n&&r&&(a[(0,q5.camelCase)(n,t)]=r)}),a}vI.default=vI;fD.exports=vI});var Pz=ea((Qre,Rz)=>{"use strict";var Ph=Object.prototype.hasOwnProperty,Oz=Object.prototype.toString,Az=Object.defineProperty,Ez=Object.getOwnPropertyDescriptor,$z=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Oz.call(t)==="[object Array]"},Mz=function(t){if(!t||Oz.call(t)!=="[object Object]")return!1;var a=Ph.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ph.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!n)return!1;var r;for(r in t);return typeof r>"u"||Ph.call(t,r)},Dz=function(t,a){Az&&a.name==="__proto__"?Az(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},zz=function(t,a){if(a==="__proto__")if(Ph.call(t,a)){if(Ez)return Ez(t,a).value}else return;return t[a]};Rz.exports=function e(){var t,a,n,r,o,i,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(a in t)n=zz(l,a),r=zz(t,a),l!==r&&(c&&r&&(Mz(r)||(o=$z(r)))?(o?(o=!1,i=n&&$z(n)?n:[]):i=n&&Mz(n)?n:{},Dz(l,{name:a,newValue:e(c,i,r)})):typeof r<"u"&&Dz(l,{name:a,newValue:r}));return l}});var BO=ea((FO,jO)=>{"use strict";(function(e){var t;typeof FO=="object"?jO.exports=e():typeof define=="function"&&define.amd?define(e):(typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"&&(t=self),t.objectHash=e())})(function(){return(function e(t,a,n){function r(l,s){if(!a[l]){if(!t[l]){var u=typeof tu=="function"&&tu;if(!s&&u)return u(l,!0);if(o)return o(l,!0);throw new Error("Cannot find module '"+l+"'")}s=a[l]={exports:{}},t[l][0].call(s.exports,function(c){var d=t[l][1][c];return r(d||c)},s,s.exports,e,t,a,n)}return a[l].exports}for(var o=typeof tu=="function"&&tu,i=0;i<n.length;i++)r(n[i]);return r})({1:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){"use strict";var p=e("crypto");function f(b,L){L=C(b,L);var y;return(y=L.algorithm!=="passthrough"?p.createHash(L.algorithm):new h).write===void 0&&(y.write=y.update,y.end=y.update),x(L,y).dispatch(b),y.update||y.end(""),y.digest?y.digest(L.encoding==="buffer"?void 0:L.encoding):(b=y.read(),L.encoding!=="buffer"?b.toString(L.encoding):b)}(a=t.exports=f).sha1=function(b){return f(b)},a.keys=function(b){return f(b,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},a.MD5=function(b){return f(b,{algorithm:"md5",encoding:"hex"})},a.keysMD5=function(b){return f(b,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var m=p.getHashes?p.getHashes().slice():["sha1","md5"],w=(m.push("passthrough"),["buffer","hex","binary","base64"]);function C(b,L){var y={};if(y.algorithm=(L=L||{}).algorithm||"sha1",y.encoding=L.encoding||"hex",y.excludeValues=!!L.excludeValues,y.algorithm=y.algorithm.toLowerCase(),y.encoding=y.encoding.toLowerCase(),y.ignoreUnknown=L.ignoreUnknown===!0,y.respectType=L.respectType!==!1,y.respectFunctionNames=L.respectFunctionNames!==!1,y.respectFunctionProperties=L.respectFunctionProperties!==!1,y.unorderedArrays=L.unorderedArrays===!0,y.unorderedSets=L.unorderedSets!==!1,y.unorderedObjects=L.unorderedObjects!==!1,y.replacer=L.replacer||void 0,y.excludeKeys=L.excludeKeys||void 0,b===void 0)throw new Error("Object argument required.");for(var _=0;_<m.length;++_)m[_].toLowerCase()===y.algorithm.toLowerCase()&&(y.algorithm=m[_]);if(m.indexOf(y.algorithm)===-1)throw new Error('Algorithm "'+y.algorithm+'" not supported. supported values: '+m.join(", "));if(w.indexOf(y.encoding)===-1&&y.algorithm!=="passthrough")throw new Error('Encoding "'+y.encoding+'" not supported. supported values: '+w.join(", "));return y}function g(b){if(typeof b=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(b))!=null}function x(b,L,y){y=y||[];function _(S){return L.update?L.update(S,"utf8"):L.write(S,"utf8")}return{dispatch:function(S){return this["_"+((S=b.replacer?b.replacer(S):S)===null?"null":typeof S)](S)},_object:function(S){var T,I=Object.prototype.toString.call(S),q=/\[object (.*)\]/i.exec(I);if(q=(q=q?q[1]:"unknown:["+I+"]").toLowerCase(),0<=(I=y.indexOf(S)))return this.dispatch("[CIRCULAR:"+I+"]");if(y.push(S),o!==void 0&&o.isBuffer&&o.isBuffer(S))return _("buffer:"),_(S);if(q==="object"||q==="function"||q==="asyncfunction")return I=Object.keys(S),b.unorderedObjects&&(I=I.sort()),b.respectType===!1||g(S)||I.splice(0,0,"prototype","__proto__","constructor"),b.excludeKeys&&(I=I.filter(function(O){return!b.excludeKeys(O)})),_("object:"+I.length+":"),T=this,I.forEach(function(O){T.dispatch(O),_(":"),b.excludeValues||T.dispatch(S[O]),_(",")});if(!this["_"+q]){if(b.ignoreUnknown)return _("["+q+"]");throw new Error('Unknown object type "'+q+'"')}this["_"+q](S)},_array:function(S,O){O=O!==void 0?O:b.unorderedArrays!==!1;var I=this;if(_("array:"+S.length+":"),!O||S.length<=1)return S.forEach(function(F){return I.dispatch(F)});var q=[],O=S.map(function(F){var P=new h,B=y.slice();return x(b,P,B).dispatch(F),q=q.concat(B.slice(y.length)),P.read().toString()});return y=y.concat(q),O.sort(),this._array(O,!1)},_date:function(S){return _("date:"+S.toJSON())},_symbol:function(S){return _("symbol:"+S.toString())},_error:function(S){return _("error:"+S.toString())},_boolean:function(S){return _("bool:"+S.toString())},_string:function(S){_("string:"+S.length+":"),_(S.toString())},_function:function(S){_("fn:"),g(S)?this.dispatch("[native]"):this.dispatch(S.toString()),b.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(S.name)),b.respectFunctionProperties&&this._object(S)},_number:function(S){return _("number:"+S.toString())},_xml:function(S){return _("xml:"+S.toString())},_null:function(){return _("Null")},_undefined:function(){return _("Undefined")},_regexp:function(S){return _("regex:"+S.toString())},_uint8array:function(S){return _("uint8array:"),this.dispatch(Array.prototype.slice.call(S))},_uint8clampedarray:function(S){return _("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(S))},_int8array:function(S){return _("int8array:"),this.dispatch(Array.prototype.slice.call(S))},_uint16array:function(S){return _("uint16array:"),this.dispatch(Array.prototype.slice.call(S))},_int16array:function(S){return _("int16array:"),this.dispatch(Array.prototype.slice.call(S))},_uint32array:function(S){return _("uint32array:"),this.dispatch(Array.prototype.slice.call(S))},_int32array:function(S){return _("int32array:"),this.dispatch(Array.prototype.slice.call(S))},_float32array:function(S){return _("float32array:"),this.dispatch(Array.prototype.slice.call(S))},_float64array:function(S){return _("float64array:"),this.dispatch(Array.prototype.slice.call(S))},_arraybuffer:function(S){return _("arraybuffer:"),this.dispatch(new Uint8Array(S))},_url:function(S){return _("url:"+S.toString())},_map:function(S){return _("map:"),S=Array.from(S),this._array(S,b.unorderedSets!==!1)},_set:function(S){return _("set:"),S=Array.from(S),this._array(S,b.unorderedSets!==!1)},_file:function(S){return _("file:"),this.dispatch([S.name,S.size,S.type,S.lastModfied])},_blob:function(){if(b.ignoreUnknown)return _("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
12
|
+
(see https://github.com/puleos/object-hash/issues/26)
|
|
13
|
+
Use "options.replacer" or "options.ignoreUnknown"
|
|
14
|
+
`)},_domwindow:function(){return _("domwindow")},_bigint:function(S){return _("bigint:"+S.toString())},_process:function(){return _("process")},_timer:function(){return _("timer")},_pipe:function(){return _("pipe")},_tcp:function(){return _("tcp")},_udp:function(){return _("udp")},_tty:function(){return _("tty")},_statwatcher:function(){return _("statwatcher")},_securecontext:function(){return _("securecontext")},_connection:function(){return _("connection")},_zlib:function(){return _("zlib")},_context:function(){return _("context")},_nodescript:function(){return _("nodescript")},_httpparser:function(){return _("httpparser")},_dataview:function(){return _("dataview")},_signal:function(){return _("signal")},_fsevent:function(){return _("fsevent")},_tlswrap:function(){return _("tlswrap")}}}function h(){return{buf:"",write:function(b){this.buf+=b},end:function(b){this.buf+=b},read:function(){return this.buf}}}a.writeToStream=function(b,L,y){return y===void 0&&(y=L,L={}),x(L=C(b,L),y).dispatch(b)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){(function(p){"use strict";var f=typeof Uint8Array<"u"?Uint8Array:Array,m=43,w=47,C=48,g=97,x=65,h=45,b=95;function L(y){return y=y.charCodeAt(0),y===m||y===h?62:y===w||y===b?63:y<C?-1:y<C+10?y-C+26+26:y<x+26?y-x:y<g+26?y-g+26:void 0}p.toByteArray=function(y){var _,S;if(0<y.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var T=y.length,T=y.charAt(T-2)==="="?2:y.charAt(T-1)==="="?1:0,I=new f(3*y.length/4-T),q=0<T?y.length-4:y.length,O=0;function F(P){I[O++]=P}for(_=0;_<q;_+=4,0)F((16711680&(S=L(y.charAt(_))<<18|L(y.charAt(_+1))<<12|L(y.charAt(_+2))<<6|L(y.charAt(_+3))))>>16),F((65280&S)>>8),F(255&S);return T==2?F(255&(S=L(y.charAt(_))<<2|L(y.charAt(_+1))>>4)):T==1&&(F((S=L(y.charAt(_))<<10|L(y.charAt(_+1))<<4|L(y.charAt(_+2))>>2)>>8&255),F(255&S)),I},p.fromByteArray=function(y){var _,S,T,I,q=y.length%3,O="";function F(P){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P)}for(_=0,T=y.length-q;_<T;_+=3)S=(y[_]<<16)+(y[_+1]<<8)+y[_+2],O+=F((I=S)>>18&63)+F(I>>12&63)+F(I>>6&63)+F(63&I);switch(q){case 1:O=(O+=F((S=y[y.length-1])>>2))+F(S<<4&63)+"==";break;case 2:O=(O=(O+=F((S=(y[y.length-2]<<8)+y[y.length-1])>>10))+F(S>>4&63))+F(S<<2&63)+"="}return O}})(a===void 0?this.base64js={}:a)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,a){(function(n,r,m,i,l,s,u,c,d){var p=e("base64-js"),f=e("ieee754");function m(k,A,M){if(!(this instanceof m))return new m(k,A,M);var R,N,Q,_e,He=typeof k;if(A==="base64"&&He=="string")for(k=(_e=k).trim?_e.trim():_e.replace(/^\s+|\s+$/g,"");k.length%4!=0;)k+="=";if(He=="number")R=K(k);else if(He=="string")R=m.byteLength(k,A);else{if(He!="object")throw new Error("First argument needs to be a number, array or string.");R=K(k.length)}if(m._useTypedArrays?N=m._augment(new Uint8Array(R)):((N=this).length=R,N._isBuffer=!0),m._useTypedArrays&&typeof k.byteLength=="number")N._set(k);else if(se(_e=k)||m.isBuffer(_e)||_e&&typeof _e=="object"&&typeof _e.length=="number")for(Q=0;Q<R;Q++)m.isBuffer(k)?N[Q]=k.readUInt8(Q):N[Q]=k[Q];else if(He=="string")N.write(k,0,A);else if(He=="number"&&!m._useTypedArrays&&!M)for(Q=0;Q<R;Q++)N[Q]=0;return N}function w(k,A,M,R){return m._charsWritten=Me((function(N){for(var Q=[],_e=0;_e<N.length;_e++)Q.push(255&N.charCodeAt(_e));return Q})(A),k,M,R)}function C(k,A,M,R){return m._charsWritten=Me((function(N){for(var Q,_e,He=[],St=0;St<N.length;St++)_e=N.charCodeAt(St),Q=_e>>8,_e=_e%256,He.push(_e),He.push(Q);return He})(A),k,M,R)}function g(k,A,M){var R="";M=Math.min(k.length,M);for(var N=A;N<M;N++)R+=String.fromCharCode(k[N]);return R}function x(k,A,M,Q){Q||(Y(typeof M=="boolean","missing or invalid endian"),Y(A!=null,"missing offset"),Y(A+1<k.length,"Trying to read beyond buffer length"));var N,Q=k.length;if(!(Q<=A))return M?(N=k[A],A+1<Q&&(N|=k[A+1]<<8)):(N=k[A]<<8,A+1<Q&&(N|=k[A+1])),N}function h(k,A,M,Q){Q||(Y(typeof M=="boolean","missing or invalid endian"),Y(A!=null,"missing offset"),Y(A+3<k.length,"Trying to read beyond buffer length"));var N,Q=k.length;if(!(Q<=A))return M?(A+2<Q&&(N=k[A+2]<<16),A+1<Q&&(N|=k[A+1]<<8),N|=k[A],A+3<Q&&(N+=k[A+3]<<24>>>0)):(A+1<Q&&(N=k[A+1]<<16),A+2<Q&&(N|=k[A+2]<<8),A+3<Q&&(N|=k[A+3]),N+=k[A]<<24>>>0),N}function b(k,A,M,R){if(R||(Y(typeof M=="boolean","missing or invalid endian"),Y(A!=null,"missing offset"),Y(A+1<k.length,"Trying to read beyond buffer length")),!(k.length<=A))return R=x(k,A,M,!0),32768&R?-1*(65535-R+1):R}function L(k,A,M,R){if(R||(Y(typeof M=="boolean","missing or invalid endian"),Y(A!=null,"missing offset"),Y(A+3<k.length,"Trying to read beyond buffer length")),!(k.length<=A))return R=h(k,A,M,!0),2147483648&R?-1*(4294967295-R+1):R}function y(k,A,M,R){return R||(Y(typeof M=="boolean","missing or invalid endian"),Y(A+3<k.length,"Trying to read beyond buffer length")),f.read(k,A,M,23,4)}function _(k,A,M,R){return R||(Y(typeof M=="boolean","missing or invalid endian"),Y(A+7<k.length,"Trying to read beyond buffer length")),f.read(k,A,M,52,8)}function S(k,A,M,R,N){if(N||(Y(A!=null,"missing value"),Y(typeof R=="boolean","missing or invalid endian"),Y(M!=null,"missing offset"),Y(M+1<k.length,"trying to write beyond buffer length"),E(A,65535)),N=k.length,!(N<=M))for(var Q=0,_e=Math.min(N-M,2);Q<_e;Q++)k[M+Q]=(A&255<<8*(R?Q:1-Q))>>>8*(R?Q:1-Q)}function T(k,A,M,R,N){if(N||(Y(A!=null,"missing value"),Y(typeof R=="boolean","missing or invalid endian"),Y(M!=null,"missing offset"),Y(M+3<k.length,"trying to write beyond buffer length"),E(A,4294967295)),N=k.length,!(N<=M))for(var Q=0,_e=Math.min(N-M,4);Q<_e;Q++)k[M+Q]=A>>>8*(R?Q:3-Q)&255}function I(k,A,M,R,N){N||(Y(A!=null,"missing value"),Y(typeof R=="boolean","missing or invalid endian"),Y(M!=null,"missing offset"),Y(M+1<k.length,"Trying to write beyond buffer length"),ge(A,32767,-32768)),k.length<=M||S(k,0<=A?A:65535+A+1,M,R,N)}function q(k,A,M,R,N){N||(Y(A!=null,"missing value"),Y(typeof R=="boolean","missing or invalid endian"),Y(M!=null,"missing offset"),Y(M+3<k.length,"Trying to write beyond buffer length"),ge(A,2147483647,-2147483648)),k.length<=M||T(k,0<=A?A:4294967295+A+1,M,R,N)}function O(k,A,M,R,N){N||(Y(A!=null,"missing value"),Y(typeof R=="boolean","missing or invalid endian"),Y(M!=null,"missing offset"),Y(M+3<k.length,"Trying to write beyond buffer length"),bt(A,34028234663852886e22,-34028234663852886e22)),k.length<=M||f.write(k,A,M,R,23,4)}function F(k,A,M,R,N){N||(Y(A!=null,"missing value"),Y(typeof R=="boolean","missing or invalid endian"),Y(M!=null,"missing offset"),Y(M+7<k.length,"Trying to write beyond buffer length"),bt(A,17976931348623157e292,-17976931348623157e292)),k.length<=M||f.write(k,A,M,R,52,8)}a.Buffer=m,a.SlowBuffer=m,a.INSPECT_MAX_BYTES=50,m.poolSize=8192,m._useTypedArrays=(function(){try{var k=new ArrayBuffer(0),A=new Uint8Array(k);return A.foo=function(){return 42},A.foo()===42&&typeof A.subarray=="function"}catch{return!1}})(),m.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.isBuffer=function(k){return!(k==null||!k._isBuffer)},m.byteLength=function(k,A){var M;switch(k+="",A||"utf8"){case"hex":M=k.length/2;break;case"utf8":case"utf-8":M=Le(k).length;break;case"ascii":case"binary":case"raw":M=k.length;break;case"base64":M=$(k).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":M=2*k.length;break;default:throw new Error("Unknown encoding")}return M},m.concat=function(k,A){if(Y(se(k),`Usage: Buffer.concat(list, [totalLength])
|
|
15
|
+
list should be an Array.`),k.length===0)return new m(0);if(k.length===1)return k[0];if(typeof A!="number")for(N=A=0;N<k.length;N++)A+=k[N].length;for(var M=new m(A),R=0,N=0;N<k.length;N++){var Q=k[N];Q.copy(M,R),R+=Q.length}return M},m.prototype.write=function(k,A,M,R){isFinite(A)?isFinite(M)||(R=M,M=void 0):(St=R,R=A,A=M,M=St),A=Number(A)||0;var N,Q,_e,He,St=this.length-A;switch((!M||St<(M=Number(M)))&&(M=St),R=String(R||"utf8").toLowerCase()){case"hex":N=(function(la,jt,Gt,wt){Gt=Number(Gt)||0;var it=la.length-Gt;(!wt||it<(wt=Number(wt)))&&(wt=it),Y((it=jt.length)%2==0,"Invalid hex string"),it/2<wt&&(wt=it/2);for(var Or=0;Or<wt;Or++){var qi=parseInt(jt.substr(2*Or,2),16);Y(!isNaN(qi),"Invalid hex string"),la[Gt+Or]=qi}return m._charsWritten=2*Or,Or})(this,k,A,M);break;case"utf8":case"utf-8":Q=this,_e=A,He=M,N=m._charsWritten=Me(Le(k),Q,_e,He);break;case"ascii":case"binary":N=w(this,k,A,M);break;case"base64":Q=this,_e=A,He=M,N=m._charsWritten=Me($(k),Q,_e,He);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":N=C(this,k,A,M);break;default:throw new Error("Unknown encoding")}return N},m.prototype.toString=function(k,A,M){var R,N,Q,_e,He=this;if(k=String(k||"utf8").toLowerCase(),A=Number(A)||0,(M=M!==void 0?Number(M):He.length)===A)return"";switch(k){case"hex":R=(function(St,la,jt){var Gt=St.length;(!la||la<0)&&(la=0),(!jt||jt<0||Gt<jt)&&(jt=Gt);for(var wt="",it=la;it<jt;it++)wt+=ue(St[it]);return wt})(He,A,M);break;case"utf8":case"utf-8":R=(function(St,la,jt){var Gt="",wt="";jt=Math.min(St.length,jt);for(var it=la;it<jt;it++)St[it]<=127?(Gt+=at(wt)+String.fromCharCode(St[it]),wt=""):wt+="%"+St[it].toString(16);return Gt+at(wt)})(He,A,M);break;case"ascii":case"binary":R=g(He,A,M);break;case"base64":N=He,_e=M,R=(Q=A)===0&&_e===N.length?p.fromByteArray(N):p.fromByteArray(N.slice(Q,_e));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":R=(function(St,la,jt){for(var Gt=St.slice(la,jt),wt="",it=0;it<Gt.length;it+=2)wt+=String.fromCharCode(Gt[it]+256*Gt[it+1]);return wt})(He,A,M);break;default:throw new Error("Unknown encoding")}return R},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},m.prototype.copy=function(k,A,M,R){if(A=A||0,(R=R||R===0?R:this.length)!==(M=M||0)&&k.length!==0&&this.length!==0){Y(M<=R,"sourceEnd < sourceStart"),Y(0<=A&&A<k.length,"targetStart out of bounds"),Y(0<=M&&M<this.length,"sourceStart out of bounds"),Y(0<=R&&R<=this.length,"sourceEnd out of bounds"),R>this.length&&(R=this.length);var N=(R=k.length-A<R-M?k.length-A+M:R)-M;if(N<100||!m._useTypedArrays)for(var Q=0;Q<N;Q++)k[Q+A]=this[Q+M];else k._set(this.subarray(M,M+N),A)}},m.prototype.slice=function(k,A){var M=this.length;if(k=B(k,M,0),A=B(A,M,M),m._useTypedArrays)return m._augment(this.subarray(k,A));for(var R=A-k,N=new m(R,void 0,!0),Q=0;Q<R;Q++)N[Q]=this[Q+k];return N},m.prototype.get=function(k){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(k)},m.prototype.set=function(k,A){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(k,A)},m.prototype.readUInt8=function(k,A){if(A||(Y(k!=null,"missing offset"),Y(k<this.length,"Trying to read beyond buffer length")),!(k>=this.length))return this[k]},m.prototype.readUInt16LE=function(k,A){return x(this,k,!0,A)},m.prototype.readUInt16BE=function(k,A){return x(this,k,!1,A)},m.prototype.readUInt32LE=function(k,A){return h(this,k,!0,A)},m.prototype.readUInt32BE=function(k,A){return h(this,k,!1,A)},m.prototype.readInt8=function(k,A){if(A||(Y(k!=null,"missing offset"),Y(k<this.length,"Trying to read beyond buffer length")),!(k>=this.length))return 128&this[k]?-1*(255-this[k]+1):this[k]},m.prototype.readInt16LE=function(k,A){return b(this,k,!0,A)},m.prototype.readInt16BE=function(k,A){return b(this,k,!1,A)},m.prototype.readInt32LE=function(k,A){return L(this,k,!0,A)},m.prototype.readInt32BE=function(k,A){return L(this,k,!1,A)},m.prototype.readFloatLE=function(k,A){return y(this,k,!0,A)},m.prototype.readFloatBE=function(k,A){return y(this,k,!1,A)},m.prototype.readDoubleLE=function(k,A){return _(this,k,!0,A)},m.prototype.readDoubleBE=function(k,A){return _(this,k,!1,A)},m.prototype.writeUInt8=function(k,A,M){M||(Y(k!=null,"missing value"),Y(A!=null,"missing offset"),Y(A<this.length,"trying to write beyond buffer length"),E(k,255)),A>=this.length||(this[A]=k)},m.prototype.writeUInt16LE=function(k,A,M){S(this,k,A,!0,M)},m.prototype.writeUInt16BE=function(k,A,M){S(this,k,A,!1,M)},m.prototype.writeUInt32LE=function(k,A,M){T(this,k,A,!0,M)},m.prototype.writeUInt32BE=function(k,A,M){T(this,k,A,!1,M)},m.prototype.writeInt8=function(k,A,M){M||(Y(k!=null,"missing value"),Y(A!=null,"missing offset"),Y(A<this.length,"Trying to write beyond buffer length"),ge(k,127,-128)),A>=this.length||(0<=k?this.writeUInt8(k,A,M):this.writeUInt8(255+k+1,A,M))},m.prototype.writeInt16LE=function(k,A,M){I(this,k,A,!0,M)},m.prototype.writeInt16BE=function(k,A,M){I(this,k,A,!1,M)},m.prototype.writeInt32LE=function(k,A,M){q(this,k,A,!0,M)},m.prototype.writeInt32BE=function(k,A,M){q(this,k,A,!1,M)},m.prototype.writeFloatLE=function(k,A,M){O(this,k,A,!0,M)},m.prototype.writeFloatBE=function(k,A,M){O(this,k,A,!1,M)},m.prototype.writeDoubleLE=function(k,A,M){F(this,k,A,!0,M)},m.prototype.writeDoubleBE=function(k,A,M){F(this,k,A,!1,M)},m.prototype.fill=function(k,A,M){if(A=A||0,M=M||this.length,Y(typeof(k=typeof(k=k||0)=="string"?k.charCodeAt(0):k)=="number"&&!isNaN(k),"value is not a number"),Y(A<=M,"end < start"),M!==A&&this.length!==0){Y(0<=A&&A<this.length,"start out of bounds"),Y(0<=M&&M<=this.length,"end out of bounds");for(var R=A;R<M;R++)this[R]=k}},m.prototype.inspect=function(){for(var k=[],A=this.length,M=0;M<A;M++)if(k[M]=ue(this[M]),M===a.INSPECT_MAX_BYTES){k[M+1]="...";break}return"<Buffer "+k.join(" ")+">"},m.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(m._useTypedArrays)return new m(this).buffer;for(var k=new Uint8Array(this.length),A=0,M=k.length;A<M;A+=1)k[A]=this[A];return k.buffer};var P=m.prototype;function B(k,A,M){return typeof k!="number"?M:A<=(k=~~k)?A:0<=k||0<=(k+=A)?k:0}function K(k){return(k=~~Math.ceil(+k))<0?0:k}function se(k){return(Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"})(k)}function ue(k){return k<16?"0"+k.toString(16):k.toString(16)}function Le(k){for(var A=[],M=0;M<k.length;M++){var R=k.charCodeAt(M);if(R<=127)A.push(k.charCodeAt(M));else for(var N=M,Q=(55296<=R&&R<=57343&&M++,encodeURIComponent(k.slice(N,M+1)).substr(1).split("%")),_e=0;_e<Q.length;_e++)A.push(parseInt(Q[_e],16))}return A}function $(k){return p.toByteArray(k)}function Me(k,A,M,R){for(var N=0;N<R&&!(N+M>=A.length||N>=k.length);N++)A[N+M]=k[N];return N}function at(k){try{return decodeURIComponent(k)}catch{return"\uFFFD"}}function E(k,A){Y(typeof k=="number","cannot write a non-number as a number"),Y(0<=k,"specified a negative value for writing an unsigned value"),Y(k<=A,"value is larger than maximum value for type"),Y(Math.floor(k)===k,"value has a fractional component")}function ge(k,A,M){Y(typeof k=="number","cannot write a non-number as a number"),Y(k<=A,"value larger than maximum allowed value"),Y(M<=k,"value smaller than minimum allowed value"),Y(Math.floor(k)===k,"value has a fractional component")}function bt(k,A,M){Y(typeof k=="number","cannot write a non-number as a number"),Y(k<=A,"value larger than maximum allowed value"),Y(M<=k,"value smaller than minimum allowed value")}function Y(k,A){if(!k)throw new Error(A||"Failed assertion")}m._augment=function(k){return k._isBuffer=!0,k._get=k.get,k._set=k.set,k.get=P.get,k.set=P.set,k.write=P.write,k.toString=P.toString,k.toLocaleString=P.toString,k.toJSON=P.toJSON,k.copy=P.copy,k.slice=P.slice,k.readUInt8=P.readUInt8,k.readUInt16LE=P.readUInt16LE,k.readUInt16BE=P.readUInt16BE,k.readUInt32LE=P.readUInt32LE,k.readUInt32BE=P.readUInt32BE,k.readInt8=P.readInt8,k.readInt16LE=P.readInt16LE,k.readInt16BE=P.readInt16BE,k.readInt32LE=P.readInt32LE,k.readInt32BE=P.readInt32BE,k.readFloatLE=P.readFloatLE,k.readFloatBE=P.readFloatBE,k.readDoubleLE=P.readDoubleLE,k.readDoubleBE=P.readDoubleBE,k.writeUInt8=P.writeUInt8,k.writeUInt16LE=P.writeUInt16LE,k.writeUInt16BE=P.writeUInt16BE,k.writeUInt32LE=P.writeUInt32LE,k.writeUInt32BE=P.writeUInt32BE,k.writeInt8=P.writeInt8,k.writeInt16LE=P.writeInt16LE,k.writeInt16BE=P.writeInt16BE,k.writeInt32LE=P.writeInt32LE,k.writeInt32BE=P.writeInt32BE,k.writeFloatLE=P.writeFloatLE,k.writeFloatBE=P.writeFloatBE,k.writeDoubleLE=P.writeDoubleLE,k.writeDoubleBE=P.writeDoubleBE,k.fill=P.fill,k.inspect=P.inspect,k.toArrayBuffer=P.toArrayBuffer,k}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,a){(function(n,r,p,i,l,s,u,c,d){var p=e("buffer").Buffer,f=4,m=new p(f);m.fill(0),t.exports={hash:function(w,C,g,x){for(var h=C((function(S,T){S.length%f!=0&&(I=S.length+(f-S.length%f),S=p.concat([S,m],I));for(var I,q=[],O=T?S.readInt32BE:S.readInt32LE,F=0;F<S.length;F+=f)q.push(O.call(S,F));return q})(w=p.isBuffer(w)?w:new p(w),x),8*w.length),C=x,b=new p(g),L=C?b.writeInt32BE:b.writeInt32LE,y=0;y<h.length;y++)L.call(b,h[y],4*y,!0);return b}}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,a){(function(n,r,p,i,l,s,u,c,d){var p=e("buffer").Buffer,f=e("./sha"),m=e("./sha256"),w=e("./rng"),C={sha1:f,sha256:m,md5:e("./md5")},g=64,x=new p(g);function h(S,T){var I=C[S=S||"sha1"],q=[];return I||b("algorithm:",S,"is not yet supported"),{update:function(O){return p.isBuffer(O)||(O=new p(O)),q.push(O),O.length,this},digest:function(O){var F=p.concat(q),F=T?(function(P,B,K){p.isBuffer(B)||(B=new p(B)),p.isBuffer(K)||(K=new p(K)),B.length>g?B=P(B):B.length<g&&(B=p.concat([B,x],g));for(var se=new p(g),ue=new p(g),Le=0;Le<g;Le++)se[Le]=54^B[Le],ue[Le]=92^B[Le];return K=P(p.concat([se,K])),P(p.concat([ue,K]))})(I,T,F):I(F);return q=null,O?F.toString(O):F}}}function b(){var S=[].slice.call(arguments).join(" ");throw new Error([S,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
16
|
+
`))}x.fill(0),a.createHash=function(S){return h(S)},a.createHmac=h,a.randomBytes=function(S,T){if(!T||!T.call)return new p(w(S));try{T.call(this,void 0,new p(w(S)))}catch(I){T(I)}};var L,y=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],_=function(S){a[S]=function(){b("sorry,",S,"is not implemented yet")}};for(L in y)_(y[L],L)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p=e("./helpers");function f(b,L){b[L>>5]|=128<<L%32,b[14+(L+64>>>9<<4)]=L;for(var y=1732584193,_=-271733879,S=-1732584194,T=271733878,I=0;I<b.length;I+=16){var q=y,O=_,F=S,P=T,y=w(y,_,S,T,b[I+0],7,-680876936),T=w(T,y,_,S,b[I+1],12,-389564586),S=w(S,T,y,_,b[I+2],17,606105819),_=w(_,S,T,y,b[I+3],22,-1044525330);y=w(y,_,S,T,b[I+4],7,-176418897),T=w(T,y,_,S,b[I+5],12,1200080426),S=w(S,T,y,_,b[I+6],17,-1473231341),_=w(_,S,T,y,b[I+7],22,-45705983),y=w(y,_,S,T,b[I+8],7,1770035416),T=w(T,y,_,S,b[I+9],12,-1958414417),S=w(S,T,y,_,b[I+10],17,-42063),_=w(_,S,T,y,b[I+11],22,-1990404162),y=w(y,_,S,T,b[I+12],7,1804603682),T=w(T,y,_,S,b[I+13],12,-40341101),S=w(S,T,y,_,b[I+14],17,-1502002290),y=C(y,_=w(_,S,T,y,b[I+15],22,1236535329),S,T,b[I+1],5,-165796510),T=C(T,y,_,S,b[I+6],9,-1069501632),S=C(S,T,y,_,b[I+11],14,643717713),_=C(_,S,T,y,b[I+0],20,-373897302),y=C(y,_,S,T,b[I+5],5,-701558691),T=C(T,y,_,S,b[I+10],9,38016083),S=C(S,T,y,_,b[I+15],14,-660478335),_=C(_,S,T,y,b[I+4],20,-405537848),y=C(y,_,S,T,b[I+9],5,568446438),T=C(T,y,_,S,b[I+14],9,-1019803690),S=C(S,T,y,_,b[I+3],14,-187363961),_=C(_,S,T,y,b[I+8],20,1163531501),y=C(y,_,S,T,b[I+13],5,-1444681467),T=C(T,y,_,S,b[I+2],9,-51403784),S=C(S,T,y,_,b[I+7],14,1735328473),y=g(y,_=C(_,S,T,y,b[I+12],20,-1926607734),S,T,b[I+5],4,-378558),T=g(T,y,_,S,b[I+8],11,-2022574463),S=g(S,T,y,_,b[I+11],16,1839030562),_=g(_,S,T,y,b[I+14],23,-35309556),y=g(y,_,S,T,b[I+1],4,-1530992060),T=g(T,y,_,S,b[I+4],11,1272893353),S=g(S,T,y,_,b[I+7],16,-155497632),_=g(_,S,T,y,b[I+10],23,-1094730640),y=g(y,_,S,T,b[I+13],4,681279174),T=g(T,y,_,S,b[I+0],11,-358537222),S=g(S,T,y,_,b[I+3],16,-722521979),_=g(_,S,T,y,b[I+6],23,76029189),y=g(y,_,S,T,b[I+9],4,-640364487),T=g(T,y,_,S,b[I+12],11,-421815835),S=g(S,T,y,_,b[I+15],16,530742520),y=x(y,_=g(_,S,T,y,b[I+2],23,-995338651),S,T,b[I+0],6,-198630844),T=x(T,y,_,S,b[I+7],10,1126891415),S=x(S,T,y,_,b[I+14],15,-1416354905),_=x(_,S,T,y,b[I+5],21,-57434055),y=x(y,_,S,T,b[I+12],6,1700485571),T=x(T,y,_,S,b[I+3],10,-1894986606),S=x(S,T,y,_,b[I+10],15,-1051523),_=x(_,S,T,y,b[I+1],21,-2054922799),y=x(y,_,S,T,b[I+8],6,1873313359),T=x(T,y,_,S,b[I+15],10,-30611744),S=x(S,T,y,_,b[I+6],15,-1560198380),_=x(_,S,T,y,b[I+13],21,1309151649),y=x(y,_,S,T,b[I+4],6,-145523070),T=x(T,y,_,S,b[I+11],10,-1120210379),S=x(S,T,y,_,b[I+2],15,718787259),_=x(_,S,T,y,b[I+9],21,-343485551),y=h(y,q),_=h(_,O),S=h(S,F),T=h(T,P)}return Array(y,_,S,T)}function m(b,L,y,_,S,T){return h((L=h(h(L,b),h(_,T)))<<S|L>>>32-S,y)}function w(b,L,y,_,S,T,I){return m(L&y|~L&_,b,L,S,T,I)}function C(b,L,y,_,S,T,I){return m(L&_|y&~_,b,L,S,T,I)}function g(b,L,y,_,S,T,I){return m(L^y^_,b,L,S,T,I)}function x(b,L,y,_,S,T,I){return m(y^(L|~_),b,L,S,T,I)}function h(b,L){var y=(65535&b)+(65535&L);return(b>>16)+(L>>16)+(y>>16)<<16|65535&y}t.exports=function(b){return p.hash(b,f,16)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p;t.exports=p||function(f){for(var m,w=new Array(f),C=0;C<f;C++)(3&C)==0&&(m=4294967296*Math.random()),w[C]=m>>>((3&C)<<3)&255;return w}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p=e("./helpers");function f(C,g){C[g>>5]|=128<<24-g%32,C[15+(g+64>>9<<4)]=g;for(var x,h,b,L=Array(80),y=1732584193,_=-271733879,S=-1732584194,T=271733878,I=-1009589776,q=0;q<C.length;q+=16){for(var O=y,F=_,P=S,B=T,K=I,se=0;se<80;se++){L[se]=se<16?C[q+se]:w(L[se-3]^L[se-8]^L[se-14]^L[se-16],1);var ue=m(m(w(y,5),(ue=_,h=S,b=T,(x=se)<20?ue&h|~ue&b:!(x<40)&&x<60?ue&h|ue&b|h&b:ue^h^b)),m(m(I,L[se]),(x=se)<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514)),I=T,T=S,S=w(_,30),_=y,y=ue}y=m(y,O),_=m(_,F),S=m(S,P),T=m(T,B),I=m(I,K)}return Array(y,_,S,T,I)}function m(C,g){var x=(65535&C)+(65535&g);return(C>>16)+(g>>16)+(x>>16)<<16|65535&x}function w(C,g){return C<<g|C>>>32-g}t.exports=function(C){return p.hash(C,f,20,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){function p(g,x){var h=(65535&g)+(65535&x);return(g>>16)+(x>>16)+(h>>16)<<16|65535&h}function f(g,x){var h,b=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),L=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),y=new Array(64);g[x>>5]|=128<<24-x%32,g[15+(x+64>>9<<4)]=x;for(var _,S,T=0;T<g.length;T+=16){for(var I=L[0],q=L[1],O=L[2],F=L[3],P=L[4],B=L[5],K=L[6],se=L[7],ue=0;ue<64;ue++)y[ue]=ue<16?g[ue+T]:p(p(p((S=y[ue-2],w(S,17)^w(S,19)^C(S,10)),y[ue-7]),(S=y[ue-15],w(S,7)^w(S,18)^C(S,3))),y[ue-16]),h=p(p(p(p(se,w(S=P,6)^w(S,11)^w(S,25)),P&B^~P&K),b[ue]),y[ue]),_=p(w(_=I,2)^w(_,13)^w(_,22),I&q^I&O^q&O),se=K,K=B,B=P,P=p(F,h),F=O,O=q,q=I,I=p(h,_);L[0]=p(I,L[0]),L[1]=p(q,L[1]),L[2]=p(O,L[2]),L[3]=p(F,L[3]),L[4]=p(P,L[4]),L[5]=p(B,L[5]),L[6]=p(K,L[6]),L[7]=p(se,L[7])}return L}var m=e("./helpers"),w=function(g,x){return g>>>x|g<<32-x},C=function(g,x){return g>>>x};t.exports=function(g){return m.hash(g,f,32,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){a.read=function(p,f,m,w,T){var g,x,h=8*T-w-1,b=(1<<h)-1,L=b>>1,y=-7,_=m?T-1:0,S=m?-1:1,T=p[f+_];for(_+=S,g=T&(1<<-y)-1,T>>=-y,y+=h;0<y;g=256*g+p[f+_],_+=S,y-=8);for(x=g&(1<<-y)-1,g>>=-y,y+=w;0<y;x=256*x+p[f+_],_+=S,y-=8);if(g===0)g=1-L;else{if(g===b)return x?NaN:1/0*(T?-1:1);x+=Math.pow(2,w),g-=L}return(T?-1:1)*x*Math.pow(2,g-w)},a.write=function(p,f,m,w,C,I){var x,h,b=8*I-C-1,L=(1<<b)-1,y=L>>1,_=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=w?0:I-1,T=w?1:-1,I=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(h=isNaN(f)?1:0,x=L):(x=Math.floor(Math.log(f)/Math.LN2),f*(w=Math.pow(2,-x))<1&&(x--,w*=2),2<=(f+=1<=x+y?_/w:_*Math.pow(2,1-y))*w&&(x++,w/=2),L<=x+y?(h=0,x=L):1<=x+y?(h=(f*w-1)*Math.pow(2,C),x+=y):(h=f*Math.pow(2,y-1)*Math.pow(2,C),x=0));8<=C;p[m+S]=255&h,S+=T,h/=256,C-=8);for(x=x<<C|h,b+=C;0<b;p[m+S]=255&x,S+=T,x/=256,b-=8);p[m+S-T]|=128*I}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p,f,m;function w(){}(n=t.exports={}).nextTick=(f=typeof window<"u"&&window.setImmediate,m=typeof window<"u"&&window.postMessage&&window.addEventListener,f?function(C){return window.setImmediate(C)}:m?(p=[],window.addEventListener("message",function(C){var g=C.source;g!==window&&g!==null||C.data!=="process-tick"||(C.stopPropagation(),0<p.length&&p.shift()())},!0),function(C){p.push(C),window.postMessage("process-tick","*")}):function(C){setTimeout(C,0)}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=w,n.addListener=w,n.once=w,n.off=w,n.removeListener=w,n.removeAllListeners=w,n.emit=w,n.binding=function(C){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(C){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var GZ={};function ha(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}ha(`:root[data-chat-widget],[data-chat-widget]{--chat-primary: #3b82f6;--chat-primary-text: #ffffff;--chat-primary-hover: #2563eb;--chat-primary-subtle: rgba(59, 130, 246, .1);--chat-background: #ffffff;--chat-background-secondary: #f9fafb;--chat-background-tertiary: #f3f4f6;--chat-border: #e5e7eb;--chat-border-light: #f3f4f6;--chat-text: #111827;--chat-text-secondary: #4b5563;--chat-text-muted: #6b7280;--chat-text-disabled: #9ca3af;--chat-success: #22c55e;--chat-success-bg: rgba(34, 197, 94, .1);--chat-error: #ef4444;--chat-error-bg: rgba(239, 68, 68, .1);--chat-header-text: #ffffff;--chat-user-text: #ffffff;--chat-assistant-bg: transparent;--chat-assistant-text: var(--chat-text);--chat-input-bg: var(--chat-background);--chat-input-text: var(--chat-text);--chat-input-placeholder: var(--chat-text-muted);--chat-thought-border: var(--chat-border);--chat-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--chat-radius: .75rem;--chat-font-size: .925rem;--chat-thought-font-size: .75rem;--chat-shadow: 0 20px 45px rgba(0, 0, 0, .12);--chat-shadow-sm: 0 4px 12px rgba(0, 0, 0, .1);--chat-overlay-bg: rgba(0, 0, 0, .3)}.chat-widget{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;background:var(--chat-background);border:1px solid var(--chat-border);border-radius:var(--chat-radius);box-shadow:var(--chat-shadow);overflow:hidden;font-family:var(--chat-font-family);color:var(--chat-assistant-text)}.chat-widget__header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:.75rem 1rem;background:var(--chat-primary);color:var(--chat-header-text)}.chat-widget__title{margin:0;font-size:.875rem;font-weight:600}.chat-widget__messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.chat-widget__message{display:flex;flex-direction:column;gap:0}.chat-widget__message-row{display:flex}.chat-widget__message-row--user{justify-content:flex-end}.chat-widget__message-row--assistant{justify-content:flex-start}.chat-widget__bubble{max-width:90%;padding:.5rem .25rem;border-radius:calc(var(--chat-radius) * .65);font-size:var(--chat-font-size)}.chat-widget__bubble--user{background:var(--chat-primary);color:var(--chat-user-text);border-bottom-right-radius:.35rem}.chat-widget__bubble--assistant{width:90%;background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-bottom-left-radius:.35rem}.chat-widget__widget{width:100%}.chat-widget__markdown{white-space:normal;font-size:var(--chat-font-size)}.chat-widget__markdown h1{font-size:calc(var(--chat-font-size) * 1.4)}.chat-widget__markdown h2{font-size:calc(var(--chat-font-size) * 1.25)}.chat-widget__markdown h3{font-size:calc(var(--chat-font-size) * 1.1)}.chat-widget__markdown h4{font-size:calc(var(--chat-font-size) * 1.05)}.chat-widget__markdown h5{font-size:calc(var(--chat-font-size) * 1)}.chat-widget__markdown h6{font-size:calc(var(--chat-font-size) * .95)}.chat-widget__anchor-button{position:fixed;bottom:20px;right:20px;display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:var(--chat-shadow);cursor:pointer;font-weight:600;z-index:99999}.chat-widget__anchor-button:hover{background:var(--chat-primary-hover)}.chat-widget__anchor--left{right:auto;left:20px}.chat-widget__anchor-icon{width:1.1rem;height:1.1rem}.chat-widget__popup{position:fixed;bottom:80px;right:20px;z-index:99998}.chat-widget__anchor--left.chat-widget__popup{right:auto;left:20px}.chat-widget__popup-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:var(--chat-shadow);border-radius:12px;overflow:hidden}.chat-widget__markdown a{color:var(--chat-primary);text-decoration:underline}.chat-widget__markdown a:hover{color:var(--chat-primary-hover)}.chat-widget__markdown table{width:100%;border-collapse:collapse;margin:.5rem 0}.chat-widget__markdown th,.chat-widget__markdown td{border:1px solid var(--chat-border);padding:.5rem;text-align:left;vertical-align:top}.chat-widget__markdown thead th{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);font-weight:600}.chat-widget__thoughts{min-width:0;--chat-font-size: var(--chat-thought-font-size)}.chat-widget__details{border:0}.chat-widget__thoughts-summary{list-style:none;display:flex;align-items:center;gap:.35rem;cursor:pointer;color:var(--chat-text-muted);font-size:.8125rem}.chat-widget__thoughts-summary:hover{color:var(--chat-assistant-text)}.chat-widget__thoughts-icon-container{display:flex;border:1px solid var(--chat-border);border-radius:999px;align-items:center;justify-content:center;width:1rem;height:1rem}.chat-widget__thoughts-icon{width:.75rem;height:.75rem;transition:transform .2s ease}.chat-widget__details[open] .chat-widget__thoughts-icon{transform:rotate(90deg)}.chat-widget__thoughts-content{margin-top:.5rem;margin-left:.4rem;padding:.75rem;border-left:2px solid var(--chat-thought-border);border-color:var(--chat-primary);max-width:100%;overflow-x:auto}.chat-widget__thoughts-text{margin:0;line-height:1.5;color:var(--chat-text-secondary);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;display:block}.chat-widget__loading{display:flex;justify-content:flex-start}.chat-widget__loading-bubble{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-radius:calc(var(--chat-radius) * .65);border-bottom-left-radius:.35rem;padding:.5rem .75rem}.chat-widget__loading-dots{display:flex;gap:.35rem}.chat-widget__loading-dot{width:.5rem;height:.5rem;border-radius:999px;background:var(--chat-text-disabled);animation:chat-widget-bounce 1s infinite ease-in-out}.chat-widget__loading-dot[data-delay="1"]{animation-delay:.1s}.chat-widget__loading-dot[data-delay="2"]{animation-delay:.2s}@keyframes chat-widget-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.chat-widget__input{border-top:1px solid var(--chat-border);padding:.25rem 0 .75rem;background:var(--chat-input-bg)}.chat-widget__form{position:relative}.chat-widget__textarea{width:100%;border:0;padding:.75rem 5.25rem .75rem .75rem;background:transparent;font-size:.925rem;resize:none;color:var(--chat-input-text);font-family:inherit}.chat-widget__textarea::-moz-placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea::placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea:focus-visible{outline:none}.chat-widget__textarea:disabled{opacity:.5;cursor:not-allowed}.chat-widget__toolbar{position:absolute;top:0;right:3.75rem;height:100%;display:flex;align-items:center;padding:0 .5rem;border-right:1px solid var(--chat-border)}.chat-widget__submit{position:absolute;top:50%;right:.75rem;transform:translateY(-50%);background:transparent;border:0;width:2.5rem;height:2.5rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer}.chat-widget__submit:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__submit:not(:disabled):hover{color:var(--chat-primary-hover)}.chat-widget__send-icon{width:1.2rem;height:1.2rem}.chat-widget__mic-button{position:relative;border:none;background:transparent;width:2.25rem;height:2.25rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer;border-radius:999px}.chat-widget__mic-button:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__mic-button--active{color:var(--chat-primary-hover);background:var(--chat-primary-subtle)}.chat-widget__mic-icon{width:1rem;height:1rem}.chat-widget__mic-bar{position:absolute;bottom:.1rem;left:50%;width:16px;height:2px;border-radius:999px;background:var(--chat-border);overflow:hidden;display:block;transform:translate(-50%);pointer-events:none}.chat-widget__mic-bar-fill{display:block;width:100%;height:100%;background:currentColor;transform-origin:left;transition:transform .12s linear}.chat-widget__voice{display:flex;margin-top:.25rem}.chat-widget__voice-button{border:none;background:none;display:inline-flex;align-items:center;gap:.35rem;padding:.1rem 0;font-size:.8rem;font-weight:500;color:var(--chat-primary);cursor:pointer}.chat-widget__voice-button:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__voice-button--active{color:var(--chat-primary-hover)}.chat-widget__voice-icon{width:.95rem;height:.95rem}.chat-widget__voice-icon--spin{animation:chat-widget-spin 1s linear infinite}@keyframes chat-widget-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.chat-widget__collapsed{position:relative;margin-bottom:.25rem}.chat-widget__collapsed-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.chat-widget__collapsed-content--expanded{grid-template-rows:1fr}.chat-widget__collapsed-content-inner{overflow:hidden}.chat-widget__collapsed-preview{position:relative;max-height:1.5em;overflow:hidden;opacity:.6;pointer-events:none;transition:opacity .3s ease-out,max-height .3s ease-out}.chat-widget__collapsed-preview--hidden{opacity:0;max-height:0;pointer-events:none}.chat-widget__collapsed-gradient{position:absolute;top:0;right:0;width:70%;height:100%;background:linear-gradient(to right,transparent 0%,var(--chat-background) 90%);pointer-events:none}.chat-widget__collapsed-toggle{display:inline-block;padding:0;font-size:.75rem;font-weight:500;color:var(--chat-primary);background:transparent;border:none;cursor:pointer}.chat-widget__collapsed-toggle:hover{text-decoration:underline}@keyframes chat-widget-slide-up{0%{opacity:1;transform:translateY(0);max-height:200px}to{opacity:.6;transform:translateY(-8px);max-height:1.5em}}.chat-widget__collapsed--animating .chat-widget__collapsed-preview{animation:chat-widget-slide-up .3s ease-out forwards}
|
|
17
|
+
`);var JO=ne(RL(),1);var dA="vercel.ai.error",GP=Symbol.for(dA),PL,NL,Ue=class fA extends(NL=Error,PL=GP,NL){constructor({name:t,message:a,cause:n}){super(a),this[PL]=!0,this.name=t,this.cause=n}static isInstance(t){return fA.hasMarker(t,dA)}static hasMarker(t,a){let n=Symbol.for(a);return t!=null&&typeof t=="object"&&n in t&&typeof t[n]=="boolean"&&t[n]===!0}},pA="AI_APICallError",mA=`vercel.ai.error.${pA}`,WP=Symbol.for(mA),UL,FL,o7=class extends(FL=Ue,UL=WP,FL){constructor({message:e,url:t,requestBodyValues:a,statusCode:n,responseHeaders:r,responseBody:o,cause:i,isRetryable:l=n!=null&&(n===408||n===409||n===429||n>=500),data:s}){super({name:pA,message:e,cause:i}),this[UL]=!0,this.url=t,this.requestBodyValues=a,this.statusCode=n,this.responseHeaders=r,this.responseBody=o,this.isRetryable=l,this.data=s}static isInstance(e){return Ue.hasMarker(e,mA)}},hA="AI_EmptyResponseBodyError",gA=`vercel.ai.error.${hA}`,JP=Symbol.for(gA),jL,BL,i7=class extends(BL=Ue,jL=JP,BL){constructor({message:e="Empty response body"}={}){super({name:hA,message:e}),this[jL]=!0}static isInstance(e){return Ue.hasMarker(e,gA)}};function vA(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var yA="AI_InvalidArgumentError",xA=`vercel.ai.error.${yA}`,XP=Symbol.for(xA),qL,ZL,bA=class extends(ZL=Ue,qL=XP,ZL){constructor({message:e,cause:t,argument:a}){super({name:yA,message:e,cause:t}),this[qL]=!0,this.argument=a}static isInstance(e){return Ue.hasMarker(e,xA)}},SA="AI_InvalidPromptError",wA=`vercel.ai.error.${SA}`,KP=Symbol.for(wA),HL,VL,l7=class extends(VL=Ue,HL=KP,VL){constructor({prompt:e,message:t,cause:a}){super({name:SA,message:`Invalid prompt: ${t}`,cause:a}),this[HL]=!0,this.prompt=e}static isInstance(e){return Ue.hasMarker(e,wA)}},_A="AI_InvalidResponseDataError",IA=`vercel.ai.error.${_A}`,YP=Symbol.for(IA),GL,WL,s7=class extends(WL=Ue,GL=YP,WL){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:_A,message:t}),this[GL]=!0,this.data=e}static isInstance(e){return Ue.hasMarker(e,IA)}},kA="AI_JSONParseError",CA=`vercel.ai.error.${kA}`,QP=Symbol.for(CA),JL,XL,zy=class extends(XL=Ue,JL=QP,XL){constructor({text:e,cause:t}){super({name:kA,message:`JSON parsing failed: Text: ${e}.
|
|
18
|
+
Error message: ${vA(t)}`,cause:t}),this[JL]=!0,this.text=e}static isInstance(e){return Ue.hasMarker(e,CA)}},TA="AI_LoadAPIKeyError",LA=`vercel.ai.error.${TA}`,eN=Symbol.for(LA),KL,YL,u7=class extends(YL=Ue,KL=eN,YL){constructor({message:e}){super({name:TA,message:e}),this[KL]=!0}static isInstance(e){return Ue.hasMarker(e,LA)}},AA="AI_LoadSettingError",EA=`vercel.ai.error.${AA}`,tN=Symbol.for(EA),QL,eA,c7=class extends(eA=Ue,QL=tN,eA){constructor({message:e}){super({name:AA,message:e}),this[QL]=!0}static isInstance(e){return Ue.hasMarker(e,EA)}},$A="AI_NoContentGeneratedError",MA=`vercel.ai.error.${$A}`,aN=Symbol.for(MA),tA,aA,d7=class extends(aA=Ue,tA=aN,aA){constructor({message:e="No content generated."}={}){super({name:$A,message:e}),this[tA]=!0}static isInstance(e){return Ue.hasMarker(e,MA)}},DA="AI_NoSuchModelError",zA=`vercel.ai.error.${DA}`,rN=Symbol.for(zA),rA,nA,f7=class extends(nA=Ue,rA=rN,nA){constructor({errorName:e=DA,modelId:t,modelType:a,message:n=`No such ${a}: ${t}`}){super({name:e,message:n}),this[rA]=!0,this.modelId=t,this.modelType=a}static isInstance(e){return Ue.hasMarker(e,zA)}},OA="AI_TooManyEmbeddingValuesForCallError",RA=`vercel.ai.error.${OA}`,nN=Symbol.for(RA),oA,iA,p7=class extends(iA=Ue,oA=nN,iA){constructor(e){super({name:OA,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[oA]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Ue.hasMarker(e,RA)}},PA="AI_TypeValidationError",NA=`vercel.ai.error.${PA}`,oN=Symbol.for(NA),lA,sA,Zr=class Dy extends(sA=Ue,lA=oN,sA){constructor({value:t,cause:a,context:n}){let r="Type validation failed";if(n?.field&&(r+=` for ${n.field}`),n?.entityName||n?.entityId){r+=" (";let o=[];n.entityName&&o.push(n.entityName),n.entityId&&o.push(`id: "${n.entityId}"`),r+=o.join(", "),r+=")"}super({name:PA,message:`${r}: Value: ${JSON.stringify(t)}.
|
|
19
|
+
Error message: ${vA(a)}`,cause:a}),this[lA]=!0,this.value=t,this.context=n}static isInstance(t){return Ue.hasMarker(t,NA)}static wrap({value:t,cause:a,context:n}){var r,o,i;return Dy.isInstance(a)&&a.value===t&&((r=a.context)==null?void 0:r.field)===n?.field&&((o=a.context)==null?void 0:o.entityName)===n?.entityName&&((i=a.context)==null?void 0:i.entityId)===n?.entityId?a:new Dy({value:t,cause:a,context:n})}},UA="AI_UnsupportedFunctionalityError",FA=`vercel.ai.error.${UA}`,iN=Symbol.for(FA),uA,cA,m7=class extends(cA=Ue,uA=iN,cA){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:UA,message:t}),this[uA]=!0,this.functionality=e}static isInstance(e){return Ue.hasMarker(e,FA)}};var v={};_r(v,{$brand:()=>sp,$input:()=>eS,$output:()=>Qb,NEVER:()=>Oy,TimePrecision:()=>nS,ZodAny:()=>Vw,ZodArray:()=>Xw,ZodBase64:()=>zm,ZodBase64URL:()=>Om,ZodBigInt:()=>ps,ZodBigIntFormat:()=>Nm,ZodBoolean:()=>fs,ZodCIDRv4:()=>Mm,ZodCIDRv6:()=>Dm,ZodCUID:()=>km,ZodCUID2:()=>Cm,ZodCatch:()=>y_,ZodCodec:()=>Vm,ZodCustom:()=>Oc,ZodCustomStringFormat:()=>cs,ZodDate:()=>Ec,ZodDefault:()=>f_,ZodDiscriminatedUnion:()=>Yw,ZodE164:()=>Rm,ZodEmail:()=>wm,ZodEmoji:()=>_m,ZodEnum:()=>ss,ZodError:()=>zU,ZodExactOptional:()=>u_,ZodFile:()=>l_,ZodFirstPartyTypeKind:()=>E_,ZodFunction:()=>T_,ZodGUID:()=>kc,ZodIPv4:()=>Em,ZodIPv6:()=>$m,ZodISODate:()=>gm,ZodISODateTime:()=>hm,ZodISODuration:()=>ym,ZodISOTime:()=>vm,ZodIntersection:()=>Qw,ZodIssueCode:()=>RU,ZodJWT:()=>Pm,ZodKSUID:()=>Am,ZodLazy:()=>I_,ZodLiteral:()=>i_,ZodMAC:()=>Uw,ZodMap:()=>n_,ZodNaN:()=>b_,ZodNanoID:()=>Im,ZodNever:()=>Ww,ZodNonOptional:()=>Zm,ZodNull:()=>Zw,ZodNullable:()=>d_,ZodNumber:()=>ds,ZodNumberFormat:()=>xi,ZodObject:()=>Mc,ZodOptional:()=>qm,ZodPipe:()=>Hm,ZodPrefault:()=>m_,ZodPromise:()=>C_,ZodReadonly:()=>S_,ZodRealError:()=>Oa,ZodRecord:()=>zc,ZodSet:()=>o_,ZodString:()=>us,ZodStringFormat:()=>et,ZodSuccess:()=>v_,ZodSymbol:()=>Bw,ZodTemplateLiteral:()=>__,ZodTransform:()=>s_,ZodTuple:()=>t_,ZodType:()=>ke,ZodULID:()=>Tm,ZodURL:()=>Ac,ZodUUID:()=>Wr,ZodUndefined:()=>qw,ZodUnion:()=>Dc,ZodUnknown:()=>Gw,ZodVoid:()=>Jw,ZodXID:()=>Lm,ZodXor:()=>Kw,_ZodString:()=>Sm,_default:()=>p_,_function:()=>x$,any:()=>K2,array:()=>$c,base64:()=>z2,base64url:()=>O2,bigint:()=>V2,boolean:()=>jw,catch:()=>x_,check:()=>b$,cidrv4:()=>M2,cidrv6:()=>D2,clone:()=>xa,codec:()=>g$,coerce:()=>$_,config:()=>Ct,core:()=>Ln,cuid:()=>I2,cuid2:()=>k2,custom:()=>S$,date:()=>Q2,decode:()=>Mw,decodeAsync:()=>zw,describe:()=>w$,discriminatedUnion:()=>o$,e164:()=>R2,email:()=>m2,emoji:()=>w2,encode:()=>$w,encodeAsync:()=>Dw,endsWith:()=>Kl,enum:()=>jm,exactOptional:()=>c_,file:()=>f$,flattenError:()=>dc,float32:()=>B2,float64:()=>q2,formatError:()=>fc,fromJSONSchema:()=>A$,function:()=>x$,getErrorMap:()=>NU,globalRegistry:()=>ia,gt:()=>Vr,gte:()=>ba,guid:()=>h2,hash:()=>j2,hex:()=>F2,hostname:()=>U2,httpUrl:()=>S2,includes:()=>Jl,instanceof:()=>I$,int:()=>bm,int32:()=>Z2,int64:()=>G2,intersection:()=>e_,ipv4:()=>A2,ipv6:()=>$2,iso:()=>ls,json:()=>C$,jwt:()=>P2,keyof:()=>e$,ksuid:()=>L2,lazy:()=>k_,length:()=>vi,literal:()=>d$,locales:()=>bc,looseObject:()=>r$,looseRecord:()=>l$,lowercase:()=>Gl,lt:()=>Hr,lte:()=>Xa,mac:()=>E2,map:()=>s$,maxLength:()=>gi,maxSize:()=>_o,meta:()=>_$,mime:()=>Yl,minLength:()=>Tn,minSize:()=>Gr,multipleOf:()=>wo,nan:()=>h$,nanoid:()=>_2,nativeEnum:()=>c$,negative:()=>im,never:()=>Um,nonnegative:()=>sm,nonoptional:()=>g_,nonpositive:()=>lm,normalize:()=>Ql,null:()=>Hw,nullable:()=>Tc,nullish:()=>p$,number:()=>Fw,object:()=>t$,optional:()=>Cc,overwrite:()=>Lr,parse:()=>Lw,parseAsync:()=>Aw,partialRecord:()=>i$,pipe:()=>Lc,positive:()=>om,prefault:()=>h_,preprocess:()=>T$,prettifyError:()=>Gy,promise:()=>y$,property:()=>um,readonly:()=>w_,record:()=>r_,refine:()=>L_,regex:()=>Vl,regexes:()=>mr,registry:()=>Np,safeDecode:()=>Rw,safeDecodeAsync:()=>Nw,safeEncode:()=>Ow,safeEncodeAsync:()=>Pw,safeParse:()=>Ew,safeParseAsync:()=>Ic,set:()=>u$,setErrorMap:()=>PU,size:()=>hi,slugify:()=>rs,startsWith:()=>Xl,strictObject:()=>a$,string:()=>xm,stringFormat:()=>N2,stringbool:()=>k$,success:()=>m$,superRefine:()=>A_,symbol:()=>J2,templateLiteral:()=>v$,toJSONSchema:()=>is,toLowerCase:()=>ts,toUpperCase:()=>as,transform:()=>Bm,treeifyError:()=>Vy,trim:()=>es,tuple:()=>a_,uint32:()=>H2,uint64:()=>W2,ulid:()=>C2,undefined:()=>X2,union:()=>Fm,unknown:()=>yi,uppercase:()=>Wl,url:()=>b2,util:()=>G,uuid:()=>g2,uuidv4:()=>v2,uuidv6:()=>y2,uuidv7:()=>x2,void:()=>Y2,xid:()=>T2,xor:()=>n$});var Ln={};_r(Ln,{$ZodAny:()=>Sb,$ZodArray:()=>Cb,$ZodAsyncError:()=>Tr,$ZodBase64:()=>db,$ZodBase64URL:()=>fb,$ZodBigInt:()=>$p,$ZodBigIntFormat:()=>vb,$ZodBoolean:()=>gc,$ZodCIDRv4:()=>sb,$ZodCIDRv6:()=>ub,$ZodCUID:()=>Xx,$ZodCUID2:()=>Kx,$ZodCatch:()=>Zb,$ZodCheck:()=>nt,$ZodCheckBigIntFormat:()=>Cx,$ZodCheckEndsWith:()=>Nx,$ZodCheckGreaterThan:()=>Ip,$ZodCheckIncludes:()=>Rx,$ZodCheckLengthEquals:()=>Mx,$ZodCheckLessThan:()=>_p,$ZodCheckLowerCase:()=>zx,$ZodCheckMaxLength:()=>Ex,$ZodCheckMaxSize:()=>Tx,$ZodCheckMimeType:()=>Fx,$ZodCheckMinLength:()=>$x,$ZodCheckMinSize:()=>Lx,$ZodCheckMultipleOf:()=>Ix,$ZodCheckNumberFormat:()=>kx,$ZodCheckOverwrite:()=>jx,$ZodCheckProperty:()=>Ux,$ZodCheckRegex:()=>Dx,$ZodCheckSizeEquals:()=>Ax,$ZodCheckStartsWith:()=>Px,$ZodCheckStringFormat:()=>Zl,$ZodCheckUpperCase:()=>Ox,$ZodCodec:()=>yc,$ZodCustom:()=>Yb,$ZodCustomStringFormat:()=>hb,$ZodDate:()=>kb,$ZodDefault:()=>Fb,$ZodDiscriminatedUnion:()=>Ab,$ZodE164:()=>pb,$ZodEmail:()=>Vx,$ZodEmoji:()=>Wx,$ZodEncodeError:()=>vo,$ZodEnum:()=>zb,$ZodError:()=>cc,$ZodExactOptional:()=>Nb,$ZodFile:()=>Rb,$ZodFunction:()=>Jb,$ZodGUID:()=>Zx,$ZodIPv4:()=>ob,$ZodIPv6:()=>ib,$ZodISODate:()=>ab,$ZodISODateTime:()=>tb,$ZodISODuration:()=>nb,$ZodISOTime:()=>rb,$ZodIntersection:()=>Eb,$ZodJWT:()=>mb,$ZodKSUID:()=>eb,$ZodLazy:()=>Kb,$ZodLiteral:()=>Ob,$ZodMAC:()=>lb,$ZodMap:()=>Mb,$ZodNaN:()=>Hb,$ZodNanoID:()=>Jx,$ZodNever:()=>_b,$ZodNonOptional:()=>Bb,$ZodNull:()=>bb,$ZodNullable:()=>Ub,$ZodNumber:()=>Ep,$ZodNumberFormat:()=>gb,$ZodObject:()=>pE,$ZodObjectJIT:()=>Tb,$ZodOptional:()=>Dp,$ZodPipe:()=>Vb,$ZodPrefault:()=>jb,$ZodPromise:()=>Xb,$ZodReadonly:()=>Gb,$ZodRealError:()=>za,$ZodRecord:()=>$b,$ZodRegistry:()=>Pp,$ZodSet:()=>Db,$ZodString:()=>mi,$ZodStringFormat:()=>Qe,$ZodSuccess:()=>qb,$ZodSymbol:()=>yb,$ZodTemplateLiteral:()=>Wb,$ZodTransform:()=>Pb,$ZodTuple:()=>Mp,$ZodType:()=>ye,$ZodULID:()=>Yx,$ZodURL:()=>Gx,$ZodUUID:()=>Hx,$ZodUndefined:()=>xb,$ZodUnion:()=>vc,$ZodUnknown:()=>wb,$ZodVoid:()=>Ib,$ZodXID:()=>Qx,$ZodXor:()=>Lb,$brand:()=>sp,$constructor:()=>D,$input:()=>eS,$output:()=>Qb,Doc:()=>hc,JSONSchema:()=>f2,JSONSchemaGenerator:()=>pm,NEVER:()=>Oy,TimePrecision:()=>nS,_any:()=>kS,_array:()=>MS,_base64:()=>tm,_base64url:()=>am,_bigint:()=>yS,_boolean:()=>gS,_catch:()=>CU,_check:()=>d2,_cidrv4:()=>Qp,_cidrv6:()=>em,_coercedBigint:()=>xS,_coercedBoolean:()=>vS,_coercedDate:()=>ES,_coercedNumber:()=>cS,_coercedString:()=>aS,_cuid:()=>Vp,_cuid2:()=>Gp,_custom:()=>zS,_date:()=>AS,_decode:()=>mp,_decodeAsync:()=>gp,_default:()=>_U,_discriminatedUnion:()=>dU,_e164:()=>rm,_email:()=>Up,_emoji:()=>Zp,_encode:()=>pp,_encodeAsync:()=>hp,_endsWith:()=>Kl,_enum:()=>vU,_file:()=>DS,_float32:()=>fS,_float64:()=>pS,_gt:()=>Vr,_gte:()=>ba,_guid:()=>Sc,_includes:()=>Jl,_int:()=>dS,_int32:()=>mS,_int64:()=>bS,_intersection:()=>fU,_ipv4:()=>Kp,_ipv6:()=>Yp,_isoDate:()=>iS,_isoDateTime:()=>oS,_isoDuration:()=>sS,_isoTime:()=>lS,_jwt:()=>nm,_ksuid:()=>Xp,_lazy:()=>EU,_length:()=>vi,_literal:()=>xU,_lowercase:()=>Gl,_lt:()=>Hr,_lte:()=>Xa,_mac:()=>rS,_map:()=>hU,_max:()=>Xa,_maxLength:()=>gi,_maxSize:()=>_o,_mime:()=>Yl,_min:()=>ba,_minLength:()=>Tn,_minSize:()=>Gr,_multipleOf:()=>wo,_nan:()=>$S,_nanoid:()=>Hp,_nativeEnum:()=>yU,_negative:()=>im,_never:()=>TS,_nonnegative:()=>sm,_nonoptional:()=>IU,_nonpositive:()=>lm,_normalize:()=>Ql,_null:()=>IS,_nullable:()=>wU,_number:()=>uS,_optional:()=>SU,_overwrite:()=>Lr,_parse:()=>Fl,_parseAsync:()=>jl,_pipe:()=>TU,_positive:()=>om,_promise:()=>$U,_property:()=>um,_readonly:()=>LU,_record:()=>mU,_refine:()=>OS,_regex:()=>Vl,_safeDecode:()=>yp,_safeDecodeAsync:()=>bp,_safeEncode:()=>vp,_safeEncodeAsync:()=>xp,_safeParse:()=>Bl,_safeParseAsync:()=>ql,_set:()=>gU,_size:()=>hi,_slugify:()=>rs,_startsWith:()=>Xl,_string:()=>tS,_stringFormat:()=>ns,_stringbool:()=>US,_success:()=>kU,_superRefine:()=>RS,_symbol:()=>wS,_templateLiteral:()=>AU,_toLowerCase:()=>ts,_toUpperCase:()=>as,_transform:()=>bU,_trim:()=>es,_tuple:()=>pU,_uint32:()=>hS,_uint64:()=>SS,_ulid:()=>Wp,_undefined:()=>_S,_union:()=>uU,_unknown:()=>CS,_uppercase:()=>Wl,_url:()=>wc,_uuid:()=>Fp,_uuidv4:()=>jp,_uuidv6:()=>Bp,_uuidv7:()=>qp,_void:()=>LS,_xid:()=>Jp,_xor:()=>cU,clone:()=>xa,config:()=>Ct,createStandardJSONSchemaMethod:()=>os,createToJSONSchemaMethod:()=>FS,decode:()=>zN,decodeAsync:()=>RN,describe:()=>PS,encode:()=>DN,encodeAsync:()=>ON,extractDefs:()=>ko,finalize:()=>Co,flattenError:()=>dc,formatError:()=>fc,globalConfig:()=>rc,globalRegistry:()=>ia,initializeContext:()=>Io,isValidBase64:()=>cb,isValidBase64URL:()=>uE,isValidJWT:()=>cE,locales:()=>bc,meta:()=>NS,parse:()=>dp,parseAsync:()=>fp,prettifyError:()=>Gy,process:()=>Ze,regexes:()=>mr,registry:()=>Np,safeDecode:()=>NN,safeDecodeAsync:()=>FN,safeEncode:()=>PN,safeEncodeAsync:()=>UN,safeParse:()=>Wy,safeParseAsync:()=>Jy,toDotPath:()=>HA,toJSONSchema:()=>is,treeifyError:()=>Vy,util:()=>G,version:()=>Bx});var Oy=Object.freeze({status:"aborted"});function D(e,t,a){function n(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let u=i.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){let p=c[d];p in l||(l[p]=u[p].bind(l))}}let r=a?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function i(l){var s;let u=a?.Parent?new o:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>a?.Parent&&l instanceof a.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var sp=Symbol("zod_brand"),Tr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},vo=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},rc={};function Ct(e){return e&&Object.assign(rc,e),rc}var G={};_r(G,{BIGINT_FORMAT_RANGES:()=>Hy,Class:()=>Py,NUMBER_FORMAT_RANGES:()=>Zy,aborted:()=>So,allowsEval:()=>Fy,assert:()=>dN,assertEqual:()=>lN,assertIs:()=>uN,assertNever:()=>cN,assertNotEqual:()=>sN,assignProp:()=>xo,base64ToUint8Array:()=>BA,base64urlToUint8Array:()=>LN,cached:()=>Nl,captureStackTrace:()=>cp,cleanEnum:()=>TN,cleanRegex:()=>ic,clone:()=>xa,cloneDef:()=>pN,createTransparentProxy:()=>xN,defineLazy:()=>Ae,esc:()=>up,escapeRegex:()=>pr,extend:()=>wN,finalizeIssue:()=>Da,floatSafeRemainder:()=>Ny,getElementAtPath:()=>mN,getEnumValues:()=>oc,getLengthableOrigin:()=>uc,getParsedType:()=>yN,getSizableOrigin:()=>sc,hexToUint8Array:()=>EN,isObject:()=>fi,isPlainObject:()=>bo,issue:()=>Ul,joinValues:()=>z,jsonStringifyReplacer:()=>Pl,merge:()=>IN,mergeDefs:()=>Cn,normalizeParams:()=>X,nullish:()=>yo,numKeys:()=>vN,objectClone:()=>fN,omit:()=>SN,optionalKeys:()=>qy,parsedType:()=>V,partial:()=>kN,pick:()=>bN,prefixIssues:()=>Ja,primitiveTypes:()=>By,promiseAllObject:()=>hN,propertyKeyTypes:()=>lc,randomString:()=>gN,required:()=>CN,safeExtend:()=>_N,shallowClone:()=>jy,slugify:()=>Uy,stringifyPrimitive:()=>Z,uint8ArrayToBase64:()=>qA,uint8ArrayToBase64url:()=>AN,uint8ArrayToHex:()=>$N,unwrapMessage:()=>nc});function lN(e){return e}function sN(e){return e}function uN(e){}function cN(e){throw new Error("Unexpected value in exhaustive check")}function dN(e){}function oc(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function z(e,t="|"){return e.map(a=>Z(a)).join(t)}function Pl(e,t){return typeof t=="bigint"?t.toString():t}function Nl(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw new Error("cached value already set")}}}function yo(e){return e==null}function ic(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function Ny(e,t){let a=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){let s=n.match(/\d?e-(\d?)/);s?.[1]&&(r=Number.parseInt(s[1]))}let o=a>r?a:r,i=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return i%l/10**o}var jA=Symbol("evaluating");function Ae(e,t,a){let n;Object.defineProperty(e,t,{get(){if(n!==jA)return n===void 0&&(n=jA,n=a()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function fN(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function xo(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function Cn(...e){let t={};for(let a of e){let n=Object.getOwnPropertyDescriptors(a);Object.assign(t,n)}return Object.defineProperties({},t)}function pN(e){return Cn(e._zod.def)}function mN(e,t){return t?t.reduce((a,n)=>a?.[n],e):e}function hN(e){let t=Object.keys(e),a=t.map(n=>e[n]);return Promise.all(a).then(n=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=n[o];return r})}function gN(e=10){let t="abcdefghijklmnopqrstuvwxyz",a="";for(let n=0;n<e;n++)a+=t[Math.floor(Math.random()*t.length)];return a}function up(e){return JSON.stringify(e)}function Uy(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var cp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Fy=Nl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function bo(e){if(fi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let a=t.prototype;return!(fi(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function jy(e){return bo(e)?{...e}:Array.isArray(e)?[...e]:e}function vN(e){let t=0;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t++;return t}var yN=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}`)}},lc=new Set(["string","number","symbol"]),By=new Set(["string","number","bigint","boolean","symbol","undefined"]);function pr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xa(e,t,a){let n=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(n._zod.parent=e),n}function X(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 xN(e){let t;return new Proxy({},{get(a,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(a,n,r,o){return t??(t=e()),Reflect.set(t,n,r,o)},has(a,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(a,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(a){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(a,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(a,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}function Z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function qy(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Zy={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]},Hy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function bN(e,t){let a=e._zod.def,n=a.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Cn(e._zod.def,{get shape(){let i={};for(let l in t){if(!(l in a.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=a.shape[l])}return xo(this,"shape",i),i},checks:[]});return xa(e,o)}function SN(e,t){let a=e._zod.def,n=a.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Cn(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let l in t){if(!(l in a.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return xo(this,"shape",i),i},checks:[]});return xa(e,o)}function wN(e,t){if(!bo(t))throw new Error("Invalid input to extend: expected a plain object");let a=e._zod.def.checks;if(a&&a.length>0){let o=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=Cn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return xo(this,"shape",o),o}});return xa(e,r)}function _N(e,t){if(!bo(t))throw new Error("Invalid input to safeExtend: expected a plain object");let a=Cn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return xo(this,"shape",n),n}});return xa(e,a)}function IN(e,t){let a=Cn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return xo(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return xa(e,a)}function kN(e,t,a){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=Cn(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(a)for(let u in a){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return xo(this,"shape",s),s},checks:[]});return xa(t,i)}function CN(e,t,a){let n=Cn(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(a)for(let i in a){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);a[i]&&(o[i]=new e({type:"nonoptional",innerType:r[i]}))}else for(let i in r)o[i]=new e({type:"nonoptional",innerType:r[i]});return xo(this,"shape",o),o}});return xa(t,n)}function So(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function Ja(e,t){return t.map(a=>{var n;return(n=a).path??(n.path=[]),a.path.unshift(e),a})}function nc(e){return typeof e=="string"?e:e?.message}function Da(e,t,a){let n={...e,path:e.path??[]};if(!e.message){let r=nc(e.inst?._zod.def?.error?.(e))??nc(t?.error?.(e))??nc(a.customError?.(e))??nc(a.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function sc(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function uc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function V(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 a=e;if(a&&Object.getPrototypeOf(a)!==Object.prototype&&"constructor"in a&&a.constructor)return a.constructor.name}}return t}function Ul(...e){let[t,a,n]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:n}:{...t}}function TN(e){return Object.entries(e).filter(([t,a])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function BA(e){let t=atob(e),a=new Uint8Array(t.length);for(let n=0;n<t.length;n++)a[n]=t.charCodeAt(n);return a}function qA(e){let t="";for(let a=0;a<e.length;a++)t+=String.fromCharCode(e[a]);return btoa(t)}function LN(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),a="=".repeat((4-t.length%4)%4);return BA(t+a)}function AN(e){return qA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function EN(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let a=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)a[n/2]=Number.parseInt(t.slice(n,n+2),16);return a}function $N(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Py=class{constructor(...t){}};var ZA=(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,Pl,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},cc=D("$ZodError",ZA),za=D("$ZodError",ZA,{Parent:Error});function dc(e,t=a=>a.message){let a={},n=[];for(let r of e.issues)r.path.length>0?(a[r.path[0]]=a[r.path[0]]||[],a[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:a}}function fc(e,t=a=>a.message){let a={_errors:[]},n=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>n({issues:i}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)a._errors.push(t(o));else{let i=a,l=0;for(;l<o.path.length;){let s=o.path[l];l===o.path.length-1?(i[s]=i[s]||{_errors:[]},i[s]._errors.push(t(o))):i[s]=i[s]||{_errors:[]},i=i[s],l++}}};return n(e),a}function Vy(e,t=a=>a.message){let a={errors:[]},n=(r,o=[])=>{var i,l;for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>n({issues:u},s.path));else if(s.code==="invalid_key")n({issues:s.issues},s.path);else if(s.code==="invalid_element")n({issues:s.issues},s.path);else{let u=[...o,...s.path];if(u.length===0){a.errors.push(t(s));continue}let c=a,d=0;for(;d<u.length;){let p=u[d],f=d===u.length-1;typeof p=="string"?(c.properties??(c.properties={}),(i=c.properties)[p]??(i[p]={errors:[]}),c=c.properties[p]):(c.items??(c.items=[]),(l=c.items)[p]??(l[p]={errors:[]}),c=c.items[p]),f&&c.errors.push(t(s)),d++}}};return n(e),a}function HA(e){let t=[],a=e.map(n=>typeof n=="object"?n.key:n);for(let n of a)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function Gy(e){let t=[],a=[...e.issues].sort((n,r)=>(n.path??[]).length-(r.path??[]).length);for(let n of a)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${HA(n.path)}`);return t.join(`
|
|
20
|
+
`)}var Fl=e=>(t,a,n,r)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise)throw new Tr;if(i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>Da(s,o,Ct())));throw cp(l,r?.callee),l}return i.value},dp=Fl(za),jl=e=>async(t,a,n,r)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>Da(s,o,Ct())));throw cp(l,r?.callee),l}return i.value},fp=jl(za),Bl=e=>(t,a,n)=>{let r=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:a,issues:[]},r);if(o instanceof Promise)throw new Tr;return o.issues.length?{success:!1,error:new(e??cc)(o.issues.map(i=>Da(i,r,Ct())))}:{success:!0,data:o.value}},Wy=Bl(za),ql=e=>async(t,a,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:a,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>Da(i,r,Ct())))}:{success:!0,data:o.value}},Jy=ql(za),pp=e=>(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Fl(e)(t,a,r)},DN=pp(za),mp=e=>(t,a,n)=>Fl(e)(t,a,n),zN=mp(za),hp=e=>async(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return jl(e)(t,a,r)},ON=hp(za),gp=e=>async(t,a,n)=>jl(e)(t,a,n),RN=gp(za),vp=e=>(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Bl(e)(t,a,r)},PN=vp(za),yp=e=>(t,a,n)=>Bl(e)(t,a,n),NN=yp(za),xp=e=>async(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ql(e)(t,a,r)},UN=xp(za),bp=e=>async(t,a,n)=>ql(e)(t,a,n),FN=bp(za);var mr={};_r(mr,{base64:()=>dx,base64url:()=>Sp,bigint:()=>vx,boolean:()=>xx,browserEmail:()=>WN,cidrv4:()=>ux,cidrv6:()=>cx,cuid:()=>Xy,cuid2:()=>Ky,date:()=>px,datetime:()=>hx,domain:()=>KN,duration:()=>ax,e164:()=>fx,email:()=>nx,emoji:()=>ox,extendedDuration:()=>jN,guid:()=>rx,hex:()=>YN,hostname:()=>XN,html5Email:()=>HN,idnEmail:()=>GN,integer:()=>yx,ipv4:()=>ix,ipv6:()=>lx,ksuid:()=>ex,lowercase:()=>wx,mac:()=>sx,md5_base64:()=>e6,md5_base64url:()=>t6,md5_hex:()=>QN,nanoid:()=>tx,null:()=>bx,number:()=>wp,rfc5322Email:()=>VN,sha1_base64:()=>r6,sha1_base64url:()=>n6,sha1_hex:()=>a6,sha256_base64:()=>i6,sha256_base64url:()=>l6,sha256_hex:()=>o6,sha384_base64:()=>u6,sha384_base64url:()=>c6,sha384_hex:()=>s6,sha512_base64:()=>f6,sha512_base64url:()=>p6,sha512_hex:()=>d6,string:()=>gx,time:()=>mx,ulid:()=>Yy,undefined:()=>Sx,unicodeEmail:()=>VA,uppercase:()=>_x,uuid:()=>pi,uuid4:()=>BN,uuid6:()=>qN,uuid7:()=>ZN,xid:()=>Qy});var Xy=/^[cC][^\s-]{8,}$/,Ky=/^[0-9a-z]+$/,Yy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Qy=/^[0-9a-vA-V]{20}$/,ex=/^[A-Za-z0-9]{27}$/,tx=/^[a-zA-Z0-9_-]{21}$/,ax=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jN=/^[-+]?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)?)??$/,rx=/^([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})$/,pi=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)$/,BN=pi(4),qN=pi(6),ZN=pi(7),nx=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,HN=/^[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])?)*$/,VN=/^(([^<>()\[\]\\.,;:\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,}))$/,VA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,GN=VA,WN=/^[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])?)*$/,JN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ox(){return new RegExp(JN,"u")}var ix=/^(?:(?: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])$/,lx=/^(([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}|:))$/,sx=e=>{let t=pr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ux=/^((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])$/,cx=/^(([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])$/,dx=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Sp=/^[A-Za-z0-9_-]*$/,XN=/^(?=.{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])?)*\.?$/,KN=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,fx=/^\+[1-9]\d{6,14}$/,GA="(?:(?:\\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])))",px=new RegExp(`^${GA}$`);function WA(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 mx(e){return new RegExp(`^${WA(e)}$`)}function hx(e){let t=WA({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${a.join("|")})`;return new RegExp(`^${GA}T(?:${n})$`)}var gx=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},vx=/^-?\d+n?$/,yx=/^-?\d+$/,wp=/^-?\d+(?:\.\d+)?$/,xx=/^(?:true|false)$/i,bx=/^null$/i;var Sx=/^undefined$/i;var wx=/^[^A-Z]*$/,_x=/^[^a-z]*$/,YN=/^[0-9a-fA-F]*$/;function pc(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function mc(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var QN=/^[0-9a-fA-F]{32}$/,e6=pc(22,"=="),t6=mc(22),a6=/^[0-9a-fA-F]{40}$/,r6=pc(27,"="),n6=mc(27),o6=/^[0-9a-fA-F]{64}$/,i6=pc(43,"="),l6=mc(43),s6=/^[0-9a-fA-F]{96}$/,u6=pc(64,""),c6=mc(64),d6=/^[0-9a-fA-F]{128}$/,f6=pc(86,"=="),p6=mc(86);var nt=D("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),XA={number:"number",bigint:"bigint",object:"date"},_p=D("$ZodCheckLessThan",(e,t)=>{nt.init(e,t);let a=XA[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:a,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ip=D("$ZodCheckGreaterThan",(e,t)=>{nt.init(e,t);let a=XA[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:a,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ix=D("$ZodCheckMultipleOf",(e,t)=>{nt.init(e,t),e._zod.onattach.push(a=>{var n;(n=a._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%t.value===BigInt(0):Ny(a.value,t.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),kx=D("$ZodCheckNumberFormat",(e,t)=>{nt.init(e,t),t.format=t.format||"float64";let a=t.format?.includes("int"),n=a?"int":"number",[r,o]=Zy[t.format];e._zod.onattach.push(i=>{let l=i._zod.bag;l.format=t.format,l.minimum=r,l.maximum=o,a&&(l.pattern=yx)}),e._zod.check=i=>{let l=i.value;if(a){if(!Number.isInteger(l)){i.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?i.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):i.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}l<r&&i.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>o&&i.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Cx=D("$ZodCheckBigIntFormat",(e,t)=>{nt.init(e,t);let[a,n]=Hy[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=a,o.maximum=n}),e._zod.check=r=>{let o=r.value;o<a&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),o>n&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Tx=D("$ZodCheckMaxSize",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!yo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:sc(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Lx=D("$ZodCheckMinSize",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!yo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:sc(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ax=D("$ZodCheckSizeEquals",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!yo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=n=>{let r=n.value,o=r.size;if(o===t.size)return;let i=o>t.size;n.issues.push({origin:sc(r),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ex=D("$ZodCheckMaxLength",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!yo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=uc(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),$x=D("$ZodCheckMinLength",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!yo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=uc(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Mx=D("$ZodCheckLengthEquals",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!yo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{let r=n.value,o=r.length;if(o===t.length)return;let i=uc(r),l=o>t.length;n.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Zl=D("$ZodCheckStringFormat",(e,t)=>{var a,n;nt.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Dx=D("$ZodCheckRegex",(e,t)=>{Zl.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zx=D("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=wx),Zl.init(e,t)}),Ox=D("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=_x),Zl.init(e,t)}),Rx=D("$ZodCheckIncludes",(e,t)=>{nt.init(e,t);let a=pr(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=n,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Px=D("$ZodCheckStartsWith",(e,t)=>{nt.init(e,t);let a=new RegExp(`^${pr(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Nx=D("$ZodCheckEndsWith",(e,t)=>{nt.init(e,t);let a=new RegExp(`.*${pr(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function JA(e,t,a){e.issues.length&&t.issues.push(...Ja(a,e.issues))}var Ux=D("$ZodCheckProperty",(e,t)=>{nt.init(e,t),e._zod.check=a=>{let n=t.schema._zod.run({value:a.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(r=>JA(r,a,t.property));JA(n,a,t.property)}}),Fx=D("$ZodCheckMimeType",(e,t)=>{nt.init(e,t);let a=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{a.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),jx=D("$ZodCheckOverwrite",(e,t)=>{nt.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});var hc=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 n=t.split(`
|
|
21
|
+
`).filter(i=>i),r=Math.min(...n.map(i=>i.length-i.trimStart().length)),o=n.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,a=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...a,r.join(`
|
|
22
|
+
`))}};var Bx={major:4,minor:3,patch:6};var ye=D("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Bx;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let r of n)for(let o of r._zod.onattach)o(e);if(n.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(i,l,s)=>{let u=So(i),c;for(let d of l){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(u)continue;let p=i.issues.length,f=d._zod.check(i);if(f instanceof Promise&&s?.async===!1)throw new Tr;if(c||f instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await f,i.issues.length!==p&&(u||(u=So(i,p)))});else{if(i.issues.length===p)continue;u||(u=So(i,p))}}return c?c.then(()=>i):i},o=(i,l,s)=>{if(So(i))return i.aborted=!0,i;let u=r(l,n,s);if(u instanceof Promise){if(s.async===!1)throw new Tr;return u.then(c=>e._zod.parse(c,s))}return e._zod.parse(u,s)};e._zod.run=(i,l)=>{if(l.skipChecks)return e._zod.parse(i,l);if(l.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(c=>o(c,i,l)):o(u,i,l)}let s=e._zod.parse(i,l);if(s instanceof Promise){if(l.async===!1)throw new Tr;return s.then(u=>r(u,n,l))}return r(s,n,l)}}Ae(e,"~standard",()=>({validate:r=>{try{let o=Wy(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Jy(e,r).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),mi=D("$ZodString",(e,t)=>{ye.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??gx(e._zod.bag),e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Qe=D("$ZodStringFormat",(e,t)=>{Zl.init(e,t),mi.init(e,t)}),Zx=D("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rx),Qe.init(e,t)}),Hx=D("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=pi(n))}else t.pattern??(t.pattern=pi());Qe.init(e,t)}),Vx=D("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=nx),Qe.init(e,t)}),Gx=D("$ZodURL",(e,t)=>{Qe.init(e,t),e._zod.check=a=>{try{let n=a.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),t.normalize?a.value=r.href:a.value=n;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),Wx=D("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ox()),Qe.init(e,t)}),Jx=D("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=tx),Qe.init(e,t)}),Xx=D("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Xy),Qe.init(e,t)}),Kx=D("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ky),Qe.init(e,t)}),Yx=D("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Yy),Qe.init(e,t)}),Qx=D("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Qy),Qe.init(e,t)}),eb=D("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ex),Qe.init(e,t)}),tb=D("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=hx(t)),Qe.init(e,t)}),ab=D("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=px),Qe.init(e,t)}),rb=D("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=mx(t)),Qe.init(e,t)}),nb=D("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ax),Qe.init(e,t)}),ob=D("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ix),Qe.init(e,t),e._zod.bag.format="ipv4"}),ib=D("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=lx),Qe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),lb=D("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=sx(t.delimiter)),Qe.init(e,t),e._zod.bag.format="mac"}),sb=D("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ux),Qe.init(e,t)}),ub=D("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=cx),Qe.init(e,t),e._zod.check=a=>{let n=a.value.split("/");try{if(n.length!==2)throw new Error;let[r,o]=n;if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${r}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function cb(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var db=D("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=dx),Qe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{cb(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function uE(e){if(!Sp.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return cb(a)}var fb=D("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Sp),Qe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{uE(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),pb=D("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fx),Qe.init(e,t)});function cE(e,t=null){try{let a=e.split(".");if(a.length!==3)return!1;let[n]=a;if(!n)return!1;let r=JSON.parse(atob(n));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var mb=D("$ZodJWT",(e,t)=>{Qe.init(e,t),e._zod.check=a=>{cE(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),hb=D("$ZodCustomStringFormat",(e,t)=>{Qe.init(e,t),e._zod.check=a=>{t.fn(a.value)||a.issues.push({code:"invalid_format",format:t.format,input:a.value,inst:e,continue:!t.abort})}}),Ep=D("$ZodNumber",(e,t)=>{ye.init(e,t),e._zod.pattern=e._zod.bag.pattern??wp,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=Number(a.value)}catch{}let r=a.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return a;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),a}}),gb=D("$ZodNumberFormat",(e,t)=>{kx.init(e,t),Ep.init(e,t)}),gc=D("$ZodBoolean",(e,t)=>{ye.init(e,t),e._zod.pattern=xx,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=!!a.value}catch{}let r=a.value;return typeof r=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),a}}),$p=D("$ZodBigInt",(e,t)=>{ye.init(e,t),e._zod.pattern=vx,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=BigInt(a.value)}catch{}return typeof a.value=="bigint"||a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:e}),a}}),vb=D("$ZodBigIntFormat",(e,t)=>{Cx.init(e,t),$p.init(e,t)}),yb=D("$ZodSymbol",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return typeof r=="symbol"||a.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),a}}),xb=D("$ZodUndefined",(e,t)=>{ye.init(e,t),e._zod.pattern=Sx,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(a,n)=>{let r=a.value;return typeof r>"u"||a.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),a}}),bb=D("$ZodNull",(e,t)=>{ye.init(e,t),e._zod.pattern=bx,e._zod.values=new Set([null]),e._zod.parse=(a,n)=>{let r=a.value;return r===null||a.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),a}}),Sb=D("$ZodAny",(e,t)=>{ye.init(e,t),e._zod.parse=a=>a}),wb=D("$ZodUnknown",(e,t)=>{ye.init(e,t),e._zod.parse=a=>a}),_b=D("$ZodNever",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)}),Ib=D("$ZodVoid",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return typeof r>"u"||a.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),a}}),kb=D("$ZodDate",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=new Date(a.value)}catch{}let r=a.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||a.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),a}});function YA(e,t,a){e.issues.length&&t.issues.push(...Ja(a,e.issues)),t.value[a]=e.value}var Cb=D("$ZodArray",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!Array.isArray(r))return a.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),a;a.value=Array(r.length);let o=[];for(let i=0;i<r.length;i++){let l=r[i],s=t.element._zod.run({value:l,issues:[]},n);s instanceof Promise?o.push(s.then(u=>YA(u,a,i))):YA(s,a,i)}return o.length?Promise.all(o).then(()=>a):a}});function Ap(e,t,a,n,r){if(e.issues.length){if(r&&!(a in n))return;t.issues.push(...Ja(a,e.issues))}e.value===void 0?a in n&&(t.value[a]=void 0):t.value[a]=e.value}function dE(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let a=qy(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function fE(e,t,a,n,r,o){let i=[],l=r.keySet,s=r.catchall._zod,u=s.def.type,c=s.optout==="optional";for(let d in t){if(l.has(d))continue;if(u==="never"){i.push(d);continue}let p=s.run({value:t[d],issues:[]},n);p instanceof Promise?e.push(p.then(f=>Ap(f,a,d,t,c))):Ap(p,a,d,t,c)}return i.length&&a.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>a):a}var pE=D("$ZodObject",(e,t)=>{if(ye.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}let n=Nl(()=>dE(t));Ae(e._zod,"propValues",()=>{let l=t.shape,s={};for(let u in l){let c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(let d of c.values)s[u].add(d)}}return s});let r=fi,o=t.catchall,i;e._zod.parse=(l,s)=>{i??(i=n.value);let u=l.value;if(!r(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let c=[],d=i.shape;for(let p of i.keys){let f=d[p],m=f._zod.optout==="optional",w=f._zod.run({value:u[p],issues:[]},s);w instanceof Promise?c.push(w.then(C=>Ap(C,l,p,u,m))):Ap(w,l,p,u,m)}return o?fE(c,u,l,s,n.value,e):c.length?Promise.all(c).then(()=>l):l}}),Tb=D("$ZodObjectJIT",(e,t)=>{pE.init(e,t);let a=e._zod.parse,n=Nl(()=>dE(t)),r=p=>{let f=new hc(["shape","payload","ctx"]),m=n.value,w=h=>{let b=up(h);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};f.write("const input = payload.value;");let C=Object.create(null),g=0;for(let h of m.keys)C[h]=`key_${g++}`;f.write("const newResult = {};");for(let h of m.keys){let b=C[h],L=up(h),_=p[h]?._zod?.optout==="optional";f.write(`const ${b} = ${w(h)};`),_?f.write(`
|
|
23
|
+
if (${b}.issues.length) {
|
|
24
|
+
if (${L} in input) {
|
|
25
|
+
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
26
|
+
...iss,
|
|
27
|
+
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
28
|
+
})));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (${b}.value === undefined) {
|
|
33
|
+
if (${L} in input) {
|
|
34
|
+
newResult[${L}] = undefined;
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
newResult[${L}] = ${b}.value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
`):f.write(`
|
|
41
|
+
if (${b}.issues.length) {
|
|
42
|
+
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
43
|
+
...iss,
|
|
44
|
+
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
45
|
+
})));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (${b}.value === undefined) {
|
|
49
|
+
if (${L} in input) {
|
|
50
|
+
newResult[${L}] = undefined;
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
newResult[${L}] = ${b}.value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");let x=f.compile();return(h,b)=>x(p,h,b)},o,i=fi,l=!rc.jitless,u=l&&Fy.value,c=t.catchall,d;e._zod.parse=(p,f)=>{d??(d=n.value);let m=p.value;return i(m)?l&&u&&f?.async===!1&&f.jitless!==!0?(o||(o=r(t.shape)),p=o(p,f),c?fE([],m,p,f,d,e):p):a(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function QA(e,t,a,n){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!So(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(o=>o.issues.map(i=>Da(i,n,Ct())))}),t)}var vc=D("$ZodUnion",(e,t)=>{ye.init(e,t),Ae(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Ae(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Ae(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Ae(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>ic(o.source)).join("|")})$`)}});let a=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(a)return n(r,o);let i=!1,l=[];for(let s of t.options){let u=s._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)l.push(u),i=!0;else{if(u.issues.length===0)return u;l.push(u)}}return i?Promise.all(l).then(s=>QA(s,r,e,o)):QA(l,r,e,o)}});function eE(e,t,a,n){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(o=>o.issues.map(i=>Da(i,n,Ct())))}):t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:[],inclusive:!1}),t)}var Lb=D("$ZodXor",(e,t)=>{vc.init(e,t),t.inclusive=!1;let a=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(a)return n(r,o);let i=!1,l=[];for(let s of t.options){let u=s._zod.run({value:r.value,issues:[]},o);u instanceof Promise?(l.push(u),i=!0):l.push(u)}return i?Promise.all(l).then(s=>eE(s,r,e,o)):eE(l,r,e,o)}}),Ab=D("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,vc.init(e,t);let a=e._zod.parse;Ae(e._zod,"propValues",()=>{let r={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,s]of Object.entries(i)){r[l]||(r[l]=new Set);for(let u of s)r[l].add(u)}}return r});let n=Nl(()=>{let r=t.options,o=new Map;for(let i of r){let l=i._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let s of l){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,i)}}return o});e._zod.parse=(r,o)=>{let i=r.value;if(!fi(i))return r.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),r;let l=n.value.get(i?.[t.discriminator]);return l?l._zod.run(r,o):t.unionFallback?a(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),r)}}),Eb=D("$ZodIntersection",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value,o=t.left._zod.run({value:r,issues:[]},n),i=t.right._zod.run({value:r,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([s,u])=>tE(a,s,u)):tE(a,o,i)}});function qx(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(bo(e)&&bo(t)){let a=Object.keys(t),n=Object.keys(e).filter(o=>a.indexOf(o)!==-1),r={...e,...t};for(let o of n){let i=qx(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};r[o]=i.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let n=0;n<e.length;n++){let r=e[n],o=t[n],i=qx(r,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a.push(i.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function tE(e,t,a){let n=new Map,r;for(let l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(let s of l.keys)n.has(s)||n.set(s,{}),n.get(s).l=!0}else e.issues.push(l);for(let l of a.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)n.has(s)||n.set(s,{}),n.get(s).r=!0;else e.issues.push(l);let o=[...n].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&r&&e.issues.push({...r,keys:o}),So(e))return e;let i=qx(t.value,a.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Mp=D("$ZodTuple",(e,t)=>{ye.init(e,t);let a=t.items;e._zod.parse=(n,r)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let i=[],l=[...a].reverse().findIndex(c=>c._zod.optin!=="optional"),s=l===-1?0:a.length-l;if(!t.rest){let c=o.length>a.length,d=o.length<s-1;if(c||d)return n.issues.push({...c?{code:"too_big",maximum:a.length,inclusive:!0}:{code:"too_small",minimum:a.length},input:o,inst:e,origin:"array"}),n}let u=-1;for(let c of a){if(u++,u>=o.length&&u>=s)continue;let d=c._zod.run({value:o[u],issues:[]},r);d instanceof Promise?i.push(d.then(p=>kp(p,n,u))):kp(d,n,u)}if(t.rest){let c=o.slice(a.length);for(let d of c){u++;let p=t.rest._zod.run({value:d,issues:[]},r);p instanceof Promise?i.push(p.then(f=>kp(f,n,u))):kp(p,n,u)}}return i.length?Promise.all(i).then(()=>n):n}});function kp(e,t,a){e.issues.length&&t.issues.push(...Ja(a,e.issues)),t.value[a]=e.value}var $b=D("$ZodRecord",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!bo(r))return a.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),a;let o=[],i=t.keyType._zod.values;if(i){a.value={};let l=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:r[u],issues:[]},n);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&a.issues.push(...Ja(u,d.issues)),a.value[u]=d.value})):(c.issues.length&&a.issues.push(...Ja(u,c.issues)),a.value[u]=c.value)}let s;for(let u in r)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&a.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{a.value={};for(let l of Reflect.ownKeys(r)){if(l==="__proto__")continue;let s=t.keyType._zod.run({value:l,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&wp.test(l)&&s.issues.length){let d=t.keyType._zod.run({value:Number(l),issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(s=d)}if(s.issues.length){t.mode==="loose"?a.value[l]=r[l]:a.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(d=>Da(d,n,Ct())),input:l,path:[l],inst:e});continue}let c=t.valueType._zod.run({value:r[l],issues:[]},n);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&a.issues.push(...Ja(l,d.issues)),a.value[s.value]=d.value})):(c.issues.length&&a.issues.push(...Ja(l,c.issues)),a.value[s.value]=c.value)}}return o.length?Promise.all(o).then(()=>a):a}}),Mb=D("$ZodMap",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),a;let o=[];a.value=new Map;for(let[i,l]of r){let s=t.keyType._zod.run({value:i,issues:[]},n),u=t.valueType._zod.run({value:l,issues:[]},n);s instanceof Promise||u instanceof Promise?o.push(Promise.all([s,u]).then(([c,d])=>{aE(c,d,a,i,r,e,n)})):aE(s,u,a,i,r,e,n)}return o.length?Promise.all(o).then(()=>a):a}});function aE(e,t,a,n,r,o,i){e.issues.length&&(lc.has(typeof n)?a.issues.push(...Ja(n,e.issues)):a.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(l=>Da(l,i,Ct()))})),t.issues.length&&(lc.has(typeof n)?a.issues.push(...Ja(n,t.issues)):a.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:n,issues:t.issues.map(l=>Da(l,i,Ct()))})),a.value.set(e.value,t.value)}var Db=D("$ZodSet",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Set))return a.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),a;let o=[];a.value=new Set;for(let i of r){let l=t.valueType._zod.run({value:i,issues:[]},n);l instanceof Promise?o.push(l.then(s=>rE(s,a))):rE(l,a)}return o.length?Promise.all(o).then(()=>a):a}});function rE(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var zb=D("$ZodEnum",(e,t)=>{ye.init(e,t);let a=oc(t.entries),n=new Set(a);e._zod.values=n,e._zod.pattern=new RegExp(`^(${a.filter(r=>lc.has(typeof r)).map(r=>typeof r=="string"?pr(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:a,input:i,inst:e}),r}}),Ob=D("$ZodLiteral",(e,t)=>{if(ye.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let a=new Set(t.values);e._zod.values=a,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?pr(n):n?pr(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{let o=n.value;return a.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),Rb=D("$ZodFile",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return r instanceof File||a.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),a}}),Pb=D("$ZodTransform",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new vo(e.constructor.name);let r=t.transform(a.value,a);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(i=>(a.value=i,a));if(r instanceof Promise)throw new Tr;return a.value=r,a}});function nE(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Dp=D("$ZodOptional",(e,t)=>{ye.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ae(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${ic(a.source)})?$`):void 0}),e._zod.parse=(a,n)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>nE(o,a.value)):nE(r,a.value)}return a.value===void 0?a:t.innerType._zod.run(a,n)}}),Nb=D("$ZodExactOptional",(e,t)=>{Dp.init(e,t),Ae(e._zod,"values",()=>t.innerType._zod.values),Ae(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(a,n)=>t.innerType._zod.run(a,n)}),Ub=D("$ZodNullable",(e,t)=>{ye.init(e,t),Ae(e._zod,"optin",()=>t.innerType._zod.optin),Ae(e._zod,"optout",()=>t.innerType._zod.optout),Ae(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${ic(a.source)}|null)$`):void 0}),Ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,n)=>a.value===null?a:t.innerType._zod.run(a,n)}),Fb=D("$ZodDefault",(e,t)=>{ye.init(e,t),e._zod.optin="optional",Ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{if(n.direction==="backward")return t.innerType._zod.run(a,n);if(a.value===void 0)return a.value=t.defaultValue,a;let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>oE(o,t)):oE(r,t)}});function oE(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var jb=D("$ZodPrefault",(e,t)=>{ye.init(e,t),e._zod.optin="optional",Ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>(n.direction==="backward"||a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,n))}),Bb=D("$ZodNonOptional",(e,t)=>{ye.init(e,t),Ae(e._zod,"values",()=>{let a=t.innerType._zod.values;return a?new Set([...a].filter(n=>n!==void 0)):void 0}),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>iE(o,e)):iE(r,e)}});function iE(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 qb=D("$ZodSuccess",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new vo("ZodSuccess");let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.issues.length===0,a)):(a.value=r.issues.length===0,a)}}),Zb=D("$ZodCatch",(e,t)=>{ye.init(e,t),Ae(e._zod,"optin",()=>t.innerType._zod.optin),Ae(e._zod,"optout",()=>t.innerType._zod.optout),Ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{if(n.direction==="backward")return t.innerType._zod.run(a,n);let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.value,o.issues.length&&(a.value=t.catchValue({...a,error:{issues:o.issues.map(i=>Da(i,n,Ct()))},input:a.value}),a.issues=[]),a)):(a.value=r.value,r.issues.length&&(a.value=t.catchValue({...a,error:{issues:r.issues.map(o=>Da(o,n,Ct()))},input:a.value}),a.issues=[]),a)}}),Hb=D("$ZodNaN",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>((typeof a.value!="number"||!Number.isNaN(a.value))&&a.issues.push({input:a.value,inst:e,expected:"nan",code:"invalid_type"}),a)}),Vb=D("$ZodPipe",(e,t)=>{ye.init(e,t),Ae(e._zod,"values",()=>t.in._zod.values),Ae(e._zod,"optin",()=>t.in._zod.optin),Ae(e._zod,"optout",()=>t.out._zod.optout),Ae(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,n)=>{if(n.direction==="backward"){let o=t.out._zod.run(a,n);return o instanceof Promise?o.then(i=>Cp(i,t.in,n)):Cp(o,t.in,n)}let r=t.in._zod.run(a,n);return r instanceof Promise?r.then(o=>Cp(o,t.out,n)):Cp(r,t.out,n)}});function Cp(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},a)}var yc=D("$ZodCodec",(e,t)=>{ye.init(e,t),Ae(e._zod,"values",()=>t.in._zod.values),Ae(e._zod,"optin",()=>t.in._zod.optin),Ae(e._zod,"optout",()=>t.out._zod.optout),Ae(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,n)=>{if((n.direction||"forward")==="forward"){let o=t.in._zod.run(a,n);return o instanceof Promise?o.then(i=>Tp(i,t,n)):Tp(o,t,n)}else{let o=t.out._zod.run(a,n);return o instanceof Promise?o.then(i=>Tp(i,t,n)):Tp(o,t,n)}}});function Tp(e,t,a){if(e.issues.length)return e.aborted=!0,e;if((a.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>Lp(e,o,t.out,a)):Lp(e,r,t.out,a)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>Lp(e,o,t.in,a)):Lp(e,r,t.in,a)}}function Lp(e,t,a,n){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:t,issues:e.issues},n)}var Gb=D("$ZodReadonly",(e,t)=>{ye.init(e,t),Ae(e._zod,"propValues",()=>t.innerType._zod.propValues),Ae(e._zod,"values",()=>t.innerType._zod.values),Ae(e._zod,"optin",()=>t.innerType?._zod?.optin),Ae(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(a,n)=>{if(n.direction==="backward")return t.innerType._zod.run(a,n);let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(lE):lE(r)}});function lE(e){return e.value=Object.freeze(e.value),e}var Wb=D("$ZodTemplateLiteral",(e,t)=>{ye.init(e,t);let a=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let r=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=r.startsWith("^")?1:0,i=r.endsWith("$")?r.length-1:r.length;a.push(r.slice(o,i))}else if(n===null||By.has(typeof n))a.push(pr(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${a.join("")}$`),e._zod.parse=(n,r)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),Jb=D("$ZodFunction",(e,t)=>(ye.init(e,t),e._def=t,e._zod.def=t,e.implement=a=>{if(typeof a!="function")throw new Error("implement() must be called with a function");return function(...n){let r=e._def.input?dp(e._def.input,n):n,o=Reflect.apply(a,this,r);return e._def.output?dp(e._def.output,o):o}},e.implementAsync=a=>{if(typeof a!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await fp(e._def.input,n):n,o=await Reflect.apply(a,this,r);return e._def.output?await fp(e._def.output,o):o}},e._zod.parse=(a,n)=>typeof a.value!="function"?(a.issues.push({code:"invalid_type",expected:"function",input:a.value,inst:e}),a):(e._def.output&&e._def.output._zod.def.type==="promise"?a.value=e.implementAsync(a.value):a.value=e.implement(a.value),a),e.input=(...a)=>{let n=e.constructor;return Array.isArray(a[0])?new n({type:"function",input:new Mp({type:"tuple",items:a[0],rest:a[1]}),output:e._def.output}):new n({type:"function",input:a[0],output:e._def.output})},e.output=a=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:a})},e)),Xb=D("$ZodPromise",(e,t)=>{ye.init(e,t),e._zod.parse=(a,n)=>Promise.resolve(a.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),Kb=D("$ZodLazy",(e,t)=>{ye.init(e,t),Ae(e._zod,"innerType",()=>t.getter()),Ae(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ae(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ae(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ae(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(a,n)=>e._zod.innerType._zod.run(a,n)}),Yb=D("$ZodCustom",(e,t)=>{nt.init(e,t),ye.init(e,t),e._zod.parse=(a,n)=>a,e._zod.check=a=>{let n=a.value,r=t.fn(n);if(r instanceof Promise)return r.then(o=>sE(o,a,n,e));sE(r,a,n,e)}});function sE(e,t,a,n){if(!e){let r={code:"custom",input:a,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(r.params=n._zod.def.params),t.issues.push(Ul(r))}}var bc={};_r(bc,{ar:()=>mE,az:()=>hE,be:()=>vE,bg:()=>yE,ca:()=>xE,cs:()=>bE,da:()=>SE,de:()=>wE,en:()=>zp,eo:()=>_E,es:()=>IE,fa:()=>kE,fi:()=>CE,fr:()=>TE,frCA:()=>LE,he:()=>AE,hu:()=>EE,hy:()=>ME,id:()=>DE,is:()=>zE,it:()=>OE,ja:()=>RE,ka:()=>PE,kh:()=>NE,km:()=>Op,ko:()=>UE,lt:()=>jE,mk:()=>BE,ms:()=>qE,nl:()=>ZE,no:()=>HE,ota:()=>VE,pl:()=>WE,ps:()=>GE,pt:()=>JE,ru:()=>KE,sl:()=>YE,sv:()=>QE,ta:()=>e2,th:()=>t2,tr:()=>a2,ua:()=>r2,uk:()=>Rp,ur:()=>n2,uz:()=>o2,vi:()=>i2,yo:()=>u2,zhCN:()=>l2,zhTW:()=>s2});var h6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.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 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${Z(r.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: ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${i.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.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 "${r.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${z(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function mE(){return{localeError:h6()}}var g6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${l}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Z(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${a[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${z(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function hE(){return{localeError:g6()}}function gE(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var v6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=gE(l,i.unit.one,i.unit.few,i.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=gE(l,i.unit.one,i.unit.few,i.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${z(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function vE(){return{localeError:v6()}}var y6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.maximum.toString()} ${i.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${z(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function yE(){return{localeError:y6()}}var x6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${l}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${Z(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${z(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",i=t(r.origin);return i?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(r.origin);return i?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${a[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function xE(){return{localeError:x6()}}var b6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${l}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Z(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${a[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${z(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function bE(){return{localeError:b6()}}var S6=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${l}`:`Ugyldigt input: forventede ${o}, fik ${l}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${Z(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin),l=n[r.origin]??r.origin;return i?`For stor: forventede ${l??"value"} ${i.verb} ${o} ${r.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin),l=n[r.origin]??r.origin;return i?`For lille: forventede ${l} ${i.verb} ${o} ${r.minimum.toString()} ${i.unit}`:`For lille: forventede ${l} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${a[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${z(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function SE(){return{localeError:S6()}}var w6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${l}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Z(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${a[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${z(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function wE(){return{localeError:w6()}}var _6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return`Invalid input: expected ${o}, received ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${Z(r.values[0])}`:`Invalid option: expected one of ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${i.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${a[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function zp(){return{localeError:_6()}}var I6=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${l}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${Z(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${a[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function _E(){return{localeError:I6()}}var k6=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let a={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"},n={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 r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${l}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${Z(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin),l=n[r.origin]??r.origin;return i?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin),l=n[r.origin]??r.origin;return i?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${o}${r.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${a[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function IE(){return{localeError:k6()}}var C6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${Z(r.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 ${z(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${a[o.format]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${z(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function kE(){return{localeError:C6()}}var T6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${l}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Z(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${a[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${z(r.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 CE(){return{localeError:T6()}}var L6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${l} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${Z(r.values[0])} attendu`:`Option invalide : une valeur parmi ${z(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Trop grand : ${r.origin??"valeur"} doit ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Trop petit : ${r.origin} doit ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${a[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${z(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function TE(){return{localeError:L6()}}var A6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${l}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${Z(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",i=t(r.origin);return i?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",i=t(r.origin);return i?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${a[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${z(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function LE(){return{localeError:A6()}}var E6=()=>{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"}},a=u=>u?e[u]:void 0,n=u=>{let c=a(u);return c?c.label:u??e.unknown.label},r=u=>`\u05D4${n(u)}`,o=u=>(a(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=u=>u?t[u]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,d=s[c??""]??n(c),p=V(u.input),f=s[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${Z(u.values[0])}`;let c=u.values.map(f=>Z(f));if(u.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 ${c[0]} \u05D0\u05D5 ${c[1]}`;let d=c[c.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 ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let c=i(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",w=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let p=u.inclusive?"<=":"<",f=o(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.maximum.toString()}`}case"too_small":{let c=i(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let C=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${C}`}let w=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let p=u.inclusive?">=":">",f=o(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.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 ${c.pattern}`;let d=l[c.format],p=d?.label??c.format,m=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${m}`}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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${z(u.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${r(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function AE(){return{localeError:E6()}}var $6=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Z(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${a[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function EE(){return{localeError:$6()}}function $E(e,t,a){return Math.abs(e)===1?t:a}function Hl(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],a=e[e.length-1];return e+(t.includes(a)?"\u0576":"\u0568")}var M6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.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 ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=$E(l,i.unit.one,i.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 ${Hl(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Hl(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=$E(l,i.unit.one,i.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 ${Hl(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Hl(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${a[o.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${z(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Hl(r.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 ${Hl(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function ME(){return{localeError:M6()}}var D6=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${o}, diterima ${l}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${Z(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${a[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function DE(){return{localeError:D6()}}var z6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${Z(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${a[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${z(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function zE(){return{localeError:z6()}}var O6=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${l}`:`Input non valido: atteso ${o}, ricevuto ${l}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${Z(r.values[0])}`:`Opzione non valida: atteso uno tra ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${a[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${z(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function OE(){return{localeError:O6()}}var R6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${Z(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${z(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(r.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(r.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${a[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${z(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function RE(){return{localeError:R6()}}var P6=()=>{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(r){return e[r]??null}let a={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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},n={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.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 ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return r.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${Z(r.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 ${z(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\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 ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${a[o.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${z(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function PE(){return{localeError:P6()}}var N6=()=>{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(r){return e[r]??null}let a={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"},n={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 r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.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 ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${z(r.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 ${r.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 ${r.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 Op(){return{localeError:N6()}}function NE(){return Op()}var U6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Z(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${z(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${i}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${a[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${z(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function UE(){return{localeError:U6()}}var xc=e=>e.charAt(0).toUpperCase()+e.slice(1);function FE(e){let t=Math.abs(e),a=t%10,n=t%100;return n>=11&&n<=19||a===0?"many":a===1?"one":"few"}var F6=()=>{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(r,o,i,l){let s=e[r]??null;return s===null?s:{unit:s.unit[o],verb:s.verb[l][i?"inclusive":"notInclusive"]}}let a={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"},n={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 r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${Z(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${z(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=n[r.origin]??r.origin,i=t(r.origin,FE(Number(r.maximum)),r.inclusive??!1,"smaller");if(i?.verb)return`${xc(o??r.origin??"reik\u0161m\u0117")} ${i.verb} ${r.maximum.toString()} ${i.unit??"element\u0173"}`;let l=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${xc(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${r.maximum.toString()} ${i?.unit}`}case"too_small":{let o=n[r.origin]??r.origin,i=t(r.origin,FE(Number(r.minimum)),r.inclusive??!1,"bigger");if(i?.verb)return`${xc(o??r.origin??"reik\u0161m\u0117")} ${i.verb} ${r.minimum.toString()} ${i.unit??"element\u0173"}`;let l=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${xc(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${r.minimum.toString()} ${i?.unit}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${a[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${z(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=n[r.origin]??r.origin;return`${xc(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function jE(){return{localeError:F6()}}var j6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${i.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`${r.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"}: ${z(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function BE(){return{localeError:j6()}}var B6=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${l}`:`Input tidak sah: dijangka ${o}, diterima ${l}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${Z(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: dijangka ${r.origin??"nilai"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: dijangka ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${a[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${z(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function qE(){return{localeError:B6()}}var q6=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${o}, ontving ${l}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${Z(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin),l=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return i?`Te ${l}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${l}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin),l=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return i?`Te ${l}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${l}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${a[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function ZE(){return{localeError:q6()}}var Z6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${l}`:`Ugyldig input: forventet ${o}, fikk ${l}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${Z(r.values[0])}`:`Ugyldig valg: forventet en av ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${a[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${z(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function HE(){return{localeError:Z6()}}var H6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${l}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${Z(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${a[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function VE(){return{localeError:H6()}}var V6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${Z(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${z(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${a[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${z(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function GE(){return{localeError:V6()}}var G6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${l}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Z(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${a[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function WE(){return{localeError:G6()}}var W6=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${l}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${Z(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${a[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${z(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function JE(){return{localeError:W6()}}function XE(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var J6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=XE(l,i.unit.one,i.unit.few,i.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=XE(l,i.unit.one,i.unit.few,i.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${z(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.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 KE(){return{localeError:J6()}}var X6=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${l}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Z(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${a[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${z(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function YE(){return{localeError:X6()}}var K6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${l}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Z(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${a[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${z(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function QE(){return{localeError:K6()}}var Y6=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.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 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Z(r.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 ${z(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${i.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\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 ${r.origin} ${o}${r.minimum.toString()} ${i.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 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.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 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${z(r.keys,", ")}`;case"invalid_key":return`${r.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`${r.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 e2(){return{localeError:Y6()}}var Q6=()=>{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(r){return e[r]??null}let a={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"},n={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 r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.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 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${a[o.format]??r.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 ${r.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: ${z(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function t2(){return{localeError:Q6()}}var eU=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${l}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Z(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${a[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${z(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function a2(){return{localeError:eU()}}var tU=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.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 ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${Z(r.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 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${o}${r.maximum.toString()} ${i.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${z(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.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 Rp(){return{localeError:tU()}}function r2(){return Rp()}var aU=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${Z(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${z(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${z(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function n2(){return{localeError:aU()}}var rU=()=>{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"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${l}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${Z(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${a[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${z(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function o2(){return{localeError:rU()}}var nU=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${Z(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${z(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function i2(){return{localeError:nU()}}var oU=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Z(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${a[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${z(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function l2(){return{localeError:oU()}}var iU=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Z(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${z(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function s2(){return{localeError:iU()}}var lU=()=>{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(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=V(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${Z(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${z(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${i.verb} ${o}${r.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${i.verb} ${o}${r.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${a[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${z(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function u2(){return{localeError:lU()}}var c2,Qb=Symbol("ZodOutput"),eS=Symbol("ZodInput"),Pp=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...a){let n=a[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){let a=t._zod.parent;if(a){let n={...this.get(a)??{}};delete n.id;let r={...n,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Np(){return new Pp}(c2=globalThis).__zod_globalRegistry??(c2.__zod_globalRegistry=Np());var ia=globalThis.__zod_globalRegistry;function tS(e,t){return new e({type:"string",...X(t)})}function aS(e,t){return new e({type:"string",coerce:!0,...X(t)})}function Up(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...X(t)})}function Sc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...X(t)})}function Fp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...X(t)})}function jp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(t)})}function Bp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(t)})}function qp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(t)})}function wc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...X(t)})}function Zp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...X(t)})}function Hp(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(t)})}function Vp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...X(t)})}function Gp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(t)})}function Wp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...X(t)})}function Jp(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...X(t)})}function Xp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(t)})}function Kp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(t)})}function Yp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(t)})}function rS(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...X(t)})}function Qp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(t)})}function em(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(t)})}function tm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...X(t)})}function am(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...X(t)})}function rm(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...X(t)})}function nm(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...X(t)})}var nS={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function oS(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(t)})}function iS(e,t){return new e({type:"string",format:"date",check:"string_format",...X(t)})}function lS(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...X(t)})}function sS(e,t){return new e({type:"string",format:"duration",check:"string_format",...X(t)})}function uS(e,t){return new e({type:"number",checks:[],...X(t)})}function cS(e,t){return new e({type:"number",coerce:!0,checks:[],...X(t)})}function dS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...X(t)})}function fS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...X(t)})}function pS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...X(t)})}function mS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...X(t)})}function hS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...X(t)})}function gS(e,t){return new e({type:"boolean",...X(t)})}function vS(e,t){return new e({type:"boolean",coerce:!0,...X(t)})}function yS(e,t){return new e({type:"bigint",...X(t)})}function xS(e,t){return new e({type:"bigint",coerce:!0,...X(t)})}function bS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...X(t)})}function SS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...X(t)})}function wS(e,t){return new e({type:"symbol",...X(t)})}function _S(e,t){return new e({type:"undefined",...X(t)})}function IS(e,t){return new e({type:"null",...X(t)})}function kS(e){return new e({type:"any"})}function CS(e){return new e({type:"unknown"})}function TS(e,t){return new e({type:"never",...X(t)})}function LS(e,t){return new e({type:"void",...X(t)})}function AS(e,t){return new e({type:"date",...X(t)})}function ES(e,t){return new e({type:"date",coerce:!0,...X(t)})}function $S(e,t){return new e({type:"nan",...X(t)})}function Hr(e,t){return new _p({check:"less_than",...X(t),value:e,inclusive:!1})}function Xa(e,t){return new _p({check:"less_than",...X(t),value:e,inclusive:!0})}function Vr(e,t){return new Ip({check:"greater_than",...X(t),value:e,inclusive:!1})}function ba(e,t){return new Ip({check:"greater_than",...X(t),value:e,inclusive:!0})}function om(e){return Vr(0,e)}function im(e){return Hr(0,e)}function lm(e){return Xa(0,e)}function sm(e){return ba(0,e)}function wo(e,t){return new Ix({check:"multiple_of",...X(t),value:e})}function _o(e,t){return new Tx({check:"max_size",...X(t),maximum:e})}function Gr(e,t){return new Lx({check:"min_size",...X(t),minimum:e})}function hi(e,t){return new Ax({check:"size_equals",...X(t),size:e})}function gi(e,t){return new Ex({check:"max_length",...X(t),maximum:e})}function Tn(e,t){return new $x({check:"min_length",...X(t),minimum:e})}function vi(e,t){return new Mx({check:"length_equals",...X(t),length:e})}function Vl(e,t){return new Dx({check:"string_format",format:"regex",...X(t),pattern:e})}function Gl(e){return new zx({check:"string_format",format:"lowercase",...X(e)})}function Wl(e){return new Ox({check:"string_format",format:"uppercase",...X(e)})}function Jl(e,t){return new Rx({check:"string_format",format:"includes",...X(t),includes:e})}function Xl(e,t){return new Px({check:"string_format",format:"starts_with",...X(t),prefix:e})}function Kl(e,t){return new Nx({check:"string_format",format:"ends_with",...X(t),suffix:e})}function um(e,t,a){return new Ux({check:"property",property:e,schema:t,...X(a)})}function Yl(e,t){return new Fx({check:"mime_type",mime:e,...X(t)})}function Lr(e){return new jx({check:"overwrite",tx:e})}function Ql(e){return Lr(t=>t.normalize(e))}function es(){return Lr(e=>e.trim())}function ts(){return Lr(e=>e.toLowerCase())}function as(){return Lr(e=>e.toUpperCase())}function rs(){return Lr(e=>Uy(e))}function MS(e,t,a){return new e({type:"array",element:t,...X(a)})}function uU(e,t,a){return new e({type:"union",options:t,...X(a)})}function cU(e,t,a){return new e({type:"union",options:t,inclusive:!1,...X(a)})}function dU(e,t,a,n){return new e({type:"union",options:a,discriminator:t,...X(n)})}function fU(e,t,a){return new e({type:"intersection",left:t,right:a})}function pU(e,t,a,n){let r=a instanceof ye,o=r?n:a,i=r?a:null;return new e({type:"tuple",items:t,rest:i,...X(o)})}function mU(e,t,a,n){return new e({type:"record",keyType:t,valueType:a,...X(n)})}function hU(e,t,a,n){return new e({type:"map",keyType:t,valueType:a,...X(n)})}function gU(e,t,a){return new e({type:"set",valueType:t,...X(a)})}function vU(e,t,a){let n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:n,...X(a)})}function yU(e,t,a){return new e({type:"enum",entries:t,...X(a)})}function xU(e,t,a){return new e({type:"literal",values:Array.isArray(t)?t:[t],...X(a)})}function DS(e,t){return new e({type:"file",...X(t)})}function bU(e,t){return new e({type:"transform",transform:t})}function SU(e,t){return new e({type:"optional",innerType:t})}function wU(e,t){return new e({type:"nullable",innerType:t})}function _U(e,t,a){return new e({type:"default",innerType:t,get defaultValue(){return typeof a=="function"?a():jy(a)}})}function IU(e,t,a){return new e({type:"nonoptional",innerType:t,...X(a)})}function kU(e,t){return new e({type:"success",innerType:t})}function CU(e,t,a){return new e({type:"catch",innerType:t,catchValue:typeof a=="function"?a:()=>a})}function TU(e,t,a){return new e({type:"pipe",in:t,out:a})}function LU(e,t){return new e({type:"readonly",innerType:t})}function AU(e,t,a){return new e({type:"template_literal",parts:t,...X(a)})}function EU(e,t){return new e({type:"lazy",getter:t})}function $U(e,t){return new e({type:"promise",innerType:t})}function zS(e,t,a){let n=X(a);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function OS(e,t,a){return new e({type:"custom",check:"custom",fn:t,...X(a)})}function RS(e){let t=d2(a=>(a.addIssue=n=>{if(typeof n=="string")a.issues.push(Ul(n,a.value,t._zod.def));else{let r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=a.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),a.issues.push(Ul(r))}},e(a.value,a)));return t}function d2(e,t){let a=new nt({check:"custom",...X(t)});return a._zod.check=e,a}function PS(e){let t=new nt({check:"describe"});return t._zod.onattach=[a=>{let n=ia.get(a)??{};ia.add(a,{...n,description:e})}],t._zod.check=()=>{},t}function NS(e){let t=new nt({check:"meta"});return t._zod.onattach=[a=>{let n=ia.get(a)??{};ia.add(a,{...n,...e})}],t._zod.check=()=>{},t}function US(e,t){let a=X(t),n=a.truthy??["true","1","yes","on","y","enabled"],r=a.falsy??["false","0","no","off","n","disabled"];a.case!=="sensitive"&&(n=n.map(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(n),i=new Set(r),l=e.Codec??yc,s=e.Boolean??gc,u=e.String??mi,c=new u({type:"string",error:a.error}),d=new s({type:"boolean",error:a.error}),p=new l({type:"pipe",in:c,out:d,transform:((f,m)=>{let w=f;return a.case!=="sensitive"&&(w=w.toLowerCase()),o.has(w)?!0:i.has(w)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:m.value,inst:p,continue:!1}),{})}),reverseTransform:((f,m)=>f===!0?n[0]||"true":r[0]||"false"),error:a.error});return p}function ns(e,t,a,n={}){let r=X(n),o={...X(n),check:"string_format",type:"string",format:t,fn:typeof a=="function"?a:l=>a.test(l),...r};return a instanceof RegExp&&(o.pattern=a),new e(o)}function Io(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??ia,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 Ze(e,t,a={path:[],schemaPath:[]}){var n;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,a.schemaPath.includes(e)&&(o.cycle=a.path),o.schema;let i={schema:{},count:1,cycle:void 0,path:a.path};t.seen.set(e,i);let l=e._zod.toJSONSchema?.();if(l)i.schema=l;else{let c={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,c);else{let p=i.schema,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,p,c)}let d=e._zod.parent;d&&(i.ref||(i.ref=d),Ze(d,t,c),t.seen.get(d).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Sa(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function ko(e,t){let a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let i of e.seen.entries()){let l=e.metadataRegistry.get(i[0])?.id;if(l){let s=n.get(l);if(s&&s!==i[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(l,i[0])}}let r=i=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(i[0])?.id,p=e.external.uri??(m=>m);if(d)return{ref:p(d)};let f=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=f,{defId:f,ref:`${p("__shared")}#/${l}/${f}`}}if(i[1]===a)return{ref:"#"};let u=`#/${l}/`,c=i[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},o=i=>{if(i[1].schema.$ref)return;let l=i[1],{ref:s,defId:u}=r(i);l.def={...l.schema},u&&(l.defId=u);let c=l.schema;for(let d in c)delete c[d];c.$ref=s};if(e.cycles==="throw")for(let i of e.seen.entries()){let l=i[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
57
|
+
|
|
58
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let l=i[1];if(t===i[0]){o(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(t!==i[0]&&u){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(l.cycle){o(i);continue}if(l.count>1&&e.reused==="ref"){o(i);continue}}}function Co(e,t){let a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let l=e.seen.get(i);if(l.ref===null)return;let s=l.def??l.schema,u={...s},c=l.ref;if(l.ref=null,c){n(c);let p=e.seen.get(c),f=p.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(f)):Object.assign(s,f),Object.assign(s,u),i._zod.parent===c)for(let w in s)w==="$ref"||w==="allOf"||w in u||delete s[w];if(f.$ref&&p.def)for(let w in s)w==="$ref"||w==="allOf"||w in p.def&&JSON.stringify(s[w])===JSON.stringify(p.def[w])&&delete s[w]}let d=i._zod.parent;if(d&&d!==c){n(d);let p=e.seen.get(d);if(p?.schema.$ref&&(s.$ref=p.schema.$ref,p.def))for(let f in s)f==="$ref"||f==="allOf"||f in p.def&&JSON.stringify(s[f])===JSON.stringify(p.def[f])&&delete s[f]}e.override({zodSchema:i,jsonSchema:s,path:l.path??[]})};for(let i of[...e.seen.entries()].reverse())n(i[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(i)}Object.assign(r,a.def??a.schema);let o=e.external?.defs??{};for(let i of e.seen.entries()){let l=i[1];l.def&&l.defId&&(o[l.defId]=l.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let i=JSON.parse(JSON.stringify(r));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:os(t,"input",e.processors),output:os(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function Sa(e,t){let a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Sa(n.element,a);if(n.type==="set")return Sa(n.valueType,a);if(n.type==="lazy")return Sa(n.getter(),a);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Sa(n.innerType,a);if(n.type==="intersection")return Sa(n.left,a)||Sa(n.right,a);if(n.type==="record"||n.type==="map")return Sa(n.keyType,a)||Sa(n.valueType,a);if(n.type==="pipe")return Sa(n.in,a)||Sa(n.out,a);if(n.type==="object"){for(let r in n.shape)if(Sa(n.shape[r],a))return!0;return!1}if(n.type==="union"){for(let r of n.options)if(Sa(r,a))return!0;return!1}if(n.type==="tuple"){for(let r of n.items)if(Sa(r,a))return!0;return!!(n.rest&&Sa(n.rest,a))}return!1}var FS=(e,t={})=>a=>{let n=Io({...a,processors:t});return Ze(e,n),ko(n,e),Co(n,e)},os=(e,t,a={})=>n=>{let{libraryOptions:r,target:o}=n??{},i=Io({...r??{},target:o,io:t,processors:a});return Ze(e,i),ko(i,e),Co(i,e)};var MU={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},jS=(e,t,a,n)=>{let r=a;r.type="string";let{minimum:o,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof i=="number"&&(r.maxLength=i),l&&(r.format=MU[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),u&&(r.contentEncoding=u),s&&s.size>0){let c=[...s];c.length===1?r.pattern=c[0].source:c.length>1&&(r.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},BS=(e,t,a,n)=>{let r=a,{minimum:o,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=c,r.exclusiveMinimum=!0):r.exclusiveMinimum=c),typeof o=="number"&&(r.minimum=o,typeof c=="number"&&t.target!=="draft-04"&&(c>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u),typeof i=="number"&&(r.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete r.maximum:delete r.exclusiveMaximum)),typeof s=="number"&&(r.multipleOf=s)},qS=(e,t,a,n)=>{a.type="boolean"},ZS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},HS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},VS=(e,t,a,n)=>{t.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},GS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},WS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},JS=(e,t,a,n)=>{a.not={}},XS=(e,t,a,n)=>{},KS=(e,t,a,n)=>{},YS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},QS=(e,t,a,n)=>{let r=e._zod.def,o=oc(r.entries);o.every(i=>typeof i=="number")&&(a.type="number"),o.every(i=>typeof i=="string")&&(a.type="string"),a.enum=o},ew=(e,t,a,n)=>{let r=e._zod.def,o=[];for(let i of r.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(i))}else o.push(i);if(o.length!==0)if(o.length===1){let i=o[0];a.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?a.enum=[i]:a.const=i}else o.every(i=>typeof i=="number")&&(a.type="number"),o.every(i=>typeof i=="string")&&(a.type="string"),o.every(i=>typeof i=="boolean")&&(a.type="boolean"),o.every(i=>i===null)&&(a.type="null"),a.enum=o},tw=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},aw=(e,t,a,n)=>{let r=a,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},rw=(e,t,a,n)=>{let r=a,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:l,mime:s}=e._zod.bag;i!==void 0&&(o.minLength=i),l!==void 0&&(o.maxLength=l),s?s.length===1?(o.contentMediaType=s[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=s.map(u=>({contentMediaType:u}))):Object.assign(r,o)},nw=(e,t,a,n)=>{a.type="boolean"},ow=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},iw=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},lw=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},sw=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},uw=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},cw=(e,t,a,n)=>{let r=a,o=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(r.minItems=i),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=Ze(o.element,t,{...n,path:[...n.path,"items"]})},dw=(e,t,a,n)=>{let r=a,o=e._zod.def;r.type="object",r.properties={};let i=o.shape;for(let u in i)r.properties[u]=Ze(i[u],t,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(i)),s=new Set([...l].filter(u=>{let c=o.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));s.size>0&&(r.required=Array.from(s)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=Ze(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},dm=(e,t,a,n)=>{let r=e._zod.def,o=r.inclusive===!1,i=r.options.map((l,s)=>Ze(l,t,{...n,path:[...n.path,o?"oneOf":"anyOf",s]}));o?a.oneOf=i:a.anyOf=i},fw=(e,t,a,n)=>{let r=e._zod.def,o=Ze(r.left,t,{...n,path:[...n.path,"allOf",0]}),i=Ze(r.right,t,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(o)?o.allOf:[o],...l(i)?i.allOf:[i]];a.allOf=s},pw=(e,t,a,n)=>{let r=a,o=e._zod.def;r.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=o.items.map((p,f)=>Ze(p,t,{...n,path:[...n.path,i,f]})),u=o.rest?Ze(o.rest,t,{...n,path:[...n.path,l,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:s},u&&r.items.anyOf.push(u),r.minItems=s.length,u||(r.maxItems=s.length)):(r.items=s,u&&(r.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(r.minItems=c),typeof d=="number"&&(r.maxItems=d)},mw=(e,t,a,n)=>{let r=a,o=e._zod.def;r.type="object";let i=o.keyType,s=i._zod.bag?.patterns;if(o.mode==="loose"&&s&&s.size>0){let c=Ze(o.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});r.patternProperties={};for(let d of s)r.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Ze(o.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=Ze(o.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let u=i._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(r.required=c)}},hw=(e,t,a,n)=>{let r=e._zod.def,o=Ze(r.innerType,t,n),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=r.innerType,a.nullable=!0):a.anyOf=[o,{type:"null"}]},gw=(e,t,a,n)=>{let r=e._zod.def;Ze(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},vw=(e,t,a,n)=>{let r=e._zod.def;Ze(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,a.default=JSON.parse(JSON.stringify(r.defaultValue))},yw=(e,t,a,n)=>{let r=e._zod.def;Ze(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},xw=(e,t,a,n)=>{let r=e._zod.def;Ze(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType;let i;try{i=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=i},bw=(e,t,a,n)=>{let r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;Ze(o,t,n);let i=t.seen.get(e);i.ref=o},Sw=(e,t,a,n)=>{let r=e._zod.def;Ze(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,a.readOnly=!0},ww=(e,t,a,n)=>{let r=e._zod.def;Ze(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},fm=(e,t,a,n)=>{let r=e._zod.def;Ze(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},_w=(e,t,a,n)=>{let r=e._zod.innerType;Ze(r,t,n);let o=t.seen.get(e);o.ref=r},cm={string:jS,number:BS,boolean:qS,bigint:ZS,symbol:HS,null:VS,undefined:GS,void:WS,never:JS,any:XS,unknown:KS,date:YS,enum:QS,literal:ew,nan:tw,template_literal:aw,file:rw,success:nw,custom:ow,function:iw,transform:lw,map:sw,set:uw,array:cw,object:dw,union:dm,intersection:fw,tuple:pw,record:mw,nullable:hw,nonoptional:gw,default:vw,prefault:yw,catch:xw,pipe:bw,readonly:Sw,promise:ww,optional:fm,lazy:_w};function is(e,t){if("_idmap"in e){let n=e,r=Io({...t,processors:cm}),o={};for(let s of n._idmap.entries()){let[u,c]=s;Ze(c,r)}let i={},l={registry:n,uri:t?.uri,defs:o};r.external=l;for(let s of n._idmap.entries()){let[u,c]=s;ko(r,c),i[u]=Co(r,c)}if(Object.keys(o).length>0){let s=r.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:o}}return{schemas:i}}let a=Io({...t,processors:cm});return Ze(e,a),ko(a,e),Co(a,e)}var pm=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 a=t?.target??"draft-2020-12";a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),this.ctx=Io({processors:cm,target:a,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,a={path:[],schemaPath:[]}){return Ze(t,this.ctx,a)}emit(t,a){a&&(a.cycles&&(this.ctx.cycles=a.cycles),a.reused&&(this.ctx.reused=a.reused),a.external&&(this.ctx.external=a.external)),ko(this.ctx,t);let n=Co(this.ctx,t),{"~standard":r,...o}=n;return o}};var f2={};var _c={};_r(_c,{ZodAny:()=>Vw,ZodArray:()=>Xw,ZodBase64:()=>zm,ZodBase64URL:()=>Om,ZodBigInt:()=>ps,ZodBigIntFormat:()=>Nm,ZodBoolean:()=>fs,ZodCIDRv4:()=>Mm,ZodCIDRv6:()=>Dm,ZodCUID:()=>km,ZodCUID2:()=>Cm,ZodCatch:()=>y_,ZodCodec:()=>Vm,ZodCustom:()=>Oc,ZodCustomStringFormat:()=>cs,ZodDate:()=>Ec,ZodDefault:()=>f_,ZodDiscriminatedUnion:()=>Yw,ZodE164:()=>Rm,ZodEmail:()=>wm,ZodEmoji:()=>_m,ZodEnum:()=>ss,ZodExactOptional:()=>u_,ZodFile:()=>l_,ZodFunction:()=>T_,ZodGUID:()=>kc,ZodIPv4:()=>Em,ZodIPv6:()=>$m,ZodIntersection:()=>Qw,ZodJWT:()=>Pm,ZodKSUID:()=>Am,ZodLazy:()=>I_,ZodLiteral:()=>i_,ZodMAC:()=>Uw,ZodMap:()=>n_,ZodNaN:()=>b_,ZodNanoID:()=>Im,ZodNever:()=>Ww,ZodNonOptional:()=>Zm,ZodNull:()=>Zw,ZodNullable:()=>d_,ZodNumber:()=>ds,ZodNumberFormat:()=>xi,ZodObject:()=>Mc,ZodOptional:()=>qm,ZodPipe:()=>Hm,ZodPrefault:()=>m_,ZodPromise:()=>C_,ZodReadonly:()=>S_,ZodRecord:()=>zc,ZodSet:()=>o_,ZodString:()=>us,ZodStringFormat:()=>et,ZodSuccess:()=>v_,ZodSymbol:()=>Bw,ZodTemplateLiteral:()=>__,ZodTransform:()=>s_,ZodTuple:()=>t_,ZodType:()=>ke,ZodULID:()=>Tm,ZodURL:()=>Ac,ZodUUID:()=>Wr,ZodUndefined:()=>qw,ZodUnion:()=>Dc,ZodUnknown:()=>Gw,ZodVoid:()=>Jw,ZodXID:()=>Lm,ZodXor:()=>Kw,_ZodString:()=>Sm,_default:()=>p_,_function:()=>x$,any:()=>K2,array:()=>$c,base64:()=>z2,base64url:()=>O2,bigint:()=>V2,boolean:()=>jw,catch:()=>x_,check:()=>b$,cidrv4:()=>M2,cidrv6:()=>D2,codec:()=>g$,cuid:()=>I2,cuid2:()=>k2,custom:()=>S$,date:()=>Q2,describe:()=>w$,discriminatedUnion:()=>o$,e164:()=>R2,email:()=>m2,emoji:()=>w2,enum:()=>jm,exactOptional:()=>c_,file:()=>f$,float32:()=>B2,float64:()=>q2,function:()=>x$,guid:()=>h2,hash:()=>j2,hex:()=>F2,hostname:()=>U2,httpUrl:()=>S2,instanceof:()=>I$,int:()=>bm,int32:()=>Z2,int64:()=>G2,intersection:()=>e_,ipv4:()=>A2,ipv6:()=>$2,json:()=>C$,jwt:()=>P2,keyof:()=>e$,ksuid:()=>L2,lazy:()=>k_,literal:()=>d$,looseObject:()=>r$,looseRecord:()=>l$,mac:()=>E2,map:()=>s$,meta:()=>_$,nan:()=>h$,nanoid:()=>_2,nativeEnum:()=>c$,never:()=>Um,nonoptional:()=>g_,null:()=>Hw,nullable:()=>Tc,nullish:()=>p$,number:()=>Fw,object:()=>t$,optional:()=>Cc,partialRecord:()=>i$,pipe:()=>Lc,prefault:()=>h_,preprocess:()=>T$,promise:()=>y$,readonly:()=>w_,record:()=>r_,refine:()=>L_,set:()=>u$,strictObject:()=>a$,string:()=>xm,stringFormat:()=>N2,stringbool:()=>k$,success:()=>m$,superRefine:()=>A_,symbol:()=>J2,templateLiteral:()=>v$,transform:()=>Bm,tuple:()=>a_,uint32:()=>H2,uint64:()=>W2,ulid:()=>C2,undefined:()=>X2,union:()=>Fm,unknown:()=>yi,url:()=>b2,uuid:()=>g2,uuidv4:()=>v2,uuidv6:()=>y2,uuidv7:()=>x2,void:()=>Y2,xid:()=>T2,xor:()=>n$});var mm={};_r(mm,{endsWith:()=>Kl,gt:()=>Vr,gte:()=>ba,includes:()=>Jl,length:()=>vi,lowercase:()=>Gl,lt:()=>Hr,lte:()=>Xa,maxLength:()=>gi,maxSize:()=>_o,mime:()=>Yl,minLength:()=>Tn,minSize:()=>Gr,multipleOf:()=>wo,negative:()=>im,nonnegative:()=>sm,nonpositive:()=>lm,normalize:()=>Ql,overwrite:()=>Lr,positive:()=>om,property:()=>um,regex:()=>Vl,size:()=>hi,slugify:()=>rs,startsWith:()=>Xl,toLowerCase:()=>ts,toUpperCase:()=>as,trim:()=>es,uppercase:()=>Wl});var ls={};_r(ls,{ZodISODate:()=>gm,ZodISODateTime:()=>hm,ZodISODuration:()=>ym,ZodISOTime:()=>vm,date:()=>kw,datetime:()=>Iw,duration:()=>Tw,time:()=>Cw});var hm=D("ZodISODateTime",(e,t)=>{tb.init(e,t),et.init(e,t)});function Iw(e){return oS(hm,e)}var gm=D("ZodISODate",(e,t)=>{ab.init(e,t),et.init(e,t)});function kw(e){return iS(gm,e)}var vm=D("ZodISOTime",(e,t)=>{rb.init(e,t),et.init(e,t)});function Cw(e){return lS(vm,e)}var ym=D("ZodISODuration",(e,t)=>{nb.init(e,t),et.init(e,t)});function Tw(e){return sS(ym,e)}var p2=(e,t)=>{cc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>fc(e,a)},flatten:{value:a=>dc(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,Pl,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,Pl,2)}},isEmpty:{get(){return e.issues.length===0}}})},zU=D("ZodError",p2),Oa=D("ZodError",p2,{Parent:Error});var Lw=Fl(Oa),Aw=jl(Oa),Ew=Bl(Oa),Ic=ql(Oa),$w=pp(Oa),Mw=mp(Oa),Dw=hp(Oa),zw=gp(Oa),Ow=vp(Oa),Rw=yp(Oa),Pw=xp(Oa),Nw=bp(Oa);var ke=D("ZodType",(e,t)=>(ye.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:os(e,"input"),output:os(e,"output")}}),e.toJSONSchema=FS(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone(G.mergeDefs(t,{checks:[...t.checks??[],...a.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(a,n)=>xa(e,a,n),e.brand=()=>e,e.register=((a,n)=>(a.add(e,n),e)),e.parse=(a,n)=>Lw(e,a,n,{callee:e.parse}),e.safeParse=(a,n)=>Ew(e,a,n),e.parseAsync=async(a,n)=>Aw(e,a,n,{callee:e.parseAsync}),e.safeParseAsync=async(a,n)=>Ic(e,a,n),e.spa=e.safeParseAsync,e.encode=(a,n)=>$w(e,a,n),e.decode=(a,n)=>Mw(e,a,n),e.encodeAsync=async(a,n)=>Dw(e,a,n),e.decodeAsync=async(a,n)=>zw(e,a,n),e.safeEncode=(a,n)=>Ow(e,a,n),e.safeDecode=(a,n)=>Rw(e,a,n),e.safeEncodeAsync=async(a,n)=>Pw(e,a,n),e.safeDecodeAsync=async(a,n)=>Nw(e,a,n),e.refine=(a,n)=>e.check(L_(a,n)),e.superRefine=a=>e.check(A_(a)),e.overwrite=a=>e.check(Lr(a)),e.optional=()=>Cc(e),e.exactOptional=()=>c_(e),e.nullable=()=>Tc(e),e.nullish=()=>Cc(Tc(e)),e.nonoptional=a=>g_(e,a),e.array=()=>$c(e),e.or=a=>Fm([e,a]),e.and=a=>e_(e,a),e.transform=a=>Lc(e,Bm(a)),e.default=a=>p_(e,a),e.prefault=a=>h_(e,a),e.catch=a=>x_(e,a),e.pipe=a=>Lc(e,a),e.readonly=()=>w_(e),e.describe=a=>{let n=e.clone();return ia.add(n,{description:a}),n},Object.defineProperty(e,"description",{get(){return ia.get(e)?.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return ia.get(e);let n=e.clone();return ia.add(n,a[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=a=>a(e),e)),Sm=D("_ZodString",(e,t)=>{mi.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jS(e,n,r,o);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...n)=>e.check(Vl(...n)),e.includes=(...n)=>e.check(Jl(...n)),e.startsWith=(...n)=>e.check(Xl(...n)),e.endsWith=(...n)=>e.check(Kl(...n)),e.min=(...n)=>e.check(Tn(...n)),e.max=(...n)=>e.check(gi(...n)),e.length=(...n)=>e.check(vi(...n)),e.nonempty=(...n)=>e.check(Tn(1,...n)),e.lowercase=n=>e.check(Gl(n)),e.uppercase=n=>e.check(Wl(n)),e.trim=()=>e.check(es()),e.normalize=(...n)=>e.check(Ql(...n)),e.toLowerCase=()=>e.check(ts()),e.toUpperCase=()=>e.check(as()),e.slugify=()=>e.check(rs())}),us=D("ZodString",(e,t)=>{mi.init(e,t),Sm.init(e,t),e.email=a=>e.check(Up(wm,a)),e.url=a=>e.check(wc(Ac,a)),e.jwt=a=>e.check(nm(Pm,a)),e.emoji=a=>e.check(Zp(_m,a)),e.guid=a=>e.check(Sc(kc,a)),e.uuid=a=>e.check(Fp(Wr,a)),e.uuidv4=a=>e.check(jp(Wr,a)),e.uuidv6=a=>e.check(Bp(Wr,a)),e.uuidv7=a=>e.check(qp(Wr,a)),e.nanoid=a=>e.check(Hp(Im,a)),e.guid=a=>e.check(Sc(kc,a)),e.cuid=a=>e.check(Vp(km,a)),e.cuid2=a=>e.check(Gp(Cm,a)),e.ulid=a=>e.check(Wp(Tm,a)),e.base64=a=>e.check(tm(zm,a)),e.base64url=a=>e.check(am(Om,a)),e.xid=a=>e.check(Jp(Lm,a)),e.ksuid=a=>e.check(Xp(Am,a)),e.ipv4=a=>e.check(Kp(Em,a)),e.ipv6=a=>e.check(Yp($m,a)),e.cidrv4=a=>e.check(Qp(Mm,a)),e.cidrv6=a=>e.check(em(Dm,a)),e.e164=a=>e.check(rm(Rm,a)),e.datetime=a=>e.check(Iw(a)),e.date=a=>e.check(kw(a)),e.time=a=>e.check(Cw(a)),e.duration=a=>e.check(Tw(a))});function xm(e){return tS(us,e)}var et=D("ZodStringFormat",(e,t)=>{Qe.init(e,t),Sm.init(e,t)}),wm=D("ZodEmail",(e,t)=>{Vx.init(e,t),et.init(e,t)});function m2(e){return Up(wm,e)}var kc=D("ZodGUID",(e,t)=>{Zx.init(e,t),et.init(e,t)});function h2(e){return Sc(kc,e)}var Wr=D("ZodUUID",(e,t)=>{Hx.init(e,t),et.init(e,t)});function g2(e){return Fp(Wr,e)}function v2(e){return jp(Wr,e)}function y2(e){return Bp(Wr,e)}function x2(e){return qp(Wr,e)}var Ac=D("ZodURL",(e,t)=>{Gx.init(e,t),et.init(e,t)});function b2(e){return wc(Ac,e)}function S2(e){return wc(Ac,{protocol:/^https?$/,hostname:mr.domain,...G.normalizeParams(e)})}var _m=D("ZodEmoji",(e,t)=>{Wx.init(e,t),et.init(e,t)});function w2(e){return Zp(_m,e)}var Im=D("ZodNanoID",(e,t)=>{Jx.init(e,t),et.init(e,t)});function _2(e){return Hp(Im,e)}var km=D("ZodCUID",(e,t)=>{Xx.init(e,t),et.init(e,t)});function I2(e){return Vp(km,e)}var Cm=D("ZodCUID2",(e,t)=>{Kx.init(e,t),et.init(e,t)});function k2(e){return Gp(Cm,e)}var Tm=D("ZodULID",(e,t)=>{Yx.init(e,t),et.init(e,t)});function C2(e){return Wp(Tm,e)}var Lm=D("ZodXID",(e,t)=>{Qx.init(e,t),et.init(e,t)});function T2(e){return Jp(Lm,e)}var Am=D("ZodKSUID",(e,t)=>{eb.init(e,t),et.init(e,t)});function L2(e){return Xp(Am,e)}var Em=D("ZodIPv4",(e,t)=>{ob.init(e,t),et.init(e,t)});function A2(e){return Kp(Em,e)}var Uw=D("ZodMAC",(e,t)=>{lb.init(e,t),et.init(e,t)});function E2(e){return rS(Uw,e)}var $m=D("ZodIPv6",(e,t)=>{ib.init(e,t),et.init(e,t)});function $2(e){return Yp($m,e)}var Mm=D("ZodCIDRv4",(e,t)=>{sb.init(e,t),et.init(e,t)});function M2(e){return Qp(Mm,e)}var Dm=D("ZodCIDRv6",(e,t)=>{ub.init(e,t),et.init(e,t)});function D2(e){return em(Dm,e)}var zm=D("ZodBase64",(e,t)=>{db.init(e,t),et.init(e,t)});function z2(e){return tm(zm,e)}var Om=D("ZodBase64URL",(e,t)=>{fb.init(e,t),et.init(e,t)});function O2(e){return am(Om,e)}var Rm=D("ZodE164",(e,t)=>{pb.init(e,t),et.init(e,t)});function R2(e){return rm(Rm,e)}var Pm=D("ZodJWT",(e,t)=>{mb.init(e,t),et.init(e,t)});function P2(e){return nm(Pm,e)}var cs=D("ZodCustomStringFormat",(e,t)=>{hb.init(e,t),et.init(e,t)});function N2(e,t,a={}){return ns(cs,e,t,a)}function U2(e){return ns(cs,"hostname",mr.hostname,e)}function F2(e){return ns(cs,"hex",mr.hex,e)}function j2(e,t){let a=t?.enc??"hex",n=`${e}_${a}`,r=mr[n];if(!r)throw new Error(`Unrecognized hash format: ${n}`);return ns(cs,n,r,t)}var ds=D("ZodNumber",(e,t)=>{Ep.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(n,r,o)=>BS(e,n,r,o),e.gt=(n,r)=>e.check(Vr(n,r)),e.gte=(n,r)=>e.check(ba(n,r)),e.min=(n,r)=>e.check(ba(n,r)),e.lt=(n,r)=>e.check(Hr(n,r)),e.lte=(n,r)=>e.check(Xa(n,r)),e.max=(n,r)=>e.check(Xa(n,r)),e.int=n=>e.check(bm(n)),e.safe=n=>e.check(bm(n)),e.positive=n=>e.check(Vr(0,n)),e.nonnegative=n=>e.check(ba(0,n)),e.negative=n=>e.check(Hr(0,n)),e.nonpositive=n=>e.check(Xa(0,n)),e.multipleOf=(n,r)=>e.check(wo(n,r)),e.step=(n,r)=>e.check(wo(n,r)),e.finite=()=>e;let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function Fw(e){return uS(ds,e)}var xi=D("ZodNumberFormat",(e,t)=>{gb.init(e,t),ds.init(e,t)});function bm(e){return dS(xi,e)}function B2(e){return fS(xi,e)}function q2(e){return pS(xi,e)}function Z2(e){return mS(xi,e)}function H2(e){return hS(xi,e)}var fs=D("ZodBoolean",(e,t)=>{gc.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>qS(e,a,n,r)});function jw(e){return gS(fs,e)}var ps=D("ZodBigInt",(e,t)=>{$p.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ZS(e,n,r,o),e.gte=(n,r)=>e.check(ba(n,r)),e.min=(n,r)=>e.check(ba(n,r)),e.gt=(n,r)=>e.check(Vr(n,r)),e.gte=(n,r)=>e.check(ba(n,r)),e.min=(n,r)=>e.check(ba(n,r)),e.lt=(n,r)=>e.check(Hr(n,r)),e.lte=(n,r)=>e.check(Xa(n,r)),e.max=(n,r)=>e.check(Xa(n,r)),e.positive=n=>e.check(Vr(BigInt(0),n)),e.negative=n=>e.check(Hr(BigInt(0),n)),e.nonpositive=n=>e.check(Xa(BigInt(0),n)),e.nonnegative=n=>e.check(ba(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(wo(n,r));let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function V2(e){return yS(ps,e)}var Nm=D("ZodBigIntFormat",(e,t)=>{vb.init(e,t),ps.init(e,t)});function G2(e){return bS(Nm,e)}function W2(e){return SS(Nm,e)}var Bw=D("ZodSymbol",(e,t)=>{yb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>HS(e,a,n,r)});function J2(e){return wS(Bw,e)}var qw=D("ZodUndefined",(e,t)=>{xb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>GS(e,a,n,r)});function X2(e){return _S(qw,e)}var Zw=D("ZodNull",(e,t)=>{bb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>VS(e,a,n,r)});function Hw(e){return IS(Zw,e)}var Vw=D("ZodAny",(e,t)=>{Sb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>XS(e,a,n,r)});function K2(){return kS(Vw)}var Gw=D("ZodUnknown",(e,t)=>{wb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>KS(e,a,n,r)});function yi(){return CS(Gw)}var Ww=D("ZodNever",(e,t)=>{_b.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>JS(e,a,n,r)});function Um(e){return TS(Ww,e)}var Jw=D("ZodVoid",(e,t)=>{Ib.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>WS(e,a,n,r)});function Y2(e){return LS(Jw,e)}var Ec=D("ZodDate",(e,t)=>{kb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(n,r,o)=>YS(e,n,r,o),e.min=(n,r)=>e.check(ba(n,r)),e.max=(n,r)=>e.check(Xa(n,r));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function Q2(e){return AS(Ec,e)}var Xw=D("ZodArray",(e,t)=>{Cb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>cw(e,a,n,r),e.element=t.element,e.min=(a,n)=>e.check(Tn(a,n)),e.nonempty=a=>e.check(Tn(1,a)),e.max=(a,n)=>e.check(gi(a,n)),e.length=(a,n)=>e.check(vi(a,n)),e.unwrap=()=>e.element});function $c(e,t){return MS(Xw,e,t)}function e$(e){let t=e._zod.def.shape;return jm(Object.keys(t))}var Mc=D("ZodObject",(e,t)=>{Tb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>dw(e,a,n,r),G.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>jm(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:yi()}),e.loose=()=>e.clone({...e._zod.def,catchall:yi()}),e.strict=()=>e.clone({...e._zod.def,catchall:Um()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>G.extend(e,a),e.safeExtend=a=>G.safeExtend(e,a),e.merge=a=>G.merge(e,a),e.pick=a=>G.pick(e,a),e.omit=a=>G.omit(e,a),e.partial=(...a)=>G.partial(qm,e,a[0]),e.required=(...a)=>G.required(Zm,e,a[0])});function t$(e,t){let a={type:"object",shape:e??{},...G.normalizeParams(t)};return new Mc(a)}function a$(e,t){return new Mc({type:"object",shape:e,catchall:Um(),...G.normalizeParams(t)})}function r$(e,t){return new Mc({type:"object",shape:e,catchall:yi(),...G.normalizeParams(t)})}var Dc=D("ZodUnion",(e,t)=>{vc.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>dm(e,a,n,r),e.options=t.options});function Fm(e,t){return new Dc({type:"union",options:e,...G.normalizeParams(t)})}var Kw=D("ZodXor",(e,t)=>{Dc.init(e,t),Lb.init(e,t),e._zod.processJSONSchema=(a,n,r)=>dm(e,a,n,r),e.options=t.options});function n$(e,t){return new Kw({type:"union",options:e,inclusive:!1,...G.normalizeParams(t)})}var Yw=D("ZodDiscriminatedUnion",(e,t)=>{Dc.init(e,t),Ab.init(e,t)});function o$(e,t,a){return new Yw({type:"union",options:t,discriminator:e,...G.normalizeParams(a)})}var Qw=D("ZodIntersection",(e,t)=>{Eb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>fw(e,a,n,r)});function e_(e,t){return new Qw({type:"intersection",left:e,right:t})}var t_=D("ZodTuple",(e,t)=>{Mp.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>pw(e,a,n,r),e.rest=a=>e.clone({...e._zod.def,rest:a})});function a_(e,t,a){let n=t instanceof ye,r=n?a:t,o=n?t:null;return new t_({type:"tuple",items:e,rest:o,...G.normalizeParams(r)})}var zc=D("ZodRecord",(e,t)=>{$b.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>mw(e,a,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function r_(e,t,a){return new zc({type:"record",keyType:e,valueType:t,...G.normalizeParams(a)})}function i$(e,t,a){let n=xa(e);return n._zod.values=void 0,new zc({type:"record",keyType:n,valueType:t,...G.normalizeParams(a)})}function l$(e,t,a){return new zc({type:"record",keyType:e,valueType:t,mode:"loose",...G.normalizeParams(a)})}var n_=D("ZodMap",(e,t)=>{Mb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>sw(e,a,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...a)=>e.check(Gr(...a)),e.nonempty=a=>e.check(Gr(1,a)),e.max=(...a)=>e.check(_o(...a)),e.size=(...a)=>e.check(hi(...a))});function s$(e,t,a){return new n_({type:"map",keyType:e,valueType:t,...G.normalizeParams(a)})}var o_=D("ZodSet",(e,t)=>{Db.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>uw(e,a,n,r),e.min=(...a)=>e.check(Gr(...a)),e.nonempty=a=>e.check(Gr(1,a)),e.max=(...a)=>e.check(_o(...a)),e.size=(...a)=>e.check(hi(...a))});function u$(e,t){return new o_({type:"set",valueType:e,...G.normalizeParams(t)})}var ss=D("ZodEnum",(e,t)=>{zb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(n,r,o)=>QS(e,n,r,o),e.enum=t.entries,e.options=Object.values(t.entries);let a=new Set(Object.keys(t.entries));e.extract=(n,r)=>{let o={};for(let i of n)if(a.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ss({...t,checks:[],...G.normalizeParams(r),entries:o})},e.exclude=(n,r)=>{let o={...t.entries};for(let i of n)if(a.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new ss({...t,checks:[],...G.normalizeParams(r),entries:o})}});function jm(e,t){let a=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ss({type:"enum",entries:a,...G.normalizeParams(t)})}function c$(e,t){return new ss({type:"enum",entries:e,...G.normalizeParams(t)})}var i_=D("ZodLiteral",(e,t)=>{Ob.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ew(e,a,n,r),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 d$(e,t){return new i_({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(t)})}var l_=D("ZodFile",(e,t)=>{Rb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>rw(e,a,n,r),e.min=(a,n)=>e.check(Gr(a,n)),e.max=(a,n)=>e.check(_o(a,n)),e.mime=(a,n)=>e.check(Yl(Array.isArray(a)?a:[a],n))});function f$(e){return DS(l_,e)}var s_=D("ZodTransform",(e,t)=>{Pb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>lw(e,a,n,r),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new vo(e.constructor.name);a.addIssue=o=>{if(typeof o=="string")a.issues.push(G.issue(o,a.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=a.value),i.inst??(i.inst=e),a.issues.push(G.issue(i))}};let r=t.transform(a.value,a);return r instanceof Promise?r.then(o=>(a.value=o,a)):(a.value=r,a)}});function Bm(e){return new s_({type:"transform",transform:e})}var qm=D("ZodOptional",(e,t)=>{Dp.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>fm(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function Cc(e){return new qm({type:"optional",innerType:e})}var u_=D("ZodExactOptional",(e,t)=>{Nb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>fm(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function c_(e){return new u_({type:"optional",innerType:e})}var d_=D("ZodNullable",(e,t)=>{Ub.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>hw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function Tc(e){return new d_({type:"nullable",innerType:e})}function p$(e){return Cc(Tc(e))}var f_=D("ZodDefault",(e,t)=>{Fb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>vw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function p_(e,t){return new f_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var m_=D("ZodPrefault",(e,t)=>{jb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>yw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function h_(e,t){return new m_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var Zm=D("ZodNonOptional",(e,t)=>{Bb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>gw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function g_(e,t){return new Zm({type:"nonoptional",innerType:e,...G.normalizeParams(t)})}var v_=D("ZodSuccess",(e,t)=>{qb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>nw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function m$(e){return new v_({type:"success",innerType:e})}var y_=D("ZodCatch",(e,t)=>{Zb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>xw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function x_(e,t){return new y_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var b_=D("ZodNaN",(e,t)=>{Hb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>tw(e,a,n,r)});function h$(e){return $S(b_,e)}var Hm=D("ZodPipe",(e,t)=>{Vb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>bw(e,a,n,r),e.in=t.in,e.out=t.out});function Lc(e,t){return new Hm({type:"pipe",in:e,out:t})}var Vm=D("ZodCodec",(e,t)=>{Hm.init(e,t),yc.init(e,t)});function g$(e,t,a){return new Vm({type:"pipe",in:e,out:t,transform:a.decode,reverseTransform:a.encode})}var S_=D("ZodReadonly",(e,t)=>{Gb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Sw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function w_(e){return new S_({type:"readonly",innerType:e})}var __=D("ZodTemplateLiteral",(e,t)=>{Wb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>aw(e,a,n,r)});function v$(e,t){return new __({type:"template_literal",parts:e,...G.normalizeParams(t)})}var I_=D("ZodLazy",(e,t)=>{Kb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>_w(e,a,n,r),e.unwrap=()=>e._zod.def.getter()});function k_(e){return new I_({type:"lazy",getter:e})}var C_=D("ZodPromise",(e,t)=>{Xb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ww(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function y$(e){return new C_({type:"promise",innerType:e})}var T_=D("ZodFunction",(e,t)=>{Jb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>iw(e,a,n,r)});function x$(e){return new T_({type:"function",input:Array.isArray(e?.input)?a_(e?.input):e?.input??$c(yi()),output:e?.output??yi()})}var Oc=D("ZodCustom",(e,t)=>{Yb.init(e,t),ke.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ow(e,a,n,r)});function b$(e){let t=new nt({check:"custom"});return t._zod.check=e,t}function S$(e,t){return zS(Oc,e??(()=>!0),t)}function L_(e,t={}){return OS(Oc,e,t)}function A_(e){return RS(e)}var w$=PS,_$=NS;function I$(e,t={}){let a=new Oc({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...G.normalizeParams(t)});return a._zod.bag.Class=e,a._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:a,path:[...a._zod.def.path??[]]})},a}var k$=(...e)=>US({Codec:Vm,Boolean:fs,String:us},...e);function C$(e){let t=k_(()=>Fm([xm(e),Fw(),jw(),Hw(),$c(t),r_(xm(),t)]));return t}function T$(e,t){return Lc(Bm(e),t)}var RU={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 PU(e){Ct({customError:e})}function NU(){return Ct().customError}var E_;E_||(E_={});var te={..._c,...mm,iso:ls},UU=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 FU(e,t){let a=e.$schema;return a==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":a==="http://json-schema.org/draft-07/schema#"?"draft-7":a==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function jU(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let a=e.slice(1).split("/").filter(Boolean);if(a.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(a[0]===n){let r=a[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function L$(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return te.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 r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return te.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=jU(r,t),i=ua(o,t);return t.refs.set(r,i),t.processing.delete(r),i}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return te.null();if(r.length===0)return te.never();if(r.length===1)return te.literal(r[0]);if(r.every(i=>typeof i=="string"))return te.enum(r);let o=r.map(i=>te.literal(i));return o.length<2?o[0]:te.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return te.literal(e.const);let a=e.type;if(Array.isArray(a)){let r=a.map(o=>{let i={...e,type:o};return L$(i,t)});return r.length===0?te.never():r.length===1?r[0]:te.union(r)}if(!a)return te.any();let n;switch(a){case"string":{let r=te.string();if(e.format){let o=e.format;o==="email"?r=r.check(te.email()):o==="uri"||o==="uri-reference"?r=r.check(te.url()):o==="uuid"||o==="guid"?r=r.check(te.uuid()):o==="date-time"?r=r.check(te.iso.datetime()):o==="date"?r=r.check(te.iso.date()):o==="time"?r=r.check(te.iso.time()):o==="duration"?r=r.check(te.iso.duration()):o==="ipv4"?r=r.check(te.ipv4()):o==="ipv6"?r=r.check(te.ipv6()):o==="mac"?r=r.check(te.mac()):o==="cidr"?r=r.check(te.cidrv4()):o==="cidr-v6"?r=r.check(te.cidrv6()):o==="base64"?r=r.check(te.base64()):o==="base64url"?r=r.check(te.base64url()):o==="e164"?r=r.check(te.e164()):o==="jwt"?r=r.check(te.jwt()):o==="emoji"?r=r.check(te.emoji()):o==="nanoid"?r=r.check(te.nanoid()):o==="cuid"?r=r.check(te.cuid()):o==="cuid2"?r=r.check(te.cuid2()):o==="ulid"?r=r.check(te.ulid()):o==="xid"?r=r.check(te.xid()):o==="ksuid"&&(r=r.check(te.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),n=r;break}case"number":case"integer":{let r=a==="integer"?te.number().int():te.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),n=r;break}case"boolean":{n=te.boolean();break}case"null":{n=te.null();break}case"object":{let r={},o=e.properties||{},i=new Set(e.required||[]);for(let[s,u]of Object.entries(o)){let c=ua(u,t);r[s]=i.has(s)?c:c.optional()}if(e.propertyNames){let s=ua(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?ua(e.additionalProperties,t):te.any();if(Object.keys(r).length===0){n=te.record(s,u);break}let c=te.object(r).passthrough(),d=te.looseRecord(s,u);n=te.intersection(c,d);break}if(e.patternProperties){let s=e.patternProperties,u=Object.keys(s),c=[];for(let p of u){let f=ua(s[p],t),m=te.string().regex(new RegExp(p));c.push(te.looseRecord(m,f))}let d=[];if(Object.keys(r).length>0&&d.push(te.object(r).passthrough()),d.push(...c),d.length===0)n=te.object({}).passthrough();else if(d.length===1)n=d[0];else{let p=te.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)p=te.intersection(p,d[f]);n=p}break}let l=te.object(r);e.additionalProperties===!1?n=l.strict():typeof e.additionalProperties=="object"?n=l.catchall(ua(e.additionalProperties,t)):n=l.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let i=r.map(s=>ua(s,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?ua(o,t):void 0;l?n=te.tuple(i).rest(l):n=te.tuple(i),typeof e.minItems=="number"&&(n=n.check(te.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(te.maxLength(e.maxItems)))}else if(Array.isArray(o)){let i=o.map(s=>ua(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?ua(e.additionalItems,t):void 0;l?n=te.tuple(i).rest(l):n=te.tuple(i),typeof e.minItems=="number"&&(n=n.check(te.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(te.maxLength(e.maxItems)))}else if(o!==void 0){let i=ua(o,t),l=te.array(i);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),n=l}else n=te.array(te.any());break}default:throw new Error(`Unsupported type: ${a}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}function ua(e,t){if(typeof e=="boolean")return e?te.any():te.never();let a=L$(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(u=>ua(u,t)),s=te.union(l);a=n?te.intersection(a,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(u=>ua(u,t)),s=te.xor(l);a=n?te.intersection(a,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)a=n?a:te.any();else{let l=n?a:ua(e.allOf[0],t),s=n?0:1;for(let u=s;u<e.allOf.length;u++)l=te.intersection(l,ua(e.allOf[u],t));a=l}e.nullable===!0&&t.version==="openapi-3.0"&&(a=te.nullable(a)),e.readOnly===!0&&(a=te.readonly(a));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of o)l in e&&(r[l]=e[l]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let l of i)l in e&&(r[l]=e[l]);for(let l of Object.keys(e))UU.has(l)||(r[l]=e[l]);return Object.keys(r).length>0&&t.registry.add(a,r),a}function A$(e,t){if(typeof e=="boolean")return e?te.any():te.never();let a=FU(e,t?.defaultTarget),n=e.$defs||e.definitions||{},r={version:a,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??ia};return ua(e,r)}var $_={};_r($_,{bigint:()=>HU,boolean:()=>ZU,date:()=>VU,number:()=>qU,string:()=>BU});function BU(e){return aS(us,e)}function qU(e){return cS(ds,e)}function ZU(e){return vS(fs,e)}function HU(e){return xS(ps,e)}function VU(e){return ES(Ec,e)}Ct(zp());var Pe;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function a(r){throw new Error}e.assertNever=a,e.arrayToEnum=r=>{let o={};for(let i of r)o[i]=i;return o},e.getValidEnumValues=r=>{let o=e.objectKeys(r).filter(l=>typeof r[r[l]]!="number"),i={};for(let l of o)i[l]=r[l];return e.objectValues(i)},e.objectValues=r=>e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let o=[];for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&o.push(i);return o},e.find=(r,o)=>{for(let i of r)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function n(r,o=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(Pe||(Pe={}));var E$;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(E$||(E$={}));var oe=Pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),An=e=>{switch(typeof e){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return Number.isNaN(e)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(e)?oe.array:e===null?oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?oe.promise:typeof Map<"u"&&e instanceof Map?oe.map:typeof Set<"u"&&e instanceof Set?oe.set:typeof Date<"u"&&e instanceof Date?oe.date:oe.object;default:return oe.unknown}};var H=Pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var Ka=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(o){return o.message},n={_errors:[]},r=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)n._errors.push(a(i));else{let l=n,s=0;for(;s<i.path.length;){let u=i.path[s];s===i.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(a(i))):l[u]=l[u]||{_errors:[]},l=l[u],s++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a=Object.create(null),n=[];for(let r of this.issues)if(r.path.length>0){let o=r.path[0];a[o]=a[o]||[],a[o].push(t(r))}else n.push(t(r));return{formErrors:n,fieldErrors:a}}get formErrors(){return this.flatten()}};Ka.create=e=>new Ka(e);var WU=(e,t)=>{let a;switch(e.code){case H.invalid_type:e.received===oe.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case H.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,Pe.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:a=`Unrecognized key(s) in object: ${Pe.joinValues(e.keys,", ")}`;break;case H.invalid_union:a="Invalid input";break;case H.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Pe.joinValues(e.options)}`;break;case H.invalid_enum_value:a=`Invalid enum value. Expected ${Pe.joinValues(e.options)}, received '${e.received}'`;break;case H.invalid_arguments:a="Invalid function arguments";break;case H.invalid_return_type:a="Invalid function return type";break;case H.invalid_date:a="Invalid date";break;case H.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:Pe.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case H.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case H.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case H.custom:a="Invalid input";break;case H.invalid_intersection_types:a="Intersection results could not be merged";break;case H.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case H.not_finite:a="Number must be finite";break;default:a=t.defaultError,Pe.assertNever(e)}return{message:a}},To=WU;var JU=To;function Rc(){return JU}var Gm=e=>{let{data:t,path:a,errorMaps:n,issueData:r}=e,o=[...a,...r.path||[]],i={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let l="",s=n.filter(u=>!!u).slice().reverse();for(let u of s)l=u(i,{data:t,defaultError:l}).message;return{...r,path:o,message:l}};function ae(e,t){let a=Rc(),n=Gm({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===To?void 0:To].filter(r=>!!r)});e.common.issues.push(n)}var ca=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let n=[];for(let r of a){if(r.status==="aborted")return me;r.status==="dirty"&&t.dirty(),n.push(r.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,a){let n=[];for(let r of a){let o=await r.key,i=await r.value;n.push({key:o,value:i})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,a){let n={};for(let r of a){let{key:o,value:i}=r;if(o.status==="aborted"||i.status==="aborted")return me;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||r.alwaysSet)&&(n[o.value]=i.value)}return{status:t.value,value:n}}},me=Object.freeze({status:"aborted"}),ms=e=>({status:"dirty",value:e}),wa=e=>({status:"valid",value:e}),M_=e=>e.status==="aborted",D_=e=>e.status==="dirty",bi=e=>e.status==="valid",Pc=e=>typeof Promise<"u"&&e instanceof Promise;var le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(le||(le={}));var hr=class{constructor(t,a,n,r){this._cachedPath=[],this.parent=t,this.data=a,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},$$=(e,t)=>{if(bi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new Ka(e.common.issues);return this._error=a,this._error}}};function Ce(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:n,description:r}=e;if(t&&(a||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(i,l)=>{let{message:s}=e;return i.code==="invalid_enum_value"?{message:s??l.defaultError}:typeof l.data>"u"?{message:s??n??l.defaultError}:i.code!=="invalid_type"?{message:l.defaultError}:{message:s??a??l.defaultError}},description:r}}var Ee=class{get description(){return this._def.description}_getType(t){return An(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:An(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ca,ctx:{common:t.parent.common,data:t.data,parsedType:An(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if(Pc(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let n=this.safeParse(t,a);if(n.success)return n.data;throw n.error}safeParse(t,a){let n={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:An(t)},r=this._parseSync({data:t,path:n.path,parent:n});return $$(n,r)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:An(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:a});return bi(n)?{value:n.value}:{issues:a.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(n=>bi(n)?{value:n.value}:{issues:a.common.issues})}async parseAsync(t,a){let n=await this.safeParseAsync(t,a);if(n.success)return n.data;throw n.error}async safeParseAsync(t,a){let n={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:An(t)},r=this._parse({data:t,path:n.path,parent:n}),o=await(Pc(r)?r:Promise.resolve(r));return $$(n,o)}refine(t,a){let n=r=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(r):a;return this._refinement((r,o)=>{let i=t(r),l=()=>o.addIssue({code:H.custom,...n(r)});return typeof Promise<"u"&&i instanceof Promise?i.then(s=>s?!0:(l(),!1)):i?!0:(l(),!1)})}refinement(t,a){return this._refinement((n,r)=>t(n)?!0:(r.addIssue(typeof a=="function"?a(n,r):a),!1))}_refinement(t){return new Er({schema:this,typeName:J.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return Ar.create(this,this._def)}nullable(){return Mn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ao.create(this)}promise(){return Si.create(this,this._def)}or(t){return xs.create([this,t],this._def)}and(t){return bs.create(this,t,this._def)}transform(t){return new Er({...Ce(this._def),schema:this,typeName:J.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new ks({...Ce(this._def),innerType:this,defaultValue:a,typeName:J.ZodDefault})}brand(){return new Wm({typeName:J.ZodBranded,type:this,...Ce(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new Cs({...Ce(this._def),innerType:this,catchValue:a,typeName:J.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return Jm.create(this,t)}readonly(){return Ts.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},XU=/^c[^\s-]{8,}$/i,KU=/^[0-9a-z]+$/,YU=/^[0-9A-HJKMNP-TV-Z]{26}$/i,QU=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,e3=/^[a-z0-9_-]{21}$/i,t3=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,a3=/^[-+]?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)?)??$/,r3=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,n3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",z_,o3=/^(?:(?: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])$/,i3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,l3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,s3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,u3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,c3=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,M$="((\\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])))",d3=new RegExp(`^${M$}$`);function D$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function f3(e){return new RegExp(`^${D$(e)}$`)}function p3(e){let t=`${M$}T${D$(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function m3(e,t){return!!((t==="v4"||!t)&&o3.test(e)||(t==="v6"||!t)&&l3.test(e))}function h3(e,t){if(!t3.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let n=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(n));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function g3(e,t){return!!((t==="v4"||!t)&&i3.test(e)||(t==="v6"||!t)&&s3.test(e))}var gs=class e extends Ee{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==oe.string){let o=this._getOrReturnCtx(t);return ae(o,{code:H.invalid_type,expected:oe.string,received:o.parsedType}),me}let n=new ca,r;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),ae(r,{code:H.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(r=this._getOrReturnCtx(t,r),ae(r,{code:H.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,l=t.data.length<o.value;(i||l)&&(r=this._getOrReturnCtx(t,r),i?ae(r,{code:H.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&ae(r,{code:H.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")r3.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"email",code:H.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")z_||(z_=new RegExp(n3,"u")),z_.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"emoji",code:H.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")QU.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"uuid",code:H.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")e3.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"nanoid",code:H.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")XU.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"cuid",code:H.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")KU.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"cuid2",code:H.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")YU.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"ulid",code:H.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),ae(r,{validation:"url",code:H.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"regex",code:H.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),ae(r,{code:H.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),ae(r,{code:H.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),ae(r,{code:H.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?p3(o).test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{code:H.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?d3.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{code:H.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?f3(o).test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{code:H.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?a3.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"duration",code:H.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?m3(t.data,o.version)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"ip",code:H.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?h3(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"jwt",code:H.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?g3(t.data,o.version)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"cidr",code:H.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?u3.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"base64",code:H.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?c3.test(t.data)||(r=this._getOrReturnCtx(t,r),ae(r,{validation:"base64url",code:H.invalid_string,message:o.message}),n.dirty()):Pe.assertNever(o);return{status:n.value,value:t.data}}_regex(t,a,n){return this.refinement(r=>t.test(r),{validation:a,code:H.invalid_string,...le.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...le.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...le.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...le.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...le.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...le.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...le.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...le.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...le.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...le.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...le.errToObj(a)})}nonempty(t){return this.min(1,le.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};gs.create=e=>new gs({checks:[],typeName:J.ZodString,coerce:e?.coerce??!1,...Ce(e)});function v3(e,t){let a=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=a>n?a:n,o=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return o%i/10**r}var Nc=class e extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==oe.number){let o=this._getOrReturnCtx(t);return ae(o,{code:H.invalid_type,expected:oe.number,received:o.parsedType}),me}let n,r=new ca;for(let o of this._def.checks)o.kind==="int"?Pe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ae(n,{code:H.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),ae(n,{code:H.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),ae(n,{code:H.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?v3(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),ae(n,{code:H.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ae(n,{code:H.not_finite,message:o.message}),r.dirty()):Pe.assertNever(o);return{status:r.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,le.toString(a))}gt(t,a){return this.setLimit("min",t,!1,le.toString(a))}lte(t,a){return this.setLimit("max",t,!0,le.toString(a))}lt(t,a){return this.setLimit("max",t,!1,le.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:le.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Pe.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(a===null||n.value>a)&&(a=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(a)&&Number.isFinite(t)}};Nc.create=e=>new Nc({checks:[],typeName:J.ZodNumber,coerce:e?.coerce||!1,...Ce(e)});var Uc=class e extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==oe.bigint)return this._getInvalidInput(t);let n,r=new ca;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),ae(n,{code:H.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),ae(n,{code:H.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ae(n,{code:H.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):Pe.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return ae(a,{code:H.invalid_type,expected:oe.bigint,received:a.parsedType}),me}gte(t,a){return this.setLimit("min",t,!0,le.toString(a))}gt(t,a){return this.setLimit("min",t,!1,le.toString(a))}lte(t,a){return this.setLimit("max",t,!0,le.toString(a))}lt(t,a){return this.setLimit("max",t,!1,le.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:le.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Uc.create=e=>new Uc({checks:[],typeName:J.ZodBigInt,coerce:e?.coerce??!1,...Ce(e)});var Fc=class extends Ee{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==oe.boolean){let n=this._getOrReturnCtx(t);return ae(n,{code:H.invalid_type,expected:oe.boolean,received:n.parsedType}),me}return wa(t.data)}};Fc.create=e=>new Fc({typeName:J.ZodBoolean,coerce:e?.coerce||!1,...Ce(e)});var jc=class e extends Ee{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==oe.date){let o=this._getOrReturnCtx(t);return ae(o,{code:H.invalid_type,expected:oe.date,received:o.parsedType}),me}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return ae(o,{code:H.invalid_date}),me}let n=new ca,r;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),ae(r,{code:H.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(r=this._getOrReturnCtx(t,r),ae(r,{code:H.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):Pe.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:le.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:le.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};jc.create=e=>new jc({checks:[],coerce:e?.coerce||!1,typeName:J.ZodDate,...Ce(e)});var Bc=class extends Ee{_parse(t){if(this._getType(t)!==oe.symbol){let n=this._getOrReturnCtx(t);return ae(n,{code:H.invalid_type,expected:oe.symbol,received:n.parsedType}),me}return wa(t.data)}};Bc.create=e=>new Bc({typeName:J.ZodSymbol,...Ce(e)});var vs=class extends Ee{_parse(t){if(this._getType(t)!==oe.undefined){let n=this._getOrReturnCtx(t);return ae(n,{code:H.invalid_type,expected:oe.undefined,received:n.parsedType}),me}return wa(t.data)}};vs.create=e=>new vs({typeName:J.ZodUndefined,...Ce(e)});var ys=class extends Ee{_parse(t){if(this._getType(t)!==oe.null){let n=this._getOrReturnCtx(t);return ae(n,{code:H.invalid_type,expected:oe.null,received:n.parsedType}),me}return wa(t.data)}};ys.create=e=>new ys({typeName:J.ZodNull,...Ce(e)});var qc=class extends Ee{constructor(){super(...arguments),this._any=!0}_parse(t){return wa(t.data)}};qc.create=e=>new qc({typeName:J.ZodAny,...Ce(e)});var Lo=class extends Ee{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wa(t.data)}};Lo.create=e=>new Lo({typeName:J.ZodUnknown,...Ce(e)});var Jr=class extends Ee{_parse(t){let a=this._getOrReturnCtx(t);return ae(a,{code:H.invalid_type,expected:oe.never,received:a.parsedType}),me}};Jr.create=e=>new Jr({typeName:J.ZodNever,...Ce(e)});var Zc=class extends Ee{_parse(t){if(this._getType(t)!==oe.undefined){let n=this._getOrReturnCtx(t);return ae(n,{code:H.invalid_type,expected:oe.void,received:n.parsedType}),me}return wa(t.data)}};Zc.create=e=>new Zc({typeName:J.ZodVoid,...Ce(e)});var Ao=class e extends Ee{_parse(t){let{ctx:a,status:n}=this._processInputParams(t),r=this._def;if(a.parsedType!==oe.array)return ae(a,{code:H.invalid_type,expected:oe.array,received:a.parsedType}),me;if(r.exactLength!==null){let i=a.data.length>r.exactLength.value,l=a.data.length<r.exactLength.value;(i||l)&&(ae(a,{code:i?H.too_big:H.too_small,minimum:l?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&a.data.length<r.minLength.value&&(ae(a,{code:H.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&a.data.length>r.maxLength.value&&(ae(a,{code:H.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),a.common.async)return Promise.all([...a.data].map((i,l)=>r.type._parseAsync(new hr(a,i,a.path,l)))).then(i=>ca.mergeArray(n,i));let o=[...a.data].map((i,l)=>r.type._parseSync(new hr(a,i,a.path,l)));return ca.mergeArray(n,o)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:le.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:le.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:le.toString(a)}})}nonempty(t){return this.min(1,t)}};Ao.create=(e,t)=>new Ao({type:e,minLength:null,maxLength:null,exactLength:null,typeName:J.ZodArray,...Ce(t)});function hs(e){if(e instanceof Ya){let t={};for(let a in e.shape){let n=e.shape[a];t[a]=Ar.create(hs(n))}return new Ya({...e._def,shape:()=>t})}else return e instanceof Ao?new Ao({...e._def,type:hs(e.element)}):e instanceof Ar?Ar.create(hs(e.unwrap())):e instanceof Mn?Mn.create(hs(e.unwrap())):e instanceof $n?$n.create(e.items.map(t=>hs(t))):e}var Ya=class e extends Ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=Pe.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==oe.object){let u=this._getOrReturnCtx(t);return ae(u,{code:H.invalid_type,expected:oe.object,received:u.parsedType}),me}let{status:n,ctx:r}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),l=[];if(!(this._def.catchall instanceof Jr&&this._def.unknownKeys==="strip"))for(let u in r.data)i.includes(u)||l.push(u);let s=[];for(let u of i){let c=o[u],d=r.data[u];s.push({key:{status:"valid",value:u},value:c._parse(new hr(r,d,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Jr){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of l)s.push({key:{status:"valid",value:c},value:{status:"valid",value:r.data[c]}});else if(u==="strict")l.length>0&&(ae(r,{code:H.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of l){let d=r.data[c];s.push({key:{status:"valid",value:c},value:u._parse(new hr(r,d,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of s){let d=await c.key,p=await c.value;u.push({key:d,value:p,alwaysSet:c.alwaysSet})}return u}).then(u=>ca.mergeObjectSync(n,u)):ca.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(t){return le.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,n)=>{let r=this._def.errorMap?.(a,n).message??n.defaultError;return a.code==="unrecognized_keys"?{message:le.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:J.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let n of Pe.objectKeys(t))t[n]&&this.shape[n]&&(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let n of Pe.objectKeys(this.shape))t[n]||(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}deepPartial(){return hs(this)}partial(t){let a={};for(let n of Pe.objectKeys(this.shape)){let r=this.shape[n];t&&!t[n]?a[n]=r:a[n]=r.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let n of Pe.objectKeys(this.shape))if(t&&!t[n])a[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof Ar;)o=o._def.innerType;a[n]=o}return new e({...this._def,shape:()=>a})}keyof(){return z$(Pe.objectKeys(this.shape))}};Ya.create=(e,t)=>new Ya({shape:()=>e,unknownKeys:"strip",catchall:Jr.create(),typeName:J.ZodObject,...Ce(t)});Ya.strictCreate=(e,t)=>new Ya({shape:()=>e,unknownKeys:"strict",catchall:Jr.create(),typeName:J.ZodObject,...Ce(t)});Ya.lazycreate=(e,t)=>new Ya({shape:e,unknownKeys:"strip",catchall:Jr.create(),typeName:J.ZodObject,...Ce(t)});var xs=class extends Ee{_parse(t){let{ctx:a}=this._processInputParams(t),n=this._def.options;function r(o){for(let l of o)if(l.result.status==="valid")return l.result;for(let l of o)if(l.result.status==="dirty")return a.common.issues.push(...l.ctx.common.issues),l.result;let i=o.map(l=>new Ka(l.ctx.common.issues));return ae(a,{code:H.invalid_union,unionErrors:i}),me}if(a.common.async)return Promise.all(n.map(async o=>{let i={...a,common:{...a.common,issues:[]},parent:null};return{result:await o._parseAsync({data:a.data,path:a.path,parent:i}),ctx:i}})).then(r);{let o,i=[];for(let s of n){let u={...a,common:{...a.common,issues:[]},parent:null},c=s._parseSync({data:a.data,path:a.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return a.common.issues.push(...o.ctx.common.issues),o.result;let l=i.map(s=>new Ka(s));return ae(a,{code:H.invalid_union,unionErrors:l}),me}}get options(){return this._def.options}};xs.create=(e,t)=>new xs({options:e,typeName:J.ZodUnion,...Ce(t)});var En=e=>e instanceof Ss?En(e.schema):e instanceof Er?En(e.innerType()):e instanceof ws?[e.value]:e instanceof _s?e.options:e instanceof Is?Pe.objectValues(e.enum):e instanceof ks?En(e._def.innerType):e instanceof vs?[void 0]:e instanceof ys?[null]:e instanceof Ar?[void 0,...En(e.unwrap())]:e instanceof Mn?[null,...En(e.unwrap())]:e instanceof Wm||e instanceof Ts?En(e.unwrap()):e instanceof Cs?En(e._def.innerType):[],O_=class e extends Ee{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==oe.object)return ae(a,{code:H.invalid_type,expected:oe.object,received:a.parsedType}),me;let n=this.discriminator,r=a.data[n],o=this.optionsMap.get(r);return o?a.common.async?o._parseAsync({data:a.data,path:a.path,parent:a}):o._parseSync({data:a.data,path:a.path,parent:a}):(ae(a,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,n){let r=new Map;for(let o of a){let i=En(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let l of i){if(r.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);r.set(l,o)}}return new e({typeName:J.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:r,...Ce(n)})}};function R_(e,t){let a=An(e),n=An(t);if(e===t)return{valid:!0,data:e};if(a===oe.object&&n===oe.object){let r=Pe.objectKeys(t),o=Pe.objectKeys(e).filter(l=>r.indexOf(l)!==-1),i={...e,...t};for(let l of o){let s=R_(e[l],t[l]);if(!s.valid)return{valid:!1};i[l]=s.data}return{valid:!0,data:i}}else if(a===oe.array&&n===oe.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let o=0;o<e.length;o++){let i=e[o],l=t[o],s=R_(i,l);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}else return a===oe.date&&n===oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var bs=class extends Ee{_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=(o,i)=>{if(M_(o)||M_(i))return me;let l=R_(o.value,i.value);return l.valid?((D_(o)||D_(i))&&a.dirty(),{status:a.value,value:l.data}):(ae(n,{code:H.invalid_intersection_types}),me)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,i])=>r(o,i)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};bs.create=(e,t,a)=>new bs({left:e,right:t,typeName:J.ZodIntersection,...Ce(a)});var $n=class e extends Ee{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.array)return ae(n,{code:H.invalid_type,expected:oe.array,received:n.parsedType}),me;if(n.data.length<this._def.items.length)return ae(n,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&n.data.length>this._def.items.length&&(ae(n,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let o=[...n.data].map((i,l)=>{let s=this._def.items[l]||this._def.rest;return s?s._parse(new hr(n,i,n.path,l)):null}).filter(i=>!!i);return n.common.async?Promise.all(o).then(i=>ca.mergeArray(a,i)):ca.mergeArray(a,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};$n.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new $n({items:e,typeName:J.ZodTuple,rest:null,...Ce(t)})};var P_=class e extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.object)return ae(n,{code:H.invalid_type,expected:oe.object,received:n.parsedType}),me;let r=[],o=this._def.keyType,i=this._def.valueType;for(let l in n.data)r.push({key:o._parse(new hr(n,l,n.path,l)),value:i._parse(new hr(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?ca.mergeObjectAsync(a,r):ca.mergeObjectSync(a,r)}get element(){return this._def.valueType}static create(t,a,n){return a instanceof Ee?new e({keyType:t,valueType:a,typeName:J.ZodRecord,...Ce(n)}):new e({keyType:gs.create(),valueType:t,typeName:J.ZodRecord,...Ce(a)})}},Hc=class extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.map)return ae(n,{code:H.invalid_type,expected:oe.map,received:n.parsedType}),me;let r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([l,s],u)=>({key:r._parse(new hr(n,l,n.path,[u,"key"])),value:o._parse(new hr(n,s,n.path,[u,"value"]))}));if(n.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let s of i){let u=await s.key,c=await s.value;if(u.status==="aborted"||c.status==="aborted")return me;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}})}else{let l=new Map;for(let s of i){let u=s.key,c=s.value;if(u.status==="aborted"||c.status==="aborted")return me;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}}}};Hc.create=(e,t,a)=>new Hc({valueType:t,keyType:e,typeName:J.ZodMap,...Ce(a)});var Vc=class e extends Ee{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.set)return ae(n,{code:H.invalid_type,expected:oe.set,received:n.parsedType}),me;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(ae(n,{code:H.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),a.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(ae(n,{code:H.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),a.dirty());let o=this._def.valueType;function i(s){let u=new Set;for(let c of s){if(c.status==="aborted")return me;c.status==="dirty"&&a.dirty(),u.add(c.value)}return{status:a.value,value:u}}let l=[...n.data.values()].map((s,u)=>o._parse(new hr(n,s,n.path,u)));return n.common.async?Promise.all(l).then(s=>i(s)):i(l)}min(t,a){return new e({...this._def,minSize:{value:t,message:le.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:le.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Vc.create=(e,t)=>new Vc({valueType:e,minSize:null,maxSize:null,typeName:J.ZodSet,...Ce(t)});var N_=class e extends Ee{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==oe.function)return ae(a,{code:H.invalid_type,expected:oe.function,received:a.parsedType}),me;function n(l,s){return Gm({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Rc(),To].filter(u=>!!u),issueData:{code:H.invalid_arguments,argumentsError:s}})}function r(l,s){return Gm({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Rc(),To].filter(u=>!!u),issueData:{code:H.invalid_return_type,returnTypeError:s}})}let o={errorMap:a.common.contextualErrorMap},i=a.data;if(this._def.returns instanceof Si){let l=this;return wa(async function(...s){let u=new Ka([]),c=await l._def.args.parseAsync(s,o).catch(f=>{throw u.addIssue(n(s,f)),u}),d=await Reflect.apply(i,this,c);return await l._def.returns._def.type.parseAsync(d,o).catch(f=>{throw u.addIssue(r(d,f)),u})})}else{let l=this;return wa(function(...s){let u=l._def.args.safeParse(s,o);if(!u.success)throw new Ka([n(s,u.error)]);let c=Reflect.apply(i,this,u.data),d=l._def.returns.safeParse(c,o);if(!d.success)throw new Ka([r(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:$n.create(t).rest(Lo.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,n){return new e({args:t||$n.create([]).rest(Lo.create()),returns:a||Lo.create(),typeName:J.ZodFunction,...Ce(n)})}},Ss=class extends Ee{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};Ss.create=(e,t)=>new Ss({getter:e,typeName:J.ZodLazy,...Ce(t)});var ws=class extends Ee{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return ae(a,{received:a.data,code:H.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:t.data}}get value(){return this._def.value}};ws.create=(e,t)=>new ws({value:e,typeName:J.ZodLiteral,...Ce(t)});function z$(e,t){return new _s({values:e,typeName:J.ZodEnum,...Ce(t)})}var _s=class e extends Ee{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),n=this._def.values;return ae(a,{expected:Pe.joinValues(n),received:a.parsedType,code:H.invalid_type}),me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),n=this._def.values;return ae(a,{received:a.data,code:H.invalid_enum_value,options:n}),me}return wa(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...a})}};_s.create=z$;var Is=class extends Ee{_parse(t){let a=Pe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==oe.string&&n.parsedType!==oe.number){let r=Pe.objectValues(a);return ae(n,{expected:Pe.joinValues(r),received:n.parsedType,code:H.invalid_type}),me}if(this._cache||(this._cache=new Set(Pe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Pe.objectValues(a);return ae(n,{received:n.data,code:H.invalid_enum_value,options:r}),me}return wa(t.data)}get enum(){return this._def.values}};Is.create=(e,t)=>new Is({values:e,typeName:J.ZodNativeEnum,...Ce(t)});var Si=class extends Ee{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==oe.promise&&a.common.async===!1)return ae(a,{code:H.invalid_type,expected:oe.promise,received:a.parsedType}),me;let n=a.parsedType===oe.promise?a.data:Promise.resolve(a.data);return wa(n.then(r=>this._def.type.parseAsync(r,{path:a.path,errorMap:a.common.contextualErrorMap})))}};Si.create=(e,t)=>new Si({type:e,typeName:J.ZodPromise,...Ce(t)});var Er=class extends Ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===J.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:i=>{ae(n,i),i.fatal?a.abort():a.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),r.type==="preprocess"){let i=r.transform(n.data,o);if(n.common.async)return Promise.resolve(i).then(async l=>{if(a.value==="aborted")return me;let s=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return s.status==="aborted"?me:s.status==="dirty"?ms(s.value):a.value==="dirty"?ms(s.value):s});{if(a.value==="aborted")return me;let l=this._def.schema._parseSync({data:i,path:n.path,parent:n});return l.status==="aborted"?me:l.status==="dirty"?ms(l.value):a.value==="dirty"?ms(l.value):l}}if(r.type==="refinement"){let i=l=>{let s=r.refinement(l,o);if(n.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?me:(l.status==="dirty"&&a.dirty(),i(l.value),{status:a.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?me:(l.status==="dirty"&&a.dirty(),i(l.value).then(()=>({status:a.value,value:l.value}))))}if(r.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!bi(i))return me;let l=r.transform(i.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>bi(i)?Promise.resolve(r.transform(i.value,o)).then(l=>({status:a.value,value:l})):me);Pe.assertNever(r)}};Er.create=(e,t,a)=>new Er({schema:e,typeName:J.ZodEffects,effect:t,...Ce(a)});Er.createWithPreprocess=(e,t,a)=>new Er({schema:t,effect:{type:"preprocess",transform:e},typeName:J.ZodEffects,...Ce(a)});var Ar=class extends Ee{_parse(t){return this._getType(t)===oe.undefined?wa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ar.create=(e,t)=>new Ar({innerType:e,typeName:J.ZodOptional,...Ce(t)});var Mn=class extends Ee{_parse(t){return this._getType(t)===oe.null?wa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Mn.create=(e,t)=>new Mn({innerType:e,typeName:J.ZodNullable,...Ce(t)});var ks=class extends Ee{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return a.parsedType===oe.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};ks.create=(e,t)=>new ks({innerType:e,typeName:J.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ce(t)});var Cs=class extends Ee{_parse(t){let{ctx:a}=this._processInputParams(t),n={...a,common:{...a.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Pc(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ka(n.common.issues)},input:n.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Ka(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Cs.create=(e,t)=>new Cs({innerType:e,typeName:J.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ce(t)});var Gc=class extends Ee{_parse(t){if(this._getType(t)!==oe.nan){let n=this._getOrReturnCtx(t);return ae(n,{code:H.invalid_type,expected:oe.nan,received:n.parsedType}),me}return{status:"valid",value:t.data}}};Gc.create=e=>new Gc({typeName:J.ZodNaN,...Ce(e)});var Wm=class extends Ee{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return this._def.type._parse({data:n,path:a.path,parent:a})}unwrap(){return this._def.type}},Jm=class e extends Ee{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?me:o.status==="dirty"?(a.dirty(),ms(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{let r=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?me:r.status==="dirty"?(a.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:n.path,parent:n})}}static create(t,a){return new e({in:t,out:a,typeName:J.ZodPipeline})}},Ts=class extends Ee{_parse(t){let a=this._def.innerType._parse(t),n=r=>(bi(r)&&(r.value=Object.freeze(r.value)),r);return Pc(a)?a.then(r=>n(r)):n(a)}unwrap(){return this._def.innerType}};Ts.create=(e,t)=>new Ts({innerType:e,typeName:J.ZodReadonly,...Ce(t)});var PG={object:Ya.lazycreate},J;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(J||(J={}));var NG=gs.create,UG=Nc.create,FG=Gc.create,jG=Uc.create,BG=Fc.create,qG=jc.create,ZG=Bc.create,HG=vs.create,VG=ys.create,GG=qc.create,WG=Lo.create,JG=Jr.create,XG=Zc.create,KG=Ao.create,YG=Ya.create,QG=Ya.strictCreate,eW=xs.create,tW=O_.create,aW=bs.create,rW=$n.create,nW=P_.create,oW=Hc.create,iW=Vc.create,lW=N_.create,sW=Ss.create,uW=ws.create,cW=_s.create,dW=Is.create,fW=Si.create,pW=Er.create,mW=Ar.create,hW=Mn.create,gW=Er.createWithPreprocess,vW=Jm.create;var Xm=class extends Error{constructor(t,a){super(t),this.name="ParseError",this.type=a.type,this.field=a.field,this.value=a.value,this.line=a.line}};function U_(e){}function O$(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=U_,onError:a=U_,onRetry:n=U_,onComment:r}=e,o="",i=!0,l,s="",u="";function c(w){let C=i?w.replace(/^\xEF\xBB\xBF/,""):w,[g,x]=x3(`${o}${C}`);for(let h of g)d(h);o=x,i=!1}function d(w){if(w===""){f();return}if(w.startsWith(":")){r&&r(w.slice(w.startsWith(": ")?2:1));return}let C=w.indexOf(":");if(C!==-1){let g=w.slice(0,C),x=w[C+1]===" "?2:1,h=w.slice(C+x);p(g,h,w);return}p(w,"",w)}function p(w,C,g){switch(w){case"event":u=C;break;case"data":s=`${s}${C}
|
|
59
|
+
`;break;case"id":l=C.includes("\0")?void 0:C;break;case"retry":/^\d+$/.test(C)?n(parseInt(C,10)):a(new Xm(`Invalid \`retry\` value: "${C}"`,{type:"invalid-retry",value:C,line:g}));break;default:a(new Xm(`Unknown field "${w.length>20?`${w.slice(0,20)}\u2026`:w}"`,{type:"unknown-field",field:w,value:C,line:g}));break}}function f(){s.length>0&&t({id:l,event:u||void 0,data:s.endsWith(`
|
|
60
|
+
`)?s.slice(0,-1):s}),l=void 0,s="",u=""}function m(w={}){o&&w.consume&&d(o),i=!0,l=void 0,s="",u="",o=""}return{feed:c,reset:m}}function x3(e){let t=[],a="",n=0;for(;n<e.length;){let r=e.indexOf("\r",n),o=e.indexOf(`
|
|
61
|
+
`,n),i=-1;if(r!==-1&&o!==-1?i=Math.min(r,o):r!==-1?r===e.length-1?i=-1:i=r:o!==-1&&(i=o),i===-1){a=e.slice(n);break}else{let l=e.slice(n,i);t.push(l),n=i+1,e[n-1]==="\r"&&e[n]===`
|
|
62
|
+
`&&n++}}return[t,a]}var Km=class extends TransformStream{constructor({onError:t,onRetry:a,onComment:n}={}){let r;super({start(o){r=O$({onEvent:i=>{o.enqueue(i)},onError(i){t==="terminate"?o.error(i):typeof t=="function"&&t(i)},onRetry:a,onComment:n})},transform(o){r.feed(o)}})}};var{btoa:EW,atob:$W}=globalThis;var j$="AI_DownloadError",B$=`vercel.ai.error.${j$}`,b3=Symbol.for(B$),R$,P$,gr=class extends(P$=Ue,R$=b3,P$){constructor({url:e,statusCode:t,statusText:a,cause:n,message:r=n==null?`Failed to download ${e}: ${t} ${a}`:`Failed to download ${e}: ${n}`}){super({name:j$,message:r,cause:n}),this[R$]=!0,this.url=e,this.statusCode=t,this.statusText=a}static isInstance(e){return Ue.hasMarker(e,B$)}},H_=2*1024*1024*1024;async function q$({response:e,url:t,maxBytes:a=H_}){let n=e.headers.get("content-length");if(n!=null){let c=parseInt(n,10);if(!isNaN(c)&&c>a)throw new gr({url:t,message:`Download of ${t} exceeded maximum size of ${a} bytes (Content-Length: ${c}).`})}let r=e.body;if(r==null)return new Uint8Array(0);let o=r.getReader(),i=[],l=0;try{for(;;){let{done:c,value:d}=await o.read();if(c)break;if(l+=d.length,l>a)throw new gr({url:t,message:`Download of ${t} exceeded maximum size of ${a} bytes.`});i.push(d)}}finally{try{await o.cancel()}finally{o.releaseLock()}}let s=new Uint8Array(l),u=0;for(let c of i)s.set(c,u),u+=c.length;return s}function Z$(e){let t;try{t=new URL(e)}catch{throw new gr({url:e,message:`Invalid URL: ${e}`})}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new gr({url:e,message:`URL scheme must be http or https, got ${t.protocol}`});let a=t.hostname;if(!a)throw new gr({url:e,message:"URL must have a hostname"});if(a==="localhost"||a.endsWith(".local")||a.endsWith(".localhost"))throw new gr({url:e,message:`URL with hostname ${a} is not allowed`});if(a.startsWith("[")&&a.endsWith("]")){let n=a.slice(1,-1);if(S3(n))throw new gr({url:e,message:`URL with IPv6 address ${a} is not allowed`});return}if(H$(a)){if(B_(a))throw new gr({url:e,message:`URL with IP address ${a} is not allowed`});return}}function H$(e){let t=e.split(".");return t.length!==4?!1:t.every(a=>{let n=Number(a);return Number.isInteger(n)&&n>=0&&n<=255&&String(n)===a})}function B_(e){let t=e.split(".").map(Number),[a,n]=t;return a===0||a===10||a===127||a===169&&n===254||a===172&&n>=16&&n<=31||a===192&&n===168}function S3(e){let t=e.toLowerCase();if(t==="::1"||t==="::")return!0;if(t.startsWith("::ffff:")){let a=t.slice(7);if(H$(a))return B_(a);let n=a.split(":");if(n.length===2){let r=parseInt(n[0],16),o=parseInt(n[1],16);if(!isNaN(r)&&!isNaN(o)){let i=r>>8&255,l=r&255,s=o>>8&255,u=o&255;return B_(`${i}.${l}.${s}.${u}`)}}}return!!(t.startsWith("fc")||t.startsWith("fd")||t.startsWith("fe80"))}var Dn=({prefix:e,size:t=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let r=()=>{let o=a.length,i=new Array(t);for(let l=0;l<t;l++)i[l]=a[Math.random()*o|0];return i.join("")};if(e==null)return r;if(a.includes(n))throw new bA({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${a}".`});return()=>`${e}${n}${r()}`},V$=Dn();function Wc(e=globalThis){var t,a,n;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(n=(a=e.process)==null?void 0:a.versions)!=null&&n.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function Eo(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((a,n)=>{t[n.toLowerCase()]=a});else{Array.isArray(e)||(e=Object.entries(e));for(let[a,n]of e)n!=null&&(t[a.toLowerCase()]=n)}return t}function _i(e,...t){let a=new Headers(Eo(e)),n=a.get("user-agent")||"";return a.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}var w3=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,_3=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function N$(e){let t=JSON.parse(e);return t===null||typeof t!="object"||w3.test(e)===!1&&_3.test(e)===!1?t:I3(t)}function I3(e){let t=[e];for(;t.length;){let a=t;t=[];for(let n of a){if(Object.prototype.hasOwnProperty.call(n,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor!==null&&typeof n.constructor=="object"&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let r in n){let o=n[r];o&&typeof o=="object"&&t.push(o)}}}return e}function k3(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return N$(e)}try{return N$(e)}finally{Error.stackTraceLimit=t}}function V_(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:a}=e;if(a!=null)for(let n of Object.keys(a))a[n]=wi(a[n])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(wi):wi(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(wi)),e.allOf!=null&&(e.allOf=e.allOf.map(wi)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(wi));let{definitions:t}=e;if(t!=null)for(let a of Object.keys(t))t[a]=wi(t[a]);return e}function wi(e){return typeof e=="boolean"?e:V_(e)}var C3=Symbol("Let zodToJsonSchema decide on which parser to use"),U$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},T3=e=>typeof e=="string"?{...U$,name:e}:{...U$,...e};function Qa(){return{}}function L3(e,t){var a,n,r;let o={type:"array"};return(a=e.type)!=null&&a._def&&((r=(n=e.type)==null?void 0:n._def)==null?void 0:r.typeName)!==J.ZodAny&&(o.items=We(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(o.minItems=e.minLength.value),e.maxLength&&(o.maxItems=e.maxLength.value),e.exactLength&&(o.minItems=e.exactLength.value,o.maxItems=e.exactLength.value),o}function A3(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function E3(){return{type:"boolean"}}function G$(e,t){return We(e.type._def,t)}var $3=(e,t)=>We(e.innerType._def,t);function W$(e,t,a){let n=a??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((r,o)=>W$(e,t,r))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return M3(e)}}var M3=e=>{let t={type:"integer",format:"unix-time"};for(let a of e.checks)switch(a.kind){case"min":t.minimum=a.value;break;case"max":t.maximum=a.value;break}return t};function D3(e,t){return{...We(e.innerType._def,t),default:e.defaultValue()}}function z3(e,t){return t.effectStrategy==="input"?We(e.schema._def,t):Qa()}function O3(e){return{type:"string",enum:Array.from(e.values)}}var R3=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function P3(e,t){let a=[We(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),We(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(r=>!!r),n=[];return a.forEach(r=>{if(R3(r))n.push(...r.allOf);else{let o=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:i,...l}=r;o=l}n.push(o)}}),n.length?{allOf:n}:void 0}function N3(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var F_=void 0,$r={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(F_===void 0&&(F_=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),F_),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function J$(e,t){let a={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":Mr(a,"email",n.message,t);break;case"format:idn-email":Mr(a,"idn-email",n.message,t);break;case"pattern:zod":_a(a,$r.email,n.message,t);break}break;case"url":Mr(a,"uri",n.message,t);break;case"uuid":Mr(a,"uuid",n.message,t);break;case"regex":_a(a,n.regex,n.message,t);break;case"cuid":_a(a,$r.cuid,n.message,t);break;case"cuid2":_a(a,$r.cuid2,n.message,t);break;case"startsWith":_a(a,RegExp(`^${j_(n.value,t)}`),n.message,t);break;case"endsWith":_a(a,RegExp(`${j_(n.value,t)}$`),n.message,t);break;case"datetime":Mr(a,"date-time",n.message,t);break;case"date":Mr(a,"date",n.message,t);break;case"time":Mr(a,"time",n.message,t);break;case"duration":Mr(a,"duration",n.message,t);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"includes":{_a(a,RegExp(j_(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&Mr(a,"ipv4",n.message,t),n.version!=="v4"&&Mr(a,"ipv6",n.message,t);break}case"base64url":_a(a,$r.base64url,n.message,t);break;case"jwt":_a(a,$r.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&_a(a,$r.ipv4Cidr,n.message,t),n.version!=="v4"&&_a(a,$r.ipv6Cidr,n.message,t);break}case"emoji":_a(a,$r.emoji(),n.message,t);break;case"ulid":{_a(a,$r.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{Mr(a,"binary",n.message,t);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{_a(a,$r.base64,n.message,t);break}}break}case"nanoid":_a(a,$r.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function j_(e,t){return t.patternStrategy==="escape"?F3(e):e}var U3=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function F3(e){let t="";for(let a=0;a<e.length;a++)U3.has(e[a])||(t+="\\"),t+=e[a];return t}function Mr(e,t,a,n){var r;e.format||(r=e.anyOf)!=null&&r.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...a&&n.errorMessages&&{errorMessage:{format:a}}})):e.format=t}function _a(e,t,a,n){var r;e.pattern||(r=e.allOf)!=null&&r.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:F$(t,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):e.pattern=F$(t,n)}function F$(e,t){var a;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,o="",i=!1,l=!1,s=!1;for(let u=0;u<r.length;u++){if(i){o+=r[u],i=!1;continue}if(n.i){if(l){if(r[u].match(/[a-z]/)){s?(o+=r[u],o+=`${r[u-2]}-${r[u]}`.toUpperCase(),s=!1):r[u+1]==="-"&&((a=r[u+2])!=null&&a.match(/[a-z]/))?(o+=r[u],s=!0):o+=`${r[u]}${r[u].toUpperCase()}`;continue}}else if(r[u].match(/[a-z]/)){o+=`[${r[u]}${r[u].toUpperCase()}]`;continue}}if(n.m){if(r[u]==="^"){o+=`(^|(?<=[\r
|
|
63
|
+
]))`;continue}else if(r[u]==="$"){o+=`($|(?=[\r
|
|
64
|
+
]))`;continue}}if(n.s&&r[u]==="."){o+=l?`${r[u]}\r
|
|
65
|
+
`:`[${r[u]}\r
|
|
66
|
+
]`;continue}o+=r[u],r[u]==="\\"?i=!0:l&&r[u]==="]"?l=!1:!l&&r[u]==="["&&(l=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return o}function X$(e,t){var a,n,r,o,i,l;let s={type:"object",additionalProperties:(a=We(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?a:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===J.ZodString&&((r=e.keyType._def.checks)!=null&&r.length)){let{type:u,...c}=J$(e.keyType._def,t);return{...s,propertyNames:c}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===J.ZodEnum)return{...s,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===J.ZodBranded&&e.keyType._def.type._def.typeName===J.ZodString&&((l=e.keyType._def.type._def.checks)!=null&&l.length)){let{type:u,...c}=G$(e.keyType._def,t);return{...s,propertyNames:c}}}return s}function j3(e,t){if(t.mapStrategy==="record")return X$(e,t);let a=We(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Qa(),n=We(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Qa();return{type:"array",maxItems:125,items:{type:"array",items:[a,n],minItems:2,maxItems:2}}}function B3(e){let t=e.values,n=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),r=Array.from(new Set(n.map(o=>typeof o)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:n}}function q3(){return{not:Qa()}}function Z3(){return{type:"null"}}var q_={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function H3(e,t){let a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every(n=>n._def.typeName in q_&&(!n._def.checks||!n._def.checks.length))){let n=a.reduce((r,o)=>{let i=q_[o._def.typeName];return i&&!r.includes(i)?[...r,i]:r},[]);return{type:n.length>1?n:n[0]}}else if(a.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=a.reduce((r,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...r,i];case"bigint":return[...r,"integer"];case"object":if(o._def.value===null)return[...r,"null"];default:return r}},[]);if(n.length===a.length){let r=n.filter((o,i,l)=>l.indexOf(o)===i);return{type:r.length>1?r:r[0],enum:a.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(a.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:a.reduce((n,r)=>[...n,...r._def.values.filter(o=>!n.includes(o))],[])};return V3(e,t)}var V3=(e,t)=>{let a=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,r)=>We(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return a.length?{anyOf:a}:void 0};function G3(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[q_[e.innerType._def.typeName],"null"]};let a=We(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function W3(e){let t={type:"number"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"int":t.type="integer";break;case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function J3(e,t){let a={type:"object",properties:{}},n=[],r=e.shape();for(let i in r){let l=r[i];if(l===void 0||l._def===void 0)continue;let s=K3(l),u=We(l._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});u!==void 0&&(a.properties[i]=u,s||n.push(i))}n.length&&(a.required=n);let o=X3(e,t);return o!==void 0&&(a.additionalProperties=o),a}function X3(e,t){if(e.catchall._def.typeName!=="ZodNever")return We(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function K3(e){try{return e.isOptional()}catch{return!0}}var Y3=(e,t)=>{var a;if(t.currentPath.toString()===((a=t.propertyPath)==null?void 0:a.toString()))return We(e.innerType._def,t);let n=We(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:Qa()},n]}:Qa()},Q3=(e,t)=>{if(t.pipeStrategy==="input")return We(e.in._def,t);if(t.pipeStrategy==="output")return We(e.out._def,t);let a=We(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=We(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",a?"1":"0"]});return{allOf:[a,n].filter(r=>r!==void 0)}};function eF(e,t){return We(e.type._def,t)}function tF(e,t){let n={type:"array",uniqueItems:!0,items:We(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function aF(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((a,n)=>We(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[]),additionalItems:We(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((a,n)=>We(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[])}}function rF(){return{not:Qa()}}function nF(){return Qa()}var oF=(e,t)=>We(e.innerType._def,t),iF=(e,t,a)=>{switch(t){case J.ZodString:return J$(e,a);case J.ZodNumber:return W3(e);case J.ZodObject:return J3(e,a);case J.ZodBigInt:return A3(e);case J.ZodBoolean:return E3();case J.ZodDate:return W$(e,a);case J.ZodUndefined:return rF();case J.ZodNull:return Z3();case J.ZodArray:return L3(e,a);case J.ZodUnion:case J.ZodDiscriminatedUnion:return H3(e,a);case J.ZodIntersection:return P3(e,a);case J.ZodTuple:return aF(e,a);case J.ZodRecord:return X$(e,a);case J.ZodLiteral:return N3(e);case J.ZodEnum:return O3(e);case J.ZodNativeEnum:return B3(e);case J.ZodNullable:return G3(e,a);case J.ZodOptional:return Y3(e,a);case J.ZodMap:return j3(e,a);case J.ZodSet:return tF(e,a);case J.ZodLazy:return()=>e.getter()._def;case J.ZodPromise:return eF(e,a);case J.ZodNaN:case J.ZodNever:return q3();case J.ZodEffects:return z3(e,a);case J.ZodAny:return Qa();case J.ZodUnknown:return nF();case J.ZodDefault:return D3(e,a);case J.ZodBranded:return G$(e,a);case J.ZodReadonly:return oF(e,a);case J.ZodCatch:return $3(e,a);case J.ZodPipeline:return Q3(e,a);case J.ZodFunction:case J.ZodVoid:case J.ZodSymbol:return;default:return(n=>{})(t)}},lF=(e,t)=>{let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];a++);return[(e.length-a).toString(),...t.slice(a)].join("/")};function We(e,t,a=!1){var n;let r=t.seen.get(e);if(t.override){let s=(n=t.override)==null?void 0:n.call(t,e,t,r,a);if(s!==C3)return s}if(r&&!a){let s=sF(r,t);if(s!==void 0)return s}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=iF(e,e.typeName,t),l=typeof i=="function"?We(i(),t):i;if(l&&uF(e,t,l),t.postProcess){let s=t.postProcess(l,e,t);return o.jsonSchema=l,s}return o.jsonSchema=l,l}var sF=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:lF(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((a,n)=>t.currentPath[n]===a)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),Qa()):t.$refStrategy==="seen"?Qa():void 0}},uF=(e,t,a)=>(e.description&&(a.description=e.description),a),cF=e=>{let t=T3(e),a=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:a,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},dF=(e,t)=>{var a;let n=cF(t),r=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,d])=>{var p;return{...u,[c]:(p=We(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0))!=null?p:Qa()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(a=We(e._def,o===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,o]},!1))!=null?a:Qa(),l=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;l!==void 0&&(i.title=l);let s=o===void 0?r?{...i,[n.definitionPath]:r}:i:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,o].join("/"),[n.definitionPath]:{...r,[o]:i}};return s.$schema="http://json-schema.org/draft-07/schema#",s},Z_=Symbol.for("vercel.ai.schema");function Ym(e){let t;return()=>(t==null&&(t=e()),t)}function Ls(e,{validate:t}={}){return{[Z_]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function fF(e){return typeof e=="object"&&e!==null&&Z_ in e&&e[Z_]===!0&&"jsonSchema"in e&&"validate"in e}function As(e){return e==null?Ls({properties:{},additionalProperties:!1}):fF(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Jc(e):pF(e):e()}function pF(e){return Ls(()=>V_(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let a=await e["~standard"].validate(t);return"value"in a?{success:!0,value:a.value}:{success:!1,error:new Zr({value:t,cause:a.issues})}}})}function mF(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return Ls(()=>dF(e,{$refStrategy:n?"root":"none"}),{validate:async r=>{let o=await e.safeParseAsync(r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function hF(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return Ls(()=>V_(is(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async r=>{let o=await Ic(e,r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function gF(e){return"_zod"in e}function Jc(e,t){return gF(e)?hF(e,t):mF(e,t)}async function Qm({value:e,schema:t,context:a}){let n=await Es({value:e,schema:t,context:a});if(!n.success)throw Zr.wrap({value:e,cause:n.error,context:a});return n.value}async function Es({value:e,schema:t,context:a}){let n=As(t);try{if(n.validate==null)return{success:!0,value:e,rawValue:e};let r=await n.validate(e);return r.success?{success:!0,value:r.value,rawValue:e}:{success:!1,error:Zr.wrap({value:e,cause:r.error,context:a}),rawValue:e}}catch(r){return{success:!1,error:Zr.wrap({value:e,cause:r,context:a}),rawValue:e}}}async function zn({text:e,schema:t}){try{let a=k3(e);return t==null?{success:!0,value:a,rawValue:a}:await Es({value:a,schema:t})}catch(a){return{success:!1,error:zy.isInstance(a)?a:new zy({text:e,cause:a}),rawValue:void 0}}}function K$({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Km).pipeThrough(new TransformStream({async transform({data:a},n){a!=="[DONE]"&&n.enqueue(await zn({text:a,schema:t}))}}))}async function Xr(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}async function vF(e,t){let n=await As(e).jsonSchema,r={...n,properties:{...n.properties,widgetType:{type:"string",const:t}},required:[...n.required||[],"widgetType"]};if(!r.properties||Object.keys(r.properties).length<=1)throw new Error(`Invalid schema for widget "${t}". Expected a schema with properties, but got: ${JSON.stringify(r)}. Make sure you're passing a valid schema (JSON Schema, zod v3, or zod v4).`);return r}async function eh({api:e,threadId:t,widgets:a,onAuthError:n}){let r=await Promise.all(a.map(async({widgetType:u,schema:c,enrich:d})=>{let p=await vF(c,u);return{widgetType:u,schema:p,enrich:d}})),{baseUrl:o,headers:i={}}=e,l=u=>fetch(`${o}/api/chat/widgets`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`,"thread-id":t,...i},body:JSON.stringify({widgetSchemas:r})}),s=await l(e.token);if(s.status===401&&n){let u=await n();u&&(s=await l(u))}if(!s.ok){let u=await s.text().catch(()=>s.statusText);throw new Error(`Failed to register chat widgets: ${s.status} ${u}`)}}var ah=ne(yt());var Y$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yF=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,n)=>n?n.toUpperCase():a.toLowerCase()),G_=e=>{let t=yF(e);return t.charAt(0).toUpperCase()+t.slice(1)},th=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim(),Q$=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Xc=ne(yt());var eM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var tM=(0,Xc.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:r="",children:o,iconNode:i,...l},s)=>(0,Xc.createElement)("svg",{ref:s,...eM,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:th("lucide",r),...!o&&!Q$(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,c])=>(0,Xc.createElement)(u,c)),...Array.isArray(o)?o:[o]]));var Nt=(e,t)=>{let a=(0,ah.forwardRef)(({className:n,...r},o)=>(0,ah.createElement)(tM,{ref:o,iconNode:t,className:th(`lucide-${Y$(G_(e))}`,`lucide-${e}`,n),...r}));return a.displayName=G_(e),a};var xF=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Kc=Nt("chevron-right",xF);var bF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],$o=Nt("circle-stop",bF);var SF=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Ii=Nt("message-square-text",SF);var wF=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],On=Nt("message-square",wF);var _F=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],Yc=Nt("mic-off",_F);var IF=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Qc=Nt("mic",IF);var kF=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ed=Nt("send",kF);var CF=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],ki=Nt("thumbs-up",CF);var TF=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],Ci=Nt("thumbs-down",TF);var LF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],td=Nt("x",LF);var we=ne(yt(),1);async function aM(e){let{api:t,agentId:a,agentVersion:n,toolName:r,args:o={},onAuthError:i}=e,{baseUrl:l,headers:s={}}=t,u=d=>fetch(`${l}/chat/tools/${encodeURIComponent(r)}/approval-config`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`,"agent-id":a,...n!==void 0?{version:String(n)}:{},...s},body:JSON.stringify({args:o})}),c=await u(t.token);if(c.status===401&&i){let d=await i();d&&(c=await u(d))}return c.ok?c.json():(console.error(`[fetchApprovalConfig] Failed to fetch approval config for ${r}:`,c.status),null)}function rM(e,t){return async(a,n={})=>{let{baseUrl:r,headers:o={}}=e,i=s=>fetch(`${r}/api/tools/${a}/invoke`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`,...o},body:JSON.stringify(n)}),l=await i(e.token);if(l.status===401&&t){let s=await t();s&&(l=await i(s))}return l.ok?l.json():{success:!1,error:{message:`HTTP ${l.status}`,details:[await l.text().catch(()=>l.statusText)],code:"HTTP_ERROR"}}}}var yr=ne(yt(),1);var Ut=v;var EF=Object.defineProperty,$F=(e,t)=>{for(var a in t)EF(e,a,{get:t[a],enumerable:!0})},MF="AI_InvalidArgumentError",DF=`vercel.ai.error.${MF}`,zF=Symbol.for(DF),OF;OF=zF;var RF="AI_InvalidStreamPartError",PF=`vercel.ai.error.${RF}`,NF=Symbol.for(PF),UF;UF=NF;var FF="AI_InvalidToolApprovalError",jF=`vercel.ai.error.${FF}`,BF=Symbol.for(jF),qF;qF=BF;var ZF="AI_InvalidToolInputError",HF=`vercel.ai.error.${ZF}`,VF=Symbol.for(HF),GF;GF=VF;var WF="AI_ToolCallNotFoundForApprovalError",JF=`vercel.ai.error.${WF}`,XF=Symbol.for(JF),KF;KF=XF;var YF="AI_MissingToolResultsError",QF=`vercel.ai.error.${YF}`,ej=Symbol.for(QF),tj;tj=ej;var aj="AI_NoImageGeneratedError",rj=`vercel.ai.error.${aj}`,nj=Symbol.for(rj),oj;oj=nj;var oM="AI_NoObjectGeneratedError",iM=`vercel.ai.error.${oM}`,ij=Symbol.for(iM),lM,Mo=class extends Ue{constructor({message:e="No object generated.",cause:t,text:a,response:n,usage:r,finishReason:o}){super({name:oM,message:e,cause:t}),this[lM]=!0,this.text=a,this.response=n,this.usage=r,this.finishReason=o}static isInstance(e){return Ue.hasMarker(e,iM)}};lM=ij;var lj="AI_NoOutputGeneratedError",sj=`vercel.ai.error.${lj}`,uj=Symbol.for(sj),cj;cj=uj;var dj="AI_NoSpeechGeneratedError",fj=`vercel.ai.error.${dj}`,pj=Symbol.for(fj),mj;mj=pj;var hj="AI_NoTranscriptGeneratedError",gj=`vercel.ai.error.${hj}`,vj=Symbol.for(gj),yj;yj=vj;var xj="AI_NoVideoGeneratedError",bj=`vercel.ai.error.${xj}`,Sj=Symbol.for(bj),wj;wj=Sj;var _j="AI_NoSuchToolError",Ij=`vercel.ai.error.${_j}`,kj=Symbol.for(Ij),Cj;Cj=kj;var Tj="AI_ToolCallRepairError",Lj=`vercel.ai.error.${Tj}`,Aj=Symbol.for(Lj),Ej;Ej=Aj;var sM="AI_UIMessageStreamError",uM=`vercel.ai.error.${sM}`,$j=Symbol.for(uM),cM,$s=class extends Ue{constructor({chunkType:e,chunkId:t,message:a}){super({name:sM,message:a}),this[cM]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Ue.hasMarker(e,uM)}};cM=$j;var Mj="AI_InvalidDataContentError",Dj=`vercel.ai.error.${Mj}`,zj=Symbol.for(Dj),Oj;Oj=zj;var Rj="AI_InvalidMessageRoleError",Pj=`vercel.ai.error.${Rj}`,Nj=Symbol.for(Pj),Uj;Uj=Nj;var Fj="AI_MessageConversionError",jj=`vercel.ai.error.${Fj}`,Bj=Symbol.for(jj),qj;qj=Bj;var Zj="AI_RetryError",Hj=`vercel.ai.error.${Zj}`,Vj=Symbol.for(Hj),Gj;Gj=Vj;var W_="6.0.116",Wj=async({url:e,maxBytes:t,abortSignal:a})=>{var n;let r=e.toString();Z$(r);try{let o=await fetch(r,{headers:_i({},`ai-sdk/${W_}`,Wc()),signal:a});if(!o.ok)throw new gr({url:r,statusCode:o.status,statusText:o.statusText});return{data:await q$({response:o,url:r,maxBytes:t??H_}),mediaType:(n=o.headers.get("content-type"))!=null?n:void 0}}catch(o){throw gr.isInstance(o)?o:new gr({url:r,cause:o})}};var dM=v.union([v.string(),v.instanceof(Uint8Array),v.instanceof(ArrayBuffer),v.custom(e=>{var t,a;return(a=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?a:!1},{message:"Must be a Buffer"})]);var ad=v.lazy(()=>v.union([v.null(),v.string(),v.number(),v.boolean(),v.record(v.string(),ad.optional()),v.array(ad)])),de=v.record(v.string(),v.record(v.string(),ad.optional())),fM=v.object({type:v.literal("text"),text:v.string(),providerOptions:de.optional()}),Jj=v.object({type:v.literal("image"),image:v.union([dM,v.instanceof(URL)]),mediaType:v.string().optional(),providerOptions:de.optional()}),pM=v.object({type:v.literal("file"),data:v.union([dM,v.instanceof(URL)]),filename:v.string().optional(),mediaType:v.string(),providerOptions:de.optional()}),Xj=v.object({type:v.literal("reasoning"),text:v.string(),providerOptions:de.optional()}),Kj=v.object({type:v.literal("tool-call"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerOptions:de.optional(),providerExecuted:v.boolean().optional()}),Yj=v.discriminatedUnion("type",[v.object({type:v.literal("text"),value:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("json"),value:ad,providerOptions:de.optional()}),v.object({type:v.literal("execution-denied"),reason:v.string().optional(),providerOptions:de.optional()}),v.object({type:v.literal("error-text"),value:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("error-json"),value:ad,providerOptions:de.optional()}),v.object({type:v.literal("content"),value:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("media"),data:v.string(),mediaType:v.string()}),v.object({type:v.literal("file-data"),data:v.string(),mediaType:v.string(),filename:v.string().optional(),providerOptions:de.optional()}),v.object({type:v.literal("file-url"),url:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:de.optional()}),v.object({type:v.literal("image-data"),data:v.string(),mediaType:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("image-url"),url:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("image-file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:de.optional()}),v.object({type:v.literal("custom"),providerOptions:de.optional()})]))})]),mM=v.object({type:v.literal("tool-result"),toolCallId:v.string(),toolName:v.string(),output:Yj,providerOptions:de.optional()}),Qj=v.object({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),eB=v.object({type:v.literal("tool-approval-response"),approvalId:v.string(),approved:v.boolean(),reason:v.string().optional()}),tB=v.object({role:v.literal("system"),content:v.string(),providerOptions:de.optional()}),aB=v.object({role:v.literal("user"),content:v.union([v.string(),v.array(v.union([fM,Jj,pM]))]),providerOptions:de.optional()}),rB=v.object({role:v.literal("assistant"),content:v.union([v.string(),v.array(v.union([fM,pM,Xj,Kj,mM,Qj]))]),providerOptions:de.optional()}),nB=v.object({role:v.literal("tool"),content:v.array(v.union([mM,eB])),providerOptions:de.optional()}),GJ=v.union([tB,aB,rB,nB]);function hM(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let a={...e};for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];if(r===void 0)continue;let o=n in e?e[n]:void 0,i=r!==null&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp),l=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&l?a[n]=hM(o,r):a[n]=r}return a}var oB={};$F(oB,{array:()=>uB,choice:()=>cB,json:()=>dB,object:()=>sB,text:()=>lB});function iB(e){let t=["ROOT"],a=-1,n=null;function r(s,u,c){switch(s){case'"':{a=u,t.pop(),t.push(c),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{a=u,n=u,t.pop(),t.push(c),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=u,t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"{":{a=u,t.pop(),t.push(c),t.push("INSIDE_OBJECT_START");break}case"[":{a=u,t.pop(),t.push(c),t.push("INSIDE_ARRAY_START");break}}}function o(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{a=u,t.pop();break}}}function i(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=u,t.pop();break}}}for(let s=0;s<e.length;s++){let u=e[s];switch(t[t.length-1]){case"ROOT":r(u,s,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{a=s,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{u===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{r(u,s,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,s);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),a=s;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:a=s}break}case"INSIDE_ARRAY_START":{u==="]"?(a=s,t.pop()):(a=s,r(u,s,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=s,t.pop();break}default:{a=s;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{r(u,s,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),a=s;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=s;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let d=e.substring(n,s+1);!"false".startsWith(d)&&!"true".startsWith(d)&&!"null".startsWith(d)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,s):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s)):a=s;break}}}let l=e.slice(0,a+1);for(let s=t.length-1;s>=0;s--)switch(t[s]){case"INSIDE_STRING":{l+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{l+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{l+="]";break}case"INSIDE_LITERAL":{let c=e.substring(n,e.length);"true".startsWith(c)?l+="true".slice(c.length):"false".startsWith(c)?l+="false".slice(c.length):"null".startsWith(c)&&(l+="null".slice(c.length))}}return l}async function rd(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await zn({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await zn({text:iB(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var lB=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),sB=({schema:e,name:t,description:a})=>{let n=As(e);return{name:"object",responseFormat:Xr(n.jsonSchema).then(r=>({type:"json",schema:r,...t!=null&&{name:t},...a!=null&&{description:a}})),async parseCompleteOutput({text:r},o){let i=await zn({text:r});if(!i.success)throw new Mo({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=await Es({value:i.value,schema:n});if(!l.success)throw new Mo({message:"No object generated: response did not match schema.",cause:l.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return l.value},async parsePartialOutput({text:r}){let o=await rd(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},uB=({element:e,name:t,description:a})=>{let n=As(e);return{name:"array",responseFormat:Xr(n.jsonSchema).then(r=>{let{$schema:o,...i}=r;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}}),async parseCompleteOutput({text:r},o){let i=await zn({text:r});if(!i.success)throw new Mo({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=i.value;if(l==null||typeof l!="object"||!("elements"in l)||!Array.isArray(l.elements))throw new Mo({message:"No object generated: response did not match schema.",cause:new Zr({value:l,cause:"response must be an object with an elements array"}),text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});for(let s of l.elements){let u=await Es({value:s,schema:n});if(!u.success)throw new Mo({message:"No object generated: response did not match schema.",cause:u.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason})}return l.elements},async parsePartialOutput({text:r}){let o=await rd(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=o.value;if(i==null||typeof i!="object"||!("elements"in i)||!Array.isArray(i.elements))return;let l=o.state==="repaired-parse"&&i.elements.length>0?i.elements.slice(0,-1):i.elements,s=[];for(let u of l){let c=await Es({value:u,schema:n});c.success&&s.push(c.value)}return{partial:s}}}},createElementStreamTransform(){let r=0;return new TransformStream({transform({partialOutput:o},i){if(o!=null)for(;r<o.length;r++)i.enqueue(o[r])}})}}},cB=({options:e,name:t,description:a})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}),async parseCompleteOutput({text:n},r){let o=await zn({text:n});if(!o.success)throw new Mo({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=o.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new Mo({message:"No object generated: response did not match schema.",cause:new Zr({value:i,cause:"response must be an object that contains a choice value."}),text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.result},async parsePartialOutput({text:n}){let r=await rd(n);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=r.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string")return;let i=e.filter(l=>l.startsWith(o.result));return r.state==="successful-parse"?i.includes(o.result)?{partial:o.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),dB=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:a},n){let r=await zn({text:a});if(!r.success)throw new Mo({message:"No object generated: could not parse the response.",cause:r.error,text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});return r.value},async parsePartialOutput({text:a}){let n=await rd(a);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return n.value===void 0?void 0:{partial:n.value}}},createElementStreamTransform(){}});var KJ=Dn({prefix:"aitxt",size:24});var QJ=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
67
|
+
|
|
68
|
+
`)},flush(e){e.enqueue(`data: [DONE]
|
|
69
|
+
|
|
70
|
+
`)}})}};var fB=Ym(()=>Jc(v.union([v.strictObject({type:v.literal("text-start"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("text-delta"),id:v.string(),delta:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("text-end"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("error"),errorText:v.string()}),v.strictObject({type:v.literal("tool-input-start"),toolCallId:v.string(),toolName:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-delta"),toolCallId:v.string(),inputTextDelta:v.string()}),v.strictObject({type:v.literal("tool-input-available"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-error"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),dynamic:v.boolean().optional(),errorText:v.string(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),v.strictObject({type:v.literal("tool-output-available"),toolCallId:v.string(),output:v.unknown(),providerExecuted:v.boolean().optional(),dynamic:v.boolean().optional(),preliminary:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-error"),toolCallId:v.string(),errorText:v.string(),providerExecuted:v.boolean().optional(),dynamic:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-denied"),toolCallId:v.string()}),v.strictObject({type:v.literal("reasoning-start"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("reasoning-delta"),id:v.string(),delta:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("reasoning-end"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("file"),url:v.string(),mediaType:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:v.string().optional(),data:v.unknown(),transient:v.boolean().optional()}),v.strictObject({type:v.literal("start-step")}),v.strictObject({type:v.literal("finish-step")}),v.strictObject({type:v.literal("start"),messageId:v.string().optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("finish"),finishReason:v.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("abort"),reason:v.string().optional()}),v.strictObject({type:v.literal("message-metadata"),messageMetadata:v.unknown()})])));function pB(e){return e.type.startsWith("data-")}function J_(e){return e.type.startsWith("tool-")}function mB(e){return e.type==="dynamic-tool"}function Ms(e){return J_(e)||mB(e)}function nM(e){return e.type.split("-").slice(1).join("-")}function hB({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function gB({stream:e,messageMetadataSchema:t,dataPartSchemas:a,runUpdateMessageJob:n,onError:r,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(l,s){await n(async({state:u,write:c})=>{var d,p,f,m;function w(h){let L=u.message.parts.filter(Ms).find(y=>y.toolCallId===h);if(L==null)throw new $s({chunkType:"tool-invocation",chunkId:h,message:`No tool invocation found for tool call ID "${h}".`});return L}function C(h){var b;let L=u.message.parts.find(S=>J_(S)&&S.toolCallId===h.toolCallId),y=h,_=L;L!=null?(L.state=h.state,_.input=y.input,_.output=y.output,_.errorText=y.errorText,_.rawInput=y.rawInput,_.preliminary=y.preliminary,h.title!==void 0&&(_.title=h.title),_.providerExecuted=(b=y.providerExecuted)!=null?b:L.providerExecuted,y.providerMetadata!=null&&(L.callProviderMetadata=y.providerMetadata)):u.message.parts.push({type:`tool-${h.toolName}`,toolCallId:h.toolCallId,state:h.state,title:h.title,input:y.input,output:y.output,rawInput:y.rawInput,errorText:y.errorText,providerExecuted:y.providerExecuted,preliminary:y.preliminary,...y.providerMetadata!=null?{callProviderMetadata:y.providerMetadata}:{}})}function g(h){var b,L;let y=u.message.parts.find(T=>T.type==="dynamic-tool"&&T.toolCallId===h.toolCallId),_=h,S=y;y!=null?(y.state=h.state,S.toolName=h.toolName,S.input=_.input,S.output=_.output,S.errorText=_.errorText,S.rawInput=(b=_.rawInput)!=null?b:S.rawInput,S.preliminary=_.preliminary,h.title!==void 0&&(S.title=h.title),S.providerExecuted=(L=_.providerExecuted)!=null?L:y.providerExecuted,_.providerMetadata!=null&&(y.callProviderMetadata=_.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:h.toolName,toolCallId:h.toolCallId,state:h.state,input:_.input,output:_.output,errorText:_.errorText,preliminary:_.preliminary,providerExecuted:_.providerExecuted,title:h.title,..._.providerMetadata!=null?{callProviderMetadata:_.providerMetadata}:{}})}async function x(h){if(h!=null){let b=u.message.metadata!=null?hM(u.message.metadata,h):h;t!=null&&await Qm({value:b,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=b}}switch(l.type){case"text-start":{let h={type:"text",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeTextParts[l.id]=h,u.message.parts.push(h),c();break}case"text-delta":{let h=u.activeTextParts[l.id];if(h==null)throw new $s({chunkType:"text-delta",chunkId:l.id,message:`Received text-delta for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});h.text+=l.delta,h.providerMetadata=(d=l.providerMetadata)!=null?d:h.providerMetadata,c();break}case"text-end":{let h=u.activeTextParts[l.id];if(h==null)throw new $s({chunkType:"text-end",chunkId:l.id,message:`Received text-end for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});h.state="done",h.providerMetadata=(p=l.providerMetadata)!=null?p:h.providerMetadata,delete u.activeTextParts[l.id],c();break}case"reasoning-start":{let h={type:"reasoning",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeReasoningParts[l.id]=h,u.message.parts.push(h),c();break}case"reasoning-delta":{let h=u.activeReasoningParts[l.id];if(h==null)throw new $s({chunkType:"reasoning-delta",chunkId:l.id,message:`Received reasoning-delta for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});h.text+=l.delta,h.providerMetadata=(f=l.providerMetadata)!=null?f:h.providerMetadata,c();break}case"reasoning-end":{let h=u.activeReasoningParts[l.id];if(h==null)throw new $s({chunkType:"reasoning-end",chunkId:l.id,message:`Received reasoning-end for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});h.providerMetadata=(m=l.providerMetadata)!=null?m:h.providerMetadata,h.state="done",delete u.activeReasoningParts[l.id],c();break}case"file":{u.message.parts.push({type:"file",mediaType:l.mediaType,url:l.url,...l.providerMetadata!=null?{providerMetadata:l.providerMetadata}:{}}),c();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:l.sourceId,url:l.url,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:l.sourceId,mediaType:l.mediaType,title:l.title,filename:l.filename,providerMetadata:l.providerMetadata}),c();break}case"tool-input-start":{let h=u.message.parts.filter(J_);u.partialToolCalls[l.toolCallId]={text:"",toolName:l.toolName,index:h.length,dynamic:l.dynamic,title:l.title},l.dynamic?g({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}):C({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"tool-input-delta":{let h=u.partialToolCalls[l.toolCallId];if(h==null)throw new $s({chunkType:"tool-input-delta",chunkId:l.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${l.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});h.text+=l.inputTextDelta;let{value:b}=await rd(h.text);h.dynamic?g({toolCallId:l.toolCallId,toolName:h.toolName,state:"input-streaming",input:b,title:h.title}):C({toolCallId:l.toolCallId,toolName:h.toolName,state:"input-streaming",input:b,title:h.title}),c();break}case"tool-input-available":{l.dynamic?g({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}):C({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}),c(),o&&!l.providerExecuted&&await o({toolCall:l});break}case"tool-input-error":{let h=u.message.parts.filter(Ms).find(L=>L.toolCallId===l.toolCallId);(h!=null?h.type==="dynamic-tool":!!l.dynamic)?g({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}):C({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:void 0,rawInput:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}),c();break}case"tool-approval-request":{let h=w(l.toolCallId);h.state="approval-requested",h.approval={id:l.approvalId},c();break}case"tool-output-denied":{let h=w(l.toolCallId);h.state="output-denied",c();break}case"tool-output-available":{let h=w(l.toolCallId);h.type==="dynamic-tool"?g({toolCallId:l.toolCallId,toolName:h.toolName,state:"output-available",input:h.input,output:l.output,preliminary:l.preliminary,providerExecuted:l.providerExecuted,title:h.title}):C({toolCallId:l.toolCallId,toolName:nM(h),state:"output-available",input:h.input,output:l.output,providerExecuted:l.providerExecuted,preliminary:l.preliminary,title:h.title}),c();break}case"tool-output-error":{let h=w(l.toolCallId);h.type==="dynamic-tool"?g({toolCallId:l.toolCallId,toolName:h.toolName,state:"output-error",input:h.input,errorText:l.errorText,providerExecuted:l.providerExecuted,title:h.title}):C({toolCallId:l.toolCallId,toolName:nM(h),state:"output-error",input:h.input,rawInput:h.rawInput,errorText:l.errorText,providerExecuted:l.providerExecuted,title:h.title}),c();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{l.messageId!=null&&(u.message.id=l.messageId),await x(l.messageMetadata),(l.messageId!=null||l.messageMetadata!=null)&&c();break}case"finish":{l.finishReason!=null&&(u.finishReason=l.finishReason),await x(l.messageMetadata),l.messageMetadata!=null&&c();break}case"message-metadata":{await x(l.messageMetadata),l.messageMetadata!=null&&c();break}case"error":{r?.(new Error(l.errorText));break}default:if(pB(l)){if(a?.[l.type]!=null){let L=u.message.parts.findIndex(_=>"id"in _&&"data"in _&&_.id===l.id&&_.type===l.type),y=L>=0?L:u.message.parts.length;await Qm({value:l.data,schema:a[l.type],context:{field:`message.parts[${y}].data`,entityName:l.type,entityId:l.id}})}let h=l;if(h.transient){i?.(h);break}let b=h.id!=null?u.message.parts.find(L=>h.type===L.type&&h.id===L.id):void 0;b!=null?b.data=h.data:u.message.parts.push(h),i?.(h),c()}}s.enqueue(l)})}}))}async function vB({stream:e,onError:t}){let a=e.getReader();try{for(;;){let{done:n}=await a.read();if(n)break}}catch(n){t?.(n)}finally{a.releaseLock()}}var rX=Dn({prefix:"aitxt",size:24});var iX=Ym(()=>Jc(v.array(v.object({id:v.string(),role:v.enum(["system","user","assistant"]),metadata:v.unknown().optional(),parts:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:de.optional()}),v.object({type:v.literal("reasoning"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:de.optional()}),v.object({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:de.optional()}),v.object({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:de.optional()}),v.object({type:v.literal("file"),mediaType:v.string(),filename:v.string().optional(),url:v.string(),providerMetadata:de.optional()}),v.object({type:v.literal("step-start")}),v.object({type:v.string().startsWith("data-"),id:v.string().optional(),data:v.unknown()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("input-streaming"),input:v.unknown().optional(),providerExecuted:v.boolean().optional(),callProviderMetadata:de.optional(),output:v.never().optional(),errorText:v.never().optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("input-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.never().optional(),reason:v.never().optional()})}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.boolean(),reason:v.string().optional()})}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("output-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:de.optional(),preliminary:v.boolean().optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("output-error"),input:v.unknown(),rawInput:v.unknown().optional(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.string(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("output-denied"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("input-streaming"),providerExecuted:v.boolean().optional(),callProviderMetadata:de.optional(),input:v.unknown().optional(),output:v.never().optional(),errorText:v.never().optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("input-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.never().optional(),reason:v.never().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.boolean(),reason:v.string().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("output-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:de.optional(),preliminary:v.boolean().optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("output-error"),providerExecuted:v.boolean().optional(),input:v.unknown(),rawInput:v.unknown().optional(),output:v.never().optional(),errorText:v.string(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("output-denied"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var sX=Dn({prefix:"aiobj",size:24});function gM(e){return({url:t,abortSignal:a})=>Wj({url:t,maxBytes:e?.maxBytes,abortSignal:a})}var yB=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,a)=>{this.queue.push(async()=>{try{await e(),t()}catch(n){a(n)}}),this.processQueue()})}};var cX=Dn({prefix:"aiobj",size:24});var dX=gM();var xB="AI_NoSuchProviderError",bB=`vercel.ai.error.${xB}`,SB=Symbol.for(bB),wB;wB=SB;var fX=gM();async function _B(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{let{name:a,type:n}=t,r=await new Promise((o,i)=>{let l=new FileReader;l.onload=s=>{var u;o((u=s.target)==null?void 0:u.result)},l.onerror=s=>i(s),l.readAsDataURL(t)});return{type:"file",mediaType:n,filename:a,url:r}}))}var IB=class{constructor({api:e="/api/chat",credentials:t,headers:a,body:n,fetch:r,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=a,this.body=n,this.fetch=r,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var a,n,r,o,i;let l=await Xr(this.body),s=await Xr(this.headers),u=await Xr(this.credentials),c={...Eo(s),...Eo(t.headers)},d=await((a=this.prepareSendMessagesRequest)==null?void 0:a.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...l,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=(n=d?.api)!=null?n:this.api,f=d?.headers!==void 0?Eo(d.headers):c,m=d?.body!==void 0?d.body:{...l,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},w=(r=d?.credentials)!=null?r:u,g=await((o=this.fetch)!=null?o:globalThis.fetch)(p,{method:"POST",headers:_i({"Content-Type":"application/json",...f},`ai-sdk/${W_}`,Wc()),body:JSON.stringify(m),credentials:w,signal:e});if(!g.ok)throw new Error((i=await g.text())!=null?i:"Failed to fetch the chat response.");if(!g.body)throw new Error("The response body is empty.");return this.processResponseStream(g.body)}async reconnectToStream(e){var t,a,n,r,o;let i=await Xr(this.body),l=await Xr(this.headers),s=await Xr(this.credentials),u={...Eo(l),...Eo(e.headers)},c=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:u,credentials:s,requestMetadata:e.metadata})),d=(a=c?.api)!=null?a:`${this.api}/${e.chatId}/stream`,p=c?.headers!==void 0?Eo(c.headers):u,f=(n=c?.credentials)!=null?n:s,w=await((r=this.fetch)!=null?r:globalThis.fetch)(d,{method:"GET",headers:_i(p,`ai-sdk/${W_}`,Wc()),credentials:f});if(w.status===204)return null;if(!w.ok)throw new Error((o=await w.text())!=null?o:"Failed to fetch the chat response.");if(!w.body)throw new Error("The response body is empty.");return this.processResponseStream(w.body)}},X_=class extends IB{constructor(e={}){super(e)}processResponseStream(e){return K$({stream:e,schema:fB}).pipeThrough(new TransformStream({async transform(t,a){if(!t.success)throw t.error;a.enqueue(t.value)}}))}},vM=class{constructor({generateId:e=V$,id:t=e(),transport:a=new X_,messageMetadataSchema:n,dataPartSchemas:r,state:o,onError:i,onToolCall:l,onFinish:s,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new yB,this.sendMessage=async(d,p)=>{var f,m,w,C;if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(f=this.lastMessage)==null?void 0:f.id,...p});return}let g;if("text"in d||"files"in d?g={parts:[...Array.isArray(d.files)?d.files:await _B(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:g=d,d.messageId!=null){let x=this.state.messages.findIndex(h=>h.id===d.messageId);if(x===-1)throw new Error(`message with id ${d.messageId} not found`);if(this.state.messages[x].role!=="user")throw new Error(`message with id ${d.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,x+1),this.state.replaceMessage(x,{...g,id:d.messageId,role:(m=g.role)!=null?m:"user",metadata:d.metadata})}else this.state.pushMessage({...g,id:(w=g.id)!=null?w:this.generateId(),role:(C=g.role)!=null?C:"user",metadata:d.metadata});await this.makeRequest({trigger:"submit-message",messageId:d.messageId,...p})},this.regenerate=async({messageId:d,...p}={})=>{let f=d==null?this.state.messages.length-1:this.state.messages.findIndex(m=>m.id===d);if(f===-1)throw new Error(`message ${d} not found`);this.state.messages=this.state.messages.slice(0,this.messages[f].role==="assistant"?f:f+1),await this.makeRequest({trigger:"regenerate-message",messageId:d,...p})},this.resumeStream=async(d={})=>{await this.makeRequest({trigger:"resume-stream",...d})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:d,approved:p,reason:f})=>this.jobExecutor.run(async()=>{let m=this.state.messages,w=m[m.length-1],C=g=>Ms(g)&&g.state==="approval-requested"&&g.approval.id===d?{...g,state:"approval-responded",approval:{id:d,approved:p,reason:f}}:g;this.state.replaceMessage(m.length-1,{...w,parts:w.parts.map(C)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(C)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(g=>{var x;g&&this.makeRequest({trigger:"submit-message",messageId:(x=this.lastMessage)==null?void 0:x.id})})}),this.addToolOutput=async({state:d="output-available",tool:p,toolCallId:f,output:m,errorText:w})=>this.jobExecutor.run(async()=>{let C=this.state.messages,g=C[C.length-1],x=h=>Ms(h)&&h.toolCallId===f?{...h,state:d,output:m,errorText:w}:h;this.state.replaceMessage(C.length-1,{...g,parts:g.parts.map(x)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(x)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(h=>{var b;h&&this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var d;this.status!=="streaming"&&this.status!=="submitted"||(d=this.activeResponse)!=null&&d.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=a,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=r,this.state=o,this.onError=i,this.onToolCall=l,this.onFinish=s,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:a,body:n,messageId:r}){var o,i,l;let s;if(e==="resume-stream")try{let f=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:a,body:n});if(f==null)return;s=f}catch(f){this.onError&&f instanceof Error&&this.onError(f),this.setStatus({status:"error",error:f});return}this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,p=!1;try{let f={state:hB({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};f.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=f;let m;e==="resume-stream"?m=s:m=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:f.abortController.signal,metadata:t,headers:a,body:n,trigger:e,messageId:r});let w=C=>this.jobExecutor.run(()=>C({state:f.state,write:()=>{var g;this.setStatus({status:"streaming"}),f.state.message.id===((g=this.lastMessage)==null?void 0:g.id)?this.state.replaceMessage(this.state.messages.length-1,f.state.message):this.state.pushMessage(f.state.message)}}));await vB({stream:gB({stream:m,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:w,onError:C=>{throw C}}),onError:C=>{throw C}}),this.setStatus({status:"ready"})}catch(f){if(c||f.name==="AbortError")return c=!0,this.setStatus({status:"ready"}),null;p=!0,f instanceof TypeError&&(f.message.toLowerCase().includes("fetch")||f.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&f instanceof Error&&this.onError(f),this.setStatus({status:"error",error:f})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:p,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(f){console.error(f)}this.activeResponse=void 0}!p&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(l=this.lastMessage)==null?void 0:l.id,metadata:t,headers:a,body:n})}};function yM({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let a=t.parts.reduce((r,o,i)=>o.type==="step-start"?i:r,-1),n=t.parts.slice(a+1).filter(Ms).filter(r=>!r.providerExecuted);return n.filter(r=>r.state==="approval-responded").length>0&&n.every(r=>r.state==="output-available"||r.state==="output-error"||r.state==="approval-responded")}function xM({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let a=t.parts.reduce((r,o,i)=>o.type==="step-start"?i:r,-1),n=t.parts.slice(a+1).filter(Ms).filter(r=>!r.providerExecuted);return n.length>0&&n.every(r=>r.state==="output-available"||r.state==="output-error")}var IM=ne(SM(),1);var ld=ne(yt(),1);var oh=ne(yt(),1);var _M=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},ft=(e,t,a)=>(_M(e,t,"read from private field"),a?a.call(e):t.get(e)),Kr=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},Do=(e,t,a,n)=>(_M(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a);function CB(e,t){return t!=null?(0,IM.default)(e,t):e}var vr,rh,nh,nd,od,id,Ds,K_,Y_,TB=class{constructor(e=[]){Kr(this,vr,void 0),Kr(this,rh,"ready"),Kr(this,nh,void 0),Kr(this,nd,new Set),Kr(this,od,new Set),Kr(this,id,new Set),this.pushMessage=t=>{Do(this,vr,ft(this,vr).concat(t)),ft(this,Ds).call(this)},this.popMessage=()=>{Do(this,vr,ft(this,vr).slice(0,-1)),ft(this,Ds).call(this)},this.replaceMessage=(t,a)=>{Do(this,vr,[...ft(this,vr).slice(0,t),this.snapshot(a),...ft(this,vr).slice(t+1)]),ft(this,Ds).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,a)=>{let n=a?CB(t,a):t;return ft(this,nd).add(n),()=>{ft(this,nd).delete(n)}},this["~registerStatusCallback"]=t=>(ft(this,od).add(t),()=>{ft(this,od).delete(t)}),this["~registerErrorCallback"]=t=>(ft(this,id).add(t),()=>{ft(this,id).delete(t)}),Kr(this,Ds,()=>{ft(this,nd).forEach(t=>t())}),Kr(this,K_,()=>{ft(this,od).forEach(t=>t())}),Kr(this,Y_,()=>{ft(this,id).forEach(t=>t())}),Do(this,vr,e)}get status(){return ft(this,rh)}set status(e){Do(this,rh,e),ft(this,K_).call(this)}get error(){return ft(this,nh)}set error(e){Do(this,nh,e),ft(this,Y_).call(this)}get messages(){return ft(this,vr)}set messages(e){Do(this,vr,[...e]),ft(this,Ds).call(this)}};vr=new WeakMap;rh=new WeakMap;nh=new WeakMap;nd=new WeakMap;od=new WeakMap;id=new WeakMap;Ds=new WeakMap;K_=new WeakMap;Y_=new WeakMap;var zs,wM=class extends vM{constructor({messages:e,...t}){let a=new TB(e);super({...t,state:a}),Kr(this,zs,void 0),this["~registerMessagesCallback"]=(n,r)=>ft(this,zs)["~registerMessagesCallback"](n,r),this["~registerStatusCallback"]=n=>ft(this,zs)["~registerStatusCallback"](n),this["~registerErrorCallback"]=n=>ft(this,zs)["~registerErrorCallback"](n),Do(this,zs,a)}};zs=new WeakMap;function kM({experimental_throttle:e,resume:t=!1,...a}={}){let n=(0,yr.useRef)("chat"in a?{}:{onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});"chat"in a||(n.current={onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});let r={...a,onToolCall:p=>{var f,m;return(m=(f=n.current).onToolCall)==null?void 0:m.call(f,p)},onData:p=>{var f,m;return(m=(f=n.current).onData)==null?void 0:m.call(f,p)},onFinish:p=>{var f,m;return(m=(f=n.current).onFinish)==null?void 0:m.call(f,p)},onError:p=>{var f,m;return(m=(f=n.current).onError)==null?void 0:m.call(f,p)},sendAutomaticallyWhen:p=>{var f,m,w;return(w=(m=(f=n.current).sendAutomaticallyWhen)==null?void 0:m.call(f,p))!=null?w:!1}},o=(0,yr.useRef)("chat"in a?a.chat:new wM(r));("chat"in a&&a.chat!==o.current||"id"in a&&o.current.id!==a.id)&&(o.current="chat"in a?a.chat:new wM(r));let l=(0,yr.useCallback)(p=>o.current["~registerMessagesCallback"](p,e),[e,o.current.id]),s=(0,yr.useSyncExternalStore)(l,()=>o.current.messages,()=>o.current.messages),u=(0,yr.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),c=(0,yr.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),d=(0,yr.useCallback)(p=>{typeof p=="function"&&(p=p(o.current.messages)),o.current.messages=p},[o]);return(0,yr.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:s,setMessages:d,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:c,resumeStream:o.current.resumeStream,status:u,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}var Ia=ne(yt(),1);function CM(e){let t=[],a=[],n=[],r=()=>{a.length>0&&(t.push({type:"step",parts:a}),a=[])};for(e.parts.forEach(o=>{if(o.type==="step-start"){n.length===0&&r();return}if(o.type==="data-tag-start"){n.length===0&&r();let l=o.data?.tagId??"unknown";n.push({groupName:l,parts:[]});return}if(o.type==="data-tag-end"){let i=n.pop();i&&t.push({type:"group",groupName:i.groupName,parts:i.parts});return}o.type==="data-thoughts"||o.type==="data-transfer"||(n.length>0?n[n.length-1].parts.push(o):a.push(o))});n.length>0;){let o=n.pop();t.push({type:"group",groupName:o.groupName,parts:o.parts})}return r(),{id:e.id,role:e.role,metadata:e.metadata,sections:t}}var LB="collect_user_input";function AB(e,t){return async(a,n)=>{let r=i=>fetch(a,{...n,headers:{...n?.headers,Authorization:`Bearer ${i}`}}),o=await r(e.current);if(o.status===401&&t){let i=await t();if(i)return e.current=i,r(i)}return o}}function TM({api:e,threadId:t,agentId:a,agentVersion:n,agentExecutionId:r,dataContext:o,onError:i,onAuthError:l,onFinish:s,onData:u,onMessage:c}){let{baseUrl:d,token:p,headers:f={}}=e,m=(0,Ia.useRef)(o);m.current=o;let w=(0,Ia.useRef)(p);w.current=p;let C=(0,Ia.useRef)(l);C.current=l;let g=(0,Ia.useMemo)(()=>AB(w,async()=>C.current?.()??null),[]),x=(0,Ia.useMemo)(()=>new X_({api:`${d}/chat`,fetch:g,headers:{"Content-Type":"application/json","thread-id":t,...a?{"agent-id":a}:{},...n!==void 0?{version:String(n)}:{},...r?{"agent-execution-id":r}:{},...f},prepareSendMessagesRequest({messages:B,id:K}){return{body:{id:K,message:B[B.length-1],dataContext:m.current}}}}),[d,g,t,a,n,r,f]),{messages:h,status:b,sendMessage:L,stop:y,setMessages:_,addToolOutput:S,addToolApprovalResponse:T}=kM({id:t,transport:x,sendAutomaticallyWhen:({messages:B})=>xM({messages:B})||yM({messages:B}),onError:B=>{console.error("Chat error:",B),i?.(B)},onFinish:B=>{s?.(B)},onData:B=>{u?.(B)}}),[I,q]=(0,Ia.useState)(!0);(0,Ia.useEffect)(()=>{(async()=>{try{let K=await g(`${d}/chat/messages`,{method:"GET",headers:{"thread-id":t}});if(!K.ok)throw new Error(`Failed to fetch messages: ${K.statusText}`);let ue=(await K.json()).messages||[];ue.length>0&&_(ue)}catch(K){console.error("Error fetching initial messages:",K),i?.(K)}finally{q(!1)}})()},[r,a,g,d,i,_,t]),(0,Ia.useEffect)(()=>{if(!c||h.length===0)return;let B=h[h.length-1];B&&c(B)},[h,c]);let O=(0,Ia.useMemo)(()=>h.map(B=>CM(B)),[h]),F=(0,Ia.useMemo)(()=>{let B=h[h.length-1];if(!B||B.role!=="assistant")return null;for(let K of B.parts??[]){if(!(K.type.startsWith("tool-")||K.type==="dynamic-tool")||("toolName"in K?K.toolName:K.type.replace("tool-",""))!==LB)continue;if(("state"in K?K.state:void 0)==="input-available")return{toolCallId:K.toolCallId,args:K.input}}return null},[h]),P=(0,Ia.useMemo)(()=>{let B=h[h.length-1];if(!B||B.role!=="assistant")return null;for(let K of B.parts??[]){if(!(K.type.startsWith("tool-")||K.type==="dynamic-tool"))continue;if(("state"in K?K.state:void 0)==="approval-requested"){let Le="toolName"in K?K.toolName:K.type.replace("tool-",""),$="approval"in K?K.approval:null;if(!$?.id)continue;return{toolCallId:K.toolCallId,toolName:Le,args:K.input??{},approvalId:$.id}}}return null},[h]);return{messages:O,status:b,isLoadingInitial:I,sendMessage:L,stop:y,setMessages:_,addToolOutput:S,addToolApprovalResponse:T,pendingToolOutput:F,pendingToolApproval:P}}var zo=ne(yt(),1);function LM({api:e,threadId:t,agentId:a,agentVersion:n}){let{baseUrl:r,token:o}=e,[i,l]=(0,zo.useState)({}),[s,u]=(0,zo.useState)(null),[c,d]=(0,zo.useState)(null),p=(0,zo.useCallback)(async(w,{rating:C,improvementText:g,notes:x})=>{u(w),d(null);try{let h={agentId:a,agentVersion:n,threadId:t,messageId:w,rating:C,improvementText:g,notes:x},b=await fetch(`${r}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(h)});if(!b.ok){let _=await b.json().catch(()=>({}));throw new Error(_.error||`Failed to submit feedback: ${b.statusText}`)}let{data:L}=await b.json();if(L.deleted||!C)return l(_=>{let S={..._};return delete S[w],S}),null;let y={rating:L.rating,improvementText:L.improvementText,notes:L.notes};return l(_=>({..._,[w]:y})),y}catch(h){let b=h instanceof Error?h:new Error("Unknown error");return d(b),console.error("Failed to submit feedback:",b),null}finally{u(null)}},[r,o,t,a,n]),f=(0,zo.useCallback)(w=>i[w],[i]),m=(0,zo.useCallback)(w=>w in i,[i]);return{submitFeedback:p,getFeedbackForMessage:f,hasFeedback:m,isSubmitting:s,error:c}}function AM(e){var t,a,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=AM(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function EM(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=AM(e))&&(n&&(n+=" "),n+=t);return n}var EB=e=>{let t=MB(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{let l=i.split("-");return l[0]===""&&l.length!==1&&l.shift(),DM(l,t)||$B(i)},getConflictingClassGroupIds:(i,l)=>{let s=a[i]||[];return l&&n[i]?[...s,...n[i]]:s}}},DM=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],n=t.nextPart.get(a),r=n?DM(e.slice(1),n):void 0;if(r)return r;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},$M=/^\[(.+)\]$/,$B=e=>{if($M.test(e)){let t=$M.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},MB=e=>{let{theme:t,prefix:a}=e,n={nextPart:new Map,validators:[]};return zB(Object.entries(e.classGroups),a).forEach(([o,i])=>{eI(i,n,o,t)}),n},eI=(e,t,a,n)=>{e.forEach(r=>{if(typeof r=="string"){let o=r===""?t:MM(t,r);o.classGroupId=a;return}if(typeof r=="function"){if(DB(r)){eI(r(n),t,a,n);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([o,i])=>{eI(i,MM(t,o),a,n)})})},MM=(e,t)=>{let a=e;return t.split("-").forEach(n=>{a.nextPart.has(n)||a.nextPart.set(n,{nextPart:new Map,validators:[]}),a=a.nextPart.get(n)}),a},DB=e=>e.isThemeGetter,zB=(e,t)=>t?e.map(([a,n])=>{let r=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[a,r]}):e,OB=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,n=new Map,r=(o,i)=>{a.set(o,i),t++,t>e&&(t=0,n=a,a=new Map)};return{get(o){let i=a.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return r(o,i),i},set(o,i){a.has(o)?a.set(o,i):r(o,i)}}};var RB=e=>{let{separator:t,experimentalParseClassName:a}=e,n=t.length===1,r=t[0],o=t.length,i=l=>{let s=[],u=0,c=0,d;for(let C=0;C<l.length;C++){let g=l[C];if(u===0){if(g===r&&(n||l.slice(C,C+o)===t)){s.push(l.slice(c,C)),c=C+o;continue}if(g==="/"){d=C;continue}}g==="["?u++:g==="]"&&u--}let p=s.length===0?l:l.substring(c),f=p.startsWith("!"),m=f?p.substring(1):p,w=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:w}};return a?l=>a({className:l,parseClassName:i}):i},PB=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(n=>{n[0]==="["?(t.push(...a.sort(),n),a=[]):a.push(n)}),t.push(...a.sort()),t},NB=e=>({cache:OB(e.cacheSize),parseClassName:RB(e),...EB(e)}),UB=/\s+/,FB=(e,t)=>{let{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(UB),l="";for(let s=i.length-1;s>=0;s-=1){let u=i[s],{modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=a(u),m=!!f,w=n(m?p.substring(0,f):p);if(!w){if(!m){l=u+(l.length>0?" "+l:l);continue}if(w=n(p),!w){l=u+(l.length>0?" "+l:l);continue}m=!1}let C=PB(c).join(":"),g=d?C+"!":C,x=g+w;if(o.includes(x))continue;o.push(x);let h=r(w,m);for(let b=0;b<h.length;++b){let L=h[b];o.push(g+L)}l=u+(l.length>0?" "+l:l)}return l};function jB(){let e=0,t,a,n="";for(;e<arguments.length;)(t=arguments[e++])&&(a=zM(t))&&(n&&(n+=" "),n+=a);return n}var zM=e=>{if(typeof e=="string")return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=zM(e[n]))&&(a&&(a+=" "),a+=t);return a};function BB(e,...t){let a,n,r,o=i;function i(s){let u=t.reduce((c,d)=>d(c),e());return a=NB(u),n=a.cache.get,r=a.cache.set,o=l,l(s)}function l(s){let u=n(s);if(u)return u;let c=FB(s,a);return r(s,c),c}return function(){return o(jB.apply(null,arguments))}}var pt=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},OM=/^\[(?:([a-z-]+):)?(.+)\]$/i,qB=/^\d+\/\d+$/,ZB=new Set(["px","full","screen"]),HB=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VB=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,GB=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,WB=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JB=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>Os(e)||ZB.has(e)||qB.test(e),Oo=e=>Rs(e,"length",r5),Os=e=>!!e&&!Number.isNaN(Number(e)),Q_=e=>Rs(e,"number",Os),sd=e=>!!e&&Number.isInteger(Number(e)),XB=e=>e.endsWith("%")&&Os(e.slice(0,-1)),Te=e=>OM.test(e),Ro=e=>HB.test(e),KB=new Set(["length","size","percentage"]),YB=e=>Rs(e,KB,RM),QB=e=>Rs(e,"position",RM),e5=new Set(["image","url"]),t5=e=>Rs(e,e5,o5),a5=e=>Rs(e,"",n5),ud=()=>!0,Rs=(e,t,a)=>{let n=OM.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):a(n[2]):!1},r5=e=>VB.test(e)&&!GB.test(e),RM=()=>!1,n5=e=>WB.test(e),o5=e=>JB.test(e);var i5=()=>{let e=pt("colors"),t=pt("spacing"),a=pt("blur"),n=pt("brightness"),r=pt("borderColor"),o=pt("borderRadius"),i=pt("borderSpacing"),l=pt("borderWidth"),s=pt("contrast"),u=pt("grayscale"),c=pt("hueRotate"),d=pt("invert"),p=pt("gap"),f=pt("gradientColorStops"),m=pt("gradientColorStopPositions"),w=pt("inset"),C=pt("margin"),g=pt("opacity"),x=pt("padding"),h=pt("saturate"),b=pt("scale"),L=pt("sepia"),y=pt("skew"),_=pt("space"),S=pt("translate"),T=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",Te,t],O=()=>[Te,t],F=()=>["",Rn,Oo],P=()=>["auto",Os,Te],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],Le=()=>["","0",Te],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Me=()=>[Os,Te];return{cacheSize:500,separator:":",theme:{colors:[ud],spacing:[Rn,Oo],blur:["none","",Ro,Te],brightness:Me(),borderColor:[e],borderRadius:["none","","full",Ro,Te],borderSpacing:O(),borderWidth:F(),contrast:Me(),grayscale:Le(),hueRotate:Me(),invert:Le(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[XB,Oo],inset:q(),margin:q(),opacity:Me(),padding:O(),saturate:Me(),scale:Me(),sepia:Le(),skew:Me(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Ro]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),Te]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sd,Te]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:Le()}],shrink:[{shrink:Le()}],order:[{order:["first","last","none",sd,Te]}],"grid-cols":[{"grid-cols":[ud]}],"col-start-end":[{col:["auto",{span:["full",sd,Te]},Te]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[ud]}],"row-start-end":[{row:["auto",{span:[sd,Te]},Te]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[Ro]},Ro]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ro,Oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Q_]}],"font-family":[{font:[ud]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Os,Q_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,Oo]}],"underline-offset":[{"underline-offset":["auto",Rn,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),QB]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",YB]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},t5]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:K()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Rn,Te]}],"outline-w":[{outline:[Rn,Oo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Rn,Oo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ro,a5]}],"shadow-color":[{shadow:[ud]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Ro,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[h]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[h]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:Me()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:Me()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[sd,Te]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[y]}],"skew-y":[{"skew-y":[y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Rn,Oo,Q_]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var PM=BB(i5);function Yr(...e){return PM(EM(e))}ha(`@import"./input-fields/InputFields.css";.input-form-overlay{position:absolute;inset:0;z-index:10;display:flex;flex-direction:column;justify-content:flex-end;pointer-events:none}@keyframes slideUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.input-form-overlay__content{pointer-events:auto;animation:slideUp .2s ease-out;display:flex;flex-direction:column;background-color:var(--chat-background);border-top:1px solid var(--chat-border);border-radius:var(--chat-radius) var(--chat-radius) 0 0;box-shadow:var(--chat-shadow-sm);max-height:80%;font-family:var(--chat-font-family)}.input-form-overlay__title{font-size:1rem;font-weight:600;color:var(--chat-assistant-text);margin:0 0 .375rem}.input-form-overlay__description{font-size:.8125rem;color:var(--chat-input-placeholder);margin:0 0 1rem;line-height:1.4}.input-form-overlay__form{display:flex;flex-direction:column;flex:1;min-height:0}.input-form-overlay__scrollable{flex:1;overflow-y:auto;min-height:0;padding:1rem 1.25rem}.input-form-overlay__footer{flex-shrink:0;padding:.5rem 1.25rem;border-top:1px solid var(--chat-border)}.input-form-overlay__actions{display:flex;align-items:center;gap:.5rem;justify-content:flex-start}.input-form-overlay__button{padding:.5rem 1rem;font-size:.875rem;font-weight:500;border-radius:calc(var(--chat-radius) * .5);cursor:pointer;transition:all .15s ease-in-out;border:none}.input-form-overlay__button:disabled{opacity:.5;cursor:not-allowed}.input-form-overlay__button--primary{background-color:var(--chat-primary);color:var(--chat-primary-text)}.input-form-overlay__button--primary:hover:not(:disabled){background-color:var(--chat-primary-hover)}.input-form-overlay__button--secondary{background-color:var(--chat-border);color:var(--chat-assistant-text)}.input-form-overlay__button--secondary:hover:not(:disabled){opacity:.8}.input-form-overlay__freeform-toggle{padding:.5rem 0;font-size:.75rem;color:var(--chat-input-placeholder);background:none;border:none;cursor:pointer;transition:color .15s ease-in-out;white-space:nowrap}.input-form-overlay__freeform-toggle:hover{color:var(--chat-primary);text-decoration:underline}.input-form-overlay__freeform{display:flex;flex-direction:column;flex:1;min-height:0}.input-form-overlay__freeform-body{padding:1rem 1.25rem}.input-form-overlay__freeform-input{flex:1;width:100%;padding:.625rem;font-size:var(--chat-font-size);line-height:1.4;color:var(--chat-input-text);background-color:var(--chat-input-bg);border:1px solid var(--chat-border);border-radius:calc(var(--chat-radius) * .5);resize:vertical;min-height:5rem;font-family:var(--chat-font-family)}.input-form-overlay__freeform-input:focus{outline:none;border-color:var(--chat-primary);box-shadow:0 0 0 2px var(--chat-primary-subtle)}
|
|
71
|
+
`);var lh=ne(yt(),1);var Ps=ne(xe(),1);function tI({field:e,value:t,onChange:a}){let{name:n,label:r}=e;return(0,Ps.jsx)("div",{className:"input-field input-field--checkbox",children:(0,Ps.jsxs)("label",{className:"input-field__checkbox-wrapper",children:[(0,Ps.jsx)("input",{type:"checkbox",name:n,checked:t??!1,onChange:o=>a(o.target.checked),className:"input-field__checkbox"}),(0,Ps.jsx)("span",{className:"input-field__checkbox-label",children:r})]})})}var Ft=ne(xe(),1);function aI({field:e,value:t,onChange:a}){let{name:n,label:r,options:o,multiSelect:i,required:l}=e;if(i){let u=Array.isArray(t)?t:t?[t]:[],c=(d,p)=>{a(p?[...u,d]:u.filter(f=>f!==d))};return(0,Ft.jsxs)("div",{className:"input-field input-field--choices",children:[(0,Ft.jsxs)("label",{className:"input-field__label",children:[r,l&&(0,Ft.jsx)("span",{className:"input-field__required",children:"*"})]}),(0,Ft.jsx)("div",{className:"input-field__options input-field__options--checkbox",children:o.map(d=>(0,Ft.jsxs)("label",{className:"input-field__option",children:[(0,Ft.jsx)("input",{type:"checkbox",name:n,value:d.value,checked:u.includes(d.value),onChange:p=>c(d.value,p.target.checked),className:"input-field__checkbox"}),(0,Ft.jsxs)("span",{className:"input-field__option-content",children:[(0,Ft.jsx)("span",{className:"input-field__option-label",children:d.label}),d.description&&(0,Ft.jsx)("span",{className:"input-field__option-description",children:d.description})]})]},d.value))})]})}let s=Array.isArray(t)?t[0]:t;return(0,Ft.jsxs)("div",{className:"input-field input-field--choices",children:[(0,Ft.jsxs)("label",{className:"input-field__label",children:[r,l&&(0,Ft.jsx)("span",{className:"input-field__required",children:"*"})]}),(0,Ft.jsx)("div",{className:"input-field__options input-field__options--radio",children:o.map(u=>(0,Ft.jsxs)("label",{className:"input-field__option",children:[(0,Ft.jsx)("input",{type:"radio",name:n,value:u.value,checked:s===u.value,onChange:()=>a(u.value),className:"input-field__radio"}),(0,Ft.jsxs)("span",{className:"input-field__option-content",children:[(0,Ft.jsx)("span",{className:"input-field__option-label",children:u.label}),u.description&&(0,Ft.jsx)("span",{className:"input-field__option-description",children:u.description})]})]},u.value))})]})}var Ns=ne(xe(),1);function rI({field:e,value:t,onChange:a}){let{label:n,required:r}=e;return(0,Ns.jsxs)("div",{className:"input-field input-field--date",children:[(0,Ns.jsxs)("label",{className:"input-field__label",children:[n,r&&(0,Ns.jsx)("span",{className:"input-field__required",children:"*"})]}),(0,Ns.jsx)("input",{type:"date",value:t??"",onChange:o=>a(o.target.value),className:"input-field__input"})]})}var Us=ne(xe(),1);function nI({field:e,value:t,onChange:a}){let{label:n,min:r,max:o,required:i}=e;return(0,Us.jsxs)("div",{className:"input-field input-field--number",children:[(0,Us.jsxs)("label",{className:"input-field__label",children:[n,i&&(0,Us.jsx)("span",{className:"input-field__required",children:"*"})]}),(0,Us.jsx)("input",{type:"number",value:t??"",onChange:s=>{let u=s.target.value;if(u==="")a(void 0);else{let c=parseFloat(u);isNaN(c)||a(c)}},min:r,max:o,className:"input-field__input"})]})}var Qr=ne(xe(),1);function oI({field:e,value:t,onChange:a}){let{label:n,placeholder:r,multiline:o,required:i}=e;return o?(0,Qr.jsxs)("div",{className:"input-field input-field--text",children:[(0,Qr.jsxs)("label",{className:"input-field__label",children:[n,i&&(0,Qr.jsx)("span",{className:"input-field__required",children:"*"})]}),(0,Qr.jsx)("textarea",{value:t??"",onChange:l=>a(l.target.value),placeholder:r,className:"input-field__textarea",rows:4})]}):(0,Qr.jsxs)("div",{className:"input-field input-field--text",children:[(0,Qr.jsxs)("label",{className:"input-field__label",children:[n,i&&(0,Qr.jsx)("span",{className:"input-field__required",children:"*"})]}),(0,Qr.jsx)("input",{type:"text",value:t??"",onChange:l=>a(l.target.value),placeholder:r,className:"input-field__input"})]})}var Fs=ne(xe(),1);function iI({field:e,value:t,onChange:a}){switch(e.type){case"choices":return(0,Fs.jsx)(aI,{field:e,value:t,onChange:a});case"text":return(0,Fs.jsx)(oI,{field:e,value:t,onChange:a});case"number":return(0,Fs.jsx)(nI,{field:e,value:t,onChange:a});case"checkbox":return(0,Fs.jsx)(tI,{field:e,value:t,onChange:a});case"date":return(0,Fs.jsx)(rI,{field:e,value:t,onChange:a});default:let n=e;return null}}var Tt=ne(xe(),1);function jM({args:e,onComplete:t}){let{title:a,description:n,fields:r,submitLabel:o="Submit",cancelLabel:i="Cancel",allowFreeformResponse:l=!0}=e,[s,u]=(0,lh.useState)(()=>{let h={};for(let b of r)b.defaultValue!==void 0&&(h[b.name]=b.defaultValue);return h}),[c,d]=(0,lh.useState)(""),[p,f]=(0,lh.useState)(!1),m=(h,b)=>{u(L=>({...L,[h]:b}))},w=h=>{h.preventDefault(),t({values:s})},C=()=>{t({cancelled:!0})},g=()=>{c.trim()&&t({freeformResponse:c.trim()})},x=r.every(h=>{if(!("required"in h)||!h.required)return!0;let b=s[h.name];return!(b==null||b===""||Array.isArray(b)&&b.length===0)});return(0,Tt.jsx)("div",{className:"input-form-overlay",children:(0,Tt.jsx)("div",{className:"input-form-overlay__content",children:p?(0,Tt.jsxs)("div",{className:"input-form-overlay__freeform",children:[(0,Tt.jsx)("div",{className:"input-form-overlay__freeform-body",children:(0,Tt.jsx)("textarea",{value:c,onChange:h=>d(h.target.value),placeholder:"Type your response...",className:"input-form-overlay__freeform-input",autoFocus:!0,rows:4})}),(0,Tt.jsx)("div",{className:"input-form-overlay__footer",children:(0,Tt.jsxs)("div",{className:"input-form-overlay__actions",children:[(0,Tt.jsx)("button",{type:"button",onClick:g,disabled:!c.trim(),className:"input-form-overlay__button input-form-overlay__button--primary",children:"Send"}),(0,Tt.jsx)("button",{type:"button",onClick:()=>f(!1),className:"input-form-overlay__button input-form-overlay__button--secondary",children:"Back to form"})]})})]}):(0,Tt.jsxs)("form",{onSubmit:w,className:"input-form-overlay__form",children:[(0,Tt.jsxs)("div",{className:"input-form-overlay__scrollable",children:[a&&(0,Tt.jsx)("h3",{className:"input-form-overlay__title",children:a}),n&&(0,Tt.jsx)("p",{className:"input-form-overlay__description",children:n}),(0,Tt.jsx)("div",{className:"input-form-overlay__fields",children:r.map(h=>(0,Tt.jsx)(iI,{field:h,value:s[h.name],onChange:b=>m(h.name,b)},h.name))})]}),(0,Tt.jsx)("div",{className:"input-form-overlay__footer",children:(0,Tt.jsxs)("div",{className:"input-form-overlay__actions",children:[(0,Tt.jsx)("button",{type:"submit",disabled:!x,className:"input-form-overlay__button input-form-overlay__button--primary",children:o}),(0,Tt.jsx)("button",{type:"button",onClick:C,className:"input-form-overlay__button input-form-overlay__button--secondary",children:i}),l&&(0,Tt.jsx)("button",{type:"button",className:"input-form-overlay__freeform-toggle",onClick:()=>f(!0),children:"Or type a response instead..."})]})})]})})})}var Fe=ne(yt(),1);var Ti=ne(xe(),1),BM=()=>{if(typeof window>"u")return null;let e=window;return e.SpeechRecognition||e.webkitSpeechRecognition||null},qM=e=>Math.max(0,Math.min(1,e)),ZM=(...e)=>e.map(t=>t.trim()).filter(Boolean).join(" ");function HM({onInterim:e,onFinal:t,onError:a,onListeningChange:n,silenceTimeout:r=3e3,finalDelay:o=1500,language:i,disabled:l,className:s}){let[u,c]=(0,Fe.useState)(!1),[d,p]=(0,Fe.useState)(!1),[f,m]=(0,Fe.useState)(0),w=(0,Fe.useRef)(null),[C,g]=(0,Fe.useState)(!1),x=(0,Fe.useRef)(null),h=(0,Fe.useRef)(null),b=(0,Fe.useRef)(""),L=(0,Fe.useRef)(null),y=(0,Fe.useRef)(0),_=i??"en-US",S=(0,Fe.useCallback)(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),T=(0,Fe.useCallback)(()=>{L.current&&(cancelAnimationFrame(L.current),L.current=null)},[]),I=(0,Fe.useCallback)(()=>{h.current&&(clearTimeout(h.current),h.current=null)},[]),q=(0,Fe.useCallback)(()=>{S(),I(),T(),m(0),g(!1),y.current=0,w.current?.stop()},[S,I,T]),O=(0,Fe.useCallback)(E=>{console.error("Speech recognition error:",E),a?.(E)},[a]),F=(0,Fe.useCallback)(()=>{r&&(S(),x.current=setTimeout(q,r))},[r,S,q]),P=(0,Fe.useCallback)(E=>{E&&e?.(E)},[e]),B=(0,Fe.useCallback)(E=>{E&&t?.(E)},[t]),K=(0,Fe.useCallback)(()=>{let E=b.current.trim();E&&B(E),b.current="",I()},[B,I]),se=(0,Fe.useCallback)(()=>{if(!y.current||!o){m(0),g(!1),L.current=null;return}let E=y.current-Date.now(),ge=qM(E/o);if(m(ge),E<=0){g(!1),L.current=null;return}L.current=requestAnimationFrame(se)},[o]),ue=(0,Fe.useCallback)(()=>{if(!o){m(0),g(!1);return}y.current=Date.now()+o,m(1),g(!0),T(),L.current=requestAnimationFrame(se)},[o,T,se]),Le=(0,Fe.useCallback)(()=>{if(I(),!o){K();return}ue(),h.current=setTimeout(K,o)},[I,o,K,ue]),$=(0,Fe.useCallback)(E=>{E.continuous=!0,E.interimResults=!0,E.lang=_,E.onresult=ge=>{let bt="",Y="";for(let M=ge.resultIndex;M<ge.results.length;M++){let R=ge.results[M];if(!R)continue;let N=R[0]?.transcript??"";R.isFinal?Y+=N:bt+=N}let k=bt.trim();if(k){ue();let M=ZM(b.current,k);P(M)}else{let M=b.current.trim();M&&P(M)}let A=Y.trim();A&&(b.current=ZM(b.current,A),P(b.current),Le(),E.stop()),F()},E.onerror=ge=>{if(ge.error==="no-speech"){F();return}O(ge.error)},E.onstart=()=>{c(!0),n?.(!0),F()},E.onend=()=>{c(!1),n?.(!1),S(),h.current||K()}},[_,F,ue,P,Le,O,n,S,K,C]),Me=(0,Fe.useCallback)(()=>{if(typeof window>"u")return null;let E=BM();return E?(w.current||(w.current=new E),$(w.current),w.current):(O("Speech recognition is not supported in this browser."),null)},[$,O]),at=(0,Fe.useCallback)(()=>{if(l)return;if(u){q();return}let E=Me();if(E)try{E.start()}catch{O("Microphone permission denied or unavailable.")}},[l,u,q,Me,O]);return(0,Fe.useEffect)(()=>{l&&u&&q()},[l,u,q]),(0,Fe.useEffect)(()=>{p(typeof window<"u"&&!!BM())},[]),(0,Fe.useEffect)(()=>()=>{S(),I(),T(),w.current?.stop(),w.current=null},[S,I,T]),d?(0,Ti.jsxs)("button",{type:"button",className:Yr("chat-widget__mic-button",u&&"chat-widget__mic-button--active",s),onClick:at,disabled:l,"aria-pressed":u,"aria-label":"Toggle microphone",children:[u?(0,Ti.jsx)(Qc,{className:"chat-widget__mic-icon"}):(0,Ti.jsx)(Yc,{className:"chat-widget__mic-icon"}),o>0&&u&&C&&(0,Ti.jsx)("span",{className:"chat-widget__mic-bar","aria-hidden":"true",children:(0,Ti.jsx)("span",{className:"chat-widget__mic-bar-fill",style:{transform:`scaleX(${qM(f)})`}})})]}):null}ha(`.tool-approval-overlay{position:absolute;inset:0;z-index:10;display:flex;flex-direction:column;justify-content:flex-end;background-color:var(--chat-overlay-bg)}@keyframes slideUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.tool-approval-overlay__content{animation:slideUp .2s ease-out;display:flex;flex-direction:column;background-color:var(--chat-background);border-top:1px solid var(--chat-border);border-radius:var(--chat-radius) var(--chat-radius) 0 0;box-shadow:var(--chat-shadow-sm);max-height:80%;font-family:var(--chat-font-family);transition:max-height .2s ease-out}.tool-approval-overlay__content--loading{max-height:160px}.tool-approval-overlay__scrollable{flex:1;overflow-y:auto;min-height:0;padding:1rem 1.25rem}.tool-approval-overlay__title{font-size:1rem;font-weight:600;color:var(--chat-assistant-text);margin:0 0 .375rem}.tool-approval-overlay__description{font-size:.8125rem;color:var(--chat-input-placeholder);margin:0 0 1rem;line-height:1.4}.tool-approval-overlay__tool-name{background-color:var(--chat-border);padding:.125rem .375rem;border-radius:.25rem;font-size:.8125rem}.tool-approval-overlay__args{display:flex;flex-direction:column;gap:.75rem}.tool-approval-overlay__arg{display:flex;flex-direction:column;gap:.25rem}.tool-approval-overlay__arg-label{font-size:.6875rem;font-weight:500;color:var(--chat-input-placeholder);text-transform:uppercase;letter-spacing:.05em}.tool-approval-overlay__arg-value{font-size:.875rem;color:var(--chat-assistant-text);white-space:pre-wrap;word-break:break-word}.tool-approval-overlay__no-args{font-size:.8125rem;color:var(--chat-input-placeholder);font-style:italic}.tool-approval-overlay__footer{flex-shrink:0;padding:.5rem 1.25rem;border-top:1px solid var(--chat-border)}.tool-approval-overlay__actions{display:flex;align-items:center;gap:.5rem;justify-content:flex-start}.tool-approval-overlay__button{padding:.5rem 1rem;font-size:.875rem;font-weight:500;border-radius:calc(var(--chat-radius) * .5);cursor:pointer;transition:all .15s ease-in-out;border:none}.tool-approval-overlay__button:disabled{opacity:.5;cursor:not-allowed}.tool-approval-overlay__button--primary{background-color:var(--chat-primary);color:var(--chat-primary-text)}.tool-approval-overlay__button--primary:hover:not(:disabled){background-color:var(--chat-primary-hover)}.tool-approval-overlay__button--secondary{background-color:var(--chat-border);color:var(--chat-assistant-text)}.tool-approval-overlay__button--secondary:hover:not(:disabled){opacity:.8}.tool-approval-overlay__freeform-toggle{padding:.5rem 0;font-size:.75rem;color:var(--chat-input-placeholder);background:none;border:none;cursor:pointer;transition:color .15s ease-in-out;white-space:nowrap}.tool-approval-overlay__freeform-toggle:hover{color:var(--chat-primary);text-decoration:underline}.tool-approval-overlay__freeform{display:flex;flex-direction:column}.tool-approval-overlay__freeform-body{padding:1rem 1.25rem}.tool-approval-overlay__freeform-input{width:100%;padding:.75rem;font-size:.875rem;font-family:var(--chat-font-family);color:var(--chat-input-text);background-color:var(--chat-input-bg);border:1px solid var(--chat-border);border-radius:calc(var(--chat-radius) * .5);resize:vertical;min-height:80px;box-sizing:border-box}.tool-approval-overlay__freeform-input:focus{outline:none;border-color:var(--chat-primary);box-shadow:0 0 0 2px var(--chat-primary-subtle)}.tool-approval-overlay__freeform-input::-moz-placeholder{color:var(--chat-input-placeholder)}.tool-approval-overlay__freeform-input::placeholder{color:var(--chat-input-placeholder)}.tool-approval-overlay__loading{display:flex;justify-content:center;align-items:center;height:160px}.tool-approval-overlay__loading-spinner{width:24px;height:24px;border:2px solid var(--chat-border);border-top-color:var(--chat-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
|
|
72
|
+
`);var lI=ne(yt(),1),tt=ne(xe(),1);function VM({approval:e,config:t,configLoading:a,onApprove:n,onDeny:r}){let{toolName:o,args:i}=e,[l,s]=(0,lI.useState)(!1),[u,c]=(0,lI.useState)(""),d=()=>{n()},p=()=>{r()},f=()=>{u.trim()&&r(u.trim())},m=Object.entries(i),w=t?.message||`Approve ${o} execution?`,C=t?.approveLabel||"Approve",g=t?.denyLabel||"Deny";return(0,tt.jsx)("div",{className:"tool-approval-overlay",children:(0,tt.jsx)("div",{className:`tool-approval-overlay__content ${a?"tool-approval-overlay__content--loading":""}`,children:a?(0,tt.jsx)("div",{className:"tool-approval-overlay__loading",children:(0,tt.jsx)("div",{className:"tool-approval-overlay__loading-spinner"})}):l?(0,tt.jsxs)("div",{className:"tool-approval-overlay__freeform",children:[(0,tt.jsx)("div",{className:"tool-approval-overlay__freeform-body",children:(0,tt.jsx)("textarea",{value:u,onChange:x=>c(x.target.value),placeholder:"Tell the assistant what's wrong or what you'd like instead...",className:"tool-approval-overlay__freeform-input",autoFocus:!0,rows:4})}),(0,tt.jsx)("div",{className:"tool-approval-overlay__footer",children:(0,tt.jsxs)("div",{className:"tool-approval-overlay__actions",children:[(0,tt.jsx)("button",{type:"button",onClick:f,disabled:!u.trim(),className:"tool-approval-overlay__button tool-approval-overlay__button--primary",children:"Send"}),(0,tt.jsx)("button",{type:"button",onClick:()=>s(!1),className:"tool-approval-overlay__button tool-approval-overlay__button--secondary",children:"Back"})]})})]}):(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)("div",{className:"tool-approval-overlay__scrollable",children:[(0,tt.jsx)("h3",{className:"tool-approval-overlay__title",children:w}),m.length>0?(0,tt.jsx)("div",{className:"tool-approval-overlay__args",children:m.map(([x,h])=>(0,tt.jsxs)("div",{className:"tool-approval-overlay__arg",children:[(0,tt.jsx)("label",{className:"tool-approval-overlay__arg-label",children:x}),(0,tt.jsx)("div",{className:"tool-approval-overlay__arg-value",children:typeof h=="string"?h:JSON.stringify(h,null,2)})]},x))}):(0,tt.jsx)("p",{className:"tool-approval-overlay__no-args",children:"No inputs provided."})]}),(0,tt.jsx)("div",{className:"tool-approval-overlay__footer",children:(0,tt.jsxs)("div",{className:"tool-approval-overlay__actions",children:[(0,tt.jsx)("button",{type:"button",onClick:d,className:"tool-approval-overlay__button tool-approval-overlay__button--primary",children:C}),(0,tt.jsx)("button",{type:"button",onClick:p,className:"tool-approval-overlay__button tool-approval-overlay__button--secondary",children:g}),(0,tt.jsx)("button",{type:"button",onClick:()=>s(!0),className:"tool-approval-overlay__freeform-toggle",children:"Or type a response instead..."})]})})]})})})}var Ra=ne(yt(),1),Zt=ne(xe(),1);function GM({collapsed:e,renderPart:t,itemKey:a}){let[n,r]=(0,Ra.useState)(!1),[o,i]=(0,Ra.useState)(!1),l=(0,Ra.useRef)(null),s=(0,Ra.useRef)(e.parts.length);(0,Ra.useEffect)(()=>{if(e.parts.length>s.current&&!n){i(!0);let d=setTimeout(()=>i(!1),300);return()=>clearTimeout(d)}s.current=e.parts.length},[e.parts.length,n]);let u=(0,Ra.useCallback)(()=>{r(d=>!d)},[]),c=["chat-widget__collapsed",o?"chat-widget__collapsed--animating":""].filter(Boolean).join(" ");return(0,Zt.jsxs)("div",{className:c,children:[(0,Zt.jsx)("div",{className:`chat-widget__collapsed-content ${n?"chat-widget__collapsed-content--expanded":""}`,children:(0,Zt.jsx)("div",{ref:l,className:"chat-widget__collapsed-content-inner",children:e.parts.map((d,p)=>(0,Zt.jsx)("div",{children:t(d,`${a}-expanded-${p}`)},`${a}-expanded-${p}`))})}),(0,Zt.jsxs)("div",{className:`chat-widget__collapsed-preview ${n?"chat-widget__collapsed-preview--hidden":""}`,children:[t(e.lastPart,`${a}-preview`),(0,Zt.jsx)("div",{className:"chat-widget__collapsed-gradient"})]}),(0,Zt.jsx)("button",{type:"button",className:"chat-widget__collapsed-toggle",onClick:u,children:n?"Show less":"Show more"})]})}function u5(e,t){let a=[],n=[];e.forEach((i,l)=>{n.push({type:i.type,index:l})});let r=-1;for(let i=e.length-1;i>=0;i--)if(e[i]?.type==="step"){r=i;break}let o=[];if(e.forEach((i,l)=>{if(i.type==="step")if(l<r)o.push(...i.parts);else{if(o.length>0){let s=o[o.length-1];a.push({type:"collapsed",collapsed:{parts:[...o],lastPart:s},key:`${t}-collapsed-${a.length}`}),o.length=0}a.push({type:"parts",parts:i.parts,key:`${t}-step-${l}`})}else if(i.type==="group"){if(o.length>0){let d=o[o.length-1];a.push({type:"collapsed",collapsed:{parts:[...o],lastPart:d},key:`${t}-collapsed-${a.length}`}),o.length=0}let s=i.parts,u=null,c=[];if(s.length>1){let d=s.slice(0,-1),p=d[d.length-1];u={parts:d,lastPart:p},c=[s[s.length-1]]}else c=s;a.push({type:"group",groupName:i.groupName,collapsedParts:u,currentParts:c,key:`${t}-group-${i.groupName}`})}}),o.length>0){let i=o[o.length-1];a.push({type:"collapsed",collapsed:{parts:[...o],lastPart:i},key:`${t}-collapsed-${a.length}`})}return a}function cd({sections:e,messageId:t,renderPart:a,renderGroup:n}){let r=(0,Ra.useMemo)(()=>u5(e,t),[e,t]);return(0,Zt.jsx)(Zt.Fragment,{children:r.map(o=>{if(o.type==="collapsed")return(0,Zt.jsx)(GM,{collapsed:o.collapsed,renderPart:a,itemKey:o.key},o.key);if(o.type==="parts")return(0,Zt.jsx)(Ra.default.Fragment,{children:o.parts.map((i,l)=>(0,Zt.jsx)("div",{children:a(i,`${o.key}-part-${l}`)},`${o.key}-part-${l}`))},o.key);if(o.type==="group"){let i=(0,Zt.jsxs)(Zt.Fragment,{children:[o.collapsedParts&&(0,Zt.jsx)(GM,{collapsed:o.collapsedParts,renderPart:a,itemKey:`${o.key}-collapsed`}),o.currentParts.map((l,s)=>(0,Zt.jsx)("div",{children:a(l,`${o.key}-current-${s}`)},`${o.key}-current-${s}`))]});return n(o.groupName,o.key,i)}return null})})}var WM=ne(yt(),1),Pn=ne(xe(),1);function dd({sections:e,messageId:t,renderPart:a,renderGroup:n}){return(0,Pn.jsx)(Pn.Fragment,{children:e.map((r,o)=>{let i=`${t}-section-${o}`;if(r.type==="step")return(0,Pn.jsx)(WM.default.Fragment,{children:r.parts.map((l,s)=>(0,Pn.jsx)("div",{children:a(l,`${i}-part-${s}`)},`${i}-part-${s}`))},i);if(r.type==="group"){let l=`${t}-group-${r.groupName}`,s=r.parts.map((u,c)=>(0,Pn.jsx)("div",{children:a(u,`${l}-part-${c}`)},`${l}-part-${c}`));return n(r.groupName,l,(0,Pn.jsx)(Pn.Fragment,{children:s}))}return null})})}var jn=ne(yt(),1);function JM(e,t){let a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var c5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f5={};function sh(e,t){return((t||f5).jsx?d5:c5).test(e)}var p5=/[ \t\n\f\r]/g;function sI(e){return typeof e=="object"?e.type==="text"?XM(e.value):!1:XM(e)}function XM(e){return e.replace(p5,"")===""}var Nn=class{constructor(t,a,n){this.normal=a,this.property=t,n&&(this.space=n)}};Nn.prototype.normal={};Nn.prototype.property={};Nn.prototype.space=void 0;function uI(e,t){let a={},n={};for(let r of e)Object.assign(a,r.property),Object.assign(n,r.normal);return new Nn(a,n,t)}function fd(e){return e.toLowerCase()}var Kt=class{constructor(t,a){this.attribute=a,this.property=t}};Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;var pd={};_r(pd,{boolean:()=>Se,booleanish:()=>Lt,commaOrSpaceSeparated:()=>Pa,commaSeparated:()=>Po,number:()=>W,overloadedBoolean:()=>uh,spaceSeparated:()=>Je});var m5=0,Se=Li(),Lt=Li(),uh=Li(),W=Li(),Je=Li(),Po=Li(),Pa=Li();function Li(){return 2**++m5}var cI=Object.keys(pd),Ai=class extends Kt{constructor(t,a,n,r){let o=-1;if(super(t,a),KM(this,"space",r),typeof n=="number")for(;++o<cI.length;){let i=cI[o];KM(this,cI[o],(n&pd[i])===pd[i])}}};Ai.prototype.defined=!0;function KM(e,t,a){a&&(e[t]=a)}function xr(e){let t={},a={};for(let[n,r]of Object.entries(e.properties)){let o=new Ai(n,e.transform(e.attributes||{},n),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,a[fd(n)]=n,a[fd(o.attribute)]=n}return new Nn(t,a,e.space)}var dI=xr({properties:{ariaActiveDescendant:null,ariaAtomic:Lt,ariaAutoComplete:null,ariaBusy:Lt,ariaChecked:Lt,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:Lt,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:Lt,ariaFlowTo:Je,ariaGrabbed:Lt,ariaHasPopup:null,ariaHidden:Lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:W,ariaLive:null,ariaModal:Lt,ariaMultiLine:Lt,ariaMultiSelectable:Lt,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Lt,ariaReadOnly:Lt,ariaRelevant:null,ariaRequired:Lt,ariaRoleDescription:Je,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Lt,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ch(e,t){return t in e?e[t]:t}function dh(e,t){return ch(e,t.toLowerCase())}var YM=xr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Po,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Je,autoFocus:Se,autoPlay:Se,blocking:Je,capture:null,charSet:null,checked:Se,cite:null,className:Je,cols:W,colSpan:null,content:null,contentEditable:Lt,controls:Se,controlsList:Je,coords:W|Po,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:uh,draggable:Lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:Je,height:W,hidden:uh,high:W,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:Je,itemRef:Je,itemScope:Se,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Se,optimum:W,pattern:null,ping:Je,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:Je,required:Se,reversed:Se,rows:W,rowSpan:W,sandbox:Je,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Lt,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Lt,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:dh});var QM=xr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Pa,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Je,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Po,g2:Po,glyphName:Po,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Pa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pa,rev:Pa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pa,requiredFeatures:Pa,requiredFonts:Pa,requiredFormats:Pa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Pa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pa,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ch});var fI=xr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var pI=xr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:dh});var mI=xr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var hI={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var h5=/[A-Z]/g,eD=/-[a-z]/g,g5=/^data[-\w.:]+$/i;function gI(e,t){let a=fd(t),n=t,r=Kt;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&g5.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(eD,y5);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!eD.test(o)){let i=o.replace(h5,v5);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}r=Ai}return new r(n,t)}function v5(e){return"-"+e.toLowerCase()}function y5(e){return e.charAt(1).toUpperCase()}var tD=uI([dI,YM,fI,pI,mI],"html"),fh=uI([dI,QM,fI,pI,mI],"svg");function aD(e){return e.join(" ").trim()}var vD=ne(pD(),1);var mh=mD("end"),js=mD("start");function mD(e){return t;function t(a){let n=a&&a.position&&a.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function xI(e){let t=js(e),a=mh(e);if(t&&a)return{start:t,end:a}}function No(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hD(e.position):"start"in e||"end"in e?hD(e):"line"in e||"column"in e?bI(e):""}function bI(e){return gD(e&&e.line)+":"+gD(e&&e.column)}function hD(e){return bI(e&&e.start)+"-"+bI(e&&e.end)}function gD(e){return e&&typeof e=="number"?e:1}var Mt=class extends Error{constructor(t,a,n){super(),typeof a=="string"&&(n=a,a=void 0);let r="",o={},i=!1;if(a&&("line"in a&&"column"in a?o={place:a}:"start"in a&&"end"in a?o={place:a}:"type"in a?o={ancestors:[a],place:a.position}:o={...a}),typeof t=="string"?r=t:!o.cause&&t&&(i=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let s=n.indexOf(":");s===-1?o.ruleId=n:(o.source=n.slice(0,s),o.ruleId=n.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){let s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}let l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=No(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Mt.prototype.file="";Mt.prototype.name="";Mt.prototype.reason="";Mt.prototype.message="";Mt.prototype.stack="";Mt.prototype.column=void 0;Mt.prototype.line=void 0;Mt.prototype.ancestors=void 0;Mt.prototype.cause=void 0;Mt.prototype.fatal=void 0;Mt.prototype.place=void 0;Mt.prototype.ruleId=void 0;Mt.prototype.source=void 0;var SI={}.hasOwnProperty,Z5=new Map,H5=/[A-Z]/g,V5=new Set(["table","tbody","thead","tfoot","tr"]),G5=new Set(["td","th"]),yD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let a=t.filePath||void 0,n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=tq(a,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=eq(a,t.jsx,t.jsxs)}let r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fh:tD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=xD(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function xD(e,t,a){if(t.type==="element")return W5(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return J5(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return K5(e,t,a);if(t.type==="mdxjsEsm")return X5(e,t);if(t.type==="root")return Y5(e,t,a);if(t.type==="text")return Q5(e,t)}function W5(e,t,a){let n=e.schema,r=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=fh,e.schema=r),e.ancestors.push(t);let o=SD(e,t.tagName,!1),i=aq(e,t),l=II(e,t);return V5.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!sI(s):!0})),bD(e,i,o,t),_I(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function J5(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}hd(e,t.position)}function X5(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);hd(e,t.position)}function K5(e,t,a){let n=e.schema,r=n;t.name==="svg"&&n.space==="html"&&(r=fh,e.schema=r),e.ancestors.push(t);let o=t.name===null?e.Fragment:SD(e,t.name,!0),i=rq(e,t),l=II(e,t);return bD(e,i,o,t),_I(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function Y5(e,t,a){let n={};return _I(n,II(e,t)),e.create(t,e.Fragment,n,a)}function Q5(e,t){return t.value}function bD(e,t,a,n){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=n)}function _I(e,t){if(t.length>0){let a=t.length>1?t:t[0];a&&(e.children=a)}}function eq(e,t,a){return n;function n(r,o,i,l){let u=Array.isArray(i.children)?a:t;return l?u(o,i,l):u(o,i)}}function tq(e,t){return a;function a(n,r,o,i){let l=Array.isArray(o.children),s=js(n);return t(r,o,i,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function aq(e,t){let a={},n,r;for(r in t.properties)if(r!=="children"&&SI.call(t.properties,r)){let o=nq(e,r,t.properties[r]);if(o){let[i,l]=o;e.tableCellAlignToStyle&&i==="align"&&typeof l=="string"&&G5.has(t.tagName)?n=l:a[i]=l}}if(n){let o=a.style||(a.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return a}function rq(e,t){let a={};for(let n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){let o=n.data.estree.body[0];o.type;let i=o.expression;i.type;let l=i.properties[0];l.type,Object.assign(a,e.evaluater.evaluateExpression(l.argument))}else hd(e,t.position);else{let r=n.name,o;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){let l=n.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else hd(e,t.position);else o=n.value===null?!0:n.value;a[r]=o}return a}function II(e,t){let a=[],n=-1,r=e.passKeys?new Map:Z5;for(;++n<t.children.length;){let o=t.children[n],i;if(e.passKeys){let s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){let u=r.get(s)||0;i=s+"-"+u,r.set(s,u+1)}}let l=xD(e,o,i);l!==void 0&&a.push(l)}return a}function nq(e,t,a){let n=gI(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=n.commaSeparated?JM(a):aD(a)),n.property==="style"){let r=typeof a=="object"?a:oq(e,String(a));return e.stylePropertyNameCase==="css"&&(r=iq(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&n.space?hI[n.property]||n.property:n.attribute,a]}}function oq(e,t){try{return(0,vD.default)(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let n=a,r=new Mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=yD+"#cannot-parse-style-attribute",r}}function SD(e,t,a){let n;if(!a)n={type:"Literal",value:t};else if(t.includes(".")){let r=t.split("."),o=-1,i;for(;++o<r.length;){let l=sh(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};i=i?{type:"MemberExpression",object:i,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}n=i}else n=sh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){let r=n.value;return SI.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(n);hd(e)}function hd(e,t){let a=new Mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=yD+"#cannot-handle-mdx-estrees-without-createevaluater",a}function iq(e){let t={},a;for(a in e)SI.call(e,a)&&(t[lq(a)]=e[a]);return t}function lq(e){let t=e.replace(H5,sq);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function sq(e){return"-"+e.toLowerCase()}var gd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Vs=ne(xe(),1),Gz=ne(yt(),1);var uq={};function $i(e,t){let a=t||uq,n=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,r=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return _D(e,n,r)}function _D(e,t,a){if(cq(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return wD(e.children,t,a)}return Array.isArray(e)?wD(e,t,a):""}function wD(e,t,a){let n=[],r=-1;for(;++r<e.length;)n[r]=_D(e[r],t,a);return n.join("")}function cq(e){return!!(e&&typeof e=="object")}var ID=document.createElement("i");function Bs(e){let t="&"+e+";";ID.innerHTML=t;let a=ID.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function Dt(e,t,a,n){let r=e.length,o=0,i;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,a=a>0?a:0,n.length<1e4)i=Array.from(n),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);o<n.length;)i=n.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function ka(e,t){return e.length>0?(Dt(e,e.length,0,t),e):t}var kD={}.hasOwnProperty;function hh(e){let t={},a=-1;for(;++a<e.length;)dq(t,e[a]);return t}function dq(e,t){let a;for(a in t){let r=(kD.call(e,a)?e[a]:void 0)||(e[a]={}),o=t[a],i;if(o)for(i in o){kD.call(r,i)||(r[i]=[]);let l=o[i];fq(r[i],Array.isArray(l)?l:l?[l]:[])}}}function fq(e,t){let a=-1,n=[];for(;++a<t.length;)(t[a].add==="after"?e:n).push(t[a]);Dt(e,0,0,n)}function gh(e,t){let a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"\uFFFD":String.fromCodePoint(a)}function da(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ht=Uo(/[A-Za-z]/),At=Uo(/[\dA-Za-z]/),CD=Uo(/[#-'*+\--9=?A-Z^-~]/);function Mi(e){return e!==null&&(e<32||e===127)}var vd=Uo(/\d/),TD=Uo(/[\dA-Fa-f]/),LD=Uo(/[!-/:-@[-`{-~]/);function re(e){return e!==null&&e<-2}function $e(e){return e!==null&&(e<0||e===32)}function pe(e){return e===-2||e===-1||e===32}var Di=Uo(/\p{P}|\p{S}/u),en=Uo(/\s/);function Uo(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function br(e){let t=[],a=-1,n=0,r=0;for(;++a<e.length;){let o=e.charCodeAt(a),i="";if(o===37&&At(e.charCodeAt(a+1))&&At(e.charCodeAt(a+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){let l=e.charCodeAt(a+1);o<56320&&l>56319&&l<57344?(i=String.fromCharCode(o,l),r=1):i="\uFFFD"}else i=String.fromCharCode(o);i&&(t.push(e.slice(n,a),encodeURIComponent(i)),n=a+r+1,i=""),r&&(a+=r,r=0)}return t.join("")+e.slice(n)}function fe(e,t,a,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return i;function i(s){return pe(s)?(e.enter(a),l(s)):t(s)}function l(s){return pe(s)&&o++<r?(e.consume(s),l):(e.exit(a),t(s))}}var AD={tokenize:pq};function pq(e){let t=e.attempt(this.parser.constructs.contentInitial,n,r),a;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),fe(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),o(l)}function o(l){let s=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=s),a=s,i(l)}function i(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return re(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),i)}}var $D={tokenize:mq},ED={tokenize:hq};function mq(e){let t=this,a=[],n=0,r,o,i;return l;function l(h){if(n<a.length){let b=a[n];return t.containerState=b[1],e.attempt(b[0].continuation,s,u)(h)}return u(h)}function s(h){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();let b=t.events.length,L=b,y;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){y=t.events[L][1].end;break}g(n);let _=b;for(;_<t.events.length;)t.events[_][1].end={...y},_++;return Dt(t.events,L+1,0,t.events.slice(b)),t.events.length=_,u(h)}return l(h)}function u(h){if(n===a.length){if(!r)return p(h);if(r.currentConstruct&&r.currentConstruct.concrete)return m(h);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ED,c,d)(h)}function c(h){return r&&x(),g(n),p(h)}function d(h){return t.parser.lazy[t.now().line]=n!==a.length,i=t.now().offset,m(h)}function p(h){return t.containerState={},e.attempt(ED,f,m)(h)}function f(h){return n++,a.push([t.currentConstruct,t.containerState]),p(h)}function m(h){if(h===null){r&&x(),g(0),e.consume(h);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),w(h)}function w(h){if(h===null){C(e.exit("chunkFlow"),!0),g(0),e.consume(h);return}return re(h)?(e.consume(h),C(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(h),w)}function C(h,b){let L=t.sliceStream(h);if(b&&L.push(null),h.previous=o,o&&(o.next=h),o=h,r.defineSkip(h.start),r.write(L),t.parser.lazy[h.start.line]){let y=r.events.length;for(;y--;)if(r.events[y][1].start.offset<i&&(!r.events[y][1].end||r.events[y][1].end.offset>i))return;let _=t.events.length,S=_,T,I;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){if(T){I=t.events[S][1].end;break}T=!0}for(g(n),y=_;y<t.events.length;)t.events[y][1].end={...I},y++;Dt(t.events,S+1,0,t.events.slice(_)),t.events.length=y}}function g(h){let b=a.length;for(;b-- >h;){let L=a[b];t.containerState=L[1],L[0].exit.call(t,e)}a.length=h}function x(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function hq(e,t,a){return fe(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(e){if(e===null||$e(e)||en(e))return 1;if(Di(e))return 2}function Fo(e,t,a){let n=[],r=-1;for(;++r<e.length;){let o=e[r].resolveAll;o&&!n.includes(o)&&(t=o(t,a),n.push(o))}return t}var yd={name:"attention",resolveAll:gq,tokenize:vq};function gq(e,t){let a=-1,n,r,o,i,l,s,u,c;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(n=a;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[n][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[a][1].start};MD(d,-s),MD(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[a][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[n][1].end={...i.start},e[a][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ka(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ka(u,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),u=ka(u,Fo(t.parser.constructs.insideSpan.null,e.slice(n+1,a),t)),u=ka(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[a][1].end.offset-e[a][1].start.offset?(c=2,u=ka(u,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,Dt(e,n-1,a-n+3,u),a=n+u.length-c-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function vq(e,t){let a=this.parser.constructs.attentionMarkers.null,n=this.previous,r=Un(n),o;return i;function i(s){return o=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===o)return e.consume(s),l;let u=e.exit("attentionSequence"),c=Un(s),d=!c||c===2&&r||a.includes(s),p=!r||r===2&&c||a.includes(n);return u._open=!!(o===42?d:d&&(r||!p)),u._close=!!(o===42?p:p&&(c||!d)),t(s)}}function MD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var kI={name:"autolink",tokenize:yq};function yq(e,t,a){let n=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return Ht(f)?(e.consume(f),i):f===64?a(f):u(f)}function i(f){return f===43||f===45||f===46||At(f)?(n=1,l(f)):u(f)}function l(f){return f===58?(e.consume(f),n=0,s):(f===43||f===45||f===46||At(f))&&n++<32?(e.consume(f),l):(n=0,u(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Mi(f)?a(f):(e.consume(f),s)}function u(f){return f===64?(e.consume(f),c):CD(f)?(e.consume(f),u):a(f)}function c(f){return At(f)?d(f):a(f)}function d(f){return f===46?(e.consume(f),n=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||At(f))&&n++<63){let m=f===45?p:d;return e.consume(f),m}return a(f)}}var tn={partial:!0,tokenize:xq};function xq(e,t,a){return n;function n(o){return pe(o)?fe(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||re(o)?t(o):a(o)}}var vh={continuation:{tokenize:Sq},exit:wq,name:"blockQuote",tokenize:bq};function bq(e,t,a){let n=this;return r;function r(i){if(i===62){let l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return a(i)}function o(i){return pe(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function Sq(e,t,a){let n=this;return r;function r(i){return pe(i)?fe(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)}function o(i){return e.attempt(vh,t,a)(i)}}function wq(e){e.exit("blockQuote")}var yh={name:"characterEscape",tokenize:_q};function _q(e,t,a){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return LD(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(o)}}var xh={name:"characterReference",tokenize:Iq};function Iq(e,t,a){let n=this,r=0,o,i;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,i=At,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=TD,c):(e.enter("characterReferenceValue"),o=7,i=vd,c(d))}function c(d){if(d===59&&r){let p=e.exit("characterReferenceValue");return i===At&&!Bs(n.sliceSerialize(p))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&r++<o?(e.consume(d),c):a(d)}}var DD={partial:!0,tokenize:Cq},bh={concrete:!0,name:"codeFenced",tokenize:kq};function kq(e,t,a){let n=this,r={partial:!0,tokenize:L},o=0,i=0,l;return s;function s(y){return u(y)}function u(y){let _=n.events[n.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,l=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===l?(i++,e.consume(y),c):i<3?a(y):(e.exit("codeFencedFenceSequence"),pe(y)?fe(e,d,"whitespace")(y):d(y))}function d(y){return y===null||re(y)?(e.exit("codeFencedFence"),n.interrupt?t(y):e.check(DD,w,b)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||re(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(y)):pe(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),fe(e,f,"whitespace")(y)):y===96&&y===l?a(y):(e.consume(y),p)}function f(y){return y===null||re(y)?d(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||re(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(y)):y===96&&y===l?a(y):(e.consume(y),m)}function w(y){return e.attempt(r,b,C)(y)}function C(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g}function g(y){return o>0&&pe(y)?fe(e,x,"linePrefix",o+1)(y):x(y)}function x(y){return y===null||re(y)?e.check(DD,w,b)(y):(e.enter("codeFlowValue"),h(y))}function h(y){return y===null||re(y)?(e.exit("codeFlowValue"),x(y)):(e.consume(y),h)}function b(y){return e.exit("codeFenced"),t(y)}function L(y,_,S){let T=0;return I;function I(B){return y.enter("lineEnding"),y.consume(B),y.exit("lineEnding"),q}function q(B){return y.enter("codeFencedFence"),pe(B)?fe(y,O,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):O(B)}function O(B){return B===l?(y.enter("codeFencedFenceSequence"),F(B)):S(B)}function F(B){return B===l?(T++,y.consume(B),F):T>=i?(y.exit("codeFencedFenceSequence"),pe(B)?fe(y,P,"whitespace")(B):P(B)):S(B)}function P(B){return B===null||re(B)?(y.exit("codeFencedFence"),_(B)):S(B)}}}function Cq(e,t,a){let n=this;return r;function r(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}var xd={name:"codeIndented",tokenize:Lq},Tq={partial:!0,tokenize:Aq};function Lq(e,t,a){let n=this;return r;function r(u){return e.enter("codeIndented"),fe(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(u):a(u)}function i(u){return u===null?s(u):re(u)?e.attempt(Tq,i,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||re(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function Aq(e,t,a){let n=this;return r;function r(i){return n.parser.lazy[n.now().line]?a(i):re(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):fe(e,o,"linePrefix",5)(i)}function o(i){let l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):re(i)?r(i):a(i)}}var CI={name:"codeText",previous:$q,resolve:Eq,tokenize:Mq};function Eq(e){let t=e.length-4,a=3,n,r;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=a;++n<t;)if(e[n][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(n=a-1,t++;++n<=t;)r===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(r=n):(n===t||e[n][1].type==="lineEnding")&&(e[r][1].type="codeTextData",n!==r+2&&(e[r][1].end=e[n-1][1].end,e.splice(r+2,n-r-2),t-=n-r-2,n=r+2),r=void 0);return e}function $q(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Mq(e,t,a){let n=this,r=0,o,i;return l;function l(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?a(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(i=e.enter("codeTextSequence"),o=0,d(p)):re(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||re(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function d(p){return p===96?(e.consume(p),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",c(p))}}var Sh=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,a){let n=a??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,a,n){let r=a||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&bd(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),bd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bd(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let a=this.left.splice(t,Number.POSITIVE_INFINITY);bd(this.right,a.reverse())}else{let a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bd(this.left,a.reverse())}}};function bd(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function wh(e){let t={},a=-1,n,r,o,i,l,s,u,c=new Sh(e);for(;++a<c.length;){for(;a in t;)a=t[a];if(n=c.get(a),a&&n[1].type==="chunkFlow"&&c.get(a-1)[1].type==="listItemPrefix"&&(s=n[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Dq(c,a)),a=t[a],u=!0);else if(n[1]._container){for(o=a,r=void 0;o--;)if(i=c.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;r&&(n[1].end={...c.get(r)[1].start},l=c.slice(r,a),l.unshift(n),c.splice(r,a-r+1,l))}}return Dt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Dq(e,t){let a=e.get(t)[1],n=e.get(t)[2],r=t-1,o=[],i=a._tokenizer;i||(i=n.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));let l=i.events,s=[],u={},c,d,p=-1,f=a,m=0,w=0,C=[w];for(;f;){for(;e.get(++r)[1]!==f;);o.push(r),f._tokenizer||(c=n.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=a;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(w=p+1,C.push(w),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):C.pop(),p=C.length;p--;){let g=l.slice(C[p],C[p+1]),x=o.pop();s.push([x,x+g.length-1]),e.splice(x,2,g)}for(s.reverse(),p=-1;++p<s.length;)u[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return u}var TI={resolve:Oq,tokenize:Rq},zq={partial:!0,tokenize:Pq};function Oq(e){return wh(e),e}function Rq(e,t){let a;return n;function n(l){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?o(l):re(l)?e.check(zq,i,o)(l):(e.consume(l),r)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function i(l){return e.consume(l),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,r}}function Pq(e,t,a){let n=this;return r;function r(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),fe(e,o,"linePrefix")}function o(i){if(i===null||re(i))return a(i);let l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,a,t)(i)}}function _h(e,t,a,n,r,o,i,l,s){let u=s||Number.POSITIVE_INFINITY,c=0;return d;function d(g){return g===60?(e.enter(n),e.enter(r),e.enter(o),e.consume(g),e.exit(o),p):g===null||g===32||g===41||Mi(g)?a(g):(e.enter(n),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(g))}function p(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(r),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===62?(e.exit("chunkString"),e.exit(l),p(g)):g===null||g===60||re(g)?a(g):(e.consume(g),g===92?m:f)}function m(g){return g===60||g===62||g===92?(e.consume(g),f):f(g)}function w(g){return!c&&(g===null||g===41||$e(g))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(n),t(g)):c<u&&g===40?(e.consume(g),c++,w):g===41?(e.consume(g),c--,w):g===null||g===32||g===40||Mi(g)?a(g):(e.consume(g),g===92?C:w)}function C(g){return g===40||g===41||g===92?(e.consume(g),w):w(g)}}function Ih(e,t,a,n,r,o){let i=this,l=0,s;return u;function u(f){return e.enter(n),e.enter(r),e.consume(f),e.exit(r),e.enter(o),c}function c(f){return l>999||f===null||f===91||f===93&&!s||f===94&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):f===93?(e.exit(o),e.enter(r),e.consume(f),e.exit(r),e.exit(n),t):re(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||re(f)||l++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!pe(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),l++,d):d(f)}}function kh(e,t,a,n,r,o){let i;return l;function l(p){return p===34||p===39||p===40?(e.enter(n),e.enter(r),e.consume(p),e.exit(r),i=p===40?41:p,s):a(p)}function s(p){return p===i?(e.enter(r),e.consume(p),e.exit(r),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===i?(e.exit(o),s(i)):p===null?a(p):re(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),fe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===i||p===null||re(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===i||p===92?(e.consume(p),c):c(p)}}function zi(e,t){let a;return n;function n(r){return re(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a=!0,n):pe(r)?fe(e,n,a?"linePrefix":"lineSuffix")(r):t(r)}}var LI={name:"definition",tokenize:Uq},Nq={partial:!0,tokenize:Fq};function Uq(e,t,a){let n=this,r;return o;function o(f){return e.enter("definition"),i(f)}function i(f){return Ih.call(n,e,l,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function l(f){return r=da(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):a(f)}function s(f){return $e(f)?zi(e,u)(f):u(f)}function u(f){return _h(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(Nq,d,d)(f)}function d(f){return pe(f)?fe(e,p,"whitespace")(f):p(f)}function p(f){return f===null||re(f)?(e.exit("definition"),n.parser.defined.push(r),t(f)):a(f)}}function Fq(e,t,a){return n;function n(l){return $e(l)?zi(e,r)(l):a(l)}function r(l){return kh(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return pe(l)?fe(e,i,"whitespace")(l):i(l)}function i(l){return l===null||re(l)?t(l):a(l)}}var AI={name:"hardBreakEscape",tokenize:jq};function jq(e,t,a){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return re(o)?(e.exit("hardBreakEscape"),t(o)):a(o)}}var EI={name:"headingAtx",resolve:Bq,tokenize:qq};function Bq(e,t){let a=e.length-2,n=3,r,o;return e[n][1].type==="whitespace"&&(n+=2),a-2>n&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(n===a-1||a-4>n&&e[a-2][1].type==="whitespace")&&(a-=n+1===a?2:4),a>n&&(r={type:"atxHeadingText",start:e[n][1].start,end:e[a][1].end},o={type:"chunkText",start:e[n][1].start,end:e[a][1].end,contentType:"text"},Dt(e,n,a-n+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function qq(e,t,a){let n=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&n++<6?(e.consume(c),i):c===null||$e(c)?(e.exit("atxHeadingSequence"),l(c)):a(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||re(c)?(e.exit("atxHeading"),t(c)):pe(c)?fe(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||$e(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}var zD=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$I=["pre","script","style","textarea"];var MI={concrete:!0,name:"htmlFlow",resolveTo:Vq,tokenize:Gq},Zq={partial:!0,tokenize:Jq},Hq={partial:!0,tokenize:Wq};function Vq(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Gq(e,t,a){let n=this,r,o,i,l,s;return u;function u(E){return c(E)}function c(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),d}function d(E){return E===33?(e.consume(E),p):E===47?(e.consume(E),o=!0,w):E===63?(e.consume(E),r=3,n.interrupt?t:$):Ht(E)?(e.consume(E),i=String.fromCharCode(E),C):a(E)}function p(E){return E===45?(e.consume(E),r=2,f):E===91?(e.consume(E),r=5,l=0,m):Ht(E)?(e.consume(E),r=4,n.interrupt?t:$):a(E)}function f(E){return E===45?(e.consume(E),n.interrupt?t:$):a(E)}function m(E){let ge="CDATA[";return E===ge.charCodeAt(l++)?(e.consume(E),l===ge.length?n.interrupt?t:O:m):a(E)}function w(E){return Ht(E)?(e.consume(E),i=String.fromCharCode(E),C):a(E)}function C(E){if(E===null||E===47||E===62||$e(E)){let ge=E===47,bt=i.toLowerCase();return!ge&&!o&&$I.includes(bt)?(r=1,n.interrupt?t(E):O(E)):zD.includes(i.toLowerCase())?(r=6,ge?(e.consume(E),g):n.interrupt?t(E):O(E)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?a(E):o?x(E):h(E))}return E===45||At(E)?(e.consume(E),i+=String.fromCharCode(E),C):a(E)}function g(E){return E===62?(e.consume(E),n.interrupt?t:O):a(E)}function x(E){return pe(E)?(e.consume(E),x):I(E)}function h(E){return E===47?(e.consume(E),I):E===58||E===95||Ht(E)?(e.consume(E),b):pe(E)?(e.consume(E),h):I(E)}function b(E){return E===45||E===46||E===58||E===95||At(E)?(e.consume(E),b):L(E)}function L(E){return E===61?(e.consume(E),y):pe(E)?(e.consume(E),L):h(E)}function y(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(e.consume(E),s=E,_):pe(E)?(e.consume(E),y):S(E)}function _(E){return E===s?(e.consume(E),s=null,T):E===null||re(E)?a(E):(e.consume(E),_)}function S(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||$e(E)?L(E):(e.consume(E),S)}function T(E){return E===47||E===62||pe(E)?h(E):a(E)}function I(E){return E===62?(e.consume(E),q):a(E)}function q(E){return E===null||re(E)?O(E):pe(E)?(e.consume(E),q):a(E)}function O(E){return E===45&&r===2?(e.consume(E),K):E===60&&r===1?(e.consume(E),se):E===62&&r===4?(e.consume(E),Me):E===63&&r===3?(e.consume(E),$):E===93&&r===5?(e.consume(E),Le):re(E)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Zq,at,F)(E)):E===null||re(E)?(e.exit("htmlFlowData"),F(E)):(e.consume(E),O)}function F(E){return e.check(Hq,P,at)(E)}function P(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),B}function B(E){return E===null||re(E)?F(E):(e.enter("htmlFlowData"),O(E))}function K(E){return E===45?(e.consume(E),$):O(E)}function se(E){return E===47?(e.consume(E),i="",ue):O(E)}function ue(E){if(E===62){let ge=i.toLowerCase();return $I.includes(ge)?(e.consume(E),Me):O(E)}return Ht(E)&&i.length<8?(e.consume(E),i+=String.fromCharCode(E),ue):O(E)}function Le(E){return E===93?(e.consume(E),$):O(E)}function $(E){return E===62?(e.consume(E),Me):E===45&&r===2?(e.consume(E),$):O(E)}function Me(E){return E===null||re(E)?(e.exit("htmlFlowData"),at(E)):(e.consume(E),Me)}function at(E){return e.exit("htmlFlow"),t(E)}}function Wq(e,t,a){let n=this;return r;function r(i){return re(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):a(i)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}function Jq(e,t,a){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(tn,t,a)}}var DI={name:"htmlText",tokenize:Xq};function Xq(e,t,a){let n=this,r,o,i;return l;function l($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),s}function s($){return $===33?(e.consume($),u):$===47?(e.consume($),L):$===63?(e.consume($),h):Ht($)?(e.consume($),S):a($)}function u($){return $===45?(e.consume($),c):$===91?(e.consume($),o=0,m):Ht($)?(e.consume($),x):a($)}function c($){return $===45?(e.consume($),f):a($)}function d($){return $===null?a($):$===45?(e.consume($),p):re($)?(i=d,se($)):(e.consume($),d)}function p($){return $===45?(e.consume($),f):d($)}function f($){return $===62?K($):$===45?p($):d($)}function m($){let Me="CDATA[";return $===Me.charCodeAt(o++)?(e.consume($),o===Me.length?w:m):a($)}function w($){return $===null?a($):$===93?(e.consume($),C):re($)?(i=w,se($)):(e.consume($),w)}function C($){return $===93?(e.consume($),g):w($)}function g($){return $===62?K($):$===93?(e.consume($),g):w($)}function x($){return $===null||$===62?K($):re($)?(i=x,se($)):(e.consume($),x)}function h($){return $===null?a($):$===63?(e.consume($),b):re($)?(i=h,se($)):(e.consume($),h)}function b($){return $===62?K($):h($)}function L($){return Ht($)?(e.consume($),y):a($)}function y($){return $===45||At($)?(e.consume($),y):_($)}function _($){return re($)?(i=_,se($)):pe($)?(e.consume($),_):K($)}function S($){return $===45||At($)?(e.consume($),S):$===47||$===62||$e($)?T($):a($)}function T($){return $===47?(e.consume($),K):$===58||$===95||Ht($)?(e.consume($),I):re($)?(i=T,se($)):pe($)?(e.consume($),T):K($)}function I($){return $===45||$===46||$===58||$===95||At($)?(e.consume($),I):q($)}function q($){return $===61?(e.consume($),O):re($)?(i=q,se($)):pe($)?(e.consume($),q):T($)}function O($){return $===null||$===60||$===61||$===62||$===96?a($):$===34||$===39?(e.consume($),r=$,F):re($)?(i=O,se($)):pe($)?(e.consume($),O):(e.consume($),P)}function F($){return $===r?(e.consume($),r=void 0,B):$===null?a($):re($)?(i=F,se($)):(e.consume($),F)}function P($){return $===null||$===34||$===39||$===60||$===61||$===96?a($):$===47||$===62||$e($)?T($):(e.consume($),P)}function B($){return $===47||$===62||$e($)?T($):a($)}function K($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):a($)}function se($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),ue}function ue($){return pe($)?fe(e,Le,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):Le($)}function Le($){return e.enter("htmlTextData"),i($)}}var Oi={name:"labelEnd",resolveAll:e9,resolveTo:t9,tokenize:a9},Kq={tokenize:r9},Yq={tokenize:n9},Qq={tokenize:o9};function e9(e){let t=-1,a=[];for(;++t<e.length;){let n=e[t][1];if(a.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let r=n.type==="labelImage"?4:2;n.type="data",t+=r}}return e.length!==a.length&&Dt(e,0,e.length,a),e}function t9(e,t){let a=e.length,n=0,r,o,i,l;for(;a--;)if(r=e[a][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[a][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(i){if(e[a][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=a,r.type!=="labelLink")){n=2;break}}else r.type==="labelEnd"&&(i=a);let s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",s,t],["enter",u,t]],l=ka(l,e.slice(o+1,o+n+3)),l=ka(l,[["enter",c,t]]),l=ka(l,Fo(t.parser.constructs.insideSpan.null,e.slice(o+n+4,i-3),t)),l=ka(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=ka(l,e.slice(i+1)),l=ka(l,[["exit",s,t]]),Dt(e,o,e.length,l),e}function a9(e,t,a){let n=this,r=n.events.length,o,i;for(;r--;)if((n.events[r][1].type==="labelImage"||n.events[r][1].type==="labelLink")&&!n.events[r][1]._balanced){o=n.events[r][1];break}return l;function l(p){return o?o._inactive?d(p):(i=n.parser.defined.includes(da(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):a(p)}function s(p){return p===40?e.attempt(Kq,c,i?c:d)(p):p===91?e.attempt(Yq,c,i?u:d)(p):i?c(p):d(p)}function u(p){return e.attempt(Qq,c,d)(p)}function c(p){return t(p)}function d(p){return o._balanced=!0,a(p)}}function r9(e,t,a){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return $e(d)?zi(e,o)(d):o(d)}function o(d){return d===41?c(d):_h(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return $e(d)?zi(e,s)(d):c(d)}function l(d){return a(d)}function s(d){return d===34||d===39||d===40?kh(e,u,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return $e(d)?zi(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function n9(e,t,a){let n=this;return r;function r(l){return Ih.call(n,e,o,i,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(da(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):a(l)}function i(l){return a(l)}}function o9(e,t,a){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):a(o)}}var zI={name:"labelStartImage",resolveAll:Oi.resolveAll,tokenize:i9};function i9(e,t,a){let n=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):a(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(l):t(l)}}var OI={name:"labelStartLink",resolveAll:Oi.resolveAll,tokenize:l9};function l9(e,t,a){let n=this;return r;function r(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o}function o(i){return i===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(i):t(i)}}var Sd={name:"lineEnding",tokenize:s9};function s9(e,t){return a;function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),fe(e,t,"linePrefix")}}var Ri={name:"thematicBreak",tokenize:u9};function u9(e,t,a){let n=0,r;return o;function o(u){return e.enter("thematicBreak"),i(u)}function i(u){return r=u,l(u)}function l(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):n>=3&&(u===null||re(u))?(e.exit("thematicBreak"),t(u)):a(u)}function s(u){return u===r?(e.consume(u),n++,s):(e.exit("thematicBreakSequence"),pe(u)?fe(e,l,"whitespace")(u):l(u))}}var fa={continuation:{tokenize:p9},exit:h9,name:"list",tokenize:f9},c9={partial:!0,tokenize:g9},d9={partial:!0,tokenize:m9};function f9(e,t,a){let n=this,r=n.events[n.events.length-1],o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,i=0;return l;function l(f){let m=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:vd(f)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ri,a,u)(f):u(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return a(f)}function s(f){return vd(f)&&++i<10?(e.consume(f),s):(!n.interrupt||i<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):a(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(tn,n.interrupt?a:c,e.attempt(c9,p,d))}function c(f){return n.containerState.initialBlankLine=!0,o++,p(f)}function d(f){return pe(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):a(f)}function p(f){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function p9(e,t,a){let n=this;return n.containerState._closeFlow=void 0,e.check(tn,r,o);function r(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,fe(e,t,"listItemIndent",n.containerState.size+1)(l)}function o(l){return n.containerState.furtherBlankLines||!pe(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(d9,t,i)(l))}function i(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,fe(e,e.attempt(fa,t,a),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function m9(e,t,a){let n=this;return fe(e,r,"listItemIndent",n.containerState.size+1);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(o):a(o)}}function h9(e){e.exit(this.containerState.type)}function g9(e,t,a){let n=this;return fe(e,r,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){let i=n.events[n.events.length-1];return!pe(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):a(o)}}var Ch={name:"setextUnderline",resolveTo:v9,tokenize:y9};function v9(e,t){let a=e.length,n,r,o;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){n=a;break}e[a][1].type==="paragraph"&&(r=a)}else e[a][1].type==="content"&&e.splice(a,1),!o&&e[a][1].type==="definition"&&(o=a);let i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e}function y9(e,t,a){let n=this,r;return o;function o(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),r=u,i(u)):a(u)}function i(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===r?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),pe(u)?fe(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||re(u)?(e.exit("setextHeadingLine"),t(u)):a(u)}}var OD={tokenize:x9};function x9(e){let t=this,a=e.attempt(tn,n,e.attempt(this.parser.constructs.flowInitial,r,fe(e,e.attempt(this.parser.constructs.flow,r,e.attempt(TI,r)),"linePrefix")));return a;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,a}}var RD={resolveAll:FD()},PD=UD("string"),ND=UD("text");function UD(e){return{resolveAll:FD(e==="text"?b9:void 0),tokenize:t};function t(a){let n=this,r=this.parser.constructs[e],o=a.attempt(r,i,l);return i;function i(c){return u(c)?o(c):l(c)}function l(c){if(c===null){a.consume(c);return}return a.enter("data"),a.consume(c),s}function s(c){return u(c)?(a.exit("data"),o(c)):(a.consume(c),s)}function u(c){if(c===null)return!0;let d=r[c],p=-1;if(d)for(;++p<d.length;){let f=d[p];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function FD(e){return t;function t(a,n){let r=-1,o;for(;++r<=a.length;)o===void 0?a[r]&&a[r][1].type==="data"&&(o=r,r++):(!a[r]||a[r][1].type!=="data")&&(r!==o+2&&(a[o][1].end=a[r-1][1].end,a.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(a,n):a}}function b9(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){let n=e[a-1][1],r=t.sliceStream(n),o=r.length,i=-1,l=0,s;for(;o--;){let u=r[o];if(typeof u=="string"){for(i=u.length;u.charCodeAt(i-1)===32;)l++,i--;if(i)break;i=-1}else if(u===-2)s=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(l=0),l){let u={type:a===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?i:n.start._bufferIndex+i,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(a,0,["enter",u,t],["exit",u,t]),a+=2)}a++}return e}var RI={};_r(RI,{attentionMarkers:()=>L9,contentInitial:()=>w9,disable:()=>A9,document:()=>S9,flow:()=>I9,flowInitial:()=>_9,insideSpan:()=>T9,string:()=>k9,text:()=>C9});var S9={42:fa,43:fa,45:fa,48:fa,49:fa,50:fa,51:fa,52:fa,53:fa,54:fa,55:fa,56:fa,57:fa,62:vh},w9={91:LI},_9={[-2]:xd,[-1]:xd,32:xd},I9={35:EI,42:Ri,45:[Ch,Ri],60:MI,61:Ch,95:Ri,96:bh,126:bh},k9={38:xh,92:yh},C9={[-5]:Sd,[-4]:Sd,[-3]:Sd,33:zI,38:xh,42:yd,60:[kI,DI],91:OI,92:[AI,yh],93:Oi,95:yd,96:CI},T9={null:[yd,RD]},L9={null:[42,95]},A9={null:[]};function jD(e,t,a){let n={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0},r={},o=[],i=[],l=[],s=!0,u={attempt:T(_),check:T(S),consume:b,enter:L,exit:y,interrupt:T(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:C,parser:e,previous:null,sliceSerialize:m,sliceStream:w,write:f},d=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function f(F){return i=ka(i,F),x(),i[i.length-1]!==null?[]:(I(t,0),c.events=Fo(o,c.events,c),c.events)}function m(F,P){return $9(w(F),P)}function w(F){return E9(i,F)}function C(){let{_bufferIndex:F,_index:P,line:B,column:K,offset:se}=n;return{_bufferIndex:F,_index:P,line:B,column:K,offset:se}}function g(F){r[F.line]=F.column,O()}function x(){let F;for(;n._index<i.length;){let P=i[n._index];if(typeof P=="string")for(F=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===F&&n._bufferIndex<P.length;)h(P.charCodeAt(n._bufferIndex));else h(P)}}function h(F){s=void 0,p=F,d=d(F)}function b(F){re(F)?(n.line++,n.column=1,n.offset+=F===-3?2:1,O()):F!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===i[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=F,s=!0}function L(F,P){let B=P||{};return B.type=F,B.start=C(),c.events.push(["enter",B,c]),l.push(B),B}function y(F){let P=l.pop();return P.end=C(),c.events.push(["exit",P,c]),P}function _(F,P){I(F,P.from)}function S(F,P){P.restore()}function T(F,P){return B;function B(K,se,ue){let Le,$,Me,at;return Array.isArray(K)?ge(K):"tokenize"in K?ge([K]):E(K);function E(A){return M;function M(R){let N=R!==null&&A[R],Q=R!==null&&A.null,_e=[...Array.isArray(N)?N:N?[N]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return ge(_e)(R)}}function ge(A){return Le=A,$=0,A.length===0?ue:bt(A[$])}function bt(A){return M;function M(R){return at=q(),Me=A,A.partial||(c.currentConstruct=A),A.name&&c.parser.constructs.disable.null.includes(A.name)?k(R):A.tokenize.call(P?Object.assign(Object.create(c),P):c,u,Y,k)(R)}}function Y(A){return s=!0,F(Me,at),se}function k(A){return s=!0,at.restore(),++$<Le.length?bt(Le[$]):ue}}}function I(F,P){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&Dt(c.events,P,c.events.length-P,F.resolve(c.events.slice(P),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function q(){let F=C(),P=c.previous,B=c.currentConstruct,K=c.events.length,se=Array.from(l);return{from:K,restore:ue};function ue(){n=F,c.previous=P,c.currentConstruct=B,c.events.length=K,l=se,O()}}function O(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}function E9(e,t){let a=t.start._index,n=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex,i;if(a===r)i=[e[a].slice(n,o)];else{if(i=e.slice(a,r),n>-1){let l=i[0];typeof l=="string"?i[0]=l.slice(n):i.shift()}o>0&&i.push(e[r].slice(0,o))}return i}function $9(e,t){let a=-1,n=[],r;for(;++a<e.length;){let o=e[a],i;if(typeof o=="string")i=o;else switch(o){case-5:{i="\r";break}case-4:{i=`
|
|
73
|
+
`;break}case-3:{i=`\r
|
|
74
|
+
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&r)continue;i=" ";break}default:i=String.fromCharCode(o)}r=o===-2,n.push(i)}return n.join("")}function PI(e){let n={constructs:hh([RI,...(e||{}).extensions||[]]),content:r(AD),defined:[],document:r($D),flow:r(OD),lazy:{},string:r(PD),text:r(ND)};return n;function r(o){return i;function i(l){return jD(n,o,l)}}}function NI(e){for(;!wh(e););return e}var BD=/[\0\t\n\r]/g;function UI(){let e=1,t="",a=!0,n;return r;function r(o,i,l){let s=[],u,c,d,p,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(i||void 0).decode(o)),d=0,t="",a&&(o.charCodeAt(0)===65279&&d++,a=void 0);d<o.length;){if(BD.lastIndex=d,u=BD.exec(o),p=u&&u.index!==void 0?u.index:o.length,f=o.charCodeAt(p),!u){t=o.slice(d);break}if(f===10&&d===p&&n)s.push(-3),n=void 0;else switch(n&&(s.push(-5),n=void 0),d<p&&(s.push(o.slice(d,p)),e+=p-d),f){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:n=!0,e=1}d=p+1}return l&&(n&&s.push(-5),t&&s.push(t),s.push(null)),s}}var M9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qD(e){return e.replace(M9,D9)}function D9(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){let r=a.charCodeAt(1),o=r===120||r===88;return gh(a.slice(o?2:1),o?16:10)}return Bs(a)||e}var HD={}.hasOwnProperty;function FI(e,t,a){return t&&typeof t=="object"&&(a=t,t=void 0),z9(a)(NI(PI(a).document().write(UI()(e,t,!0))))}function z9(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(wt),autolinkProtocol:T,autolinkEmail:T,atxHeading:o(St),blockQuote:o(R),characterEscape:T,characterReference:T,codeFenced:o(N),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(N,i),codeText:o(Q,i),codeTextData:T,data:T,codeFlowValue:T,definition:o(_e),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(He),hardBreakEscape:o(la),hardBreakTrailing:o(la),htmlFlow:o(jt,i),htmlFlowData:T,htmlText:o(jt,i),htmlTextData:T,image:o(Gt),label:i,link:o(wt),listItem:o(Or),listItemValue:p,listOrdered:o(it,d),listUnordered:o(it),paragraph:o(qi),reference:E,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(St),strong:o(Ys),thematicBreak:o(Qs)},exit:{atxHeading:s(),atxHeadingSequence:L,autolink:s(),autolinkEmail:M,autolinkProtocol:A,blockQuote:s(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:bt,characterReferenceMarkerNumeric:bt,characterReferenceValue:Y,characterReference:k,codeFenced:s(C),codeFencedFence:w,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:I,codeIndented:s(g),codeText:s(B),codeTextData:I,data:I,definition:s(),definitionDestinationString:b,definitionLabelString:x,definitionTitleString:h,emphasis:s(),hardBreakEscape:s(O),hardBreakTrailing:s(O),htmlFlow:s(F),htmlFlowData:I,htmlText:s(P),htmlTextData:I,image:s(se),label:Le,labelText:ue,lineEnding:q,link:s(K),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ge,resourceDestinationString:$,resourceTitleString:Me,resource:at,setextHeading:s(S),setextHeadingLineSequence:_,setextHeadingText:y,strong:s(),thematicBreak:s()}};VD(t,(e||{}).mdastExtensions||[]);let a={};return n;function n(U){let ee={type:"root",children:[]},ve={stack:[ee],tokenStack:[],config:t,enter:l,exit:u,buffer:i,resume:c,data:a},De=[],je=-1;for(;++je<U.length;)if(U[je][1].type==="listOrdered"||U[je][1].type==="listUnordered")if(U[je][0]==="enter")De.push(je);else{let pa=De.pop();je=r(U,pa,je)}for(je=-1;++je<U.length;){let pa=t[U[je][0]];HD.call(pa,U[je][1].type)&&pa[U[je][1].type].call(Object.assign({sliceSerialize:U[je][2].sliceSerialize},ve),U[je][1])}if(ve.tokenStack.length>0){let pa=ve.tokenStack[ve.tokenStack.length-1];(pa[1]||ZD).call(ve,void 0,pa[0])}for(ee.position={start:jo(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:jo(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je<t.transforms.length;)ee=t.transforms[je](ee)||ee;return ee}function r(U,ee,ve){let De=ee-1,je=-1,pa=!1,rn,wr,nn,Ho;for(;++De<=ve;){let ma=U[De];switch(ma[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ma[0]==="enter"?je++:je--,Ho=void 0;break}case"lineEndingBlank":{ma[0]==="enter"&&(rn&&!Ho&&!je&&!nn&&(nn=De),Ho=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ho=void 0}if(!je&&ma[0]==="enter"&&ma[1].type==="listItemPrefix"||je===-1&&ma[0]==="exit"&&(ma[1].type==="listUnordered"||ma[1].type==="listOrdered")){if(rn){let Rr=De;for(wr=void 0;Rr--;){let ie=U[Rr];if(ie[1].type==="lineEnding"||ie[1].type==="lineEndingBlank"){if(ie[0]==="exit")continue;wr&&(U[wr][1].type="lineEndingBlank",pa=!0),ie[1].type="lineEnding",wr=Rr}else if(!(ie[1].type==="linePrefix"||ie[1].type==="blockQuotePrefix"||ie[1].type==="blockQuotePrefixWhitespace"||ie[1].type==="blockQuoteMarker"||ie[1].type==="listItemIndent"))break}nn&&(!wr||nn<wr)&&(rn._spread=!0),rn.end=Object.assign({},wr?U[wr][1].start:ma[1].end),U.splice(wr||De,0,["exit",rn,ma[2]]),De++,ve++}if(ma[1].type==="listItemPrefix"){let Rr={type:"listItem",_spread:!1,start:Object.assign({},ma[1].start),end:void 0};rn=Rr,U.splice(De,0,["enter",Rr,ma[2]]),De++,ve++,nn=void 0,Ho=!0}}}return U[ee][1]._spread=pa,ve}function o(U,ee){return ve;function ve(De){l.call(this,U(De),De),ee&&ee.call(this,De)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(U,ee,ve){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([ee,ve||void 0]),U.position={start:jo(ee.start),end:void 0}}function s(U){return ee;function ee(ve){U&&U.call(this,ve),u.call(this,ve)}}function u(U,ee){let ve=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==U.type&&(ee?ee.call(this,U,De[0]):(De[1]||ZD).call(this,U,De[0]));else throw new Error("Cannot close `"+U.type+"` ("+No({start:U.start,end:U.end})+"): it\u2019s not open");ve.position.end=jo(U.end)}function c(){return $i(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(U){if(this.data.expectingFirstListItemValue){let ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function f(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=U}function m(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=U}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U.replace(/(\r?\n|\r)$/g,"")}function x(U){let ee=this.resume(),ve=this.stack[this.stack.length-1];ve.label=ee,ve.identifier=da(this.sliceSerialize(U)).toLowerCase()}function h(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.title=U}function b(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.url=U}function L(U){let ee=this.stack[this.stack.length-1];if(!ee.depth){let ve=this.sliceSerialize(U).length;ee.depth=ve}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function _(U){let ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function T(U){let ve=this.stack[this.stack.length-1].children,De=ve[ve.length-1];(!De||De.type!=="text")&&(De=Gh(),De.position={start:jo(U.start),end:void 0},ve.push(De)),this.stack.push(De)}function I(U){let ee=this.stack.pop();ee.value+=this.sliceSerialize(U),ee.position.end=jo(U.end)}function q(U){let ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ve=ee.children[ee.children.length-1];ve.position.end=jo(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(T.call(this,U),I.call(this,U))}function O(){this.data.atHardBreak=!0}function F(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U}function P(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U}function B(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U}function K(){let U=this.stack[this.stack.length-1];if(this.data.inReference){let ee=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=ee,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function se(){let U=this.stack[this.stack.length-1];if(this.data.inReference){let ee=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=ee,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function ue(U){let ee=this.sliceSerialize(U),ve=this.stack[this.stack.length-2];ve.label=qD(ee),ve.identifier=da(ee).toLowerCase()}function Le(){let U=this.stack[this.stack.length-1],ee=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){let De=U.children;ve.children=De}else ve.alt=ee}function $(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.url=U}function Me(){let U=this.resume(),ee=this.stack[this.stack.length-1];ee.title=U}function at(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ge(U){let ee=this.resume(),ve=this.stack[this.stack.length-1];ve.label=ee,ve.identifier=da(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function bt(U){this.data.characterReferenceType=U.type}function Y(U){let ee=this.sliceSerialize(U),ve=this.data.characterReferenceType,De;ve?(De=gh(ee,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=Bs(ee);let je=this.stack[this.stack.length-1];je.value+=De}function k(U){let ee=this.stack.pop();ee.position.end=jo(U.end)}function A(U){I.call(this,U);let ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(U)}function M(U){I.call(this,U);let ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(U)}function R(){return{type:"blockquote",children:[]}}function N(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function He(){return{type:"emphasis",children:[]}}function St(){return{type:"heading",depth:0,children:[]}}function la(){return{type:"break"}}function jt(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function wt(){return{type:"link",title:null,url:"",children:[]}}function it(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function Or(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function qi(){return{type:"paragraph",children:[]}}function Ys(){return{type:"strong",children:[]}}function Gh(){return{type:"text",value:""}}function Qs(){return{type:"thematicBreak"}}}function jo(e){return{line:e.line,column:e.column,offset:e.offset}}function VD(e,t){let a=-1;for(;++a<t.length;){let n=t[a];Array.isArray(n)?VD(e,n):O9(e,n)}}function O9(e,t){let a;for(a in t)if(HD.call(t,a))switch(a){case"canContainEols":{let n=t[a];n&&e[a].push(...n);break}case"transforms":{let n=t[a];n&&e[a].push(...n);break}case"enter":case"exit":{let n=t[a];n&&Object.assign(e[a],n);break}}}function ZD(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+No({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+No({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+No({start:t.start,end:t.end})+") is still open")}function Th(e){let t=this;t.parser=a;function a(n){return FI(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GD(e,t){let a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,a),e.applyData(t,a)}function WD(e,t){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
75
|
+
`}]}function JD(e,t){let a=t.value?t.value+`
|
|
76
|
+
`:"",n={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(n.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:a}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function XD(e,t){let a={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function KD(e,t){let a={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function YD(e,t){let a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),r=br(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),i,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),i=e.footnoteOrder.length):i=o+1,l+=1,e.footnoteCounts.set(n,l);let s={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+r,id:a+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function QD(e,t){let a={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ez(e,t){if(e.options.allowDangerousHtml){let a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function Lh(e,t){let a=t.referenceType,n="]";if(a==="collapsed"?n+="[]":a==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});let i=r[r.length-1];return i&&i.type==="text"?i.value+=n:r.push({type:"text",value:n}),r}function tz(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return Lh(e,t);let r={src:br(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function az(e,t){let a={src:br(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);let n={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,n),e.applyData(t,n)}function rz(e,t){let a={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,a);let n={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(t,n),e.applyData(t,n)}function nz(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return Lh(e,t);let r={href:br(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function oz(e,t){let a={href:br(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);let n={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iz(e,t,a){let n=e.all(t),r=a?R9(a):lz(t),o={},i=[];if(typeof t.checked=="boolean"){let c=n[0],d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<n.length;){let c=n[l];(r||l!==0||c.type!=="element"||c.tagName!=="p")&&i.push({type:"text",value:`
|
|
77
|
+
`}),c.type==="element"&&c.tagName==="p"&&!r?i.push(...c.children):i.push(c)}let s=n[n.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&i.push({type:"text",value:`
|
|
78
|
+
`});let u={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,u),e.applyData(t,u)}function R9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let a=e.children,n=-1;for(;!t&&++n<a.length;)t=lz(a[n])}return t}function lz(e){let t=e.spread;return t??e.children.length>1}function sz(e,t){let a={},n=e.all(t),r=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++r<n.length;){let i=n[r];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:a,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function uz(e,t){let a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function cz(e,t){let a={type:"root",children:e.wrap(e.all(t))};return e.patch(t,a),e.applyData(t,a)}function dz(e,t){let a={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function fz(e,t){let a=e.all(t),n=a.shift(),r=[];if(n){let i={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],i),r.push(i)}if(a.length>0){let i={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},l=js(t.children[1]),s=mh(t.children[t.children.length-1]);l&&s&&(i.position={start:l,end:s}),r.push(i)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function pz(e,t,a){let n=a?a.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",i=a&&a.type==="table"?a.align:void 0,l=i?i.length:t.children.length,s=-1,u=[];for(;++s<l;){let d=t.children[s],p={},f=i?i[s]:void 0;f&&(p.align=f);let m={type:"element",tagName:o,properties:p,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function mz(e,t){let a={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gz(e){let t=String(e),a=/\r?\n|\r/g,n=a.exec(t),r=0,o=[];for(;n;)o.push(hz(t.slice(r,n.index),r>0,!0),n[0]),r=n.index+n[0].length,n=a.exec(t);return o.push(hz(t.slice(r),r>0,!1)),o.join("")}function hz(e,t,a){let n=0,r=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(a){let o=e.codePointAt(r-1);for(;o===9||o===32;)r--,o=e.codePointAt(r-1)}return r>n?e.slice(n,r):""}function vz(e,t){let a={type:"text",value:gz(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function yz(e,t){let a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}var xz={blockquote:GD,break:WD,code:JD,delete:XD,emphasis:KD,footnoteReference:YD,heading:QD,html:ez,imageReference:tz,image:az,inlineCode:rz,linkReference:nz,link:oz,listItem:iz,list:sz,paragraph:uz,root:cz,strong:dz,table:fz,tableCell:mz,tableRow:pz,text:vz,thematicBreak:yz,toml:Ah,yaml:Ah,definition:Ah,footnoteDefinition:Ah};function Ah(){}var bz=typeof self=="object"?self:globalThis,F9=(e,t)=>{let a=(r,o)=>(e.set(o,r),r),n=r=>{if(e.has(r))return e.get(r);let[o,i]=t[r];switch(o){case 0:case-1:return a(i,r);case 1:{let l=a([],r);for(let s of i)l.push(n(s));return l}case 2:{let l=a({},r);for(let[s,u]of i)l[n(s)]=n(u);return l}case 3:return a(new Date(i),r);case 4:{let{source:l,flags:s}=i;return a(new RegExp(l,s),r)}case 5:{let l=a(new Map,r);for(let[s,u]of i)l.set(n(s),n(u));return l}case 6:{let l=a(new Set,r);for(let s of i)l.add(n(s));return l}case 7:{let{name:l,message:s}=i;return a(new bz[l](s),r)}case 8:return a(BigInt(i),r);case"BigInt":return a(Object(BigInt(i)),r);case"ArrayBuffer":return a(new Uint8Array(i).buffer,i);case"DataView":{let{buffer:l}=new Uint8Array(i);return a(new DataView(l),i)}}return a(new bz[o](i),r)};return n},qI=e=>F9(new Map,e)(0);var qs="",{toString:j9}={},{keys:B9}=Object,wd=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let a=j9.call(e).slice(8,-1);switch(a){case"Array":return[1,qs];case"Object":return[2,qs];case"Date":return[3,qs];case"RegExp":return[4,qs];case"Map":return[5,qs];case"Set":return[6,qs];case"DataView":return[1,a]}return a.includes("Array")?[1,a]:a.includes("Error")?[7,a]:[2,a]},$h=([e,t])=>e===0&&(t==="function"||t==="symbol"),q9=(e,t,a,n)=>{let r=(i,l)=>{let s=n.push(i)-1;return a.set(l,s),s},o=i=>{if(a.has(i))return a.get(i);let[l,s]=wd(i);switch(l){case 0:{let c=i;switch(s){case"bigint":l=8,c=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return r([-1],i)}return r([l,c],i)}case 1:{if(s){let p=i;return s==="DataView"?p=new Uint8Array(i.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(i)),r([s,[...p]],i)}let c=[],d=r([l,c],i);for(let p of i)c.push(o(p));return d}case 2:{if(s)switch(s){case"BigInt":return r([s,i.toString()],i);case"Boolean":case"Number":case"String":return r([s,i.valueOf()],i)}if(t&&"toJSON"in i)return o(i.toJSON());let c=[],d=r([l,c],i);for(let p of B9(i))(e||!$h(wd(i[p])))&&c.push([o(p),o(i[p])]);return d}case 3:return r([l,i.toISOString()],i);case 4:{let{source:c,flags:d}=i;return r([l,{source:c,flags:d}],i)}case 5:{let c=[],d=r([l,c],i);for(let[p,f]of i)(e||!($h(wd(p))||$h(wd(f))))&&c.push([o(p),o(f)]);return d}case 6:{let c=[],d=r([l,c],i);for(let p of i)(e||!$h(wd(p)))&&c.push(o(p));return d}}let{message:u}=i;return r([l,{name:s,message:u}],i)};return o},ZI=(e,{json:t,lossy:a}={})=>{let n=[];return q9(!(t||a),!!t,new Map,n)(e),n};var Zs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?qI(ZI(e,t)):structuredClone(e):(e,t)=>qI(ZI(e,t));function Z9(e,t){let a=[{type:"text",value:"\u21A9"}];return t>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),a}function H9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kz(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||Z9,n=e.options.footnoteBackLabel||H9,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],s=-1;for(;++s<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;let c=e.all(u),d=String(u.identifier).toUpperCase(),p=br(d.toLowerCase()),f=0,m=[],w=e.footnoteCounts.get(d);for(;w!==void 0&&++f<=w;){m.length>0&&m.push({type:"text",value:" "});let x=typeof a=="string"?a:a(s,f);typeof x=="string"&&(x={type:"text",value:x}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(s,f),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}let C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){let x=C.children[C.children.length-1];x&&x.type==="text"?x.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...m)}else c.push(...m);let g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,g),l.push(g)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Zs(i),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
79
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
80
|
+
`}]}}var Bo=(function(e){if(e==null)return J9;if(typeof e=="function")return Mh(e);if(typeof e=="object")return Array.isArray(e)?V9(e):G9(e);if(typeof e=="string")return W9(e);throw new Error("Expected function, string, or object as test")});function V9(e){let t=[],a=-1;for(;++a<e.length;)t[a]=Bo(e[a]);return Mh(n);function n(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function G9(e){let t=e;return Mh(a);function a(n){let r=n,o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function W9(e){return Mh(t);function t(a){return a&&a.type===e}}function Mh(e){return t;function t(a,n,r){return!!(X9(a)&&e.call(this,a,typeof n=="number"?n:void 0,r||void 0))}}function J9(){return!0}function X9(e){return e!==null&&typeof e=="object"&&"type"in e}var Cz=[],Dh=!0,Pi=!1,zh="skip";function _d(e,t,a,n){let r;typeof t=="function"&&typeof a!="function"?(n=a,a=t):r=t;let o=Bo(r),i=n?-1:1;l(e,void 0,[])();function l(s,u,c){let d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){let f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Cz,m,w,C;if((!t||o(s,u,c[c.length-1]||void 0))&&(f=K9(a(s,c)),f[0]===Pi))return f;if("children"in s&&s.children){let g=s;if(g.children&&f[0]!==zh)for(w=(n?g.children.length:-1)+i,C=c.concat(g);w>-1&&w<g.children.length;){let x=g.children[w];if(m=l(x,w,C)(),m[0]===Pi)return m;w=typeof m[1]=="number"?m[1]:w+i}}return f}}}function K9(e){return Array.isArray(e)?e:typeof e=="number"?[Dh,e]:e==null?Cz:[e]}function Ni(e,t,a,n){let r,o,i;typeof t=="function"&&typeof a!="function"?(o=void 0,i=t,r=a):(o=t,i=a,r=n),_d(e,o,l,r);function l(s,u){let c=u[u.length-1],d=c?c.children.indexOf(s):void 0;return i(s,d,c)}}var HI={}.hasOwnProperty,Y9={};function Lz(e,t){let a=t||Y9,n=new Map,r=new Map,o=new Map,i={...xz,...a.handlers},l={all:u,applyData:e8,definitionById:n,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:i,one:s,options:a,patch:Q9,wrap:a8};return Ni(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let d=c.type==="definition"?n:r,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),l;function s(c,d){let p=c.type,f=l.handlers[p];if(HI.call(l.handlers,p)&&f)return f(l,c,d);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in c){let{children:w,...C}=c,g=Zs(C);return g.children=l.all(c),g}return Zs(c)}return(l.options.unknownHandler||t8)(l,c,d)}function u(c){let d=[];if("children"in c){let p=c.children,f=-1;for(;++f<p.length;){let m=l.one(p[f],c);if(m){if(f&&p[f-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Tz(m.value)),!Array.isArray(m)&&m.type==="element")){let w=m.children[0];w&&w.type==="text"&&(w.value=Tz(w.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function Q9(e,t){e.position&&(t.position=xI(e))}function e8(e,t){let a=t;if(e&&e.data){let n=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(a.type==="element")a.tagName=n;else{let i="children"in a?a.children:[a];a={type:"element",tagName:n,properties:{},children:i}}a.type==="element"&&o&&Object.assign(a.properties,Zs(o)),"children"in a&&a.children&&r!==null&&r!==void 0&&(a.children=r)}return a}function t8(e,t){let a=t.data||{},n="value"in t&&!(HI.call(a,"hProperties")||HI.call(a,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function a8(e,t){let a=[],n=-1;for(t&&a.push({type:"text",value:`
|
|
81
|
+
`});++n<e.length;)n&&a.push({type:"text",value:`
|
|
82
|
+
`}),a.push(e[n]);return t&&e.length>0&&a.push({type:"text",value:`
|
|
83
|
+
`}),a}function Tz(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function Oh(e,t){let a=Lz(e,t),n=a.one(e,void 0),r=kz(a),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return r&&("children"in o,o.children.push({type:"text",value:`
|
|
84
|
+
`},r)),o}function Rh(e,t){return e&&"run"in e?async function(a,n){let r=Oh(a,{file:n,...t});await e.run(r,n)}:function(a,n){return Oh(a,{file:n,...e||t})}}function VI(e){if(e)throw e}var Uh=ne(Pz(),1);function Id(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function GI(){let e=[],t={run:a,use:n};return t;function a(...r){let o=-1,i=r.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);l(null,...r);function l(s,...u){let c=e[++o],d=-1;if(s){i(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?Nz(c,l)(...u):i(null,...u)}}function n(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Nz(e,t){let a;return n;function n(...i){let l=e.length>i.length,s;l&&i.push(r);try{s=e.apply(this,i)}catch(u){let c=u;if(l&&a)throw c;return r(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(i,...l){a||(a=!0,t(i,...l))}function o(i){r(null,i)}}var Dr={basename:r8,dirname:n8,extname:o8,join:i8,sep:"/"};function r8(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');kd(e);let a=0,n=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else n<0&&(o=!0,n=r+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let i=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else i<0&&(o=!0,i=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(n=r):(l=-1,n=i));return a===n?n=i:n<0&&(n=e.length),e.slice(a,n)}function n8(e){if(kd(e),e.length===0)return".";let t=-1,a=e.length,n;for(;--a;)if(e.codePointAt(a)===47){if(n){t=a;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function o8(e){kd(e);let t=e.length,a=-1,n=0,r=-1,o=0,i;for(;t--;){let l=e.codePointAt(t);if(l===47){if(i){n=t+1;break}continue}a<0&&(i=!0,a=t+1),l===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||a<0||o===0||o===1&&r===a-1&&r===n+1?"":e.slice(r,a)}function i8(...e){let t=-1,a;for(;++t<e.length;)kd(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":l8(a)}function l8(e){kd(e);let t=e.codePointAt(0)===47,a=s8(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function s8(e,t){let a="",n=0,r=-1,o=0,i=-1,l,s;for(;++i<=e.length;){if(i<e.length)l=e.codePointAt(i);else{if(l===47)break;l=47}if(l===47){if(!(r===i-1||o===1))if(r!==i-1&&o===2){if(a.length<2||n!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(s=a.lastIndexOf("/"),s!==a.length-1){s<0?(a="",n=0):(a=a.slice(0,s),n=a.length-1-a.lastIndexOf("/")),r=i,o=0;continue}}else if(a.length>0){a="",n=0,r=i,o=0;continue}}t&&(a=a.length>0?a+"/..":"..",n=2)}else a.length>0?a+="/"+e.slice(r+1,i):a=e.slice(r+1,i),n=i-r-1;r=i,o=0}else l===46&&o>-1?o++:o=-1}return a}function kd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Uz={cwd:u8};function u8(){return"/"}function Hs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Fz(e){if(typeof e=="string")e=new URL(e);else if(!Hs(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return c8(e)}function c8(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,a=-1;for(;++a<t.length;)if(t.codePointAt(a)===37&&t.codePointAt(a+1)===50){let n=t.codePointAt(a+2);if(n===70||n===102){let r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}var WI=["history","path","basename","stem","extname","dirname"],Ui=class{constructor(t){let a;t?Hs(t)?a={path:t}:typeof t=="string"||d8(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":Uz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<WI.length;){let o=WI[n];o in a&&a[o]!==void 0&&a[o]!==null&&(this[o]=o==="history"?[...a[o]]:a[o])}let r;for(r in a)WI.includes(r)||(this[r]=a[r])}get basename(){return typeof this.path=="string"?Dr.basename(this.path):void 0}set basename(t){XI(t,"basename"),JI(t,"basename"),this.path=Dr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Dr.dirname(this.path):void 0}set dirname(t){jz(this.basename,"dirname"),this.path=Dr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Dr.extname(this.path):void 0}set extname(t){if(JI(t,"extname"),jz(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hs(t)&&(t=Fz(t)),XI(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Dr.basename(this.path,this.extname):void 0}set stem(t){XI(t,"stem"),JI(t,"stem"),this.path=Dr.join(this.dirname||"",t+(this.extname||""))}fail(t,a,n){let r=this.message(t,a,n);throw r.fatal=!0,r}info(t,a,n){let r=this.message(t,a,n);return r.fatal=void 0,r}message(t,a,n){let r=new Mt(t,a,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function JI(e,t){if(e&&e.includes(Dr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Dr.sep+"`")}function XI(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function jz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function d8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Bz=(function(e){let n=this.constructor.prototype,r=n[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,n),o});var f8={}.hasOwnProperty,ek=class e extends Bz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=GI()}copy(){let t=new e,a=-1;for(;++a<this.attachers.length;){let n=this.attachers[a];t.use(...n)}return t.data((0,Uh.default)(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(QI("data",this.frozen),this.namespace[t]=a,this):f8.call(this.namespace,t)&&this.namespace[t]||void 0:t?(QI("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[a,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=a.call(t,...n);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let a=Nh(t),n=this.parser||this.Parser;return KI("parse",n),n(String(a),a)}process(t,a){let n=this;return this.freeze(),KI("process",this.parser||this.Parser),YI("process",this.compiler||this.Compiler),a?r(void 0,a):new Promise(r);function r(o,i){let l=Nh(t),s=n.parse(l);n.run(s,l,function(c,d,p){if(c||!d||!p)return u(c);let f=d,m=n.stringify(f,p);m8(m)?p.value=m:p.result=m,u(c,p)});function u(c,d){c||!d?i(c):o?o(d):a(void 0,d)}}}processSync(t){let a=!1,n;return this.freeze(),KI("processSync",this.parser||this.Parser),YI("processSync",this.compiler||this.Compiler),this.process(t,r),Zz("processSync","process",a),n;function r(o,i){a=!0,VI(o),n=i}}run(t,a,n){qz(t),this.freeze();let r=this.transformers;return!n&&typeof a=="function"&&(n=a,a=void 0),n?o(void 0,n):new Promise(o);function o(i,l){let s=Nh(a);r.run(t,s,u);function u(c,d,p){let f=d||t;c?l(c):i?i(f):n(void 0,f,p)}}}runSync(t,a){let n=!1,r;return this.run(t,a,o),Zz("runSync","run",n),r;function o(i,l){VI(i),r=l,n=!0}}stringify(t,a){this.freeze();let n=Nh(a),r=this.compiler||this.Compiler;return YI("stringify",r),qz(t),r(t,n)}use(t,...a){let n=this.attachers,r=this.namespace;if(QI("use",this.frozen),t!=null)if(typeof t=="function")s(t,a);else if(typeof t=="object")Array.isArray(t)?l(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...d]=u;s(c,d)}else i(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function i(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(r.settings=(0,Uh.default)(!0,r.settings,u.settings))}function l(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,p=-1;for(;++d<n.length;)if(n[d][0]===u){p=d;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[f,...m]=c,w=n[p][1];Id(w)&&Id(f)&&(f=(0,Uh.default)(!0,w,f)),n[p]=[u,f,...m]}}}},tk=new ek().freeze();function KI(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function YI(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function QI(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qz(e){if(!Id(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zz(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Nh(e){return p8(e)?e:new Ui(e)}function p8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function m8(e){return typeof e=="string"||h8(e)}function h8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var g8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Hz=[],Vz={allowDangerousHtml:!0},v8=/^(https?|ircs?|mailto|xmpp)$/i,y8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ak(e){let t=x8(e),a=b8(e);return S8(t.runSync(t.parse(a),a),e)}function x8(e){let t=e.rehypePlugins||Hz,a=e.remarkPlugins||Hz,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Vz}:Vz;return tk().use(Th).use(a).use(Rh,n).use(t)}function b8(e){let t=e.children||"",a=new Ui;return typeof t=="string"?a.value=t:(""+t,void 0),a}function S8(e,t){let a=t.allowedElements,n=t.allowElement,r=t.components,o=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||Wz;for(let c of y8)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+g8+c.id,void 0);return a&&o&&void 0,Ni(e,u),wI(e,{Fragment:Vs.Fragment,components:r,ignoreInvalidStyle:!0,jsx:Vs.jsx,jsxs:Vs.jsxs,passKeys:!0,passNode:!0});function u(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return i?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in gd)if(Object.hasOwn(gd,f)&&Object.hasOwn(c.properties,f)){let m=c.properties[f],w=gd[f];(w===null||w.includes(c.tagName))&&(c.properties[f]=s(String(m||""),f,c))}}if(c.type==="element"){let f=a?!a.includes(c.tagName):o?o.includes(c.tagName):!1;if(!f&&n&&typeof d=="number"&&(f=!n(c,d,p)),f&&p&&typeof d=="number")return l&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function Wz(e){let t=e.indexOf(":"),a=e.indexOf("?"),n=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||a!==-1&&t>a||n!==-1&&t>n||v8.test(e.slice(0,t))?e:""}function rk(e,t){let a=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,r=a.indexOf(t);for(;r!==-1;)n++,r=a.indexOf(t,r+t.length);return n}function nk(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ok(e,t,a){let r=Bo((a||{}).ignore||[]),o=w8(t),i=-1;for(;++i<o.length;)_d(e,"text",l);function l(u,c){let d=-1,p;for(;++d<c.length;){let f=c[d],m=p?p.children:void 0;if(r(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return s(u,c)}function s(u,c){let d=c[c.length-1],p=o[i][0],f=o[i][1],m=0,C=d.children.indexOf(u),g=!1,x=[];p.lastIndex=0;let h=p.exec(u.value);for(;h;){let b=h.index,L={index:h.index,input:h.input,stack:[...c,u]},y=f(...h,L);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?p.lastIndex=b+1:(m!==b&&x.push({type:"text",value:u.value.slice(m,b)}),Array.isArray(y)?x.push(...y):y&&x.push(y),m=b+h[0].length,g=!0),!p.global)break;h=p.exec(u.value)}return g?(m<u.value.length&&x.push({type:"text",value:u.value.slice(m)}),d.children.splice(C,1,...x)):x=[u],C+x.length}}function w8(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let a=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<a.length;){let r=a[n];t.push([_8(r[0]),I8(r[1])])}return t}function _8(e){return typeof e=="string"?new RegExp(nk(e),"g"):e}function I8(e){return typeof e=="function"?e:function(){return e}}var ik="phrasing",lk=["autolink","link","image","label"];function uk(){return{transforms:[E8],enter:{literalAutolink:k8,literalAutolinkEmail:sk,literalAutolinkHttp:sk,literalAutolinkWww:sk},exit:{literalAutolink:A8,literalAutolinkEmail:L8,literalAutolinkHttp:C8,literalAutolinkWww:T8}}}function ck(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ik,notInConstruct:lk},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ik,notInConstruct:lk},{character:":",before:"[ps]",after:"\\/",inConstruct:ik,notInConstruct:lk}]}}function k8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function sk(e){this.config.enter.autolinkProtocol.call(this,e)}function C8(e){this.config.exit.autolinkProtocol.call(this,e)}function T8(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function L8(e){this.config.exit.autolinkEmail.call(this,e)}function A8(e){this.exit(e)}function E8(e){ok(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$8],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,M8]],{ignore:["link","linkReference"]})}function $8(e,t,a,n,r){let o="";if(!Jz(r)||(/^w/i.test(t)&&(a=t+a,t="",o="http://"),!D8(a)))return!1;let i=z8(a+n);if(!i[0])return!1;let l={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function M8(e,t,a,n){return!Jz(n,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+a,children:[{type:"text",value:t+"@"+a}]}}function D8(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function z8(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let a=t[0],n=a.indexOf(")"),r=rk(e,"("),o=rk(e,")");for(;n!==-1&&r>o;)e+=a.slice(0,n+1),a=a.slice(n+1),n=a.indexOf(")"),o++;return[e,a]}function Jz(e,t){let a=e.input.charCodeAt(e.index-1);return(e.index===0||en(a)||Di(a))&&(!t||a!==47)}Xz.peek=q8;function O8(){this.buffer()}function R8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function P8(){this.buffer()}function N8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function U8(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=da(this.sliceSerialize(e)).toLowerCase(),a.label=t}function F8(e){this.exit(e)}function j8(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=da(this.sliceSerialize(e)).toLowerCase(),a.label=t}function B8(e){this.exit(e)}function q8(){return"["}function Xz(e,t,a,n){let r=a.createTracker(n),o=r.move("[^"),i=a.enter("footnoteReference"),l=a.enter("reference");return o+=r.move(a.safe(a.associationId(e),{after:"]",before:o})),l(),i(),o+=r.move("]"),o}function dk(){return{enter:{gfmFootnoteCallString:O8,gfmFootnoteCall:R8,gfmFootnoteDefinitionLabelString:P8,gfmFootnoteDefinition:N8},exit:{gfmFootnoteCallString:U8,gfmFootnoteCall:F8,gfmFootnoteDefinitionLabelString:j8,gfmFootnoteDefinition:B8}}}function fk(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:a,footnoteReference:Xz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(n,r,o,i){let l=o.createTracker(i),s=l.move("[^"),u=o.enter("footnoteDefinition"),c=o.enter("label");return s+=l.move(o.safe(o.associationId(n),{before:s,after:"]"})),c(),s+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),s+=l.move((t?`
|
|
85
|
+
`:" ")+o.indentLines(o.containerFlow(n,l.current()),t?Kz:Z8))),u(),s}}function Z8(e,t,a){return t===0?e:Kz(e,t,a)}function Kz(e,t,a){return(a?"":" ")+e}var H8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Yz.peek=W8;function pk(){return{canContainEols:["delete"],enter:{strikethrough:V8},exit:{strikethrough:G8}}}function mk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:H8}],handlers:{delete:Yz}}}function V8(e){this.enter({type:"delete",children:[]},e)}function G8(e){this.exit(e)}function Yz(e,t,a,n){let r=a.createTracker(n),o=a.enter("strikethrough"),i=r.move("~~");return i+=a.containerPhrasing(e,{...r.current(),before:i,after:"~"}),i+=r.move("~~"),o(),i}function W8(){return"~"}function J8(e){return e.length}function eO(e,t){let a=t||{},n=(a.align||[]).concat(),r=a.stringLength||J8,o=[],i=[],l=[],s=[],u=0,c=-1;for(;++c<e.length;){let w=[],C=[],g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){let x=X8(e[c][g]);if(a.alignDelimiters!==!1){let h=r(x);C[g]=h,(s[g]===void 0||h>s[g])&&(s[g]=h)}w.push(x)}i[c]=w,l[c]=C}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<u;)o[d]=Qz(n[d]);else{let w=Qz(n);for(;++d<u;)o[d]=w}d=-1;let p=[],f=[];for(;++d<u;){let w=o[d],C="",g="";w===99?(C=":",g=":"):w===108?C=":":w===114&&(g=":");let x=a.alignDelimiters===!1?1:Math.max(1,s[d]-C.length-g.length),h=C+"-".repeat(x)+g;a.alignDelimiters!==!1&&(x=C.length+x+g.length,x>s[d]&&(s[d]=x),f[d]=x),p[d]=h}i.splice(1,0,p),l.splice(1,0,f),c=-1;let m=[];for(;++c<i.length;){let w=i[c],C=l[c];d=-1;let g=[];for(;++d<u;){let x=w[d]||"",h="",b="";if(a.alignDelimiters!==!1){let L=s[d]-(C[d]||0),y=o[d];y===114?h=" ".repeat(L):y===99?L%2?(h=" ".repeat(L/2+.5),b=" ".repeat(L/2-.5)):(h=" ".repeat(L/2),b=h):b=" ".repeat(L)}a.delimiterStart!==!1&&!d&&g.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&x==="")&&(a.delimiterStart!==!1||d)&&g.push(" "),a.alignDelimiters!==!1&&g.push(h),g.push(x),a.alignDelimiters!==!1&&g.push(b),a.padding!==!1&&g.push(" "),(a.delimiterEnd!==!1||d!==u-1)&&g.push("|")}m.push(a.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return m.join(`
|
|
86
|
+
`)}function X8(e){return e==null?"":String(e)}function Qz(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function tO(e,t,a,n){let r=a.enter("blockquote"),o=a.createTracker(n);o.move("> "),o.shift(2);let i=a.indentLines(a.containerFlow(e,o.current()),K8);return r(),i}function K8(e,t,a){return">"+(a?"":" ")+e}function rO(e,t){return aO(e,t.inConstruct,!0)&&!aO(e,t.notInConstruct,!1)}function aO(e,t,a){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return a;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function hk(e,t,a,n){let r=-1;for(;++r<a.unsafe.length;)if(a.unsafe[r].character===`
|
|
87
|
+
`&&rO(a.stack,a.unsafe[r]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
88
|
+
`}function nO(e,t){let a=String(e),n=a.indexOf(t),r=n,o=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===r?++o>i&&(i=o):o=1,r=n+t.length,n=a.indexOf(t,r);return i}function oO(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iO(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function lO(e,t,a,n){let r=iO(a),o=e.value||"",i=r==="`"?"GraveAccent":"Tilde";if(oO(e,a)){let d=a.enter("codeIndented"),p=a.indentLines(o,Y8);return d(),p}let l=a.createTracker(n),s=r.repeat(Math.max(nO(o,r)+1,3)),u=a.enter("codeFenced"),c=l.move(s);if(e.lang){let d=a.enter(`codeFencedLang${i}`);c+=l.move(a.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){let d=a.enter(`codeFencedMeta${i}`);c+=l.move(" "),c+=l.move(a.safe(e.meta,{before:c,after:`
|
|
89
|
+
`,encode:["`"],...l.current()})),d()}return c+=l.move(`
|
|
90
|
+
`),o&&(c+=l.move(o+`
|
|
91
|
+
`)),c+=l.move(s),u(),c}function Y8(e,t,a){return(a?"":" ")+e}function Gs(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function sO(e,t,a,n){let r=Gs(a),o=r==='"'?"Quote":"Apostrophe",i=a.enter("definition"),l=a.enter("label"),s=a.createTracker(n),u=s.move("[");return u+=s.move(a.safe(a.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=a.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(a.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=a.enter("destinationRaw"),u+=s.move(a.safe(e.url,{before:u,after:e.title?" ":`
|
|
92
|
+
`,...s.current()}))),l(),e.title&&(l=a.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(a.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),i(),u}function uO(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function qo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ws(e,t,a){let n=Un(e),r=Un(t);return n===void 0?r===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}gk.peek=Q8;function gk(e,t,a,n){let r=uO(a),o=a.enter("emphasis"),i=a.createTracker(n),l=i.move(r),s=i.move(a.containerPhrasing(e,{after:r,before:l,...i.current()})),u=s.charCodeAt(0),c=Ws(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=qo(u)+s.slice(1));let d=s.charCodeAt(s.length-1),p=Ws(n.after.charCodeAt(0),d,r);p.inside&&(s=s.slice(0,-1)+qo(d));let f=i.move(r);return o(),a.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},l+s+f}function Q8(e,t,a){return a.options.emphasis||"*"}function cO(e,t){let a=!1;return Ni(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return a=!0,Pi}),!!((!e.depth||e.depth<3)&&$i(e)&&(t.options.setext||a))}function dO(e,t,a,n){let r=Math.max(Math.min(6,e.depth||1),1),o=a.createTracker(n);if(cO(e,a)){let c=a.enter("headingSetext"),d=a.enter("phrasing"),p=a.containerPhrasing(e,{...o.current(),before:`
|
|
93
|
+
`,after:`
|
|
94
|
+
`});return d(),c(),p+`
|
|
95
|
+
`+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
96
|
+
`))+1))}let i="#".repeat(r),l=a.enter("headingAtx"),s=a.enter("phrasing");o.move(i+" ");let u=a.containerPhrasing(e,{before:"# ",after:`
|
|
97
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=qo(u.charCodeAt(0))+u.slice(1)),u=u?i+" "+u:i,a.options.closeAtx&&(u+=" "+i),s(),l(),u}vk.peek=eZ;function vk(e){return e.value||""}function eZ(){return"<"}yk.peek=tZ;function yk(e,t,a,n){let r=Gs(a),o=r==='"'?"Quote":"Apostrophe",i=a.enter("image"),l=a.enter("label"),s=a.createTracker(n),u=s.move("![");return u+=s.move(a.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=a.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(a.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=a.enter("destinationRaw"),u+=s.move(a.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=a.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(a.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),u+=s.move(")"),i(),u}function tZ(){return"!"}xk.peek=aZ;function xk(e,t,a,n){let r=e.referenceType,o=a.enter("imageReference"),i=a.enter("label"),l=a.createTracker(n),s=l.move("!["),u=a.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),i();let c=a.stack;a.stack=[],i=a.enter("reference");let d=a.safe(a.associationId(e),{before:s,after:"]",...l.current()});return i(),a.stack=c,o(),r==="full"||!u||u!==d?s+=l.move(d+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function aZ(){return"!"}bk.peek=rZ;function bk(e,t,a){let n=e.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<a.unsafe.length;){let i=a.unsafe[o],l=a.compilePattern(i),s;if(i.atBreak)for(;s=l.exec(n);){let u=s.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(s.index+1)}}return r+n+r}function rZ(){return"`"}function Sk(e,t){let a=$i(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}wk.peek=nZ;function wk(e,t,a,n){let r=Gs(a),o=r==='"'?"Quote":"Apostrophe",i=a.createTracker(n),l,s;if(Sk(e,a)){let c=a.stack;a.stack=[],l=a.enter("autolink");let d=i.move("<");return d+=i.move(a.containerPhrasing(e,{before:d,after:">",...i.current()})),d+=i.move(">"),l(),a.stack=c,d}l=a.enter("link"),s=a.enter("label");let u=i.move("[");return u+=i.move(a.containerPhrasing(e,{before:u,after:"](",...i.current()})),u+=i.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=a.enter("destinationLiteral"),u+=i.move("<"),u+=i.move(a.safe(e.url,{before:u,after:">",...i.current()})),u+=i.move(">")):(s=a.enter("destinationRaw"),u+=i.move(a.safe(e.url,{before:u,after:e.title?" ":")",...i.current()}))),s(),e.title&&(s=a.enter(`title${o}`),u+=i.move(" "+r),u+=i.move(a.safe(e.title,{before:u,after:r,...i.current()})),u+=i.move(r),s()),u+=i.move(")"),l(),u}function nZ(e,t,a){return Sk(e,a)?"<":"["}_k.peek=oZ;function _k(e,t,a,n){let r=e.referenceType,o=a.enter("linkReference"),i=a.enter("label"),l=a.createTracker(n),s=l.move("["),u=a.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),i();let c=a.stack;a.stack=[],i=a.enter("reference");let d=a.safe(a.associationId(e),{before:s,after:"]",...l.current()});return i(),a.stack=c,o(),r==="full"||!u||u!==d?s+=l.move(d+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function oZ(){return"["}function Js(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function fO(e){let t=Js(e),a=e.options.bulletOther;if(!a)return t==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+a+"`) to be different");return a}function pO(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Fh(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function mO(e,t,a,n){let r=a.enter("list"),o=a.bulletCurrent,i=e.ordered?pO(a):Js(a),l=e.ordered?i==="."?")":".":fO(a),s=t&&a.bulletLastUsed?i===a.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&c&&(!c.children||!c.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(s=!0),Fh(a)===i&&c){let d=-1;for(;++d<e.children.length;){let p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(i=l),a.bulletCurrent=i;let u=a.containerFlow(e,n);return a.bulletLastUsed=i,a.bulletCurrent=o,r(),u}function hO(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function gO(e,t,a,n){let r=hO(a),o=a.bulletCurrent||Js(a);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(a.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let i=o.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=a.createTracker(n);l.move(o+" ".repeat(i-o.length)),l.shift(i);let s=a.enter("listItem"),u=a.indentLines(a.containerFlow(e,l.current()),c);return s(),u;function c(d,p,f){return p?(f?"":" ".repeat(i))+d:(f?o:o+" ".repeat(i-o.length))+d}}function vO(e,t,a,n){let r=a.enter("paragraph"),o=a.enter("phrasing"),i=a.containerPhrasing(e,n);return o(),r(),i}var Ik=Bo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function yO(e,t,a,n){return(e.children.some(function(i){return Ik(i)})?a.containerPhrasing:a.containerFlow).call(a,e,n)}function xO(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}kk.peek=iZ;function kk(e,t,a,n){let r=xO(a),o=a.enter("strong"),i=a.createTracker(n),l=i.move(r+r),s=i.move(a.containerPhrasing(e,{after:r,before:l,...i.current()})),u=s.charCodeAt(0),c=Ws(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=qo(u)+s.slice(1));let d=s.charCodeAt(s.length-1),p=Ws(n.after.charCodeAt(0),d,r);p.inside&&(s=s.slice(0,-1)+qo(d));let f=i.move(r+r);return o(),a.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},l+s+f}function iZ(e,t,a){return a.options.strong||"*"}function bO(e,t,a,n){return a.safe(e.value,n)}function SO(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function wO(e,t,a){let n=(Fh(a)+(a.options.ruleSpaces?" ":"")).repeat(SO(a));return a.options.ruleSpaces?n.slice(0,-1):n}var Cd={blockquote:tO,break:hk,code:lO,definition:sO,emphasis:gk,hardBreak:hk,heading:dO,html:vk,image:yk,imageReference:xk,inlineCode:bk,link:wk,linkReference:_k,list:mO,listItem:gO,paragraph:vO,root:yO,strong:kk,text:bO,thematicBreak:wO};function Tk(){return{enter:{table:lZ,tableData:_O,tableHeader:_O,tableRow:uZ},exit:{codeText:cZ,table:sZ,tableData:Ck,tableHeader:Ck,tableRow:Ck}}}function lZ(e){let t=e._align;this.enter({type:"table",align:t.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function sZ(e){this.exit(e),this.data.inTable=void 0}function uZ(e){this.enter({type:"tableRow",children:[]},e)}function Ck(e){this.exit(e)}function _O(e){this.enter({type:"tableCell",children:[]},e)}function cZ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,dZ));let a=this.stack[this.stack.length-1];a.type,a.value=t,this.exit(e)}function dZ(e,t){return t==="|"?t:e}function Lk(e){let t=e||{},a=t.tableCellPadding,n=t.tablePipeAlign,r=t.stringLength,o=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
98
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:i,tableCell:s,tableRow:l}};function i(f,m,w,C){return u(c(f,w,C),f.align)}function l(f,m,w,C){let g=d(f,w,C),x=u([g]);return x.slice(0,x.indexOf(`
|
|
99
|
+
`))}function s(f,m,w,C){let g=w.enter("tableCell"),x=w.enter("phrasing"),h=w.containerPhrasing(f,{...C,before:o,after:o});return x(),g(),h}function u(f,m){return eO(f,{align:m,alignDelimiters:n,padding:a,stringLength:r})}function c(f,m,w){let C=f.children,g=-1,x=[],h=m.enter("table");for(;++g<C.length;)x[g]=d(C[g],m,w);return h(),x}function d(f,m,w){let C=f.children,g=-1,x=[],h=m.enter("tableRow");for(;++g<C.length;)x[g]=s(C[g],f,m,w);return h(),x}function p(f,m,w){let C=Cd.inlineCode(f,m,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Ak(){return{exit:{taskListCheckValueChecked:IO,taskListCheckValueUnchecked:IO,paragraph:fZ}}}function Ek(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pZ}}}function IO(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function fZ(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let a=this.stack[this.stack.length-1];a.type;let n=a.children[0];if(n&&n.type==="text"){let r=t.children,o=-1,i;for(;++o<r.length;){let l=r[o];if(l.type==="paragraph"){i=l;break}}i===a&&(n.value=n.value.slice(1),n.value.length===0?a.children.shift():a.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,a.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function pZ(e,t,a,n){let r=e.children[0],o=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=a.createTracker(n);o&&l.move(i);let s=Cd.listItem(e,t,a,{...n,...l.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(c){return c+i}}function $k(){return[uk(),dk(),pk(),Tk(),Ak()]}function Mk(e){return{extensions:[ck(),fk(e),mk(),Lk(e),Ek()]}}var mZ={tokenize:xZ,partial:!0},kO={tokenize:bZ,partial:!0},CO={tokenize:SZ,partial:!0},TO={tokenize:wZ,partial:!0},hZ={tokenize:_Z,partial:!0},LO={name:"wwwAutolink",tokenize:vZ,previous:EO},AO={name:"protocolAutolink",tokenize:yZ,previous:$O},Fn={name:"emailAutolink",tokenize:gZ,previous:MO},an={};function zk(){return{text:an}}var Fi=48;for(;Fi<123;)an[Fi]=Fn,Fi++,Fi===58?Fi=65:Fi===91&&(Fi=97);an[43]=Fn;an[45]=Fn;an[46]=Fn;an[95]=Fn;an[72]=[Fn,AO];an[104]=[Fn,AO];an[87]=[Fn,LO];an[119]=[Fn,LO];function gZ(e,t,a){let n=this,r,o;return i;function i(d){return!Dk(d)||!MO.call(n,n.previous)||Ok(n.events)?a(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return Dk(d)?(e.consume(d),l):d===64?(e.consume(d),s):a(d)}function s(d){return d===46?e.check(hZ,c,u)(d):d===45||d===95||At(d)?(o=!0,e.consume(d),s):c(d)}function u(d){return e.consume(d),r=!0,s}function c(d){return o&&r&&Ht(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):a(d)}}function vZ(e,t,a){let n=this;return r;function r(i){return i!==87&&i!==119||!EO.call(n,n.previous)||Ok(n.events)?a(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mZ,e.attempt(kO,e.attempt(CO,o),a),a)(i))}function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function yZ(e,t,a){let n=this,r="",o=!1;return i;function i(d){return(d===72||d===104)&&$O.call(n,n.previous)&&!Ok(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),l):a(d)}function l(d){if(Ht(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),l;if(d===58){let p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),s}return a(d)}function s(d){return d===47?(e.consume(d),o?u:(o=!0,s)):a(d)}function u(d){return d===null||Mi(d)||$e(d)||en(d)||Di(d)?a(d):e.attempt(kO,e.attempt(CO,c),a)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function xZ(e,t,a){let n=0;return r;function r(i){return(i===87||i===119)&&n<3?(n++,e.consume(i),r):i===46&&n===3?(e.consume(i),o):a(i)}function o(i){return i===null?a(i):t(i)}}function bZ(e,t,a){let n,r,o;return i;function i(u){return u===46||u===95?e.check(TO,s,l)(u):u===null||$e(u)||en(u)||u!==45&&Di(u)?s(u):(o=!0,e.consume(u),i)}function l(u){return u===95?n=!0:(r=n,n=void 0),e.consume(u),i}function s(u){return r||n||!o?a(u):t(u)}}function SZ(e,t){let a=0,n=0;return r;function r(i){return i===40?(a++,e.consume(i),r):i===41&&n<a?o(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(TO,t,o)(i):i===null||$e(i)||en(i)?t(i):(e.consume(i),r)}function o(i){return i===41&&n++,e.consume(i),r}}function wZ(e,t,a){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),o):l===93?(e.consume(l),r):l===60||l===null||$e(l)||en(l)?t(l):a(l)}function r(l){return l===null||l===40||l===91||$e(l)||en(l)?t(l):n(l)}function o(l){return Ht(l)?i(l):a(l)}function i(l){return l===59?(e.consume(l),n):Ht(l)?(e.consume(l),i):a(l)}}function _Z(e,t,a){return n;function n(o){return e.consume(o),r}function r(o){return At(o)?a(o):t(o)}}function EO(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$e(e)}function $O(e){return!Ht(e)}function MO(e){return!(e===47||Dk(e))}function Dk(e){return e===43||e===45||e===46||e===95||At(e)}function Ok(e){let t=e.length,a=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){a=!0;break}if(n._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}var IZ={tokenize:$Z,partial:!0};function Rk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:LZ,continuation:{tokenize:AZ},exit:EZ}},text:{91:{name:"gfmFootnoteCall",tokenize:TZ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kZ,resolveTo:CZ}}}}function kZ(e,t,a){let n=this,r=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i;for(;r--;){let s=n.events[r][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!i||!i._balanced)return a(s);let u=da(n.sliceSerialize({start:i.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?a(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function CZ(e,t){let a=e.length,n;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){n=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[a+1],e[a+2],["enter",r,t],e[a+3],e[a+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(a,e.length-a+1,...s),e}function TZ(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,i;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?a(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!i||d===null||d===91||$e(d))return a(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return r.includes(da(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):a(d)}return $e(d)||(i=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function LZ(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,i=0,l;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):a(m)}function c(m){if(i>999||m===93&&!l||m===null||m===91||$e(m))return a(m);if(m===93){e.exit("chunkString");let w=e.exit("gfmFootnoteDefinitionLabelString");return o=da(n.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return $e(m)||(l=!0),i++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),i++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),r.includes(o)||r.push(o),fe(e,f,"gfmFootnoteDefinitionWhitespace")):a(m)}function f(m){return t(m)}}function AZ(e,t,a){return e.check(tn,t,e.attempt(IZ,t,a))}function EZ(e){e.exit("gfmFootnoteDefinition")}function $Z(e,t,a){let n=this;return fe(e,r,"gfmFootnoteDefinitionIndent",5);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(o):a(o)}}function Pk(e){let a=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:r};return a==null&&(a=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(i,l){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let u=s;for(;u--;)if(i[u][0]==="exit"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[u][1].end.offset-i[u][1].start.offset){i[s][1].type="strikethroughSequence",i[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},i[u][1].start),end:Object.assign({},i[s][1].end)},d={type:"strikethroughText",start:Object.assign({},i[u][1].end),end:Object.assign({},i[s][1].start)},p=[["enter",c,l],["enter",i[u][1],l],["exit",i[u][1],l],["enter",d,l]],f=l.parser.constructs.insideSpan.null;f&&Dt(p,p.length,0,Fo(f,i.slice(u+1,s),l)),Dt(p,p.length,0,[["exit",d,l],["enter",i[s][1],l],["exit",i[s][1],l],["exit",c,l]]),Dt(i,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type="data");return i}function o(i,l,s){let u=this.previous,c=this.events,d=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?s(m):(i.enter("strikethroughSequenceTemporary"),f(m))}function f(m){let w=Un(u);if(m===126)return d>1?s(m):(i.consume(m),d++,f);if(d<2&&!a)return s(m);let C=i.exit("strikethroughSequenceTemporary"),g=Un(m);return C._open=!g||g===2&&!!w,C._close=!w||w===2&&!!g,l(m)}}}var jh=class{constructor(){this.map=[]}add(t,a,n){MZ(this,t,a,n)}consume(t){if(this.map.sort(function(o,i){return o[0]-i[0]}),this.map.length===0)return;let a=this.map.length,n=[];for(;a>0;)a-=1,n.push(t.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),t.length=this.map[a][0];n.push(t.slice()),t.length=0;let r=n.pop();for(;r;){for(let o of r)t.push(o);r=n.pop()}this.map.length=0}};function MZ(e,t,a,n){let r=0;if(!(a===0&&n.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=a,e.map[r][2].push(...n);return}r+=1}e.map.push([t,a,n])}}function DO(e,t){let a=!1,n=[];for(;t<e.length;){let r=e[t];if(a){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(a=!0);t+=1}return n}function Nk(){return{flow:{null:{name:"table",tokenize:DZ,resolveAll:zZ}}}}function DZ(e,t,a){let n=this,r=0,o=0,i;return l;function l(I){let q=n.events.length-1;for(;q>-1;){let P=n.events[q][1].type;if(P==="lineEnding"||P==="linePrefix")q--;else break}let O=q>-1?n.events[q][1].type:null,F=O==="tableHead"||O==="tableRow"?y:s;return F===y&&n.parser.lazy[n.now().line]?a(I):F(I)}function s(I){return e.enter("tableHead"),e.enter("tableRow"),u(I)}function u(I){return I===124||(i=!0,o+=1),c(I)}function c(I){return I===null?a(I):re(I)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),f):a(I):pe(I)?fe(e,c,"whitespace")(I):(o+=1,i&&(i=!1,r+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||$e(I)?(e.exit("data"),c(I)):(e.consume(I),I===92?p:d)}function p(I){return I===92||I===124?(e.consume(I),d):d(I)}function f(I){return n.interrupt=!1,n.parser.lazy[n.now().line]?a(I):(e.enter("tableDelimiterRow"),i=!1,pe(I)?fe(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):m(I))}function m(I){return I===45||I===58?C(I):I===124?(i=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),w):L(I)}function w(I){return pe(I)?fe(e,C,"whitespace")(I):C(I)}function C(I){return I===58?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),g):I===45?(o+=1,g(I)):I===null||re(I)?b(I):L(I)}function g(I){return I===45?(e.enter("tableDelimiterFiller"),x(I)):L(I)}function x(I){return I===45?(e.consume(I),x):I===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),h):(e.exit("tableDelimiterFiller"),h(I))}function h(I){return pe(I)?fe(e,b,"whitespace")(I):b(I)}function b(I){return I===124?m(I):I===null||re(I)?!i||r!==o?L(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):L(I)}function L(I){return a(I)}function y(I){return e.enter("tableRow"),_(I)}function _(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),_):I===null||re(I)?(e.exit("tableRow"),t(I)):pe(I)?fe(e,_,"whitespace")(I):(e.enter("data"),S(I))}function S(I){return I===null||I===124||$e(I)?(e.exit("data"),_(I)):(e.consume(I),I===92?T:S)}function T(I){return I===92||I===124?(e.consume(I),S):S(I)}}function zZ(e,t){let a=-1,n=!0,r=0,o=[0,0,0,0],i=[0,0,0,0],l=!1,s=0,u,c,d,p=new jh;for(;++a<e.length;){let f=e[a],m=f[1];f[0]==="enter"?m.type==="tableHead"?(l=!1,s!==0&&(zO(p,t,s,u,c),c=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,d=void 0,o=[0,0,0,0],i=[0,a+1,0,0],l&&(l=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",c,t]])),r=m.type==="tableDelimiterRow"?2:c?3:1):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,i[2]===0&&(o[1]!==0&&(i[0]=i[1],d=Bh(p,t,o,r,void 0,d),o=[0,0,0,0]),i[2]=a)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(i[0]=i[1],d=Bh(p,t,o,r,void 0,d)),o=i,i=[o[1],a,0,0])):m.type==="tableHead"?(l=!0,s=a):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=a,o[1]!==0?(i[0]=i[1],d=Bh(p,t,o,r,a,d)):i[1]!==0&&(d=Bh(p,t,i,r,a,d)),r=0):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(i[3]=a)}for(s!==0&&zO(p,t,s,u,c),p.consume(t.events),a=-1;++a<t.events.length;){let f=t.events[a];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=DO(t.events,a))}return e}function Bh(e,t,a,n,r,o){let i=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";a[0]!==0&&(o.end=Object.assign({},Xs(t.events,a[0])),e.add(a[0],0,[["exit",o,t]]));let s=Xs(t.events,a[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(a[1],0,[["enter",o,t]]),a[2]!==0){let u=Xs(t.events,a[2]),c=Xs(t.events,a[3]),d={type:l,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(a[2],0,[["enter",d,t]]),n!==2){let p=t.events[a[2]],f=t.events[a[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",a[3]>a[2]+1){let m=a[2]+1,w=a[3]-a[2]-1;e.add(m,w,[])}}e.add(a[3]+1,0,[["exit",d,t]])}return r!==void 0&&(o.end=Object.assign({},Xs(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function zO(e,t,a,n,r){let o=[],i=Xs(t.events,a);r&&(r.end=Object.assign({},i),o.push(["exit",r,t])),n.end=Object.assign({},i),o.push(["exit",n,t]),e.add(a+1,0,o)}function Xs(e,t){let a=e[t],n=a[0]==="enter"?"start":"end";return a[1][n]}var OZ={name:"tasklistCheck",tokenize:RZ};function Uk(){return{text:{91:OZ}}}function RZ(e,t,a){let n=this;return r;function r(s){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?a(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return $e(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),i):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),i):a(s)}function i(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):a(s)}function l(s){return re(s)?t(s):pe(s)?e.check({tokenize:PZ},t,a)(s):a(s)}}function PZ(e,t,a){return fe(e,n,"whitespace");function n(r){return r===null?a(r):t(r)}}function OO(e){return hh([zk(),Rk(),Pk(e),Nk(),Uk()])}var NZ={};function qh(e){let t=this,a=e||NZ,n=t.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(OO(a)),o.push($k()),i.push(Mk(a))}ha(`.chat-widget__feedback{display:flex;align-items:center;gap:.25rem;margin-top:.35rem}.chat-widget__feedback-button{border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;color:var(--chat-text-disabled);cursor:pointer;border-radius:.35rem;transition:all .15s ease}.chat-widget__feedback-button:hover:not(:disabled){background:var(--chat-primary-subtle);color:var(--chat-text-muted)}.chat-widget__feedback-button:disabled{cursor:default;opacity:.5}.chat-widget__feedback-button--positive.chat-widget__feedback-button--selected{color:var(--chat-success);background:var(--chat-success-bg)}.chat-widget__feedback-button--negative.chat-widget__feedback-button--selected{color:var(--chat-error);background:var(--chat-error-bg)}.chat-widget__feedback-button--comment.chat-widget__feedback-button--selected{background:var(--chat-primary-subtle)}.chat-widget__feedback-button--comment.chat-widget__feedback-button--has-content{color:var(--chat-primary)}.chat-widget__feedback-icon{width:1rem;height:1rem}.chat-widget__feedback-comment-section{margin-top:.75rem;background:var(--chat-background);border:1px solid var(--chat-border);border-radius:.5rem;padding:.75rem;width:100%;max-width:400px}.chat-widget__feedback-comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;font-size:.8125rem;font-weight:600;color:var(--chat-text)}.chat-widget__feedback-comment-required{font-size:.6875rem;font-weight:500;color:var(--chat-error);background:var(--chat-error-bg);padding:.125rem .375rem;border-radius:.25rem}.chat-widget__feedback-comment-body{display:flex;gap:.5rem;align-items:flex-start}.chat-widget__feedback-textarea{flex:1;min-height:60px;padding:.625rem;border:1px solid var(--chat-border);border-radius:.35rem;font-size:.875rem;font-family:inherit;resize:vertical;color:var(--chat-input-text);background:var(--chat-input-bg);line-height:1.5}.chat-widget__feedback-textarea:focus{outline:none;border-color:var(--chat-primary);box-shadow:0 0 0 2px var(--chat-primary-subtle)}.chat-widget__feedback-textarea::-moz-placeholder{color:var(--chat-input-placeholder)}.chat-widget__feedback-textarea::placeholder{color:var(--chat-input-placeholder)}.chat-widget__feedback-actions{display:flex;flex-direction:column;gap:.375rem}.chat-widget__feedback-cancel,.chat-widget__feedback-submit{padding:.35rem .75rem;font-size:.75rem;font-weight:500;border-radius:.3rem;cursor:pointer;transition:all .15s ease}.chat-widget__feedback-cancel{background:transparent;border:none;color:var(--chat-text-disabled);padding:.25rem .5rem}.chat-widget__feedback-cancel:hover{color:var(--chat-text-muted)}.chat-widget__feedback-submit{background:var(--chat-primary);border:none;color:var(--chat-primary-text)}.chat-widget__feedback-submit:hover:not(:disabled){background:var(--chat-primary-hover)}.chat-widget__feedback-submit:disabled{opacity:.5;cursor:not-allowed}.chat-widget__feedback-wrapper{position:relative}
|
|
100
|
+
`);var Na=ne(yt(),1),Yt=ne(xe(),1),_t={wrapper:"chat-widget__feedback-wrapper",container:"chat-widget__feedback",button:"chat-widget__feedback-button",buttonPositive:"chat-widget__feedback-button--positive",buttonNegative:"chat-widget__feedback-button--negative",commentBody:"chat-widget__feedback-comment-body",buttonComment:"chat-widget__feedback-button--comment",buttonSelected:"chat-widget__feedback-button--selected",buttonHasContent:"chat-widget__feedback-button--has-content",icon:"chat-widget__feedback-icon",commentSection:"chat-widget__feedback-comment-section",commentHeader:"chat-widget__feedback-comment-header",commentRequired:"chat-widget__feedback-comment-required",textarea:"chat-widget__feedback-textarea",actions:"chat-widget__feedback-actions",cancelButton:"chat-widget__feedback-cancel",submitButton:"chat-widget__feedback-submit"},RO=({messageId:e,existingRating:t,existingComment:a,isSubmitting:n,requireCommentForNegative:r=!1,onSubmit:o})=>{let[i,l]=(0,Na.useState)(t??null),[s,u]=(0,Na.useState)(a??""),[c,d]=(0,Na.useState)(null),[p,f]=(0,Na.useState)(!1),[m,w]=(0,Na.useState)(a??"");(0,Na.useEffect)(()=>{t&&l(t),a!==void 0&&(u(a),w(a))},[t,a]);let C=(0,Na.useCallback)(()=>{i==="positive"?(l(null),u(""),w(""),d(null),o(e,{rating:null,improvementText:null})):(l("positive"),d(null),o(e,{rating:"positive"}))},[e,i,o]),g=(0,Na.useCallback)(()=>{i==="negative"?(l(null),u(""),w(""),d(null),o(e,{rating:null,improvementText:null})):r?(d("negative"),f(!0)):(l("negative"),d(null),o(e,{rating:"negative"}))},[e,i,r,o]),x=(0,Na.useCallback)(()=>{p?(f(!1),c==="negative"&&r&&d(null),w(s)):f(!0)},[p,c,r,s]),h=(0,Na.useCallback)(()=>{f(!1),w(s),c==="negative"&&r&&d(null)},[c,r,s]),b=(0,Na.useCallback)(()=>{let O=c??i;if(O==="negative"&&r&&!m.trim())return;let F=s.length>0;if(!O&&!m.trim()&&!F)return;let P=m.trim()||(F?null:void 0);o(e,{rating:O,improvementText:P}),O&&l(O),u(m.trim()),d(null),f(!1)},[e,c,i,s,m,r,o]),L=c??i,y=L==="positive",_=L==="negative",S=_&&r,T=s.length>0,I=(!S||m.trim().length>0)&&(L||m.trim().length>0||T),q=T?Ii:On;return(0,Yt.jsxs)("div",{className:_t.wrapper,children:[(0,Yt.jsxs)("div",{className:_t.container,children:[(0,Yt.jsx)("button",{type:"button",className:`${_t.button} ${_t.buttonPositive} ${y?_t.buttonSelected:""}`,onClick:C,disabled:n,title:"Good response","aria-label":"Mark as good response",children:(0,Yt.jsx)(ki,{className:_t.icon})}),(0,Yt.jsx)("button",{type:"button",className:`${_t.button} ${_t.buttonNegative} ${_?_t.buttonSelected:""}`,onClick:g,disabled:n,title:"Could be improved","aria-label":"Mark as could be improved",children:(0,Yt.jsx)(Ci,{className:_t.icon})}),(0,Yt.jsx)("button",{type:"button",className:`${_t.button} ${_t.buttonComment} ${p?_t.buttonSelected:""} ${T?_t.buttonHasContent:""}`,onClick:x,disabled:n,title:"Add comment","aria-label":"Add comment",children:(0,Yt.jsx)(q,{className:_t.icon})})]}),p&&(0,Yt.jsxs)("div",{className:_t.commentSection,children:[(0,Yt.jsx)("div",{className:_t.commentHeader,children:S&&(0,Yt.jsx)("span",{className:_t.commentRequired,children:"Required"})}),(0,Yt.jsxs)("div",{className:_t.commentBody,children:[(0,Yt.jsx)("textarea",{className:_t.textarea,placeholder:_?"What could be improved?":"Share your thoughts...",value:m,onChange:O=>w(O.target.value),rows:3}),(0,Yt.jsxs)("div",{className:_t.actions,children:[(0,Yt.jsx)("button",{type:"button",className:_t.submitButton,onClick:b,disabled:n||!I,children:"Save"}),(0,Yt.jsx)("button",{type:"button",className:_t.cancelButton,onClick:h,children:"Cancel"})]})]})]})]})};ha(`.tag-group{margin:6px 0}.tag-group-header{display:inline-flex;align-items:center;gap:4px;background:none;border:none;padding:2px 6px 2px 2px;cursor:pointer;font-size:13px;color:var(--chat-text-muted);border-radius:4px;transition:background-color .15s ease}.tag-group-header:hover{background:var(--chat-background-secondary)}.tag-group-chevron{width:14px;height:14px;flex-shrink:0;transition:transform .15s ease;color:var(--chat-text-disabled)}.tag-group-chevron--expanded{transform:rotate(90deg)}.tag-group-label{font-weight:500;color:var(--chat-text-secondary)}.tag-group-content{margin-left:7px;padding-left:12px;border-left:2px solid var(--chat-border);margin-top:4px}.tag-group-item{margin:4px 0;font-size:13px;color:var(--chat-text-secondary)}.tag-group-item--text{display:flex;align-items:flex-start;gap:6px}.tag-group-item--text:before{content:"\\2022";color:var(--chat-text-disabled);font-size:14px;line-height:1.4;flex-shrink:0}.tag-group-item .tool-call-item{margin:0}.tag-group-item--widget{display:block;margin:8px 0}.tag-group-item .chat-widget__markdown,.tag-group-item .chat-widget__markdown p{margin:0}
|
|
101
|
+
`);var ji=ne(xe(),1);function PO({tagId:e,isExpanded:t,onToggle:a,children:n}){return(0,ji.jsxs)("div",{className:"tag-group",children:[(0,ji.jsxs)("button",{className:"tag-group-header",onClick:a,"aria-expanded":t,type:"button",children:[(0,ji.jsx)(Kc,{className:`tag-group-chevron ${t?"tag-group-chevron--expanded":""}`,"aria-hidden":"true"}),(0,ji.jsx)("span",{className:"tag-group-label",children:e})]}),t&&(0,ji.jsx)("div",{className:"tag-group-content",role:"region",children:n})]})}ha(`.tool-call-item{font-size:13px;color:var(--chat-text-muted);margin:4px 0}.tool-call-header{display:flex;align-items:center;gap:6px;margin-top:4px;margin-bottom:4px}.tool-call-spinner{width:12px;height:12px;border:2px solid var(--chat-border);border-top-color:var(--chat-text-muted);border-radius:50%;animation:tool-call-spin .8s linear infinite;flex-shrink:0}@keyframes tool-call-spin{to{transform:rotate(360deg)}}.tool-call-status-icon{width:12px;height:12px;border:2px solid var(--chat-border);border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.tool-call-status-icon--error{border-color:var(--chat-error)}.tool-call-status-icon__inner{width:8px;height:8px}.tool-call-status-icon__inner--success{color:var(--chat-text-disabled)}.tool-call-status-icon__inner--error{color:var(--chat-error)}.tool-call-label{color:var(--chat-text-muted)}.tool-call-label code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;background:var(--chat-background-secondary);padding:2px 6px;border-radius:4px;color:var(--chat-text-secondary)}.tool-call-toggle{font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:var(--chat-text-muted);background:transparent;border:1px solid var(--chat-border);border-radius:3px;cursor:pointer;padding:2px 6px;margin-left:4px;transition:all .15s ease}.tool-call-toggle:hover{color:var(--chat-text-secondary);border-color:var(--chat-text-disabled);background:var(--chat-background-secondary)}.tool-call-details{margin-top:8px;margin-left:16px;display:flex;flex-direction:column;gap:8px}.tool-call-section{display:flex;gap:4px}.tool-call-section-label{flex-shrink:0;font-size:10px;font-weight:600;color:var(--chat-text-muted);width:28px;padding-top:8px;text-align:right}.tool-call-section-content-wrapper{flex:1;position:relative;min-width:0}.tool-call-section-toggle{position:absolute;top:4px;right:4px;font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:var(--chat-text-muted);background:var(--chat-background);border:1px solid var(--chat-border);border-radius:3px;cursor:pointer;padding:2px 6px;transition:all .15s ease;opacity:0;z-index:1}.tool-call-section-content-wrapper:hover .tool-call-section-toggle{opacity:1}.tool-call-section-toggle:hover{color:var(--chat-text-secondary);border-color:var(--chat-text-disabled);background:var(--chat-background-secondary)}.tool-call-section-content{padding:8px 12px;background:var(--chat-background-secondary);border-radius:6px;border:1px solid var(--chat-border-light);overflow-x:auto}.tool-call-section-content.collapsed{max-height:2.4em;overflow:hidden;padding-top:4px;padding-bottom:4px}.tool-call-section-content.collapsed pre{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.tool-call-section-content pre{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:var(--chat-text);white-space:pre-wrap;word-break:break-word}.tool-call-error{color:var(--chat-error);font-weight:600;font-size:9px;letter-spacing:.5px;margin-left:auto}
|
|
102
|
+
`);var Fk=ne(yt(),1),mt=ne(xe(),1);function NO({label:e,content:t}){let[a,n]=(0,Fk.useState)(!1);return(0,mt.jsxs)("div",{className:"tool-call-section",children:[(0,mt.jsx)("div",{className:"tool-call-section-label",children:e}),(0,mt.jsxs)("div",{className:"tool-call-section-content-wrapper",children:[(0,mt.jsx)("button",{className:"tool-call-section-toggle",onClick:()=>n(!a),type:"button",children:a?"SHOW":"HIDE"}),(0,mt.jsx)("div",{className:`tool-call-section-content ${a?"collapsed":""}`,children:(0,mt.jsx)("pre",{children:UZ(t)})})]})]})}function UO({toolPart:e,className:t=""}){let[a,n]=(0,Fk.useState)(!1),r="toolName"in e?e.toolName:e.type.replace("tool-",""),o="state"in e?e.state:"pending",i=o==="output-available"&&"output"in e&&e.output!==void 0,l=o==="input-streaming"||o==="input-available"||o==="approval-requested",s=o==="output-error",u=o==="output-denied",c=s||u,d="input"in e?e.input:void 0,p="output"in e?e.output:void 0,f=d!=null&&!(typeof d=="object"&&Object.keys(d).length===0),m=f||i,w=()=>l?(0,mt.jsx)("span",{className:"tool-call-spinner"}):(0,mt.jsx)("span",{className:`tool-call-status-icon ${c?"tool-call-status-icon--error":""}`,children:c?(0,mt.jsxs)("svg",{className:"tool-call-status-icon__inner tool-call-status-icon__inner--error",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[(0,mt.jsx)("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),(0,mt.jsx)("line",{x1:"11",y1:"5",x2:"5",y2:"11"})]}):(0,mt.jsx)("svg",{className:"tool-call-status-icon__inner tool-call-status-icon__inner--success",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,mt.jsx)("polyline",{points:"4,8 7,11 12,5"})})});return(0,mt.jsxs)("div",{className:`tool-call-item ${t}`,children:[(0,mt.jsxs)("div",{className:"tool-call-header",children:[w(),(0,mt.jsxs)("span",{className:"tool-call-label",children:[l?"Calling":"Called"," ",(0,mt.jsx)("code",{children:r})]}),m&&(0,mt.jsx)("button",{className:"tool-call-toggle",onClick:()=>n(!a),type:"button",children:a?"HIDE":"SHOW"}),u&&(0,mt.jsx)("span",{className:"tool-call-error",children:"DENIED"}),s&&(0,mt.jsx)("span",{className:"tool-call-error",children:"ERROR"})]}),a&&m&&(0,mt.jsxs)("div",{className:"tool-call-details",children:[f&&(0,mt.jsx)(NO,{label:"IN",content:d}),i&&(0,mt.jsx)(NO,{label:"OUT",content:p})]})]})}function UZ(e){if(e==null)return"";if(typeof e=="string")try{let t=JSON.parse(e);return JSON.stringify(t,null,2)}catch{return e}return JSON.stringify(e,null,2)}var Bk=ne(BO(),1),zr=ne(yt(),1);var jk=Symbol("__isSDKWidget");function qO(e){return jk in e&&e[jk]===!0}function Zh(e){return{...e,[jk]:!0}}var ZO=e=>e;var Bi=ne(xe(),1);function Td(e,t){e.innerHTML="";let a=document.createElement("div");a.style.cssText="color: red; padding: 8px;",a.textContent=t,e.appendChild(a)}function HO({widget:e,payload:t,enriched:a,messageContext:n,invokeTool:r}){let o=(0,zr.useRef)(null),i=(0,zr.useRef)(null),l=(0,zr.useRef)(void 0),s=(0,zr.useRef)(!1),u=qO(e);u||(l.current=e.reactDOM);let c=(0,zr.useMemo)(()=>(0,Bk.default)(t??{}),[t]),d=(0,zr.useMemo)(()=>(0,Bk.default)(a??{}),[a]);if((0,zr.useEffect)(()=>()=>{i.current?(i.current.unmount(),i.current=null):s.current&&o.current&&l.current&&(l.current.unmountComponentAtNode?l.current.unmountComponentAtNode(o.current):console.warn("Widget unmounting but unmountComponentAtNode is missing. This may cause a memory leak.")),s.current=!1},[]),(0,zr.useEffect)(()=>{if(!u)try{if(!o.current){console.error(`WidgetRenderer: Container ref is null for widget "${e.widgetType}"`);return}let p;try{p=e.render(t,a,{messageContext:n,invokeTool:r})}catch(m){console.error(`Widget "${e.widgetType}" render function threw:`,m),Td(o.current,`Widget render error: ${e.widgetType}`);return}let f=e.reactDOM;if(!f){console.error(`Widget "${e.widgetType}" requires reactDOM to render.
|
|
103
|
+
|
|
104
|
+
Custom widgets must provide their ReactDOM instance for cross-React version compatibility.
|
|
105
|
+
|
|
106
|
+
To fix, add your ReactDOM to the widget config:
|
|
107
|
+
|
|
108
|
+
import ReactDOM from 'react-dom'; // React 16/17
|
|
109
|
+
// or
|
|
110
|
+
import ReactDOM from 'react-dom/client'; // React 18+
|
|
111
|
+
|
|
112
|
+
{
|
|
113
|
+
widgetType: '${e.widgetType}',
|
|
114
|
+
schema: yourSchema,
|
|
115
|
+
reactDOM: ReactDOM, // <-- Add this
|
|
116
|
+
render: (payload) => <YourComponent {...payload} />
|
|
117
|
+
}`),Td(o.current,`Widget "${e.widgetType}" requires reactDOM`);return}if(typeof f!="object"){console.error(`Widget "${e.widgetType}" reactDOM must be an object`),Td(o.current,`Widget "${e.widgetType}" has invalid reactDOM`);return}if(f.createRoot){if(typeof f.createRoot!="function")throw new Error("createRoot must be a function");i.current||(i.current=f.createRoot(o.current)),i.current.render(p),s.current=!0}else if(f.render){if(typeof f.render!="function")throw new Error("render must be a function");f.render(p,o.current),s.current=!0}else console.error(`Widget "${e.widgetType}" reactDOM must have either 'render' (React 16/17) or 'createRoot' (React 18)`),Td(o.current,`Widget "${e.widgetType}" has incompatible reactDOM`)}catch(p){console.error(`Unexpected error in WidgetRenderer for "${e.widgetType}":`,p),o.current&&Td(o.current,`Widget system error: ${e.widgetType}`)}},[u,e,t,a,c,d,n,r]),u)try{let p=e.render(t,a,{messageContext:n,invokeTool:r});return(0,Bi.jsx)(Bi.Fragment,{children:p})}catch(p){console.error(`SDK widget "${e.widgetType}" render threw:`,p);let f=p instanceof Error?p.message:String(p);return(0,Bi.jsxs)("div",{className:"widget-error",title:f,children:["Widget error: ",e.widgetType]})}return(0,Bi.jsx)("div",{ref:o,className:"widget-customer-root"})}var Vt=ne(xe(),1);function FZ({children:e}){return(0,Vt.jsx)(ak,{remarkPlugins:[qh],components:{a:({children:a,href:n,...r})=>(0,Vt.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",...r,children:a})},children:e.replace(/\n\n/gi,`
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
`)})}var jZ=jn.default.memo(FZ);function Ld({message:e,widgets:t,readonly:a=!1,displayMode:n="brief",tagExpansion:r,className:o,feedback:i,invokeTool:l}){let s=(0,jn.useMemo)(()=>{if(i)return{messageId:e.id,getFeedback:i.getFeedback,submitFeedback:i.submitFeedback}},[e.id,i]),u=(0,jn.useMemo)(()=>i?.getFeedback()??null,[i]),c=(0,jn.useCallback)((f,m)=>{if(f==null)return null;if(f.type==="text"){let w=f.text?.trim();return w?(0,Vt.jsx)("div",{className:"chat-widget__markdown",children:(0,Vt.jsx)(jZ,{children:w})},m):null}if(f.type.startsWith("tool-")||f.type==="dynamic-tool")return(0,Vt.jsx)(UO,{toolPart:f},m);if(f.type==="data-ui"){let C=f.data;return Array.isArray(C)?!t||t.length===0?(0,Vt.jsxs)("div",{className:"text-muted-foreground text-sm italic",children:["[UI Widget: ",C.map(g=>g.widgetType||"unknown").join(", "),"]"]},m):(0,Vt.jsx)(jn.default.Fragment,{children:C.map((g,x)=>{let h=t.find(b=>b.widgetType===g.widgetType);return h?(0,Vt.jsx)("div",{className:"chat-widget__widget",inert:a?!0:void 0,children:(0,Vt.jsx)(HO,{widget:h,payload:g.payload,enriched:g.enriched??{},messageContext:s??void 0,invokeTool:l})},`${m}-widget-${x}`):(0,Vt.jsxs)("span",{children:["[Unknown widget: ",g.widgetType,"]"]},`${m}-widget-${x}`)})},m):null}return null},[t,a,s]),d=(0,jn.useCallback)((f,m,w)=>{let C=r?.state.get(m)??!0;return(0,Vt.jsx)(PO,{tagId:f,isExpanded:C,onToggle:()=>r?.onToggle(f),children:w},m)},[r]);return(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)("div",{className:o,children:(0,Vt.jsx)(n==="brief"?cd:dd,{sections:e.sections,messageId:e.id,renderPart:c,renderGroup:d})}),!a&&i&&(0,Vt.jsx)(RO,{messageId:e.id,existingRating:u?.rating,existingComment:u?.improvementText,isSubmitting:i.loading,requireCommentForNegative:i.requireCommentForNegative,onSubmit:(f,m)=>i.submitFeedback(m)})]})}var ot=ne(xe(),1),ht={container:"chat-widget",header:"chat-widget__header",headerTitle:"chat-widget__title",messagesContainer:"chat-widget__messages",messageWrapper:"chat-widget__message",messageRow:"chat-widget__message-row",userMessageRow:"chat-widget__message-row--user",assistantMessageRow:"chat-widget__message-row--assistant",messageBubble:"chat-widget__bubble",userMessage:"chat-widget__bubble--user",assistantMessage:"chat-widget__bubble--assistant",thoughtsContainer:"chat-widget__thoughts",thoughtsSummary:"chat-widget__thoughts-summary",thoughtsIconContainer:"chat-widget__thoughts-icon-container",thoughtsIcon:"chat-widget__thoughts-icon",thoughtsContent:"chat-widget__thoughts-content",thoughtsText:"chat-widget__thoughts-text",loadingContainer:"chat-widget__loading",loadingBubble:"chat-widget__loading-bubble",loadingDots:"chat-widget__loading-dots",loadingDot:"chat-widget__loading-dot",inputContainer:"chat-widget__input",inputForm:"chat-widget__form",textarea:"chat-widget__textarea",toolbar:"chat-widget__toolbar",submitButton:"chat-widget__submit",sendIcon:"chat-widget__send-icon",voiceControl:"chat-widget__voice",micButton:"chat-widget__mic-button"},BZ={theme:"light",primaryColor:"#3b82f6",primaryTextColor:"#ffffff",backgroundColor:"#ffffff",backgroundSecondary:"#f9fafb",backgroundTertiary:"#f3f4f6",borderColor:"#e5e7eb",borderColorLight:"#f3f4f6",headerTextColor:"#ffffff",userBubbleTextColor:"#ffffff",assistantBubbleBackground:"transparent",assistantBubbleTextColor:"#111827",textColor:"#111827",textSecondary:"#4b5563",textMuted:"#6b7280",textDisabled:"#9ca3af",fontFamily:"'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",borderRadius:"0.75rem",inputBackground:"#ffffff",inputTextColor:"#111827",inputPlaceholderColor:"#6b7280",thoughtsBorderColor:"#d1d5db"},qZ={theme:"dark",primaryColor:"#3b82f6",primaryTextColor:"#ffffff",backgroundColor:"#1f2937",backgroundSecondary:"#374151",backgroundTertiary:"#4b5563",borderColor:"#4b5563",borderColorLight:"#374151",headerTextColor:"#ffffff",userBubbleTextColor:"#ffffff",assistantBubbleBackground:"transparent",assistantBubbleTextColor:"#f9fafb",textColor:"#f9fafb",textSecondary:"#d1d5db",textMuted:"#9ca3af",textDisabled:"#6b7280",fontFamily:"'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",borderRadius:"0.75rem",inputBackground:"#374151",inputTextColor:"#f9fafb",inputPlaceholderColor:"#9ca3af",thoughtsBorderColor:"#4b5563"};function qk(){if(typeof window>"u")return!1;let e=document.documentElement,t=document.body,a=e.getAttribute("data-theme")||t.getAttribute("data-theme");if(a==="dark")return!0;if(a==="light")return!1;if(e.classList.contains("dark")||t.classList.contains("dark"))return!0;if(e.classList.contains("light")||t.classList.contains("light"))return!1;let n=getComputedStyle(e).colorScheme;return n==="dark"?!0:n==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}var ZZ=(e,t=.15)=>{let a=e.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(a))return e;let n=parseInt(a.slice(0,2),16),r=parseInt(a.slice(2,4),16),o=parseInt(a.slice(4,6),16),i=l=>Math.round(l*(1-t));return`#${i(n).toString(16).padStart(2,"0")}${i(r).toString(16).padStart(2,"0")}${i(o).toString(16).padStart(2,"0")}`},Ks=(0,we.forwardRef)(function({api:t,threadId:a,agentId:n,agentVersion:r,agentExecutionId:o,dataContext:i,displayMode:l="brief",onError:s,onAuthError:u,onFinish:c,onMessage:d,title:p,initialAssistantMessage:f,initialUserMessage:m,inputPlaceholder:w,className:C,styles:g,voice:x,speechToText:h,widgets:b,feedback:L},y){let[_,S]=(0,we.useState)(!1);(0,we.useEffect)(()=>{S(qk());let ie=window.matchMedia("(prefers-color-scheme: dark)"),gt=()=>S(qk());ie.addEventListener("change",gt);let Qt=new MutationObserver(()=>{S(qk())});return Qt.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class"]}),Qt.observe(document.body,{attributes:!0,attributeFilter:["data-theme","class"]}),()=>{ie.removeEventListener("change",gt),Qt.disconnect()}},[]);let T=(0,we.useMemo)(()=>{let ie=g?.theme||"auto";return{...ie==="dark"||ie==="auto"&&_?qZ:BZ,...g||{}}},[g,_]),I=(0,we.useMemo)(()=>({"--chat-primary":T.primaryColor,"--chat-primary-text":T.primaryTextColor,"--chat-primary-hover":ZZ(T.primaryColor,.2),"--chat-primary-subtle":`${T.primaryColor}1a`,"--chat-background":T.backgroundColor,"--chat-background-secondary":T.backgroundSecondary,"--chat-background-tertiary":T.backgroundTertiary,"--chat-border":T.borderColor,"--chat-border-light":T.borderColorLight,"--chat-text":T.textColor,"--chat-text-secondary":T.textSecondary,"--chat-text-muted":T.textMuted,"--chat-text-disabled":T.textDisabled,"--chat-header-text":T.headerTextColor,"--chat-user-text":T.userBubbleTextColor,"--chat-assistant-bg":T.assistantBubbleBackground,"--chat-assistant-text":T.assistantBubbleTextColor,"--chat-font-family":T.fontFamily,"--chat-radius":T.borderRadius,"--chat-input-bg":T.inputBackground,"--chat-input-text":T.inputTextColor,"--chat-input-placeholder":T.inputPlaceholderColor,"--chat-thought-border":T.thoughtsBorderColor}),[T]),[q,O]=(0,we.useState)(""),[F,P]=(0,we.useState)(!1),[B,K]=(0,we.useState)(!1),se=(0,we.useRef)(null),ue=(0,we.useRef)(null),Le=(0,we.useRef)(!0),$=(0,we.useRef)(null),Me=(0,we.useRef)(!1),{messages:at,status:E,isLoadingInitial:ge,sendMessage:bt,stop:Y,setMessages:k,addToolOutput:A,addToolApprovalResponse:M,pendingToolOutput:R,pendingToolApproval:N}=TM({api:t,threadId:a,agentId:n,agentVersion:r,agentExecutionId:o??void 0,dataContext:i,onError:s,onAuthError:u,onFinish:c,onMessage:d}),Q=(0,we.useCallback)(ie=>{R&&A&&A({tool:"collect_user_input",toolCallId:R.toolCallId,output:ie})},[R,A]),_e=(0,we.useCallback)((ie,gt)=>{N&&M({id:N.approvalId,approved:ie,reason:gt})},[N,M]),He=E!=="ready"||!!R||!!N;(0,we.useImperativeHandle)(y,()=>({sendMessage:ie=>{ie.trim()&&E==="ready"&&bt({text:ie})}}),[bt,E]);let St=L?.enabled!==!1,{submitFeedback:la,getFeedbackForMessage:jt,isSubmitting:Gt}=LM({api:t,threadId:a,agentId:n,agentVersion:r}),wt=(0,we.useMemo)(()=>rM(t,u),[t,u]),[it,Or]=(0,we.useState)(new Map),[qi,Ys]=(0,we.useState)(null),[Gh,Qs]=(0,we.useState)(!1);(0,we.useEffect)(()=>{if(!N){Ys(null),Qs(!1);return}Qs(!0),aM({api:t,agentId:n,agentVersion:r,toolName:N.toolName,args:N.args,onAuthError:u}).then(ie=>{Ys(ie)}).catch(ie=>{console.error("[ChatWidget] Failed to fetch approval config:",ie),Ys(null)}).finally(()=>{Qs(!1)})},[N,t,n,r,u]);let U=(0,we.useCallback)((ie,gt,Qt)=>{Me.current=!0,Or(eu=>{let Ad=new Map(eu),Zi=`${ie}-group-${gt}`;return Ad.set(Zi,!Qt),Ad})},[]),ee=(0,we.useMemo)(()=>{if(!x||x.enabled===!1||!x.url)return null;let ie=x.payload,gt=Qt=>ie?typeof ie=="function"?ie(Qt):{message:Qt,...ie}:{message:Qt};return{url:x.url,method:x.method??"POST",autoplayLatest:x.autoplayLatest??!0,headers:{...x.headers??{}},buildPayload:gt}},[x]);(0,we.useEffect)(()=>{f&&!m&&!ge&&at.length===0&&k([{id:"welcome-message",role:"assistant",parts:[{type:"text",text:f}]}])},[f,m,ge,at.length,k]);let ve=(0,we.useRef)(!1);(0,we.useEffect)(()=>{m&&!ve.current&&!ge&&E==="ready"&&at.length===0&&(ve.current=!0,bt({text:m}))},[m,ge,E,at.length,bt]);let De=(0,we.useCallback)(()=>{if(!ue.current)return;let{scrollTop:ie,scrollHeight:gt,clientHeight:Qt}=ue.current,eu=gt-ie-Qt;Le.current=eu<100},[]);(0,we.useEffect)(()=>{if(Me.current){Me.current=!1;return}let gt=at[at.length-1]?.role==="user";(Le.current||gt)&&se.current?.scrollIntoView({behavior:"smooth"})},[at,E]),(0,we.useEffect)(()=>{let ie=setTimeout(()=>{$.current?.focus()},150);return()=>clearTimeout(ie)},[]),(0,we.useEffect)(()=>{E==="ready"&&$.current?.focus(),E!=="streaming"&&K(!1)},[E]);let je=(0,we.useCallback)(ie=>{let gt=(ie??q).trim();return!gt||He?!1:(bt({text:gt}),O(""),!0)},[q,He,bt,O]),pa=()=>{je()},rn=ie=>{ie.preventDefault(),pa()},wr=ie=>{ie.key==="Enter"&&!ie.shiftKey&&(ie.preventDefault(),pa())},nn=h?.enabled!==!1,Ho=(0,we.useCallback)(ie=>{O(ie)},[O]),ma=(0,we.useCallback)(ie=>{let gt=ie?.trim();if(!gt||B)return;O(gt),je(gt)&&K(!0)},[je,O,B]);(0,we.useEffect)(()=>{nn||P(!1)},[nn]);let Rr=(0,we.useRef)({threadId:"",widgets:null});return(0,we.useEffect)(()=>{!b||b.length===0||Rr.current.threadId===a&&Rr.current.widgets===b||eh({api:t,threadId:a,widgets:b,onAuthError:u}).then(()=>{Rr.current={threadId:a,widgets:b}}).catch(gt=>{console.error("Failed to register chat widgets",gt)})},[t,a,b,u]),(0,ot.jsxs)("div",{className:Yr(ht.container,C),style:I,"data-chat-widget":"",children:[p&&(0,ot.jsx)("div",{className:ht.header,children:(0,ot.jsx)("h3",{className:ht.headerTitle,children:p})}),(0,ot.jsxs)("div",{className:ht.messagesContainer,ref:ue,onScroll:De,children:[at.map((ie,gt)=>{let Qt=ie.role==="user",eu=gt===at.length-1,Ad=St&&!Qt&&!(E==="streaming"&&eu);return(0,ot.jsx)("div",{className:ht.messageWrapper,children:(0,ot.jsx)("div",{className:Yr(ht.messageRow,Qt?ht.userMessageRow:ht.assistantMessageRow),children:(0,ot.jsx)("div",{className:Yr(ht.messageBubble,Qt?ht.userMessage:ht.assistantMessage),children:(0,ot.jsx)(Ld,{message:ie,widgets:b,displayMode:l,tagExpansion:{state:it,onToggle:Zi=>U(ie.id,Zi,it.get(`${ie.id}-group-${Zi}`)??!0)},feedback:Ad?{loading:Gt===ie.id,requireCommentForNegative:L?.requireCommentForNegative,getFeedback:()=>jt(ie.id),submitFeedback:Zi=>la(ie.id,Zi)}:void 0,invokeTool:wt})})})},ie.id)}),E==="streaming"&&(0,ot.jsx)("div",{className:ht.loadingContainer,children:(0,ot.jsx)("div",{className:ht.loadingBubble,children:(0,ot.jsxs)("div",{className:ht.loadingDots,children:[(0,ot.jsx)("div",{className:ht.loadingDot}),(0,ot.jsx)("div",{className:ht.loadingDot,"data-delay":"1"}),(0,ot.jsx)("div",{className:ht.loadingDot,"data-delay":"2"})]})})}),(0,ot.jsx)("div",{ref:se})]}),(0,ot.jsx)("div",{className:ht.inputContainer,children:(0,ot.jsxs)("form",{onSubmit:rn,className:ht.inputForm,children:[(0,ot.jsx)("textarea",{ref:$,value:q,onChange:ie=>O(ie.target.value),onKeyDown:wr,placeholder:w,disabled:He,rows:1,className:ht.textarea}),(0,ot.jsx)("div",{className:ht.toolbar,children:nn&&(0,ot.jsx)(HM,{className:ht.micButton,disabled:E!=="ready",silenceTimeout:h?.silenceTimeout,language:h?.language,finalDelay:h?.finalDelay,onInterim:Ho,onFinal:ma,onError:h?.onError,onListeningChange:P})}),(0,ot.jsx)("button",{type:"button",onClick:E==="streaming"?Y:pa,disabled:E==="streaming"?!1:!q.trim()||He,className:ht.submitButton,children:E==="streaming"?(0,ot.jsx)($o,{className:ht.sendIcon}):(0,ot.jsx)(ed,{className:ht.sendIcon})})]})}),R&&(0,ot.jsx)(jM,{args:R.args,onComplete:Q}),N&&(0,ot.jsx)(VM,{approval:N,config:qi,configLoading:Gh,onApprove:()=>_e(!0),onDeny:ie=>_e(!1,ie)})]})});ha(`.chat-popup__anchor{position:fixed;inset-block-end:20px;inset-inline-end:20px}.chat-popup--start{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__anchor-button{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:var(--chat-shadow);cursor:pointer;font-weight:600;z-index:99999}.chat-popup__anchor-button:hover{background:var(--chat-primary-hover)}.chat-popup__anchor-icon{width:1.1rem;height:1.1rem}.chat-popup__panel{position:fixed;inset-block-end:20px;inset-inline-end:20px;z-index:99998;transition:opacity .15s ease,visibility .15s ease}.chat-popup--start.chat-popup__panel{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__panel--open{opacity:1;visibility:visible;pointer-events:auto}.chat-popup__panel--closed{opacity:0;visibility:hidden;pointer-events:none}.chat-popup__panel-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:var(--chat-shadow);border-radius:12px;overflow:visible;background:var(--chat-background);border:1px solid var(--chat-border);position:relative}.chat-popup__close{position:absolute;top:0;z-index:10;transform:translate(30%,-40%)}.chat-popup__close--end{inset-inline-end:0}.chat-popup__close--start{inset-inline-start:0}.chat-popup__close-button{border:none;background:var(--chat-primary);color:var(--chat-primary-text);width:32px;height:32px;border-radius:999px;cursor:pointer;display:grid;place-items:center;box-shadow:var(--chat-shadow)}.chat-popup__close-button:hover{background:var(--chat-primary-hover)}.chat-popup__close-icon{width:16px;height:16px}
|
|
122
|
+
`);var Zo=ne(yt(),1);var er=ne(xe(),1);function Hh({anchor:e,...t}){let[a,n]=(0,Zo.useState)(e?.initiallyOpen??!1),[r,o]=(0,Zo.useState)(e?.initiallyOpen??!1),i=t.openOverride??a;(0,Zo.useEffect)(()=>{t.openOverride!==void 0&&(n(t.openOverride),t.openOverride&&o(!0))},[t.openOverride]);let l=()=>{let f=!i;f&&o(!0),t.onToggleOpen?t.onToggleOpen(f):n(f)},s=e?.position==="bottom-start"?"chat-popup--start":"chat-popup--end",u=e?.closeButton??t.closeButton,c=u?.show!==!1,d=(0,Zo.useMemo)(()=>{let f=t.styles?.primaryColor??"#3b82f6",m=t.styles?.primaryTextColor??"#ffffff",w=t.styles?.backgroundColor??"#ffffff",C=t.styles?.borderColor??"#e5e7eb",g=t.styles?.headerTextColor??"#ffffff";return{"--chat-primary":f,"--chat-primary-hover":((h,b=.15)=>{let L=h.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(L))return h;let y=parseInt(L.slice(0,2),16),_=parseInt(L.slice(2,4),16),S=parseInt(L.slice(4,6),16),T=I=>Math.round(I*(1-b));return`#${T(y).toString(16).padStart(2,"0")}${T(_).toString(16).padStart(2,"0")}${T(S).toString(16).padStart(2,"0")}`})(f,.2),"--chat-primary-text":m,"--chat-background":w,"--chat-border":C,"--chat-header-text":g}},[t.styles]),p=(0,Zo.useMemo)(()=>{let f=t.popupSize??{};return{width:f.width??"600px",height:f.height??"500px",maxWidth:f.maxWidth??"calc(100vw - 40px)",maxHeight:f.maxHeight??"calc(100vh - 140px)"}},[t.popupSize]);return(0,er.jsxs)("div",{style:d,children:[(0,er.jsx)("div",{className:Yr("chat-popup__anchor",s),children:e?.render?e.render({isOpen:i,toggle:l}):!i&&(0,er.jsxs)("button",{type:"button",className:"chat-popup__anchor-button",onClick:l,"aria-expanded":a,"aria-label":e?.label??"Open chat",children:[(0,er.jsx)(On,{className:"chat-popup__anchor-icon"}),(0,er.jsx)("span",{children:e?.label??"Chat"})]})}),(0,er.jsx)("div",{className:Yr("chat-popup__panel",s,i?"chat-popup__panel--open":"chat-popup__panel--closed"),children:(0,er.jsxs)("div",{className:"chat-popup__panel-inner",style:p,children:[c&&(0,er.jsx)("div",{className:Yr("chat-popup__close",u?.position==="top-start"?"chat-popup__close--start":"chat-popup__close--end"),children:u?.render?u.render({toggle:l}):(0,er.jsx)("button",{type:"button",className:"chat-popup__close-button",onClick:l,"aria-label":"Close chat",children:(0,er.jsx)(td,{className:"chat-popup__close-icon"})})}),r&&(0,er.jsx)(Ks,{...t})]})})]})}var Sr=ne(yt(),1);var ce=ne(xe(),1),VO=Ut.object({fromLocation:Ut.string().describe("The location the user is searching from"),fromCoordinates:Ut.object({latitude:Ut.number(),longitude:Ut.number()}).describe("The user's lat/lng coordinates from geocoding"),vendors:Ut.array(Ut.object({vendor_id:Ut.string(),notes:Ut.string().optional().describe("7-10 words on why this vendor was recommended. Be brief and concise - do not include unecessary details such as vendor names.")}))}).describe("Display vendor cards. Only vendor IDs needed - details enriched server-side, distances fetched client-side.");function GO({payload:e,serverEnriched:t,distanceMatrixToolId:a,invokeTool:n,messageContext:r}){let[o,i]=(0,Sr.useState)(),[l,s]=(0,Sr.useState)(!0),[u,c]=(0,Sr.useState)({}),d=(0,Sr.useRef)(!1),p=(0,Sr.useRef)(!1),f=(0,Sr.useMemo)(()=>e.vendors.map(S=>S.vendor_id).join(","),[e.vendors]),m=`${e.fromCoordinates.latitude},${e.fromCoordinates.longitude}`,w=t.vendorDetails?.success??!1,C=r?.getFeedback?.()?.notes;(0,Sr.useEffect)(()=>{if(!p.current&&C&&C.length>0){p.current=!0;let S={};for(let T of C)T.noteId&&(S[T.noteId]={rating:T.rating??null,commentText:T.comment??null,showComment:!1});c(S)}},[C]),(0,Sr.useEffect)(()=>{if(d.current)return;if(!n||!w){s(!1);return}(async()=>{d.current=!0;try{let T=t.vendorDetails?.data,I=e.vendors.map(O=>T?.[O.vendor_id]?.location?.coordinates??null).filter(Boolean);if(I.length===0){s(!1);return}let q=await n(a,{args:{origin:e.fromCoordinates,destinations:I}});i(q.success?{success:!0,data:q.data}:{success:!1})}catch(T){console.warn("[HybridVendorCards] Distance fetch failed:",T),i({success:!1})}finally{s(!1)}})()},[n,f,m,w,a,e,t]);let g=S=>u[S]||{rating:null,commentText:null,showComment:!1},x=(S,T)=>{c(I=>({...I,[S]:{...g(S),...T}}))},h=S=>{c(T=>{let{[S]:I,...q}=T;return q})},b=(S,T)=>{r?.submitFeedback?.({notes:[{noteId:S,...T}]})},L=S=>{let T=S/1609.34;return T<.1?"< 0.1 mi":`${T.toFixed(1)} mi`};if(!t||!t.vendorDetails)return(0,ce.jsx)("div",{children:"Loading vendor details..."});let y=t.vendorDetails?.data??{},_=o?.data??[];return(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[l&&(0,ce.jsx)("style",{children:"@keyframes hybrid-vendor-cards-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }"}),e.vendors.map((S,T)=>{let I=y[S.vendor_id],q=I?.names?.[0]?.value??"Unknown",O=I?.location?.address,F=_.find(ge=>ge.destinationIndex===T),P=F&&F.distanceMeters?L(F.distanceMeters):void 0,B=I?.financials?.fees?.find(ge=>ge.fee_type?.includes("Hourly"))?.amount,K=I?.avg_rating,se=I?.review_count,ue=I?.verification,Le=I?.quality_scores?.completeness_score,$=I?.subtype??[],Me=$.includes("In-Home")?"In-Home":$.includes("In-Center")?"In-Center":null,at=I?.references_and_background_check?.background_check_status?.toLowerCase(),E=at==="clear"||at==="completed";return(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.2rem",padding:"1rem",background:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"0.5rem",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",fontSize:"0.875rem",position:"relative"},children:[(0,ce.jsx)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,ce.jsx)("div",{style:{width:"2rem",height:"2rem",borderRadius:"9999px",background:"#bfd1f5",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"0.875rem",color:"#374151"},children:q.charAt(0).toUpperCase()}),(0,ce.jsx)("span",{style:{fontWeight:600,fontSize:"1rem",color:"#111827"},children:q})]})}),(se!=null||Le!=null)&&(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"#6b7280"},children:[K!=null&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("span",{style:{color:"#facc15"},children:"\u2605"}),(0,ce.jsx)("span",{children:K.toFixed(1)}),se!=null&&(0,ce.jsxs)("span",{style:{color:"#9ca3af"},children:["(",se," reviews)"]})]}),K!=null&&Le!=null?(0,ce.jsx)("span",{style:{color:"#9ca3af"},children:"\u2022"}):null,Le!=null?(0,ce.jsxs)("span",{children:["CN Score: ",Le]}):null]}),Me&&(0,ce.jsx)("div",{style:{color:"#6b7280"},children:Me}),O&&(0,ce.jsx)("div",{style:{color:"#6b7280"},children:O}),(0,ce.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280",minHeight:"1.25rem"},children:l?(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("span",{children:"\u{1F4CD}"}),(0,ce.jsx)("span",{style:{width:"100px",height:"0.875rem",background:"linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%)",backgroundSize:"200% 100%",animation:"hybrid-vendor-cards-shimmer 1.5s infinite",borderRadius:"0.25rem"}})]}):P?(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("span",{children:"\u{1F4CD}"}),(0,ce.jsxs)("span",{children:[P," from ",e.fromLocation]})]}):null}),B&&(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280"},children:[(0,ce.jsx)("span",{children:"\u{1F4B0}"}),(0,ce.jsxs)("span",{children:["Rate: $",B,"/hr"]})]}),S.notes&&(0,ce.jsxs)("div",{style:{color:"#374151",marginTop:"0.4rem"},children:[(0,ce.jsx)("span",{style:{marginRight:"0.25rem"},children:"\u2728"}),(0,ce.jsx)("strong",{children:"Recommendation notes"}),(0,ce.jsx)("div",{style:{marginLeft:"1.25rem",marginTop:"0.25rem",color:"#6b7280"},children:S.notes})]}),(()=>{let ge=g(S.vendor_id),bt=ge.rating==="positive",Y=ge.rating==="negative",k=R=>{g(S.vendor_id).rating===R?(h(S.vendor_id),b(S.vendor_id,{})):(x(S.vendor_id,{rating:R}),b(S.vendor_id,{rating:R,vendorId:S.vendor_id,vendorName:q}))},A=()=>{let R=g(S.vendor_id);x(S.vendor_id,{showComment:!R.showComment})},M=()=>{let N=g(S.vendor_id).commentText?.trim();N&&(x(S.vendor_id,{showComment:!1,commentText:N}),b(S.vendor_id,{comment:N,vendorId:S.vendor_id,vendorName:q}))};return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",alignItems:"center",minHeight:"1.75rem"},children:[ue?.verified&&(0,ce.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,ce.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Wellthy Verified"]}),E&&(0,ce.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,ce.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Background check"]}),r&&(0,ce.jsxs)("div",{style:{marginLeft:"auto",display:"flex",gap:"0.25rem",alignItems:"center"},children:[(0,ce.jsx)("button",{onClick:()=>k("positive"),style:{background:bt?"rgba(34, 197, 94, 0.1)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:bt?"#22c55e":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:"This vendor was helpful",children:(0,ce.jsx)(ki,{style:{width:"1rem",height:"1rem"}})}),(0,ce.jsx)("button",{onClick:()=>k("negative"),style:{background:Y?"rgba(239, 68, 68, 0.1)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:Y?"#ef4444":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:"This vendor was not helpful",children:(0,ce.jsx)(Ci,{style:{width:"1rem",height:"1rem"}})}),(()=>{let R=!!ge.commentText?.trim(),N=R?Ii:On;return(0,ce.jsx)("button",{onClick:A,style:{background:ge.showComment?"rgba(0, 0, 0, 0.05)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:R?"#3b82f6":ge.showComment?"#6b7280":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:R?"Edit comment":"Add comment",children:(0,ce.jsx)(N,{style:{width:"1rem",height:"1rem"}})})})()]})]}),ge.showComment&&(0,ce.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"#ffffff",borderTop:"1px solid #e5e7eb",borderRadius:"0 0 0.5rem 0.5rem",padding:"0.75rem 1rem",boxShadow:"0 -2px 8px rgba(0, 0, 0, 0.1)"},children:(0,ce.jsxs)("div",{style:{display:"flex",gap:"0.5rem",alignItems:"flex-start"},children:[(0,ce.jsx)("textarea",{placeholder:"Share your thoughts about this vendor...",value:ge.commentText??"",onChange:R=>x(S.vendor_id,{commentText:R.target.value}),rows:2,style:{flex:1,padding:"0.5rem",border:"1px solid #e5e7eb",borderRadius:"0.35rem",fontSize:"0.875rem",fontFamily:"inherit",resize:"none",minHeight:"50px"}}),(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.375rem"},children:[(0,ce.jsx)("button",{onClick:M,disabled:!ge.commentText?.trim(),style:{padding:"0.35rem 0.75rem",fontSize:"0.75rem",fontWeight:500,borderRadius:"0.3rem",cursor:ge.commentText?.trim()?"pointer":"not-allowed",background:"#3b82f6",border:"none",color:"#ffffff",opacity:ge.commentText?.trim()?1:.5},children:"Save"}),(0,ce.jsx)("button",{onClick:A,style:{padding:"0.25rem 0.5rem",fontSize:"0.75rem",fontWeight:500,background:"transparent",border:"none",color:"#9ca3af",cursor:"pointer"},children:"Cancel"})]})]})})]})})()]},S.vendor_id)})]})}var HZ=ne(yt(),1),Zk=ne(xe(),1),VZ=Ls({type:"object",description:"displaying a list of vendor cards. Use this widget to represent data from CareNetwork vendor search tool.",properties:{fromLocation:{type:"string",description:"The location the user is searching for"},fromCoordinates:{type:"object",description:"The location's lat/lng coordinates. This must come from the previous geocoding tool as-is - do NOT guess",properties:{latitude:{type:"number"},longitude:{type:"number"}},required:["latitude","longitude"]},vendors:{type:"array",items:{type:"object",properties:{vendor_id:{type:"string"},notes:{type:"string",description:"Give 7-10 words on why this vendor was recommended"},vendorCoordinates:{type:"object",description:"The lat/lng coordinates of this vendor. This must come from the vendor's location.coordinates from the previous vendor search tool - do NOT guess",properties:{latitude:{type:"number"},longitude:{type:"number"}},required:["latitude","longitude"]}},required:["vendor_id","vendorCoordinates"]}}},required:["fromLocation","fromCoordinates","vendors"]});var tr=ne(xe(),1),Iue=[Zh({widgetType:"person-card",schema:Ut.object({name:Ut.string(),photoUri:Ut.string().optional().describe("URL to a photo of the person"),details:Ut.record(Ut.string(),Ut.any()).optional()}).describe("showing a person card with name, photo and additional details"),render:e=>(0,tr.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",padding:"1rem",background:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"0.5rem",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"},children:(0,tr.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[e.photoUri&&(0,tr.jsx)("img",{src:e.photoUri,alt:e.name,style:{width:"3rem",height:"3rem",borderRadius:"9999px",objectFit:"cover",flexShrink:0},loading:"lazy"}),(0,tr.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,tr.jsx)("div",{style:{fontWeight:600,fontSize:"1rem",color:"#111827",marginBottom:"0.25rem"},children:e.name}),e.details?(0,tr.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Object.entries(e.details).map(([t,a])=>(0,tr.jsxs)("div",{style:{display:"flex",gap:"0.5rem",fontSize:"0.875rem"},children:[(0,tr.jsxs)("span",{style:{color:"#6b7280",fontWeight:500,minWidth:"fit-content"},children:[t,":"]}),(0,tr.jsx)("span",{style:{color:"#374151"},children:String(a)})]},t))}):null]})]})})}),Zh({widgetType:"link",schema:Ut.object({uri:Ut.string().url(),text:Ut.string().optional()}).describe("rendering a clickable link"),render:e=>(0,tr.jsx)("a",{href:e.uri,target:"_blank",rel:"noreferrer",style:{display:"inline-flex",alignItems:"center",padding:"0.5rem 0.75rem",background:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"0.375rem",color:"#3b82f6",textDecoration:"none",fontSize:"0.875rem",fontWeight:500,transition:"all 0.2s ease"},onMouseEnter:t=>{t.currentTarget.style.background="#e5e7eb",t.currentTarget.style.borderColor="#9ca3af",t.currentTarget.style.color="#2563eb"},onMouseLeave:t=>{t.currentTarget.style.background="#f3f4f6",t.currentTarget.style.borderColor="#d1d5db",t.currentTarget.style.color="#3b82f6"},children:e.text||e.uri})})];var WO=e=>{let t=e?"86dc78e28f933225750d9bcff7c94b18-CPgsswom7FkUYvplmy6H":"CPgsswom7FkUYvplmy6H",a=e?"82a0f402ed32bf51cfcb2c3baeb67d57-DwsbeKAxOctXSGgghvW8":"DwsbeKAxOctXSGgghvW8";return[Zh({widgetType:"vendor-cards",schema:VO,enrich:{vendorDetails:{toolId:t,inputs:{vendorIds:"${vendors|map('vendor_id')|join(',')}"}}},render:(n,r,{messageContext:o,invokeTool:i})=>(0,tr.jsx)(GO,{payload:n,serverEnriched:r,distanceMatrixToolId:a,invokeTool:i,messageContext:o})})]};var Vh=ne(xe(),1),Hk=class{constructor(t){this.container=null;this.root=null;this.config=t}async init(){if(await this.registerWidgetsIfNeeded(),this.container&&this.config.containerId&&this.container.id!==this.config.containerId&&this.destroy(),this.root&&this.container)return;if(this.config.containerId){if(this.container=document.getElementById(this.config.containerId),!this.container){console.error(`Container with id "${this.config.containerId}" not found`);return}}else this.config.anchor?.enabled?(this.container=document.createElement("div"),document.body.appendChild(this.container)):(this.container=document.createElement("div"),this.container.id="chat-widget-container",this.container.style.cssText=`
|
|
123
|
+
position: fixed;
|
|
124
|
+
bottom: 20px;
|
|
125
|
+
right: 20px;
|
|
126
|
+
width: 384px;
|
|
127
|
+
height: 500px;
|
|
128
|
+
z-index: 999999;
|
|
129
|
+
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
|
|
130
|
+
border-radius: 12px;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
`,document.body.appendChild(this.container));this.container&&(this.container.style.display="block"),this.root=(0,JO.createRoot)(this.container);let{containerId:t,...a}=this.config,n=a.anchor?.enabled?Hh:Ks;this.root.render((0,Vh.jsx)(n,{...a,openOverride:this.openOverride,onToggleOpen:r=>{this.openOverride=r,this.updateConfig({})}}))}destroy(){this.root&&(this.root.unmount(),this.root=null),this.container&&this.container.parentNode&&!this.config.containerId&&this.container.parentNode.removeChild(this.container),this.container&&this.config.containerId&&(this.container.innerHTML=""),this.container=null}updateConfig(t){let a=t.api?{...this.config.api,...t.api}:this.config.api;if(this.config={...this.config,...t,api:a},this.registerWidgetsIfNeeded(),this.root){let{containerId:n,...r}=this.config,o=r.anchor?.enabled?Hh:Ks;this.root.render((0,Vh.jsx)(o,{...r,openOverride:this.openOverride,onToggleOpen:i=>{this.openOverride=i,this.updateConfig({})}}))}}updateToken(t){this.updateConfig({api:{...this.config.api||{baseUrl:"",token:""},token:t}})}async registerWidgetsIfNeeded(){let t=this.config.widgets;if(!(!t||t.length===0)&&!(this.lastRegistered&&this.lastRegistered.threadId===this.config.threadId&&this.lastRegistered.widgets===t))try{await eh({api:this.config.api,threadId:this.config.threadId,widgets:t,onAuthError:this.config.onAuthError}),this.lastRegistered={threadId:this.config.threadId,widgets:t}}catch(a){console.error("Failed to register chat widgets",a)}}},Xe=null;window.ChatWidget={init:async e=>{Xe?Xe.updateConfig(e):Xe=new Hk(e),await Xe.init()},destroy:()=>{Xe&&(Xe.destroy(),Xe=null)},hide:()=>{Xe&&(Xe.openOverride=!1,Xe.container&&(Xe.container.style.display="block"),Xe.updateConfig({}))},show:()=>{if(Xe){if(Xe.openOverride=!0,Xe.container&&(Xe.container.style.display="block"),Xe.container&&Xe.container.children.length===0&&Xe.root){let{containerId:e,...t}=Xe.config,a=t.anchor?.enabled?Hh:Ks;Xe.root.render((0,Vh.jsx)(a,{...t,openOverride:Xe.openOverride,onToggleOpen:n=>{Xe.openOverride=n,Xe.updateConfig({})}}))}Xe.updateConfig({})}},updateConfig:e=>{Xe&&Xe.updateConfig(e)},updateToken:e=>{Xe&&Xe.updateToken(e)},getVendorCardsWidget:WO,createWidget:ZO};if(typeof window<"u"){let e=window.chatWidgetConfig;e&&window.ChatWidget.init(e).catch(console.error);let t=document.currentScript;if(t&&t.hasAttribute("data-config"))try{let a=JSON.parse(t.getAttribute("data-config")||"{}");window.ChatWidget.init(a).catch(console.error)}catch(a){console.error("Failed to parse chat widget config from data-config attribute:",a)}if(t&&t.hasAttribute("data-api-base-url")&&t.hasAttribute("data-token")&&t.hasAttribute("data-thread-id")&&t.hasAttribute("data-agent-id")){let a=t.getAttribute("data-agent-id"),n={api:{baseUrl:t.getAttribute("data-api-base-url")||"",token:t.getAttribute("data-token")||""},agentId:a,threadId:t.getAttribute("data-thread-id")||"",containerId:t.getAttribute("data-container-id")||void 0,title:t.getAttribute("data-title")||void 0,initialAssistantMessage:t.getAttribute("data-initial-assistant-message")||void 0,initialUserMessage:t.getAttribute("data-initial-user-message")||void 0},r=t.getAttribute("data-agent-version")||void 0,o=t.getAttribute("data-agent-execution-id")||void 0;if(r)if(r==="latest"||r==="published")n.agentVersion=r;else{let i=parseInt(r,10);isNaN(i)||(n.agentVersion=i)}if(o&&(n.agentExecutionId=o),t.getAttribute("data-anchor")==="true"&&(n.anchor={enabled:!0}),t.hasAttribute("data-headers"))try{let i=JSON.parse(t.getAttribute("data-headers")||"{}");n.api.headers=i}catch(i){console.error("Failed to parse headers from data-headers attribute:",i)}window.ChatWidget.init(n).catch(console.error)}}return tR(GZ);})();
|
|
133
|
+
/*! Bundled license information:
|
|
134
|
+
|
|
135
|
+
scheduler/cjs/scheduler.production.js:
|
|
136
|
+
(**
|
|
137
|
+
* @license React
|
|
138
|
+
* scheduler.production.js
|
|
139
|
+
*
|
|
140
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the MIT license found in the
|
|
143
|
+
* LICENSE file in the root directory of this source tree.
|
|
144
|
+
*)
|
|
145
|
+
|
|
146
|
+
react/cjs/react.production.js:
|
|
147
|
+
(**
|
|
148
|
+
* @license React
|
|
149
|
+
* react.production.js
|
|
150
|
+
*
|
|
151
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the MIT license found in the
|
|
154
|
+
* LICENSE file in the root directory of this source tree.
|
|
155
|
+
*)
|
|
156
|
+
|
|
157
|
+
react-dom/cjs/react-dom.production.js:
|
|
158
|
+
(**
|
|
159
|
+
* @license React
|
|
160
|
+
* react-dom.production.js
|
|
161
|
+
*
|
|
162
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the MIT license found in the
|
|
165
|
+
* LICENSE file in the root directory of this source tree.
|
|
166
|
+
*)
|
|
167
|
+
|
|
168
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
169
|
+
(**
|
|
170
|
+
* @license React
|
|
171
|
+
* react-dom-client.production.js
|
|
172
|
+
*
|
|
173
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the MIT license found in the
|
|
176
|
+
* LICENSE file in the root directory of this source tree.
|
|
177
|
+
*)
|
|
178
|
+
|
|
179
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
180
|
+
(**
|
|
181
|
+
* @license React
|
|
182
|
+
* react-jsx-runtime.production.js
|
|
183
|
+
*
|
|
184
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the MIT license found in the
|
|
187
|
+
* LICENSE file in the root directory of this source tree.
|
|
188
|
+
*)
|
|
189
|
+
|
|
190
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
191
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
192
|
+
lucide-react/dist/esm/Icon.js:
|
|
193
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
194
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
195
|
+
lucide-react/dist/esm/icons/circle-stop.js:
|
|
196
|
+
lucide-react/dist/esm/icons/message-square-text.js:
|
|
197
|
+
lucide-react/dist/esm/icons/message-square.js:
|
|
198
|
+
lucide-react/dist/esm/icons/mic-off.js:
|
|
199
|
+
lucide-react/dist/esm/icons/mic.js:
|
|
200
|
+
lucide-react/dist/esm/icons/send.js:
|
|
201
|
+
lucide-react/dist/esm/icons/thumbs-up.js:
|
|
202
|
+
lucide-react/dist/esm/icons/thumbs-down.js:
|
|
203
|
+
lucide-react/dist/esm/icons/x.js:
|
|
204
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
205
|
+
(**
|
|
206
|
+
* @license lucide-react v0.553.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*)
|
|
211
|
+
*/
|
|
212
|
+
//# sourceMappingURL=widget.global.js.map
|