@ensembleapp/client-sdk 0.0.38 → 0.0.39
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 +49 -12
- package/dist/index.js +454 -359
- package/dist/index.js.map +1 -1
- package/dist/widget/widget.global.d.ts +26 -0
- package/dist/widget/widget.global.js +210 -0
- package/dist/widget/widget.global.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/* Chat Widget - Embeddable chat widget */
|
|
2
|
+
"use strict";var ChatWidgetBundle=(()=>{var _O=Object.create;var gd=Object.defineProperty;var IO=Object.getOwnPropertyDescriptor;var kO=Object.getOwnPropertyNames;var CO=Object.getPrototypeOf,LO=Object.prototype.hasOwnProperty;var Fs=(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 Jt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vr=(e,t)=>{for(var a in t)gd(e,a,{get:t[a],enumerable:!0})},Ik=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of kO(t))!LO.call(e,r)&&r!==a&&gd(e,r,{get:()=>t[r],enumerable:!(n=IO(t,r))||n.enumerable});return e};var ce=(e,t,a)=>(a=e!=null?_O(CO(e)):{},Ik(t||!e||!e.__esModule?gd(a,"default",{value:e,enumerable:!0}):a,e)),TO=e=>Ik(gd({},"__esModule",{value:!0}),e);var zk=Jt(mt=>{"use strict";function Ph(e,t){var a=e.length;e.push(t);e:for(;0<a;){var n=a-1>>>1,r=e[n];if(0<vd(r,t))e[n]=t,e[a]=r,a=n;else break e}}function Er(e){return e.length===0?null:e[0]}function xd(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>vd(l,a))s<r&&0>vd(u,l)?(e[n]=u,e[s]=a,n=s):(e[n]=l,e[i]=a,n=i);else if(s<r&&0>vd(u,a))e[n]=u,e[s]=a,n=s;else break e}}return t}function vd(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}mt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(kk=performance,mt.unstable_now=function(){return kk.now()}):(zh=Date,Ck=zh.now(),mt.unstable_now=function(){return zh.now()-Ck});var kk,zh,Ck,Kr=[],zn=[],AO=1,Xa=null,ra=3,Uh=!1,qs=!1,Zs=!1,Nh=!1,Ak=typeof setTimeout=="function"?setTimeout:null,Ek=typeof clearTimeout=="function"?clearTimeout:null,Lk=typeof setImmediate<"u"?setImmediate:null;function yd(e){for(var t=Er(zn);t!==null;){if(t.callback===null)xd(zn);else if(t.startTime<=e)xd(zn),t.sortIndex=t.expirationTime,Ph(Kr,t);else break;t=Er(zn)}}function jh(e){if(Zs=!1,yd(e),!qs)if(Er(Kr)!==null)qs=!0,Ui||(Ui=!0,Pi());else{var t=Er(zn);t!==null&&Bh(jh,t.startTime-e)}}var Ui=!1,Hs=-1,$k=5,Mk=-1;function Dk(){return Nh?!0:!(mt.unstable_now()-Mk<$k)}function Oh(){if(Nh=!1,Ui){var e=mt.unstable_now();Mk=e;var t=!0;try{e:{qs=!1,Zs&&(Zs=!1,Ek(Hs),Hs=-1),Uh=!0;var a=ra;try{t:{for(yd(e),Xa=Er(Kr);Xa!==null&&!(Xa.expirationTime>e&&Dk());){var n=Xa.callback;if(typeof n=="function"){Xa.callback=null,ra=Xa.priorityLevel;var r=n(Xa.expirationTime<=e);if(e=mt.unstable_now(),typeof r=="function"){Xa.callback=r,yd(e),t=!0;break t}Xa===Er(Kr)&&xd(Kr),yd(e)}else xd(Kr);Xa=Er(Kr)}if(Xa!==null)t=!0;else{var o=Er(zn);o!==null&&Bh(jh,o.startTime-e),t=!1}}break e}finally{Xa=null,ra=a,Uh=!1}t=void 0}}finally{t?Pi():Ui=!1}}}var Pi;typeof Lk=="function"?Pi=function(){Lk(Oh)}:typeof MessageChannel<"u"?(Rh=new MessageChannel,Tk=Rh.port2,Rh.port1.onmessage=Oh,Pi=function(){Tk.postMessage(null)}):Pi=function(){Ak(Oh,0)};var Rh,Tk;function Bh(e,t){Hs=Ak(function(){e(mt.unstable_now())},t)}mt.unstable_IdlePriority=5;mt.unstable_ImmediatePriority=1;mt.unstable_LowPriority=4;mt.unstable_NormalPriority=3;mt.unstable_Profiling=null;mt.unstable_UserBlockingPriority=2;mt.unstable_cancelCallback=function(e){e.callback=null};mt.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"):$k=0<e?Math.floor(1e3/e):5};mt.unstable_getCurrentPriorityLevel=function(){return ra};mt.unstable_next=function(e){switch(ra){case 1:case 2:case 3:var t=3;break;default:t=ra}var a=ra;ra=t;try{return e()}finally{ra=a}};mt.unstable_requestPaint=function(){Nh=!0};mt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=ra;ra=e;try{return t()}finally{ra=a}};mt.unstable_scheduleCallback=function(e,t,a){var n=mt.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:AO++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>n?(e.sortIndex=a,Ph(zn,e),Er(Kr)===null&&e===Er(zn)&&(Zs?(Ek(Hs),Hs=-1):Zs=!0,Bh(jh,a-n))):(e.sortIndex=r,Ph(Kr,e),qs||Uh||(qs=!0,Ui||(Ui=!0,Pi()))),e};mt.unstable_shouldYield=Dk;mt.unstable_wrapCallback=function(e){var t=ra;return function(){var a=ra;ra=t;try{return e.apply(this,arguments)}finally{ra=a}}}});var Rk=Jt((_Z,Ok)=>{"use strict";Ok.exports=zk()});var Gk=Jt(xe=>{"use strict";var Zh=Symbol.for("react.transitional.element"),EO=Symbol.for("react.portal"),$O=Symbol.for("react.fragment"),MO=Symbol.for("react.strict_mode"),DO=Symbol.for("react.profiler"),zO=Symbol.for("react.consumer"),OO=Symbol.for("react.context"),RO=Symbol.for("react.forward_ref"),PO=Symbol.for("react.suspense"),UO=Symbol.for("react.memo"),Bk=Symbol.for("react.lazy"),NO=Symbol.for("react.activity"),Pk=Symbol.iterator;function jO(e){return e===null||typeof e!="object"?null:(e=Pk&&e[Pk]||e["@@iterator"],typeof e=="function"?e:null)}var Fk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qk=Object.assign,Zk={};function ji(e,t,a){this.props=e,this.context=t,this.refs=Zk,this.updater=a||Fk}ji.prototype.isReactComponent={};ji.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")};ji.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hk(){}Hk.prototype=ji.prototype;function Hh(e,t,a){this.props=e,this.context=t,this.refs=Zk,this.updater=a||Fk}var Vh=Hh.prototype=new Hk;Vh.constructor=Hh;qk(Vh,ji.prototype);Vh.isPureReactComponent=!0;var Uk=Array.isArray;function qh(){}var ot={H:null,A:null,T:null,S:null},Vk=Object.prototype.hasOwnProperty;function Gh(e,t,a){var n=a.ref;return{$$typeof:Zh,type:e,key:t,ref:n!==void 0?n:null,props:a}}function BO(e,t){return Gh(e.type,t,e.props)}function Wh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zh}function FO(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Nk=/\/+/g;function Fh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?FO(""+e.key):t.toString(36)}function qO(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(qh,qh):(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 Ni(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 Zh:case EO:i=!0;break;case Bk:return i=e._init,Ni(i(e._payload),t,a,n,r)}}if(i)return r=r(e),i=n===""?"."+Fh(e,0):n,Uk(r)?(a="",i!=null&&(a=i.replace(Nk,"$&/")+"/"),Ni(r,t,a,"",function(u){return u})):r!=null&&(Wh(r)&&(r=BO(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Nk,"$&/")+"/")+i)),t.push(r)),1;i=0;var l=n===""?".":n+":";if(Uk(e))for(var s=0;s<e.length;s++)n=e[s],o=l+Fh(n,s),i+=Ni(n,t,a,o,r);else if(s=jO(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,o=l+Fh(n,s++),i+=Ni(n,t,a,o,r);else if(o==="object"){if(typeof e.then=="function")return Ni(qO(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 bd(e,t,a){if(e==null)return e;var n=[],r=0;return Ni(e,n,"","",function(o){return t.call(a,o,r++)}),n}function ZO(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 jk=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)},HO={map:bd,forEach:function(e,t,a){bd(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return bd(e,function(){t++}),t},toArray:function(e){return bd(e,function(t){return t})||[]},only:function(e){if(!Wh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Activity=NO;xe.Children=HO;xe.Component=ji;xe.Fragment=$O;xe.Profiler=DO;xe.PureComponent=Hh;xe.StrictMode=MO;xe.Suspense=PO;xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ot;xe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ot.H.useMemoCache(e)}};xe.cache=function(e){return function(){return e.apply(null,arguments)}};xe.cacheSignal=function(){return null};xe.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=qk({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!Vk.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 Gh(e.type,r,n)};xe.createContext=function(e){return e={$$typeof:OO,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:zO,_context:e},e};xe.createElement=function(e,t,a){var n,r={},o=null;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)Vk.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 Gh(e,o,r)};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:RO,render:e}};xe.isValidElement=Wh;xe.lazy=function(e){return{$$typeof:Bk,_payload:{_status:-1,_result:e},_init:ZO}};xe.memo=function(e,t){return{$$typeof:UO,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=ot.T,a={};ot.T=a;try{var n=e(),r=ot.S;r!==null&&r(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(qh,jk)}catch(o){jk(o)}finally{t!==null&&a.types!==null&&(t.types=a.types),ot.T=t}};xe.unstable_useCacheRefresh=function(){return ot.H.useCacheRefresh()};xe.use=function(e){return ot.H.use(e)};xe.useActionState=function(e,t,a){return ot.H.useActionState(e,t,a)};xe.useCallback=function(e,t){return ot.H.useCallback(e,t)};xe.useContext=function(e){return ot.H.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e,t){return ot.H.useDeferredValue(e,t)};xe.useEffect=function(e,t){return ot.H.useEffect(e,t)};xe.useEffectEvent=function(e){return ot.H.useEffectEvent(e)};xe.useId=function(){return ot.H.useId()};xe.useImperativeHandle=function(e,t,a){return ot.H.useImperativeHandle(e,t,a)};xe.useInsertionEffect=function(e,t){return ot.H.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return ot.H.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return ot.H.useMemo(e,t)};xe.useOptimistic=function(e,t){return ot.H.useOptimistic(e,t)};xe.useReducer=function(e,t,a){return ot.H.useReducer(e,t,a)};xe.useRef=function(e){return ot.H.useRef(e)};xe.useState=function(e){return ot.H.useState(e)};xe.useSyncExternalStore=function(e,t,a){return ot.H.useSyncExternalStore(e,t,a)};xe.useTransition=function(){return ot.H.useTransition()};xe.version="19.2.4"});var bt=Jt((kZ,Wk)=>{"use strict";Wk.exports=Gk()});var Xk=Jt(ua=>{"use strict";var VO=bt();function Jk(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 On(){}var sa={d:{f:On,r:function(){throw Error(Jk(522))},D:On,C:On,L:On,m:On,X:On,S:On,M:On},p:0,findDOMNode:null},GO=Symbol.for("react.portal");function WO(e,t,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:GO,key:n==null?null:""+n,children:e,containerInfo:t,implementation:a}}var Vs=VO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Sd(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ua.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=sa;ua.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(Jk(299));return WO(e,t,null,a)};ua.flushSync=function(e){var t=Vs.T,a=sa.p;try{if(Vs.T=null,sa.p=2,e)return e()}finally{Vs.T=t,sa.p=a,sa.d.f()}};ua.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,sa.d.C(e,t))};ua.prefetchDNS=function(e){typeof e=="string"&&sa.d.D(e)};ua.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,n=Sd(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?sa.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:r,fetchPriority:o}):a==="script"&&sa.d.X(e,{crossOrigin:n,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ua.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Sd(t.as,t.crossOrigin);sa.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&&sa.d.M(e)};ua.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,n=Sd(a,t.crossOrigin);sa.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})}};ua.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Sd(t.as,t.crossOrigin);sa.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 sa.d.m(e)};ua.requestFormReset=function(e){sa.d.r(e)};ua.unstable_batchedUpdates=function(e,t){return e(t)};ua.useFormState=function(e,t,a){return Vs.H.useFormState(e,t,a)};ua.useFormStatus=function(){return Vs.H.useHostTransitionStatus()};ua.version="19.2.4"});var Qk=Jt((LZ,Yk)=>{"use strict";function Kk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kk)}catch(e){console.error(e)}}Kk(),Yk.exports=Xk()});var dT=Jt(Gf=>{"use strict";var jt=Rk(),kC=bt(),JO=Qk();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 CC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mu(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 LC(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 TC(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 e0(e){if(Mu(e)!==e)throw Error(j(188))}function XO(e){var t=e.alternate;if(!t){if(t=Mu(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 e0(r),e;if(o===n)return e0(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 AC(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=AC(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,KO=Symbol.for("react.element"),wd=Symbol.for("react.transitional.element"),eu=Symbol.for("react.portal"),Vi=Symbol.for("react.fragment"),EC=Symbol.for("react.strict_mode"),Tg=Symbol.for("react.profiler"),$C=Symbol.for("react.consumer"),on=Symbol.for("react.context"),_v=Symbol.for("react.forward_ref"),Ag=Symbol.for("react.suspense"),Eg=Symbol.for("react.suspense_list"),Iv=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),$g=Symbol.for("react.activity"),YO=Symbol.for("react.memo_cache_sentinel"),t0=Symbol.iterator;function Gs(e){return e===null||typeof e!="object"?null:(e=t0&&e[t0]||e["@@iterator"],typeof e=="function"?e:null)}var QO=Symbol.for("react.client.reference");function Mg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===QO?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vi:return"Fragment";case Tg:return"Profiler";case EC:return"StrictMode";case Ag:return"Suspense";case Eg:return"SuspenseList";case $g:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case eu:return"Portal";case on:return e.displayName||"Context";case $C:return(e._context.displayName||"Context")+".Consumer";case _v:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Iv:return t=e.displayName||null,t!==null?t:Mg(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return Mg(e(t))}catch{}}return null}var tu=Array.isArray,ge=kC.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fe=JO.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qo={pending:!1,data:null,method:null,action:null},Dg=[],Gi=-1;function Or(e){return{current:e}}function Ht(e){0>Gi||(e.current=Dg[Gi],Dg[Gi]=null,Gi--)}function at(e,t){Gi++,Dg[Gi]=e.current,e.current=t}var zr=Or(null),yu=Or(null),Gn=Or(null),tf=Or(null);function af(e,t){switch(at(Gn,t),at(yu,e),at(zr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sC(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sC(t),e=KL(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ht(zr),at(zr,e)}function dl(){Ht(zr),Ht(yu),Ht(Gn)}function zg(e){e.memoizedState!==null&&at(tf,e);var t=zr.current,a=KL(t,e.type);t!==a&&(at(yu,e),at(zr,a))}function rf(e){yu.current===e&&(Ht(zr),Ht(yu)),tf.current===e&&(Ht(tf),Au._currentValue=qo)}var Jh,a0;function No(e){if(Jh===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Jh=t&&t[1]||"",a0=-1<a.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+Jh+e+a0}var Xh=!1;function Kh(e,t){if(!e||Xh)return"";Xh=!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{Xh=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?No(a):""}function eR(e,t){switch(e.tag){case 26:case 27:case 5:return No(e.type);case 16:return No("Lazy");case 13:return e.child!==t&&t!==null?No("Suspense Fallback"):No("Suspense");case 19:return No("SuspenseList");case 0:case 15:return Kh(e.type,!1);case 11:return Kh(e.type.render,!1);case 1:return Kh(e.type,!0);case 31:return No("Activity");default:return""}}function r0(e){try{var t="",a=null;do t+=eR(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
8
|
+
Error generating stack: `+n.message+`
|
|
9
|
+
`+n.stack}}var Og=Object.prototype.hasOwnProperty,kv=jt.unstable_scheduleCallback,Yh=jt.unstable_cancelCallback,tR=jt.unstable_shouldYield,aR=jt.unstable_requestPaint,Oa=jt.unstable_now,rR=jt.unstable_getCurrentPriorityLevel,MC=jt.unstable_ImmediatePriority,DC=jt.unstable_UserBlockingPriority,nf=jt.unstable_NormalPriority,nR=jt.unstable_LowPriority,zC=jt.unstable_IdlePriority,oR=jt.log,iR=jt.unstable_setDisableYieldValue,Du=null,Ra=null;function Fn(e){if(typeof oR=="function"&&iR(e),Ra&&typeof Ra.setStrictMode=="function")try{Ra.setStrictMode(Du,e)}catch{}}var Pa=Math.clz32?Math.clz32:uR,lR=Math.log,sR=Math.LN2;function uR(e){return e>>>=0,e===0?32:31-(lR(e)/sR|0)|0}var _d=256,Id=262144,kd=4194304;function jo(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 $f(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=jo(n):(i&=l,i!==0?r=jo(i):a||(a=l&~e,a!==0&&(r=jo(a))))):(l=n&~o,l!==0?r=jo(l):i!==0?r=jo(i):a||(a=n&~e,a!==0&&(r=jo(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 zu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cR(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 OC(){var e=kd;return kd<<=1,(kd&62914560)===0&&(kd=4194304),e}function Qh(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ou(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dR(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-Pa(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&&RC(e,n,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function RC(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Pa(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function PC(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Pa(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function UC(e,t){var a=t&-t;return a=(a&42)!==0?1:Cv(a),(a&(e.suspendedLanes|t))!==0?0:a}function Cv(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 Lv(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function NC(){var e=Fe.p;return e!==0?e:(e=window.event,e===void 0?32:sT(e.type))}function n0(e,t){var a=Fe.p;try{return Fe.p=e,t()}finally{Fe.p=a}}var io=Math.random().toString(36).slice(2),Kt="__reactFiber$"+io,wa="__reactProps$"+io,wl="__reactContainer$"+io,Rg="__reactEvents$"+io,fR="__reactListeners$"+io,pR="__reactHandles$"+io,o0="__reactResources$"+io,Ru="__reactMarker$"+io;function Tv(e){delete e[Kt],delete e[wa],delete e[Rg],delete e[fR],delete e[pR]}function Wi(e){var t=e[Kt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[wl]||a[Kt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=pC(e);e!==null;){if(a=e[Kt])return a;e=pC(e)}return t}e=a,a=e.parentNode}return null}function _l(e){if(e=e[Kt]||e[wl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function au(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(j(33))}function nl(e){var t=e[o0];return t||(t=e[o0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Zt(e){e[Ru]=!0}var jC=new Set,BC={};function Qo(e,t){fl(e,t),fl(e+"Capture",t)}function fl(e,t){for(BC[e]=t,e=0;e<t.length;e++)jC.add(t[e])}var mR=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]*$"),i0={},l0={};function hR(e){return Og.call(l0,e)?!0:Og.call(i0,e)?!1:mR.test(e)?l0[e]=!0:(i0[e]=!0,!1)}function jd(e,t,a){if(hR(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 Cd(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 Yr(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 Ya(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gR(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 Pg(e){if(!e._valueTracker){var t=FC(e)?"checked":"value";e._valueTracker=gR(e,t,""+e[t])}}function qC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=FC(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function of(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 vR=/[\n"\\]/g;function tr(e){return e.replace(vR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ug(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=""+Ya(t)):e.value!==""+Ya(t)&&(e.value=""+Ya(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Ng(e,i,Ya(t)):a!=null?Ng(e,i,Ya(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=""+Ya(l):e.removeAttribute("name")}function ZC(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)){Pg(e);return}a=a!=null?""+Ya(a):"",t=t!=null?""+Ya(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),Pg(e)}function Ng(e,t,a){t==="number"&&of(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ol(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=""+Ya(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 HC(e,t,a){if(t!=null&&(t=""+Ya(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ya(a):""}function VC(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(j(92));if(tu(n)){if(1<n.length)throw Error(j(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ya(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Pg(e)}function pl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var yR=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 s0(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||yR.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function GC(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&&s0(e,r,n)}else for(var o in t)t.hasOwnProperty(o)&&s0(e,o,t[o])}function Av(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 xR=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"]]),bR=/^[\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 Bd(e){return bR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ln(){}var jg=null;function Ev(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ji=null,il=null;function u0(e){var t=_l(e);if(t&&(e=t.stateNode)){var a=e[wa]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ug(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="'+tr(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[wa]||null;if(!r)throw Error(j(90));Ug(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&&qC(n)}break e;case"textarea":HC(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ol(e,!!a.multiple,t,!1)}}}var eg=!1;function WC(e,t,a){if(eg)return e(t,a);eg=!0;try{var n=e(t);return n}finally{if(eg=!1,(Ji!==null||il!==null)&&(qf(),Ji&&(t=Ji,e=il,il=Ji=null,u0(t),e)))for(t=0;t<e.length;t++)u0(e[t])}}function xu(e,t){var a=e.stateNode;if(a===null)return null;var n=a[wa]||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 fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bg=!1;if(fn)try{Bi={},Object.defineProperty(Bi,"passive",{get:function(){Bg=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{Bg=!1}var Bi,qn=null,$v=null,Fd=null;function JC(){if(Fd)return Fd;var e,t=$v,a=t.length,n,r="value"in qn?qn.value:qn.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 Fd=r.slice(e,1<n?1-n:void 0)}function qd(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 Ld(){return!0}function c0(){return!1}function _a(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)?Ld:c0,this.isPropagationStopped=c0,this}return st(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=Ld)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ld)},persist:function(){},isPersistent:Ld}),t}var ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mf=_a(ei),Pu=st({},ei,{view:0,detail:0}),SR=_a(Pu),tg,ag,Ws,Df=st({},Pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mv,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!==Ws&&(Ws&&e.type==="mousemove"?(tg=e.screenX-Ws.screenX,ag=e.screenY-Ws.screenY):ag=tg=0,Ws=e),tg)},movementY:function(e){return"movementY"in e?e.movementY:ag}}),d0=_a(Df),wR=st({},Df,{dataTransfer:0}),_R=_a(wR),IR=st({},Pu,{relatedTarget:0}),rg=_a(IR),kR=st({},ei,{animationName:0,elapsedTime:0,pseudoElement:0}),CR=_a(kR),LR=st({},ei,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TR=_a(LR),AR=st({},ei,{data:0}),f0=_a(AR),ER={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$R={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"},MR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MR[e])?!!t[e]:!1}function Mv(){return DR}var zR=st({},Pu,{key:function(e){if(e.key){var t=ER[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$R[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mv,charCode:function(e){return e.type==="keypress"?qd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),OR=_a(zR),RR=st({},Df,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),p0=_a(RR),PR=st({},Pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mv}),UR=_a(PR),NR=st({},ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),jR=_a(NR),BR=st({},Df,{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}),FR=_a(BR),qR=st({},ei,{newState:0,oldState:0}),ZR=_a(qR),HR=[9,13,27,32],Dv=fn&&"CompositionEvent"in window,ou=null;fn&&"documentMode"in document&&(ou=document.documentMode);var VR=fn&&"TextEvent"in window&&!ou,XC=fn&&(!Dv||ou&&8<ou&&11>=ou),m0=" ",h0=!1;function KC(e,t){switch(e){case"keyup":return HR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function YC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xi=!1;function GR(e,t){switch(e){case"compositionend":return YC(t);case"keypress":return t.which!==32?null:(h0=!0,m0);case"textInput":return e=t.data,e===m0&&h0?null:e;default:return null}}function WR(e,t){if(Xi)return e==="compositionend"||!Dv&&KC(e,t)?(e=JC(),Fd=$v=qn=null,Xi=!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 XC&&t.locale!=="ko"?null:t.data;default:return null}}var JR={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 g0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JR[e.type]:t==="textarea"}function QC(e,t,a,n){Ji?il?il.push(n):il=[n]:Ji=n,t=If(t,"onChange"),0<t.length&&(a=new Mf("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var iu=null,bu=null;function XR(e){WL(e,0)}function zf(e){var t=au(e);if(qC(t))return e}function v0(e,t){if(e==="change")return t}var e1=!1;fn&&(fn?(Ad="oninput"in document,Ad||(ng=document.createElement("div"),ng.setAttribute("oninput","return;"),Ad=typeof ng.oninput=="function"),Td=Ad):Td=!1,e1=Td&&(!document.documentMode||9<document.documentMode));var Td,Ad,ng;function y0(){iu&&(iu.detachEvent("onpropertychange",t1),bu=iu=null)}function t1(e){if(e.propertyName==="value"&&zf(bu)){var t=[];QC(t,bu,e,Ev(e)),WC(XR,t)}}function KR(e,t,a){e==="focusin"?(y0(),iu=t,bu=a,iu.attachEvent("onpropertychange",t1)):e==="focusout"&&y0()}function YR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zf(bu)}function QR(e,t){if(e==="click")return zf(t)}function e4(e,t){if(e==="input"||e==="change")return zf(t)}function t4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Na=typeof Object.is=="function"?Object.is:t4;function Su(e,t){if(Na(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(!Og.call(t,r)||!Na(e[r],t[r]))return!1}return!0}function x0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function b0(e,t){var a=x0(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=x0(a)}}function a1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?a1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function r1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=of(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=of(e.document)}return t}function zv(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=fn&&"documentMode"in document&&11>=document.documentMode,Ki=null,Fg=null,lu=null,qg=!1;function S0(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;qg||Ki==null||Ki!==of(n)||(n=Ki,"selectionStart"in n&&zv(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}),lu&&Su(lu,n)||(lu=n,n=If(Fg,"onSelect"),0<n.length&&(t=new Mf("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ki)))}function Uo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Yi={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionrun:Uo("Transition","TransitionRun"),transitionstart:Uo("Transition","TransitionStart"),transitioncancel:Uo("Transition","TransitionCancel"),transitionend:Uo("Transition","TransitionEnd")},og={},n1={};fn&&(n1=document.createElement("div").style,"AnimationEvent"in window||(delete Yi.animationend.animation,delete Yi.animationiteration.animation,delete Yi.animationstart.animation),"TransitionEvent"in window||delete Yi.transitionend.transition);function ti(e){if(og[e])return og[e];if(!Yi[e])return e;var t=Yi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in n1)return og[e]=t[a];return e}var o1=ti("animationend"),i1=ti("animationiteration"),l1=ti("animationstart"),r4=ti("transitionrun"),n4=ti("transitionstart"),o4=ti("transitioncancel"),s1=ti("transitionend"),u1=new Map,Zg="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(" ");Zg.push("scrollEnd");function Sr(e,t){u1.set(e,t),Qo(t,[e])}var lf=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)},Ka=[],Qi=0,Ov=0;function Of(){for(var e=Qi,t=Ov=Qi=0;t<e;){var a=Ka[t];Ka[t++]=null;var n=Ka[t];Ka[t++]=null;var r=Ka[t];Ka[t++]=null;var o=Ka[t];if(Ka[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&&c1(a,r,o)}}function Rf(e,t,a,n){Ka[Qi++]=e,Ka[Qi++]=t,Ka[Qi++]=a,Ka[Qi++]=n,Ov|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Rv(e,t,a,n){return Rf(e,t,a,n),sf(e)}function ai(e,t){return Rf(e,null,null,t),sf(e)}function c1(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-Pa(a),e=o.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),o):null}function sf(e){if(50<gu)throw gu=0,dv=null,Error(j(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var el={};function i4(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 Da(e,t,a,n){return new i4(e,t,a,n)}function Pv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var a=e.alternate;return a===null?(a=Da(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 Zd(e,t,a,n,r,o){var i=0;if(n=e,typeof e=="function")Pv(e)&&(i=1);else if(typeof e=="string")i=uP(e,a,zr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $g:return e=Da(31,a,t,r),e.elementType=$g,e.lanes=o,e;case Vi:return Zo(a.children,r,o,t);case EC:i=8,r|=24;break;case Tg:return e=Da(12,a,t,r|2),e.elementType=Tg,e.lanes=o,e;case Ag:return e=Da(13,a,t,r),e.elementType=Ag,e.lanes=o,e;case Eg:return e=Da(19,a,t,r),e.elementType=Eg,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case on:i=10;break e;case $C:i=9;break e;case _v:i=11;break e;case Iv:i=14;break e;case Rn:i=16,n=null;break e}i=29,a=Error(j(130,e===null?"null":typeof e,"")),n=null}return t=Da(i,a,t,r),t.elementType=e,t.type=n,t.lanes=o,t}function Zo(e,t,a,n){return e=Da(7,e,n,t),e.lanes=a,e}function ig(e,t,a){return e=Da(6,e,null,t),e.lanes=a,e}function f1(e){var t=Da(18,null,null,0);return t.stateNode=e,t}function lg(e,t,a){return t=Da(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var w0=new WeakMap;function ar(e,t){if(typeof e=="object"&&e!==null){var a=w0.get(e);return a!==void 0?a:(t={value:e,source:t,stack:r0(t)},w0.set(e,t),t)}return{value:e,source:t,stack:r0(t)}}var tl=[],al=0,uf=null,wu=0,Qa=[],er=0,ao=null,$r=1,Mr="";function rn(e,t){tl[al++]=wu,tl[al++]=uf,uf=e,wu=t}function p1(e,t,a){Qa[er++]=$r,Qa[er++]=Mr,Qa[er++]=ao,ao=e;var n=$r;e=Mr;var r=32-Pa(n)-1;n&=~(1<<r),a+=1;var o=32-Pa(t)+r;if(30<o){var i=r-r%5;o=(n&(1<<i)-1).toString(32),n>>=i,r-=i,$r=1<<32-Pa(t)+r|a<<r|n,Mr=o+e}else $r=1<<o|a<<r|n,Mr=e}function Uv(e){e.return!==null&&(rn(e,1),p1(e,1,0))}function Nv(e){for(;e===uf;)uf=tl[--al],tl[al]=null,wu=tl[--al],tl[al]=null;for(;e===ao;)ao=Qa[--er],Qa[er]=null,Mr=Qa[--er],Qa[er]=null,$r=Qa[--er],Qa[er]=null}function m1(e,t){Qa[er++]=$r,Qa[er++]=Mr,Qa[er++]=ao,$r=t.id,Mr=t.overflow,ao=e}var Yt=null,lt=null,Pe=!1,Wn=null,rr=!1,Hg=Error(j(519));function ro(e){var t=Error(j(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _u(ar(t,e)),Hg}function _0(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Kt]=e,t[wa]=n,a){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(a=0;a<Lu.length;a++)Me(Lu[a],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),ZC(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),VC(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||XL(t.textContent,a)?(n.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),n.onScroll!=null&&Me("scroll",t),n.onScrollEnd!=null&&Me("scrollend",t),n.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||ro(e,!0)}function I0(e){for(Yt=e.return;Yt;)switch(Yt.tag){case 5:case 31:case 13:rr=!1;return;case 27:case 3:rr=!0;return;default:Yt=Yt.return}}function Fi(e){if(e!==Yt)return!1;if(!Pe)return I0(e),Pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||gv(e.type,e.memoizedProps)),a=!a),a&<&&ro(e),I0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));lt=fC(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));lt=fC(e)}else t===27?(t=lt,lo(e.type)?(e=bv,bv=null,lt=e):lt=t):lt=Yt?or(e.stateNode.nextSibling):null;return!0}function Wo(){lt=Yt=null,Pe=!1}function sg(){var e=Wn;return e!==null&&(ba===null?ba=e:ba.push.apply(ba,e),Wn=null),e}function _u(e){Wn===null?Wn=[e]:Wn.push(e)}var Vg=Or(null),ri=null,sn=null;function Un(e,t,a){at(Vg,t._currentValue),t._currentValue=a}function cn(e){e._currentValue=Vg.current,Ht(Vg)}function Gg(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 Wg(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),Gg(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),Gg(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 Il(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;Na(r.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(r===tf.current){if(i=r.alternate,i===null)throw Error(j(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Au):e=[Au])}r=r.return}e!==null&&Wg(t,e,a,n),t.flags|=262144}function cf(e){for(e=e.firstContext;e!==null;){if(!Na(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jo(e){ri=e,sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qt(e){return h1(ri,e)}function Ed(e,t){return ri===null&&Jo(e),h1(e,t)}function h1(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},sn===null){if(e===null)throw Error(j(308));sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sn=sn.next=t;return a}var l4=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()})}},s4=jt.unstable_scheduleCallback,u4=jt.unstable_NormalPriority,zt={$$typeof:on,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jv(){return{controller:new l4,data:new Map,refCount:0}}function Uu(e){e.refCount--,e.refCount===0&&s4(u4,function(){e.controller.abort()})}var su=null,Jg=0,ml=0,ll=null;function c4(e,t){if(su===null){var a=su=[];Jg=0,ml=dy(),ll={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Jg++,t.then(k0,k0),t}function k0(){if(--Jg===0&&su!==null){ll!==null&&(ll.status="fulfilled");var e=su;su=null,ml=0,ll=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function d4(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 C0=ge.S;ge.S=function(e,t){AL=Oa(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&c4(e,t),C0!==null&&C0(e,t)};var Ho=Or(null);function Bv(){var e=Ho.current;return e!==null?e:et.pooledCache}function Hd(e,t){t===null?at(Ho,Ho.current):at(Ho,t.pool)}function g1(){var e=Bv();return e===null?null:{parent:zt._currentValue,pool:e}}var kl=Error(j(460)),Fv=Error(j(474)),Pf=Error(j(542)),df={then:function(){}};function L0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function v1(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ln,ln),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A0(e),e;default:if(typeof t.status=="string")t.then(ln,ln);else{if(e=et,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,A0(e),e}throw Vo=t,kl}}function Bo(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Vo=a,kl):a}}var Vo=null;function T0(){if(Vo===null)throw Error(j(459));var e=Vo;return Vo=null,e}function A0(e){if(e===kl||e===Pf)throw Error(j(483))}var sl=null,Iu=0;function $d(e){var t=Iu;return Iu+=1,sl===null&&(sl=[]),v1(sl,e,t)}function Js(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Md(e,t){throw t.$$typeof===KO?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function y1(e){function t(h,x){if(e){var g=h.deletions;g===null?(h.deletions=[x],h.flags|=16):g.push(x)}}function a(h,x){if(!e)return null;for(;x!==null;)t(h,x),x=x.sibling;return null}function n(h){for(var x=new Map;h!==null;)h.key!==null?x.set(h.key,h):x.set(h.index,h),h=h.sibling;return x}function r(h,x){return h=un(h,x),h.index=0,h.sibling=null,h}function o(h,x,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<x?(h.flags|=67108866,x):g):(h.flags|=67108866,x)):(h.flags|=1048576,x)}function i(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function l(h,x,g,S){return x===null||x.tag!==6?(x=ig(g,h.mode,S),x.return=h,x):(x=r(x,g),x.return=h,x)}function s(h,x,g,S){var L=g.type;return L===Vi?c(h,x,g.props.children,S,g.key):x!==null&&(x.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Rn&&Bo(L)===x.type)?(x=r(x,g.props),Js(x,g),x.return=h,x):(x=Zd(g.type,g.key,g.props,null,h.mode,S),Js(x,g),x.return=h,x)}function u(h,x,g,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==g.containerInfo||x.stateNode.implementation!==g.implementation?(x=lg(g,h.mode,S),x.return=h,x):(x=r(x,g.children||[]),x.return=h,x)}function c(h,x,g,S,L){return x===null||x.tag!==7?(x=Zo(g,h.mode,S,L),x.return=h,x):(x=r(x,g),x.return=h,x)}function d(h,x,g){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=ig(""+x,h.mode,g),x.return=h,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case wd:return g=Zd(x.type,x.key,x.props,null,h.mode,g),Js(g,x),g.return=h,g;case eu:return x=lg(x,h.mode,g),x.return=h,x;case Rn:return x=Bo(x),d(h,x,g)}if(tu(x)||Gs(x))return x=Zo(x,h.mode,g,null),x.return=h,x;if(typeof x.then=="function")return d(h,$d(x),g);if(x.$$typeof===on)return d(h,Ed(h,x),g);Md(h,x)}return null}function p(h,x,g,S){var L=x!==null?x.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return L!==null?null:l(h,x,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case wd:return g.key===L?s(h,x,g,S):null;case eu:return g.key===L?u(h,x,g,S):null;case Rn:return g=Bo(g),p(h,x,g,S)}if(tu(g)||Gs(g))return L!==null?null:c(h,x,g,S,null);if(typeof g.then=="function")return p(h,x,$d(g),S);if(g.$$typeof===on)return p(h,x,Ed(h,g),S);Md(h,g)}return null}function f(h,x,g,S,L){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return h=h.get(g)||null,l(x,h,""+S,L);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case wd:return h=h.get(S.key===null?g:S.key)||null,s(x,h,S,L);case eu:return h=h.get(S.key===null?g:S.key)||null,u(x,h,S,L);case Rn:return S=Bo(S),f(h,x,g,S,L)}if(tu(S)||Gs(S))return h=h.get(g)||null,c(x,h,S,L,null);if(typeof S.then=="function")return f(h,x,g,$d(S),L);if(S.$$typeof===on)return f(h,x,g,Ed(x,S),L);Md(x,S)}return null}function m(h,x,g,S){for(var L=null,y=null,_=x,b=x=0,T=null;_!==null&&b<g.length;b++){_.index>b?(T=_,_=null):T=_.sibling;var I=p(h,_,g[b],S);if(I===null){_===null&&(_=T);break}e&&_&&I.alternate===null&&t(h,_),x=o(I,x,b),y===null?L=I:y.sibling=I,y=I,_=T}if(b===g.length)return a(h,_),Pe&&rn(h,b),L;if(_===null){for(;b<g.length;b++)_=d(h,g[b],S),_!==null&&(x=o(_,x,b),y===null?L=_:y.sibling=_,y=_);return Pe&&rn(h,b),L}for(_=n(_);b<g.length;b++)T=f(_,h,b,g[b],S),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?b:T.key),x=o(T,x,b),y===null?L=T:y.sibling=T,y=T);return e&&_.forEach(function(F){return t(h,F)}),Pe&&rn(h,b),L}function w(h,x,g,S){if(g==null)throw Error(j(151));for(var L=null,y=null,_=x,b=x=0,T=null,I=g.next();_!==null&&!I.done;b++,I=g.next()){_.index>b?(T=_,_=null):T=_.sibling;var F=p(h,_,I.value,S);if(F===null){_===null&&(_=T);break}e&&_&&F.alternate===null&&t(h,_),x=o(F,x,b),y===null?L=F:y.sibling=F,y=F,_=T}if(I.done)return a(h,_),Pe&&rn(h,b),L;if(_===null){for(;!I.done;b++,I=g.next())I=d(h,I.value,S),I!==null&&(x=o(I,x,b),y===null?L=I:y.sibling=I,y=I);return Pe&&rn(h,b),L}for(_=n(_);!I.done;b++,I=g.next())I=f(_,h,b,I.value,S),I!==null&&(e&&I.alternate!==null&&_.delete(I.key===null?b:I.key),x=o(I,x,b),y===null?L=I:y.sibling=I,y=I);return e&&_.forEach(function(O){return t(h,O)}),Pe&&rn(h,b),L}function C(h,x,g,S){if(typeof g=="object"&&g!==null&&g.type===Vi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case wd:e:{for(var L=g.key;x!==null;){if(x.key===L){if(L=g.type,L===Vi){if(x.tag===7){a(h,x.sibling),S=r(x,g.props.children),S.return=h,h=S;break e}}else if(x.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Rn&&Bo(L)===x.type){a(h,x.sibling),S=r(x,g.props),Js(S,g),S.return=h,h=S;break e}a(h,x);break}else t(h,x);x=x.sibling}g.type===Vi?(S=Zo(g.props.children,h.mode,S,g.key),S.return=h,h=S):(S=Zd(g.type,g.key,g.props,null,h.mode,S),Js(S,g),S.return=h,h=S)}return i(h);case eu:e:{for(L=g.key;x!==null;){if(x.key===L)if(x.tag===4&&x.stateNode.containerInfo===g.containerInfo&&x.stateNode.implementation===g.implementation){a(h,x.sibling),S=r(x,g.children||[]),S.return=h,h=S;break e}else{a(h,x);break}else t(h,x);x=x.sibling}S=lg(g,h.mode,S),S.return=h,h=S}return i(h);case Rn:return g=Bo(g),C(h,x,g,S)}if(tu(g))return m(h,x,g,S);if(Gs(g)){if(L=Gs(g),typeof L!="function")throw Error(j(150));return g=L.call(g),w(h,x,g,S)}if(typeof g.then=="function")return C(h,x,$d(g),S);if(g.$$typeof===on)return C(h,x,Ed(h,g),S);Md(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,x!==null&&x.tag===6?(a(h,x.sibling),S=r(x,g),S.return=h,h=S):(a(h,x),S=ig(g,h.mode,S),S.return=h,h=S),i(h)):a(h,x)}return function(h,x,g,S){try{Iu=0;var L=C(h,x,g,S);return sl=null,L}catch(_){if(_===kl||_===Pf)throw _;var y=Da(29,_,null,h.mode);return y.lanes=S,y.return=h,y}}}var Xo=y1(!0),x1=y1(!1),Pn=!1;function qv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xg(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 Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(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=sf(e),c1(e,null,a),t}return Rf(e,n,t,a),sf(e)}function uu(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,PC(e,a)}}function ug(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 Kg=!1;function cu(){if(Kg){var e=ll;if(e!==null)throw e}}function du(e,t,a,n){Kg=!1;var r=e.updateQueue;Pn=!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?(ze&p)===p:(n&p)===p){p!==0&&p===ml&&(Kg=!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=st({},d,p);break e;case 2:Pn=!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),oo|=i,e.lanes=i,e.memoizedState=d}}function b1(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function S1(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)b1(a[e],t)}var hl=Or(null),ff=Or(0);function E0(e,t){e=gn,at(ff,e),at(hl,t),gn=e|t.baseLanes}function Yg(){at(ff,gn),at(hl,hl.current)}function Zv(){gn=ff.current,Ht(hl),Ht(ff)}var ja=Or(null),nr=null;function Nn(e){var t=e.alternate;at(Lt,Lt.current&1),at(ja,e),nr===null&&(t===null||hl.current!==null||t.memoizedState!==null)&&(nr=e)}function Qg(e){at(Lt,Lt.current),at(ja,e),nr===null&&(nr=e)}function w1(e){e.tag===22?(at(Lt,Lt.current),at(ja,e),nr===null&&(nr=e)):jn(e)}function jn(){at(Lt,Lt.current),at(ja,ja.current)}function Ma(e){Ht(ja),nr===e&&(nr=null),Ht(Lt)}var Lt=Or(0);function pf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||yv(a)||xv(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 pn=0,Se=null,Ke=null,Mt=null,mf=!1,ul=!1,Ko=!1,hf=0,ku=0,cl=null,f4=0;function St(){throw Error(j(321))}function Hv(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Na(e[a],t[a]))return!1;return!0}function Vv(e,t,a,n,r,o){return pn=o,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?Q1:ry,Ko=!1,o=a(n,r),Ko=!1,ul&&(o=I1(t,a,n,r)),_1(e),o}function _1(e){ge.H=Cu;var t=Ke!==null&&Ke.next!==null;if(pn=0,Mt=Ke=Se=null,mf=!1,ku=0,cl=null,t)throw Error(j(300));e===null||Ot||(e=e.dependencies,e!==null&&cf(e)&&(Ot=!0))}function I1(e,t,a,n){Se=e;var r=0;do{if(ul&&(cl=null),ku=0,ul=!1,25<=r)throw Error(j(301));if(r+=1,Mt=Ke=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ge.H=eL,o=t(a,n)}while(ul);return o}function p4(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?Nu(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Se.flags|=1024),t}function Gv(){var e=hf!==0;return hf=0,e}function Wv(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Jv(e){if(mf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mf=!1}pn=0,Mt=Ke=Se=null,ul=!1,ku=hf=0,cl=null}function ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Se.memoizedState=Mt=e:Mt=Mt.next=e,Mt}function Tt(){if(Ke===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=Mt===null?Se.memoizedState:Mt.next;if(t!==null)Mt=t,Ke=e;else{if(e===null)throw Se.alternate===null?Error(j(467)):Error(j(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Mt===null?Se.memoizedState=Mt=e:Mt=Mt.next=e}return Mt}function Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nu(e){var t=ku;return ku+=1,cl===null&&(cl=[]),e=v1(cl,e,t),t=Se,(Mt===null?t.memoizedState:Mt.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?Q1:ry),e}function Nf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nu(e);if(e.$$typeof===on)return Qt(e)}throw Error(j(438,String(e)))}function Xv(e){var t=null,a=Se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=Se.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=Uf(),Se.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]=YO;return t.index++,a}function mn(e,t){return typeof t=="function"?t(e):t}function Vd(e){var t=Tt();return Kv(t,Ke,e)}function Kv(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?(ze&d)===d:(pn&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===ml&&(c=!0);else if((pn&p)===p){u=u.next,p===ml&&(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,Se.lanes|=p,oo|=p;d=u.action,Ko&&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,Se.lanes|=d,oo|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=o:s.next=l,!Na(o,e.memoizedState)&&(Ot=!0,c&&(a=ll,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 cg(e){var t=Tt(),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);Na(o,t.memoizedState)||(Ot=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,n]}function k1(e,t,a){var n=Se,r=Tt(),o=Pe;if(o){if(a===void 0)throw Error(j(407));a=a()}else a=t();var i=!Na((Ke||r).memoizedState,a);if(i&&(r.memoizedState=a,Ot=!0),r=r.queue,Yv(T1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Mt!==null&&Mt.memoizedState.tag&1){if(n.flags|=2048,gl(9,{destroy:void 0},L1.bind(null,n,r,a,t),null),et===null)throw Error(j(349));o||(pn&127)!==0||C1(n,t,a)}return a}function C1(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Se.updateQueue,t===null?(t=Uf(),Se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function L1(e,t,a,n){t.value=a,t.getSnapshot=n,A1(t)&&E1(e)}function T1(e,t,a){return a(function(){A1(t)&&E1(e)})}function A1(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Na(e,a)}catch{return!0}}function E1(e){var t=ai(e,2);t!==null&&Sa(t,e,2)}function ev(e){var t=ca();if(typeof e=="function"){var a=e;if(e=a(),Ko){Fn(!0);try{a()}finally{Fn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:e},t}function $1(e,t,a,n){return e.baseState=a,Kv(e,Ke,typeof n=="function"?n:mn)}function m4(e,t,a,n,r){if(Bf(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)}};ge.T!==null?a(!0):o.isTransition=!1,n(o),a=t.pending,a===null?(o.next=t.pending=o,M1(t,o)):(o.next=a.next,t.pending=a.next=o)}}function M1(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var o=ge.T,i={};ge.T=i;try{var l=a(r,n),s=ge.S;s!==null&&s(i,l),$0(e,t,l)}catch(u){tv(e,t,u)}finally{o!==null&&i.types!==null&&(o.types=i.types),ge.T=o}}else try{o=a(r,n),$0(e,t,o)}catch(u){tv(e,t,u)}}function $0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){M0(e,t,n)},function(n){return tv(e,t,n)}):M0(e,t,a)}function M0(e,t,a){t.status="fulfilled",t.value=a,D1(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,M1(e,a)))}function tv(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,D1(t),t=t.next;while(t!==n)}e.action=null}function D1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function z1(e,t){return t}function D0(e,t){if(Pe){var a=et.formState;if(a!==null){e:{var n=Se;if(Pe){if(lt){t:{for(var r=lt,o=rr;r.nodeType!==8;){if(!o){r=null;break t}if(r=or(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){lt=or(r.nextSibling),n=r.data==="F!";break e}}ro(n)}n=!1}n&&(t=a[0])}}return a=ca(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:z1,lastRenderedState:t},a.queue=n,a=X1.bind(null,Se,n),n.dispatch=a,n=ev(!1),o=ay.bind(null,Se,!1,n.queue),n=ca(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=m4.bind(null,Se,r,o,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function z0(e){var t=Tt();return O1(t,Ke,e)}function O1(e,t,a){if(t=Kv(e,t,z1)[0],e=Vd(mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Nu(t)}catch(i){throw i===kl?Pf:i}else n=t;t=Tt();var r=t.queue,o=r.dispatch;return a!==t.memoizedState&&(Se.flags|=2048,gl(9,{destroy:void 0},h4.bind(null,r,a),null)),[n,o,e]}function h4(e,t){e.action=t}function O0(e){var t=Tt(),a=Ke;if(a!==null)return O1(t,a,e);Tt(),t=t.memoizedState,a=Tt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function gl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Uf(),Se.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 R1(){return Tt().memoizedState}function Gd(e,t,a,n){var r=ca();Se.flags|=e,r.memoizedState=gl(1|t,{destroy:void 0},a,n===void 0?null:n)}function jf(e,t,a,n){var r=Tt();n=n===void 0?null:n;var o=r.memoizedState.inst;Ke!==null&&n!==null&&Hv(n,Ke.memoizedState.deps)?r.memoizedState=gl(t,o,a,n):(Se.flags|=e,r.memoizedState=gl(1|t,o,a,n))}function R0(e,t){Gd(8390656,8,e,t)}function Yv(e,t){jf(2048,8,e,t)}function g4(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Uf(),Se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function P1(e){var t=Tt().memoizedState;return g4({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function U1(e,t){return jf(4,2,e,t)}function N1(e,t){return jf(4,4,e,t)}function j1(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 B1(e,t,a){a=a!=null?a.concat([e]):null,jf(4,4,j1.bind(null,t,e),a)}function Qv(){}function F1(e,t){var a=Tt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Hv(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function q1(e,t){var a=Tt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Hv(t,n[1]))return n[0];if(n=e(),Ko){Fn(!0);try{e()}finally{Fn(!1)}}return a.memoizedState=[n,t],n}function ey(e,t,a){return a===void 0||(pn&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=$L(),Se.lanes|=e,oo|=e,a)}function Z1(e,t,a,n){return Na(a,t)?a:hl.current!==null?(e=ey(e,a,n),Na(e,t)||(Ot=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(ze&261930)===0?(Ot=!0,e.memoizedState=a):(e=$L(),Se.lanes|=e,oo|=e,t)}function H1(e,t,a,n,r){var o=Fe.p;Fe.p=o!==0&&8>o?o:8;var i=ge.T,l={};ge.T=l,ay(e,!1,t,a);try{var s=r(),u=ge.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=d4(s,n);fu(e,t,c,Ua(e))}else fu(e,t,n,Ua(e))}catch(d){fu(e,t,{then:function(){},status:"rejected",reason:d},Ua())}finally{Fe.p=o,i!==null&&l.types!==null&&(i.types=l.types),ge.T=i}}function v4(){}function av(e,t,a,n){if(e.tag!==5)throw Error(j(476));var r=V1(e).queue;H1(e,r,t,qo,a===null?v4:function(){return G1(e),a(n)})}function V1(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:qo,baseState:qo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:qo},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function G1(e){var t=V1(e);t.next===null&&(t=e.alternate.memoizedState),fu(e,t.next.queue,{},Ua())}function ty(){return Qt(Au)}function W1(){return Tt().memoizedState}function J1(){return Tt().memoizedState}function y4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ua();e=Jn(a);var n=Xn(t,e,a);n!==null&&(Sa(n,t,a),uu(n,t,a)),t={cache:jv()},e.payload=t;return}t=t.return}}function x4(e,t,a){var n=Ua();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bf(e)?K1(t,a):(a=Rv(e,t,a,n),a!==null&&(Sa(a,e,n),Y1(a,t,n)))}function X1(e,t,a){var n=Ua();fu(e,t,a,n)}function fu(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bf(e))K1(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,Na(l,i))return Rf(e,t,r,0),et===null&&Of(),!1}catch{}if(a=Rv(e,t,r,n),a!==null)return Sa(a,e,n),Y1(a,t,n),!0}return!1}function ay(e,t,a,n){if(n={lane:2,revertLane:dy(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bf(e)){if(t)throw Error(j(479))}else t=Rv(e,a,n,2),t!==null&&Sa(t,e,2)}function Bf(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function K1(e,t){ul=mf=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Y1(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,PC(e,a)}}var Cu={readContext:Qt,use:Nf,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};Cu.useEffectEvent=St;var Q1={readContext:Qt,use:Nf,useCallback:function(e,t){return ca().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:R0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Gd(4194308,4,j1.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Gd(4194308,4,e,t)},useInsertionEffect:function(e,t){Gd(4,2,e,t)},useMemo:function(e,t){var a=ca();t=t===void 0?null:t;var n=e();if(Ko){Fn(!0);try{e()}finally{Fn(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=ca();if(a!==void 0){var r=a(t);if(Ko){Fn(!0);try{a(t)}finally{Fn(!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=x4.bind(null,Se,e),[n.memoizedState,e]},useRef:function(e){var t=ca();return e={current:e},t.memoizedState=e},useState:function(e){e=ev(e);var t=e.queue,a=X1.bind(null,Se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Qv,useDeferredValue:function(e,t){var a=ca();return ey(a,e,t)},useTransition:function(){var e=ev(!1);return e=H1.bind(null,Se,e.queue,!0,!1),ca().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=Se,r=ca();if(Pe){if(a===void 0)throw Error(j(407));a=a()}else{if(a=t(),et===null)throw Error(j(349));(ze&127)!==0||C1(n,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,R0(T1.bind(null,n,o,e),[e]),n.flags|=2048,gl(9,{destroy:void 0},L1.bind(null,n,o,a,t),null),a},useId:function(){var e=ca(),t=et.identifierPrefix;if(Pe){var a=Mr,n=$r;a=(n&~(1<<32-Pa(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=hf++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=f4++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ty,useFormState:D0,useActionState:D0,useOptimistic:function(e){var t=ca();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ay.bind(null,Se,!0,a),a.dispatch=t,[e,t]},useMemoCache:Xv,useCacheRefresh:function(){return ca().memoizedState=y4.bind(null,Se)},useEffectEvent:function(e){var t=ca(),a={impl:e};return t.memoizedState=a,function(){if((Be&2)!==0)throw Error(j(440));return a.impl.apply(void 0,arguments)}}},ry={readContext:Qt,use:Nf,useCallback:F1,useContext:Qt,useEffect:Yv,useImperativeHandle:B1,useInsertionEffect:U1,useLayoutEffect:N1,useMemo:q1,useReducer:Vd,useRef:R1,useState:function(){return Vd(mn)},useDebugValue:Qv,useDeferredValue:function(e,t){var a=Tt();return Z1(a,Ke.memoizedState,e,t)},useTransition:function(){var e=Vd(mn)[0],t=Tt().memoizedState;return[typeof e=="boolean"?e:Nu(e),t]},useSyncExternalStore:k1,useId:W1,useHostTransitionStatus:ty,useFormState:z0,useActionState:z0,useOptimistic:function(e,t){var a=Tt();return $1(a,Ke,e,t)},useMemoCache:Xv,useCacheRefresh:J1};ry.useEffectEvent=P1;var eL={readContext:Qt,use:Nf,useCallback:F1,useContext:Qt,useEffect:Yv,useImperativeHandle:B1,useInsertionEffect:U1,useLayoutEffect:N1,useMemo:q1,useReducer:cg,useRef:R1,useState:function(){return cg(mn)},useDebugValue:Qv,useDeferredValue:function(e,t){var a=Tt();return Ke===null?ey(a,e,t):Z1(a,Ke.memoizedState,e,t)},useTransition:function(){var e=cg(mn)[0],t=Tt().memoizedState;return[typeof e=="boolean"?e:Nu(e),t]},useSyncExternalStore:k1,useId:W1,useHostTransitionStatus:ty,useFormState:O0,useActionState:O0,useOptimistic:function(e,t){var a=Tt();return Ke!==null?$1(a,Ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Xv,useCacheRefresh:J1};eL.useEffectEvent=P1;function dg(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:st({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var rv={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ua(),r=Jn(n);r.payload=t,a!=null&&(r.callback=a),t=Xn(e,r,n),t!==null&&(Sa(t,e,n),uu(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ua(),r=Jn(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Xn(e,r,n),t!==null&&(Sa(t,e,n),uu(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ua(),n=Jn(a);n.tag=2,t!=null&&(n.callback=t),t=Xn(e,n,a),t!==null&&(Sa(t,e,a),uu(t,e,a))}};function P0(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?!Su(a,n)||!Su(r,o):!0}function U0(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&&rv.enqueueReplaceState(t,t.state,null)}function Yo(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=st({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function tL(e){lf(e)}function aL(e){console.error(e)}function rL(e){lf(e)}function gf(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function N0(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 nv(e,t,a){return a=Jn(a),a.tag=3,a.payload={element:null},a.callback=function(){gf(e,t)},a}function nL(e){return e=Jn(e),e.tag=3,e}function oL(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(){N0(t,a,n)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){N0(t,a,n),typeof r!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var l=n.stack;this.componentDidCatch(n.value,{componentStack:l!==null?l:""})})}function b4(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Il(t,a,r,!0),a=ja.current,a!==null){switch(a.tag){case 31:case 13:return nr===null?Sf():a.alternate===null&&wt===0&&(wt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===df?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),wg(e,n,r)),!1;case 22:return a.flags|=65536,n===df?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)),wg(e,n,r)),!1}throw Error(j(435,a.tag))}return wg(e,n,r),Sf(),!1}if(Pe)return t=ja.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Hg&&(e=Error(j(422),{cause:n}),_u(ar(e,a)))):(n!==Hg&&(t=Error(j(423),{cause:n}),_u(ar(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=ar(n,a),r=nv(e.stateNode,n,r),ug(e,r),wt!==4&&(wt=2)),!1;var o=Error(j(520),{cause:n});if(o=ar(o,a),hu===null?hu=[o]:hu.push(o),wt!==4&&(wt=2),t===null)return!0;n=ar(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=nv(a.stateNode,n,e),ug(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"&&(Kn===null||!Kn.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=nL(r),oL(r,e,a,n),ug(a,r),!1}a=a.return}while(a!==null);return!1}var ny=Error(j(461)),Ot=!1;function Xt(e,t,a,n){t.child=e===null?x1(t,null,a,n):Xo(t,e.child,a,n)}function j0(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 Jo(t),n=Vv(e,t,a,i,o,r),l=Gv(),e!==null&&!Ot?(Wv(e,t,r),hn(e,t,r)):(Pe&&l&&Uv(t),t.flags|=1,Xt(e,t,n,r),t.child)}function B0(e,t,a,n,r){if(e===null){var o=a.type;return typeof o=="function"&&!Pv(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,iL(e,t,o,n,r)):(e=Zd(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!oy(e,r)){var i=o.memoizedProps;if(a=a.compare,a=a!==null?a:Su,a(i,n)&&e.ref===t.ref)return hn(e,t,r)}return t.flags|=1,e=un(o,n),e.ref=t.ref,e.return=t,t.child=e}function iL(e,t,a,n,r){if(e!==null){var o=e.memoizedProps;if(Su(o,n)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=n=o,oy(e,r))(e.flags&131072)!==0&&(Ot=!0);else return t.lanes=e.lanes,hn(e,t,r)}return ov(e,t,a,n,r)}function lL(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 F0(e,t,o,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hd(t,o!==null?o.cachePool:null),o!==null?E0(t,o):Yg(),w1(t);else return n=t.lanes=536870912,F0(e,t,o!==null?o.baseLanes|a:a,a,n)}else o!==null?(Hd(t,o.cachePool),E0(t,o),jn(t),t.memoizedState=null):(e!==null&&Hd(t,null),Yg(),jn(t));return Xt(e,t,r,a),t.child}function ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function F0(e,t,a,n,r){var o=Bv();return o=o===null?null:{parent:zt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Hd(t,null),Yg(),w1(t),e!==null&&Il(e,t,n,!0),t.childLanes=r,null}function Wd(e,t){return t=vf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function q0(e,t,a){return Xo(t,e.child,null,a),e=Wd(t,t.pendingProps),e.flags|=2,Ma(t),t.memoizedState=null,e}function S4(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Pe){if(n.mode==="hidden")return e=Wd(t,n),t.lanes=536870912,ru(null,e);if(Qg(t),(e=lt)?(e=QL(e,rr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ao!==null?{id:$r,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},a=f1(e),a.return=t,t.child=a,Yt=t,lt=null)):e=null,e===null)throw ro(t);return t.lanes=536870912,null}return Wd(t,n)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if(Qg(t),r)if(t.flags&256)t.flags&=-257,t=q0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(j(558));else if(Ot||Il(e,t,a,!1),r=(a&e.childLanes)!==0,Ot||r){if(n=et,n!==null&&(i=UC(n,a),i!==0&&i!==o.retryLane))throw o.retryLane=i,ai(e,i),Sa(n,e,i),ny;Sf(),t=q0(e,t,a)}else e=o.treeContext,lt=or(i.nextSibling),Yt=t,Pe=!0,Wn=null,rr=!1,e!==null&&m1(t,e),t=Wd(t,n),t.flags|=4096;return t}return e=un(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jd(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 ov(e,t,a,n,r){return Jo(t),a=Vv(e,t,a,n,void 0,r),n=Gv(),e!==null&&!Ot?(Wv(e,t,r),hn(e,t,r)):(Pe&&n&&Uv(t),t.flags|=1,Xt(e,t,a,r),t.child)}function Z0(e,t,a,n,r,o){return Jo(t),t.updateQueue=null,a=I1(t,n,a,r),_1(e),n=Gv(),e!==null&&!Ot?(Wv(e,t,o),hn(e,t,o)):(Pe&&n&&Uv(t),t.flags|=1,Xt(e,t,a,o),t.child)}function H0(e,t,a,n,r){if(Jo(t),t.stateNode===null){var o=el,i=a.contextType;typeof i=="object"&&i!==null&&(o=Qt(i)),o=new a(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=rv,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},qv(t),i=a.contextType,o.context=typeof i=="object"&&i!==null?Qt(i):el,o.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(dg(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&&rv.enqueueReplaceState(o,o.state,null),du(t,n,o,r),cu(),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=Yo(a,l);o.props=s;var u=o.context,c=a.contextType;i=el,typeof c=="object"&&c!==null&&(i=Qt(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)&&U0(t,o,n,i),Pn=!1;var p=t.memoizedState;o.state=p,du(t,n,o,r),cu(),u=t.memoizedState,l||p!==u||Pn?(typeof d=="function"&&(dg(t,a,d,n),u=t.memoizedState),(s=Pn||P0(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,Xg(e,t),i=t.memoizedProps,c=Yo(a,i),o.props=c,d=t.pendingProps,p=o.context,u=a.contextType,s=el,typeof u=="object"&&u!==null&&(s=Qt(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)&&U0(t,o,n,s),Pn=!1,p=t.memoizedState,o.state=p,du(t,n,o,r),cu();var f=t.memoizedState;i!==d||p!==f||Pn||e!==null&&e.dependencies!==null&&cf(e.dependencies)?(typeof l=="function"&&(dg(t,a,l,n),f=t.memoizedState),(c=Pn||P0(t,a,c,n,p,f,s)||e!==null&&e.dependencies!==null&&cf(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,Jd(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=Xo(t,e.child,null,r),t.child=Xo(t,null,a,r)):Xt(e,t,a,r),t.memoizedState=o.state,e=t.child):e=hn(e,t,r),e}function V0(e,t,a,n){return Wo(),t.flags|=256,Xt(e,t,a,n),t.child}var fg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pg(e){return{baseLanes:e,cachePool:g1()}}function mg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=za),e}function sL(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:(Lt.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Pe){if(r?Nn(t):jn(t),(e=lt)?(e=QL(e,rr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ao!==null?{id:$r,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},a=f1(e),a.return=t,t.child=a,Yt=t,lt=null)):e=null,e===null)throw ro(t);return xv(e)?t.lanes=32:t.lanes=536870912,null}var l=n.children;return n=n.fallback,r?(jn(t),r=t.mode,l=vf({mode:"hidden",children:l},r),n=Zo(n,r,a,null),l.return=t,n.return=t,l.sibling=n,t.child=l,n=t.child,n.memoizedState=pg(a),n.childLanes=mg(e,i,a),t.memoizedState=fg,ru(null,n)):(Nn(t),iv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(o)t.flags&256?(Nn(t),t.flags&=-257,t=hg(e,t,a)):t.memoizedState!==null?(jn(t),t.child=e.child,t.flags|=128,t=null):(jn(t),l=n.fallback,r=t.mode,n=vf({mode:"visible",children:n.children},r),l=Zo(l,r,a,null),l.flags|=2,n.return=t,l.return=t,n.sibling=l,t.child=n,Xo(t,e.child,null,a),n=t.child,n.memoizedState=pg(a),n.childLanes=mg(e,i,a),t.memoizedState=fg,t=ru(null,n));else if(Nn(t),xv(l)){if(i=l.nextSibling&&l.nextSibling.dataset,i)var u=i.dgst;i=u,n=Error(j(419)),n.stack="",n.digest=i,_u({value:n,source:null,stack:null}),t=hg(e,t,a)}else if(Ot||Il(e,t,a,!1),i=(a&e.childLanes)!==0,Ot||i){if(i=et,i!==null&&(n=UC(i,a),n!==0&&n!==s.retryLane))throw s.retryLane=n,ai(e,n),Sa(i,e,n),ny;yv(l)||Sf(),t=hg(e,t,a)}else yv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,lt=or(l.nextSibling),Yt=t,Pe=!0,Wn=null,rr=!1,e!==null&&m1(t,e),t=iv(t,n.children),t.flags|=4096);return t}return r?(jn(t),l=n.fallback,r=t.mode,s=e.child,u=s.sibling,n=un(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=un(u,l):(l=Zo(l,r,a,null),l.flags|=2),l.return=t,n.return=t,n.sibling=l,t.child=n,ru(null,n),n=t.child,l=e.child.memoizedState,l===null?l=pg(a):(r=l.cachePool,r!==null?(s=zt._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=g1(),l={baseLanes:l.baseLanes|a,cachePool:r}),n.memoizedState=l,n.childLanes=mg(e,i,a),t.memoizedState=fg,ru(e.child,n)):(Nn(t),a=e.child,e=a.sibling,a=un(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 iv(e,t){return t=vf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vf(e,t){return e=Da(22,e,null,t),e.lanes=0,e}function hg(e,t,a){return Xo(t,e.child,null,a),e=iv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function G0(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Gg(e.return,t,a)}function gg(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 uL(e,t,a){var n=t.pendingProps,r=n.revealOrder,o=n.tail;n=n.children;var i=Lt.current,l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,at(Lt,i),Xt(e,t,n,a),n=Pe?wu:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&G0(e,a,t);else if(e.tag===19)G0(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&&pf(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),gg(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&&pf(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}gg(t,!0,a,null,o,n);break;case"together":gg(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function hn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),oo|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Il(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=un(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=un(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function oy(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cf(e)))}function w4(e,t,a){switch(t.tag){case 3:af(t,t.stateNode.containerInfo),Un(t,zt,e.memoizedState.cache),Wo();break;case 27:case 5:zg(t);break;case 4:af(t,t.stateNode.containerInfo);break;case 10:Un(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qg(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Nn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?sL(e,t,a):(Nn(t),e=hn(e,t,a),e!==null?e.sibling:null);Nn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Il(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return uL(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),at(Lt,Lt.current),n)break;return null;case 22:return t.lanes=0,lL(e,t,a,t.pendingProps);case 24:Un(t,zt,e.memoizedState.cache)}return hn(e,t,a)}function cL(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!oy(e,a)&&(t.flags&128)===0)return Ot=!1,w4(e,t,a);Ot=(e.flags&131072)!==0}else Ot=!1,Pe&&(t.flags&1048576)!==0&&p1(t,wu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Bo(t.elementType),t.type=e,typeof e=="function")Pv(e)?(n=Yo(e,n),t.tag=1,t=H0(null,t,e,n,a)):(t.tag=0,t=ov(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===_v){t.tag=11,t=j0(null,t,e,n,a);break e}else if(r===Iv){t.tag=14,t=B0(null,t,e,n,a);break e}}throw t=Mg(e)||e,Error(j(306,t,""))}}return t;case 0:return ov(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=Yo(n,t.pendingProps),H0(e,t,n,r,a);case 3:e:{if(af(t,t.stateNode.containerInfo),e===null)throw Error(j(387));n=t.pendingProps;var o=t.memoizedState;r=o.element,Xg(e,t),du(t,n,null,a);var i=t.memoizedState;if(n=i.cache,Un(t,zt,n),n!==o.cache&&Wg(t,[zt],a,!0),cu(),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=V0(e,t,n,a);break e}else if(n!==r){r=ar(Error(j(424)),t),_u(r),t=V0(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,lt=or(e.firstChild),Yt=t,Pe=!0,Wn=null,rr=!0,a=x1(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Wo(),n===r){t=hn(e,t,a);break e}Xt(e,t,n,a)}t=t.child}return t;case 26:return Jd(e,t),e===null?(a=hC(t.type,null,t.pendingProps,null))?t.memoizedState=a:Pe||(a=t.type,e=t.pendingProps,n=kf(Gn.current).createElement(a),n[Kt]=t,n[wa]=e,ea(n,a,e),Zt(n),t.stateNode=n):t.memoizedState=hC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zg(t),e===null&&Pe&&(n=t.stateNode=eT(t.type,t.pendingProps,Gn.current),Yt=t,rr=!0,r=lt,lo(t.type)?(bv=r,lt=or(n.firstChild)):lt=r),Xt(e,t,t.pendingProps.children,a),Jd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pe&&((r=n=lt)&&(n=X4(n,t.type,t.pendingProps,rr),n!==null?(t.stateNode=n,Yt=t,lt=or(n.firstChild),rr=!1,r=!0):r=!1),r||ro(t)),zg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,n=o.children,gv(r,o)?n=null:i!==null&&gv(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=Vv(e,t,p4,null,null,a),Au._currentValue=r),Jd(e,t),Xt(e,t,n,a),t.child;case 6:return e===null&&Pe&&((e=a=lt)&&(a=K4(a,t.pendingProps,rr),a!==null?(t.stateNode=a,Yt=t,lt=null,e=!0):e=!1),e||ro(t)),null;case 13:return sL(e,t,a);case 4:return af(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Xo(t,null,n,a):Xt(e,t,n,a),t.child;case 11:return j0(e,t,t.type,t.pendingProps,a);case 7:return Xt(e,t,t.pendingProps,a),t.child;case 8:return Xt(e,t,t.pendingProps.children,a),t.child;case 12:return Xt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Un(t,t.type,n.value),Xt(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,Jo(t),r=Qt(r),n=n(r),t.flags|=1,Xt(e,t,n,a),t.child;case 14:return B0(e,t,t.type,t.pendingProps,a);case 15:return iL(e,t,t.type,t.pendingProps,a);case 19:return uL(e,t,a);case 31:return S4(e,t,a);case 22:return lL(e,t,a,t.pendingProps);case 24:return Jo(t),n=Qt(zt),e===null?(r=Bv(),r===null&&(r=et,o=jv(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:n,cache:r},qv(t),Un(t,zt,r)):((e.lanes&a)!==0&&(Xg(e,t),du(t,null,null,a),cu()),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),Un(t,zt,n)):(n=o.cache,Un(t,zt,n),n!==r.cache&&Wg(t,[zt],a,!0))),Xt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function Qr(e){e.flags|=4}function vg(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(zL())e.flags|=8192;else throw Vo=df,Fv}else e.flags&=-16777217}function W0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rT(t))if(zL())e.flags|=8192;else throw Vo=df,Fv}function Dd(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?OC():536870912,e.lanes|=t,vl|=t)}function Xs(e,t){if(!Pe)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 it(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 _4(e,t,a){var n=t.pendingProps;switch(Nv(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),cn(zt),dl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?Qr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sg())),it(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(Qr(t),o!==null?(it(t),W0(t,o)):(it(t),vg(t,r,null,n,a))):o?o!==e.memoizedState?(Qr(t),it(t),W0(t,o)):(it(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Qr(t),it(t),vg(t,r,e,n,a)),null;case 27:if(rf(t),a=Gn.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Qr(t);else{if(!n){if(t.stateNode===null)throw Error(j(166));return it(t),null}e=zr.current,Fi(t)?_0(t,e):(e=eT(r,n,a),t.stateNode=e,Qr(t))}return it(t),null;case 5:if(rf(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Qr(t);else{if(!n){if(t.stateNode===null)throw Error(j(166));return it(t),null}if(o=zr.current,Fi(t))_0(t,o);else{var i=kf(Gn.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[Kt]=t,o[wa]=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(ea(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&&Qr(t)}}return it(t),vg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Qr(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(j(166));if(e=Gn.current,Fi(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=Yt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[Kt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||XL(e.nodeValue,a)),e||ro(t,!0)}else e=kf(e).createTextNode(n),e[Kt]=t,t.stateNode=e}return it(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Fi(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[Kt]=t}else Wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),e=!1}else a=sg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ma(t),t):(Ma(t),null);if((t.flags&128)!==0)throw Error(j(558))}return it(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Fi(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[Kt]=t}else Wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),r=!1}else r=sg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ma(t),t):(Ma(t),null)}return Ma(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),Dd(t,t.updateQueue),it(t),null);case 4:return dl(),e===null&&fy(t.stateNode.containerInfo),it(t),null;case 10:return cn(t.type),it(t),null;case 19:if(Ht(Lt),n=t.memoizedState,n===null)return it(t),null;if(r=(t.flags&128)!==0,o=n.rendering,o===null)if(r)Xs(n,!1);else{if(wt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=pf(e),o!==null){for(t.flags|=128,Xs(n,!1),e=o.updateQueue,t.updateQueue=e,Dd(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)d1(a,e),a=a.sibling;return at(Lt,Lt.current&1|2),Pe&&rn(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Oa()>xf&&(t.flags|=128,r=!0,Xs(n,!1),t.lanes=4194304)}else{if(!r)if(e=pf(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Dd(t,e),Xs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!Pe)return it(t),null}else 2*Oa()-n.renderingStartTime>xf&&a!==536870912&&(t.flags|=128,r=!0,Xs(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=Oa(),e.sibling=null,a=Lt.current,at(Lt,r?a&1|2:a&1),Pe&&rn(t,n.treeForkCount),e):(it(t),null);case 22:case 23:return Ma(t),Zv(),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&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),a=t.updateQueue,a!==null&&Dd(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&&Ht(Ho),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),cn(zt),it(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function I4(e,t){switch(Nv(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(zt),dl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rf(t),null;case 31:if(t.memoizedState!==null){if(Ma(t),t.alternate===null)throw Error(j(340));Wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ht(Lt),null;case 4:return dl(),null;case 10:return cn(t.type),null;case 22:case 23:return Ma(t),Zv(),e!==null&&Ht(Ho),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cn(zt),null;case 25:return null;default:return null}}function dL(e,t){switch(Nv(t),t.tag){case 3:cn(zt),dl();break;case 26:case 27:case 5:rf(t);break;case 4:dl();break;case 31:t.memoizedState!==null&&Ma(t);break;case 13:Ma(t);break;case 19:Ht(Lt);break;case 10:cn(t.type);break;case 22:case 23:Ma(t),Zv(),e!==null&&Ht(Ho);break;case 24:cn(zt)}}function ju(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){Ve(t,t.return,l)}}function no(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){Ve(r,s,c)}}}n=n.next}while(n!==o)}}catch(c){Ve(t,t.return,c)}}function fL(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{S1(t,a)}catch(n){Ve(e,e.return,n)}}}function pL(e,t,a){a.props=Yo(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ve(e,t,n)}}function pu(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){Ve(e,t,r)}}function Dr(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ve(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){Ve(e,t,r)}else a.current=null}function mL(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){Ve(e,e.return,r)}}function yg(e,t,a){try{var n=e.stateNode;Z4(n,e.type,a,t),n[wa]=t}catch(r){Ve(e,e.return,r)}}function hL(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&lo(e.type)||e.tag===4}function xg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hL(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&&lo(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 lv(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=ln));else if(n!==4&&(n===27&&lo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(lv(e,t,a),e=e.sibling;e!==null;)lv(e,t,a),e=e.sibling}function yf(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&&lo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(yf(e,t,a),e=e.sibling;e!==null;)yf(e,t,a),e=e.sibling}function gL(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ea(t,n,a),t[Kt]=e,t[wa]=a}catch(o){Ve(e,e.return,o)}}var nn=!1,Dt=!1,bg=!1,J0=typeof WeakSet=="function"?WeakSet:Set,qt=null;function k4(e,t){if(e=e.containerInfo,mv=Af,e=r1(e),zv(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(hv={focusedElem:e,selectionRange:a},Af=!1,qt=t;qt!==null;)if(t=qt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qt=e;else for(;qt!==null;){switch(t=qt,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=Yo(a.type,r);e=n.getSnapshotBeforeUpdate(m,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(w){Ve(a,a.return,w)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)vv(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vv(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,qt=e;break}qt=t.return}}function vL(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:tn(e,a),n&4&&ju(5,a);break;case 1:if(tn(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Ve(a,a.return,i)}else{var r=Yo(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Ve(a,a.return,i)}}n&64&&fL(a),n&512&&pu(a,a.return);break;case 3:if(tn(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{S1(e,t)}catch(i){Ve(a,a.return,i)}}break;case 27:t===null&&n&4&&gL(a);case 26:case 5:tn(e,a),t===null&&n&4&&mL(a),n&512&&pu(a,a.return);break;case 12:tn(e,a);break;case 31:tn(e,a),n&4&&bL(e,a);break;case 13:tn(e,a),n&4&&SL(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=z4.bind(null,a),Y4(e,a))));break;case 22:if(n=a.memoizedState!==null||nn,!n){t=t!==null&&t.memoizedState!==null||Dt,r=nn;var o=Dt;nn=n,(Dt=t)&&!o?an(e,a,(a.subtreeFlags&8772)!==0):tn(e,a),nn=r,Dt=o}break;case 30:break;default:tn(e,a)}}function yL(e){var t=e.alternate;t!==null&&(e.alternate=null,yL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tv(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 ht=null,xa=!1;function en(e,t,a){for(a=a.child;a!==null;)xL(e,t,a),a=a.sibling}function xL(e,t,a){if(Ra&&typeof Ra.onCommitFiberUnmount=="function")try{Ra.onCommitFiberUnmount(Du,a)}catch{}switch(a.tag){case 26:Dt||Dr(a,t),en(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Dt||Dr(a,t);var n=ht,r=xa;lo(a.type)&&(ht=a.stateNode,xa=!1),en(e,t,a),vu(a.stateNode),ht=n,xa=r;break;case 5:Dt||Dr(a,t);case 6:if(n=ht,r=xa,ht=null,en(e,t,a),ht=n,xa=r,ht!==null)if(xa)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(a.stateNode)}catch(o){Ve(a,t,o)}else try{ht.removeChild(a.stateNode)}catch(o){Ve(a,t,o)}break;case 18:ht!==null&&(xa?(e=ht,cC(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Sl(e)):cC(ht,a.stateNode));break;case 4:n=ht,r=xa,ht=a.stateNode.containerInfo,xa=!0,en(e,t,a),ht=n,xa=r;break;case 0:case 11:case 14:case 15:no(2,a,t),Dt||no(4,a,t),en(e,t,a);break;case 1:Dt||(Dr(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&pL(a,t,n)),en(e,t,a);break;case 21:en(e,t,a);break;case 22:Dt=(n=Dt)||a.memoizedState!==null,en(e,t,a),Dt=n;break;default:en(e,t,a)}}function bL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sl(e)}catch(a){Ve(t,t.return,a)}}}function SL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sl(e)}catch(a){Ve(t,t.return,a)}}function C4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new J0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new J0),t;default:throw Error(j(435,e.tag))}}function zd(e,t){var a=C4(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=O4.bind(null,e,n);n.then(r,r)}})}function va(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(lo(l.type)){ht=l.stateNode,xa=!1;break e}break;case 5:ht=l.stateNode,xa=!1;break e;case 3:case 4:ht=l.stateNode.containerInfo,xa=!0;break e}l=l.return}if(ht===null)throw Error(j(160));xL(o,i,r),ht=null,xa=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wL(t,e),t=t.sibling}var br=null;function wL(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:va(t,e),ya(e),n&4&&(no(3,e,e.return),ju(3,e),no(5,e,e.return));break;case 1:va(t,e),ya(e),n&512&&(Dt||a===null||Dr(a,a.return)),n&64&&nn&&(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=br;if(va(t,e),ya(e),n&512&&(Dt||a===null||Dr(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[Ru]||o[Kt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(n),r.head.insertBefore(o,r.querySelector("head > title"))),ea(o,n,a),o[Kt]=e,Zt(o),n=o;break e;case"link":var i=vC("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),ea(o,n,a),r.head.appendChild(o);break;case"meta":if(i=vC("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),ea(o,n,a),r.head.appendChild(o);break;default:throw Error(j(468,n))}o[Kt]=e,Zt(o),n=o}e.stateNode=n}else yC(r,e.type,e.stateNode);else e.stateNode=gC(r,n,e.memoizedProps);else o!==n?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,n===null?yC(r,e.type,e.stateNode):gC(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&yg(e,e.memoizedProps,a.memoizedProps)}break;case 27:va(t,e),ya(e),n&512&&(Dt||a===null||Dr(a,a.return)),a!==null&&n&4&&yg(e,e.memoizedProps,a.memoizedProps);break;case 5:if(va(t,e),ya(e),n&512&&(Dt||a===null||Dr(a,a.return)),e.flags&32){r=e.stateNode;try{pl(r,"")}catch(m){Ve(e,e.return,m)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,yg(e,r,a!==null?a.memoizedProps:r)),n&1024&&(bg=!0);break;case 6:if(va(t,e),ya(e),n&4){if(e.stateNode===null)throw Error(j(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(m){Ve(e,e.return,m)}}break;case 3:if(Yd=null,r=br,br=Cf(t.containerInfo),va(t,e),br=r,ya(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Sl(t.containerInfo)}catch(m){Ve(e,e.return,m)}bg&&(bg=!1,_L(e));break;case 4:n=br,br=Cf(e.stateNode.containerInfo),va(t,e),ya(e),br=n;break;case 12:va(t,e),ya(e);break;case 31:va(t,e),ya(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,zd(e,n)));break;case 13:va(t,e),ya(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ff=Oa()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,zd(e,n)));break;case 22:r=e.memoizedState!==null;var s=a!==null&&a.memoizedState!==null,u=nn,c=Dt;if(nn=u||r,Dt=c||s,va(t,e),Dt=c,nn=u,ya(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||s||nn||Dt||Fo(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){Ve(s,s.return,m)}}}else if(t.tag===6){if(a===null){s=t;try{s.stateNode.nodeValue=r?"":s.memoizedProps}catch(m){Ve(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){Ve(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,zd(e,a))));break;case 19:va(t,e),ya(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,zd(e,n)));break;case 30:break;case 21:break;default:va(t,e),ya(e)}}function ya(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(hL(n)){a=n;break}n=n.return}if(a==null)throw Error(j(160));switch(a.tag){case 27:var r=a.stateNode,o=xg(e);yf(e,o,r);break;case 5:var i=a.stateNode;a.flags&32&&(pl(i,""),a.flags&=-33);var l=xg(e);yf(e,l,i);break;case 3:case 4:var s=a.stateNode.containerInfo,u=xg(e);lv(e,u,s);break;default:throw Error(j(161))}}catch(c){Ve(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _L(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_L(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vL(e,t.alternate,t),t=t.sibling}function Fo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:no(4,t,t.return),Fo(t);break;case 1:Dr(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&pL(t,t.return,a),Fo(t);break;case 27:vu(t.stateNode);case 26:case 5:Dr(t,t.return),Fo(t);break;case 22:t.memoizedState===null&&Fo(t);break;case 30:Fo(t);break;default:Fo(t)}e=e.sibling}}function an(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:an(r,o,a),ju(4,o);break;case 1:if(an(r,o,a),n=o,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Ve(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){Ve(n,n.return,u)}}a&&i&64&&fL(o),pu(o,o.return);break;case 27:gL(o);case 26:case 5:an(r,o,a),a&&n===null&&i&4&&mL(o),pu(o,o.return);break;case 12:an(r,o,a);break;case 31:an(r,o,a),a&&i&4&&bL(r,o);break;case 13:an(r,o,a),a&&i&4&&SL(r,o);break;case 22:o.memoizedState===null&&an(r,o,a),pu(o,o.return);break;case 30:break;default:an(r,o,a)}t=t.sibling}}function iy(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&&Uu(a))}function ly(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Uu(e))}function xr(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)IL(e,t,a,n),t=t.sibling}function IL(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:xr(e,t,a,n),r&2048&&ju(9,t);break;case 1:xr(e,t,a,n);break;case 3:xr(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&&Uu(e)));break;case 12:if(r&2048){xr(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){Ve(t,t.return,s)}}else xr(e,t,a,n);break;case 31:xr(e,t,a,n);break;case 13:xr(e,t,a,n);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,t.memoizedState!==null?o._visibility&2?xr(e,t,a,n):mu(e,t):o._visibility&2?xr(e,t,a,n):(o._visibility|=2,Zi(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&iy(i,t);break;case 24:xr(e,t,a,n),r&2048&&ly(t.alternate,t);break;default:xr(e,t,a,n)}}function Zi(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:Zi(o,i,l,s,r),ju(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?Zi(o,i,l,s,r):mu(o,i):(c._visibility|=2,Zi(o,i,l,s,r)),r&&u&2048&&iy(i.alternate,i);break;case 24:Zi(o,i,l,s,r),r&&u&2048&&ly(i.alternate,i);break;default:Zi(o,i,l,s,r)}t=t.sibling}}function mu(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:mu(a,n),r&2048&&iy(n.alternate,n);break;case 24:mu(a,n),r&2048&&ly(n.alternate,n);break;default:mu(a,n)}t=t.sibling}}var nu=8192;function qi(e,t,a){if(e.subtreeFlags&nu)for(e=e.child;e!==null;)kL(e,t,a),e=e.sibling}function kL(e,t,a){switch(e.tag){case 26:qi(e,t,a),e.flags&nu&&e.memoizedState!==null&&cP(a,br,e.memoizedState,e.memoizedProps);break;case 5:qi(e,t,a);break;case 3:case 4:var n=br;br=Cf(e.stateNode.containerInfo),qi(e,t,a),br=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=nu,nu=16777216,qi(e,t,a),nu=n):qi(e,t,a));break;default:qi(e,t,a)}}function CL(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 Ks(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];qt=n,TL(n,e)}CL(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)LL(e),e=e.sibling}function LL(e){switch(e.tag){case 0:case 11:case 15:Ks(e),e.flags&2048&&no(9,e,e.return);break;case 3:Ks(e);break;case 12:Ks(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xd(e)):Ks(e);break;default:Ks(e)}}function Xd(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];qt=n,TL(n,e)}CL(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:no(8,t,t.return),Xd(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Xd(t));break;default:Xd(t)}e=e.sibling}}function TL(e,t){for(;qt!==null;){var a=qt;switch(a.tag){case 0:case 11:case 15:no(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:Uu(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,qt=n;else e:for(a=e;qt!==null;){n=qt;var r=n.sibling,o=n.return;if(yL(n),n===a){qt=null;break e}if(r!==null){r.return=o,qt=r;break e}qt=o}}}var L4={getCacheForType:function(e){var t=Qt(zt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Qt(zt).controller.signal}},T4=typeof WeakMap=="function"?WeakMap:Map,Be=0,et=null,De=null,ze=0,He=0,$a=null,Zn=!1,Cl=!1,sy=!1,gn=0,wt=0,oo=0,Go=0,uy=0,za=0,vl=0,hu=null,ba=null,sv=!1,Ff=0,AL=0,xf=1/0,bf=null,Kn=null,Nt=0,Yn=null,yl=null,dn=0,uv=0,cv=null,EL=null,gu=0,dv=null;function Ua(){return(Be&2)!==0&&ze!==0?ze&-ze:ge.T!==null?dy():NC()}function $L(){if(za===0)if((ze&536870912)===0||Pe){var e=Id;Id<<=1,(Id&3932160)===0&&(Id=262144),za=e}else za=536870912;return e=ja.current,e!==null&&(e.flags|=32),za}function Sa(e,t,a){(e===et&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Hn(e,ze,za,!1)),Ou(e,a),((Be&2)===0||e!==et)&&(e===et&&((Be&2)===0&&(Go|=a),wt===4&&Hn(e,ze,za,!1)),Rr(e))}function ML(e,t,a){if((Be&6)!==0)throw Error(j(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||zu(e,t),r=n?$4(e,t):Sg(e,t,!0),o=n;do{if(r===0){Cl&&!n&&Hn(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!A4(a)){r=Sg(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=hu;var s=l.current.memoizedState.isDehydrated;if(s&&(xl(l,i).flags|=256),i=Sg(l,i,!1),i!==2){if(sy&&!s){l.errorRecoveryDisabledLanes|=o,Go|=o,r=4;break e}o=ba,ba=r,o!==null&&(ba===null?ba=o:ba.push.apply(ba,o))}r=i}if(o=!1,r!==2)continue}}if(r===1){xl(e,0),Hn(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:Hn(n,t,za,!Zn);break e;case 2:ba=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(r=Ff+300-Oa(),10<r)){if(Hn(n,t,za,!Zn),$f(n,0,!0)!==0)break e;dn=t,n.timeoutHandle=YL(X0.bind(null,n,a,ba,bf,sv,t,za,Go,vl,Zn,o,"Throttled",-0,0),r);break e}X0(n,a,ba,bf,sv,t,za,Go,vl,Zn,o,null,-0,0)}}break}while(!0);Rr(e)}function X0(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:ln},kL(t,o,d);var m=(o&62914560)===o?Ff-Oa():(o&4194048)===o?AL-Oa():0;if(m=dP(d,m),m!==null){dn=o,e.cancelPendingCommit=m(Y0.bind(null,e,t,o,a,n,r,i,l,s,c,d,null,p,f)),Hn(e,o,i,!u);return}}Y0(e,t,o,a,n,r,i,l,s)}function A4(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(!Na(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 Hn(e,t,a,n){t&=~uy,t&=~Go,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var o=31-Pa(r),i=1<<o;n[o]=-1,r&=~i}a!==0&&RC(e,a,t)}function qf(){return(Be&6)===0?(Bu(0,!1),!1):!0}function cy(){if(De!==null){if(He===0)var e=De.return;else e=De,sn=ri=null,Jv(e),sl=null,Iu=0,e=De;for(;e!==null;)dL(e.alternate,e),e=e.return;De=null}}function xl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,G4(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dn=0,cy(),et=e,De=a=un(e.current,null),ze=t,He=0,$a=null,Zn=!1,Cl=zu(e,t),sy=!1,vl=za=uy=Go=oo=wt=0,ba=hu=null,sv=!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-Pa(n),o=1<<r;t|=e[r],n&=~o}return gn=t,Of(),a}function DL(e,t){Se=null,ge.H=Cu,t===kl||t===Pf?(t=T0(),He=3):t===Fv?(t=T0(),He=4):He=t===ny?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$a=t,De===null&&(wt=1,gf(e,ar(t,e.current)))}function zL(){var e=ja.current;return e===null?!0:(ze&4194048)===ze?nr===null:(ze&62914560)===ze||(ze&536870912)!==0?e===nr:!1}function OL(){var e=ge.H;return ge.H=Cu,e===null?Cu:e}function RL(){var e=ge.A;return ge.A=L4,e}function Sf(){wt=4,Zn||(ze&4194048)!==ze&&ja.current!==null||(Cl=!0),(oo&134217727)===0&&(Go&134217727)===0||et===null||Hn(et,ze,za,!1)}function Sg(e,t,a){var n=Be;Be|=2;var r=OL(),o=RL();(et!==e||ze!==t)&&(bf=null,xl(e,t)),t=!1;var i=wt;e:do try{if(He!==0&&De!==null){var l=De,s=$a;switch(He){case 8:cy(),i=6;break e;case 3:case 2:case 9:case 6:ja.current===null&&(t=!0);var u=He;if(He=0,$a=null,rl(e,l,s,u),a&&Cl){i=0;break e}break;default:u=He,He=0,$a=null,rl(e,l,s,u)}}E4(),i=wt;break}catch(c){DL(e,c)}while(!0);return t&&e.shellSuspendCounter++,sn=ri=null,Be=n,ge.H=r,ge.A=o,De===null&&(et=null,ze=0,Of()),i}function E4(){for(;De!==null;)PL(De)}function $4(e,t){var a=Be;Be|=2;var n=OL(),r=RL();et!==e||ze!==t?(bf=null,xf=Oa()+500,xl(e,t)):Cl=zu(e,t);e:do try{if(He!==0&&De!==null){t=De;var o=$a;t:switch(He){case 1:He=0,$a=null,rl(e,t,o,1);break;case 2:case 9:if(L0(o)){He=0,$a=null,K0(t);break}t=function(){He!==2&&He!==9||et!==e||(He=7),Rr(e)},o.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:L0(o)?(He=0,$a=null,K0(t)):(He=0,$a=null,rl(e,t,o,7));break;case 5:var i=null;switch(De.tag){case 26:i=De.memoizedState;case 5:case 27:var l=De;if(i?rT(i):l.stateNode.complete){He=0,$a=null;var s=l.sibling;if(s!==null)De=s;else{var u=l.return;u!==null?(De=u,Zf(u)):De=null}break t}}He=0,$a=null,rl(e,t,o,5);break;case 6:He=0,$a=null,rl(e,t,o,6);break;case 8:cy(),wt=6;break e;default:throw Error(j(462))}}M4();break}catch(c){DL(e,c)}while(!0);return sn=ri=null,ge.H=n,ge.A=r,Be=a,De!==null?0:(et=null,ze=0,Of(),wt)}function M4(){for(;De!==null&&!tR();)PL(De)}function PL(e){var t=cL(e.alternate,e,gn);e.memoizedProps=e.pendingProps,t===null?Zf(e):De=t}function K0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Z0(a,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Z0(a,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Jv(t);default:dL(a,t),t=De=d1(t,gn),t=cL(a,t,gn)}e.memoizedProps=e.pendingProps,t===null?Zf(e):De=t}function rl(e,t,a,n){sn=ri=null,Jv(t),sl=null,Iu=0;var r=t.return;try{if(b4(e,r,t,a,ze)){wt=1,gf(e,ar(a,e.current)),De=null;return}}catch(o){if(r!==null)throw De=r,o;wt=1,gf(e,ar(a,e.current)),De=null;return}t.flags&32768?(Pe||n===1?e=!0:Cl||(ze&536870912)!==0?e=!1:(Zn=e=!0,(n===2||n===9||n===3||n===6)&&(n=ja.current,n!==null&&n.tag===13&&(n.flags|=16384))),UL(t,e)):Zf(t)}function Zf(e){var t=e;do{if((t.flags&32768)!==0){UL(t,Zn);return}e=t.return;var a=_4(t.alternate,t,gn);if(a!==null){De=a;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);wt===0&&(wt=5)}function UL(e,t){do{var a=I4(e.alternate,e);if(a!==null){a.flags&=32767,De=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=a}while(e!==null);wt=6,De=null}function Y0(e,t,a,n,r,o,i,l,s){e.cancelPendingCommit=null;do Hf();while(Nt!==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|=Ov,dR(e,a,o,i,l,s),e===et&&(De=et=null,ze=0),yl=t,Yn=e,dn=a,uv=o,cv=r,EL=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,R4(nf,function(){return qL(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=ge.T,ge.T=null,r=Fe.p,Fe.p=2,i=Be,Be|=4;try{k4(e,t,a)}finally{Be=i,Fe.p=r,ge.T=n}}Nt=1,NL(),jL(),BL()}}function NL(){if(Nt===1){Nt=0;var e=Yn,t=yl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=ge.T,ge.T=null;var n=Fe.p;Fe.p=2;var r=Be;Be|=4;try{wL(t,e);var o=hv,i=r1(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&a1(l.ownerDocument.documentElement,l)){if(s!==null&&zv(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 h=b0(l,w),x=b0(l,C);if(h&&x&&(f.rangeCount!==1||f.anchorNode!==h.node||f.anchorOffset!==h.offset||f.focusNode!==x.node||f.focusOffset!==x.offset)){var g=d.createRange();g.setStart(h.node,h.offset),f.removeAllRanges(),w>C?(f.addRange(g),f.extend(x.node,x.offset)):(g.setEnd(x.node,x.offset),f.addRange(g))}}}}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 S=d[l];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Af=!!mv,hv=mv=null}finally{Be=r,Fe.p=n,ge.T=a}}e.current=t,Nt=2}}function jL(){if(Nt===2){Nt=0;var e=Yn,t=yl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ge.T,ge.T=null;var n=Fe.p;Fe.p=2;var r=Be;Be|=4;try{vL(e,t.alternate,t)}finally{Be=r,Fe.p=n,ge.T=a}}Nt=3}}function BL(){if(Nt===4||Nt===3){Nt=0,aR();var e=Yn,t=yl,a=dn,n=EL;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Nt=5:(Nt=0,yl=Yn=null,FL(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Kn=null),Lv(a),t=t.stateNode,Ra&&typeof Ra.onCommitFiberRoot=="function")try{Ra.onCommitFiberRoot(Du,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=ge.T,r=Fe.p,Fe.p=2,ge.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{ge.T=t,Fe.p=r}}(dn&3)!==0&&Hf(),Rr(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===dv?gu++:(gu=0,dv=e):gu=0,Bu(0,!1)}}function FL(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Uu(t)))}function Hf(){return NL(),jL(),BL(),qL()}function qL(){if(Nt!==5)return!1;var e=Yn,t=uv;uv=0;var a=Lv(dn),n=ge.T,r=Fe.p;try{Fe.p=32>a?32:a,ge.T=null,a=cv,cv=null;var o=Yn,i=dn;if(Nt=0,yl=Yn=null,dn=0,(Be&6)!==0)throw Error(j(331));var l=Be;if(Be|=4,LL(o.current),IL(o,o.current,i,a),Be=l,Bu(0,!1),Ra&&typeof Ra.onPostCommitFiberRoot=="function")try{Ra.onPostCommitFiberRoot(Du,o)}catch{}return!0}finally{Fe.p=r,ge.T=n,FL(e,t)}}function Q0(e,t,a){t=ar(a,t),t=nv(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(Ou(e,2),Rr(e))}function Ve(e,t,a){if(e.tag===3)Q0(e,e,a);else for(;t!==null;){if(t.tag===3){Q0(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Kn===null||!Kn.has(n))){e=ar(a,e),a=nL(2),n=Xn(t,a,2),n!==null&&(oL(a,n,t,e),Ou(n,2),Rr(n));break}}t=t.return}}function wg(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new T4;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)||(sy=!0,r.add(a),e=D4.bind(null,e,t,a),t.then(e,e))}function D4(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,et===e&&(ze&a)===a&&(wt===4||wt===3&&(ze&62914560)===ze&&300>Oa()-Ff?(Be&2)===0&&xl(e,0):uy|=a,vl===ze&&(vl=0)),Rr(e)}function ZL(e,t){t===0&&(t=OC()),e=ai(e,t),e!==null&&(Ou(e,t),Rr(e))}function z4(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ZL(e,a)}function O4(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),ZL(e,a)}function R4(e,t){return kv(e,t)}var wf=null,Hi=null,fv=!1,_f=!1,_g=!1,Vn=0;function Rr(e){e!==Hi&&e.next===null&&(Hi===null?wf=Hi=e:Hi=Hi.next=e),_f=!0,fv||(fv=!0,U4())}function Bu(e,t){if(!_g&&_f){_g=!0;do for(var a=!1,n=wf;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-Pa(42|e)+1)-1,o&=r&~(i&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,eC(n,o))}else o=ze,o=$f(n,n===et?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||zu(n,o)||(a=!0,eC(n,o));n=n.next}while(a);_g=!1}}function P4(){HL()}function HL(){_f=fv=!1;var e=0;Vn!==0&&V4()&&(e=Vn);for(var t=Oa(),a=null,n=wf;n!==null;){var r=n.next,o=VL(n,t);o===0?(n.next=null,a===null?wf=r:a.next=r,r===null&&(Hi=a)):(a=n,(e!==0||(o&3)!==0)&&(_f=!0)),n=r}Nt!==0&&Nt!==5||Bu(e,!1),Vn!==0&&(Vn=0)}function VL(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-Pa(o),l=1<<i,s=r[i];s===-1?((l&a)===0||(l&n)!==0)&&(r[i]=cR(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(t=et,a=ze,a=$f(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Yh(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||zu(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Yh(n),Lv(a)){case 2:case 8:a=DC;break;case 32:a=nf;break;case 268435456:a=zC;break;default:a=nf}return n=GL.bind(null,e),a=kv(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Yh(n),e.callbackPriority=2,e.callbackNode=null,2}function GL(e,t){if(Nt!==0&&Nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Hf()&&e.callbackNode!==a)return null;var n=ze;return n=$f(e,e===et?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(ML(e,n,t),VL(e,Oa()),e.callbackNode!=null&&e.callbackNode===a?GL.bind(null,e):null)}function eC(e,t){if(Hf())return null;ML(e,t,!0)}function U4(){W4(function(){(Be&6)!==0?kv(MC,P4):HL()})}function dy(){if(Vn===0){var e=ml;e===0&&(e=_d,_d<<=1,(_d&261888)===0&&(_d=256)),Vn=e}return Vn}function tC(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bd(""+e)}function aC(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 N4(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var o=tC((r[wa]||null).action),i=n.submitter;i&&(t=(t=i[wa]||null)?tC(t.formAction):i.getAttribute("formAction"),t!==null&&(o=t,i=null));var l=new Mf("action","action",null,n,r);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Vn!==0){var s=i?aC(r,i):new FormData(r);av(a,{pending:!0,data:s,method:r.method,action:o},null,s)}}else typeof o=="function"&&(l.preventDefault(),s=i?aC(r,i):new FormData(r),av(a,{pending:!0,data:s,method:r.method,action:o},o,s))},currentTarget:r}]})}}for(Od=0;Od<Zg.length;Od++)Rd=Zg[Od],rC=Rd.toLowerCase(),nC=Rd[0].toUpperCase()+Rd.slice(1),Sr(rC,"on"+nC);var Rd,rC,nC,Od;Sr(o1,"onAnimationEnd");Sr(i1,"onAnimationIteration");Sr(l1,"onAnimationStart");Sr("dblclick","onDoubleClick");Sr("focusin","onFocus");Sr("focusout","onBlur");Sr(r4,"onTransitionRun");Sr(n4,"onTransitionStart");Sr(o4,"onTransitionCancel");Sr(s1,"onTransitionEnd");fl("onMouseEnter",["mouseout","mouseover"]);fl("onMouseLeave",["mouseout","mouseover"]);fl("onPointerEnter",["pointerout","pointerover"]);fl("onPointerLeave",["pointerout","pointerover"]);Qo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lu="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(" "),j4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lu));function WL(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){lf(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){lf(c)}r.currentTarget=null,o=s}}}}function Me(e,t){var a=t[Rg];a===void 0&&(a=t[Rg]=new Set);var n=e+"__bubble";a.has(n)||(JL(t,e,2,!1),a.add(n))}function Ig(e,t,a){var n=0;t&&(n|=4),JL(a,e,n,t)}var Pd="_reactListening"+Math.random().toString(36).slice(2);function fy(e){if(!e[Pd]){e[Pd]=!0,jC.forEach(function(a){a!=="selectionchange"&&(j4.has(a)||Ig(a,!1,e),Ig(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pd]||(t[Pd]=!0,Ig("selectionchange",!1,t))}}function JL(e,t,a,n){switch(sT(t)){case 2:var r=mP;break;case 8:r=hP;break;default:r=gy}a=r.bind(null,t,a,e),r=void 0,!Bg||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 kg(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=Wi(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}WC(function(){var u=o,c=Ev(a),d=[];e:{var p=u1.get(e);if(p!==void 0){var f=Mf,m=e;switch(e){case"keypress":if(qd(a)===0)break e;case"keydown":case"keyup":f=OR;break;case"focusin":m="focus",f=rg;break;case"focusout":m="blur",f=rg;break;case"beforeblur":case"afterblur":f=rg;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=_R;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=UR;break;case o1:case i1:case l1:f=CR;break;case s1:f=jR;break;case"scroll":case"scrollend":f=SR;break;case"wheel":f=FR;break;case"copy":case"cut":case"paste":f=TR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=p0;break;case"toggle":case"beforetoggle":f=ZR}var w=(t&4)!==0,C=!w&&(e==="scroll"||e==="scrollend"),h=w?p!==null?p+"Capture":null:p;w=[];for(var x=u,g;x!==null;){var S=x;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||h===null||(S=xu(x,h),S!=null&&w.push(Tu(x,S,g))),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!==jg&&(m=a.relatedTarget||a.fromElement)&&(Wi(m)||m[wl]))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?Wi(m):null,m!==null&&(C=Mu(m),w=m.tag,m!==C||w!==5&&w!==27&&w!==6)&&(m=null)):(f=null,m=u),f!==m)){if(w=d0,S="onMouseLeave",h="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(w=p0,S="onPointerLeave",h="onPointerEnter",x="pointer"),C=f==null?p:au(f),g=m==null?p:au(m),p=new w(S,x+"leave",f,a,c),p.target=C,p.relatedTarget=g,S=null,Wi(c)===u&&(w=new w(h,x+"enter",m,a,c),w.target=g,w.relatedTarget=C,S=w),C=S,f&&m)t:{for(w=B4,h=f,x=m,g=0,S=h;S;S=w(S))g++;S=0;for(var L=x;L;L=w(L))S++;for(;0<g-S;)h=w(h),g--;for(;0<S-g;)x=w(x),S--;for(;g--;){if(h===x||x!==null&&h===x.alternate){w=h;break t}h=w(h),x=w(x)}w=null}else w=null;f!==null&&oC(d,p,f,w,!1),m!==null&&C!==null&&oC(d,C,m,w,!0)}}e:{if(p=u?au(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var y=v0;else if(g0(p))if(e1)y=e4;else{y=YR;var _=KR}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&Av(u.elementType)&&(y=v0):y=QR;if(y&&(y=y(e,u))){QC(d,y,a,c);break e}_&&_(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&Ng(p,"number",p.value)}switch(_=u?au(u):window,e){case"focusin":(g0(_)||_.contentEditable==="true")&&(Ki=_,Fg=u,lu=null);break;case"focusout":lu=Fg=Ki=null;break;case"mousedown":qg=!0;break;case"contextmenu":case"mouseup":case"dragend":qg=!1,S0(d,a,c);break;case"selectionchange":if(a4)break;case"keydown":case"keyup":S0(d,a,c)}var b;if(Dv)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 Xi?KC(e,a)&&(T="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(T="onCompositionStart");T&&(XC&&a.locale!=="ko"&&(Xi||T!=="onCompositionStart"?T==="onCompositionEnd"&&Xi&&(b=JC()):(qn=c,$v="value"in qn?qn.value:qn.textContent,Xi=!0)),_=If(u,T),0<_.length&&(T=new f0(T,e,null,a,c),d.push({event:T,listeners:_}),b?T.data=b:(b=YC(a),b!==null&&(T.data=b)))),(b=VR?GR(e,a):WR(e,a))&&(T=If(u,"onBeforeInput"),0<T.length&&(_=new f0("onBeforeInput","beforeinput",null,a,c),d.push({event:_,listeners:T}),_.data=b)),N4(d,e,u,a,c)}WL(d,t)})}function Tu(e,t,a){return{instance:e,listener:t,currentTarget:a}}function If(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=xu(e,a),r!=null&&n.unshift(Tu(e,r,o)),r=xu(e,t),r!=null&&n.push(Tu(e,r,o))),e.tag===3)return n;e=e.return}return[]}function B4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function oC(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=xu(a,o),u!=null&&i.unshift(Tu(a,u,s))):r||(u=xu(a,o),u!=null&&i.push(Tu(a,u,s)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var F4=/\r\n?/g,q4=/\u0000|\uFFFD/g;function iC(e){return(typeof e=="string"?e:""+e).replace(F4,`
|
|
10
|
+
`).replace(q4,"")}function XL(e,t){return t=iC(t),iC(e)===t}function Xe(e,t,a,n,r,o){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||pl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&pl(e,""+n);break;case"className":Cd(e,"class",n);break;case"tabIndex":Cd(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Cd(e,a,n);break;case"style":GC(e,n,o);break;case"data":if(t!=="object"){Cd(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=Bd(""+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"&&Xe(e,t,"name",r.name,r,null),Xe(e,t,"formEncType",r.formEncType,r,null),Xe(e,t,"formMethod",r.formMethod,r,null),Xe(e,t,"formTarget",r.formTarget,r,null)):(Xe(e,t,"encType",r.encType,r,null),Xe(e,t,"method",r.method,r,null),Xe(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Bd(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ln);break;case"onScroll":n!=null&&Me("scroll",e);break;case"onScrollEnd":n!=null&&Me("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=Bd(""+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":Me("beforetoggle",e),Me("toggle",e),jd(e,"popover",n);break;case"xlinkActuate":Yr(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Yr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Yr(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Yr(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Yr(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Yr(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Yr(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Yr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Yr(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":jd(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=xR.get(a)||a,jd(e,a,n))}}function pv(e,t,a,n,r,o){switch(a){case"style":GC(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"?pl(e,n):(typeof n=="number"||typeof n=="bigint")&&pl(e,""+n);break;case"onScroll":n!=null&&Me("scroll",e);break;case"onScrollEnd":n!=null&&Me("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!BC.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[wa]||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,""):jd(e,a,n)}}}function ea(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("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:Xe(e,t,o,i,a,null)}}r&&Xe(e,t,"srcSet",a.srcSet,a,null),n&&Xe(e,t,"src",a.src,a,null);return;case"input":Me("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:Xe(e,t,n,c,a,null)}}ZC(e,o,l,s,u,i,r,!1);return;case"select":Me("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:Xe(e,t,r,l,a,null)}t=o,a=i,e.multiple=!!n,t!=null?ol(e,!!n,t,!1):a!=null&&ol(e,!!n,a,!0);return;case"textarea":Me("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:Xe(e,t,i,l,a,null)}VC(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":Xe(e,t,s,n,a,null));return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(n=0;n<Lu.length;n++)Me(Lu[n],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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:Xe(e,t,u,n,a,null)}return;default:if(Av(t)){for(c in a)a.hasOwnProperty(c)&&(n=a[c],n!==void 0&&pv(e,t,c,n,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null&&Xe(e,t,l,n,a,null))}function Z4(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)||Xe(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&&Xe(e,t,p,f,n,d)}}Ug(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)||Xe(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&&Xe(e,t,r,o,n,s)}t=l,a=i,n=f,p!=null?ol(e,!!a,p,!1):!!n!=!!a&&(t!=null?ol(e,!!a,t,!0):ol(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:Xe(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&&Xe(e,t,i,r,n,o)}HC(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:Xe(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":Xe(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)&&Xe(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:Xe(e,t,u,p,n,f)}return;default:if(Av(t)){for(var C in a)p=a[C],a.hasOwnProperty(C)&&p!==void 0&&!n.hasOwnProperty(C)&&pv(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||pv(e,t,c,p,n,f);return}}for(var h in a)p=a[h],a.hasOwnProperty(h)&&p!=null&&!n.hasOwnProperty(h)&&Xe(e,t,h,null,n,p);for(d in n)p=n[d],f=a[d],!n.hasOwnProperty(d)||p===f||p==null&&f==null||Xe(e,t,d,p,n,f)}function lC(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function H4(){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&&lC(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&&lC(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 mv=null,hv=null;function kf(e){return e.nodeType===9?e:e.ownerDocument}function sC(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 KL(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 gv(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 Cg=null;function V4(){var e=window.event;return e&&e.type==="popstate"?e===Cg?!1:(Cg=e,!0):(Cg=null,!1)}var YL=typeof setTimeout=="function"?setTimeout:void 0,G4=typeof clearTimeout=="function"?clearTimeout:void 0,uC=typeof Promise=="function"?Promise:void 0,W4=typeof queueMicrotask=="function"?queueMicrotask:typeof uC<"u"?function(e){return uC.resolve(null).then(e).catch(J4)}:YL;function J4(e){setTimeout(function(){throw e})}function lo(e){return e==="head"}function cC(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),Sl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")vu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,vu(a);for(var o=a.firstChild;o;){var i=o.nextSibling,l=o.nodeName;o[Ru]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=i}}else a==="body"&&vu(e.ownerDocument.body);a=r}while(a);Sl(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 vv(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":vv(a),Tv(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function X4(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[Ru])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=or(e.nextSibling),e===null)break}return null}function K4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=or(e.nextSibling),e===null))return null;return e}function QL(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=or(e.nextSibling),e===null))return null;return e}function yv(e){return e.data==="$?"||e.data==="$~"}function xv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Y4(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 or(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 bv=null;function fC(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return or(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function pC(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 eT(e,t,a){switch(t=kf(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 vu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tv(e)}var ir=new Map,mC=new Set;function Cf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vn=Fe.d;Fe.d={f:Q4,r:eP,D:tP,C:aP,L:rP,m:nP,X:iP,S:oP,M:lP};function Q4(){var e=vn.f(),t=qf();return e||t}function eP(e){var t=_l(e);t!==null&&t.tag===5&&t.type==="form"?G1(t):vn.r(e)}var Ll=typeof document>"u"?null:document;function tT(e,t,a){var n=Ll;if(n&&typeof t=="string"&&t){var r=tr(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),mC.has(r)||(mC.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),ea(t,"link",e),Zt(t),n.head.appendChild(t)))}}function tP(e){vn.D(e),tT("dns-prefetch",e,null)}function aP(e,t){vn.C(e,t),tT("preconnect",e,t)}function rP(e,t,a){vn.L(e,t,a);var n=Ll;if(n&&e&&t){var r='link[rel="preload"][as="'+tr(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+tr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+tr(a.imageSizes)+'"]')):r+='[href="'+tr(e)+'"]';var o=r;switch(t){case"style":o=bl(e);break;case"script":o=Tl(e)}ir.has(o)||(e=st({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ir.set(o,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Fu(o))||t==="script"&&n.querySelector(qu(o))||(t=n.createElement("link"),ea(t,"link",e),Zt(t),n.head.appendChild(t)))}}function nP(e,t){vn.m(e,t);var a=Ll;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+tr(n)+'"][href="'+tr(e)+'"]',o=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Tl(e)}if(!ir.has(o)&&(e=st({rel:"modulepreload",href:e},t),ir.set(o,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(qu(o)))return}n=a.createElement("link"),ea(n,"link",e),Zt(n),a.head.appendChild(n)}}}function oP(e,t,a){vn.S(e,t,a);var n=Ll;if(n&&e){var r=nl(n).hoistableStyles,o=bl(e);t=t||"default";var i=r.get(o);if(!i){var l={loading:0,preload:null};if(i=n.querySelector(Fu(o)))l.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ir.get(o))&&py(e,a);var s=i=n.createElement("link");Zt(s),ea(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,Kd(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:l},r.set(o,i)}}}function iP(e,t){vn.X(e,t);var a=Ll;if(a&&e){var n=nl(a).hoistableScripts,r=Tl(e),o=n.get(r);o||(o=a.querySelector(qu(r)),o||(e=st({src:e,async:!0},t),(t=ir.get(r))&&my(e,t),o=a.createElement("script"),Zt(o),ea(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function lP(e,t){vn.M(e,t);var a=Ll;if(a&&e){var n=nl(a).hoistableScripts,r=Tl(e),o=n.get(r);o||(o=a.querySelector(qu(r)),o||(e=st({src:e,async:!0,type:"module"},t),(t=ir.get(r))&&my(e,t),o=a.createElement("script"),Zt(o),ea(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function hC(e,t,a,n){var r=(r=Gn.current)?Cf(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=bl(a.href),a=nl(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=bl(a.href);var o=nl(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(Fu(e)))&&!o._p&&(i.instance=o,i.state.loading=5),ir.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},ir.set(e,a),o||sP(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=Tl(a),a=nl(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 bl(e){return'href="'+tr(e)+'"'}function Fu(e){return'link[rel="stylesheet"]['+e+"]"}function aT(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function sP(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}),ea(t,"link",a),Zt(t),e.head.appendChild(t))}function Tl(e){return'[src="'+tr(e)+'"]'}function qu(e){return"script[async]"+e}function gC(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+tr(a.href)+'"]');if(n)return t.instance=n,Zt(n),n;var r=st({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Zt(n),ea(n,"style",r),Kd(n,a.precedence,e),t.instance=n;case"stylesheet":r=bl(a.href);var o=e.querySelector(Fu(r));if(o)return t.state.loading|=4,t.instance=o,Zt(o),o;n=aT(a),(r=ir.get(r))&&py(n,r),o=(e.ownerDocument||e).createElement("link"),Zt(o);var i=o;return i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),ea(o,"link",n),t.state.loading|=4,Kd(o,a.precedence,e),t.instance=o;case"script":return o=Tl(a.src),(r=e.querySelector(qu(o)))?(t.instance=r,Zt(r),r):(n=a,(r=ir.get(o))&&(n=st({},a),my(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Zt(r),ea(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,Kd(n,a.precedence,e));return t.instance}function Kd(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 py(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function my(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yd=null;function vC(e,t,a){if(Yd===null){var n=new Map,r=Yd=new Map;r.set(a,n)}else r=Yd,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[Ru]||o[Kt]||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 yC(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function uP(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 rT(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cP(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=bl(n.href),o=t.querySelector(Fu(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Lf.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,Zt(o);return}o=t.ownerDocument||t,n=aT(n),(r=ir.get(r))&&py(n,r),o=o.createElement("link"),Zt(o);var i=o;i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),ea(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=Lf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Lg=0;function dP(e,t){return e.stylesheets&&e.count===0&&Qd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Lg===0&&(Lg=62500*H4());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Lg?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function Lf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tf=null;function Qd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tf=new Map,t.forEach(fP,e),Tf=null,Lf.call(e))}function fP(e,t){if(!(t.state.loading&4)){var a=Tf.get(e);if(a)var n=a.get(null);else{a=new Map,Tf.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=Lf.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 Au={$$typeof:on,Provider:null,Consumer:null,_currentValue:qo,_currentValue2:qo,_threadCount:0};function pP(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=Qh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qh(0),this.hiddenUpdates=Qh(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 nT(e,t,a,n,r,o,i,l,s,u,c,d){return e=new pP(e,t,a,i,s,u,c,d,l),t=1,o===!0&&(t|=24),o=Da(3,null,null,t),e.current=o,o.stateNode=e,t=jv(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:a,cache:t},qv(o),e}function oT(e){return e?(e=el,e):el}function iT(e,t,a,n,r,o){r=oT(r),n.context===null?n.context=r:n.pendingContext=r,n=Jn(t),n.payload={element:a},o=o===void 0?null:o,o!==null&&(n.callback=o),a=Xn(e,n,t),a!==null&&(Sa(a,e,t),uu(a,e,t))}function xC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hy(e,t){xC(e,t),(e=e.alternate)&&xC(e,t)}function lT(e){if(e.tag===13||e.tag===31){var t=ai(e,67108864);t!==null&&Sa(t,e,67108864),hy(e,67108864)}}function bC(e){if(e.tag===13||e.tag===31){var t=Ua();t=Cv(t);var a=ai(e,t);a!==null&&Sa(a,e,t),hy(e,t)}}var Af=!0;function mP(e,t,a,n){var r=ge.T;ge.T=null;var o=Fe.p;try{Fe.p=2,gy(e,t,a,n)}finally{Fe.p=o,ge.T=r}}function hP(e,t,a,n){var r=ge.T;ge.T=null;var o=Fe.p;try{Fe.p=8,gy(e,t,a,n)}finally{Fe.p=o,ge.T=r}}function gy(e,t,a,n){if(Af){var r=Sv(n);if(r===null)kg(e,t,n,Ef,a),SC(e,n);else if(vP(r,e,t,a,n))n.stopPropagation();else if(SC(e,n),t&4&&-1<gP.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=jo(o.pendingLanes);if(i!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-Pa(i);l.entanglements[1]|=s,i&=~s}Rr(o),(Be&6)===0&&(xf=Oa()+500,Bu(0,!1))}}break;case 31:case 13:l=ai(o,2),l!==null&&Sa(l,o,2),qf(),hy(o,2)}if(o=Sv(n),o===null&&kg(e,t,n,Ef,a),o===r)break;r=o}r!==null&&n.stopPropagation()}else kg(e,t,n,null,a)}}function Sv(e){return e=Ev(e),vy(e)}var Ef=null;function vy(e){if(Ef=null,e=Wi(e),e!==null){var t=Mu(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=LC(t),e!==null)return e;e=null}else if(a===31){if(e=TC(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 Ef=e,null}function sT(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(rR()){case MC:return 2;case DC:return 8;case nf:case nR:return 32;case zC:return 268435456;default:return 32}default:return 32}}var wv=!1,Qn=null,eo=null,to=null,Eu=new Map,$u=new Map,Bn=[],gP="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 SC(e,t){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":eo=null;break;case"mouseover":case"mouseout":to=null;break;case"pointerover":case"pointerout":Eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$u.delete(t.pointerId)}}function Ys(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&&lT(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function vP(e,t,a,n,r){switch(t){case"focusin":return Qn=Ys(Qn,e,t,a,n,r),!0;case"dragenter":return eo=Ys(eo,e,t,a,n,r),!0;case"mouseover":return to=Ys(to,e,t,a,n,r),!0;case"pointerover":var o=r.pointerId;return Eu.set(o,Ys(Eu.get(o)||null,e,t,a,n,r)),!0;case"gotpointercapture":return o=r.pointerId,$u.set(o,Ys($u.get(o)||null,e,t,a,n,r)),!0}return!1}function uT(e){var t=Wi(e.target);if(t!==null){var a=Mu(t);if(a!==null){if(t=a.tag,t===13){if(t=LC(a),t!==null){e.blockedOn=t,n0(e.priority,function(){bC(a)});return}}else if(t===31){if(t=TC(a),t!==null){e.blockedOn=t,n0(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 ef(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Sv(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);jg=n,a.target.dispatchEvent(n),jg=null}else return t=_l(a),t!==null&&lT(t),e.blockedOn=a,!1;t.shift()}return!0}function wC(e,t,a){ef(e)&&a.delete(t)}function yP(){wv=!1,Qn!==null&&ef(Qn)&&(Qn=null),eo!==null&&ef(eo)&&(eo=null),to!==null&&ef(to)&&(to=null),Eu.forEach(wC),$u.forEach(wC)}function Ud(e,t){e.blockedOn===t&&(e.blockedOn=null,wv||(wv=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,yP)))}var Nd=null;function _C(e){Nd!==e&&(Nd=e,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,function(){Nd===e&&(Nd=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(vy(n||a)===null)continue;break}var o=_l(a);o!==null&&(e.splice(t,3),t-=3,av(o,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function Sl(e){function t(s){return Ud(s,e)}Qn!==null&&Ud(Qn,e),eo!==null&&Ud(eo,e),to!==null&&Ud(to,e),Eu.forEach(t),$u.forEach(t);for(var a=0;a<Bn.length;a++){var n=Bn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Bn.length&&(a=Bn[0],a.blockedOn===null);)uT(a),a.blockedOn===null&&Bn.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[wa]||null;if(typeof o=="function")i||_C(a);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(r=o,i=o[wa]||null)l=i.formAction;else if(vy(r)!==null)continue}else l=i.action;typeof l=="function"?a[n+1]=l:(a.splice(n,3),n-=3),_C(a)}}}function cT(){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 yy(e){this._internalRoot=e}Vf.prototype.render=yy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var a=t.current,n=Ua();iT(a,n,e,t,null,null)};Vf.prototype.unmount=yy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;iT(e.current,2,null,e,null,null),qf(),t[wl]=null}};function Vf(e){this._internalRoot=e}Vf.prototype.unstable_scheduleHydration=function(e){if(e){var t=NC();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Bn.length&&t!==0&&t<Bn[a].priority;a++);Bn.splice(a,0,e),a===0&&uT(e)}};var IC=kC.version;if(IC!=="19.2.4")throw Error(j(527,IC,"19.2.4"));Fe.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=XO(t),e=e!==null?AC(e):null,e=e===null?null:e.stateNode,e};var xP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Qs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Qs.isDisabled&&Qs.supportsFiber))try{Du=Qs.inject(xP),Ra=Qs}catch{}var Qs;Gf.createRoot=function(e,t){if(!CC(e))throw Error(j(299));var a=!1,n="",r=tL,o=aL,i=rL;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=nT(e,1,!1,null,null,a,n,null,r,o,i,cT),e[wl]=t.current,fy(e),new yy(t)};Gf.hydrateRoot=function(e,t,a){if(!CC(e))throw Error(j(299));var n=!1,r="",o=tL,i=aL,l=rL,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=nT(e,1,!0,t,a??null,n,r,s,o,i,l,cT),t.context=oT(null),a=t.current,n=Ua(),n=Cv(n),r=Jn(n),r.callback=null,Xn(a,r,n),a=n,t.current.lanes=a,Ou(t,a),Rr(t),e[wl]=t.current,fy(e),new Vf(t)};Gf.version="19.2.4"});var mT=Jt((AZ,pT)=>{"use strict";function fT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fT)}catch(e){console.error(e)}}fT(),pT.exports=dT()});var X$=Jt((WJ,J$)=>{"use strict";function YB(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)}}J$.exports=YB});var mM=Jt(Gm=>{"use strict";var DF=Symbol.for("react.transitional.element"),zF=Symbol.for("react.fragment");function pM(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:DF,type:e,key:n,ref:t!==void 0?t:null,props:a}}Gm.Fragment=zF;Gm.jsx=pM;Gm.jsxs=pM});var Ze=Jt((fX,hM)=>{"use strict";hM.exports=mM()});var OM=Jt((wK,zM)=>{"use strict";var EM=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,HF=/\n/g,VF=/^\s*/,GF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,WF=/^:\s*/,JF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,XF=/^[;\s]*/,KF=/^\s+|\s+$/g,YF=`
|
|
11
|
+
`,$M="/",MM="*",wi="",QF="comment",e5="declaration";function t5(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(HF);w&&(a+=w.length);var C=m.lastIndexOf(YF);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(VF)}function c(m){var w;for(m=m||[];w=d();)w!==!1&&m.push(w);return m}function d(){var m=o();if(!($M!=e.charAt(0)||MM!=e.charAt(1))){for(var w=2;wi!=e.charAt(w)&&(MM!=e.charAt(w)||$M!=e.charAt(w+1));)++w;if(w+=2,wi===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:QF,comment:C})}}function p(){var m=o(),w=s(GF);if(w){if(d(),!s(WF))return l("property missing ':'");var C=s(JF),h=m({type:e5,property:DM(w[0].replace(EM,wi)),value:C?DM(C[0].replace(EM,wi)):wi});return s(XF),h}}function f(){var m=[];c(m);for(var w;w=p();)w!==!1&&(m.push(w),c(m));return m}return u(),f()}function DM(e){return e?e.replace(KF,wi):wi}zM.exports=t5});var RM=Jt(td=>{"use strict";var a5=td&&td.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(td,"__esModule",{value:!0});td.default=n5;var r5=a5(OM());function n5(e,t){let a=null;if(!e||typeof e!="string")return a;let n=(0,r5.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 UM=Jt(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.camelCase=void 0;var o5=/^--[a-zA-Z0-9_-]+$/,i5=/-([a-z])/g,l5=/^[^-]+$/,s5=/^-(webkit|moz|ms|o|khtml)-/,u5=/^-(ms)-/,c5=function(e){return!e||l5.test(e)||o5.test(e)},d5=function(e,t){return t.toUpperCase()},PM=function(e,t){return"".concat(t,"-")},f5=function(e,t){return t===void 0&&(t={}),c5(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(u5,PM):e=e.replace(s5,PM),e.replace(i5,d5))};Qm.camelCase=f5});var jM=Jt((K_,NM)=>{"use strict";var p5=K_&&K_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},m5=p5(RM()),h5=UM();function X_(e,t){var a={};return!e||typeof e!="string"||(0,m5.default)(e,function(n,r){n&&r&&(a[(0,h5.camelCase)(n,t)]=r)}),a}X_.default=X_;NM.exports=X_});var cz=Jt((Yae,uz)=>{"use strict";var _h=Object.prototype.hasOwnProperty,sz=Object.prototype.toString,az=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,nz=function(t){return typeof Array.isArray=="function"?Array.isArray(t):sz.call(t)==="[object Array]"},oz=function(t){if(!t||sz.call(t)!=="[object Object]")return!1;var a=_h.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&_h.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!n)return!1;var r;for(r in t);return typeof r>"u"||_h.call(t,r)},iz=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},lz=function(t,a){if(a==="__proto__")if(_h.call(t,a)){if(rz)return rz(t,a).value}else return;return t[a]};uz.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=lz(l,a),r=lz(t,a),l!==r&&(c&&r&&(oz(r)||(o=nz(r)))?(o?(o=!1,i=n&&nz(n)?n:[]):i=n&&oz(n)?n:{},iz(l,{name:a,newValue:e(c,i,r)})):typeof r<"u"&&iz(l,{name:a,newValue:r}));return l}});var hO=Jt((pO,mO)=>{"use strict";(function(e){var t;typeof pO=="object"?mO.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 Fs=="function"&&Fs;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 Fs=="function"&&Fs,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(S,L){L=C(S,L);var y;return(y=L.algorithm!=="passthrough"?p.createHash(L.algorithm):new g).write===void 0&&(y.write=y.update,y.end=y.update),x(L,y).dispatch(S),y.update||y.end(""),y.digest?y.digest(L.encoding==="buffer"?void 0:L.encoding):(S=y.read(),L.encoding!=="buffer"?S.toString(L.encoding):S)}(a=t.exports=f).sha1=function(S){return f(S)},a.keys=function(S){return f(S,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},a.MD5=function(S){return f(S,{algorithm:"md5",encoding:"hex"})},a.keysMD5=function(S){return f(S,{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(S,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,S===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 h(S){if(typeof S=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(S))!=null}function x(S,L,y){y=y||[];function _(b){return L.update?L.update(b,"utf8"):L.write(b,"utf8")}return{dispatch:function(b){return this["_"+((b=S.replacer?S.replacer(b):b)===null?"null":typeof b)](b)},_object:function(b){var T,I=Object.prototype.toString.call(b),F=/\[object (.*)\]/i.exec(I);if(F=(F=F?F[1]:"unknown:["+I+"]").toLowerCase(),0<=(I=y.indexOf(b)))return this.dispatch("[CIRCULAR:"+I+"]");if(y.push(b),o!==void 0&&o.isBuffer&&o.isBuffer(b))return _("buffer:"),_(b);if(F==="object"||F==="function"||F==="asyncfunction")return I=Object.keys(b),S.unorderedObjects&&(I=I.sort()),S.respectType===!1||h(b)||I.splice(0,0,"prototype","__proto__","constructor"),S.excludeKeys&&(I=I.filter(function(O){return!S.excludeKeys(O)})),_("object:"+I.length+":"),T=this,I.forEach(function(O){T.dispatch(O),_(":"),S.excludeValues||T.dispatch(b[O]),_(",")});if(!this["_"+F]){if(S.ignoreUnknown)return _("["+F+"]");throw new Error('Unknown object type "'+F+'"')}this["_"+F](b)},_array:function(b,O){O=O!==void 0?O:S.unorderedArrays!==!1;var I=this;if(_("array:"+b.length+":"),!O||b.length<=1)return b.forEach(function(N){return I.dispatch(N)});var F=[],O=b.map(function(N){var P=new g,Q=y.slice();return x(S,P,Q).dispatch(N),F=F.concat(Q.slice(y.length)),P.read().toString()});return y=y.concat(F),O.sort(),this._array(O,!1)},_date:function(b){return _("date:"+b.toJSON())},_symbol:function(b){return _("symbol:"+b.toString())},_error:function(b){return _("error:"+b.toString())},_boolean:function(b){return _("bool:"+b.toString())},_string:function(b){_("string:"+b.length+":"),_(b.toString())},_function:function(b){_("fn:"),h(b)?this.dispatch("[native]"):this.dispatch(b.toString()),S.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(b.name)),S.respectFunctionProperties&&this._object(b)},_number:function(b){return _("number:"+b.toString())},_xml:function(b){return _("xml:"+b.toString())},_null:function(){return _("Null")},_undefined:function(){return _("Undefined")},_regexp:function(b){return _("regex:"+b.toString())},_uint8array:function(b){return _("uint8array:"),this.dispatch(Array.prototype.slice.call(b))},_uint8clampedarray:function(b){return _("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(b))},_int8array:function(b){return _("int8array:"),this.dispatch(Array.prototype.slice.call(b))},_uint16array:function(b){return _("uint16array:"),this.dispatch(Array.prototype.slice.call(b))},_int16array:function(b){return _("int16array:"),this.dispatch(Array.prototype.slice.call(b))},_uint32array:function(b){return _("uint32array:"),this.dispatch(Array.prototype.slice.call(b))},_int32array:function(b){return _("int32array:"),this.dispatch(Array.prototype.slice.call(b))},_float32array:function(b){return _("float32array:"),this.dispatch(Array.prototype.slice.call(b))},_float64array:function(b){return _("float64array:"),this.dispatch(Array.prototype.slice.call(b))},_arraybuffer:function(b){return _("arraybuffer:"),this.dispatch(new Uint8Array(b))},_url:function(b){return _("url:"+b.toString())},_map:function(b){return _("map:"),b=Array.from(b),this._array(b,S.unorderedSets!==!1)},_set:function(b){return _("set:"),b=Array.from(b),this._array(b,S.unorderedSets!==!1)},_file:function(b){return _("file:"),this.dispatch([b.name,b.size,b.type,b.lastModfied])},_blob:function(){if(S.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(b){return _("bigint:"+b.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 g(){return{buf:"",write:function(S){this.buf+=S},end:function(S){this.buf+=S},read:function(){return this.buf}}}a.writeToStream=function(S,L,y){return y===void 0&&(y=L,L={}),x(L=C(S,L),y).dispatch(S)}}).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,h=97,x=65,g=45,S=95;function L(y){return y=y.charCodeAt(0),y===m||y===g?62:y===w||y===S?63:y<C?-1:y<C+10?y-C+26+26:y<x+26?y-x:y<h+26?y-h+26:void 0}p.toByteArray=function(y){var _,b;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),F=0<T?y.length-4:y.length,O=0;function N(P){I[O++]=P}for(_=0;_<F;_+=4,0)N((16711680&(b=L(y.charAt(_))<<18|L(y.charAt(_+1))<<12|L(y.charAt(_+2))<<6|L(y.charAt(_+3))))>>16),N((65280&b)>>8),N(255&b);return T==2?N(255&(b=L(y.charAt(_))<<2|L(y.charAt(_+1))>>4)):T==1&&(N((b=L(y.charAt(_))<<10|L(y.charAt(_+1))<<4|L(y.charAt(_+2))>>2)>>8&255),N(255&b)),I},p.fromByteArray=function(y){var _,b,T,I,F=y.length%3,O="";function N(P){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P)}for(_=0,T=y.length-F;_<T;_+=3)b=(y[_]<<16)+(y[_+1]<<8)+y[_+2],O+=N((I=b)>>18&63)+N(I>>12&63)+N(I>>6&63)+N(63&I);switch(F){case 1:O=(O+=N((b=y[y.length-1])>>2))+N(b<<4&63)+"==";break;case 2:O=(O=(O+=N((b=(y[y.length-2]<<8)+y[y.length-1])>>10))+N(b>>4&63))+N(b<<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 U,B,Y,Ie,rt=typeof k;if(A==="base64"&&rt=="string")for(k=(Ie=k).trim?Ie.trim():Ie.replace(/^\s+|\s+$/g,"");k.length%4!=0;)k+="=";if(rt=="number")U=oe(k);else if(rt=="string")U=m.byteLength(k,A);else{if(rt!="object")throw new Error("First argument needs to be a number, array or string.");U=oe(k.length)}if(m._useTypedArrays?B=m._augment(new Uint8Array(U)):((B=this).length=U,B._isBuffer=!0),m._useTypedArrays&&typeof k.byteLength=="number")B._set(k);else if(le(Ie=k)||m.isBuffer(Ie)||Ie&&typeof Ie=="object"&&typeof Ie.length=="number")for(Y=0;Y<U;Y++)m.isBuffer(k)?B[Y]=k.readUInt8(Y):B[Y]=k[Y];else if(rt=="string")B.write(k,0,A);else if(rt=="number"&&!m._useTypedArrays&&!M)for(Y=0;Y<U;Y++)B[Y]=0;return B}function w(k,A,M,U){return m._charsWritten=fe((function(B){for(var Y=[],Ie=0;Ie<B.length;Ie++)Y.push(255&B.charCodeAt(Ie));return Y})(A),k,M,U)}function C(k,A,M,U){return m._charsWritten=fe((function(B){for(var Y,Ie,rt=[],pt=0;pt<B.length;pt++)Ie=B.charCodeAt(pt),Y=Ie>>8,Ie=Ie%256,rt.push(Ie),rt.push(Y);return rt})(A),k,M,U)}function h(k,A,M){var U="";M=Math.min(k.length,M);for(var B=A;B<M;B++)U+=String.fromCharCode(k[B]);return U}function x(k,A,M,Y){Y||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+1<k.length,"Trying to read beyond buffer length"));var B,Y=k.length;if(!(Y<=A))return M?(B=k[A],A+1<Y&&(B|=k[A+1]<<8)):(B=k[A]<<8,A+1<Y&&(B|=k[A+1])),B}function g(k,A,M,Y){Y||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+3<k.length,"Trying to read beyond buffer length"));var B,Y=k.length;if(!(Y<=A))return M?(A+2<Y&&(B=k[A+2]<<16),A+1<Y&&(B|=k[A+1]<<8),B|=k[A],A+3<Y&&(B+=k[A+3]<<24>>>0)):(A+1<Y&&(B=k[A+1]<<16),A+2<Y&&(B|=k[A+2]<<8),A+3<Y&&(B|=k[A+3]),B+=k[A]<<24>>>0),B}function S(k,A,M,U){if(U||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+1<k.length,"Trying to read beyond buffer length")),!(k.length<=A))return U=x(k,A,M,!0),32768&U?-1*(65535-U+1):U}function L(k,A,M,U){if(U||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+3<k.length,"Trying to read beyond buffer length")),!(k.length<=A))return U=g(k,A,M,!0),2147483648&U?-1*(4294967295-U+1):U}function y(k,A,M,U){return U||(K(typeof M=="boolean","missing or invalid endian"),K(A+3<k.length,"Trying to read beyond buffer length")),f.read(k,A,M,23,4)}function _(k,A,M,U){return U||(K(typeof M=="boolean","missing or invalid endian"),K(A+7<k.length,"Trying to read beyond buffer length")),f.read(k,A,M,52,8)}function b(k,A,M,U,B){if(B||(K(A!=null,"missing value"),K(typeof U=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+1<k.length,"trying to write beyond buffer length"),E(A,65535)),B=k.length,!(B<=M))for(var Y=0,Ie=Math.min(B-M,2);Y<Ie;Y++)k[M+Y]=(A&255<<8*(U?Y:1-Y))>>>8*(U?Y:1-Y)}function T(k,A,M,U,B){if(B||(K(A!=null,"missing value"),K(typeof U=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<k.length,"trying to write beyond buffer length"),E(A,4294967295)),B=k.length,!(B<=M))for(var Y=0,Ie=Math.min(B-M,4);Y<Ie;Y++)k[M+Y]=A>>>8*(U?Y:3-Y)&255}function I(k,A,M,U,B){B||(K(A!=null,"missing value"),K(typeof U=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+1<k.length,"Trying to write beyond buffer length"),ye(A,32767,-32768)),k.length<=M||b(k,0<=A?A:65535+A+1,M,U,B)}function F(k,A,M,U,B){B||(K(A!=null,"missing value"),K(typeof U=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<k.length,"Trying to write beyond buffer length"),ye(A,2147483647,-2147483648)),k.length<=M||T(k,0<=A?A:4294967295+A+1,M,U,B)}function O(k,A,M,U,B){B||(K(A!=null,"missing value"),K(typeof U=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<k.length,"Trying to write beyond buffer length"),Ut(A,34028234663852886e22,-34028234663852886e22)),k.length<=M||f.write(k,A,M,U,23,4)}function N(k,A,M,U,B){B||(K(A!=null,"missing value"),K(typeof U=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+7<k.length,"Trying to write beyond buffer length"),Ut(A,17976931348623157e292,-17976931348623157e292)),k.length<=M||f.write(k,A,M,U,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=Ee(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(K(le(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(B=A=0;B<k.length;B++)A+=k[B].length;for(var M=new m(A),U=0,B=0;B<k.length;B++){var Y=k[B];Y.copy(M,U),U+=Y.length}return M},m.prototype.write=function(k,A,M,U){isFinite(A)?isFinite(M)||(U=M,M=void 0):(pt=U,U=A,A=M,M=pt),A=Number(A)||0;var B,Y,Ie,rt,pt=this.length-A;switch((!M||pt<(M=Number(M)))&&(M=pt),U=String(U||"utf8").toLowerCase()){case"hex":B=(function(aa,Ct,$t,vt){$t=Number($t)||0;var nt=aa.length-$t;(!vt||nt<(vt=Number(vt)))&&(vt=nt),K((nt=Ct.length)%2==0,"Invalid hex string"),nt/2<vt&&(vt=nt/2);for(var Ja=0;Ja<vt;Ja++){var Oi=parseInt(Ct.substr(2*Ja,2),16);K(!isNaN(Oi),"Invalid hex string"),aa[$t+Ja]=Oi}return m._charsWritten=2*Ja,Ja})(this,k,A,M);break;case"utf8":case"utf-8":Y=this,Ie=A,rt=M,B=m._charsWritten=fe(Ee(k),Y,Ie,rt);break;case"ascii":case"binary":B=w(this,k,A,M);break;case"base64":Y=this,Ie=A,rt=M,B=m._charsWritten=fe($(k),Y,Ie,rt);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":B=C(this,k,A,M);break;default:throw new Error("Unknown encoding")}return B},m.prototype.toString=function(k,A,M){var U,B,Y,Ie,rt=this;if(k=String(k||"utf8").toLowerCase(),A=Number(A)||0,(M=M!==void 0?Number(M):rt.length)===A)return"";switch(k){case"hex":U=(function(pt,aa,Ct){var $t=pt.length;(!aa||aa<0)&&(aa=0),(!Ct||Ct<0||$t<Ct)&&(Ct=$t);for(var vt="",nt=aa;nt<Ct;nt++)vt+=de(pt[nt]);return vt})(rt,A,M);break;case"utf8":case"utf-8":U=(function(pt,aa,Ct){var $t="",vt="";Ct=Math.min(pt.length,Ct);for(var nt=aa;nt<Ct;nt++)pt[nt]<=127?($t+=xt(vt)+String.fromCharCode(pt[nt]),vt=""):vt+="%"+pt[nt].toString(16);return $t+xt(vt)})(rt,A,M);break;case"ascii":case"binary":U=h(rt,A,M);break;case"base64":B=rt,Ie=M,U=(Y=A)===0&&Ie===B.length?p.fromByteArray(B):p.fromByteArray(B.slice(Y,Ie));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":U=(function(pt,aa,Ct){for(var $t=pt.slice(aa,Ct),vt="",nt=0;nt<$t.length;nt+=2)vt+=String.fromCharCode($t[nt]+256*$t[nt+1]);return vt})(rt,A,M);break;default:throw new Error("Unknown encoding")}return U},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},m.prototype.copy=function(k,A,M,U){if(A=A||0,(U=U||U===0?U:this.length)!==(M=M||0)&&k.length!==0&&this.length!==0){K(M<=U,"sourceEnd < sourceStart"),K(0<=A&&A<k.length,"targetStart out of bounds"),K(0<=M&&M<this.length,"sourceStart out of bounds"),K(0<=U&&U<=this.length,"sourceEnd out of bounds"),U>this.length&&(U=this.length);var B=(U=k.length-A<U-M?k.length-A+M:U)-M;if(B<100||!m._useTypedArrays)for(var Y=0;Y<B;Y++)k[Y+A]=this[Y+M];else k._set(this.subarray(M,M+B),A)}},m.prototype.slice=function(k,A){var M=this.length;if(k=Q(k,M,0),A=Q(A,M,M),m._useTypedArrays)return m._augment(this.subarray(k,A));for(var U=A-k,B=new m(U,void 0,!0),Y=0;Y<U;Y++)B[Y]=this[Y+k];return B},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||(K(k!=null,"missing offset"),K(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 g(this,k,!0,A)},m.prototype.readUInt32BE=function(k,A){return g(this,k,!1,A)},m.prototype.readInt8=function(k,A){if(A||(K(k!=null,"missing offset"),K(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 S(this,k,!0,A)},m.prototype.readInt16BE=function(k,A){return S(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||(K(k!=null,"missing value"),K(A!=null,"missing offset"),K(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){b(this,k,A,!0,M)},m.prototype.writeUInt16BE=function(k,A,M){b(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||(K(k!=null,"missing value"),K(A!=null,"missing offset"),K(A<this.length,"Trying to write beyond buffer length"),ye(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){F(this,k,A,!0,M)},m.prototype.writeInt32BE=function(k,A,M){F(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){N(this,k,A,!0,M)},m.prototype.writeDoubleBE=function(k,A,M){N(this,k,A,!1,M)},m.prototype.fill=function(k,A,M){if(A=A||0,M=M||this.length,K(typeof(k=typeof(k=k||0)=="string"?k.charCodeAt(0):k)=="number"&&!isNaN(k),"value is not a number"),K(A<=M,"end < start"),M!==A&&this.length!==0){K(0<=A&&A<this.length,"start out of bounds"),K(0<=M&&M<=this.length,"end out of bounds");for(var U=A;U<M;U++)this[U]=k}},m.prototype.inspect=function(){for(var k=[],A=this.length,M=0;M<A;M++)if(k[M]=de(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 Q(k,A,M){return typeof k!="number"?M:A<=(k=~~k)?A:0<=k||0<=(k+=A)?k:0}function oe(k){return(k=~~Math.ceil(+k))<0?0:k}function le(k){return(Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"})(k)}function de(k){return k<16?"0"+k.toString(16):k.toString(16)}function Ee(k){for(var A=[],M=0;M<k.length;M++){var U=k.charCodeAt(M);if(U<=127)A.push(k.charCodeAt(M));else for(var B=M,Y=(55296<=U&&U<=57343&&M++,encodeURIComponent(k.slice(B,M+1)).substr(1).split("%")),Ie=0;Ie<Y.length;Ie++)A.push(parseInt(Y[Ie],16))}return A}function $(k){return p.toByteArray(k)}function fe(k,A,M,U){for(var B=0;B<U&&!(B+M>=A.length||B>=k.length);B++)A[B+M]=k[B];return B}function xt(k){try{return decodeURIComponent(k)}catch{return"\uFFFD"}}function E(k,A){K(typeof k=="number","cannot write a non-number as a number"),K(0<=k,"specified a negative value for writing an unsigned value"),K(k<=A,"value is larger than maximum value for type"),K(Math.floor(k)===k,"value has a fractional component")}function ye(k,A,M){K(typeof k=="number","cannot write a non-number as a number"),K(k<=A,"value larger than maximum allowed value"),K(M<=k,"value smaller than minimum allowed value"),K(Math.floor(k)===k,"value has a fractional component")}function Ut(k,A,M){K(typeof k=="number","cannot write a non-number as a number"),K(k<=A,"value larger than maximum allowed value"),K(M<=k,"value smaller than minimum allowed value")}function K(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,h,x){for(var g=C((function(b,T){b.length%f!=0&&(I=b.length+(f-b.length%f),b=p.concat([b,m],I));for(var I,F=[],O=T?b.readInt32BE:b.readInt32LE,N=0;N<b.length;N+=f)F.push(O.call(b,N));return F})(w=p.isBuffer(w)?w:new p(w),x),8*w.length),C=x,S=new p(h),L=C?S.writeInt32BE:S.writeInt32LE,y=0;y<g.length;y++)L.call(S,g[y],4*y,!0);return S}}}).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")},h=64,x=new p(h);function g(b,T){var I=C[b=b||"sha1"],F=[];return I||S("algorithm:",b,"is not yet supported"),{update:function(O){return p.isBuffer(O)||(O=new p(O)),F.push(O),O.length,this},digest:function(O){var N=p.concat(F),N=T?(function(P,Q,oe){p.isBuffer(Q)||(Q=new p(Q)),p.isBuffer(oe)||(oe=new p(oe)),Q.length>h?Q=P(Q):Q.length<h&&(Q=p.concat([Q,x],h));for(var le=new p(h),de=new p(h),Ee=0;Ee<h;Ee++)le[Ee]=54^Q[Ee],de[Ee]=92^Q[Ee];return oe=P(p.concat([le,oe])),P(p.concat([de,oe]))})(I,T,N):I(N);return F=null,O?N.toString(O):N}}}function S(){var b=[].slice.call(arguments).join(" ");throw new Error([b,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
16
|
+
`))}x.fill(0),a.createHash=function(b){return g(b)},a.createHmac=g,a.randomBytes=function(b,T){if(!T||!T.call)return new p(w(b));try{T.call(this,void 0,new p(w(b)))}catch(I){T(I)}};var L,y=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],_=function(b){a[b]=function(){S("sorry,",b,"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(S,L){S[L>>5]|=128<<L%32,S[14+(L+64>>>9<<4)]=L;for(var y=1732584193,_=-271733879,b=-1732584194,T=271733878,I=0;I<S.length;I+=16){var F=y,O=_,N=b,P=T,y=w(y,_,b,T,S[I+0],7,-680876936),T=w(T,y,_,b,S[I+1],12,-389564586),b=w(b,T,y,_,S[I+2],17,606105819),_=w(_,b,T,y,S[I+3],22,-1044525330);y=w(y,_,b,T,S[I+4],7,-176418897),T=w(T,y,_,b,S[I+5],12,1200080426),b=w(b,T,y,_,S[I+6],17,-1473231341),_=w(_,b,T,y,S[I+7],22,-45705983),y=w(y,_,b,T,S[I+8],7,1770035416),T=w(T,y,_,b,S[I+9],12,-1958414417),b=w(b,T,y,_,S[I+10],17,-42063),_=w(_,b,T,y,S[I+11],22,-1990404162),y=w(y,_,b,T,S[I+12],7,1804603682),T=w(T,y,_,b,S[I+13],12,-40341101),b=w(b,T,y,_,S[I+14],17,-1502002290),y=C(y,_=w(_,b,T,y,S[I+15],22,1236535329),b,T,S[I+1],5,-165796510),T=C(T,y,_,b,S[I+6],9,-1069501632),b=C(b,T,y,_,S[I+11],14,643717713),_=C(_,b,T,y,S[I+0],20,-373897302),y=C(y,_,b,T,S[I+5],5,-701558691),T=C(T,y,_,b,S[I+10],9,38016083),b=C(b,T,y,_,S[I+15],14,-660478335),_=C(_,b,T,y,S[I+4],20,-405537848),y=C(y,_,b,T,S[I+9],5,568446438),T=C(T,y,_,b,S[I+14],9,-1019803690),b=C(b,T,y,_,S[I+3],14,-187363961),_=C(_,b,T,y,S[I+8],20,1163531501),y=C(y,_,b,T,S[I+13],5,-1444681467),T=C(T,y,_,b,S[I+2],9,-51403784),b=C(b,T,y,_,S[I+7],14,1735328473),y=h(y,_=C(_,b,T,y,S[I+12],20,-1926607734),b,T,S[I+5],4,-378558),T=h(T,y,_,b,S[I+8],11,-2022574463),b=h(b,T,y,_,S[I+11],16,1839030562),_=h(_,b,T,y,S[I+14],23,-35309556),y=h(y,_,b,T,S[I+1],4,-1530992060),T=h(T,y,_,b,S[I+4],11,1272893353),b=h(b,T,y,_,S[I+7],16,-155497632),_=h(_,b,T,y,S[I+10],23,-1094730640),y=h(y,_,b,T,S[I+13],4,681279174),T=h(T,y,_,b,S[I+0],11,-358537222),b=h(b,T,y,_,S[I+3],16,-722521979),_=h(_,b,T,y,S[I+6],23,76029189),y=h(y,_,b,T,S[I+9],4,-640364487),T=h(T,y,_,b,S[I+12],11,-421815835),b=h(b,T,y,_,S[I+15],16,530742520),y=x(y,_=h(_,b,T,y,S[I+2],23,-995338651),b,T,S[I+0],6,-198630844),T=x(T,y,_,b,S[I+7],10,1126891415),b=x(b,T,y,_,S[I+14],15,-1416354905),_=x(_,b,T,y,S[I+5],21,-57434055),y=x(y,_,b,T,S[I+12],6,1700485571),T=x(T,y,_,b,S[I+3],10,-1894986606),b=x(b,T,y,_,S[I+10],15,-1051523),_=x(_,b,T,y,S[I+1],21,-2054922799),y=x(y,_,b,T,S[I+8],6,1873313359),T=x(T,y,_,b,S[I+15],10,-30611744),b=x(b,T,y,_,S[I+6],15,-1560198380),_=x(_,b,T,y,S[I+13],21,1309151649),y=x(y,_,b,T,S[I+4],6,-145523070),T=x(T,y,_,b,S[I+11],10,-1120210379),b=x(b,T,y,_,S[I+2],15,718787259),_=x(_,b,T,y,S[I+9],21,-343485551),y=g(y,F),_=g(_,O),b=g(b,N),T=g(T,P)}return Array(y,_,b,T)}function m(S,L,y,_,b,T){return g((L=g(g(L,S),g(_,T)))<<b|L>>>32-b,y)}function w(S,L,y,_,b,T,I){return m(L&y|~L&_,S,L,b,T,I)}function C(S,L,y,_,b,T,I){return m(L&_|y&~_,S,L,b,T,I)}function h(S,L,y,_,b,T,I){return m(L^y^_,S,L,b,T,I)}function x(S,L,y,_,b,T,I){return m(y^(L|~_),S,L,b,T,I)}function g(S,L){var y=(65535&S)+(65535&L);return(S>>16)+(L>>16)+(y>>16)<<16|65535&y}t.exports=function(S){return p.hash(S,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,h){C[h>>5]|=128<<24-h%32,C[15+(h+64>>9<<4)]=h;for(var x,g,S,L=Array(80),y=1732584193,_=-271733879,b=-1732584194,T=271733878,I=-1009589776,F=0;F<C.length;F+=16){for(var O=y,N=_,P=b,Q=T,oe=I,le=0;le<80;le++){L[le]=le<16?C[F+le]:w(L[le-3]^L[le-8]^L[le-14]^L[le-16],1);var de=m(m(w(y,5),(de=_,g=b,S=T,(x=le)<20?de&g|~de&S:!(x<40)&&x<60?de&g|de&S|g&S:de^g^S)),m(m(I,L[le]),(x=le)<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514)),I=T,T=b,b=w(_,30),_=y,y=de}y=m(y,O),_=m(_,N),b=m(b,P),T=m(T,Q),I=m(I,oe)}return Array(y,_,b,T,I)}function m(C,h){var x=(65535&C)+(65535&h);return(C>>16)+(h>>16)+(x>>16)<<16|65535&x}function w(C,h){return C<<h|C>>>32-h}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(h,x){var g=(65535&h)+(65535&x);return(h>>16)+(x>>16)+(g>>16)<<16|65535&g}function f(h,x){var g,S=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);h[x>>5]|=128<<24-x%32,h[15+(x+64>>9<<4)]=x;for(var _,b,T=0;T<h.length;T+=16){for(var I=L[0],F=L[1],O=L[2],N=L[3],P=L[4],Q=L[5],oe=L[6],le=L[7],de=0;de<64;de++)y[de]=de<16?h[de+T]:p(p(p((b=y[de-2],w(b,17)^w(b,19)^C(b,10)),y[de-7]),(b=y[de-15],w(b,7)^w(b,18)^C(b,3))),y[de-16]),g=p(p(p(p(le,w(b=P,6)^w(b,11)^w(b,25)),P&Q^~P&oe),S[de]),y[de]),_=p(w(_=I,2)^w(_,13)^w(_,22),I&F^I&O^F&O),le=oe,oe=Q,Q=P,P=p(N,g),N=O,O=F,F=I,I=p(g,_);L[0]=p(I,L[0]),L[1]=p(F,L[1]),L[2]=p(O,L[2]),L[3]=p(N,L[3]),L[4]=p(P,L[4]),L[5]=p(Q,L[5]),L[6]=p(oe,L[6]),L[7]=p(le,L[7])}return L}var m=e("./helpers"),w=function(h,x){return h>>>x|h<<32-x},C=function(h,x){return h>>>x};t.exports=function(h){return m.hash(h,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 h,x,g=8*T-w-1,S=(1<<g)-1,L=S>>1,y=-7,_=m?T-1:0,b=m?-1:1,T=p[f+_];for(_+=b,h=T&(1<<-y)-1,T>>=-y,y+=g;0<y;h=256*h+p[f+_],_+=b,y-=8);for(x=h&(1<<-y)-1,h>>=-y,y+=w;0<y;x=256*x+p[f+_],_+=b,y-=8);if(h===0)h=1-L;else{if(h===S)return x?NaN:1/0*(T?-1:1);x+=Math.pow(2,w),h-=L}return(T?-1:1)*x*Math.pow(2,h-w)},a.write=function(p,f,m,w,C,I){var x,g,S=8*I-C-1,L=(1<<S)-1,y=L>>1,_=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=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?(g=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?(g=0,x=L):1<=x+y?(g=(f*w-1)*Math.pow(2,C),x+=y):(g=f*Math.pow(2,y-1)*Math.pow(2,C),x=0));8<=C;p[m+b]=255&g,b+=T,g/=256,C-=8);for(x=x<<C|g,S+=C;0<S;p[m+b]=255&x,b+=T,x/=256,S-=8);p[m+b-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 h=C.source;h!==window&&h!==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 yZ={};function yr(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))}yr(`:root[data-chat-widget],[data-chat-widget]{--chat-primary: #3b82f6;--chat-primary-text: #ffffff;--chat-primary-hover: #2563eb;--chat-background: #ffffff;--chat-border: #e5e7eb;--chat-header-text: #ffffff;--chat-user-text: #ffffff;--chat-assistant-bg: transparent;--chat-assistant-text: #111827;--chat-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--chat-radius: .75rem;--chat-input-bg: #ffffff;--chat-input-text: #111827;--chat-input-placeholder: #6b7280;--chat-thought-border: #d1d5db;--chat-font-size: .925rem;--chat-thought-font-size: .75rem}.chat-widget{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:0 20px 45px #0f172a1f;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:0 10px 25px #0f172a33;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:0 20px 45px #0f172a1f;border-radius:12px;overflow:hidden}.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:#6b7280;font-size:.8125rem}.chat-widget__thoughts-summary:hover{color:var(--chat-assistant-text)}.chat-widget__thoughts-icon-container{display:flex;border:1px solid #d1d5db;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:#4b5563;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:#9ca3af;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:#9ca3af;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:#9ca3af;cursor:not-allowed}.chat-widget__mic-button--active{color:var(--chat-primary-hover);background:#3b82f614}.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:#94a3b866;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:#9ca3af;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 wO=ce(mT(),1);var qT="vercel.ai.error",bP=Symbol.for(qT),hT,gT,Ue=class ZT extends(gT=Error,hT=bP,gT){constructor({name:t,message:a,cause:n}){super(a),this[hT]=!0,this.name=t,this.cause=n}static isInstance(t){return ZT.hasMarker(t,qT)}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}},HT="AI_APICallError",VT=`vercel.ai.error.${HT}`,SP=Symbol.for(VT),vT,yT,EZ=class extends(yT=Ue,vT=SP,yT){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:HT,message:e,cause:i}),this[vT]=!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,VT)}},GT="AI_EmptyResponseBodyError",WT=`vercel.ai.error.${GT}`,wP=Symbol.for(WT),xT,bT,$Z=class extends(bT=Ue,xT=wP,bT){constructor({message:e="Empty response body"}={}){super({name:GT,message:e}),this[xT]=!0}static isInstance(e){return Ue.hasMarker(e,WT)}};function JT(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var XT="AI_InvalidArgumentError",KT=`vercel.ai.error.${XT}`,_P=Symbol.for(KT),ST,wT,YT=class extends(wT=Ue,ST=_P,wT){constructor({message:e,cause:t,argument:a}){super({name:XT,message:e,cause:t}),this[ST]=!0,this.argument=a}static isInstance(e){return Ue.hasMarker(e,KT)}},QT="AI_InvalidPromptError",eA=`vercel.ai.error.${QT}`,IP=Symbol.for(eA),_T,IT,MZ=class extends(IT=Ue,_T=IP,IT){constructor({prompt:e,message:t,cause:a}){super({name:QT,message:`Invalid prompt: ${t}`,cause:a}),this[_T]=!0,this.prompt=e}static isInstance(e){return Ue.hasMarker(e,eA)}},tA="AI_InvalidResponseDataError",aA=`vercel.ai.error.${tA}`,kP=Symbol.for(aA),kT,CT,DZ=class extends(CT=Ue,kT=kP,CT){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:tA,message:t}),this[kT]=!0,this.data=e}static isInstance(e){return Ue.hasMarker(e,aA)}},rA="AI_JSONParseError",nA=`vercel.ai.error.${rA}`,CP=Symbol.for(nA),LT,TT,by=class extends(TT=Ue,LT=CP,TT){constructor({text:e,cause:t}){super({name:rA,message:`JSON parsing failed: Text: ${e}.
|
|
18
|
+
Error message: ${JT(t)}`,cause:t}),this[LT]=!0,this.text=e}static isInstance(e){return Ue.hasMarker(e,nA)}},oA="AI_LoadAPIKeyError",iA=`vercel.ai.error.${oA}`,LP=Symbol.for(iA),AT,ET,zZ=class extends(ET=Ue,AT=LP,ET){constructor({message:e}){super({name:oA,message:e}),this[AT]=!0}static isInstance(e){return Ue.hasMarker(e,iA)}},lA="AI_LoadSettingError",sA=`vercel.ai.error.${lA}`,TP=Symbol.for(sA),$T,MT,OZ=class extends(MT=Ue,$T=TP,MT){constructor({message:e}){super({name:lA,message:e}),this[$T]=!0}static isInstance(e){return Ue.hasMarker(e,sA)}},uA="AI_NoContentGeneratedError",cA=`vercel.ai.error.${uA}`,AP=Symbol.for(cA),DT,zT,RZ=class extends(zT=Ue,DT=AP,zT){constructor({message:e="No content generated."}={}){super({name:uA,message:e}),this[DT]=!0}static isInstance(e){return Ue.hasMarker(e,cA)}},dA="AI_NoSuchModelError",fA=`vercel.ai.error.${dA}`,EP=Symbol.for(fA),OT,RT,PZ=class extends(RT=Ue,OT=EP,RT){constructor({errorName:e=dA,modelId:t,modelType:a,message:n=`No such ${a}: ${t}`}){super({name:e,message:n}),this[OT]=!0,this.modelId=t,this.modelType=a}static isInstance(e){return Ue.hasMarker(e,fA)}},pA="AI_TooManyEmbeddingValuesForCallError",mA=`vercel.ai.error.${pA}`,$P=Symbol.for(mA),PT,UT,UZ=class extends(UT=Ue,PT=$P,UT){constructor(e){super({name:pA,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[PT]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Ue.hasMarker(e,mA)}},hA="AI_TypeValidationError",gA=`vercel.ai.error.${hA}`,MP=Symbol.for(gA),NT,jT,Pr=class xy extends(jT=Ue,NT=MP,jT){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:hA,message:`${r}: Value: ${JSON.stringify(t)}.
|
|
19
|
+
Error message: ${JT(a)}`,cause:a}),this[NT]=!0,this.value=t,this.context=n}static isInstance(t){return Ue.hasMarker(t,gA)}static wrap({value:t,cause:a,context:n}){var r,o,i;return xy.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 xy({value:t,cause:a,context:n})}},vA="AI_UnsupportedFunctionalityError",yA=`vercel.ai.error.${vA}`,DP=Symbol.for(yA),BT,FT,NZ=class extends(FT=Ue,BT=DP,FT){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:vA,message:t}),this[BT]=!0,this.functionality=e}static isInstance(e){return Ue.hasMarker(e,yA)}};var v={};vr(v,{$brand:()=>Wf,$input:()=>jb,$output:()=>Nb,NEVER:()=>Sy,TimePrecision:()=>Zb,ZodAny:()=>Mw,ZodArray:()=>Rw,ZodBase64:()=>bm,ZodBase64URL:()=>Sm,ZodBigInt:()=>os,ZodBigIntFormat:()=>Im,ZodBoolean:()=>ns,ZodCIDRv4:()=>ym,ZodCIDRv6:()=>xm,ZodCUID:()=>dm,ZodCUID2:()=>fm,ZodCatch:()=>n_,ZodCodec:()=>Mm,ZodCustom:()=>wc,ZodCustomStringFormat:()=>as,ZodDate:()=>vc,ZodDefault:()=>Yw,ZodDiscriminatedUnion:()=>Uw,ZodE164:()=>wm,ZodEmail:()=>sm,ZodEmoji:()=>um,ZodEnum:()=>es,ZodError:()=>lN,ZodExactOptional:()=>Jw,ZodFile:()=>Gw,ZodFirstPartyTypeKind:()=>g_,ZodFunction:()=>p_,ZodGUID:()=>fc,ZodIPv4:()=>gm,ZodIPv6:()=>vm,ZodISODate:()=>am,ZodISODateTime:()=>tm,ZodISODuration:()=>nm,ZodISOTime:()=>rm,ZodIntersection:()=>Nw,ZodIssueCode:()=>uN,ZodJWT:()=>_m,ZodKSUID:()=>hm,ZodLazy:()=>c_,ZodLiteral:()=>Vw,ZodMAC:()=>kw,ZodMap:()=>Zw,ZodNaN:()=>i_,ZodNanoID:()=>cm,ZodNever:()=>zw,ZodNonOptional:()=>Em,ZodNull:()=>Ew,ZodNullable:()=>Kw,ZodNumber:()=>rs,ZodNumberFormat:()=>di,ZodObject:()=>xc,ZodOptional:()=>Am,ZodPipe:()=>$m,ZodPrefault:()=>e_,ZodPromise:()=>f_,ZodReadonly:()=>l_,ZodRealError:()=>Ca,ZodRecord:()=>Sc,ZodSet:()=>Hw,ZodString:()=>ts,ZodStringFormat:()=>Qe,ZodSuccess:()=>r_,ZodSymbol:()=>Tw,ZodTemplateLiteral:()=>u_,ZodTransform:()=>Ww,ZodTuple:()=>Bw,ZodType:()=>we,ZodULID:()=>pm,ZodURL:()=>gc,ZodUUID:()=>Br,ZodUndefined:()=>Aw,ZodUnion:()=>bc,ZodUnknown:()=>Dw,ZodVoid:()=>Ow,ZodXID:()=>mm,ZodXor:()=>Pw,_ZodString:()=>lm,_default:()=>Qw,_function:()=>K2,any:()=>A2,array:()=>yc,base64:()=>f2,base64url:()=>p2,bigint:()=>I2,boolean:()=>Lw,catch:()=>o_,check:()=>Y2,cidrv4:()=>c2,cidrv6:()=>d2,clone:()=>da,codec:()=>W2,coerce:()=>v_,config:()=>_t,core:()=>bn,cuid:()=>a2,cuid2:()=>r2,custom:()=>Q2,date:()=>$2,decode:()=>yw,decodeAsync:()=>bw,describe:()=>e$,discriminatedUnion:()=>P2,e164:()=>m2,email:()=>VE,emoji:()=>e2,encode:()=>vw,encodeAsync:()=>xw,endsWith:()=>ql,enum:()=>Lm,exactOptional:()=>Xw,file:()=>Z2,flattenError:()=>Yu,float32:()=>b2,float64:()=>S2,formatError:()=>Qu,fromJSONSchema:()=>l$,function:()=>K2,getErrorMap:()=>dN,globalRegistry:()=>ta,gt:()=>Nr,gte:()=>fa,guid:()=>GE,hash:()=>x2,hex:()=>y2,hostname:()=>v2,httpUrl:()=>QE,includes:()=>Bl,instanceof:()=>a$,int:()=>im,int32:()=>w2,int64:()=>k2,intersection:()=>jw,ipv4:()=>l2,ipv6:()=>u2,iso:()=>Ql,json:()=>n$,jwt:()=>h2,keyof:()=>M2,ksuid:()=>i2,lazy:()=>d_,length:()=>ui,literal:()=>q2,locales:()=>lc,looseObject:()=>O2,looseRecord:()=>N2,lowercase:()=>Nl,lt:()=>Ur,lte:()=>Fa,mac:()=>s2,map:()=>j2,maxLength:()=>si,maxSize:()=>ho,meta:()=>t$,mime:()=>Zl,minLength:()=>xn,minSize:()=>jr,multipleOf:()=>mo,nan:()=>G2,nanoid:()=>t2,nativeEnum:()=>F2,negative:()=>Vp,never:()=>km,nonnegative:()=>Wp,nonoptional:()=>a_,nonpositive:()=>Gp,normalize:()=>Hl,null:()=>$w,nullable:()=>mc,nullish:()=>H2,number:()=>Cw,object:()=>D2,optional:()=>pc,overwrite:()=>_r,parse:()=>mw,parseAsync:()=>hw,partialRecord:()=>U2,pipe:()=>hc,positive:()=>Hp,prefault:()=>t_,preprocess:()=>o$,prettifyError:()=>Dy,promise:()=>X2,property:()=>Jp,readonly:()=>s_,record:()=>qw,refine:()=>m_,regex:()=>Ul,regexes:()=>sr,registry:()=>Ip,safeDecode:()=>ww,safeDecodeAsync:()=>Iw,safeEncode:()=>Sw,safeEncodeAsync:()=>_w,safeParse:()=>gw,safeParseAsync:()=>dc,set:()=>B2,setErrorMap:()=>cN,size:()=>li,slugify:()=>Jl,startsWith:()=>Fl,strictObject:()=>z2,string:()=>om,stringFormat:()=>g2,stringbool:()=>r$,success:()=>V2,superRefine:()=>h_,symbol:()=>L2,templateLiteral:()=>J2,toJSONSchema:()=>Yl,toLowerCase:()=>Gl,toUpperCase:()=>Wl,transform:()=>Tm,treeifyError:()=>My,trim:()=>Vl,tuple:()=>Fw,uint32:()=>_2,uint64:()=>C2,ulid:()=>n2,undefined:()=>T2,union:()=>Cm,unknown:()=>ci,uppercase:()=>jl,url:()=>YE,util:()=>V,uuid:()=>WE,uuidv4:()=>JE,uuidv6:()=>XE,uuidv7:()=>KE,void:()=>E2,xid:()=>o2,xor:()=>R2});var bn={};vr(bn,{$ZodAny:()=>lb,$ZodArray:()=>fb,$ZodAsyncError:()=>wr,$ZodBase64:()=>Kx,$ZodBase64URL:()=>Yx,$ZodBigInt:()=>vp,$ZodBigIntFormat:()=>rb,$ZodBoolean:()=>rc,$ZodCIDRv4:()=>Wx,$ZodCIDRv6:()=>Jx,$ZodCUID:()=>Rx,$ZodCUID2:()=>Px,$ZodCatch:()=>Eb,$ZodCheck:()=>tt,$ZodCheckBigIntFormat:()=>fx,$ZodCheckEndsWith:()=>Ix,$ZodCheckGreaterThan:()=>cp,$ZodCheckIncludes:()=>wx,$ZodCheckLengthEquals:()=>yx,$ZodCheckLessThan:()=>up,$ZodCheckLowerCase:()=>bx,$ZodCheckMaxLength:()=>gx,$ZodCheckMaxSize:()=>px,$ZodCheckMimeType:()=>Cx,$ZodCheckMinLength:()=>vx,$ZodCheckMinSize:()=>mx,$ZodCheckMultipleOf:()=>cx,$ZodCheckNumberFormat:()=>dx,$ZodCheckOverwrite:()=>Lx,$ZodCheckProperty:()=>kx,$ZodCheckRegex:()=>xx,$ZodCheckSizeEquals:()=>hx,$ZodCheckStartsWith:()=>_x,$ZodCheckStringFormat:()=>Rl,$ZodCheckUpperCase:()=>Sx,$ZodCodec:()=>oc,$ZodCustom:()=>Ub,$ZodCustomStringFormat:()=>tb,$ZodDate:()=>db,$ZodDefault:()=>Cb,$ZodDiscriminatedUnion:()=>hb,$ZodE164:()=>Qx,$ZodEmail:()=>Mx,$ZodEmoji:()=>zx,$ZodEncodeError:()=>so,$ZodEnum:()=>bb,$ZodError:()=>Ku,$ZodExactOptional:()=>Ib,$ZodFile:()=>wb,$ZodFunction:()=>Ob,$ZodGUID:()=>Ex,$ZodIPv4:()=>Hx,$ZodIPv6:()=>Vx,$ZodISODate:()=>Fx,$ZodISODateTime:()=>Bx,$ZodISODuration:()=>Zx,$ZodISOTime:()=>qx,$ZodIntersection:()=>gb,$ZodJWT:()=>eb,$ZodKSUID:()=>jx,$ZodLazy:()=>Pb,$ZodLiteral:()=>Sb,$ZodMAC:()=>Gx,$ZodMap:()=>yb,$ZodNaN:()=>$b,$ZodNanoID:()=>Ox,$ZodNever:()=>ub,$ZodNonOptional:()=>Tb,$ZodNull:()=>ib,$ZodNullable:()=>kb,$ZodNumber:()=>gp,$ZodNumberFormat:()=>ab,$ZodObject:()=>HA,$ZodObjectJIT:()=>pb,$ZodOptional:()=>xp,$ZodPipe:()=>Mb,$ZodPrefault:()=>Lb,$ZodPromise:()=>Rb,$ZodReadonly:()=>Db,$ZodRealError:()=>ka,$ZodRecord:()=>vb,$ZodRegistry:()=>_p,$ZodSet:()=>xb,$ZodString:()=>ii,$ZodStringFormat:()=>Ye,$ZodSuccess:()=>Ab,$ZodSymbol:()=>nb,$ZodTemplateLiteral:()=>zb,$ZodTransform:()=>_b,$ZodTuple:()=>yp,$ZodType:()=>ve,$ZodULID:()=>Ux,$ZodURL:()=>Dx,$ZodUUID:()=>$x,$ZodUndefined:()=>ob,$ZodUnion:()=>nc,$ZodUnknown:()=>sb,$ZodVoid:()=>cb,$ZodXID:()=>Nx,$ZodXor:()=>mb,$brand:()=>Wf,$constructor:()=>D,$input:()=>jb,$output:()=>Nb,Doc:()=>ac,JSONSchema:()=>ZE,JSONSchemaGenerator:()=>Qp,NEVER:()=>Sy,TimePrecision:()=>Zb,_any:()=>dS,_array:()=>yS,_base64:()=>Bp,_base64url:()=>Fp,_bigint:()=>nS,_boolean:()=>aS,_catch:()=>QU,_check:()=>qE,_cidrv4:()=>Np,_cidrv6:()=>jp,_coercedBigint:()=>oS,_coercedBoolean:()=>rS,_coercedDate:()=>gS,_coercedNumber:()=>Xb,_coercedString:()=>Fb,_cuid:()=>Mp,_cuid2:()=>Dp,_custom:()=>bS,_date:()=>hS,_decode:()=>ep,_decodeAsync:()=>ap,_default:()=>XU,_discriminatedUnion:()=>UU,_e164:()=>qp,_email:()=>kp,_emoji:()=>Ep,_encode:()=>Qf,_encodeAsync:()=>tp,_endsWith:()=>ql,_enum:()=>ZU,_file:()=>xS,_float32:()=>Yb,_float64:()=>Qb,_gt:()=>Nr,_gte:()=>fa,_guid:()=>sc,_includes:()=>Bl,_int:()=>Kb,_int32:()=>eS,_int64:()=>iS,_intersection:()=>NU,_ipv4:()=>Pp,_ipv6:()=>Up,_isoDate:()=>Vb,_isoDateTime:()=>Hb,_isoDuration:()=>Wb,_isoTime:()=>Gb,_jwt:()=>Zp,_ksuid:()=>Rp,_lazy:()=>rN,_length:()=>ui,_literal:()=>VU,_lowercase:()=>Nl,_lt:()=>Ur,_lte:()=>Fa,_mac:()=>qb,_map:()=>FU,_max:()=>Fa,_maxLength:()=>si,_maxSize:()=>ho,_mime:()=>Zl,_min:()=>fa,_minLength:()=>xn,_minSize:()=>jr,_multipleOf:()=>mo,_nan:()=>vS,_nanoid:()=>$p,_nativeEnum:()=>HU,_negative:()=>Vp,_never:()=>pS,_nonnegative:()=>Wp,_nonoptional:()=>KU,_nonpositive:()=>Gp,_normalize:()=>Hl,_null:()=>cS,_nullable:()=>JU,_number:()=>Jb,_optional:()=>WU,_overwrite:()=>_r,_parse:()=>Ml,_parseAsync:()=>Dl,_pipe:()=>eN,_positive:()=>Hp,_promise:()=>nN,_property:()=>Jp,_readonly:()=>tN,_record:()=>BU,_refine:()=>SS,_regex:()=>Ul,_safeDecode:()=>np,_safeDecodeAsync:()=>ip,_safeEncode:()=>rp,_safeEncodeAsync:()=>op,_safeParse:()=>zl,_safeParseAsync:()=>Ol,_set:()=>qU,_size:()=>li,_slugify:()=>Jl,_startsWith:()=>Fl,_string:()=>Bb,_stringFormat:()=>Xl,_stringbool:()=>kS,_success:()=>YU,_superRefine:()=>wS,_symbol:()=>sS,_templateLiteral:()=>aN,_toLowerCase:()=>Gl,_toUpperCase:()=>Wl,_transform:()=>GU,_trim:()=>Vl,_tuple:()=>jU,_uint32:()=>tS,_uint64:()=>lS,_ulid:()=>zp,_undefined:()=>uS,_union:()=>RU,_unknown:()=>fS,_uppercase:()=>jl,_url:()=>uc,_uuid:()=>Cp,_uuidv4:()=>Lp,_uuidv6:()=>Tp,_uuidv7:()=>Ap,_void:()=>mS,_xid:()=>Op,_xor:()=>PU,clone:()=>da,config:()=>_t,createStandardJSONSchemaMethod:()=>Kl,createToJSONSchemaMethod:()=>CS,decode:()=>l6,decodeAsync:()=>u6,describe:()=>_S,encode:()=>i6,encodeAsync:()=>s6,extractDefs:()=>vo,finalize:()=>yo,flattenError:()=>Yu,formatError:()=>Qu,globalConfig:()=>Zu,globalRegistry:()=>ta,initializeContext:()=>go,isValidBase64:()=>Xx,isValidBase64URL:()=>BA,isValidJWT:()=>FA,locales:()=>lc,meta:()=>IS,parse:()=>Kf,parseAsync:()=>Yf,prettifyError:()=>Dy,process:()=>qe,regexes:()=>sr,registry:()=>Ip,safeDecode:()=>d6,safeDecodeAsync:()=>p6,safeEncode:()=>c6,safeEncodeAsync:()=>f6,safeParse:()=>zy,safeParseAsync:()=>Oy,toDotPath:()=>_A,toJSONSchema:()=>Yl,treeifyError:()=>My,util:()=>V,version:()=>Tx});var Sy=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 Wf=Symbol("zod_brand"),wr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},so=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Zu={};function _t(e){return e&&Object.assign(Zu,e),Zu}var V={};vr(V,{BIGINT_FORMAT_RANGES:()=>$y,Class:()=>_y,NUMBER_FORMAT_RANGES:()=>Ey,aborted:()=>po,allowsEval:()=>Cy,assert:()=>UP,assertEqual:()=>zP,assertIs:()=>RP,assertNever:()=>PP,assertNotEqual:()=>OP,assignProp:()=>co,base64ToUint8Array:()=>bA,base64urlToUint8Array:()=>t6,cached:()=>El,captureStackTrace:()=>Xf,cleanEnum:()=>e6,cleanRegex:()=>Gu,clone:()=>da,cloneDef:()=>jP,createTransparentProxy:()=>VP,defineLazy:()=>Te,esc:()=>Jf,escapeRegex:()=>lr,extend:()=>JP,finalizeIssue:()=>Ia,floatSafeRemainder:()=>Iy,getElementAtPath:()=>BP,getEnumValues:()=>Vu,getLengthableOrigin:()=>Xu,getParsedType:()=>HP,getSizableOrigin:()=>Ju,hexToUint8Array:()=>r6,isObject:()=>ni,isPlainObject:()=>fo,issue:()=>$l,joinValues:()=>z,jsonStringifyReplacer:()=>Al,merge:()=>KP,mergeDefs:()=>yn,normalizeParams:()=>X,nullish:()=>uo,numKeys:()=>ZP,objectClone:()=>NP,omit:()=>WP,optionalKeys:()=>Ay,parsedType:()=>H,partial:()=>YP,pick:()=>GP,prefixIssues:()=>Ba,primitiveTypes:()=>Ty,promiseAllObject:()=>FP,propertyKeyTypes:()=>Wu,randomString:()=>qP,required:()=>QP,safeExtend:()=>XP,shallowClone:()=>Ly,slugify:()=>ky,stringifyPrimitive:()=>q,uint8ArrayToBase64:()=>SA,uint8ArrayToBase64url:()=>a6,uint8ArrayToHex:()=>n6,unwrapMessage:()=>Hu});function zP(e){return e}function OP(e){return e}function RP(e){}function PP(e){throw new Error("Unexpected value in exhaustive check")}function UP(e){}function Vu(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=>q(a)).join(t)}function Al(e,t){return typeof t=="bigint"?t.toString():t}function El(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw new Error("cached value already set")}}}function uo(e){return e==null}function Gu(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function Iy(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 xA=Symbol("evaluating");function Te(e,t,a){let n;Object.defineProperty(e,t,{get(){if(n!==xA)return n===void 0&&(n=xA,n=a()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function NP(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function co(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function yn(...e){let t={};for(let a of e){let n=Object.getOwnPropertyDescriptors(a);Object.assign(t,n)}return Object.defineProperties({},t)}function jP(e){return yn(e._zod.def)}function BP(e,t){return t?t.reduce((a,n)=>a?.[n],e):e}function FP(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 qP(e=10){let t="abcdefghijklmnopqrstuvwxyz",a="";for(let n=0;n<e;n++)a+=t[Math.floor(Math.random()*t.length)];return a}function Jf(e){return JSON.stringify(e)}function ky(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Xf="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ni(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Cy=El(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function fo(e){if(ni(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let a=t.prototype;return!(ni(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function Ly(e){return fo(e)?{...e}:Array.isArray(e)?[...e]:e}function ZP(e){let t=0;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t++;return t}var HP=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}`)}},Wu=new Set(["string","number","symbol"]),Ty=new Set(["string","number","bigint","boolean","symbol","undefined"]);function lr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function da(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 VP(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 q(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ay(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Ey={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]},$y={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function GP(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=yn(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 co(this,"shape",i),i},checks:[]});return da(e,o)}function WP(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=yn(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 co(this,"shape",i),i},checks:[]});return da(e,o)}function JP(e,t){if(!fo(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=yn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return co(this,"shape",o),o}});return da(e,r)}function XP(e,t){if(!fo(t))throw new Error("Invalid input to safeExtend: expected a plain object");let a=yn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return co(this,"shape",n),n}});return da(e,a)}function KP(e,t){let a=yn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return co(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return da(e,a)}function YP(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=yn(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 co(this,"shape",s),s},checks:[]});return da(t,i)}function QP(e,t,a){let n=yn(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 co(this,"shape",o),o}});return da(t,n)}function po(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 Ba(e,t){return t.map(a=>{var n;return(n=a).path??(n.path=[]),a.path.unshift(e),a})}function Hu(e){return typeof e=="string"?e:e?.message}function Ia(e,t,a){let n={...e,path:e.path??[]};if(!e.message){let r=Hu(e.inst?._zod.def?.error?.(e))??Hu(t?.error?.(e))??Hu(a.customError?.(e))??Hu(a.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Ju(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Xu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function H(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 $l(...e){let[t,a,n]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:n}:{...t}}function e6(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 SA(e){let t="";for(let a=0;a<e.length;a++)t+=String.fromCharCode(e[a]);return btoa(t)}function t6(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),a="=".repeat((4-t.length%4)%4);return bA(t+a)}function a6(e){return SA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function r6(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 n6(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var _y=class{constructor(...t){}};var wA=(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,Al,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ku=D("$ZodError",wA),ka=D("$ZodError",wA,{Parent:Error});function Yu(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 Qu(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 My(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 _A(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 Dy(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 ${_A(n.path)}`);return t.join(`
|
|
20
|
+
`)}var Ml=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 wr;if(i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>Ia(s,o,_t())));throw Xf(l,r?.callee),l}return i.value},Kf=Ml(ka),Dl=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=>Ia(s,o,_t())));throw Xf(l,r?.callee),l}return i.value},Yf=Dl(ka),zl=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 wr;return o.issues.length?{success:!1,error:new(e??Ku)(o.issues.map(i=>Ia(i,r,_t())))}:{success:!0,data:o.value}},zy=zl(ka),Ol=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=>Ia(i,r,_t())))}:{success:!0,data:o.value}},Oy=Ol(ka),Qf=e=>(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ml(e)(t,a,r)},i6=Qf(ka),ep=e=>(t,a,n)=>Ml(e)(t,a,n),l6=ep(ka),tp=e=>async(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Dl(e)(t,a,r)},s6=tp(ka),ap=e=>async(t,a,n)=>Dl(e)(t,a,n),u6=ap(ka),rp=e=>(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zl(e)(t,a,r)},c6=rp(ka),np=e=>(t,a,n)=>zl(e)(t,a,n),d6=np(ka),op=e=>async(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ol(e)(t,a,r)},f6=op(ka),ip=e=>async(t,a,n)=>Ol(e)(t,a,n),p6=ip(ka);var sr={};vr(sr,{base64:()=>Ky,base64url:()=>lp,bigint:()=>rx,boolean:()=>ox,browserEmail:()=>S6,cidrv4:()=>Jy,cidrv6:()=>Xy,cuid:()=>Ry,cuid2:()=>Py,date:()=>Qy,datetime:()=>tx,domain:()=>I6,duration:()=>Fy,e164:()=>Yy,email:()=>Zy,emoji:()=>Hy,extendedDuration:()=>m6,guid:()=>qy,hex:()=>k6,hostname:()=>_6,html5Email:()=>y6,idnEmail:()=>b6,integer:()=>nx,ipv4:()=>Vy,ipv6:()=>Gy,ksuid:()=>jy,lowercase:()=>sx,mac:()=>Wy,md5_base64:()=>L6,md5_base64url:()=>T6,md5_hex:()=>C6,nanoid:()=>By,null:()=>ix,number:()=>sp,rfc5322Email:()=>x6,sha1_base64:()=>E6,sha1_base64url:()=>$6,sha1_hex:()=>A6,sha256_base64:()=>D6,sha256_base64url:()=>z6,sha256_hex:()=>M6,sha384_base64:()=>R6,sha384_base64url:()=>P6,sha384_hex:()=>O6,sha512_base64:()=>N6,sha512_base64url:()=>j6,sha512_hex:()=>U6,string:()=>ax,time:()=>ex,ulid:()=>Uy,undefined:()=>lx,unicodeEmail:()=>IA,uppercase:()=>ux,uuid:()=>oi,uuid4:()=>h6,uuid6:()=>g6,uuid7:()=>v6,xid:()=>Ny});var Ry=/^[cC][^\s-]{8,}$/,Py=/^[0-9a-z]+$/,Uy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ny=/^[0-9a-vA-V]{20}$/,jy=/^[A-Za-z0-9]{27}$/,By=/^[a-zA-Z0-9_-]{21}$/,Fy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,m6=/^[-+]?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)?)??$/,qy=/^([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})$/,oi=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)$/,h6=oi(4),g6=oi(6),v6=oi(7),Zy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,y6=/^[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])?)*$/,x6=/^(([^<>()\[\]\\.,;:\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,}))$/,IA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,b6=IA,S6=/^[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])?)*$/,w6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Hy(){return new RegExp(w6,"u")}var Vy=/^(?:(?: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])$/,Gy=/^(([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}|:))$/,Wy=e=>{let t=lr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Jy=/^((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])$/,Xy=/^(([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])$/,Ky=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lp=/^[A-Za-z0-9_-]*$/,_6=/^(?=.{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])?)*\.?$/,I6=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Yy=/^\+[1-9]\d{6,14}$/,kA="(?:(?:\\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])))",Qy=new RegExp(`^${kA}$`);function CA(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 ex(e){return new RegExp(`^${CA(e)}$`)}function tx(e){let t=CA({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(`^${kA}T(?:${n})$`)}var ax=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rx=/^-?\d+n?$/,nx=/^-?\d+$/,sp=/^-?\d+(?:\.\d+)?$/,ox=/^(?:true|false)$/i,ix=/^null$/i;var lx=/^undefined$/i;var sx=/^[^A-Z]*$/,ux=/^[^a-z]*$/,k6=/^[0-9a-fA-F]*$/;function ec(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tc(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var C6=/^[0-9a-fA-F]{32}$/,L6=ec(22,"=="),T6=tc(22),A6=/^[0-9a-fA-F]{40}$/,E6=ec(27,"="),$6=tc(27),M6=/^[0-9a-fA-F]{64}$/,D6=ec(43,"="),z6=tc(43),O6=/^[0-9a-fA-F]{96}$/,R6=ec(64,""),P6=tc(64),U6=/^[0-9a-fA-F]{128}$/,N6=ec(86,"=="),j6=tc(86);var tt=D("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),TA={number:"number",bigint:"bigint",object:"date"},up=D("$ZodCheckLessThan",(e,t)=>{tt.init(e,t);let a=TA[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})}}),cp=D("$ZodCheckGreaterThan",(e,t)=>{tt.init(e,t);let a=TA[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})}}),cx=D("$ZodCheckMultipleOf",(e,t)=>{tt.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):Iy(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})}}),dx=D("$ZodCheckNumberFormat",(e,t)=>{tt.init(e,t),t.format=t.format||"float64";let a=t.format?.includes("int"),n=a?"int":"number",[r,o]=Ey[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=nx)}),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})}}),fx=D("$ZodCheckBigIntFormat",(e,t)=>{tt.init(e,t);let[a,n]=$y[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})}}),px=D("$ZodCheckMaxSize",(e,t)=>{var a;tt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(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:Ju(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),mx=D("$ZodCheckMinSize",(e,t)=>{var a;tt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(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:Ju(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),hx=D("$ZodCheckSizeEquals",(e,t)=>{var a;tt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(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:Ju(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})}}),gx=D("$ZodCheckMaxLength",(e,t)=>{var a;tt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(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=Xu(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),vx=D("$ZodCheckMinLength",(e,t)=>{var a;tt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(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=Xu(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),yx=D("$ZodCheckLengthEquals",(e,t)=>{var a;tt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(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=Xu(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})}}),Rl=D("$ZodCheckStringFormat",(e,t)=>{var a,n;tt.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=()=>{})}),xx=D("$ZodCheckRegex",(e,t)=>{Rl.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})}}),bx=D("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=sx),Rl.init(e,t)}),Sx=D("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ux),Rl.init(e,t)}),wx=D("$ZodCheckIncludes",(e,t)=>{tt.init(e,t);let a=lr(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})}}),_x=D("$ZodCheckStartsWith",(e,t)=>{tt.init(e,t);let a=new RegExp(`^${lr(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})}}),Ix=D("$ZodCheckEndsWith",(e,t)=>{tt.init(e,t);let a=new RegExp(`.*${lr(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 LA(e,t,a){e.issues.length&&t.issues.push(...Ba(a,e.issues))}var kx=D("$ZodCheckProperty",(e,t)=>{tt.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=>LA(r,a,t.property));LA(n,a,t.property)}}),Cx=D("$ZodCheckMimeType",(e,t)=>{tt.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})}}),Lx=D("$ZodCheckOverwrite",(e,t)=>{tt.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});var ac=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 Tx={major:4,minor:3,patch:6};var ve=D("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Tx;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=po(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 wr;if(c||f instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await f,i.issues.length!==p&&(u||(u=po(i,p)))});else{if(i.issues.length===p)continue;u||(u=po(i,p))}}return c?c.then(()=>i):i},o=(i,l,s)=>{if(po(i))return i.aborted=!0,i;let u=r(l,n,s);if(u instanceof Promise){if(s.async===!1)throw new wr;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 wr;return s.then(u=>r(u,n,l))}return r(s,n,l)}}Te(e,"~standard",()=>({validate:r=>{try{let o=zy(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Oy(e,r).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),ii=D("$ZodString",(e,t)=>{ve.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ax(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}}),Ye=D("$ZodStringFormat",(e,t)=>{Rl.init(e,t),ii.init(e,t)}),Ex=D("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qy),Ye.init(e,t)}),$x=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=oi(n))}else t.pattern??(t.pattern=oi());Ye.init(e,t)}),Mx=D("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Zy),Ye.init(e,t)}),Dx=D("$ZodURL",(e,t)=>{Ye.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})}}}),zx=D("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Hy()),Ye.init(e,t)}),Ox=D("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=By),Ye.init(e,t)}),Rx=D("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ry),Ye.init(e,t)}),Px=D("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Py),Ye.init(e,t)}),Ux=D("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Uy),Ye.init(e,t)}),Nx=D("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ny),Ye.init(e,t)}),jx=D("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jy),Ye.init(e,t)}),Bx=D("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tx(t)),Ye.init(e,t)}),Fx=D("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Qy),Ye.init(e,t)}),qx=D("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ex(t)),Ye.init(e,t)}),Zx=D("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Fy),Ye.init(e,t)}),Hx=D("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Vy),Ye.init(e,t),e._zod.bag.format="ipv4"}),Vx=D("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gy),Ye.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})}}}),Gx=D("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Wy(t.delimiter)),Ye.init(e,t),e._zod.bag.format="mac"}),Wx=D("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Jy),Ye.init(e,t)}),Jx=D("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Xy),Ye.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 Xx(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Kx=D("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ky),Ye.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{Xx(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function BA(e){if(!lp.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xx(a)}var Yx=D("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lp),Ye.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{BA(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),Qx=D("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Yy),Ye.init(e,t)});function FA(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 eb=D("$ZodJWT",(e,t)=>{Ye.init(e,t),e._zod.check=a=>{FA(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),tb=D("$ZodCustomStringFormat",(e,t)=>{Ye.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})}}),gp=D("$ZodNumber",(e,t)=>{ve.init(e,t),e._zod.pattern=e._zod.bag.pattern??sp,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}}),ab=D("$ZodNumberFormat",(e,t)=>{dx.init(e,t),gp.init(e,t)}),rc=D("$ZodBoolean",(e,t)=>{ve.init(e,t),e._zod.pattern=ox,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}}),vp=D("$ZodBigInt",(e,t)=>{ve.init(e,t),e._zod.pattern=rx,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}}),rb=D("$ZodBigIntFormat",(e,t)=>{fx.init(e,t),vp.init(e,t)}),nb=D("$ZodSymbol",(e,t)=>{ve.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}}),ob=D("$ZodUndefined",(e,t)=>{ve.init(e,t),e._zod.pattern=lx,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}}),ib=D("$ZodNull",(e,t)=>{ve.init(e,t),e._zod.pattern=ix,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}}),lb=D("$ZodAny",(e,t)=>{ve.init(e,t),e._zod.parse=a=>a}),sb=D("$ZodUnknown",(e,t)=>{ve.init(e,t),e._zod.parse=a=>a}),ub=D("$ZodNever",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)}),cb=D("$ZodVoid",(e,t)=>{ve.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}}),db=D("$ZodDate",(e,t)=>{ve.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 EA(e,t,a){e.issues.length&&t.issues.push(...Ba(a,e.issues)),t.value[a]=e.value}var fb=D("$ZodArray",(e,t)=>{ve.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=>EA(u,a,i))):EA(s,a,i)}return o.length?Promise.all(o).then(()=>a):a}});function hp(e,t,a,n,r){if(e.issues.length){if(r&&!(a in n))return;t.issues.push(...Ba(a,e.issues))}e.value===void 0?a in n&&(t.value[a]=void 0):t.value[a]=e.value}function qA(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=Ay(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function ZA(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=>hp(f,a,d,t,c))):hp(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 HA=D("$ZodObject",(e,t)=>{if(ve.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=El(()=>qA(t));Te(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=ni,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=>hp(C,l,p,u,m))):hp(w,l,p,u,m)}return o?ZA(c,u,l,s,n.value,e):c.length?Promise.all(c).then(()=>l):l}}),pb=D("$ZodObjectJIT",(e,t)=>{HA.init(e,t);let a=e._zod.parse,n=El(()=>qA(t)),r=p=>{let f=new ac(["shape","payload","ctx"]),m=n.value,w=g=>{let S=Jf(g);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};f.write("const input = payload.value;");let C=Object.create(null),h=0;for(let g of m.keys)C[g]=`key_${h++}`;f.write("const newResult = {};");for(let g of m.keys){let S=C[g],L=Jf(g),_=p[g]?._zod?.optout==="optional";f.write(`const ${S} = ${w(g)};`),_?f.write(`
|
|
23
|
+
if (${S}.issues.length) {
|
|
24
|
+
if (${L} in input) {
|
|
25
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
26
|
+
...iss,
|
|
27
|
+
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
28
|
+
})));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (${S}.value === undefined) {
|
|
33
|
+
if (${L} in input) {
|
|
34
|
+
newResult[${L}] = undefined;
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
newResult[${L}] = ${S}.value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
`):f.write(`
|
|
41
|
+
if (${S}.issues.length) {
|
|
42
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
43
|
+
...iss,
|
|
44
|
+
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
45
|
+
})));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (${S}.value === undefined) {
|
|
49
|
+
if (${L} in input) {
|
|
50
|
+
newResult[${L}] = undefined;
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
newResult[${L}] = ${S}.value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");let x=f.compile();return(g,S)=>x(p,g,S)},o,i=ni,l=!Zu.jitless,u=l&&Cy.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?ZA([],m,p,f,d,e):p):a(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function $A(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=>!po(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=>Ia(i,n,_t())))}),t)}var nc=D("$ZodUnion",(e,t)=>{ve.init(e,t),Te(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Te(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Te(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Te(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=>Gu(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=>$A(s,r,e,o)):$A(l,r,e,o)}});function MA(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=>Ia(i,n,_t())))}):t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:[],inclusive:!1}),t)}var mb=D("$ZodXor",(e,t)=>{nc.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=>MA(s,r,e,o)):MA(l,r,e,o)}}),hb=D("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nc.init(e,t);let a=e._zod.parse;Te(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=El(()=>{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(!ni(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)}}),gb=D("$ZodIntersection",(e,t)=>{ve.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])=>DA(a,s,u)):DA(a,o,i)}});function Ax(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(fo(e)&&fo(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=Ax(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=Ax(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 DA(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}),po(e))return e;let i=Ax(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 yp=D("$ZodTuple",(e,t)=>{ve.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=>dp(p,n,u))):dp(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=>dp(f,n,u))):dp(p,n,u)}}return i.length?Promise.all(i).then(()=>n):n}});function dp(e,t,a){e.issues.length&&t.issues.push(...Ba(a,e.issues)),t.value[a]=e.value}var vb=D("$ZodRecord",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!fo(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(...Ba(u,d.issues)),a.value[u]=d.value})):(c.issues.length&&a.issues.push(...Ba(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"&&sp.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=>Ia(d,n,_t())),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(...Ba(l,d.issues)),a.value[s.value]=d.value})):(c.issues.length&&a.issues.push(...Ba(l,c.issues)),a.value[s.value]=c.value)}}return o.length?Promise.all(o).then(()=>a):a}}),yb=D("$ZodMap",(e,t)=>{ve.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])=>{zA(c,d,a,i,r,e,n)})):zA(s,u,a,i,r,e,n)}return o.length?Promise.all(o).then(()=>a):a}});function zA(e,t,a,n,r,o,i){e.issues.length&&(Wu.has(typeof n)?a.issues.push(...Ba(n,e.issues)):a.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(l=>Ia(l,i,_t()))})),t.issues.length&&(Wu.has(typeof n)?a.issues.push(...Ba(n,t.issues)):a.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:n,issues:t.issues.map(l=>Ia(l,i,_t()))})),a.value.set(e.value,t.value)}var xb=D("$ZodSet",(e,t)=>{ve.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=>OA(s,a))):OA(l,a)}return o.length?Promise.all(o).then(()=>a):a}});function OA(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var bb=D("$ZodEnum",(e,t)=>{ve.init(e,t);let a=Vu(t.entries),n=new Set(a);e._zod.values=n,e._zod.pattern=new RegExp(`^(${a.filter(r=>Wu.has(typeof r)).map(r=>typeof r=="string"?lr(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}}),Sb=D("$ZodLiteral",(e,t)=>{if(ve.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"?lr(n):n?lr(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}}),wb=D("$ZodFile",(e,t)=>{ve.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}}),_b=D("$ZodTransform",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new so(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 wr;return a.value=r,a}});function RA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var xp=D("$ZodOptional",(e,t)=>{ve.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Te(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Gu(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=>RA(o,a.value)):RA(r,a.value)}return a.value===void 0?a:t.innerType._zod.run(a,n)}}),Ib=D("$ZodExactOptional",(e,t)=>{xp.init(e,t),Te(e._zod,"values",()=>t.innerType._zod.values),Te(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(a,n)=>t.innerType._zod.run(a,n)}),kb=D("$ZodNullable",(e,t)=>{ve.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Gu(a.source)}|null)$`):void 0}),Te(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)}),Cb=D("$ZodDefault",(e,t)=>{ve.init(e,t),e._zod.optin="optional",Te(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=>PA(o,t)):PA(r,t)}});function PA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Lb=D("$ZodPrefault",(e,t)=>{ve.init(e,t),e._zod.optin="optional",Te(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))}),Tb=D("$ZodNonOptional",(e,t)=>{ve.init(e,t),Te(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=>UA(o,e)):UA(r,e)}});function UA(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 Ab=D("$ZodSuccess",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new so("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)}}),Eb=D("$ZodCatch",(e,t)=>{ve.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(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=>Ia(i,n,_t()))},input:a.value}),a.issues=[]),a)):(a.value=r.value,r.issues.length&&(a.value=t.catchValue({...a,error:{issues:r.issues.map(o=>Ia(o,n,_t()))},input:a.value}),a.issues=[]),a)}}),$b=D("$ZodNaN",(e,t)=>{ve.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)}),Mb=D("$ZodPipe",(e,t)=>{ve.init(e,t),Te(e._zod,"values",()=>t.in._zod.values),Te(e._zod,"optin",()=>t.in._zod.optin),Te(e._zod,"optout",()=>t.out._zod.optout),Te(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=>fp(i,t.in,n)):fp(o,t.in,n)}let r=t.in._zod.run(a,n);return r instanceof Promise?r.then(o=>fp(o,t.out,n)):fp(r,t.out,n)}});function fp(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},a)}var oc=D("$ZodCodec",(e,t)=>{ve.init(e,t),Te(e._zod,"values",()=>t.in._zod.values),Te(e._zod,"optin",()=>t.in._zod.optin),Te(e._zod,"optout",()=>t.out._zod.optout),Te(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=>pp(i,t,n)):pp(o,t,n)}else{let o=t.out._zod.run(a,n);return o instanceof Promise?o.then(i=>pp(i,t,n)):pp(o,t,n)}}});function pp(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=>mp(e,o,t.out,a)):mp(e,r,t.out,a)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>mp(e,o,t.in,a)):mp(e,r,t.in,a)}}function mp(e,t,a,n){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:t,issues:e.issues},n)}var Db=D("$ZodReadonly",(e,t)=>{ve.init(e,t),Te(e._zod,"propValues",()=>t.innerType._zod.propValues),Te(e._zod,"values",()=>t.innerType._zod.values),Te(e._zod,"optin",()=>t.innerType?._zod?.optin),Te(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(NA):NA(r)}});function NA(e){return e.value=Object.freeze(e.value),e}var zb=D("$ZodTemplateLiteral",(e,t)=>{ve.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||Ty.has(typeof n))a.push(lr(`${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)}),Ob=D("$ZodFunction",(e,t)=>(ve.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?Kf(e._def.input,n):n,o=Reflect.apply(a,this,r);return e._def.output?Kf(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 Yf(e._def.input,n):n,o=await Reflect.apply(a,this,r);return e._def.output?await Yf(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 yp({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)),Rb=D("$ZodPromise",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>Promise.resolve(a.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),Pb=D("$ZodLazy",(e,t)=>{ve.init(e,t),Te(e._zod,"innerType",()=>t.getter()),Te(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Te(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Te(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Te(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(a,n)=>e._zod.innerType._zod.run(a,n)}),Ub=D("$ZodCustom",(e,t)=>{tt.init(e,t),ve.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=>jA(o,a,n,e));jA(r,a,n,e)}});function jA(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($l(r))}}var lc={};vr(lc,{ar:()=>VA,az:()=>GA,be:()=>JA,bg:()=>XA,ca:()=>KA,cs:()=>YA,da:()=>QA,de:()=>eE,en:()=>bp,eo:()=>tE,es:()=>aE,fa:()=>rE,fi:()=>nE,fr:()=>oE,frCA:()=>iE,he:()=>lE,hu:()=>sE,hy:()=>cE,id:()=>dE,is:()=>fE,it:()=>pE,ja:()=>mE,ka:()=>hE,kh:()=>gE,km:()=>Sp,ko:()=>vE,lt:()=>xE,mk:()=>bE,ms:()=>SE,nl:()=>wE,no:()=>_E,ota:()=>IE,pl:()=>CE,ps:()=>kE,pt:()=>LE,ru:()=>AE,sl:()=>EE,sv:()=>$E,ta:()=>ME,th:()=>DE,tr:()=>zE,ua:()=>OE,uk:()=>wp,ur:()=>RE,uz:()=>PE,vi:()=>UE,yo:()=>BE,zhCN:()=>NE,zhTW:()=>jE});var F6=()=>{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=H(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 ${q(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 VA(){return{localeError:F6()}}var q6=()=>{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=H(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 ${q(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 GA(){return{localeError:q6()}}function WA(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 Z6=()=>{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=H(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 ${q(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=WA(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=WA(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 JA(){return{localeError:Z6()}}var H6=()=>{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=H(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 ${q(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 XA(){return{localeError:H6()}}var V6=()=>{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=H(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 ${q(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 KA(){return{localeError:V6()}}var G6=()=>{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=H(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 ${q(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 YA(){return{localeError:G6()}}var W6=()=>{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=H(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 ${q(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 QA(){return{localeError:W6()}}var J6=()=>{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=H(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 ${q(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 eE(){return{localeError:J6()}}var X6=()=>{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=H(r.input),l=n[i]??i;return`Invalid input: expected ${o}, received ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${q(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 bp(){return{localeError:X6()}}var K6=()=>{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=H(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 ${q(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 tE(){return{localeError:K6()}}var Y6=()=>{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=H(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 ${q(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 aE(){return{localeError:Y6()}}var Q6=()=>{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=H(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 ${q(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 rE(){return{localeError:Q6()}}var eU=()=>{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=H(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 ${q(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 nE(){return{localeError:eU()}}var tU=()=>{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=H(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 : ${q(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 oE(){return{localeError:tU()}}var aU=()=>{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=H(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 ${q(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 iE(){return{localeError:aU()}}var rU=()=>{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=H(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 ${q(u.values[0])}`;let c=u.values.map(f=>q(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 lE(){return{localeError:rU()}}var nU=()=>{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=H(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 ${q(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 sE(){return{localeError:nU()}}function uE(e,t,a){return Math.abs(e)===1?t:a}function Pl(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 oU=()=>{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=H(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 ${q(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=uE(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 ${Pl(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 ${Pl(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=uE(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 ${Pl(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 ${Pl(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 ${Pl(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 ${Pl(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function cE(){return{localeError:oU()}}var iU=()=>{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=H(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 ${q(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:iU()}}var lU=()=>{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=H(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 ${q(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 fE(){return{localeError:lU()}}var sU=()=>{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=H(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 ${q(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 pE(){return{localeError:sU()}}var uU=()=>{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=H(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: ${q(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 mE(){return{localeError:uU()}}var cU=()=>{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=H(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 ${q(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 hE(){return{localeError:cU()}}var dU=()=>{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=H(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 ${q(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 Sp(){return{localeError:dU()}}function gE(){return Sp()}var fU=()=>{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=H(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 ${q(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 vE(){return{localeError:fU()}}var ic=e=>e.charAt(0).toUpperCase()+e.slice(1);function yE(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 pU=()=>{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=H(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 ${q(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,yE(Number(r.maximum)),r.inclusive??!1,"smaller");if(i?.verb)return`${ic(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`${ic(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,yE(Number(r.minimum)),r.inclusive??!1,"bigger");if(i?.verb)return`${ic(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`${ic(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`${ic(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function xE(){return{localeError:pU()}}var mU=()=>{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=H(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 ${q(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:mU()}}var hU=()=>{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=H(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 ${q(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 SE(){return{localeError:hU()}}var gU=()=>{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=H(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 ${q(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 wE(){return{localeError:gU()}}var vU=()=>{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=H(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 ${q(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 _E(){return{localeError:vU()}}var yU=()=>{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=H(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 ${q(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 IE(){return{localeError:yU()}}var xU=()=>{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=H(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 ${q(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 kE(){return{localeError:xU()}}var bU=()=>{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=H(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 ${q(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 CE(){return{localeError:bU()}}var SU=()=>{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=H(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 ${q(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 LE(){return{localeError:SU()}}function TE(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 wU=()=>{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=H(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 ${q(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=TE(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=TE(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 AE(){return{localeError:wU()}}var _U=()=>{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=H(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 ${q(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 EE(){return{localeError:_U()}}var IU=()=>{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=H(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 ${q(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 $E(){return{localeError:IU()}}var kU=()=>{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=H(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 ${q(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 ME(){return{localeError:kU()}}var CU=()=>{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=H(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 ${q(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 DE(){return{localeError:CU()}}var LU=()=>{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=H(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 ${q(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 zE(){return{localeError:LU()}}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=H(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 ${q(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 wp(){return{localeError:TU()}}function OE(){return wp()}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=H(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: ${q(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 RE(){return{localeError:AU()}}var EU=()=>{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=H(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 ${q(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 PE(){return{localeError:EU()}}var $U=()=>{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=H(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 ${q(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 UE(){return{localeError:$U()}}var MU=()=>{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=H(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 ${q(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 NE(){return{localeError:MU()}}var DU=()=>{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=H(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 ${q(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 jE(){return{localeError:DU()}}var zU=()=>{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=H(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 ${q(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 BE(){return{localeError:zU()}}var FE,Nb=Symbol("ZodOutput"),jb=Symbol("ZodInput"),_p=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 Ip(){return new _p}(FE=globalThis).__zod_globalRegistry??(FE.__zod_globalRegistry=Ip());var ta=globalThis.__zod_globalRegistry;function Bb(e,t){return new e({type:"string",...X(t)})}function Fb(e,t){return new e({type:"string",coerce:!0,...X(t)})}function kp(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 Cp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...X(t)})}function Lp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(t)})}function Tp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(t)})}function Ap(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(t)})}function uc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...X(t)})}function Ep(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...X(t)})}function $p(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(t)})}function Mp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...X(t)})}function Dp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(t)})}function zp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...X(t)})}function Op(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...X(t)})}function Rp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(t)})}function Pp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(t)})}function Up(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(t)})}function qb(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...X(t)})}function Np(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(t)})}function jp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(t)})}function Bp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...X(t)})}function Fp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...X(t)})}function qp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...X(t)})}function Zp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...X(t)})}var Zb={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hb(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(t)})}function Vb(e,t){return new e({type:"string",format:"date",check:"string_format",...X(t)})}function Gb(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...X(t)})}function Wb(e,t){return new e({type:"string",format:"duration",check:"string_format",...X(t)})}function Jb(e,t){return new e({type:"number",checks:[],...X(t)})}function Xb(e,t){return new e({type:"number",coerce:!0,checks:[],...X(t)})}function Kb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...X(t)})}function Yb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...X(t)})}function Qb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...X(t)})}function eS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...X(t)})}function tS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...X(t)})}function aS(e,t){return new e({type:"boolean",...X(t)})}function rS(e,t){return new e({type:"boolean",coerce:!0,...X(t)})}function nS(e,t){return new e({type:"bigint",...X(t)})}function oS(e,t){return new e({type:"bigint",coerce:!0,...X(t)})}function iS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...X(t)})}function lS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...X(t)})}function sS(e,t){return new e({type:"symbol",...X(t)})}function uS(e,t){return new e({type:"undefined",...X(t)})}function cS(e,t){return new e({type:"null",...X(t)})}function dS(e){return new e({type:"any"})}function fS(e){return new e({type:"unknown"})}function pS(e,t){return new e({type:"never",...X(t)})}function mS(e,t){return new e({type:"void",...X(t)})}function hS(e,t){return new e({type:"date",...X(t)})}function gS(e,t){return new e({type:"date",coerce:!0,...X(t)})}function vS(e,t){return new e({type:"nan",...X(t)})}function Ur(e,t){return new up({check:"less_than",...X(t),value:e,inclusive:!1})}function Fa(e,t){return new up({check:"less_than",...X(t),value:e,inclusive:!0})}function Nr(e,t){return new cp({check:"greater_than",...X(t),value:e,inclusive:!1})}function fa(e,t){return new cp({check:"greater_than",...X(t),value:e,inclusive:!0})}function Hp(e){return Nr(0,e)}function Vp(e){return Ur(0,e)}function Gp(e){return Fa(0,e)}function Wp(e){return fa(0,e)}function mo(e,t){return new cx({check:"multiple_of",...X(t),value:e})}function ho(e,t){return new px({check:"max_size",...X(t),maximum:e})}function jr(e,t){return new mx({check:"min_size",...X(t),minimum:e})}function li(e,t){return new hx({check:"size_equals",...X(t),size:e})}function si(e,t){return new gx({check:"max_length",...X(t),maximum:e})}function xn(e,t){return new vx({check:"min_length",...X(t),minimum:e})}function ui(e,t){return new yx({check:"length_equals",...X(t),length:e})}function Ul(e,t){return new xx({check:"string_format",format:"regex",...X(t),pattern:e})}function Nl(e){return new bx({check:"string_format",format:"lowercase",...X(e)})}function jl(e){return new Sx({check:"string_format",format:"uppercase",...X(e)})}function Bl(e,t){return new wx({check:"string_format",format:"includes",...X(t),includes:e})}function Fl(e,t){return new _x({check:"string_format",format:"starts_with",...X(t),prefix:e})}function ql(e,t){return new Ix({check:"string_format",format:"ends_with",...X(t),suffix:e})}function Jp(e,t,a){return new kx({check:"property",property:e,schema:t,...X(a)})}function Zl(e,t){return new Cx({check:"mime_type",mime:e,...X(t)})}function _r(e){return new Lx({check:"overwrite",tx:e})}function Hl(e){return _r(t=>t.normalize(e))}function Vl(){return _r(e=>e.trim())}function Gl(){return _r(e=>e.toLowerCase())}function Wl(){return _r(e=>e.toUpperCase())}function Jl(){return _r(e=>ky(e))}function yS(e,t,a){return new e({type:"array",element:t,...X(a)})}function RU(e,t,a){return new e({type:"union",options:t,...X(a)})}function PU(e,t,a){return new e({type:"union",options:t,inclusive:!1,...X(a)})}function UU(e,t,a,n){return new e({type:"union",options:a,discriminator:t,...X(n)})}function NU(e,t,a){return new e({type:"intersection",left:t,right:a})}function jU(e,t,a,n){let r=a instanceof ve,o=r?n:a,i=r?a:null;return new e({type:"tuple",items:t,rest:i,...X(o)})}function BU(e,t,a,n){return new e({type:"record",keyType:t,valueType:a,...X(n)})}function FU(e,t,a,n){return new e({type:"map",keyType:t,valueType:a,...X(n)})}function qU(e,t,a){return new e({type:"set",valueType:t,...X(a)})}function ZU(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 HU(e,t,a){return new e({type:"enum",entries:t,...X(a)})}function VU(e,t,a){return new e({type:"literal",values:Array.isArray(t)?t:[t],...X(a)})}function xS(e,t){return new e({type:"file",...X(t)})}function GU(e,t){return new e({type:"transform",transform:t})}function WU(e,t){return new e({type:"optional",innerType:t})}function JU(e,t){return new e({type:"nullable",innerType:t})}function XU(e,t,a){return new e({type:"default",innerType:t,get defaultValue(){return typeof a=="function"?a():Ly(a)}})}function KU(e,t,a){return new e({type:"nonoptional",innerType:t,...X(a)})}function YU(e,t){return new e({type:"success",innerType:t})}function QU(e,t,a){return new e({type:"catch",innerType:t,catchValue:typeof a=="function"?a:()=>a})}function eN(e,t,a){return new e({type:"pipe",in:t,out:a})}function tN(e,t){return new e({type:"readonly",innerType:t})}function aN(e,t,a){return new e({type:"template_literal",parts:t,...X(a)})}function rN(e,t){return new e({type:"lazy",getter:t})}function nN(e,t){return new e({type:"promise",innerType:t})}function bS(e,t,a){let n=X(a);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function SS(e,t,a){return new e({type:"custom",check:"custom",fn:t,...X(a)})}function wS(e){let t=qE(a=>(a.addIssue=n=>{if(typeof n=="string")a.issues.push($l(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($l(r))}},e(a.value,a)));return t}function qE(e,t){let a=new tt({check:"custom",...X(t)});return a._zod.check=e,a}function _S(e){let t=new tt({check:"describe"});return t._zod.onattach=[a=>{let n=ta.get(a)??{};ta.add(a,{...n,description:e})}],t._zod.check=()=>{},t}function IS(e){let t=new tt({check:"meta"});return t._zod.onattach=[a=>{let n=ta.get(a)??{};ta.add(a,{...n,...e})}],t._zod.check=()=>{},t}function kS(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??oc,s=e.Boolean??rc,u=e.String??ii,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 Xl(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 go(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??ta,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 qe(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),qe(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"&&pa(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 vo(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 yo(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:Kl(t,"input",e.processors),output:Kl(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function pa(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 pa(n.element,a);if(n.type==="set")return pa(n.valueType,a);if(n.type==="lazy")return pa(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 pa(n.innerType,a);if(n.type==="intersection")return pa(n.left,a)||pa(n.right,a);if(n.type==="record"||n.type==="map")return pa(n.keyType,a)||pa(n.valueType,a);if(n.type==="pipe")return pa(n.in,a)||pa(n.out,a);if(n.type==="object"){for(let r in n.shape)if(pa(n.shape[r],a))return!0;return!1}if(n.type==="union"){for(let r of n.options)if(pa(r,a))return!0;return!1}if(n.type==="tuple"){for(let r of n.items)if(pa(r,a))return!0;return!!(n.rest&&pa(n.rest,a))}return!1}var CS=(e,t={})=>a=>{let n=go({...a,processors:t});return qe(e,n),vo(n,e),yo(n,e)},Kl=(e,t,a={})=>n=>{let{libraryOptions:r,target:o}=n??{},i=go({...r??{},target:o,io:t,processors:a});return qe(e,i),vo(i,e),yo(i,e)};var oN={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LS=(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=oN[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}))])}},TS=(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)},AS=(e,t,a,n)=>{a.type="boolean"},ES=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},$S=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},MS=(e,t,a,n)=>{t.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},DS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},zS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},OS=(e,t,a,n)=>{a.not={}},RS=(e,t,a,n)=>{},PS=(e,t,a,n)=>{},US=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},NS=(e,t,a,n)=>{let r=e._zod.def,o=Vu(r.entries);o.every(i=>typeof i=="number")&&(a.type="number"),o.every(i=>typeof i=="string")&&(a.type="string"),a.enum=o},jS=(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},BS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},FS=(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},qS=(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)},ZS=(e,t,a,n)=>{a.type="boolean"},HS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},VS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},GS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},WS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},JS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},XS=(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=qe(o.element,t,{...n,path:[...n.path,"items"]})},KS=(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]=qe(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=qe(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Kp=(e,t,a,n)=>{let r=e._zod.def,o=r.inclusive===!1,i=r.options.map((l,s)=>qe(l,t,{...n,path:[...n.path,o?"oneOf":"anyOf",s]}));o?a.oneOf=i:a.anyOf=i},YS=(e,t,a,n)=>{let r=e._zod.def,o=qe(r.left,t,{...n,path:[...n.path,"allOf",0]}),i=qe(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},QS=(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)=>qe(p,t,{...n,path:[...n.path,i,f]})),u=o.rest?qe(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)},ew=(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=qe(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=qe(o.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=qe(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)}},tw=(e,t,a,n)=>{let r=e._zod.def,o=qe(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"}]},aw=(e,t,a,n)=>{let r=e._zod.def;qe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},rw=(e,t,a,n)=>{let r=e._zod.def;qe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,a.default=JSON.parse(JSON.stringify(r.defaultValue))},nw=(e,t,a,n)=>{let r=e._zod.def;qe(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)))},ow=(e,t,a,n)=>{let r=e._zod.def;qe(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},iw=(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;qe(o,t,n);let i=t.seen.get(e);i.ref=o},lw=(e,t,a,n)=>{let r=e._zod.def;qe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,a.readOnly=!0},sw=(e,t,a,n)=>{let r=e._zod.def;qe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},Yp=(e,t,a,n)=>{let r=e._zod.def;qe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},uw=(e,t,a,n)=>{let r=e._zod.innerType;qe(r,t,n);let o=t.seen.get(e);o.ref=r},Xp={string:LS,number:TS,boolean:AS,bigint:ES,symbol:$S,null:MS,undefined:DS,void:zS,never:OS,any:RS,unknown:PS,date:US,enum:NS,literal:jS,nan:BS,template_literal:FS,file:qS,success:ZS,custom:HS,function:VS,transform:GS,map:WS,set:JS,array:XS,object:KS,union:Kp,intersection:YS,tuple:QS,record:ew,nullable:tw,nonoptional:aw,default:rw,prefault:nw,catch:ow,pipe:iw,readonly:lw,promise:sw,optional:Yp,lazy:uw};function Yl(e,t){if("_idmap"in e){let n=e,r=go({...t,processors:Xp}),o={};for(let s of n._idmap.entries()){let[u,c]=s;qe(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;vo(r,c),i[u]=yo(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=go({...t,processors:Xp});return qe(e,a),vo(a,e),yo(a,e)}var Qp=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=go({processors:Xp,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 qe(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)),vo(this.ctx,t);let n=yo(this.ctx,t),{"~standard":r,...o}=n;return o}};var ZE={};var cc={};vr(cc,{ZodAny:()=>Mw,ZodArray:()=>Rw,ZodBase64:()=>bm,ZodBase64URL:()=>Sm,ZodBigInt:()=>os,ZodBigIntFormat:()=>Im,ZodBoolean:()=>ns,ZodCIDRv4:()=>ym,ZodCIDRv6:()=>xm,ZodCUID:()=>dm,ZodCUID2:()=>fm,ZodCatch:()=>n_,ZodCodec:()=>Mm,ZodCustom:()=>wc,ZodCustomStringFormat:()=>as,ZodDate:()=>vc,ZodDefault:()=>Yw,ZodDiscriminatedUnion:()=>Uw,ZodE164:()=>wm,ZodEmail:()=>sm,ZodEmoji:()=>um,ZodEnum:()=>es,ZodExactOptional:()=>Jw,ZodFile:()=>Gw,ZodFunction:()=>p_,ZodGUID:()=>fc,ZodIPv4:()=>gm,ZodIPv6:()=>vm,ZodIntersection:()=>Nw,ZodJWT:()=>_m,ZodKSUID:()=>hm,ZodLazy:()=>c_,ZodLiteral:()=>Vw,ZodMAC:()=>kw,ZodMap:()=>Zw,ZodNaN:()=>i_,ZodNanoID:()=>cm,ZodNever:()=>zw,ZodNonOptional:()=>Em,ZodNull:()=>Ew,ZodNullable:()=>Kw,ZodNumber:()=>rs,ZodNumberFormat:()=>di,ZodObject:()=>xc,ZodOptional:()=>Am,ZodPipe:()=>$m,ZodPrefault:()=>e_,ZodPromise:()=>f_,ZodReadonly:()=>l_,ZodRecord:()=>Sc,ZodSet:()=>Hw,ZodString:()=>ts,ZodStringFormat:()=>Qe,ZodSuccess:()=>r_,ZodSymbol:()=>Tw,ZodTemplateLiteral:()=>u_,ZodTransform:()=>Ww,ZodTuple:()=>Bw,ZodType:()=>we,ZodULID:()=>pm,ZodURL:()=>gc,ZodUUID:()=>Br,ZodUndefined:()=>Aw,ZodUnion:()=>bc,ZodUnknown:()=>Dw,ZodVoid:()=>Ow,ZodXID:()=>mm,ZodXor:()=>Pw,_ZodString:()=>lm,_default:()=>Qw,_function:()=>K2,any:()=>A2,array:()=>yc,base64:()=>f2,base64url:()=>p2,bigint:()=>I2,boolean:()=>Lw,catch:()=>o_,check:()=>Y2,cidrv4:()=>c2,cidrv6:()=>d2,codec:()=>W2,cuid:()=>a2,cuid2:()=>r2,custom:()=>Q2,date:()=>$2,describe:()=>e$,discriminatedUnion:()=>P2,e164:()=>m2,email:()=>VE,emoji:()=>e2,enum:()=>Lm,exactOptional:()=>Xw,file:()=>Z2,float32:()=>b2,float64:()=>S2,function:()=>K2,guid:()=>GE,hash:()=>x2,hex:()=>y2,hostname:()=>v2,httpUrl:()=>QE,instanceof:()=>a$,int:()=>im,int32:()=>w2,int64:()=>k2,intersection:()=>jw,ipv4:()=>l2,ipv6:()=>u2,json:()=>n$,jwt:()=>h2,keyof:()=>M2,ksuid:()=>i2,lazy:()=>d_,literal:()=>q2,looseObject:()=>O2,looseRecord:()=>N2,mac:()=>s2,map:()=>j2,meta:()=>t$,nan:()=>G2,nanoid:()=>t2,nativeEnum:()=>F2,never:()=>km,nonoptional:()=>a_,null:()=>$w,nullable:()=>mc,nullish:()=>H2,number:()=>Cw,object:()=>D2,optional:()=>pc,partialRecord:()=>U2,pipe:()=>hc,prefault:()=>t_,preprocess:()=>o$,promise:()=>X2,readonly:()=>s_,record:()=>qw,refine:()=>m_,set:()=>B2,strictObject:()=>z2,string:()=>om,stringFormat:()=>g2,stringbool:()=>r$,success:()=>V2,superRefine:()=>h_,symbol:()=>L2,templateLiteral:()=>J2,transform:()=>Tm,tuple:()=>Fw,uint32:()=>_2,uint64:()=>C2,ulid:()=>n2,undefined:()=>T2,union:()=>Cm,unknown:()=>ci,url:()=>YE,uuid:()=>WE,uuidv4:()=>JE,uuidv6:()=>XE,uuidv7:()=>KE,void:()=>E2,xid:()=>o2,xor:()=>R2});var em={};vr(em,{endsWith:()=>ql,gt:()=>Nr,gte:()=>fa,includes:()=>Bl,length:()=>ui,lowercase:()=>Nl,lt:()=>Ur,lte:()=>Fa,maxLength:()=>si,maxSize:()=>ho,mime:()=>Zl,minLength:()=>xn,minSize:()=>jr,multipleOf:()=>mo,negative:()=>Vp,nonnegative:()=>Wp,nonpositive:()=>Gp,normalize:()=>Hl,overwrite:()=>_r,positive:()=>Hp,property:()=>Jp,regex:()=>Ul,size:()=>li,slugify:()=>Jl,startsWith:()=>Fl,toLowerCase:()=>Gl,toUpperCase:()=>Wl,trim:()=>Vl,uppercase:()=>jl});var Ql={};vr(Ql,{ZodISODate:()=>am,ZodISODateTime:()=>tm,ZodISODuration:()=>nm,ZodISOTime:()=>rm,date:()=>dw,datetime:()=>cw,duration:()=>pw,time:()=>fw});var tm=D("ZodISODateTime",(e,t)=>{Bx.init(e,t),Qe.init(e,t)});function cw(e){return Hb(tm,e)}var am=D("ZodISODate",(e,t)=>{Fx.init(e,t),Qe.init(e,t)});function dw(e){return Vb(am,e)}var rm=D("ZodISOTime",(e,t)=>{qx.init(e,t),Qe.init(e,t)});function fw(e){return Gb(rm,e)}var nm=D("ZodISODuration",(e,t)=>{Zx.init(e,t),Qe.init(e,t)});function pw(e){return Wb(nm,e)}var HE=(e,t)=>{Ku.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>Qu(e,a)},flatten:{value:a=>Yu(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,Al,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,Al,2)}},isEmpty:{get(){return e.issues.length===0}}})},lN=D("ZodError",HE),Ca=D("ZodError",HE,{Parent:Error});var mw=Ml(Ca),hw=Dl(Ca),gw=zl(Ca),dc=Ol(Ca),vw=Qf(Ca),yw=ep(Ca),xw=tp(Ca),bw=ap(Ca),Sw=rp(Ca),ww=np(Ca),_w=op(Ca),Iw=ip(Ca);var we=D("ZodType",(e,t)=>(ve.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Kl(e,"input"),output:Kl(e,"output")}}),e.toJSONSchema=CS(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone(V.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)=>da(e,a,n),e.brand=()=>e,e.register=((a,n)=>(a.add(e,n),e)),e.parse=(a,n)=>mw(e,a,n,{callee:e.parse}),e.safeParse=(a,n)=>gw(e,a,n),e.parseAsync=async(a,n)=>hw(e,a,n,{callee:e.parseAsync}),e.safeParseAsync=async(a,n)=>dc(e,a,n),e.spa=e.safeParseAsync,e.encode=(a,n)=>vw(e,a,n),e.decode=(a,n)=>yw(e,a,n),e.encodeAsync=async(a,n)=>xw(e,a,n),e.decodeAsync=async(a,n)=>bw(e,a,n),e.safeEncode=(a,n)=>Sw(e,a,n),e.safeDecode=(a,n)=>ww(e,a,n),e.safeEncodeAsync=async(a,n)=>_w(e,a,n),e.safeDecodeAsync=async(a,n)=>Iw(e,a,n),e.refine=(a,n)=>e.check(m_(a,n)),e.superRefine=a=>e.check(h_(a)),e.overwrite=a=>e.check(_r(a)),e.optional=()=>pc(e),e.exactOptional=()=>Xw(e),e.nullable=()=>mc(e),e.nullish=()=>pc(mc(e)),e.nonoptional=a=>a_(e,a),e.array=()=>yc(e),e.or=a=>Cm([e,a]),e.and=a=>jw(e,a),e.transform=a=>hc(e,Tm(a)),e.default=a=>Qw(e,a),e.prefault=a=>t_(e,a),e.catch=a=>o_(e,a),e.pipe=a=>hc(e,a),e.readonly=()=>s_(e),e.describe=a=>{let n=e.clone();return ta.add(n,{description:a}),n},Object.defineProperty(e,"description",{get(){return ta.get(e)?.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return ta.get(e);let n=e.clone();return ta.add(n,a[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=a=>a(e),e)),lm=D("_ZodString",(e,t)=>{ii.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>LS(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(Ul(...n)),e.includes=(...n)=>e.check(Bl(...n)),e.startsWith=(...n)=>e.check(Fl(...n)),e.endsWith=(...n)=>e.check(ql(...n)),e.min=(...n)=>e.check(xn(...n)),e.max=(...n)=>e.check(si(...n)),e.length=(...n)=>e.check(ui(...n)),e.nonempty=(...n)=>e.check(xn(1,...n)),e.lowercase=n=>e.check(Nl(n)),e.uppercase=n=>e.check(jl(n)),e.trim=()=>e.check(Vl()),e.normalize=(...n)=>e.check(Hl(...n)),e.toLowerCase=()=>e.check(Gl()),e.toUpperCase=()=>e.check(Wl()),e.slugify=()=>e.check(Jl())}),ts=D("ZodString",(e,t)=>{ii.init(e,t),lm.init(e,t),e.email=a=>e.check(kp(sm,a)),e.url=a=>e.check(uc(gc,a)),e.jwt=a=>e.check(Zp(_m,a)),e.emoji=a=>e.check(Ep(um,a)),e.guid=a=>e.check(sc(fc,a)),e.uuid=a=>e.check(Cp(Br,a)),e.uuidv4=a=>e.check(Lp(Br,a)),e.uuidv6=a=>e.check(Tp(Br,a)),e.uuidv7=a=>e.check(Ap(Br,a)),e.nanoid=a=>e.check($p(cm,a)),e.guid=a=>e.check(sc(fc,a)),e.cuid=a=>e.check(Mp(dm,a)),e.cuid2=a=>e.check(Dp(fm,a)),e.ulid=a=>e.check(zp(pm,a)),e.base64=a=>e.check(Bp(bm,a)),e.base64url=a=>e.check(Fp(Sm,a)),e.xid=a=>e.check(Op(mm,a)),e.ksuid=a=>e.check(Rp(hm,a)),e.ipv4=a=>e.check(Pp(gm,a)),e.ipv6=a=>e.check(Up(vm,a)),e.cidrv4=a=>e.check(Np(ym,a)),e.cidrv6=a=>e.check(jp(xm,a)),e.e164=a=>e.check(qp(wm,a)),e.datetime=a=>e.check(cw(a)),e.date=a=>e.check(dw(a)),e.time=a=>e.check(fw(a)),e.duration=a=>e.check(pw(a))});function om(e){return Bb(ts,e)}var Qe=D("ZodStringFormat",(e,t)=>{Ye.init(e,t),lm.init(e,t)}),sm=D("ZodEmail",(e,t)=>{Mx.init(e,t),Qe.init(e,t)});function VE(e){return kp(sm,e)}var fc=D("ZodGUID",(e,t)=>{Ex.init(e,t),Qe.init(e,t)});function GE(e){return sc(fc,e)}var Br=D("ZodUUID",(e,t)=>{$x.init(e,t),Qe.init(e,t)});function WE(e){return Cp(Br,e)}function JE(e){return Lp(Br,e)}function XE(e){return Tp(Br,e)}function KE(e){return Ap(Br,e)}var gc=D("ZodURL",(e,t)=>{Dx.init(e,t),Qe.init(e,t)});function YE(e){return uc(gc,e)}function QE(e){return uc(gc,{protocol:/^https?$/,hostname:sr.domain,...V.normalizeParams(e)})}var um=D("ZodEmoji",(e,t)=>{zx.init(e,t),Qe.init(e,t)});function e2(e){return Ep(um,e)}var cm=D("ZodNanoID",(e,t)=>{Ox.init(e,t),Qe.init(e,t)});function t2(e){return $p(cm,e)}var dm=D("ZodCUID",(e,t)=>{Rx.init(e,t),Qe.init(e,t)});function a2(e){return Mp(dm,e)}var fm=D("ZodCUID2",(e,t)=>{Px.init(e,t),Qe.init(e,t)});function r2(e){return Dp(fm,e)}var pm=D("ZodULID",(e,t)=>{Ux.init(e,t),Qe.init(e,t)});function n2(e){return zp(pm,e)}var mm=D("ZodXID",(e,t)=>{Nx.init(e,t),Qe.init(e,t)});function o2(e){return Op(mm,e)}var hm=D("ZodKSUID",(e,t)=>{jx.init(e,t),Qe.init(e,t)});function i2(e){return Rp(hm,e)}var gm=D("ZodIPv4",(e,t)=>{Hx.init(e,t),Qe.init(e,t)});function l2(e){return Pp(gm,e)}var kw=D("ZodMAC",(e,t)=>{Gx.init(e,t),Qe.init(e,t)});function s2(e){return qb(kw,e)}var vm=D("ZodIPv6",(e,t)=>{Vx.init(e,t),Qe.init(e,t)});function u2(e){return Up(vm,e)}var ym=D("ZodCIDRv4",(e,t)=>{Wx.init(e,t),Qe.init(e,t)});function c2(e){return Np(ym,e)}var xm=D("ZodCIDRv6",(e,t)=>{Jx.init(e,t),Qe.init(e,t)});function d2(e){return jp(xm,e)}var bm=D("ZodBase64",(e,t)=>{Kx.init(e,t),Qe.init(e,t)});function f2(e){return Bp(bm,e)}var Sm=D("ZodBase64URL",(e,t)=>{Yx.init(e,t),Qe.init(e,t)});function p2(e){return Fp(Sm,e)}var wm=D("ZodE164",(e,t)=>{Qx.init(e,t),Qe.init(e,t)});function m2(e){return qp(wm,e)}var _m=D("ZodJWT",(e,t)=>{eb.init(e,t),Qe.init(e,t)});function h2(e){return Zp(_m,e)}var as=D("ZodCustomStringFormat",(e,t)=>{tb.init(e,t),Qe.init(e,t)});function g2(e,t,a={}){return Xl(as,e,t,a)}function v2(e){return Xl(as,"hostname",sr.hostname,e)}function y2(e){return Xl(as,"hex",sr.hex,e)}function x2(e,t){let a=t?.enc??"hex",n=`${e}_${a}`,r=sr[n];if(!r)throw new Error(`Unrecognized hash format: ${n}`);return Xl(as,n,r,t)}var rs=D("ZodNumber",(e,t)=>{gp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>TS(e,n,r,o),e.gt=(n,r)=>e.check(Nr(n,r)),e.gte=(n,r)=>e.check(fa(n,r)),e.min=(n,r)=>e.check(fa(n,r)),e.lt=(n,r)=>e.check(Ur(n,r)),e.lte=(n,r)=>e.check(Fa(n,r)),e.max=(n,r)=>e.check(Fa(n,r)),e.int=n=>e.check(im(n)),e.safe=n=>e.check(im(n)),e.positive=n=>e.check(Nr(0,n)),e.nonnegative=n=>e.check(fa(0,n)),e.negative=n=>e.check(Ur(0,n)),e.nonpositive=n=>e.check(Fa(0,n)),e.multipleOf=(n,r)=>e.check(mo(n,r)),e.step=(n,r)=>e.check(mo(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 Cw(e){return Jb(rs,e)}var di=D("ZodNumberFormat",(e,t)=>{ab.init(e,t),rs.init(e,t)});function im(e){return Kb(di,e)}function b2(e){return Yb(di,e)}function S2(e){return Qb(di,e)}function w2(e){return eS(di,e)}function _2(e){return tS(di,e)}var ns=D("ZodBoolean",(e,t)=>{rc.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>AS(e,a,n,r)});function Lw(e){return aS(ns,e)}var os=D("ZodBigInt",(e,t)=>{vp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ES(e,n,r,o),e.gte=(n,r)=>e.check(fa(n,r)),e.min=(n,r)=>e.check(fa(n,r)),e.gt=(n,r)=>e.check(Nr(n,r)),e.gte=(n,r)=>e.check(fa(n,r)),e.min=(n,r)=>e.check(fa(n,r)),e.lt=(n,r)=>e.check(Ur(n,r)),e.lte=(n,r)=>e.check(Fa(n,r)),e.max=(n,r)=>e.check(Fa(n,r)),e.positive=n=>e.check(Nr(BigInt(0),n)),e.negative=n=>e.check(Ur(BigInt(0),n)),e.nonpositive=n=>e.check(Fa(BigInt(0),n)),e.nonnegative=n=>e.check(fa(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(mo(n,r));let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function I2(e){return nS(os,e)}var Im=D("ZodBigIntFormat",(e,t)=>{rb.init(e,t),os.init(e,t)});function k2(e){return iS(Im,e)}function C2(e){return lS(Im,e)}var Tw=D("ZodSymbol",(e,t)=>{nb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>$S(e,a,n,r)});function L2(e){return sS(Tw,e)}var Aw=D("ZodUndefined",(e,t)=>{ob.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>DS(e,a,n,r)});function T2(e){return uS(Aw,e)}var Ew=D("ZodNull",(e,t)=>{ib.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>MS(e,a,n,r)});function $w(e){return cS(Ew,e)}var Mw=D("ZodAny",(e,t)=>{lb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>RS(e,a,n,r)});function A2(){return dS(Mw)}var Dw=D("ZodUnknown",(e,t)=>{sb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>PS(e,a,n,r)});function ci(){return fS(Dw)}var zw=D("ZodNever",(e,t)=>{ub.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>OS(e,a,n,r)});function km(e){return pS(zw,e)}var Ow=D("ZodVoid",(e,t)=>{cb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>zS(e,a,n,r)});function E2(e){return mS(Ow,e)}var vc=D("ZodDate",(e,t)=>{db.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>US(e,n,r,o),e.min=(n,r)=>e.check(fa(n,r)),e.max=(n,r)=>e.check(Fa(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 $2(e){return hS(vc,e)}var Rw=D("ZodArray",(e,t)=>{fb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>XS(e,a,n,r),e.element=t.element,e.min=(a,n)=>e.check(xn(a,n)),e.nonempty=a=>e.check(xn(1,a)),e.max=(a,n)=>e.check(si(a,n)),e.length=(a,n)=>e.check(ui(a,n)),e.unwrap=()=>e.element});function yc(e,t){return yS(Rw,e,t)}function M2(e){let t=e._zod.def.shape;return Lm(Object.keys(t))}var xc=D("ZodObject",(e,t)=>{pb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>KS(e,a,n,r),V.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Lm(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ci()}),e.loose=()=>e.clone({...e._zod.def,catchall:ci()}),e.strict=()=>e.clone({...e._zod.def,catchall:km()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>V.extend(e,a),e.safeExtend=a=>V.safeExtend(e,a),e.merge=a=>V.merge(e,a),e.pick=a=>V.pick(e,a),e.omit=a=>V.omit(e,a),e.partial=(...a)=>V.partial(Am,e,a[0]),e.required=(...a)=>V.required(Em,e,a[0])});function D2(e,t){let a={type:"object",shape:e??{},...V.normalizeParams(t)};return new xc(a)}function z2(e,t){return new xc({type:"object",shape:e,catchall:km(),...V.normalizeParams(t)})}function O2(e,t){return new xc({type:"object",shape:e,catchall:ci(),...V.normalizeParams(t)})}var bc=D("ZodUnion",(e,t)=>{nc.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Kp(e,a,n,r),e.options=t.options});function Cm(e,t){return new bc({type:"union",options:e,...V.normalizeParams(t)})}var Pw=D("ZodXor",(e,t)=>{bc.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Kp(e,a,n,r),e.options=t.options});function R2(e,t){return new Pw({type:"union",options:e,inclusive:!1,...V.normalizeParams(t)})}var Uw=D("ZodDiscriminatedUnion",(e,t)=>{bc.init(e,t),hb.init(e,t)});function P2(e,t,a){return new Uw({type:"union",options:t,discriminator:e,...V.normalizeParams(a)})}var Nw=D("ZodIntersection",(e,t)=>{gb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>YS(e,a,n,r)});function jw(e,t){return new Nw({type:"intersection",left:e,right:t})}var Bw=D("ZodTuple",(e,t)=>{yp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>QS(e,a,n,r),e.rest=a=>e.clone({...e._zod.def,rest:a})});function Fw(e,t,a){let n=t instanceof ve,r=n?a:t,o=n?t:null;return new Bw({type:"tuple",items:e,rest:o,...V.normalizeParams(r)})}var Sc=D("ZodRecord",(e,t)=>{vb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ew(e,a,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function qw(e,t,a){return new Sc({type:"record",keyType:e,valueType:t,...V.normalizeParams(a)})}function U2(e,t,a){let n=da(e);return n._zod.values=void 0,new Sc({type:"record",keyType:n,valueType:t,...V.normalizeParams(a)})}function N2(e,t,a){return new Sc({type:"record",keyType:e,valueType:t,mode:"loose",...V.normalizeParams(a)})}var Zw=D("ZodMap",(e,t)=>{yb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>WS(e,a,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...a)=>e.check(jr(...a)),e.nonempty=a=>e.check(jr(1,a)),e.max=(...a)=>e.check(ho(...a)),e.size=(...a)=>e.check(li(...a))});function j2(e,t,a){return new Zw({type:"map",keyType:e,valueType:t,...V.normalizeParams(a)})}var Hw=D("ZodSet",(e,t)=>{xb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>JS(e,a,n,r),e.min=(...a)=>e.check(jr(...a)),e.nonempty=a=>e.check(jr(1,a)),e.max=(...a)=>e.check(ho(...a)),e.size=(...a)=>e.check(li(...a))});function B2(e,t){return new Hw({type:"set",valueType:e,...V.normalizeParams(t)})}var es=D("ZodEnum",(e,t)=>{bb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>NS(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 es({...t,checks:[],...V.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 es({...t,checks:[],...V.normalizeParams(r),entries:o})}});function Lm(e,t){let a=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new es({type:"enum",entries:a,...V.normalizeParams(t)})}function F2(e,t){return new es({type:"enum",entries:e,...V.normalizeParams(t)})}var Vw=D("ZodLiteral",(e,t)=>{Sb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>jS(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 q2(e,t){return new Vw({type:"literal",values:Array.isArray(e)?e:[e],...V.normalizeParams(t)})}var Gw=D("ZodFile",(e,t)=>{wb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>qS(e,a,n,r),e.min=(a,n)=>e.check(jr(a,n)),e.max=(a,n)=>e.check(ho(a,n)),e.mime=(a,n)=>e.check(Zl(Array.isArray(a)?a:[a],n))});function Z2(e){return xS(Gw,e)}var Ww=D("ZodTransform",(e,t)=>{_b.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>GS(e,a,n,r),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new so(e.constructor.name);a.addIssue=o=>{if(typeof o=="string")a.issues.push(V.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(V.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 Tm(e){return new Ww({type:"transform",transform:e})}var Am=D("ZodOptional",(e,t)=>{xp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Yp(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function pc(e){return new Am({type:"optional",innerType:e})}var Jw=D("ZodExactOptional",(e,t)=>{Ib.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Yp(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function Xw(e){return new Jw({type:"optional",innerType:e})}var Kw=D("ZodNullable",(e,t)=>{kb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>tw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function mc(e){return new Kw({type:"nullable",innerType:e})}function H2(e){return pc(mc(e))}var Yw=D("ZodDefault",(e,t)=>{Cb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>rw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Qw(e,t){return new Yw({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():V.shallowClone(t)}})}var e_=D("ZodPrefault",(e,t)=>{Lb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>nw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function t_(e,t){return new e_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():V.shallowClone(t)}})}var Em=D("ZodNonOptional",(e,t)=>{Tb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>aw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function a_(e,t){return new Em({type:"nonoptional",innerType:e,...V.normalizeParams(t)})}var r_=D("ZodSuccess",(e,t)=>{Ab.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ZS(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function V2(e){return new r_({type:"success",innerType:e})}var n_=D("ZodCatch",(e,t)=>{Eb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ow(e,a,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function o_(e,t){return new n_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var i_=D("ZodNaN",(e,t)=>{$b.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>BS(e,a,n,r)});function G2(e){return vS(i_,e)}var $m=D("ZodPipe",(e,t)=>{Mb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>iw(e,a,n,r),e.in=t.in,e.out=t.out});function hc(e,t){return new $m({type:"pipe",in:e,out:t})}var Mm=D("ZodCodec",(e,t)=>{$m.init(e,t),oc.init(e,t)});function W2(e,t,a){return new Mm({type:"pipe",in:e,out:t,transform:a.decode,reverseTransform:a.encode})}var l_=D("ZodReadonly",(e,t)=>{Db.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>lw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function s_(e){return new l_({type:"readonly",innerType:e})}var u_=D("ZodTemplateLiteral",(e,t)=>{zb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>FS(e,a,n,r)});function J2(e,t){return new u_({type:"template_literal",parts:e,...V.normalizeParams(t)})}var c_=D("ZodLazy",(e,t)=>{Pb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>uw(e,a,n,r),e.unwrap=()=>e._zod.def.getter()});function d_(e){return new c_({type:"lazy",getter:e})}var f_=D("ZodPromise",(e,t)=>{Rb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>sw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function X2(e){return new f_({type:"promise",innerType:e})}var p_=D("ZodFunction",(e,t)=>{Ob.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>VS(e,a,n,r)});function K2(e){return new p_({type:"function",input:Array.isArray(e?.input)?Fw(e?.input):e?.input??yc(ci()),output:e?.output??ci()})}var wc=D("ZodCustom",(e,t)=>{Ub.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>HS(e,a,n,r)});function Y2(e){let t=new tt({check:"custom"});return t._zod.check=e,t}function Q2(e,t){return bS(wc,e??(()=>!0),t)}function m_(e,t={}){return SS(wc,e,t)}function h_(e){return wS(e)}var e$=_S,t$=IS;function a$(e,t={}){let a=new wc({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...V.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 r$=(...e)=>kS({Codec:Mm,Boolean:ns,String:ts},...e);function n$(e){let t=d_(()=>Cm([om(e),Cw(),Lw(),$w(),yc(t),qw(om(),t)]));return t}function o$(e,t){return hc(Tm(e),t)}var uN={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 cN(e){_t({customError:e})}function dN(){return _t().customError}var g_;g_||(g_={});var ee={...cc,...em,iso:Ql},fN=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 pN(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 mN(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 i$(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ee.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 ee.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=mN(r,t),i=na(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 ee.null();if(r.length===0)return ee.never();if(r.length===1)return ee.literal(r[0]);if(r.every(i=>typeof i=="string"))return ee.enum(r);let o=r.map(i=>ee.literal(i));return o.length<2?o[0]:ee.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return ee.literal(e.const);let a=e.type;if(Array.isArray(a)){let r=a.map(o=>{let i={...e,type:o};return i$(i,t)});return r.length===0?ee.never():r.length===1?r[0]:ee.union(r)}if(!a)return ee.any();let n;switch(a){case"string":{let r=ee.string();if(e.format){let o=e.format;o==="email"?r=r.check(ee.email()):o==="uri"||o==="uri-reference"?r=r.check(ee.url()):o==="uuid"||o==="guid"?r=r.check(ee.uuid()):o==="date-time"?r=r.check(ee.iso.datetime()):o==="date"?r=r.check(ee.iso.date()):o==="time"?r=r.check(ee.iso.time()):o==="duration"?r=r.check(ee.iso.duration()):o==="ipv4"?r=r.check(ee.ipv4()):o==="ipv6"?r=r.check(ee.ipv6()):o==="mac"?r=r.check(ee.mac()):o==="cidr"?r=r.check(ee.cidrv4()):o==="cidr-v6"?r=r.check(ee.cidrv6()):o==="base64"?r=r.check(ee.base64()):o==="base64url"?r=r.check(ee.base64url()):o==="e164"?r=r.check(ee.e164()):o==="jwt"?r=r.check(ee.jwt()):o==="emoji"?r=r.check(ee.emoji()):o==="nanoid"?r=r.check(ee.nanoid()):o==="cuid"?r=r.check(ee.cuid()):o==="cuid2"?r=r.check(ee.cuid2()):o==="ulid"?r=r.check(ee.ulid()):o==="xid"?r=r.check(ee.xid()):o==="ksuid"&&(r=r.check(ee.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"?ee.number().int():ee.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=ee.boolean();break}case"null":{n=ee.null();break}case"object":{let r={},o=e.properties||{},i=new Set(e.required||[]);for(let[s,u]of Object.entries(o)){let c=na(u,t);r[s]=i.has(s)?c:c.optional()}if(e.propertyNames){let s=na(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?na(e.additionalProperties,t):ee.any();if(Object.keys(r).length===0){n=ee.record(s,u);break}let c=ee.object(r).passthrough(),d=ee.looseRecord(s,u);n=ee.intersection(c,d);break}if(e.patternProperties){let s=e.patternProperties,u=Object.keys(s),c=[];for(let p of u){let f=na(s[p],t),m=ee.string().regex(new RegExp(p));c.push(ee.looseRecord(m,f))}let d=[];if(Object.keys(r).length>0&&d.push(ee.object(r).passthrough()),d.push(...c),d.length===0)n=ee.object({}).passthrough();else if(d.length===1)n=d[0];else{let p=ee.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)p=ee.intersection(p,d[f]);n=p}break}let l=ee.object(r);e.additionalProperties===!1?n=l.strict():typeof e.additionalProperties=="object"?n=l.catchall(na(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=>na(s,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?na(o,t):void 0;l?n=ee.tuple(i).rest(l):n=ee.tuple(i),typeof e.minItems=="number"&&(n=n.check(ee.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(ee.maxLength(e.maxItems)))}else if(Array.isArray(o)){let i=o.map(s=>na(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?na(e.additionalItems,t):void 0;l?n=ee.tuple(i).rest(l):n=ee.tuple(i),typeof e.minItems=="number"&&(n=n.check(ee.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(ee.maxLength(e.maxItems)))}else if(o!==void 0){let i=na(o,t),l=ee.array(i);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),n=l}else n=ee.array(ee.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 na(e,t){if(typeof e=="boolean")return e?ee.any():ee.never();let a=i$(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=>na(u,t)),s=ee.union(l);a=n?ee.intersection(a,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(u=>na(u,t)),s=ee.xor(l);a=n?ee.intersection(a,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)a=n?a:ee.any();else{let l=n?a:na(e.allOf[0],t),s=n?0:1;for(let u=s;u<e.allOf.length;u++)l=ee.intersection(l,na(e.allOf[u],t));a=l}e.nullable===!0&&t.version==="openapi-3.0"&&(a=ee.nullable(a)),e.readOnly===!0&&(a=ee.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))fN.has(l)||(r[l]=e[l]);return Object.keys(r).length>0&&t.registry.add(a,r),a}function l$(e,t){if(typeof e=="boolean")return e?ee.any():ee.never();let a=pN(e,t?.defaultTarget),n=e.$defs||e.definitions||{},r={version:a,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??ta};return na(e,r)}var v_={};vr(v_,{bigint:()=>yN,boolean:()=>vN,date:()=>xN,number:()=>gN,string:()=>hN});function hN(e){return Fb(ts,e)}function gN(e){return Xb(rs,e)}function vN(e){return rS(ns,e)}function yN(e){return oS(os,e)}function xN(e){return gS(vc,e)}_t(bp());var Oe;(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})(Oe||(Oe={}));var s$;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(s$||(s$={}));var re=Oe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sn=e=>{switch(typeof e){case"undefined":return re.undefined;case"string":return re.string;case"number":return Number.isNaN(e)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(e)?re.array:e===null?re.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?re.promise:typeof Map<"u"&&e instanceof Map?re.map:typeof Set<"u"&&e instanceof Set?re.set:typeof Date<"u"&&e instanceof Date?re.date:re.object;default:return re.unknown}};var Z=Oe.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 qa=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,Oe.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()}};qa.create=e=>new qa(e);var SN=(e,t)=>{let a;switch(e.code){case Z.invalid_type:e.received===re.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case Z.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,Oe.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:a=`Unrecognized key(s) in object: ${Oe.joinValues(e.keys,", ")}`;break;case Z.invalid_union:a="Invalid input";break;case Z.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Oe.joinValues(e.options)}`;break;case Z.invalid_enum_value:a=`Invalid enum value. Expected ${Oe.joinValues(e.options)}, received '${e.received}'`;break;case Z.invalid_arguments:a="Invalid function arguments";break;case Z.invalid_return_type:a="Invalid function return type";break;case Z.invalid_date:a="Invalid date";break;case Z.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}"`:Oe.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case Z.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 Z.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 Z.custom:a="Invalid input";break;case Z.invalid_intersection_types:a="Intersection results could not be merged";break;case Z.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case Z.not_finite:a="Number must be finite";break;default:a=t.defaultError,Oe.assertNever(e)}return{message:a}},xo=SN;var wN=xo;function _c(){return wN}var Dm=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 te(e,t){let a=_c(),n=Dm({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===xo?void 0:xo].filter(r=>!!r)});e.common.issues.push(n)}var oa=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 he;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 he;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}}},he=Object.freeze({status:"aborted"}),is=e=>({status:"dirty",value:e}),ma=e=>({status:"valid",value:e}),y_=e=>e.status==="aborted",x_=e=>e.status==="dirty",fi=e=>e.status==="valid",Ic=e=>typeof Promise<"u"&&e instanceof Promise;var ne;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ne||(ne={}));var ur=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}},u$=(e,t)=>{if(fi(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 qa(e.common.issues);return this._error=a,this._error}}};function _e(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 Ae=class{get description(){return this._def.description}_getType(t){return Sn(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:Sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new oa,ctx:{common:t.parent.common,data:t.data,parsedType:Sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if(Ic(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:Sn(t)},r=this._parseSync({data:t,path:n.path,parent:n});return u$(n,r)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sn(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:a});return fi(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=>fi(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:Sn(t)},r=this._parse({data:t,path:n.path,parent:n}),o=await(Ic(r)?r:Promise.resolve(r));return u$(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:Z.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 kr({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 Ir.create(this,this._def)}nullable(){return In.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return So.create(this)}promise(){return pi.create(this,this._def)}or(t){return ds.create([this,t],this._def)}and(t){return fs.create(this,t,this._def)}transform(t){return new kr({..._e(this._def),schema:this,typeName:J.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new vs({..._e(this._def),innerType:this,defaultValue:a,typeName:J.ZodDefault})}brand(){return new zm({typeName:J.ZodBranded,type:this,..._e(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new ys({..._e(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 Om.create(this,t)}readonly(){return xs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},_N=/^c[^\s-]{8,}$/i,IN=/^[0-9a-z]+$/,kN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,CN=/^[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,LN=/^[a-z0-9_-]{21}$/i,TN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,AN=/^[-+]?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)?)??$/,EN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$N="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",b_,MN=/^(?:(?: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])$/,DN=/^(?:(?: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])$/,zN=/^(([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]))$/,ON=/^(([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])$/,RN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,PN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,c$="((\\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])))",UN=new RegExp(`^${c$}$`);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 NN(e){return new RegExp(`^${d$(e)}$`)}function jN(e){let t=`${c$}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 BN(e,t){return!!((t==="v4"||!t)&&MN.test(e)||(t==="v6"||!t)&&zN.test(e))}function FN(e,t){if(!TN.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 qN(e,t){return!!((t==="v4"||!t)&&DN.test(e)||(t==="v6"||!t)&&ON.test(e))}var ss=class e extends Ae{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==re.string){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_type,expected:re.string,received:o.parsedType}),he}let n=new oa,r;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:Z.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),te(r,{code:Z.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?te(r,{code:Z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&te(r,{code:Z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")EN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"email",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")b_||(b_=new RegExp($N,"u")),b_.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"emoji",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")CN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"uuid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")LN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"nanoid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")_N.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")IN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid2",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")kN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ulid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),te(r,{validation:"url",code:Z.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),te(r,{validation:"regex",code:Z.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),te(r,{code:Z.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),te(r,{code:Z.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?jN(o).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?UN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?NN(o).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?AN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"duration",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?BN(t.data,o.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ip",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?FN(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"jwt",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?qN(t.data,o.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cidr",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?RN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?PN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64url",code:Z.invalid_string,message:o.message}),n.dirty()):Oe.assertNever(o);return{status:n.value,value:t.data}}_regex(t,a,n){return this.refinement(r=>t.test(r),{validation:a,code:Z.invalid_string,...ne.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ne.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ne.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ne.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ne.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ne.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ne.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ne.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ne.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ne.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ne.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ne.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ne.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ne.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,...ne.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,...ne.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ne.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...ne.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...ne.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...ne.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...ne.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...ne.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...ne.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...ne.errToObj(a)})}nonempty(t){return this.min(1,ne.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}};ss.create=e=>new ss({checks:[],typeName:J.ZodString,coerce:e?.coerce??!1,..._e(e)});function ZN(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 kc=class e extends Ae{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)!==re.number){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_type,expected:re.number,received:o.parsedType}),he}let n,r=new oa;for(let o of this._def.checks)o.kind==="int"?Oe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{code:Z.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),te(n,{code:Z.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),te(n,{code:Z.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?ZN(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),te(n,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{code:Z.not_finite,message:o.message}),r.dirty()):Oe.assertNever(o);return{status:r.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,ne.toString(a))}gt(t,a){return this.setLimit("min",t,!1,ne.toString(a))}lte(t,a){return this.setLimit("max",t,!0,ne.toString(a))}lt(t,a){return this.setLimit("max",t,!1,ne.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:ne.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ne.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:ne.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:ne.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.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"&&Oe.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)}};kc.create=e=>new kc({checks:[],typeName:J.ZodNumber,coerce:e?.coerce||!1,..._e(e)});var Cc=class e extends Ae{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)!==re.bigint)return this._getInvalidInput(t);let n,r=new oa;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),te(n,{code:Z.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),te(n,{code:Z.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),te(n,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):Oe.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return te(a,{code:Z.invalid_type,expected:re.bigint,received:a.parsedType}),he}gte(t,a){return this.setLimit("min",t,!0,ne.toString(a))}gt(t,a){return this.setLimit("min",t,!1,ne.toString(a))}lte(t,a){return this.setLimit("max",t,!0,ne.toString(a))}lt(t,a){return this.setLimit("max",t,!1,ne.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:ne.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:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:ne.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}};Cc.create=e=>new Cc({checks:[],typeName:J.ZodBigInt,coerce:e?.coerce??!1,..._e(e)});var Lc=class extends Ae{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==re.boolean){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.boolean,received:n.parsedType}),he}return ma(t.data)}};Lc.create=e=>new Lc({typeName:J.ZodBoolean,coerce:e?.coerce||!1,..._e(e)});var Tc=class e extends Ae{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==re.date){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_type,expected:re.date,received:o.parsedType}),he}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_date}),he}let n=new oa,r;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:Z.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),te(r,{code:Z.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):Oe.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:ne.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:ne.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}};Tc.create=e=>new Tc({checks:[],coerce:e?.coerce||!1,typeName:J.ZodDate,..._e(e)});var Ac=class extends Ae{_parse(t){if(this._getType(t)!==re.symbol){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.symbol,received:n.parsedType}),he}return ma(t.data)}};Ac.create=e=>new Ac({typeName:J.ZodSymbol,..._e(e)});var us=class extends Ae{_parse(t){if(this._getType(t)!==re.undefined){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.undefined,received:n.parsedType}),he}return ma(t.data)}};us.create=e=>new us({typeName:J.ZodUndefined,..._e(e)});var cs=class extends Ae{_parse(t){if(this._getType(t)!==re.null){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.null,received:n.parsedType}),he}return ma(t.data)}};cs.create=e=>new cs({typeName:J.ZodNull,..._e(e)});var Ec=class extends Ae{constructor(){super(...arguments),this._any=!0}_parse(t){return ma(t.data)}};Ec.create=e=>new Ec({typeName:J.ZodAny,..._e(e)});var bo=class extends Ae{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ma(t.data)}};bo.create=e=>new bo({typeName:J.ZodUnknown,..._e(e)});var Fr=class extends Ae{_parse(t){let a=this._getOrReturnCtx(t);return te(a,{code:Z.invalid_type,expected:re.never,received:a.parsedType}),he}};Fr.create=e=>new Fr({typeName:J.ZodNever,..._e(e)});var $c=class extends Ae{_parse(t){if(this._getType(t)!==re.undefined){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.void,received:n.parsedType}),he}return ma(t.data)}};$c.create=e=>new $c({typeName:J.ZodVoid,..._e(e)});var So=class e extends Ae{_parse(t){let{ctx:a,status:n}=this._processInputParams(t),r=this._def;if(a.parsedType!==re.array)return te(a,{code:Z.invalid_type,expected:re.array,received:a.parsedType}),he;if(r.exactLength!==null){let i=a.data.length>r.exactLength.value,l=a.data.length<r.exactLength.value;(i||l)&&(te(a,{code:i?Z.too_big:Z.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&&(te(a,{code:Z.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&&(te(a,{code:Z.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 ur(a,i,a.path,l)))).then(i=>oa.mergeArray(n,i));let o=[...a.data].map((i,l)=>r.type._parseSync(new ur(a,i,a.path,l)));return oa.mergeArray(n,o)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:ne.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:ne.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:ne.toString(a)}})}nonempty(t){return this.min(1,t)}};So.create=(e,t)=>new So({type:e,minLength:null,maxLength:null,exactLength:null,typeName:J.ZodArray,..._e(t)});function ls(e){if(e instanceof Za){let t={};for(let a in e.shape){let n=e.shape[a];t[a]=Ir.create(ls(n))}return new Za({...e._def,shape:()=>t})}else return e instanceof So?new So({...e._def,type:ls(e.element)}):e instanceof Ir?Ir.create(ls(e.unwrap())):e instanceof In?In.create(ls(e.unwrap())):e instanceof _n?_n.create(e.items.map(t=>ls(t))):e}var Za=class e extends Ae{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=Oe.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==re.object){let u=this._getOrReturnCtx(t);return te(u,{code:Z.invalid_type,expected:re.object,received:u.parsedType}),he}let{status:n,ctx:r}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),l=[];if(!(this._def.catchall instanceof Fr&&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 ur(r,d,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Fr){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&&(te(r,{code:Z.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 ur(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=>oa.mergeObjectSync(n,u)):oa.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(t){return ne.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:ne.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 Oe.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 Oe.objectKeys(this.shape))t[n]||(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}deepPartial(){return ls(this)}partial(t){let a={};for(let n of Oe.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 Oe.objectKeys(this.shape))if(t&&!t[n])a[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof Ir;)o=o._def.innerType;a[n]=o}return new e({...this._def,shape:()=>a})}keyof(){return f$(Oe.objectKeys(this.shape))}};Za.create=(e,t)=>new Za({shape:()=>e,unknownKeys:"strip",catchall:Fr.create(),typeName:J.ZodObject,..._e(t)});Za.strictCreate=(e,t)=>new Za({shape:()=>e,unknownKeys:"strict",catchall:Fr.create(),typeName:J.ZodObject,..._e(t)});Za.lazycreate=(e,t)=>new Za({shape:e,unknownKeys:"strip",catchall:Fr.create(),typeName:J.ZodObject,..._e(t)});var ds=class extends Ae{_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 qa(l.ctx.common.issues));return te(a,{code:Z.invalid_union,unionErrors:i}),he}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 qa(s));return te(a,{code:Z.invalid_union,unionErrors:l}),he}}get options(){return this._def.options}};ds.create=(e,t)=>new ds({options:e,typeName:J.ZodUnion,..._e(t)});var wn=e=>e instanceof ps?wn(e.schema):e instanceof kr?wn(e.innerType()):e instanceof ms?[e.value]:e instanceof hs?e.options:e instanceof gs?Oe.objectValues(e.enum):e instanceof vs?wn(e._def.innerType):e instanceof us?[void 0]:e instanceof cs?[null]:e instanceof Ir?[void 0,...wn(e.unwrap())]:e instanceof In?[null,...wn(e.unwrap())]:e instanceof zm||e instanceof xs?wn(e.unwrap()):e instanceof ys?wn(e._def.innerType):[],S_=class e extends Ae{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==re.object)return te(a,{code:Z.invalid_type,expected:re.object,received:a.parsedType}),he;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}):(te(a,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),he)}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=wn(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,..._e(n)})}};function w_(e,t){let a=Sn(e),n=Sn(t);if(e===t)return{valid:!0,data:e};if(a===re.object&&n===re.object){let r=Oe.objectKeys(t),o=Oe.objectKeys(e).filter(l=>r.indexOf(l)!==-1),i={...e,...t};for(let l of o){let s=w_(e[l],t[l]);if(!s.valid)return{valid:!1};i[l]=s.data}return{valid:!0,data:i}}else if(a===re.array&&n===re.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=w_(i,l);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}else return a===re.date&&n===re.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var fs=class extends Ae{_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=(o,i)=>{if(y_(o)||y_(i))return he;let l=w_(o.value,i.value);return l.valid?((x_(o)||x_(i))&&a.dirty(),{status:a.value,value:l.data}):(te(n,{code:Z.invalid_intersection_types}),he)};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}))}};fs.create=(e,t,a)=>new fs({left:e,right:t,typeName:J.ZodIntersection,..._e(a)});var _n=class e extends Ae{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==re.array)return te(n,{code:Z.invalid_type,expected:re.array,received:n.parsedType}),he;if(n.data.length<this._def.items.length)return te(n,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),he;!this._def.rest&&n.data.length>this._def.items.length&&(te(n,{code:Z.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 ur(n,i,n.path,l)):null}).filter(i=>!!i);return n.common.async?Promise.all(o).then(i=>oa.mergeArray(a,i)):oa.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,..._e(t)})};var __=class e extends Ae{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!==re.object)return te(n,{code:Z.invalid_type,expected:re.object,received:n.parsedType}),he;let r=[],o=this._def.keyType,i=this._def.valueType;for(let l in n.data)r.push({key:o._parse(new ur(n,l,n.path,l)),value:i._parse(new ur(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?oa.mergeObjectAsync(a,r):oa.mergeObjectSync(a,r)}get element(){return this._def.valueType}static create(t,a,n){return a instanceof Ae?new e({keyType:t,valueType:a,typeName:J.ZodRecord,..._e(n)}):new e({keyType:ss.create(),valueType:t,typeName:J.ZodRecord,..._e(a)})}},Mc=class extends Ae{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!==re.map)return te(n,{code:Z.invalid_type,expected:re.map,received:n.parsedType}),he;let r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([l,s],u)=>({key:r._parse(new ur(n,l,n.path,[u,"key"])),value:o._parse(new ur(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 he;(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 he;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}}}};Mc.create=(e,t,a)=>new Mc({valueType:t,keyType:e,typeName:J.ZodMap,..._e(a)});var Dc=class e extends Ae{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==re.set)return te(n,{code:Z.invalid_type,expected:re.set,received:n.parsedType}),he;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(te(n,{code:Z.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&&(te(n,{code:Z.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 he;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 ur(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:ne.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:ne.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Dc.create=(e,t)=>new Dc({valueType:e,minSize:null,maxSize:null,typeName:J.ZodSet,..._e(t)});var I_=class e extends Ae{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==re.function)return te(a,{code:Z.invalid_type,expected:re.function,received:a.parsedType}),he;function n(l,s){return Dm({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,_c(),xo].filter(u=>!!u),issueData:{code:Z.invalid_arguments,argumentsError:s}})}function r(l,s){return Dm({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,_c(),xo].filter(u=>!!u),issueData:{code:Z.invalid_return_type,returnTypeError:s}})}let o={errorMap:a.common.contextualErrorMap},i=a.data;if(this._def.returns instanceof pi){let l=this;return ma(async function(...s){let u=new qa([]),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 ma(function(...s){let u=l._def.args.safeParse(s,o);if(!u.success)throw new qa([n(s,u.error)]);let c=Reflect.apply(i,this,u.data),d=l._def.returns.safeParse(c,o);if(!d.success)throw new qa([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(bo.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(bo.create()),returns:a||bo.create(),typeName:J.ZodFunction,..._e(n)})}},ps=class extends Ae{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})}};ps.create=(e,t)=>new ps({getter:e,typeName:J.ZodLazy,..._e(t)});var ms=class extends Ae{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return te(a,{received:a.data,code:Z.invalid_literal,expected:this._def.value}),he}return{status:"valid",value:t.data}}get value(){return this._def.value}};ms.create=(e,t)=>new ms({value:e,typeName:J.ZodLiteral,..._e(t)});function f$(e,t){return new hs({values:e,typeName:J.ZodEnum,..._e(t)})}var hs=class e extends Ae{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),n=this._def.values;return te(a,{expected:Oe.joinValues(n),received:a.parsedType,code:Z.invalid_type}),he}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 te(a,{received:a.data,code:Z.invalid_enum_value,options:n}),he}return ma(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})}};hs.create=f$;var gs=class extends Ae{_parse(t){let a=Oe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==re.string&&n.parsedType!==re.number){let r=Oe.objectValues(a);return te(n,{expected:Oe.joinValues(r),received:n.parsedType,code:Z.invalid_type}),he}if(this._cache||(this._cache=new Set(Oe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Oe.objectValues(a);return te(n,{received:n.data,code:Z.invalid_enum_value,options:r}),he}return ma(t.data)}get enum(){return this._def.values}};gs.create=(e,t)=>new gs({values:e,typeName:J.ZodNativeEnum,..._e(t)});var pi=class extends Ae{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==re.promise&&a.common.async===!1)return te(a,{code:Z.invalid_type,expected:re.promise,received:a.parsedType}),he;let n=a.parsedType===re.promise?a.data:Promise.resolve(a.data);return ma(n.then(r=>this._def.type.parseAsync(r,{path:a.path,errorMap:a.common.contextualErrorMap})))}};pi.create=(e,t)=>new pi({type:e,typeName:J.ZodPromise,..._e(t)});var kr=class extends Ae{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=>{te(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 he;let s=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return s.status==="aborted"?he:s.status==="dirty"?is(s.value):a.value==="dirty"?is(s.value):s});{if(a.value==="aborted")return he;let l=this._def.schema._parseSync({data:i,path:n.path,parent:n});return l.status==="aborted"?he:l.status==="dirty"?is(l.value):a.value==="dirty"?is(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"?he:(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"?he:(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(!fi(i))return he;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=>fi(i)?Promise.resolve(r.transform(i.value,o)).then(l=>({status:a.value,value:l})):he);Oe.assertNever(r)}};kr.create=(e,t,a)=>new kr({schema:e,typeName:J.ZodEffects,effect:t,..._e(a)});kr.createWithPreprocess=(e,t,a)=>new kr({schema:t,effect:{type:"preprocess",transform:e},typeName:J.ZodEffects,..._e(a)});var Ir=class extends Ae{_parse(t){return this._getType(t)===re.undefined?ma(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ir.create=(e,t)=>new Ir({innerType:e,typeName:J.ZodOptional,..._e(t)});var In=class extends Ae{_parse(t){return this._getType(t)===re.null?ma(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};In.create=(e,t)=>new In({innerType:e,typeName:J.ZodNullable,..._e(t)});var vs=class extends Ae{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return a.parsedType===re.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};vs.create=(e,t)=>new vs({innerType:e,typeName:J.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,..._e(t)});var ys=class extends Ae{_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 Ic(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new qa(n.common.issues)},input:n.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new qa(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ys.create=(e,t)=>new ys({innerType:e,typeName:J.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,..._e(t)});var zc=class extends Ae{_parse(t){if(this._getType(t)!==re.nan){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.nan,received:n.parsedType}),he}return{status:"valid",value:t.data}}};zc.create=e=>new zc({typeName:J.ZodNaN,..._e(e)});var zm=class extends Ae{_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}},Om=class e extends Ae{_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"?he:o.status==="dirty"?(a.dirty(),is(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"?he: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})}},xs=class extends Ae{_parse(t){let a=this._def.innerType._parse(t),n=r=>(fi(r)&&(r.value=Object.freeze(r.value)),r);return Ic(a)?a.then(r=>n(r)):n(a)}unwrap(){return this._def.innerType}};xs.create=(e,t)=>new xs({innerType:e,typeName:J.ZodReadonly,..._e(t)});var sG={object:Za.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 uG=ss.create,cG=kc.create,dG=zc.create,fG=Cc.create,pG=Lc.create,mG=Tc.create,hG=Ac.create,gG=us.create,vG=cs.create,yG=Ec.create,xG=bo.create,bG=Fr.create,SG=$c.create,wG=So.create,_G=Za.create,IG=Za.strictCreate,kG=ds.create,CG=S_.create,LG=fs.create,TG=_n.create,AG=__.create,EG=Mc.create,$G=Dc.create,MG=I_.create,DG=ps.create,zG=ms.create,OG=hs.create,RG=gs.create,PG=pi.create,UG=kr.create,NG=Ir.create,jG=In.create,BG=kr.createWithPreprocess,FG=Om.create;var Rm=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 k_(e){}function p$(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=k_,onError:a=k_,onRetry:n=k_,onComment:r}=e,o="",i=!0,l,s="",u="";function c(w){let C=i?w.replace(/^\xEF\xBB\xBF/,""):w,[h,x]=VN(`${o}${C}`);for(let g of h)d(g);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 h=w.slice(0,C),x=w[C+1]===" "?2:1,g=w.slice(C+x);p(h,g,w);return}p(w,"",w)}function p(w,C,h){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 Rm(`Invalid \`retry\` value: "${C}"`,{type:"invalid-retry",value:C,line:h}));break;default:a(new Rm(`Unknown field "${w.length>20?`${w.slice(0,20)}\u2026`:w}"`,{type:"unknown-field",field:w,value:C,line:h}));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 VN(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 Pm=class extends TransformStream{constructor({onError:t,onRetry:a,onComment:n}={}){let r;super({start(o){r=p$({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:tW,atob:aW}=globalThis;var x$="AI_DownloadError",b$=`vercel.ai.error.${x$}`,GN=Symbol.for(b$),m$,h$,cr=class extends(h$=Ue,m$=GN,h$){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:x$,message:r,cause:n}),this[m$]=!0,this.url=e,this.statusCode=t,this.statusText=a}static isInstance(e){return Ue.hasMarker(e,b$)}},$_=2*1024*1024*1024;async function S$({response:e,url:t,maxBytes:a=$_}){let n=e.headers.get("content-length");if(n!=null){let c=parseInt(n,10);if(!isNaN(c)&&c>a)throw new cr({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 cr({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 w$(e){let t;try{t=new URL(e)}catch{throw new cr({url:e,message:`Invalid URL: ${e}`})}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new cr({url:e,message:`URL scheme must be http or https, got ${t.protocol}`});let a=t.hostname;if(!a)throw new cr({url:e,message:"URL must have a hostname"});if(a==="localhost"||a.endsWith(".local")||a.endsWith(".localhost"))throw new cr({url:e,message:`URL with hostname ${a} is not allowed`});if(a.startsWith("[")&&a.endsWith("]")){let n=a.slice(1,-1);if(WN(n))throw new cr({url:e,message:`URL with IPv6 address ${a} is not allowed`});return}if(_$(a)){if(T_(a))throw new cr({url:e,message:`URL with IP address ${a} is not allowed`});return}}function _$(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 T_(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 WN(e){let t=e.toLowerCase();if(t==="::1"||t==="::")return!0;if(t.startsWith("::ffff:")){let a=t.slice(7);if(_$(a))return T_(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 T_(`${i}.${l}.${s}.${u}`)}}}return!!(t.startsWith("fc")||t.startsWith("fd")||t.startsWith("fe80"))}var kn=({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 YT({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${a}".`});return()=>`${e}${n}${r()}`},I$=kn();function Oc(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 wo(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 hi(e,...t){let a=new Headers(wo(e)),n=a.get("user-agent")||"";return a.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}var JN=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,XN=/"(?: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 g$(e){let t=JSON.parse(e);return t===null||typeof t!="object"||JN.test(e)===!1&&XN.test(e)===!1?t:KN(t)}function KN(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 YN(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return g$(e)}try{return g$(e)}finally{Error.stackTraceLimit=t}}function M_(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]=mi(a[n])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(mi):mi(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(mi)),e.allOf!=null&&(e.allOf=e.allOf.map(mi)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(mi));let{definitions:t}=e;if(t!=null)for(let a of Object.keys(t))t[a]=mi(t[a]);return e}function mi(e){return typeof e=="boolean"?e:M_(e)}var QN=Symbol("Let zodToJsonSchema decide on which parser to use"),v$={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"},e3=e=>typeof e=="string"?{...v$,name:e}:{...v$,...e};function Ha(){return{}}function t3(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=Ge(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 r3(){return{type:"boolean"}}function k$(e,t){return Ge(e.type._def,t)}var n3=(e,t)=>Ge(e.innerType._def,t);function C$(e,t,a){let n=a??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((r,o)=>C$(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 o3(e)}}var o3=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 i3(e,t){return{...Ge(e.innerType._def,t),default:e.defaultValue()}}function l3(e,t){return t.effectStrategy==="input"?Ge(e.schema._def,t):Ha()}function s3(e){return{type:"string",enum:Array.from(e.values)}}var u3=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function c3(e,t){let a=[Ge(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Ge(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(r=>!!r),n=[];return a.forEach(r=>{if(u3(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 d3(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 C_=void 0,Cr={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:()=>(C_===void 0&&(C_=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),C_),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 L$(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":Lr(a,"email",n.message,t);break;case"format:idn-email":Lr(a,"idn-email",n.message,t);break;case"pattern:zod":ha(a,Cr.email,n.message,t);break}break;case"url":Lr(a,"uri",n.message,t);break;case"uuid":Lr(a,"uuid",n.message,t);break;case"regex":ha(a,n.regex,n.message,t);break;case"cuid":ha(a,Cr.cuid,n.message,t);break;case"cuid2":ha(a,Cr.cuid2,n.message,t);break;case"startsWith":ha(a,RegExp(`^${L_(n.value,t)}`),n.message,t);break;case"endsWith":ha(a,RegExp(`${L_(n.value,t)}$`),n.message,t);break;case"datetime":Lr(a,"date-time",n.message,t);break;case"date":Lr(a,"date",n.message,t);break;case"time":Lr(a,"time",n.message,t);break;case"duration":Lr(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":{ha(a,RegExp(L_(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&Lr(a,"ipv4",n.message,t),n.version!=="v4"&&Lr(a,"ipv6",n.message,t);break}case"base64url":ha(a,Cr.base64url,n.message,t);break;case"jwt":ha(a,Cr.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&ha(a,Cr.ipv4Cidr,n.message,t),n.version!=="v4"&&ha(a,Cr.ipv6Cidr,n.message,t);break}case"emoji":ha(a,Cr.emoji(),n.message,t);break;case"ulid":{ha(a,Cr.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{Lr(a,"binary",n.message,t);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{ha(a,Cr.base64,n.message,t);break}}break}case"nanoid":ha(a,Cr.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function L_(e,t){return t.patternStrategy==="escape"?p3(e):e}var f3=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function p3(e){let t="";for(let a=0;a<e.length;a++)f3.has(e[a])||(t+="\\"),t+=e[a];return t}function Lr(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 ha(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:y$(t,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):e.pattern=y$(t,n)}function y$(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 T$(e,t){var a,n,r,o,i,l;let s={type:"object",additionalProperties:(a=Ge(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}=L$(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}=k$(e.keyType._def,t);return{...s,propertyNames:c}}}return s}function m3(e,t){if(t.mapStrategy==="record")return T$(e,t);let a=Ge(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Ha(),n=Ge(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Ha();return{type:"array",maxItems:125,items:{type:"array",items:[a,n],minItems:2,maxItems:2}}}function h3(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 g3(){return{not:Ha()}}function v3(){return{type:"null"}}var A_={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function y3(e,t){let a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every(n=>n._def.typeName in A_&&(!n._def.checks||!n._def.checks.length))){let n=a.reduce((r,o)=>{let i=A_[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 x3(e,t)}var x3=(e,t)=>{let a=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,r)=>Ge(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 b3(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[A_[e.innerType._def.typeName],"null"]};let a=Ge(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function S3(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 w3(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=I3(l),u=Ge(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=_3(e,t);return o!==void 0&&(a.additionalProperties=o),a}function _3(e,t){if(e.catchall._def.typeName!=="ZodNever")return Ge(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 I3(e){try{return e.isOptional()}catch{return!0}}var k3=(e,t)=>{var a;if(t.currentPath.toString()===((a=t.propertyPath)==null?void 0:a.toString()))return Ge(e.innerType._def,t);let n=Ge(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:Ha()},n]}:Ha()},C3=(e,t)=>{if(t.pipeStrategy==="input")return Ge(e.in._def,t);if(t.pipeStrategy==="output")return Ge(e.out._def,t);let a=Ge(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=Ge(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",a?"1":"0"]});return{allOf:[a,n].filter(r=>r!==void 0)}};function L3(e,t){return Ge(e.type._def,t)}function T3(e,t){let n={type:"array",uniqueItems:!0,items:Ge(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 A3(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((a,n)=>Ge(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[]),additionalItems:Ge(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((a,n)=>Ge(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[])}}function E3(){return{not:Ha()}}function $3(){return Ha()}var M3=(e,t)=>Ge(e.innerType._def,t),D3=(e,t,a)=>{switch(t){case J.ZodString:return L$(e,a);case J.ZodNumber:return S3(e);case J.ZodObject:return w3(e,a);case J.ZodBigInt:return a3(e);case J.ZodBoolean:return r3();case J.ZodDate:return C$(e,a);case J.ZodUndefined:return E3();case J.ZodNull:return v3();case J.ZodArray:return t3(e,a);case J.ZodUnion:case J.ZodDiscriminatedUnion:return y3(e,a);case J.ZodIntersection:return c3(e,a);case J.ZodTuple:return A3(e,a);case J.ZodRecord:return T$(e,a);case J.ZodLiteral:return d3(e);case J.ZodEnum:return s3(e);case J.ZodNativeEnum:return h3(e);case J.ZodNullable:return b3(e,a);case J.ZodOptional:return k3(e,a);case J.ZodMap:return m3(e,a);case J.ZodSet:return T3(e,a);case J.ZodLazy:return()=>e.getter()._def;case J.ZodPromise:return L3(e,a);case J.ZodNaN:case J.ZodNever:return g3();case J.ZodEffects:return l3(e,a);case J.ZodAny:return Ha();case J.ZodUnknown:return $3();case J.ZodDefault:return i3(e,a);case J.ZodBranded:return k$(e,a);case J.ZodReadonly:return M3(e,a);case J.ZodCatch:return n3(e,a);case J.ZodPipeline:return C3(e,a);case J.ZodFunction:case J.ZodVoid:case J.ZodSymbol:return;default:return(n=>{})(t)}},z3=(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 Ge(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!==QN)return s}if(r&&!a){let s=O3(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=D3(e,e.typeName,t),l=typeof i=="function"?Ge(i(),t):i;if(l&&R3(e,t,l),t.postProcess){let s=t.postProcess(l,e,t);return o.jsonSchema=l,s}return o.jsonSchema=l,l}var O3=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:z3(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`),Ha()):t.$refStrategy==="seen"?Ha():void 0}},R3=(e,t,a)=>(e.description&&(a.description=e.description),a),P3=e=>{let t=e3(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}]))}},U3=(e,t)=>{var a;let n=P3(t),r=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,d])=>{var p;return{...u,[c]:(p=Ge(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0))!=null?p:Ha()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(a=Ge(e._def,o===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,o]},!1))!=null?a:Ha(),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},E_=Symbol.for("vercel.ai.schema");function Um(e){let t;return()=>(t==null&&(t=e()),t)}function bs(e,{validate:t}={}){return{[E_]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function N3(e){return typeof e=="object"&&e!==null&&E_ in e&&e[E_]===!0&&"jsonSchema"in e&&"validate"in e}function Ss(e){return e==null?bs({properties:{},additionalProperties:!1}):N3(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Rc(e):j3(e):e()}function j3(e){return bs(()=>M_(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 Pr({value:t,cause:a.issues})}}})}function B3(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return bs(()=>U3(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 F3(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return bs(()=>M_(Yl(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async r=>{let o=await dc(e,r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function q3(e){return"_zod"in e}function Rc(e,t){return q3(e)?F3(e,t):B3(e,t)}async function Nm({value:e,schema:t,context:a}){let n=await ws({value:e,schema:t,context:a});if(!n.success)throw Pr.wrap({value:e,cause:n.error,context:a});return n.value}async function ws({value:e,schema:t,context:a}){let n=Ss(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:Pr.wrap({value:e,cause:r.error,context:a}),rawValue:e}}catch(r){return{success:!1,error:Pr.wrap({value:e,cause:r,context:a}),rawValue:e}}}async function Cn({text:e,schema:t}){try{let a=YN(e);return t==null?{success:!0,value:a,rawValue:a}:await ws({value:a,schema:t})}catch(a){return{success:!1,error:by.isInstance(a)?a:new by({text:e,cause:a}),rawValue:void 0}}}function A$({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Pm).pipeThrough(new TransformStream({async transform({data:a},n){a!=="[DONE]"&&n.enqueue(await Cn({text:a,schema:t}))}}))}async function qr(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}async function Z3(e,t){let n=await Ss(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 jm({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 Z3(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 Fm=ce(bt());var E$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),H3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,n)=>n?n.toUpperCase():a.toLowerCase()),D_=e=>{let t=H3(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bm=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim(),$$=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Pc=ce(bt());var M$={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 D$=(0,Pc.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:r="",children:o,iconNode:i,...l},s)=>(0,Pc.createElement)("svg",{ref:s,...M$,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:Bm("lucide",r),...!o&&!$$(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,c])=>(0,Pc.createElement)(u,c)),...Array.isArray(o)?o:[o]]));var Rt=(e,t)=>{let a=(0,Fm.forwardRef)(({className:n,...r},o)=>(0,Fm.createElement)(D$,{ref:o,iconNode:t,className:Bm(`lucide-${E$(D_(e))}`,`lucide-${e}`,n),...r}));return a.displayName=D_(e),a};var V3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Uc=Rt("chevron-right",V3);var G3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],_o=Rt("circle-stop",G3);var W3=[["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"}]],gi=Rt("message-square-text",W3);var J3=[["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"}]],Ln=Rt("message-square",J3);var X3=[["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"}]],Nc=Rt("mic-off",X3);var K3=[["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"}]],jc=Rt("mic",K3);var Y3=[["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"}]],Bc=Rt("send",Y3);var Q3=[["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"}]],vi=Rt("thumbs-up",Q3);var ej=[["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"}]],yi=Rt("thumbs-down",ej);var tj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fc=Rt("x",tj);var Re=ce(bt(),1);function z$(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 fr=ce(bt(),1);var Pt=v;var rj=Object.defineProperty,nj=(e,t)=>{for(var a in t)rj(e,a,{get:t[a],enumerable:!0})},oj="AI_InvalidArgumentError",ij=`vercel.ai.error.${oj}`,lj=Symbol.for(ij),sj;sj=lj;var uj="AI_InvalidStreamPartError",cj=`vercel.ai.error.${uj}`,dj=Symbol.for(cj),fj;fj=dj;var pj="AI_InvalidToolApprovalError",mj=`vercel.ai.error.${pj}`,hj=Symbol.for(mj),gj;gj=hj;var vj="AI_InvalidToolInputError",yj=`vercel.ai.error.${vj}`,xj=Symbol.for(yj),bj;bj=xj;var Sj="AI_ToolCallNotFoundForApprovalError",wj=`vercel.ai.error.${Sj}`,_j=Symbol.for(wj),Ij;Ij=_j;var kj="AI_MissingToolResultsError",Cj=`vercel.ai.error.${kj}`,Lj=Symbol.for(Cj),Tj;Tj=Lj;var Aj="AI_NoImageGeneratedError",Ej=`vercel.ai.error.${Aj}`,$j=Symbol.for(Ej),Mj;Mj=$j;var R$="AI_NoObjectGeneratedError",P$=`vercel.ai.error.${R$}`,Dj=Symbol.for(P$),U$,Io=class extends Ue{constructor({message:e="No object generated.",cause:t,text:a,response:n,usage:r,finishReason:o}){super({name:R$,message:e,cause:t}),this[U$]=!0,this.text=a,this.response=n,this.usage=r,this.finishReason=o}static isInstance(e){return Ue.hasMarker(e,P$)}};U$=Dj;var zj="AI_NoOutputGeneratedError",Oj=`vercel.ai.error.${zj}`,Rj=Symbol.for(Oj),Pj;Pj=Rj;var Uj="AI_NoSpeechGeneratedError",Nj=`vercel.ai.error.${Uj}`,jj=Symbol.for(Nj),Bj;Bj=jj;var Fj="AI_NoTranscriptGeneratedError",qj=`vercel.ai.error.${Fj}`,Zj=Symbol.for(qj),Hj;Hj=Zj;var Vj="AI_NoVideoGeneratedError",Gj=`vercel.ai.error.${Vj}`,Wj=Symbol.for(Gj),Jj;Jj=Wj;var Xj="AI_NoSuchToolError",Kj=`vercel.ai.error.${Xj}`,Yj=Symbol.for(Kj),Qj;Qj=Yj;var eB="AI_ToolCallRepairError",tB=`vercel.ai.error.${eB}`,aB=Symbol.for(tB),rB;rB=aB;var N$="AI_UIMessageStreamError",j$=`vercel.ai.error.${N$}`,nB=Symbol.for(j$),B$,_s=class extends Ue{constructor({chunkType:e,chunkId:t,message:a}){super({name:N$,message:a}),this[B$]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Ue.hasMarker(e,j$)}};B$=nB;var oB="AI_InvalidDataContentError",iB=`vercel.ai.error.${oB}`,lB=Symbol.for(iB),sB;sB=lB;var uB="AI_InvalidMessageRoleError",cB=`vercel.ai.error.${uB}`,dB=Symbol.for(cB),fB;fB=dB;var pB="AI_MessageConversionError",mB=`vercel.ai.error.${pB}`,hB=Symbol.for(mB),gB;gB=hB;var vB="AI_RetryError",yB=`vercel.ai.error.${vB}`,xB=Symbol.for(yB),bB;bB=xB;var z_="6.0.116",SB=async({url:e,maxBytes:t,abortSignal:a})=>{var n;let r=e.toString();w$(r);try{let o=await fetch(r,{headers:hi({},`ai-sdk/${z_}`,Oc()),signal:a});if(!o.ok)throw new cr({url:r,statusCode:o.status,statusText:o.statusText});return{data:await S$({response:o,url:r,maxBytes:t??$_}),mediaType:(n=o.headers.get("content-type"))!=null?n:void 0}}catch(o){throw cr.isInstance(o)?o:new cr({url:r,cause:o})}};var F$=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 qc=v.lazy(()=>v.union([v.null(),v.string(),v.number(),v.boolean(),v.record(v.string(),qc.optional()),v.array(qc)])),se=v.record(v.string(),v.record(v.string(),qc.optional())),q$=v.object({type:v.literal("text"),text:v.string(),providerOptions:se.optional()}),wB=v.object({type:v.literal("image"),image:v.union([F$,v.instanceof(URL)]),mediaType:v.string().optional(),providerOptions:se.optional()}),Z$=v.object({type:v.literal("file"),data:v.union([F$,v.instanceof(URL)]),filename:v.string().optional(),mediaType:v.string(),providerOptions:se.optional()}),_B=v.object({type:v.literal("reasoning"),text:v.string(),providerOptions:se.optional()}),IB=v.object({type:v.literal("tool-call"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerOptions:se.optional(),providerExecuted:v.boolean().optional()}),kB=v.discriminatedUnion("type",[v.object({type:v.literal("text"),value:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("json"),value:qc,providerOptions:se.optional()}),v.object({type:v.literal("execution-denied"),reason:v.string().optional(),providerOptions:se.optional()}),v.object({type:v.literal("error-text"),value:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("error-json"),value:qc,providerOptions:se.optional()}),v.object({type:v.literal("content"),value:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),providerOptions:se.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:se.optional()}),v.object({type:v.literal("file-url"),url:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:se.optional()}),v.object({type:v.literal("image-data"),data:v.string(),mediaType:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("image-url"),url:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("image-file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:se.optional()}),v.object({type:v.literal("custom"),providerOptions:se.optional()})]))})]),H$=v.object({type:v.literal("tool-result"),toolCallId:v.string(),toolName:v.string(),output:kB,providerOptions:se.optional()}),CB=v.object({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),LB=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:se.optional()}),AB=v.object({role:v.literal("user"),content:v.union([v.string(),v.array(v.union([q$,wB,Z$]))]),providerOptions:se.optional()}),EB=v.object({role:v.literal("assistant"),content:v.union([v.string(),v.array(v.union([q$,Z$,_B,IB,H$,CB]))]),providerOptions:se.optional()}),$B=v.object({role:v.literal("tool"),content:v.array(v.union([H$,LB])),providerOptions:se.optional()}),vJ=v.union([TB,AB,EB,$B]);function V$(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]=V$(o,r):a[n]=r}return a}var MB={};nj(MB,{array:()=>RB,choice:()=>PB,json:()=>UB,object:()=>OB,text:()=>zB});function DB(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 Zc(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Cn({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Cn({text:DB(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var zB=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),OB=({schema:e,name:t,description:a})=>{let n=Ss(e);return{name:"object",responseFormat:qr(n.jsonSchema).then(r=>({type:"json",schema:r,...t!=null&&{name:t},...a!=null&&{description:a}})),async parseCompleteOutput({text:r},o){let i=await Cn({text:r});if(!i.success)throw new Io({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 ws({value:i.value,schema:n});if(!l.success)throw new Io({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 Zc(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},RB=({element:e,name:t,description:a})=>{let n=Ss(e);return{name:"array",responseFormat:qr(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 Cn({text:r});if(!i.success)throw new Io({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 Io({message:"No object generated: response did not match schema.",cause:new Pr({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 ws({value:s,schema:n});if(!u.success)throw new Io({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 Zc(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 ws({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])}})}}},PB=({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 Cn({text:n});if(!o.success)throw new Io({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 Io({message:"No object generated: response did not match schema.",cause:new Pr({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 Zc(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(){}}),UB=({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 Cn({text:a});if(!r.success)throw new Io({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 Zc(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 SJ=kn({prefix:"aitxt",size:24});var _J=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 NB=Um(()=>Rc(v.union([v.strictObject({type:v.literal("text-start"),id:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("text-delta"),id:v.string(),delta:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("text-end"),id:v.string(),providerMetadata:se.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:se.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:se.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:se.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:se.optional()}),v.strictObject({type:v.literal("reasoning-delta"),id:v.string(),delta:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("reasoning-end"),id:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("file"),url:v.string(),mediaType:v.string(),providerMetadata:se.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 jB(e){return e.type.startsWith("data-")}function O_(e){return e.type.startsWith("tool-")}function BB(e){return e.type==="dynamic-tool"}function qm(e){return O_(e)||BB(e)}function O$(e){return e.type.split("-").slice(1).join("-")}function FB({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function qB({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(g){let L=u.message.parts.filter(qm).find(y=>y.toolCallId===g);if(L==null)throw new _s({chunkType:"tool-invocation",chunkId:g,message:`No tool invocation found for tool call ID "${g}".`});return L}function C(g){var S;let L=u.message.parts.find(b=>O_(b)&&b.toolCallId===g.toolCallId),y=g,_=L;L!=null?(L.state=g.state,_.input=y.input,_.output=y.output,_.errorText=y.errorText,_.rawInput=y.rawInput,_.preliminary=y.preliminary,g.title!==void 0&&(_.title=g.title),_.providerExecuted=(S=y.providerExecuted)!=null?S:L.providerExecuted,y.providerMetadata!=null&&(L.callProviderMetadata=y.providerMetadata)):u.message.parts.push({type:`tool-${g.toolName}`,toolCallId:g.toolCallId,state:g.state,title:g.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 h(g){var S,L;let y=u.message.parts.find(T=>T.type==="dynamic-tool"&&T.toolCallId===g.toolCallId),_=g,b=y;y!=null?(y.state=g.state,b.toolName=g.toolName,b.input=_.input,b.output=_.output,b.errorText=_.errorText,b.rawInput=(S=_.rawInput)!=null?S:b.rawInput,b.preliminary=_.preliminary,g.title!==void 0&&(b.title=g.title),b.providerExecuted=(L=_.providerExecuted)!=null?L:y.providerExecuted,_.providerMetadata!=null&&(y.callProviderMetadata=_.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:g.toolName,toolCallId:g.toolCallId,state:g.state,input:_.input,output:_.output,errorText:_.errorText,preliminary:_.preliminary,providerExecuted:_.providerExecuted,title:g.title,..._.providerMetadata!=null?{callProviderMetadata:_.providerMetadata}:{}})}async function x(g){if(g!=null){let S=u.message.metadata!=null?V$(u.message.metadata,g):g;t!=null&&await Nm({value:S,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=S}}switch(l.type){case"text-start":{let g={type:"text",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeTextParts[l.id]=g,u.message.parts.push(g),c();break}case"text-delta":{let g=u.activeTextParts[l.id];if(g==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.`});g.text+=l.delta,g.providerMetadata=(d=l.providerMetadata)!=null?d:g.providerMetadata,c();break}case"text-end":{let g=u.activeTextParts[l.id];if(g==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.`});g.state="done",g.providerMetadata=(p=l.providerMetadata)!=null?p:g.providerMetadata,delete u.activeTextParts[l.id],c();break}case"reasoning-start":{let g={type:"reasoning",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeReasoningParts[l.id]=g,u.message.parts.push(g),c();break}case"reasoning-delta":{let g=u.activeReasoningParts[l.id];if(g==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.`});g.text+=l.delta,g.providerMetadata=(f=l.providerMetadata)!=null?f:g.providerMetadata,c();break}case"reasoning-end":{let g=u.activeReasoningParts[l.id];if(g==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.`});g.providerMetadata=(m=l.providerMetadata)!=null?m:g.providerMetadata,g.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 g=u.message.parts.filter(O_);u.partialToolCalls[l.toolCallId]={text:"",toolName:l.toolName,index:g.length,dynamic:l.dynamic,title:l.title},l.dynamic?h({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 g=u.partialToolCalls[l.toolCallId];if(g==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.`});g.text+=l.inputTextDelta;let{value:S}=await Zc(g.text);g.dynamic?h({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:S,title:g.title}):C({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:S,title:g.title}),c();break}case"tool-input-available":{l.dynamic?h({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 g=u.message.parts.filter(qm).find(L=>L.toolCallId===l.toolCallId);(g!=null?g.type==="dynamic-tool":!!l.dynamic)?h({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 g=w(l.toolCallId);g.state="approval-requested",g.approval={id:l.approvalId},c();break}case"tool-output-denied":{let g=w(l.toolCallId);g.state="output-denied",c();break}case"tool-output-available":{let g=w(l.toolCallId);g.type==="dynamic-tool"?h({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-available",input:g.input,output:l.output,preliminary:l.preliminary,providerExecuted:l.providerExecuted,title:g.title}):C({toolCallId:l.toolCallId,toolName:O$(g),state:"output-available",input:g.input,output:l.output,providerExecuted:l.providerExecuted,preliminary:l.preliminary,title:g.title}),c();break}case"tool-output-error":{let g=w(l.toolCallId);g.type==="dynamic-tool"?h({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-error",input:g.input,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.title}):C({toolCallId:l.toolCallId,toolName:O$(g),state:"output-error",input:g.input,rawInput:g.rawInput,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.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(jB(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 Nm({value:l.data,schema:a[l.type],context:{field:`message.parts[${y}].data`,entityName:l.type,entityId:l.id}})}let g=l;if(g.transient){i?.(g);break}let S=g.id!=null?u.message.parts.find(L=>g.type===L.type&&g.id===L.id):void 0;S!=null?S.data=g.data:u.message.parts.push(g),i?.(g),c()}}s.enqueue(l)})}}))}async function ZB({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 LJ=kn({prefix:"aitxt",size:24});var EJ=Um(()=>Rc(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:se.optional()}),v.object({type:v.literal("reasoning"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:se.optional()}),v.object({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:se.optional()}),v.object({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:se.optional()}),v.object({type:v.literal("file"),mediaType:v.string(),filename:v.string().optional(),url:v.string(),providerMetadata:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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:se.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 MJ=kn({prefix:"aiobj",size:24});function G$(e){return({url:t,abortSignal:a})=>SB({url:t,maxBytes:e?.maxBytes,abortSignal:a})}var HB=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 zJ=kn({prefix:"aiobj",size:24});var OJ=G$();var VB="AI_NoSuchProviderError",GB=`vercel.ai.error.${VB}`,WB=Symbol.for(GB),JB;JB=WB;var RJ=G$();async function XB(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 KB=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 qr(this.body),s=await qr(this.headers),u=await qr(this.credentials),c={...wo(s),...wo(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?wo(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,h=await((o=this.fetch)!=null?o:globalThis.fetch)(p,{method:"POST",headers:hi({"Content-Type":"application/json",...f},`ai-sdk/${z_}`,Oc()),body:JSON.stringify(m),credentials:w,signal:e});if(!h.ok)throw new Error((i=await h.text())!=null?i:"Failed to fetch the chat response.");if(!h.body)throw new Error("The response body is empty.");return this.processResponseStream(h.body)}async reconnectToStream(e){var t,a,n,r,o;let i=await qr(this.body),l=await qr(this.headers),s=await qr(this.credentials),u={...wo(l),...wo(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?wo(c.headers):u,f=(n=c?.credentials)!=null?n:s,w=await((r=this.fetch)!=null?r:globalThis.fetch)(d,{method:"GET",headers:hi(p,`ai-sdk/${z_}`,Oc()),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)}},R_=class extends KB{constructor(e={}){super(e)}processResponseStream(e){return A$({stream:e,schema:NB}).pipeThrough(new TransformStream({async transform(t,a){if(!t.success)throw t.error;a.enqueue(t.value)}}))}},W$=class{constructor({generateId:e=I$,id:t=e(),transport:a=new R_,messageMetadataSchema:n,dataPartSchemas:r,state:o,onError:i,onToolCall:l,onFinish:s,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new HB,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 h;if("text"in d||"files"in d?h={parts:[...Array.isArray(d.files)?d.files:await XB(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:h=d,d.messageId!=null){let x=this.state.messages.findIndex(g=>g.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,{...h,id:d.messageId,role:(m=h.role)!=null?m:"user",metadata:d.metadata})}else this.state.pushMessage({...h,id:(w=h.id)!=null?w:this.generateId(),role:(C=h.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=h=>qm(h)&&h.state==="approval-requested"&&h.approval.id===d?{...h,state:"approval-responded",approval:{id:d,approved:p,reason:f}}:h;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(h=>{var x;h&&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,h=C[C.length-1],x=g=>qm(g)&&g.toolCallId===f?{...g,state:d,output:m,errorText:w}:g;this.state.replaceMessage(C.length-1,{...h,parts:h.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(g=>{var S;g&&this.makeRequest({trigger:"submit-message",messageId:(S=this.lastMessage)==null?void 0:S.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:FB({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 h;this.setStatus({status:"streaming"}),f.state.message.id===((h=this.lastMessage)==null?void 0:h.id)?this.state.replaceMessage(this.state.messages.length-1,f.state.message):this.state.pushMessage(f.state.message)}}));await ZB({stream:qB({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})}};var Q$=ce(X$(),1);var Wc=ce(bt(),1);var Vm=ce(bt(),1);var Y$=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},ut=(e,t,a)=>(Y$(e,t,"read from private field"),a?a.call(e):t.get(e)),Zr=(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)},ko=(e,t,a,n)=>(Y$(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a);function QB(e,t){return t!=null?(0,Q$.default)(e,t):e}var dr,Zm,Hm,Hc,Vc,Gc,Is,P_,U_,eF=class{constructor(e=[]){Zr(this,dr,void 0),Zr(this,Zm,"ready"),Zr(this,Hm,void 0),Zr(this,Hc,new Set),Zr(this,Vc,new Set),Zr(this,Gc,new Set),this.pushMessage=t=>{ko(this,dr,ut(this,dr).concat(t)),ut(this,Is).call(this)},this.popMessage=()=>{ko(this,dr,ut(this,dr).slice(0,-1)),ut(this,Is).call(this)},this.replaceMessage=(t,a)=>{ko(this,dr,[...ut(this,dr).slice(0,t),this.snapshot(a),...ut(this,dr).slice(t+1)]),ut(this,Is).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,a)=>{let n=a?QB(t,a):t;return ut(this,Hc).add(n),()=>{ut(this,Hc).delete(n)}},this["~registerStatusCallback"]=t=>(ut(this,Vc).add(t),()=>{ut(this,Vc).delete(t)}),this["~registerErrorCallback"]=t=>(ut(this,Gc).add(t),()=>{ut(this,Gc).delete(t)}),Zr(this,Is,()=>{ut(this,Hc).forEach(t=>t())}),Zr(this,P_,()=>{ut(this,Vc).forEach(t=>t())}),Zr(this,U_,()=>{ut(this,Gc).forEach(t=>t())}),ko(this,dr,e)}get status(){return ut(this,Zm)}set status(e){ko(this,Zm,e),ut(this,P_).call(this)}get error(){return ut(this,Hm)}set error(e){ko(this,Hm,e),ut(this,U_).call(this)}get messages(){return ut(this,dr)}set messages(e){ko(this,dr,[...e]),ut(this,Is).call(this)}};dr=new WeakMap;Zm=new WeakMap;Hm=new WeakMap;Hc=new WeakMap;Vc=new WeakMap;Gc=new WeakMap;Is=new WeakMap;P_=new WeakMap;U_=new WeakMap;var ks,K$=class extends W${constructor({messages:e,...t}){let a=new eF(e);super({...t,state:a}),Zr(this,ks,void 0),this["~registerMessagesCallback"]=(n,r)=>ut(this,ks)["~registerMessagesCallback"](n,r),this["~registerStatusCallback"]=n=>ut(this,ks)["~registerStatusCallback"](n),this["~registerErrorCallback"]=n=>ut(this,ks)["~registerErrorCallback"](n),ko(this,ks,a)}};ks=new WeakMap;function eM({experimental_throttle:e,resume:t=!1,...a}={}){let n=(0,fr.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,fr.useRef)("chat"in a?a.chat:new K$(r));("chat"in a&&a.chat!==o.current||"id"in a&&o.current.id!==a.id)&&(o.current="chat"in a?a.chat:new K$(r));let l=(0,fr.useCallback)(p=>o.current["~registerMessagesCallback"](p,e),[e,o.current.id]),s=(0,fr.useSyncExternalStore)(l,()=>o.current.messages,()=>o.current.messages),u=(0,fr.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),c=(0,fr.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),d=(0,fr.useCallback)(p=>{typeof p=="function"&&(p=p(o.current.messages)),o.current.messages=p},[o]);return(0,fr.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 Va=ce(bt(),1);function tM(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}}function tF(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 aM({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,Va.useRef)(o);m.current=o;let w=(0,Va.useRef)(p);w.current=p;let C=(0,Va.useRef)(l);C.current=l;let h=(0,Va.useMemo)(()=>tF(w,async()=>C.current?.()??null),[]),x=(0,Va.useMemo)(()=>new R_({api:`${d}/chat`,fetch:h,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:F,id:O}){return{body:{id:O,message:F[F.length-1],dataContext:m.current}}}}),[d,h,t,a,n,r,f]),{messages:g,status:S,sendMessage:L,stop:y,setMessages:_}=eM({id:t,transport:x,onError:F=>{console.error("Chat error:",F),i?.(F)},onFinish:F=>{s?.(F)},onData:F=>{u?.(F)}}),[b,T]=(0,Va.useState)(!0);return(0,Va.useEffect)(()=>{(async()=>{try{let O=await h(`${d}/chat/messages`,{method:"GET",headers:{"thread-id":t}});if(!O.ok)throw new Error(`Failed to fetch messages: ${O.statusText}`);let P=(await O.json()).messages||[];P.length>0&&_(P)}catch(O){console.error("Error fetching initial messages:",O),i?.(O)}finally{T(!1)}})()},[r,a,h,d,i,_,t]),(0,Va.useEffect)(()=>{if(!c||g.length===0)return;let F=g[g.length-1];F&&c(F)},[g,c]),{messages:(0,Va.useMemo)(()=>g.map(F=>tM(F)),[g]),status:S,isLoadingInitial:b,sendMessage:L,stop:y,setMessages:_}}var Co=ce(bt(),1);function rM({api:e,threadId:t,agentId:a,agentVersion:n}){let{baseUrl:r,token:o}=e,[i,l]=(0,Co.useState)({}),[s,u]=(0,Co.useState)(null),[c,d]=(0,Co.useState)(null),p=(0,Co.useCallback)(async(w,{rating:C,improvementText:h,notes:x})=>{u(w),d(null);try{let g={agentId:a,agentVersion:n,threadId:t,messageId:w,rating:C,improvementText:h,notes:x},S=await fetch(`${r}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(g)});if(!S.ok){let _=await S.json().catch(()=>({}));throw new Error(_.error||`Failed to submit feedback: ${S.statusText}`)}let{data:L}=await S.json();if(L.deleted||!C)return l(_=>{let b={..._};return delete b[w],b}),null;let y={rating:L.rating,improvementText:L.improvementText,notes:L.notes};return l(_=>({..._,[w]:y})),y}catch(g){let S=g instanceof Error?g:new Error("Unknown error");return d(S),console.error("Failed to submit feedback:",S),null}finally{u(null)}},[r,o,t,a,n]),f=(0,Co.useCallback)(w=>i[w],[i]),m=(0,Co.useCallback)(w=>w in i,[i]);return{submitFeedback:p,getFeedbackForMessage:f,hasFeedback:m,isSubmitting:s,error:c}}function nM(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=nM(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function oM(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=nM(e))&&(n&&(n+=" "),n+=t);return n}var aF=e=>{let t=nF(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{let l=i.split("-");return l[0]===""&&l.length!==1&&l.shift(),sM(l,t)||rF(i)},getConflictingClassGroupIds:(i,l)=>{let s=a[i]||[];return l&&n[i]?[...s,...n[i]]:s}}},sM=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],n=t.nextPart.get(a),r=n?sM(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},iM=/^\[(.+)\]$/,rF=e=>{if(iM.test(e)){let t=iM.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},nF=e=>{let{theme:t,prefix:a}=e,n={nextPart:new Map,validators:[]};return iF(Object.entries(e.classGroups),a).forEach(([o,i])=>{j_(i,n,o,t)}),n},j_=(e,t,a,n)=>{e.forEach(r=>{if(typeof r=="string"){let o=r===""?t:lM(t,r);o.classGroupId=a;return}if(typeof r=="function"){if(oF(r)){j_(r(n),t,a,n);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([o,i])=>{j_(i,lM(t,o),a,n)})})},lM=(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},oF=e=>e.isThemeGetter,iF=(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,lF=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 sF=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 h=l[C];if(u===0){if(h===r&&(n||l.slice(C,C+o)===t)){s.push(l.slice(c,C)),c=C+o;continue}if(h==="/"){d=C;continue}}h==="["?u++:h==="]"&&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},uF=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},cF=e=>({cache:lF(e.cacheSize),parseClassName:sF(e),...aF(e)}),dF=/\s+/,fF=(e,t)=>{let{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(dF),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=uF(c).join(":"),h=d?C+"!":C,x=h+w;if(o.includes(x))continue;o.push(x);let g=r(w,m);for(let S=0;S<g.length;++S){let L=g[S];o.push(h+L)}l=u+(l.length>0?" "+l:l)}return l};function pF(){let e=0,t,a,n="";for(;e<arguments.length;)(t=arguments[e++])&&(a=uM(t))&&(n&&(n+=" "),n+=a);return n}var uM=e=>{if(typeof e=="string")return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=uM(e[n]))&&(a&&(a+=" "),a+=t);return a};function mF(e,...t){let a,n,r,o=i;function i(s){let u=t.reduce((c,d)=>d(c),e());return a=cF(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=fF(s,a);return r(s,c),c}return function(){return o(pF.apply(null,arguments))}}var ct=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},cM=/^\[(?:([a-z-]+):)?(.+)\]$/i,hF=/^\d+\/\d+$/,gF=new Set(["px","full","screen"]),vF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yF=/\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$/,xF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,SF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>Cs(e)||gF.has(e)||hF.test(e),Lo=e=>Ls(e,"length",AF),Cs=e=>!!e&&!Number.isNaN(Number(e)),N_=e=>Ls(e,"number",Cs),Jc=e=>!!e&&Number.isInteger(Number(e)),wF=e=>e.endsWith("%")&&Cs(e.slice(0,-1)),ke=e=>cM.test(e),To=e=>vF.test(e),_F=new Set(["length","size","percentage"]),IF=e=>Ls(e,_F,dM),kF=e=>Ls(e,"position",dM),CF=new Set(["image","url"]),LF=e=>Ls(e,CF,$F),TF=e=>Ls(e,"",EF),Xc=()=>!0,Ls=(e,t,a)=>{let n=cM.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):a(n[2]):!1},AF=e=>yF.test(e)&&!xF.test(e),dM=()=>!1,EF=e=>bF.test(e),$F=e=>SF.test(e);var MF=()=>{let e=ct("colors"),t=ct("spacing"),a=ct("blur"),n=ct("brightness"),r=ct("borderColor"),o=ct("borderRadius"),i=ct("borderSpacing"),l=ct("borderWidth"),s=ct("contrast"),u=ct("grayscale"),c=ct("hueRotate"),d=ct("invert"),p=ct("gap"),f=ct("gradientColorStops"),m=ct("gradientColorStopPositions"),w=ct("inset"),C=ct("margin"),h=ct("opacity"),x=ct("padding"),g=ct("saturate"),S=ct("scale"),L=ct("sepia"),y=ct("skew"),_=ct("space"),b=ct("translate"),T=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",ke,t],O=()=>[ke,t],N=()=>["",Tn,Lo],P=()=>["auto",Cs,ke],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],Ee=()=>["","0",ke],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>[Cs,ke];return{cacheSize:500,separator:":",theme:{colors:[Xc],spacing:[Tn,Lo],blur:["none","",To,ke],brightness:fe(),borderColor:[e],borderRadius:["none","","full",To,ke],borderSpacing:O(),borderWidth:N(),contrast:fe(),grayscale:Ee(),hueRotate:fe(),invert:Ee(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[wF,Lo],inset:F(),margin:F(),opacity:fe(),padding:O(),saturate:fe(),scale:fe(),sepia:Ee(),skew:fe(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ke]}],container:["container"],columns:[{columns:[To]}],"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:[...Q(),ke]}],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",Jc,ke]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ke]}],grow:[{grow:Ee()}],shrink:[{shrink:Ee()}],order:[{order:["first","last","none",Jc,ke]}],"grid-cols":[{"grid-cols":[Xc]}],"col-start-end":[{col:["auto",{span:["full",Jc,ke]},ke]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[Xc]}],"row-start-end":[{row:["auto",{span:[Jc,ke]},ke]}],"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",ke]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ke]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"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",ke,t]}],"min-w":[{"min-w":[ke,t,"min","max","fit"]}],"max-w":[{"max-w":[ke,t,"none","full","min","max","fit","prose",{screen:[To]},To]}],h:[{h:[ke,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ke,t,"auto","min","max","fit"]}],"font-size":[{text:["base",To,Lo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",N_]}],"font-family":[{font:[Xc]}],"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",ke]}],"line-clamp":[{"line-clamp":["none",Cs,N_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,ke]}],"list-image":[{"list-image":["none",ke]}],"list-style-type":[{list:["none","disc","decimal",ke]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,Lo]}],"underline-offset":[{"underline-offset":["auto",Tn,ke]}],"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",ke]}],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",ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),kF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",IF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},LF]}],"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":[h]}],"border-style":[{border:[...oe(),"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":[h]}],"divide-style":[{divide:oe()}],"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:["",...oe()]}],"outline-offset":[{"outline-offset":[Tn,ke]}],"outline-w":[{outline:[Tn,Lo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Tn,Lo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",To,TF]}],"shadow-color":[{shadow:[Xc]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",To,ke]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],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":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"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",ke]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",ke]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",ke]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Jc,ke]}],"translate-x":[{"translate-x":[b]}],"translate-y":[{"translate-y":[b]}],"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",ke]}],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",ke]}],"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",ke]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tn,Lo,N_]}],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 fM=mF(MF);function Hr(...e){return fM(oM(e))}var je=ce(bt(),1);var xi=ce(Ze(),1),gM=()=>{if(typeof window>"u")return null;let e=window;return e.SpeechRecognition||e.webkitSpeechRecognition||null},vM=e=>Math.max(0,Math.min(1,e)),yM=(...e)=>e.map(t=>t.trim()).filter(Boolean).join(" ");function xM({onInterim:e,onFinal:t,onError:a,onListeningChange:n,silenceTimeout:r=3e3,finalDelay:o=1500,language:i,disabled:l,className:s}){let[u,c]=(0,je.useState)(!1),[d,p]=(0,je.useState)(!1),[f,m]=(0,je.useState)(0),w=(0,je.useRef)(null),[C,h]=(0,je.useState)(!1),x=(0,je.useRef)(null),g=(0,je.useRef)(null),S=(0,je.useRef)(""),L=(0,je.useRef)(null),y=(0,je.useRef)(0),_=i??"en-US",b=(0,je.useCallback)(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),T=(0,je.useCallback)(()=>{L.current&&(cancelAnimationFrame(L.current),L.current=null)},[]),I=(0,je.useCallback)(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]),F=(0,je.useCallback)(()=>{b(),I(),T(),m(0),h(!1),y.current=0,w.current?.stop()},[b,I,T]),O=(0,je.useCallback)(E=>{console.error("Speech recognition error:",E),a?.(E)},[a]),N=(0,je.useCallback)(()=>{r&&(b(),x.current=setTimeout(F,r))},[r,b,F]),P=(0,je.useCallback)(E=>{E&&e?.(E)},[e]),Q=(0,je.useCallback)(E=>{E&&t?.(E)},[t]),oe=(0,je.useCallback)(()=>{let E=S.current.trim();E&&Q(E),S.current="",I()},[Q,I]),le=(0,je.useCallback)(()=>{if(!y.current||!o){m(0),h(!1),L.current=null;return}let E=y.current-Date.now(),ye=vM(E/o);if(m(ye),E<=0){h(!1),L.current=null;return}L.current=requestAnimationFrame(le)},[o]),de=(0,je.useCallback)(()=>{if(!o){m(0),h(!1);return}y.current=Date.now()+o,m(1),h(!0),T(),L.current=requestAnimationFrame(le)},[o,T,le]),Ee=(0,je.useCallback)(()=>{if(I(),!o){oe();return}de(),g.current=setTimeout(oe,o)},[I,o,oe,de]),$=(0,je.useCallback)(E=>{E.continuous=!0,E.interimResults=!0,E.lang=_,E.onresult=ye=>{let Ut="",K="";for(let M=ye.resultIndex;M<ye.results.length;M++){let U=ye.results[M];if(!U)continue;let B=U[0]?.transcript??"";U.isFinal?K+=B:Ut+=B}let k=Ut.trim();if(k){de();let M=yM(S.current,k);P(M)}else{let M=S.current.trim();M&&P(M)}let A=K.trim();A&&(S.current=yM(S.current,A),P(S.current),Ee(),E.stop()),N()},E.onerror=ye=>{if(ye.error==="no-speech"){N();return}O(ye.error)},E.onstart=()=>{c(!0),n?.(!0),N()},E.onend=()=>{c(!1),n?.(!1),b(),g.current||oe()}},[_,N,de,P,Ee,O,n,b,oe,C]),fe=(0,je.useCallback)(()=>{if(typeof window>"u")return null;let E=gM();return E?(w.current||(w.current=new E),$(w.current),w.current):(O("Speech recognition is not supported in this browser."),null)},[$,O]),xt=(0,je.useCallback)(()=>{if(l)return;if(u){F();return}let E=fe();if(E)try{E.start()}catch{O("Microphone permission denied or unavailable.")}},[l,u,F,fe,O]);return(0,je.useEffect)(()=>{l&&u&&F()},[l,u,F]),(0,je.useEffect)(()=>{p(typeof window<"u"&&!!gM())},[]),(0,je.useEffect)(()=>()=>{b(),I(),T(),w.current?.stop(),w.current=null},[b,I,T]),d?(0,xi.jsxs)("button",{type:"button",className:Hr("chat-widget__mic-button",u&&"chat-widget__mic-button--active",s),onClick:xt,disabled:l,"aria-pressed":u,"aria-label":"Toggle microphone",children:[u?(0,xi.jsx)(jc,{className:"chat-widget__mic-icon"}):(0,xi.jsx)(Nc,{className:"chat-widget__mic-icon"}),o>0&&u&&C&&(0,xi.jsx)("span",{className:"chat-widget__mic-bar","aria-hidden":"true",children:(0,xi.jsx)("span",{className:"chat-widget__mic-bar-fill",style:{transform:`scaleX(${vM(f)})`}})})]}):null}var La=ce(bt(),1),Bt=ce(Ze(),1);function bM({collapsed:e,renderPart:t,itemKey:a}){let[n,r]=(0,La.useState)(!1),[o,i]=(0,La.useState)(!1),l=(0,La.useRef)(null),s=(0,La.useRef)(e.parts.length);(0,La.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,La.useCallback)(()=>{r(d=>!d)},[]),c=["chat-widget__collapsed",o?"chat-widget__collapsed--animating":""].filter(Boolean).join(" ");return(0,Bt.jsxs)("div",{className:c,children:[(0,Bt.jsx)("div",{className:`chat-widget__collapsed-content ${n?"chat-widget__collapsed-content--expanded":""}`,children:(0,Bt.jsx)("div",{ref:l,className:"chat-widget__collapsed-content-inner",children:e.parts.map((d,p)=>(0,Bt.jsx)("div",{children:t(d,`${a}-expanded-${p}`)},`${a}-expanded-${p}`))})}),(0,Bt.jsxs)("div",{className:`chat-widget__collapsed-preview ${n?"chat-widget__collapsed-preview--hidden":""}`,children:[t(e.lastPart,`${a}-preview`),(0,Bt.jsx)("div",{className:"chat-widget__collapsed-gradient"})]}),(0,Bt.jsx)("button",{type:"button",className:"chat-widget__collapsed-toggle",onClick:u,children:n?"Show less":"Show more"})]})}function OF(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 Kc({sections:e,messageId:t,renderPart:a,renderGroup:n}){let r=(0,La.useMemo)(()=>OF(e,t),[e,t]);return(0,Bt.jsx)(Bt.Fragment,{children:r.map(o=>{if(o.type==="collapsed")return(0,Bt.jsx)(bM,{collapsed:o.collapsed,renderPart:a,itemKey:o.key},o.key);if(o.type==="parts")return(0,Bt.jsx)(La.default.Fragment,{children:o.parts.map((i,l)=>(0,Bt.jsx)("div",{children:a(i,`${o.key}-part-${l}`)},`${o.key}-part-${l}`))},o.key);if(o.type==="group"){let i=(0,Bt.jsxs)(Bt.Fragment,{children:[o.collapsedParts&&(0,Bt.jsx)(bM,{collapsed:o.collapsedParts,renderPart:a,itemKey:`${o.key}-collapsed`}),o.currentParts.map((l,s)=>(0,Bt.jsx)("div",{children:a(l,`${o.key}-current-${s}`)},`${o.key}-current-${s}`))]});return n(o.groupName,o.key,i)}return null})})}var SM=ce(bt(),1),An=ce(Ze(),1);function Yc({sections:e,messageId:t,renderPart:a,renderGroup:n}){return(0,An.jsx)(An.Fragment,{children:e.map((r,o)=>{let i=`${t}-section-${o}`;if(r.type==="step")return(0,An.jsx)(SM.default.Fragment,{children:r.parts.map((l,s)=>(0,An.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,An.jsx)("div",{children:a(u,`${l}-part-${c}`)},`${l}-part-${c}`));return n(r.groupName,l,(0,An.jsx)(An.Fragment,{children:s}))}return null})})}var Dn=ce(bt(),1);function wM(e,t){let a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var RF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,UF={};function Wm(e,t){return((t||UF).jsx?PF:RF).test(e)}var NF=/[ \t\n\f\r]/g;function B_(e){return typeof e=="object"?e.type==="text"?_M(e.value):!1:_M(e)}function _M(e){return e.replace(NF,"")===""}var En=class{constructor(t,a,n){this.normal=a,this.property=t,n&&(this.space=n)}};En.prototype.normal={};En.prototype.property={};En.prototype.space=void 0;function F_(e,t){let a={},n={};for(let r of e)Object.assign(a,r.property),Object.assign(n,r.normal);return new En(a,n,t)}function Qc(e){return e.toLowerCase()}var Vt=class{constructor(t,a){this.attribute=a,this.property=t}};Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;var ed={};vr(ed,{boolean:()=>be,booleanish:()=>It,commaOrSpaceSeparated:()=>Ta,commaSeparated:()=>Ao,number:()=>G,overloadedBoolean:()=>Jm,spaceSeparated:()=>We});var jF=0,be=bi(),It=bi(),Jm=bi(),G=bi(),We=bi(),Ao=bi(),Ta=bi();function bi(){return 2**++jF}var q_=Object.keys(ed),Si=class extends Vt{constructor(t,a,n,r){let o=-1;if(super(t,a),IM(this,"space",r),typeof n=="number")for(;++o<q_.length;){let i=q_[o];IM(this,q_[o],(n&ed[i])===ed[i])}}};Si.prototype.defined=!0;function IM(e,t,a){a&&(e[t]=a)}function pr(e){let t={},a={};for(let[n,r]of Object.entries(e.properties)){let o=new Si(n,e.transform(e.attributes||{},n),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,a[Qc(n)]=n,a[Qc(o.attribute)]=n}return new En(t,a,e.space)}var Z_=pr({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:It,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:We,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:G,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:We,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:It,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xm(e,t){return t in e?e[t]:t}function Km(e,t){return Xm(e,t.toLowerCase())}var kM=pr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ao,acceptCharset:We,accessKey:We,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:We,autoFocus:be,autoPlay:be,blocking:We,capture:null,charSet:null,checked:be,cite:null,className:We,cols:G,colSpan:null,content:null,contentEditable:It,controls:be,controlsList:We,coords:G|Ao,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:Jm,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:We,height:G,hidden:Jm,high:G,href:null,hrefLang:null,htmlFor:We,httpEquiv:We,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:We,itemRef:We,itemScope:be,itemType:We,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,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:be,optimum:G,pattern:null,ping:We,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:We,required:be,reversed:be,rows:G,rowSpan:G,sandbox:We,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:It,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:We,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:Km});var CM=pr({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:Ta,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:We,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:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,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:Ao,g2:Ao,glyphName:Ao,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Ta,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,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:G,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:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:We,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ta,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ta,rev:Ta,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ta,requiredFeatures:Ta,requiredFonts:Ta,requiredFormats:Ta,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:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Ta,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ta,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ta,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xm});var H_=pr({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 V_=pr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Km});var G_=pr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var W_={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 BF=/[A-Z]/g,LM=/-[a-z]/g,FF=/^data[-\w.:]+$/i;function J_(e,t){let a=Qc(t),n=t,r=Vt;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&FF.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(LM,ZF);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!LM.test(o)){let i=o.replace(BF,qF);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}r=Si}return new r(n,t)}function qF(e){return"-"+e.toLowerCase()}function ZF(e){return e.charAt(1).toUpperCase()}var TM=F_([Z_,kM,H_,V_,G_],"html"),Ym=F_([Z_,CM,H_,V_,G_],"svg");function AM(e){return e.join(" ").trim()}var ZM=ce(jM(),1);var eh=BM("end"),Ts=BM("start");function BM(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 Y_(e){let t=Ts(e),a=eh(e);if(t&&a)return{start:t,end:a}}function Eo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?FM(e.position):"start"in e||"end"in e?FM(e):"line"in e||"column"in e?Q_(e):""}function Q_(e){return qM(e&&e.line)+":"+qM(e&&e.column)}function FM(e){return Q_(e&&e.start)+"-"+Q_(e&&e.end)}function qM(e){return e&&typeof e=="number"?e:1}var At=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=Eo(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}};At.prototype.file="";At.prototype.name="";At.prototype.reason="";At.prototype.message="";At.prototype.stack="";At.prototype.column=void 0;At.prototype.line=void 0;At.prototype.ancestors=void 0;At.prototype.cause=void 0;At.prototype.fatal=void 0;At.prototype.place=void 0;At.prototype.ruleId=void 0;At.prototype.source=void 0;var eI={}.hasOwnProperty,g5=new Map,v5=/[A-Z]/g,y5=new Set(["table","tbody","thead","tfoot","tr"]),x5=new Set(["td","th"]),HM="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tI(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=L5(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=C5(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"?Ym:TM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=VM(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function VM(e,t,a){if(t.type==="element")return b5(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return S5(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return _5(e,t,a);if(t.type==="mdxjsEsm")return w5(e,t);if(t.type==="root")return I5(e,t,a);if(t.type==="text")return k5(e,t)}function b5(e,t,a){let n=e.schema,r=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ym,e.schema=r),e.ancestors.push(t);let o=WM(e,t.tagName,!1),i=T5(e,t),l=rI(e,t);return y5.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!B_(s):!0})),GM(e,i,o,t),aI(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function S5(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)}ad(e,t.position)}function w5(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ad(e,t.position)}function _5(e,t,a){let n=e.schema,r=n;t.name==="svg"&&n.space==="html"&&(r=Ym,e.schema=r),e.ancestors.push(t);let o=t.name===null?e.Fragment:WM(e,t.name,!0),i=A5(e,t),l=rI(e,t);return GM(e,i,o,t),aI(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function I5(e,t,a){let n={};return aI(n,rI(e,t)),e.create(t,e.Fragment,n,a)}function k5(e,t){return t.value}function GM(e,t,a,n){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=n)}function aI(e,t){if(t.length>0){let a=t.length>1?t:t[0];a&&(e.children=a)}}function C5(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 L5(e,t){return a;function a(n,r,o,i){let l=Array.isArray(o.children),s=Ts(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 T5(e,t){let a={},n,r;for(r in t.properties)if(r!=="children"&&eI.call(t.properties,r)){let o=E5(e,r,t.properties[r]);if(o){let[i,l]=o;e.tableCellAlignToStyle&&i==="align"&&typeof l=="string"&&x5.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 A5(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 ad(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 ad(e,t.position);else o=n.value===null?!0:n.value;a[r]=o}return a}function rI(e,t){let a=[],n=-1,r=e.passKeys?new Map:g5;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=VM(e,o,i);l!==void 0&&a.push(l)}return a}function E5(e,t,a){let n=J_(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=n.commaSeparated?wM(a):AM(a)),n.property==="style"){let r=typeof a=="object"?a:$5(e,String(a));return e.stylePropertyNameCase==="css"&&(r=M5(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&n.space?W_[n.property]||n.property:n.attribute,a]}}function $5(e,t){try{return(0,ZM.default)(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let n=a,r=new At("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=HM+"#cannot-parse-style-attribute",r}}function WM(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=Wm(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=Wm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){let r=n.value;return eI.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(n);ad(e)}function ad(e,t){let a=new At("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=HM+"#cannot-handle-mdx-estrees-without-createevaluater",a}function M5(e){let t={},a;for(a in e)eI.call(e,a)&&(t[D5(a)]=e[a]);return t}function D5(e){let t=e.replace(v5,z5);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function z5(e){return"-"+e.toLowerCase()}var rd={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 Ds=ce(Ze(),1),bz=ce(bt(),1);var O5={};function _i(e,t){let a=t||O5,n=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,r=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return XM(e,n,r)}function XM(e,t,a){if(R5(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 JM(e.children,t,a)}return Array.isArray(e)?JM(e,t,a):""}function JM(e,t,a){let n=[],r=-1;for(;++r<e.length;)n[r]=XM(e[r],t,a);return n.join("")}function R5(e){return!!(e&&typeof e=="object")}var KM=document.createElement("i");function As(e){let t="&"+e+";";KM.innerHTML=t;let a=KM.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function Et(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 ga(e,t){return e.length>0?(Et(e,e.length,0,t),e):t}var YM={}.hasOwnProperty;function th(e){let t={},a=-1;for(;++a<e.length;)P5(t,e[a]);return t}function P5(e,t){let a;for(a in t){let r=(YM.call(e,a)?e[a]:void 0)||(e[a]={}),o=t[a],i;if(o)for(i in o){YM.call(r,i)||(r[i]=[]);let l=o[i];U5(r[i],Array.isArray(l)?l:l?[l]:[])}}}function U5(e,t){let a=-1,n=[];for(;++a<t.length;)(t[a].add==="after"?e:n).push(t[a]);Et(e,0,0,n)}function ah(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 ia(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ft=$o(/[A-Za-z]/),kt=$o(/[\dA-Za-z]/),QM=$o(/[#-'*+\--9=?A-Z^-~]/);function Ii(e){return e!==null&&(e<32||e===127)}var nd=$o(/\d/),eD=$o(/[\dA-Fa-f]/),tD=$o(/[!-/:-@[-`{-~]/);function ae(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 ki=$o(/\p{P}|\p{S}/u),Vr=$o(/\s/);function $o(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function mr(e){let t=[],a=-1,n=0,r=0;for(;++a<e.length;){let o=e.charCodeAt(a),i="";if(o===37&&kt(e.charCodeAt(a+1))&&kt(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 ue(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:N5};function N5(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"),ue(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 ae(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),i)}}var nD={tokenize:j5},rD={tokenize:B5};function j5(e){let t=this,a=[],n=0,r,o,i;return l;function l(g){if(n<a.length){let S=a[n];return t.containerState=S[1],e.attempt(S[0].continuation,s,u)(g)}return u(g)}function s(g){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();let S=t.events.length,L=S,y;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){y=t.events[L][1].end;break}h(n);let _=S;for(;_<t.events.length;)t.events[_][1].end={...y},_++;return Et(t.events,L+1,0,t.events.slice(S)),t.events.length=_,u(g)}return l(g)}function u(g){if(n===a.length){if(!r)return p(g);if(r.currentConstruct&&r.currentConstruct.concrete)return m(g);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rD,c,d)(g)}function c(g){return r&&x(),h(n),p(g)}function d(g){return t.parser.lazy[t.now().line]=n!==a.length,i=t.now().offset,m(g)}function p(g){return t.containerState={},e.attempt(rD,f,m)(g)}function f(g){return n++,a.push([t.currentConstruct,t.containerState]),p(g)}function m(g){if(g===null){r&&x(),h(0),e.consume(g);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),w(g)}function w(g){if(g===null){C(e.exit("chunkFlow"),!0),h(0),e.consume(g);return}return ae(g)?(e.consume(g),C(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(g),w)}function C(g,S){let L=t.sliceStream(g);if(S&&L.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(L),t.parser.lazy[g.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,b=_,T,I;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){if(T){I=t.events[b][1].end;break}T=!0}for(h(n),y=_;y<t.events.length;)t.events[y][1].end={...I},y++;Et(t.events,b+1,0,t.events.slice(_)),t.events.length=y}}function h(g){let S=a.length;for(;S-- >g;){let L=a[S];t.containerState=L[1],L[0].exit.call(t,e)}a.length=g}function x(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function B5(e,t,a){return ue(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $n(e){if(e===null||$e(e)||Vr(e))return 1;if(ki(e))return 2}function Mo(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 od={name:"attention",resolveAll:F5,tokenize:q5};function F5(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};oD(d,-s),oD(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=ga(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ga(u,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),u=ga(u,Mo(t.parser.constructs.insideSpan.null,e.slice(n+1,a),t)),u=ga(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=ga(u,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,Et(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 q5(e,t){let a=this.parser.constructs.attentionMarkers.null,n=this.previous,r=$n(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=$n(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 oD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var nI={name:"autolink",tokenize:Z5};function Z5(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 Ft(f)?(e.consume(f),i):f===64?a(f):u(f)}function i(f){return f===43||f===45||f===46||kt(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||kt(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||Ii(f)?a(f):(e.consume(f),s)}function u(f){return f===64?(e.consume(f),c):QM(f)?(e.consume(f),u):a(f)}function c(f){return kt(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||kt(f))&&n++<63){let m=f===45?p:d;return e.consume(f),m}return a(f)}}var Gr={partial:!0,tokenize:H5};function H5(e,t,a){return n;function n(o){return pe(o)?ue(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||ae(o)?t(o):a(o)}}var rh={continuation:{tokenize:G5},exit:W5,name:"blockQuote",tokenize:V5};function V5(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 G5(e,t,a){let n=this;return r;function r(i){return pe(i)?ue(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)}function o(i){return e.attempt(rh,t,a)(i)}}function W5(e){e.exit("blockQuote")}var nh={name:"characterEscape",tokenize:J5};function J5(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 tD(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(o)}}var oh={name:"characterReference",tokenize:X5};function X5(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=kt,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=eD,c):(e.enter("characterReferenceValue"),o=7,i=nd,c(d))}function c(d){if(d===59&&r){let p=e.exit("characterReferenceValue");return i===kt&&!As(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 iD={partial:!0,tokenize:Y5},ih={concrete:!0,name:"codeFenced",tokenize:K5};function K5(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)?ue(e,d,"whitespace")(y):d(y))}function d(y){return y===null||ae(y)?(e.exit("codeFencedFence"),n.interrupt?t(y):e.check(iD,w,S)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||ae(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(y)):pe(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ue(e,f,"whitespace")(y)):y===96&&y===l?a(y):(e.consume(y),p)}function f(y){return y===null||ae(y)?d(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||ae(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,S,C)(y)}function C(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h}function h(y){return o>0&&pe(y)?ue(e,x,"linePrefix",o+1)(y):x(y)}function x(y){return y===null||ae(y)?e.check(iD,w,S)(y):(e.enter("codeFlowValue"),g(y))}function g(y){return y===null||ae(y)?(e.exit("codeFlowValue"),x(y)):(e.consume(y),g)}function S(y){return e.exit("codeFenced"),t(y)}function L(y,_,b){let T=0;return I;function I(Q){return y.enter("lineEnding"),y.consume(Q),y.exit("lineEnding"),F}function F(Q){return y.enter("codeFencedFence"),pe(Q)?ue(y,O,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):O(Q)}function O(Q){return Q===l?(y.enter("codeFencedFenceSequence"),N(Q)):b(Q)}function N(Q){return Q===l?(T++,y.consume(Q),N):T>=i?(y.exit("codeFencedFenceSequence"),pe(Q)?ue(y,P,"whitespace")(Q):P(Q)):b(Q)}function P(Q){return Q===null||ae(Q)?(y.exit("codeFencedFence"),_(Q)):b(Q)}}}function Y5(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 id={name:"codeIndented",tokenize:eq},Q5={partial:!0,tokenize:tq};function eq(e,t,a){let n=this;return r;function r(u){return e.enter("codeIndented"),ue(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):ae(u)?e.attempt(Q5,i,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||ae(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function tq(e,t,a){let n=this;return r;function r(i){return n.parser.lazy[n.now().line]?a(i):ae(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):ue(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):ae(i)?r(i):a(i)}}var oI={name:"codeText",previous:rq,resolve:aq,tokenize:nq};function aq(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 rq(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nq(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)):ae(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||ae(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 lh=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&&ld(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),ld(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ld(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);ld(this.right,a.reverse())}else{let a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ld(this.left,a.reverse())}}};function ld(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 sh(e){let t={},a=-1,n,r,o,i,l,s,u,c=new lh(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,oq(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 Et(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function oq(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 h=l.slice(C[p],C[p+1]),x=o.pop();s.push([x,x+h.length-1]),e.splice(x,2,h)}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 iI={resolve:lq,tokenize:sq},iq={partial:!0,tokenize:uq};function lq(e){return sh(e),e}function sq(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):ae(l)?e.check(iq,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 uq(e,t,a){let n=this;return r;function r(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ue(e,o,"linePrefix")}function o(i){if(i===null||ae(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 uh(e,t,a,n,r,o,i,l,s){let u=s||Number.POSITIVE_INFINITY,c=0;return d;function d(h){return h===60?(e.enter(n),e.enter(r),e.enter(o),e.consume(h),e.exit(o),p):h===null||h===32||h===41||Ii(h)?a(h):(e.enter(n),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(h))}function p(h){return h===62?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(l),p(h)):h===null||h===60||ae(h)?a(h):(e.consume(h),h===92?m:f)}function m(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function w(h){return!c&&(h===null||h===41||$e(h))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(n),t(h)):c<u&&h===40?(e.consume(h),c++,w):h===41?(e.consume(h),c--,w):h===null||h===32||h===40||Ii(h)?a(h):(e.consume(h),h===92?C:w)}function C(h){return h===40||h===41||h===92?(e.consume(h),w):w(h)}}function ch(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):ae(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||ae(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 dh(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):ae(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ue(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===i||p===null||ae(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 Ci(e,t){let a;return n;function n(r){return ae(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a=!0,n):pe(r)?ue(e,n,a?"linePrefix":"lineSuffix")(r):t(r)}}var lI={name:"definition",tokenize:dq},cq={partial:!0,tokenize:fq};function dq(e,t,a){let n=this,r;return o;function o(f){return e.enter("definition"),i(f)}function i(f){return ch.call(n,e,l,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function l(f){return r=ia(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)?Ci(e,u)(f):u(f)}function u(f){return uh(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(cq,d,d)(f)}function d(f){return pe(f)?ue(e,p,"whitespace")(f):p(f)}function p(f){return f===null||ae(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)?Ci(e,r)(l):a(l)}function r(l){return dh(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return pe(l)?ue(e,i,"whitespace")(l):i(l)}function i(l){return l===null||ae(l)?t(l):a(l)}}var sI={name:"hardBreakEscape",tokenize:pq};function pq(e,t,a){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return ae(o)?(e.exit("hardBreakEscape"),t(o)):a(o)}}var uI={name:"headingAtx",resolve:mq,tokenize:hq};function mq(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"},Et(e,n,a-n+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function hq(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||ae(c)?(e.exit("atxHeading"),t(c)):pe(c)?ue(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 lD=["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"],cI=["pre","script","style","textarea"];var dI={concrete:!0,name:"htmlFlow",resolveTo:yq,tokenize:xq},gq={partial:!0,tokenize:Sq},vq={partial:!0,tokenize:bq};function yq(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 xq(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:$):Ft(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):Ft(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 ye="CDATA[";return E===ye.charCodeAt(l++)?(e.consume(E),l===ye.length?n.interrupt?t:O:m):a(E)}function w(E){return Ft(E)?(e.consume(E),i=String.fromCharCode(E),C):a(E)}function C(E){if(E===null||E===47||E===62||$e(E)){let ye=E===47,Ut=i.toLowerCase();return!ye&&!o&&cI.includes(Ut)?(r=1,n.interrupt?t(E):O(E)):lD.includes(i.toLowerCase())?(r=6,ye?(e.consume(E),h):n.interrupt?t(E):O(E)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?a(E):o?x(E):g(E))}return E===45||kt(E)?(e.consume(E),i+=String.fromCharCode(E),C):a(E)}function h(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 g(E){return E===47?(e.consume(E),I):E===58||E===95||Ft(E)?(e.consume(E),S):pe(E)?(e.consume(E),g):I(E)}function S(E){return E===45||E===46||E===58||E===95||kt(E)?(e.consume(E),S):L(E)}function L(E){return E===61?(e.consume(E),y):pe(E)?(e.consume(E),L):g(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):b(E)}function _(E){return E===s?(e.consume(E),s=null,T):E===null||ae(E)?a(E):(e.consume(E),_)}function b(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),b)}function T(E){return E===47||E===62||pe(E)?g(E):a(E)}function I(E){return E===62?(e.consume(E),F):a(E)}function F(E){return E===null||ae(E)?O(E):pe(E)?(e.consume(E),F):a(E)}function O(E){return E===45&&r===2?(e.consume(E),oe):E===60&&r===1?(e.consume(E),le):E===62&&r===4?(e.consume(E),fe):E===63&&r===3?(e.consume(E),$):E===93&&r===5?(e.consume(E),Ee):ae(E)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(gq,xt,N)(E)):E===null||ae(E)?(e.exit("htmlFlowData"),N(E)):(e.consume(E),O)}function N(E){return e.check(vq,P,xt)(E)}function P(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Q}function Q(E){return E===null||ae(E)?N(E):(e.enter("htmlFlowData"),O(E))}function oe(E){return E===45?(e.consume(E),$):O(E)}function le(E){return E===47?(e.consume(E),i="",de):O(E)}function de(E){if(E===62){let ye=i.toLowerCase();return cI.includes(ye)?(e.consume(E),fe):O(E)}return Ft(E)&&i.length<8?(e.consume(E),i+=String.fromCharCode(E),de):O(E)}function Ee(E){return E===93?(e.consume(E),$):O(E)}function $(E){return E===62?(e.consume(E),fe):E===45&&r===2?(e.consume(E),$):O(E)}function fe(E){return E===null||ae(E)?(e.exit("htmlFlowData"),xt(E)):(e.consume(E),fe)}function xt(E){return e.exit("htmlFlow"),t(E)}}function bq(e,t,a){let n=this;return r;function r(i){return ae(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 Sq(e,t,a){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Gr,t,a)}}var fI={name:"htmlText",tokenize:wq};function wq(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($),g):Ft($)?(e.consume($),b):a($)}function u($){return $===45?(e.consume($),c):$===91?(e.consume($),o=0,m):Ft($)?(e.consume($),x):a($)}function c($){return $===45?(e.consume($),f):a($)}function d($){return $===null?a($):$===45?(e.consume($),p):ae($)?(i=d,le($)):(e.consume($),d)}function p($){return $===45?(e.consume($),f):d($)}function f($){return $===62?oe($):$===45?p($):d($)}function m($){let fe="CDATA[";return $===fe.charCodeAt(o++)?(e.consume($),o===fe.length?w:m):a($)}function w($){return $===null?a($):$===93?(e.consume($),C):ae($)?(i=w,le($)):(e.consume($),w)}function C($){return $===93?(e.consume($),h):w($)}function h($){return $===62?oe($):$===93?(e.consume($),h):w($)}function x($){return $===null||$===62?oe($):ae($)?(i=x,le($)):(e.consume($),x)}function g($){return $===null?a($):$===63?(e.consume($),S):ae($)?(i=g,le($)):(e.consume($),g)}function S($){return $===62?oe($):g($)}function L($){return Ft($)?(e.consume($),y):a($)}function y($){return $===45||kt($)?(e.consume($),y):_($)}function _($){return ae($)?(i=_,le($)):pe($)?(e.consume($),_):oe($)}function b($){return $===45||kt($)?(e.consume($),b):$===47||$===62||$e($)?T($):a($)}function T($){return $===47?(e.consume($),oe):$===58||$===95||Ft($)?(e.consume($),I):ae($)?(i=T,le($)):pe($)?(e.consume($),T):oe($)}function I($){return $===45||$===46||$===58||$===95||kt($)?(e.consume($),I):F($)}function F($){return $===61?(e.consume($),O):ae($)?(i=F,le($)):pe($)?(e.consume($),F):T($)}function O($){return $===null||$===60||$===61||$===62||$===96?a($):$===34||$===39?(e.consume($),r=$,N):ae($)?(i=O,le($)):pe($)?(e.consume($),O):(e.consume($),P)}function N($){return $===r?(e.consume($),r=void 0,Q):$===null?a($):ae($)?(i=N,le($)):(e.consume($),N)}function P($){return $===null||$===34||$===39||$===60||$===61||$===96?a($):$===47||$===62||$e($)?T($):(e.consume($),P)}function Q($){return $===47||$===62||$e($)?T($):a($)}function oe($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):a($)}function le($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),de}function de($){return pe($)?ue(e,Ee,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):Ee($)}function Ee($){return e.enter("htmlTextData"),i($)}}var Li={name:"labelEnd",resolveAll:Cq,resolveTo:Lq,tokenize:Tq},_q={tokenize:Aq},Iq={tokenize:Eq},kq={tokenize:$q};function Cq(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&&Et(e,0,e.length,a),e}function Lq(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=ga(l,e.slice(o+1,o+n+3)),l=ga(l,[["enter",c,t]]),l=ga(l,Mo(t.parser.constructs.insideSpan.null,e.slice(o+n+4,i-3),t)),l=ga(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=ga(l,e.slice(i+1)),l=ga(l,[["exit",s,t]]),Et(e,o,e.length,l),e}function Tq(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(ia(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(_q,c,i?c:d)(p):p===91?e.attempt(Iq,c,i?u:d)(p):i?c(p):d(p)}function u(p){return e.attempt(kq,c,d)(p)}function c(p){return t(p)}function d(p){return o._balanced=!0,a(p)}}function Aq(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)?Ci(e,o)(d):o(d)}function o(d){return d===41?c(d):uh(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return $e(d)?Ci(e,s)(d):c(d)}function l(d){return a(d)}function s(d){return d===34||d===39||d===40?dh(e,u,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return $e(d)?Ci(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 Eq(e,t,a){let n=this;return r;function r(l){return ch.call(n,e,o,i,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(ia(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):a(l)}function i(l){return a(l)}}function $q(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 pI={name:"labelStartImage",resolveAll:Li.resolveAll,tokenize:Mq};function Mq(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 mI={name:"labelStartLink",resolveAll:Li.resolveAll,tokenize:Dq};function Dq(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:zq};function zq(e,t){return a;function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ue(e,t,"linePrefix")}}var Ti={name:"thematicBreak",tokenize:Oq};function Oq(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||ae(u))?(e.exit("thematicBreak"),t(u)):a(u)}function s(u){return u===r?(e.consume(u),n++,s):(e.exit("thematicBreakSequence"),pe(u)?ue(e,l,"whitespace")(u):l(u))}}var la={continuation:{tokenize:Nq},exit:Bq,name:"list",tokenize:Uq},Rq={partial:!0,tokenize:Fq},Pq={partial:!0,tokenize:jq};function Uq(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:nd(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(Ti,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 nd(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(Gr,n.interrupt?a:c,e.attempt(Rq,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 Nq(e,t,a){let n=this;return n.containerState._closeFlow=void 0,e.check(Gr,r,o);function r(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ue(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(Pq,t,i)(l))}function i(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,ue(e,e.attempt(la,t,a),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function jq(e,t,a){let n=this;return ue(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 Bq(e){e.exit(this.containerState.type)}function Fq(e,t,a){let n=this;return ue(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 fh={name:"setextUnderline",resolveTo:qq,tokenize:Zq};function qq(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 Zq(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)?ue(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||ae(u)?(e.exit("setextHeadingLine"),t(u)):a(u)}}var sD={tokenize:Hq};function Hq(e){let t=this,a=e.attempt(Gr,n,e.attempt(this.parser.constructs.flowInitial,r,ue(e,e.attempt(this.parser.constructs.flow,r,e.attempt(iI,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 uD={resolveAll:pD()},cD=fD("string"),dD=fD("text");function fD(e){return{resolveAll:pD(e==="text"?Vq: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 pD(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 Vq(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 hI={};vr(hI,{attentionMarkers:()=>e9,contentInitial:()=>Wq,disable:()=>t9,document:()=>Gq,flow:()=>Xq,flowInitial:()=>Jq,insideSpan:()=>Qq,string:()=>Kq,text:()=>Yq});var Gq={42:la,43:la,45:la,48:la,49:la,50:la,51:la,52:la,53:la,54:la,55:la,56:la,57:la,62:rh},Wq={91:lI},Jq={[-2]:id,[-1]:id,32:id},Xq={35:uI,42:Ti,45:[fh,Ti],60:dI,61:fh,95:Ti,96:ih,126:ih},Kq={38:oh,92:nh},Yq={[-5]:sd,[-4]:sd,[-3]:sd,33:pI,38:oh,42:od,60:[nI,fI],91:mI,92:[sI,nh],93:Li,95:od,96:oI},Qq={null:[od,uD]},e9={null:[42,95]},t9={null:[]};function mD(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(b),consume:S,enter:L,exit:y,interrupt:T(b,{interrupt:!0})},c={code:null,containerState:{},defineSkip:h,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(N){return i=ga(i,N),x(),i[i.length-1]!==null?[]:(I(t,0),c.events=Mo(o,c.events,c),c.events)}function m(N,P){return r9(w(N),P)}function w(N){return a9(i,N)}function C(){let{_bufferIndex:N,_index:P,line:Q,column:oe,offset:le}=n;return{_bufferIndex:N,_index:P,line:Q,column:oe,offset:le}}function h(N){r[N.line]=N.column,O()}function x(){let N;for(;n._index<i.length;){let P=i[n._index];if(typeof P=="string")for(N=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===N&&n._bufferIndex<P.length;)g(P.charCodeAt(n._bufferIndex));else g(P)}}function g(N){s=void 0,p=N,d=d(N)}function S(N){ae(N)?(n.line++,n.column=1,n.offset+=N===-3?2:1,O()):N!==-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=N,s=!0}function L(N,P){let Q=P||{};return Q.type=N,Q.start=C(),c.events.push(["enter",Q,c]),l.push(Q),Q}function y(N){let P=l.pop();return P.end=C(),c.events.push(["exit",P,c]),P}function _(N,P){I(N,P.from)}function b(N,P){P.restore()}function T(N,P){return Q;function Q(oe,le,de){let Ee,$,fe,xt;return Array.isArray(oe)?ye(oe):"tokenize"in oe?ye([oe]):E(oe);function E(A){return M;function M(U){let B=U!==null&&A[U],Y=U!==null&&A.null,Ie=[...Array.isArray(B)?B:B?[B]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return ye(Ie)(U)}}function ye(A){return Ee=A,$=0,A.length===0?de:Ut(A[$])}function Ut(A){return M;function M(U){return xt=F(),fe=A,A.partial||(c.currentConstruct=A),A.name&&c.parser.constructs.disable.null.includes(A.name)?k(U):A.tokenize.call(P?Object.assign(Object.create(c),P):c,u,K,k)(U)}}function K(A){return s=!0,N(fe,xt),le}function k(A){return s=!0,xt.restore(),++$<Ee.length?Ut(Ee[$]):de}}}function I(N,P){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&Et(c.events,P,c.events.length-P,N.resolve(c.events.slice(P),c)),N.resolveTo&&(c.events=N.resolveTo(c.events,c))}function F(){let N=C(),P=c.previous,Q=c.currentConstruct,oe=c.events.length,le=Array.from(l);return{from:oe,restore:de};function de(){n=N,c.previous=P,c.currentConstruct=Q,c.events.length=oe,l=le,O()}}function O(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}function a9(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 r9(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=`
|
|
71
|
+
`;break}case-3:{i=`\r
|
|
72
|
+
`;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 gI(e){let n={constructs:th([hI,...(e||{}).extensions||[]]),content:r(aD),defined:[],document:r(nD),flow:r(sD),lazy:{},string:r(cD),text:r(dD)};return n;function r(o){return i;function i(l){return mD(n,o,l)}}}function vI(e){for(;!sh(e););return e}var hD=/[\0\t\n\r]/g;function yI(){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(hD.lastIndex=d,u=hD.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 n9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gD(e){return e.replace(n9,o9)}function o9(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){let r=a.charCodeAt(1),o=r===120||r===88;return ah(a.slice(o?2:1),o?16:10)}return As(a)||e}var yD={}.hasOwnProperty;function xI(e,t,a){return t&&typeof t=="object"&&(a=t,t=void 0),i9(a)(vI(gI(a).document().write(yI()(e,t,!0))))}function i9(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(vt),autolinkProtocol:T,autolinkEmail:T,atxHeading:o(pt),blockQuote:o(U),characterEscape:T,characterReference:T,codeFenced:o(B),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(B,i),codeText:o(Y,i),codeTextData:T,data:T,codeFlowValue:T,definition:o(Ie),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(rt),hardBreakEscape:o(aa),hardBreakTrailing:o(aa),htmlFlow:o(Ct,i),htmlFlowData:T,htmlText:o(Ct,i),htmlTextData:T,image:o($t),label:i,link:o(vt),listItem:o(Ja),listItemValue:p,listOrdered:o(nt,d),listUnordered:o(nt),paragraph:o(Oi),reference:E,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(pt),strong:o(Dh),thematicBreak:o(Ce)},exit:{atxHeading:s(),atxHeadingSequence:L,autolink:s(),autolinkEmail:M,autolinkProtocol:A,blockQuote:s(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:Ut,characterReferenceMarkerNumeric:Ut,characterReferenceValue:K,characterReference:k,codeFenced:s(C),codeFencedFence:w,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:I,codeIndented:s(h),codeText:s(Q),codeTextData:I,data:I,definition:s(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(O),hardBreakTrailing:s(O),htmlFlow:s(N),htmlFlowData:I,htmlText:s(P),htmlTextData:I,image:s(le),label:Ee,labelText:de,lineEnding:F,link:s(oe),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ye,resourceDestinationString:$,resourceTitleString:fe,resource:xt,setextHeading:s(b),setextHeadingLineSequence:_,setextHeadingText:y,strong:s(),thematicBreak:s()}};xD(t,(e||{}).mdastExtensions||[]);let a={};return n;function n(R){let W={type:"root",children:[]},me={stack:[W],tokenStack:[],config:t,enter:l,exit:u,buffer:i,resume:c,data:a},Le=[],Ne=-1;for(;++Ne<R.length;)if(R[Ne][1].type==="listOrdered"||R[Ne][1].type==="listUnordered")if(R[Ne][0]==="enter")Le.push(Ne);else{let gr=Le.pop();Ne=r(R,gr,Ne)}for(Ne=-1;++Ne<R.length;){let gr=t[R[Ne][0]];yD.call(gr,R[Ne][1].type)&&gr[R[Ne][1].type].call(Object.assign({sliceSerialize:R[Ne][2].sliceSerialize},me),R[Ne][1])}if(me.tokenStack.length>0){let gr=me.tokenStack[me.tokenStack.length-1];(gr[1]||vD).call(me,void 0,gr[0])}for(W.position={start:Do(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:Do(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},Ne=-1;++Ne<t.transforms.length;)W=t.transforms[Ne](W)||W;return W}function r(R,W,me){let Le=W-1,Ne=-1,gr=!1,Po,Jr,js,Bs;for(;++Le<=me;){let Ea=R[Le];switch(Ea[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ea[0]==="enter"?Ne++:Ne--,Bs=void 0;break}case"lineEndingBlank":{Ea[0]==="enter"&&(Po&&!Bs&&!Ne&&!js&&(js=Le),Bs=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bs=void 0}if(!Ne&&Ea[0]==="enter"&&Ea[1].type==="listItemPrefix"||Ne===-1&&Ea[0]==="exit"&&(Ea[1].type==="listUnordered"||Ea[1].type==="listOrdered")){if(Po){let Ri=Le;for(Jr=void 0;Ri--;){let Xr=R[Ri];if(Xr[1].type==="lineEnding"||Xr[1].type==="lineEndingBlank"){if(Xr[0]==="exit")continue;Jr&&(R[Jr][1].type="lineEndingBlank",gr=!0),Xr[1].type="lineEnding",Jr=Ri}else if(!(Xr[1].type==="linePrefix"||Xr[1].type==="blockQuotePrefix"||Xr[1].type==="blockQuotePrefixWhitespace"||Xr[1].type==="blockQuoteMarker"||Xr[1].type==="listItemIndent"))break}js&&(!Jr||js<Jr)&&(Po._spread=!0),Po.end=Object.assign({},Jr?R[Jr][1].start:Ea[1].end),R.splice(Jr||Le,0,["exit",Po,Ea[2]]),Le++,me++}if(Ea[1].type==="listItemPrefix"){let Ri={type:"listItem",_spread:!1,start:Object.assign({},Ea[1].start),end:void 0};Po=Ri,R.splice(Le,0,["enter",Ri,Ea[2]]),Le++,me++,js=void 0,Bs=!0}}}return R[W][1]._spread=gr,me}function o(R,W){return me;function me(Le){l.call(this,R(Le),Le),W&&W.call(this,Le)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(R,W,me){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([W,me||void 0]),R.position={start:Do(W.start),end:void 0}}function s(R){return W;function W(me){R&&R.call(this,me),u.call(this,me)}}function u(R,W){let me=this.stack.pop(),Le=this.tokenStack.pop();if(Le)Le[0].type!==R.type&&(W?W.call(this,R,Le[0]):(Le[1]||vD).call(this,R,Le[0]));else throw new Error("Cannot close `"+R.type+"` ("+Eo({start:R.start,end:R.end})+"): it\u2019s not open");me.position.end=Do(R.end)}function c(){return _i(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(R){if(this.data.expectingFirstListItemValue){let W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function f(){let R=this.resume(),W=this.stack[this.stack.length-1];W.lang=R}function m(){let R=this.resume(),W=this.stack[this.stack.length-1];W.meta=R}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){let R=this.resume(),W=this.stack[this.stack.length-1];W.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){let R=this.resume(),W=this.stack[this.stack.length-1];W.value=R.replace(/(\r?\n|\r)$/g,"")}function x(R){let W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=ia(this.sliceSerialize(R)).toLowerCase()}function g(){let R=this.resume(),W=this.stack[this.stack.length-1];W.title=R}function S(){let R=this.resume(),W=this.stack[this.stack.length-1];W.url=R}function L(R){let W=this.stack[this.stack.length-1];if(!W.depth){let me=this.sliceSerialize(R).length;W.depth=me}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function _(R){let W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function b(){this.data.setextHeadingSlurpLineEnding=void 0}function T(R){let me=this.stack[this.stack.length-1].children,Le=me[me.length-1];(!Le||Le.type!=="text")&&(Le=Ns(),Le.position={start:Do(R.start),end:void 0},me.push(Le)),this.stack.push(Le)}function I(R){let W=this.stack.pop();W.value+=this.sliceSerialize(R),W.position.end=Do(R.end)}function F(R){let W=this.stack[this.stack.length-1];if(this.data.atHardBreak){let me=W.children[W.children.length-1];me.position.end=Do(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(T.call(this,R),I.call(this,R))}function O(){this.data.atHardBreak=!0}function N(){let R=this.resume(),W=this.stack[this.stack.length-1];W.value=R}function P(){let R=this.resume(),W=this.stack[this.stack.length-1];W.value=R}function Q(){let R=this.resume(),W=this.stack[this.stack.length-1];W.value=R}function oe(){let R=this.stack[this.stack.length-1];if(this.data.inReference){let W=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=W,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function le(){let R=this.stack[this.stack.length-1];if(this.data.inReference){let W=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=W,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function de(R){let W=this.sliceSerialize(R),me=this.stack[this.stack.length-2];me.label=gD(W),me.identifier=ia(W).toLowerCase()}function Ee(){let R=this.stack[this.stack.length-1],W=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){let Le=R.children;me.children=Le}else me.alt=W}function $(){let R=this.resume(),W=this.stack[this.stack.length-1];W.url=R}function fe(){let R=this.resume(),W=this.stack[this.stack.length-1];W.title=R}function xt(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ye(R){let W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=ia(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function Ut(R){this.data.characterReferenceType=R.type}function K(R){let W=this.sliceSerialize(R),me=this.data.characterReferenceType,Le;me?(Le=ah(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Le=As(W);let Ne=this.stack[this.stack.length-1];Ne.value+=Le}function k(R){let W=this.stack.pop();W.position.end=Do(R.end)}function A(R){I.call(this,R);let W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(R)}function M(R){I.call(this,R);let W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(R)}function U(){return{type:"blockquote",children:[]}}function B(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function Ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rt(){return{type:"emphasis",children:[]}}function pt(){return{type:"heading",depth:0,children:[]}}function aa(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function $t(){return{type:"image",title:null,url:"",alt:null}}function vt(){return{type:"link",title:null,url:"",children:[]}}function nt(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function Ja(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function Oi(){return{type:"paragraph",children:[]}}function Dh(){return{type:"strong",children:[]}}function Ns(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function Do(e){return{line:e.line,column:e.column,offset:e.offset}}function xD(e,t){let a=-1;for(;++a<t.length;){let n=t[a];Array.isArray(n)?xD(e,n):l9(e,n)}}function l9(e,t){let a;for(a in t)if(yD.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 vD(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Eo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Eo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Eo({start:t.start,end:t.end})+") is still open")}function ph(e){let t=this;t.parser=a;function a(n){return xI(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function bD(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 SD(e,t){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
73
|
+
`}]}function wD(e,t){let a=t.value?t.value+`
|
|
74
|
+
`:"",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 _D(e,t){let a={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ID(e,t){let a={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function kD(e,t){let a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),r=mr(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 CD(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 LD(e,t){if(e.options.allowDangerousHtml){let a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function mh(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 TD(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return mh(e,t);let r={src:mr(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 AD(e,t){let a={src:mr(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 ED(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 $D(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return mh(e,t);let r={href:mr(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 MD(e,t){let a={href:mr(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 DD(e,t,a){let n=e.all(t),r=a?s9(a):zD(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:`
|
|
75
|
+
`}),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:`
|
|
76
|
+
`});let u={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,u),e.applyData(t,u)}function s9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let a=e.children,n=-1;for(;!t&&++n<a.length;)t=zD(a[n])}return t}function zD(e){let t=e.spread;return t??e.children.length>1}function OD(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 RD(e,t){let a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function PD(e,t){let a={type:"root",children:e.wrap(e.all(t))};return e.patch(t,a),e.applyData(t,a)}function UD(e,t){let a={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ND(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=Ts(t.children[1]),s=eh(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 jD(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 BD(e,t){let a={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function qD(e){let t=String(e),a=/\r?\n|\r/g,n=a.exec(t),r=0,o=[];for(;n;)o.push(FD(t.slice(r,n.index),r>0,!0),n[0]),r=n.index+n[0].length,n=a.exec(t);return o.push(FD(t.slice(r),r>0,!1)),o.join("")}function FD(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 ZD(e,t){let a={type:"text",value:qD(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function HD(e,t){let a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}var VD={blockquote:bD,break:SD,code:wD,delete:_D,emphasis:ID,footnoteReference:kD,heading:CD,html:LD,imageReference:TD,image:AD,inlineCode:ED,linkReference:$D,link:MD,listItem:DD,list:OD,paragraph:RD,root:PD,strong:UD,table:ND,tableCell:BD,tableRow:jD,text:ZD,thematicBreak:HD,toml:hh,yaml:hh,definition:hh,footnoteDefinition:hh};function hh(){}var GD=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 GD[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 GD[o](i),r)};return n},wI=e=>f9(new Map,e)(0);var Es="",{toString:p9}={},{keys:m9}=Object,ud=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let a=p9.call(e).slice(8,-1);switch(a){case"Array":return[1,Es];case"Object":return[2,Es];case"Date":return[3,Es];case"RegExp":return[4,Es];case"Map":return[5,Es];case"Set":return[6,Es];case"DataView":return[1,a]}return a.includes("Array")?[1,a]:a.includes("Error")?[7,a]:[2,a]},vh=([e,t])=>e===0&&(t==="function"||t==="symbol"),h9=(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]=ud(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 m9(i))(e||!vh(ud(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||!(vh(ud(p))||vh(ud(f))))&&c.push([o(p),o(f)]);return d}case 6:{let c=[],d=r([l,c],i);for(let p of i)(e||!vh(ud(p)))&&c.push(o(p));return d}}let{message:u}=i;return r([l,{name:s,message:u}],i)};return o},_I=(e,{json:t,lossy:a}={})=>{let n=[];return h9(!(t||a),!!t,new Map,n)(e),n};var $s=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wI(_I(e,t)):structuredClone(e):(e,t)=>wI(_I(e,t));function g9(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 v9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YD(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||g9,n=e.options.footnoteBackLabel||v9,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=mr(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 h={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,h),l.push(h)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...$s(i),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
77
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
78
|
+
`}]}}var zo=(function(e){if(e==null)return S9;if(typeof e=="function")return yh(e);if(typeof e=="object")return Array.isArray(e)?y9(e):x9(e);if(typeof e=="string")return b9(e);throw new Error("Expected function, string, or object as test")});function y9(e){let t=[],a=-1;for(;++a<e.length;)t[a]=zo(e[a]);return yh(n);function n(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function x9(e){let t=e;return yh(a);function a(n){let r=n,o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function b9(e){return yh(t);function t(a){return a&&a.type===e}}function yh(e){return t;function t(a,n,r){return!!(w9(a)&&e.call(this,a,typeof n=="number"?n:void 0,r||void 0))}}function S9(){return!0}function w9(e){return e!==null&&typeof e=="object"&&"type"in e}var QD=[],xh=!0,Ai=!1,bh="skip";function cd(e,t,a,n){let r;typeof t=="function"&&typeof a!="function"?(n=a,a=t):r=t;let o=zo(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=QD,m,w,C;if((!t||o(s,u,c[c.length-1]||void 0))&&(f=_9(a(s,c)),f[0]===Ai))return f;if("children"in s&&s.children){let h=s;if(h.children&&f[0]!==bh)for(w=(n?h.children.length:-1)+i,C=c.concat(h);w>-1&&w<h.children.length;){let x=h.children[w];if(m=l(x,w,C)(),m[0]===Ai)return m;w=typeof m[1]=="number"?m[1]:w+i}}return f}}}function _9(e){return Array.isArray(e)?e:typeof e=="number"?[xh,e]:e==null?QD:[e]}function Ei(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),cd(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 II={}.hasOwnProperty,I9={};function tz(e,t){let a=t||I9,n=new Map,r=new Map,o=new Map,i={...VD,...a.handlers},l={all:u,applyData:C9,definitionById:n,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:i,one:s,options:a,patch:k9,wrap:T9};return Ei(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(II.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,h=$s(C);return h.children=l.all(c),h}return $s(c)}return(l.options.unknownHandler||L9)(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=ez(m.value)),!Array.isArray(m)&&m.type==="element")){let w=m.children[0];w&&w.type==="text"&&(w.value=ez(w.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function k9(e,t){e.position&&(t.position=Y_(e))}function C9(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,$s(o)),"children"in a&&a.children&&r!==null&&r!==void 0&&(a.children=r)}return a}function L9(e,t){let a=t.data||{},n="value"in t&&!(II.call(a,"hProperties")||II.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 T9(e,t){let a=[],n=-1;for(t&&a.push({type:"text",value:`
|
|
79
|
+
`});++n<e.length;)n&&a.push({type:"text",value:`
|
|
80
|
+
`}),a.push(e[n]);return t&&e.length>0&&a.push({type:"text",value:`
|
|
81
|
+
`}),a}function ez(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function Sh(e,t){let a=tz(e,t),n=a.one(e,void 0),r=YD(a),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return r&&("children"in o,o.children.push({type:"text",value:`
|
|
82
|
+
`},r)),o}function wh(e,t){return e&&"run"in e?async function(a,n){let r=Sh(a,{file:n,...t});await e.run(r,n)}:function(a,n){return Sh(a,{file:n,...e||t})}}function kI(e){if(e)throw e}var kh=ce(cz(),1);function dd(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 CI(){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?dz(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 dz(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 Tr={basename:A9,dirname:E9,extname:$9,join:M9,sep:"/"};function A9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fd(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 E9(e){if(fd(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 $9(e){fd(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 M9(...e){let t=-1,a;for(;++t<e.length;)fd(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":D9(a)}function D9(e){fd(e);let t=e.codePointAt(0)===47,a=z9(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function z9(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 fd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var fz={cwd:O9};function O9(){return"/"}function Ms(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pz(e){if(typeof e=="string")e=new URL(e);else if(!Ms(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 R9(e)}function R9(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 LI=["history","path","basename","stem","extname","dirname"],$i=class{constructor(t){let a;t?Ms(t)?a={path:t}:typeof t=="string"||P9(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":fz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<LI.length;){let o=LI[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)LI.includes(r)||(this[r]=a[r])}get basename(){return typeof this.path=="string"?Tr.basename(this.path):void 0}set basename(t){AI(t,"basename"),TI(t,"basename"),this.path=Tr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tr.dirname(this.path):void 0}set dirname(t){mz(this.basename,"dirname"),this.path=Tr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tr.extname(this.path):void 0}set extname(t){if(TI(t,"extname"),mz(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=Tr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ms(t)&&(t=pz(t)),AI(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tr.basename(this.path,this.extname):void 0}set stem(t){AI(t,"stem"),TI(t,"stem"),this.path=Tr.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 At(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 TI(e,t){if(e&&e.includes(Tr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tr.sep+"`")}function AI(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function mz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function P9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var hz=(function(e){let n=this.constructor.prototype,r=n[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,n),o});var U9={}.hasOwnProperty,DI=class e extends hz{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=CI()}copy(){let t=new e,a=-1;for(;++a<this.attachers.length;){let n=this.attachers[a];t.use(...n)}return t.data((0,kh.default)(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(MI("data",this.frozen),this.namespace[t]=a,this):U9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(MI("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=Ih(t),n=this.parser||this.Parser;return EI("parse",n),n(String(a),a)}process(t,a){let n=this;return this.freeze(),EI("process",this.parser||this.Parser),$I("process",this.compiler||this.Compiler),a?r(void 0,a):new Promise(r);function r(o,i){let l=Ih(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);j9(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(),EI("processSync",this.parser||this.Parser),$I("processSync",this.compiler||this.Compiler),this.process(t,r),vz("processSync","process",a),n;function r(o,i){a=!0,kI(o),n=i}}run(t,a,n){gz(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=Ih(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),vz("runSync","run",n),r;function o(i,l){kI(i),r=l,n=!0}}stringify(t,a){this.freeze();let n=Ih(a),r=this.compiler||this.Compiler;return $I("stringify",r),gz(t),r(t,n)}use(t,...a){let n=this.attachers,r=this.namespace;if(MI("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,kh.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];dd(w)&&dd(f)&&(f=(0,kh.default)(!0,w,f)),n[p]=[u,f,...m]}}}},zI=new DI().freeze();function EI(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $I(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function MI(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 gz(e){if(!dd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vz(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ih(e){return N9(e)?e:new $i(e)}function N9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function j9(e){return typeof e=="string"||B9(e)}function B9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var F9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yz=[],xz={allowDangerousHtml:!0},q9=/^(https?|ircs?|mailto|xmpp)$/i,Z9=[{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 OI(e){let t=H9(e),a=V9(e);return G9(t.runSync(t.parse(a),a),e)}function H9(e){let t=e.rehypePlugins||yz,a=e.remarkPlugins||yz,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xz}:xz;return zI().use(ph).use(a).use(wh,n).use(t)}function V9(e){let t=e.children||"",a=new $i;return typeof t=="string"?a.value=t:(""+t,void 0),a}function G9(e,t){let a=t.allowedElements,n=t.allowElement,r=t.components,o=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||Sz;for(let c of Z9)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+F9+c.id,void 0);return a&&o&&void 0,Ei(e,u),tI(e,{Fragment:Ds.Fragment,components:r,ignoreInvalidStyle:!0,jsx:Ds.jsx,jsxs:Ds.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 rd)if(Object.hasOwn(rd,f)&&Object.hasOwn(c.properties,f)){let m=c.properties[f],w=rd[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 Sz(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||q9.test(e.slice(0,t))?e:""}function RI(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 PI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function UI(e,t,a){let r=zo((a||{}).ignore||[]),o=W9(t),i=-1;for(;++i<o.length;)cd(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),h=!1,x=[];p.lastIndex=0;let g=p.exec(u.value);for(;g;){let S=g.index,L={index:g.index,input:g.input,stack:[...c,u]},y=f(...g,L);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?p.lastIndex=S+1:(m!==S&&x.push({type:"text",value:u.value.slice(m,S)}),Array.isArray(y)?x.push(...y):y&&x.push(y),m=S+g[0].length,h=!0),!p.global)break;g=p.exec(u.value)}return h?(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 W9(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([J9(r[0]),X9(r[1])])}return t}function J9(e){return typeof e=="string"?new RegExp(PI(e),"g"):e}function X9(e){return typeof e=="function"?e:function(){return e}}var NI="phrasing",jI=["autolink","link","image","label"];function FI(){return{transforms:[a8],enter:{literalAutolink:K9,literalAutolinkEmail:BI,literalAutolinkHttp:BI,literalAutolinkWww:BI},exit:{literalAutolink:t8,literalAutolinkEmail:e8,literalAutolinkHttp:Y9,literalAutolinkWww:Q9}}}function qI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:NI,notInConstruct:jI},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:NI,notInConstruct:jI},{character:":",before:"[ps]",after:"\\/",inConstruct:NI,notInConstruct:jI}]}}function K9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function BI(e){this.config.enter.autolinkProtocol.call(this,e)}function Y9(e){this.config.exit.autolinkProtocol.call(this,e)}function Q9(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 e8(e){this.config.exit.autolinkEmail.call(this,e)}function t8(e){this.exit(e)}function a8(e){UI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,r8],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,n8]],{ignore:["link","linkReference"]})}function r8(e,t,a,n,r){let o="";if(!wz(r)||(/^w/i.test(t)&&(a=t+a,t="",o="http://"),!o8(a)))return!1;let i=i8(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 n8(e,t,a,n){return!wz(n,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+a,children:[{type:"text",value:t+"@"+a}]}}function o8(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 i8(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=RI(e,"("),o=RI(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 wz(e,t){let a=e.input.charCodeAt(e.index-1);return(e.index===0||Vr(a)||ki(a))&&(!t||a!==47)}_z.peek=h8;function l8(){this.buffer()}function s8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function u8(){this.buffer()}function c8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function d8(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=ia(this.sliceSerialize(e)).toLowerCase(),a.label=t}function f8(e){this.exit(e)}function p8(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=ia(this.sliceSerialize(e)).toLowerCase(),a.label=t}function m8(e){this.exit(e)}function h8(){return"["}function _z(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 ZI(){return{enter:{gfmFootnoteCallString:l8,gfmFootnoteCall:s8,gfmFootnoteDefinitionLabelString:u8,gfmFootnoteDefinition:c8},exit:{gfmFootnoteCallString:d8,gfmFootnoteCall:f8,gfmFootnoteDefinitionLabelString:p8,gfmFootnoteDefinition:m8}}}function HI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:a,footnoteReference:_z},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?`
|
|
83
|
+
`:" ")+o.indentLines(o.containerFlow(n,l.current()),t?Iz:g8))),u(),s}}function g8(e,t,a){return t===0?e:Iz(e,t,a)}function Iz(e,t,a){return(a?"":" ")+e}var v8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];kz.peek=b8;function VI(){return{canContainEols:["delete"],enter:{strikethrough:y8},exit:{strikethrough:x8}}}function GI(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:v8}],handlers:{delete:kz}}}function y8(e){this.enter({type:"delete",children:[]},e)}function x8(e){this.exit(e)}function kz(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 b8(){return"~"}function S8(e){return e.length}function Lz(e,t){let a=t||{},n=(a.align||[]).concat(),r=a.stringLength||S8,o=[],i=[],l=[],s=[],u=0,c=-1;for(;++c<e.length;){let w=[],C=[],h=-1;for(e[c].length>u&&(u=e[c].length);++h<e[c].length;){let x=w8(e[c][h]);if(a.alignDelimiters!==!1){let g=r(x);C[h]=g,(s[h]===void 0||g>s[h])&&(s[h]=g)}w.push(x)}i[c]=w,l[c]=C}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<u;)o[d]=Cz(n[d]);else{let w=Cz(n);for(;++d<u;)o[d]=w}d=-1;let p=[],f=[];for(;++d<u;){let w=o[d],C="",h="";w===99?(C=":",h=":"):w===108?C=":":w===114&&(h=":");let x=a.alignDelimiters===!1?1:Math.max(1,s[d]-C.length-h.length),g=C+"-".repeat(x)+h;a.alignDelimiters!==!1&&(x=C.length+x+h.length,x>s[d]&&(s[d]=x),f[d]=x),p[d]=g}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 h=[];for(;++d<u;){let x=w[d]||"",g="",S="";if(a.alignDelimiters!==!1){let L=s[d]-(C[d]||0),y=o[d];y===114?g=" ".repeat(L):y===99?L%2?(g=" ".repeat(L/2+.5),S=" ".repeat(L/2-.5)):(g=" ".repeat(L/2),S=g):S=" ".repeat(L)}a.delimiterStart!==!1&&!d&&h.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&x==="")&&(a.delimiterStart!==!1||d)&&h.push(" "),a.alignDelimiters!==!1&&h.push(g),h.push(x),a.alignDelimiters!==!1&&h.push(S),a.padding!==!1&&h.push(" "),(a.delimiterEnd!==!1||d!==u-1)&&h.push("|")}m.push(a.delimiterEnd===!1?h.join("").replace(/ +$/,""):h.join(""))}return m.join(`
|
|
84
|
+
`)}function w8(e){return e==null?"":String(e)}function Cz(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 Tz(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()),_8);return r(),i}function _8(e,t,a){return">"+(a?"":" ")+e}function Ez(e,t){return Az(e,t.inConstruct,!0)&&!Az(e,t.notInConstruct,!1)}function Az(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 WI(e,t,a,n){let r=-1;for(;++r<a.unsafe.length;)if(a.unsafe[r].character===`
|
|
85
|
+
`&&Ez(a.stack,a.unsafe[r]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
86
|
+
`}function $z(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 Mz(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 Dz(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 zz(e,t,a,n){let r=Dz(a),o=e.value||"",i=r==="`"?"GraveAccent":"Tilde";if(Mz(e,a)){let d=a.enter("codeIndented"),p=a.indentLines(o,I8);return d(),p}let l=a.createTracker(n),s=r.repeat(Math.max($z(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:`
|
|
87
|
+
`,encode:["`"],...l.current()})),d()}return c+=l.move(`
|
|
88
|
+
`),o&&(c+=l.move(o+`
|
|
89
|
+
`)),c+=l.move(s),u(),c}function I8(e,t,a){return(a?"":" ")+e}function zs(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 Oz(e,t,a,n){let r=zs(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?" ":`
|
|
90
|
+
`,...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 Rz(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 Oo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Os(e,t,a){let n=$n(e),r=$n(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}}JI.peek=k8;function JI(e,t,a,n){let r=Rz(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=Os(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=Oo(u)+s.slice(1));let d=s.charCodeAt(s.length-1),p=Os(n.after.charCodeAt(0),d,r);p.inside&&(s=s.slice(0,-1)+Oo(d));let f=i.move(r);return o(),a.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},l+s+f}function k8(e,t,a){return a.options.emphasis||"*"}function Pz(e,t){let a=!1;return Ei(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return a=!0,Ai}),!!((!e.depth||e.depth<3)&&_i(e)&&(t.options.setext||a))}function Uz(e,t,a,n){let r=Math.max(Math.min(6,e.depth||1),1),o=a.createTracker(n);if(Pz(e,a)){let c=a.enter("headingSetext"),d=a.enter("phrasing"),p=a.containerPhrasing(e,{...o.current(),before:`
|
|
91
|
+
`,after:`
|
|
92
|
+
`});return d(),c(),p+`
|
|
93
|
+
`+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
94
|
+
`))+1))}let i="#".repeat(r),l=a.enter("headingAtx"),s=a.enter("phrasing");o.move(i+" ");let u=a.containerPhrasing(e,{before:"# ",after:`
|
|
95
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=Oo(u.charCodeAt(0))+u.slice(1)),u=u?i+" "+u:i,a.options.closeAtx&&(u+=" "+i),s(),l(),u}XI.peek=C8;function XI(e){return e.value||""}function C8(){return"<"}KI.peek=L8;function KI(e,t,a,n){let r=zs(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 L8(){return"!"}YI.peek=T8;function YI(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 T8(){return"!"}QI.peek=A8;function QI(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 A8(){return"`"}function ek(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))}tk.peek=E8;function tk(e,t,a,n){let r=zs(a),o=r==='"'?"Quote":"Apostrophe",i=a.createTracker(n),l,s;if(ek(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 E8(e,t,a){return ek(e,a)?"<":"["}ak.peek=$8;function ak(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 $8(){return"["}function Rs(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 Nz(e){let t=Rs(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 jz(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 Ch(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 Bz(e,t,a,n){let r=a.enter("list"),o=a.bulletCurrent,i=e.ordered?jz(a):Rs(a),l=e.ordered?i==="."?")":".":Nz(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),Ch(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 Fz(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 qz(e,t,a,n){let r=Fz(a),o=a.bulletCurrent||Rs(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 Zz(e,t,a,n){let r=a.enter("paragraph"),o=a.enter("phrasing"),i=a.containerPhrasing(e,n);return o(),r(),i}var rk=zo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Hz(e,t,a,n){return(e.children.some(function(i){return rk(i)})?a.containerPhrasing:a.containerFlow).call(a,e,n)}function Vz(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}nk.peek=M8;function nk(e,t,a,n){let r=Vz(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=Os(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=Oo(u)+s.slice(1));let d=s.charCodeAt(s.length-1),p=Os(n.after.charCodeAt(0),d,r);p.inside&&(s=s.slice(0,-1)+Oo(d));let f=i.move(r+r);return o(),a.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},l+s+f}function M8(e,t,a){return a.options.strong||"*"}function Gz(e,t,a,n){return a.safe(e.value,n)}function Wz(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 Jz(e,t,a){let n=(Ch(a)+(a.options.ruleSpaces?" ":"")).repeat(Wz(a));return a.options.ruleSpaces?n.slice(0,-1):n}var pd={blockquote:Tz,break:WI,code:zz,definition:Oz,emphasis:JI,hardBreak:WI,heading:Uz,html:XI,image:KI,imageReference:YI,inlineCode:QI,link:tk,linkReference:ak,list:Bz,listItem:qz,paragraph:Zz,root:Hz,strong:nk,text:Gz,thematicBreak:Jz};function ik(){return{enter:{table:D8,tableData:Xz,tableHeader:Xz,tableRow:O8},exit:{codeText:R8,table:z8,tableData:ok,tableHeader:ok,tableRow:ok}}}function D8(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 z8(e){this.exit(e),this.data.inTable=void 0}function O8(e){this.enter({type:"tableRow",children:[]},e)}function ok(e){this.exit(e)}function Xz(e){this.enter({type:"tableCell",children:[]},e)}function R8(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,P8));let a=this.stack[this.stack.length-1];a.type,a.value=t,this.exit(e)}function P8(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:`
|
|
96
|
+
`,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 h=d(f,w,C),x=u([h]);return x.slice(0,x.indexOf(`
|
|
97
|
+
`))}function s(f,m,w,C){let h=w.enter("tableCell"),x=w.enter("phrasing"),g=w.containerPhrasing(f,{...C,before:o,after:o});return x(),h(),g}function u(f,m){return Lz(f,{align:m,alignDelimiters:n,padding:a,stringLength:r})}function c(f,m,w){let C=f.children,h=-1,x=[],g=m.enter("table");for(;++h<C.length;)x[h]=d(C[h],m,w);return g(),x}function d(f,m,w){let C=f.children,h=-1,x=[],g=m.enter("tableRow");for(;++h<C.length;)x[h]=s(C[h],f,m,w);return g(),x}function p(f,m,w){let C=pd.inlineCode(f,m,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function sk(){return{exit:{taskListCheckValueChecked:Kz,taskListCheckValueUnchecked:Kz,paragraph:U8}}}function uk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:N8}}}function Kz(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function U8(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 N8(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=pd.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 ck(){return[FI(),ZI(),VI(),ik(),sk()]}function dk(e){return{extensions:[qI(),HI(e),GI(),lk(e),uk()]}}var j8={tokenize:H8,partial:!0},Yz={tokenize:V8,partial:!0},Qz={tokenize:G8,partial:!0},eO={tokenize:W8,partial:!0},B8={tokenize:J8,partial:!0},tO={name:"wwwAutolink",tokenize:q8,previous:rO},aO={name:"protocolAutolink",tokenize:Z8,previous:nO},Mn={name:"emailAutolink",tokenize:F8,previous:oO},Wr={};function pk(){return{text:Wr}}var Mi=48;for(;Mi<123;)Wr[Mi]=Mn,Mi++,Mi===58?Mi=65:Mi===91&&(Mi=97);Wr[43]=Mn;Wr[45]=Mn;Wr[46]=Mn;Wr[95]=Mn;Wr[72]=[Mn,aO];Wr[104]=[Mn,aO];Wr[87]=[Mn,tO];Wr[119]=[Mn,tO];function F8(e,t,a){let n=this,r,o;return i;function i(d){return!fk(d)||!oO.call(n,n.previous)||mk(n.events)?a(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return fk(d)?(e.consume(d),l):d===64?(e.consume(d),s):a(d)}function s(d){return d===46?e.check(B8,c,u)(d):d===45||d===95||kt(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&&Ft(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):a(d)}}function q8(e,t,a){let n=this;return r;function r(i){return i!==87&&i!==119||!rO.call(n,n.previous)||mk(n.events)?a(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(j8,e.attempt(Yz,e.attempt(Qz,o),a),a)(i))}function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function Z8(e,t,a){let n=this,r="",o=!1;return i;function i(d){return(d===72||d===104)&&nO.call(n,n.previous)&&!mk(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),l):a(d)}function l(d){if(Ft(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||Ii(d)||$e(d)||Vr(d)||ki(d)?a(d):e.attempt(Yz,e.attempt(Qz,c),a)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function H8(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 V8(e,t,a){let n,r,o;return i;function i(u){return u===46||u===95?e.check(eO,s,l)(u):u===null||$e(u)||Vr(u)||u!==45&&ki(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 G8(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(eO,t,o)(i):i===null||$e(i)||Vr(i)?t(i):(e.consume(i),r)}function o(i){return i===41&&n++,e.consume(i),r}}function W8(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)||Vr(l)?t(l):a(l)}function r(l){return l===null||l===40||l===91||$e(l)||Vr(l)?t(l):n(l)}function o(l){return Ft(l)?i(l):a(l)}function i(l){return l===59?(e.consume(l),n):Ft(l)?(e.consume(l),i):a(l)}}function J8(e,t,a){return n;function n(o){return e.consume(o),r}function r(o){return kt(o)?a(o):t(o)}}function rO(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$e(e)}function nO(e){return!Ft(e)}function oO(e){return!(e===47||fk(e))}function fk(e){return e===43||e===45||e===46||e===95||kt(e)}function mk(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 X8={tokenize:rZ,partial:!0};function hk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:eZ,continuation:{tokenize:tZ},exit:aZ}},text:{91:{name:"gfmFootnoteCall",tokenize:Q8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:K8,resolveTo:Y8}}}}function K8(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=ia(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 Y8(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 Q8(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(ia(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 eZ(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=ia(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),ue(e,f,"gfmFootnoteDefinitionWhitespace")):a(m)}function f(m){return t(m)}}function tZ(e,t,a){return e.check(Gr,t,e.attempt(X8,t,a))}function aZ(e){e.exit("gfmFootnoteDefinition")}function rZ(e,t,a){let n=this;return ue(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 gk(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&&Et(p,p.length,0,Mo(f,i.slice(u+1,s),l)),Et(p,p.length,0,[["exit",d,l],["enter",i[s][1],l],["exit",i[s][1],l],["exit",c,l]]),Et(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=$n(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"),h=$n(m);return C._open=!h||h===2&&!!w,C._close=!w||w===2&&!!h,l(m)}}}var Lh=class{constructor(){this.map=[]}add(t,a,n){nZ(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 nZ(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 iO(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 vk(){return{flow:{null:{name:"table",tokenize:oZ,resolveAll:iZ}}}}function oZ(e,t,a){let n=this,r=0,o=0,i;return l;function l(I){let F=n.events.length-1;for(;F>-1;){let P=n.events[F][1].type;if(P==="lineEnding"||P==="linePrefix")F--;else break}let O=F>-1?n.events[F][1].type:null,N=O==="tableHead"||O==="tableRow"?y:s;return N===y&&n.parser.lazy[n.now().line]?a(I):N(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):ae(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)?ue(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)?ue(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)?ue(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"),h):I===45?(o+=1,h(I)):I===null||ae(I)?S(I):L(I)}function h(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"),g):(e.exit("tableDelimiterFiller"),g(I))}function g(I){return pe(I)?ue(e,S,"whitespace")(I):S(I)}function S(I){return I===124?m(I):I===null||ae(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||ae(I)?(e.exit("tableRow"),t(I)):pe(I)?ue(e,_,"whitespace")(I):(e.enter("data"),b(I))}function b(I){return I===null||I===124||$e(I)?(e.exit("data"),_(I)):(e.consume(I),I===92?T:b)}function T(I){return I===92||I===124?(e.consume(I),b):b(I)}}function iZ(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 Lh;for(;++a<e.length;){let f=e[a],m=f[1];f[0]==="enter"?m.type==="tableHead"?(l=!1,s!==0&&(lO(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=Th(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=Th(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=Th(p,t,o,r,a,d)):i[1]!==0&&(d=Th(p,t,i,r,a,d)),r=0):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(i[3]=a)}for(s!==0&&lO(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=iO(t.events,a))}return e}function Th(e,t,a,n,r,o){let i=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";a[0]!==0&&(o.end=Object.assign({},Ps(t.events,a[0])),e.add(a[0],0,[["exit",o,t]]));let s=Ps(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=Ps(t.events,a[2]),c=Ps(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({},Ps(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function lO(e,t,a,n,r){let o=[],i=Ps(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 Ps(e,t){let a=e[t],n=a[0]==="enter"?"start":"end";return a[1][n]}var lZ={name:"tasklistCheck",tokenize:sZ};function yk(){return{text:{91:lZ}}}function sZ(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 ae(s)?t(s):pe(s)?e.check({tokenize:uZ},t,a)(s):a(s)}}function uZ(e,t,a){return ue(e,n,"whitespace");function n(r){return r===null?a(r):t(r)}}function sO(e){return th([pk(),hk(),gk(e),vk(),yk()])}var cZ={};function Ah(e){let t=this,a=e||cZ,n=t.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(sO(a)),o.push(ck()),i.push(dk(a))}yr(`.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:#9ca3af;cursor:pointer;border-radius:.35rem;transition:all .15s ease}.chat-widget__feedback-button:hover:not(:disabled){background:#0000000d;color:#6b7280}.chat-widget__feedback-button:disabled{cursor:default;opacity:.5}.chat-widget__feedback-button--positive.chat-widget__feedback-button--selected{color:#22c55e;background:#22c55e1a}.chat-widget__feedback-button--negative.chat-widget__feedback-button--selected{color:#ef4444;background:#ef44441a}.chat-widget__feedback-button--comment.chat-widget__feedback-button--selected{background:#0000000d}.chat-widget__feedback-button--comment.chat-widget__feedback-button--has-content{color:#3b82f6}.chat-widget__feedback-icon{width:1rem;height:1rem}.chat-widget__feedback-comment-section{margin-top:.75rem;background:var(--chat-background, #ffffff);border:1px solid var(--chat-border, #e5e7eb);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-assistant-text, #111827)}.chat-widget__feedback-comment-required{font-size:.6875rem;font-weight:500;color:#ef4444;background:#ef44441a;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, #e5e7eb);border-radius:.35rem;font-size:.875rem;font-family:inherit;resize:vertical;color:var(--chat-input-text, #111827);background:var(--chat-input-bg, #ffffff);line-height:1.5}.chat-widget__feedback-textarea:focus{outline:none;border-color:var(--chat-primary, #3b82f6);box-shadow:0 0 0 2px #3b82f61a}.chat-widget__feedback-textarea::-moz-placeholder{color:var(--chat-input-placeholder, #6b7280)}.chat-widget__feedback-textarea::placeholder{color:var(--chat-input-placeholder, #6b7280)}.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:#9ca3af;padding:.25rem .5rem}.chat-widget__feedback-cancel:hover{color:#6b7280}.chat-widget__feedback-submit{background:var(--chat-primary, #3b82f6);border:none;color:var(--chat-primary-text, #ffffff)}.chat-widget__feedback-submit:hover:not(:disabled){background:var(--chat-primary-hover, #2563eb)}.chat-widget__feedback-submit:disabled{opacity:.5;cursor:not-allowed}.chat-widget__feedback-wrapper{position:relative}
|
|
98
|
+
`);var Aa=ce(bt(),1),Gt=ce(Ze(),1),yt={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"},uO=({messageId:e,existingRating:t,existingComment:a,isSubmitting:n,requireCommentForNegative:r=!1,onSubmit:o})=>{let[i,l]=(0,Aa.useState)(t??null),[s,u]=(0,Aa.useState)(a??""),[c,d]=(0,Aa.useState)(null),[p,f]=(0,Aa.useState)(!1),[m,w]=(0,Aa.useState)(a??"");(0,Aa.useEffect)(()=>{t&&l(t),a!==void 0&&(u(a),w(a))},[t,a]);let C=(0,Aa.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]),h=(0,Aa.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,Aa.useCallback)(()=>{p?(f(!1),c==="negative"&&r&&d(null),w(s)):f(!0)},[p,c,r,s]),g=(0,Aa.useCallback)(()=>{f(!1),w(s),c==="negative"&&r&&d(null)},[c,r,s]),S=(0,Aa.useCallback)(()=>{let O=c??i;if(O==="negative"&&r&&!m.trim())return;let N=s.length>0;if(!O&&!m.trim()&&!N)return;let P=m.trim()||(N?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",b=_&&r,T=s.length>0,I=(!b||m.trim().length>0)&&(L||m.trim().length>0||T),F=T?gi:Ln;return(0,Gt.jsxs)("div",{className:yt.wrapper,children:[(0,Gt.jsxs)("div",{className:yt.container,children:[(0,Gt.jsx)("button",{type:"button",className:`${yt.button} ${yt.buttonPositive} ${y?yt.buttonSelected:""}`,onClick:C,disabled:n,title:"Good response","aria-label":"Mark as good response",children:(0,Gt.jsx)(vi,{className:yt.icon})}),(0,Gt.jsx)("button",{type:"button",className:`${yt.button} ${yt.buttonNegative} ${_?yt.buttonSelected:""}`,onClick:h,disabled:n,title:"Could be improved","aria-label":"Mark as could be improved",children:(0,Gt.jsx)(yi,{className:yt.icon})}),(0,Gt.jsx)("button",{type:"button",className:`${yt.button} ${yt.buttonComment} ${p?yt.buttonSelected:""} ${T?yt.buttonHasContent:""}`,onClick:x,disabled:n,title:"Add comment","aria-label":"Add comment",children:(0,Gt.jsx)(F,{className:yt.icon})})]}),p&&(0,Gt.jsxs)("div",{className:yt.commentSection,children:[(0,Gt.jsx)("div",{className:yt.commentHeader,children:b&&(0,Gt.jsx)("span",{className:yt.commentRequired,children:"Required"})}),(0,Gt.jsxs)("div",{className:yt.commentBody,children:[(0,Gt.jsx)("textarea",{className:yt.textarea,placeholder:_?"What could be improved?":"Share your thoughts...",value:m,onChange:O=>w(O.target.value),rows:3}),(0,Gt.jsxs)("div",{className:yt.actions,children:[(0,Gt.jsx)("button",{type:"button",className:yt.submitButton,onClick:S,disabled:n||!I,children:"Save"}),(0,Gt.jsx)("button",{type:"button",className:yt.cancelButton,onClick:g,children:"Cancel"})]})]})]})]})};yr(`.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:#666;border-radius:4px;transition:background-color .15s ease}.tag-group-header:hover{background:#f5f5f5}.tag-group-chevron{width:14px;height:14px;flex-shrink:0;transition:transform .15s ease;color:#999}.tag-group-chevron--expanded{transform:rotate(90deg)}.tag-group-label{font-weight:500;color:#555}.tag-group-content{margin-left:7px;padding-left:12px;border-left:2px solid #e0e0e0;margin-top:4px}.tag-group-item{margin:4px 0;font-size:13px;color:#444}.tag-group-item--text{display:flex;align-items:flex-start;gap:6px}.tag-group-item--text:before{content:"\\2022";color:#999;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}
|
|
99
|
+
`);var Di=ce(Ze(),1);function cO({tagId:e,isExpanded:t,onToggle:a,children:n}){return(0,Di.jsxs)("div",{className:"tag-group",children:[(0,Di.jsxs)("button",{className:"tag-group-header",onClick:a,"aria-expanded":t,type:"button",children:[(0,Di.jsx)(Uc,{className:`tag-group-chevron ${t?"tag-group-chevron--expanded":""}`,"aria-hidden":"true"}),(0,Di.jsx)("span",{className:"tag-group-label",children:e})]}),t&&(0,Di.jsx)("div",{className:"tag-group-content",role:"region",children:n})]})}yr(`.tool-call-item{font-size:13px;color:#666;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 #e0e0e0;border-top-color:#666;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 #e0e0e0;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:#dc2626}.tool-call-status-icon__inner{width:8px;height:8px}.tool-call-status-icon__inner--success{color:#9ca3af}.tool-call-status-icon__inner--error{color:#dc2626}.tool-call-label{color:#888}.tool-call-label code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;background:#f5f5f5;padding:2px 6px;border-radius:4px;color:#555}.tool-call-toggle{font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#6b7280;background:transparent;border:1px solid #d1d5db;border-radius:3px;cursor:pointer;padding:2px 6px;margin-left:4px;transition:all .15s ease}.tool-call-toggle:hover{color:#374151;border-color:#9ca3af;background:#f9fafb}.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:#6b7280;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:#6b7280;background:#ffffffe6;border:1px solid #d1d5db;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:#374151;border-color:#9ca3af;background:#f9fafb}.tool-call-section-content{padding:8px 12px;background:#f8f9fa;border-radius:6px;border:1px solid #e9ecef;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:#333;white-space:pre-wrap;word-break:break-word}.tool-call-error{color:#dc2626;font-weight:600;font-size:9px;letter-spacing:.5px;margin-left:auto}
|
|
100
|
+
`);var xk=ce(bt(),1),gt=ce(Ze(),1);function dO({label:e,content:t}){let[a,n]=(0,xk.useState)(!1);return(0,gt.jsxs)("div",{className:"tool-call-section",children:[(0,gt.jsx)("div",{className:"tool-call-section-label",children:e}),(0,gt.jsxs)("div",{className:"tool-call-section-content-wrapper",children:[(0,gt.jsx)("button",{className:"tool-call-section-toggle",onClick:()=>n(!a),type:"button",children:a?"SHOW":"HIDE"}),(0,gt.jsx)("div",{className:`tool-call-section-content ${a?"collapsed":""}`,children:(0,gt.jsx)("pre",{children:dZ(t)})})]})]})}function fO({toolPart:e,className:t=""}){let[a,n]=(0,xk.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"||o==="output-denied",u="input"in e?e.input:void 0,c="output"in e?e.output:void 0,d=u!=null&&!(typeof u=="object"&&Object.keys(u).length===0),p=d||i,f=()=>l?(0,gt.jsx)("span",{className:"tool-call-spinner"}):(0,gt.jsx)("span",{className:`tool-call-status-icon ${s?"tool-call-status-icon--error":""}`,children:s?(0,gt.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,gt.jsx)("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),(0,gt.jsx)("line",{x1:"11",y1:"5",x2:"5",y2:"11"})]}):(0,gt.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,gt.jsx)("polyline",{points:"4,8 7,11 12,5"})})});return(0,gt.jsxs)("div",{className:`tool-call-item ${t}`,children:[(0,gt.jsxs)("div",{className:"tool-call-header",children:[f(),(0,gt.jsxs)("span",{className:"tool-call-label",children:[l?"Calling":"Called"," ",(0,gt.jsx)("code",{children:r})]}),p&&(0,gt.jsx)("button",{className:"tool-call-toggle",onClick:()=>n(!a),type:"button",children:a?"HIDE":"SHOW"}),s&&(0,gt.jsx)("span",{className:"tool-call-error",children:"ERROR"})]}),a&&p&&(0,gt.jsxs)("div",{className:"tool-call-details",children:[d&&(0,gt.jsx)(dO,{label:"IN",content:u}),i&&(0,gt.jsx)(dO,{label:"OUT",content:c})]})]})}function dZ(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 Sk=ce(hO(),1),Ar=ce(bt(),1);var bk=Symbol("__isSDKWidget");function gO(e){return bk in e&&e[bk]===!0}function Eh(e){return{...e,[bk]:!0}}var vO=e=>e;var zi=ce(Ze(),1);function md(e,t){e.innerHTML="";let a=document.createElement("div");a.style.cssText="color: red; padding: 8px;",a.textContent=t,e.appendChild(a)}function yO({widget:e,payload:t,enriched:a,messageContext:n,invokeTool:r}){let o=(0,Ar.useRef)(null),i=(0,Ar.useRef)(null),l=(0,Ar.useRef)(void 0),s=(0,Ar.useRef)(!1),u=gO(e);u||(l.current=e.reactDOM);let c=(0,Ar.useMemo)(()=>(0,Sk.default)(t??{}),[t]),d=(0,Ar.useMemo)(()=>(0,Sk.default)(a??{}),[a]);if((0,Ar.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,Ar.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),md(o.current,`Widget render error: ${e.widgetType}`);return}let f=e.reactDOM;if(!f){console.error(`Widget "${e.widgetType}" requires reactDOM to render.
|
|
101
|
+
|
|
102
|
+
Custom widgets must provide their ReactDOM instance for cross-React version compatibility.
|
|
103
|
+
|
|
104
|
+
To fix, add your ReactDOM to the widget config:
|
|
105
|
+
|
|
106
|
+
import ReactDOM from 'react-dom'; // React 16/17
|
|
107
|
+
// or
|
|
108
|
+
import ReactDOM from 'react-dom/client'; // React 18+
|
|
109
|
+
|
|
110
|
+
{
|
|
111
|
+
widgetType: '${e.widgetType}',
|
|
112
|
+
schema: yourSchema,
|
|
113
|
+
reactDOM: ReactDOM, // <-- Add this
|
|
114
|
+
render: (payload) => <YourComponent {...payload} />
|
|
115
|
+
}`),md(o.current,`Widget "${e.widgetType}" requires reactDOM`);return}if(typeof f!="object"){console.error(`Widget "${e.widgetType}" reactDOM must be an object`),md(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)`),md(o.current,`Widget "${e.widgetType}" has incompatible reactDOM`)}catch(p){console.error(`Unexpected error in WidgetRenderer for "${e.widgetType}":`,p),o.current&&md(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,zi.jsx)(zi.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,zi.jsxs)("div",{className:"widget-error",title:f,children:["Widget error: ",e.widgetType]})}return(0,zi.jsx)("div",{ref:o,className:"widget-customer-root"})}var Wt=ce(Ze(),1);function fZ({children:e}){return(0,Wt.jsx)(OI,{remarkPlugins:[Ah],children:e.replace(/\n\n/gi,`
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
`)})}var pZ=Dn.default.memo(fZ);function hd({message:e,widgets:t,readonly:a=!1,displayMode:n="brief",tagExpansion:r,className:o,feedback:i,invokeTool:l}){let s=(0,Dn.useMemo)(()=>{if(i)return{messageId:e.id,getFeedback:i.getFeedback,submitFeedback:i.submitFeedback}},[e.id,i]),u=(0,Dn.useMemo)(()=>i?.getFeedback()??null,[i]),c=(0,Dn.useCallback)((f,m)=>{if(f==null)return null;if(f.type==="text"){let w=f.text?.trim();return w?(0,Wt.jsx)("div",{className:"chat-widget__markdown",children:(0,Wt.jsx)(pZ,{children:w})},m):null}if(f.type.startsWith("tool-")||f.type==="dynamic-tool")return(0,Wt.jsx)(fO,{toolPart:f},m);if(f.type==="data-ui"){let C=f.data;return Array.isArray(C)?!t||t.length===0?(0,Wt.jsxs)("div",{className:"text-muted-foreground text-sm italic",children:["[UI Widget: ",C.map(h=>h.widgetType||"unknown").join(", "),"]"]},m):(0,Wt.jsx)(Dn.default.Fragment,{children:C.map((h,x)=>{let g=t.find(S=>S.widgetType===h.widgetType);return g?(0,Wt.jsx)("div",{className:"chat-widget__widget",inert:a?!0:void 0,children:(0,Wt.jsx)(yO,{widget:g,payload:h.payload,enriched:h.enriched??{},messageContext:s??void 0,invokeTool:l})},`${m}-widget-${x}`):(0,Wt.jsxs)("span",{children:["[Unknown widget: ",h.widgetType,"]"]},`${m}-widget-${x}`)})},m):null}return null},[t,a,s]),d=(0,Dn.useCallback)((f,m,w)=>{let C=r?.state.get(m)??!0;return(0,Wt.jsx)(cO,{tagId:f,isExpanded:C,onToggle:()=>r?.onToggle(f),children:w},m)},[r]);return(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)("div",{className:o,children:(0,Wt.jsx)(n==="brief"?Kc:Yc,{sections:e.sections,messageId:e.id,renderPart:c,renderGroup:d})}),!a&&i&&(0,Wt.jsx)(uO,{messageId:e.id,existingRating:u?.rating,existingComment:u?.improvementText,isSubmitting:i.loading,requireCommentForNegative:i.requireCommentForNegative,onSubmit:(f,m)=>i.submitFeedback(m)})]})}var ft=ce(Ze(),1),dt={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"},mZ={primaryColor:"#3b82f6",primaryTextColor:"#ffffff",backgroundColor:"#ffffff",borderColor:"#e5e7eb",headerTextColor:"#ffffff",userBubbleTextColor:"#ffffff",assistantBubbleBackground:"transparent",assistantBubbleTextColor:"#111827",fontFamily:"'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",borderRadius:"0.75rem",inputBackground:"#ffffff",inputTextColor:"#111827",inputPlaceholderColor:"#6b7280",thoughtsBorderColor:"#d1d5db"},hZ=(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")}`},Us=(0,Re.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:h,voice:x,speechToText:g,widgets:S,feedback:L},y){let _=(0,Re.useMemo)(()=>({...mZ,...h||{}}),[h]),b=(0,Re.useMemo)(()=>({"--chat-primary":_.primaryColor,"--chat-primary-text":_.primaryTextColor,"--chat-primary-hover":hZ(_.primaryColor,.2),"--chat-background":_.backgroundColor,"--chat-border":_.borderColor,"--chat-header-text":_.headerTextColor,"--chat-user-text":_.userBubbleTextColor,"--chat-assistant-bg":_.assistantBubbleBackground,"--chat-assistant-text":_.assistantBubbleTextColor,"--chat-font-family":_.fontFamily,"--chat-radius":_.borderRadius,"--chat-input-bg":_.inputBackground,"--chat-input-text":_.inputTextColor,"--chat-input-placeholder":_.inputPlaceholderColor,"--chat-thought-border":_.thoughtsBorderColor}),[_]),[T,I]=(0,Re.useState)(""),[F,O]=(0,Re.useState)(!1),[N,P]=(0,Re.useState)(!1),Q=(0,Re.useRef)(null),oe=(0,Re.useRef)(null),le=(0,Re.useRef)(!0),de=(0,Re.useRef)(null),Ee=(0,Re.useRef)(!1),{messages:$,status:fe,isLoadingInitial:xt,sendMessage:E,stop:ye,setMessages:Ut}=aM({api:t,threadId:a,agentId:n,agentVersion:r,agentExecutionId:o??void 0,dataContext:i,onError:s,onAuthError:u,onFinish:c,onMessage:d});(0,Re.useImperativeHandle)(y,()=>({sendMessage:Ce=>{Ce.trim()&&fe==="ready"&&E({text:Ce})}}),[E,fe]);let K=L?.enabled!==!1,{submitFeedback:k,getFeedbackForMessage:A,isSubmitting:M}=rM({api:t,threadId:a,agentId:n,agentVersion:r}),U=(0,Re.useMemo)(()=>z$(t,u),[t,u]),[B,Y]=(0,Re.useState)(new Map),Ie=(0,Re.useCallback)((Ce,R,W)=>{Ee.current=!0,Y(me=>{let Le=new Map(me),Ne=`${Ce}-group-${R}`;return Le.set(Ne,!W),Le})},[]),rt=(0,Re.useMemo)(()=>{if(!x||x.enabled===!1||!x.url)return null;let Ce=x.payload,R=W=>Ce?typeof Ce=="function"?Ce(W):{message:W,...Ce}:{message:W};return{url:x.url,method:x.method??"POST",autoplayLatest:x.autoplayLatest??!0,headers:{...x.headers??{}},buildPayload:R}},[x]);(0,Re.useEffect)(()=>{f&&!m&&!xt&&$.length===0&&Ut([{id:"welcome-message",role:"assistant",parts:[{type:"text",text:f}]}])},[f,m,xt,$.length,Ut]);let pt=(0,Re.useRef)(!1);(0,Re.useEffect)(()=>{m&&!pt.current&&!xt&&fe==="ready"&&$.length===0&&(pt.current=!0,E({text:m}))},[m,xt,fe,$.length,E]);let aa=(0,Re.useCallback)(()=>{if(!oe.current)return;let{scrollTop:Ce,scrollHeight:R,clientHeight:W}=oe.current,me=R-Ce-W;le.current=me<100},[]);(0,Re.useEffect)(()=>{if(Ee.current){Ee.current=!1;return}let R=$[$.length-1]?.role==="user";(le.current||R)&&Q.current?.scrollIntoView({behavior:"smooth"})},[$,fe]),(0,Re.useEffect)(()=>{let Ce=setTimeout(()=>{de.current?.focus()},150);return()=>clearTimeout(Ce)},[]),(0,Re.useEffect)(()=>{fe==="ready"&&de.current?.focus(),fe!=="streaming"&&P(!1)},[fe]);let Ct=(0,Re.useCallback)(Ce=>{let R=(Ce??T).trim();return!R||fe!=="ready"?!1:(E({text:R}),I(""),!0)},[T,fe,E,I]),$t=()=>{Ct()},vt=Ce=>{Ce.preventDefault(),$t()},nt=Ce=>{Ce.key==="Enter"&&!Ce.shiftKey&&(Ce.preventDefault(),$t())},Ja=g?.enabled!==!1,Oi=(0,Re.useCallback)(Ce=>{I(Ce)},[I]),Dh=(0,Re.useCallback)(Ce=>{let R=Ce?.trim();if(!R||N)return;I(R),Ct(R)&&P(!0)},[Ct,I,N]);(0,Re.useEffect)(()=>{Ja||O(!1)},[Ja]);let Ns=(0,Re.useRef)({threadId:"",widgets:null});return(0,Re.useEffect)(()=>{!S||S.length===0||Ns.current.threadId===a&&Ns.current.widgets===S||jm({api:t,threadId:a,widgets:S,onAuthError:u}).then(()=>{Ns.current={threadId:a,widgets:S}}).catch(R=>{console.error("Failed to register chat widgets",R)})},[t,a,S,u]),(0,ft.jsxs)("div",{className:Hr(dt.container,C),style:b,"data-chat-widget":"",children:[p&&(0,ft.jsx)("div",{className:dt.header,children:(0,ft.jsx)("h3",{className:dt.headerTitle,children:p})}),(0,ft.jsxs)("div",{className:dt.messagesContainer,ref:oe,onScroll:aa,children:[$.map((Ce,R)=>{let W=Ce.role==="user",me=R===$.length-1,Le=K&&!W&&!(fe==="streaming"&&me);return(0,ft.jsx)("div",{className:dt.messageWrapper,children:(0,ft.jsx)("div",{className:Hr(dt.messageRow,W?dt.userMessageRow:dt.assistantMessageRow),children:(0,ft.jsx)("div",{className:Hr(dt.messageBubble,W?dt.userMessage:dt.assistantMessage),children:(0,ft.jsx)(hd,{message:Ce,widgets:S,displayMode:l,tagExpansion:{state:B,onToggle:Ne=>Ie(Ce.id,Ne,B.get(`${Ce.id}-group-${Ne}`)??!0)},feedback:Le?{loading:M===Ce.id,requireCommentForNegative:L?.requireCommentForNegative,getFeedback:()=>A(Ce.id),submitFeedback:Ne=>k(Ce.id,Ne)}:void 0,invokeTool:U})})})},Ce.id)}),fe==="streaming"&&(0,ft.jsx)("div",{className:dt.loadingContainer,children:(0,ft.jsx)("div",{className:dt.loadingBubble,children:(0,ft.jsxs)("div",{className:dt.loadingDots,children:[(0,ft.jsx)("div",{className:dt.loadingDot}),(0,ft.jsx)("div",{className:dt.loadingDot,"data-delay":"1"}),(0,ft.jsx)("div",{className:dt.loadingDot,"data-delay":"2"})]})})}),(0,ft.jsx)("div",{ref:Q})]}),(0,ft.jsx)("div",{className:dt.inputContainer,children:(0,ft.jsxs)("form",{onSubmit:vt,className:dt.inputForm,children:[(0,ft.jsx)("textarea",{ref:de,value:T,onChange:Ce=>I(Ce.target.value),onKeyDown:nt,placeholder:w,disabled:fe!=="ready",rows:1,className:dt.textarea}),(0,ft.jsx)("div",{className:dt.toolbar,children:Ja&&(0,ft.jsx)(xM,{className:dt.micButton,disabled:fe!=="ready",silenceTimeout:g?.silenceTimeout,language:g?.language,finalDelay:g?.finalDelay,onInterim:Oi,onFinal:Dh,onError:g?.onError,onListeningChange:O})}),(0,ft.jsx)("button",{type:"button",onClick:fe==="streaming"?ye:$t,disabled:fe==="streaming"?!1:!T.trim()||fe!=="ready",className:dt.submitButton,children:fe==="streaming"?(0,ft.jsx)(_o,{className:dt.sendIcon}):(0,ft.jsx)(Bc,{className:dt.sendIcon})})]})})]})});yr(`.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:0 10px 25px #0f172a33;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:0 20px 45px #0f172a1f;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:0 10px 25px #0f172a33}.chat-popup__close-button:hover{background:var(--chat-primary-hover)}.chat-popup__close-icon{width:16px;height:16px}
|
|
120
|
+
`);var Ro=ce(bt(),1);var Ga=ce(Ze(),1);function $h({anchor:e,...t}){let[a,n]=(0,Ro.useState)(e?.initiallyOpen??!1),[r,o]=(0,Ro.useState)(e?.initiallyOpen??!1),i=t.openOverride??a;(0,Ro.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,Ro.useMemo)(()=>{let f=t.styles?.primaryColor??"#3b82f6",m=t.styles?.primaryTextColor??"#ffffff",w=t.styles?.backgroundColor??"#ffffff",C=t.styles?.borderColor??"#e5e7eb",h=t.styles?.headerTextColor??"#ffffff";return{"--chat-primary":f,"--chat-primary-hover":((g,S=.15)=>{let L=g.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(L))return g;let y=parseInt(L.slice(0,2),16),_=parseInt(L.slice(2,4),16),b=parseInt(L.slice(4,6),16),T=I=>Math.round(I*(1-S));return`#${T(y).toString(16).padStart(2,"0")}${T(_).toString(16).padStart(2,"0")}${T(b).toString(16).padStart(2,"0")}`})(f,.2),"--chat-primary-text":m,"--chat-background":w,"--chat-border":C,"--chat-header-text":h}},[t.styles]),p=(0,Ro.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,Ga.jsxs)("div",{style:d,children:[(0,Ga.jsx)("div",{className:Hr("chat-popup__anchor",s),children:e?.render?e.render({isOpen:i,toggle:l}):!i&&(0,Ga.jsxs)("button",{type:"button",className:"chat-popup__anchor-button",onClick:l,"aria-expanded":a,"aria-label":e?.label??"Open chat",children:[(0,Ga.jsx)(Ln,{className:"chat-popup__anchor-icon"}),(0,Ga.jsx)("span",{children:e?.label??"Chat"})]})}),(0,Ga.jsx)("div",{className:Hr("chat-popup__panel",s,i?"chat-popup__panel--open":"chat-popup__panel--closed"),children:(0,Ga.jsxs)("div",{className:"chat-popup__panel-inner",style:p,children:[c&&(0,Ga.jsx)("div",{className:Hr("chat-popup__close",u?.position==="top-start"?"chat-popup__close--start":"chat-popup__close--end"),children:u?.render?u.render({toggle:l}):(0,Ga.jsx)("button",{type:"button",className:"chat-popup__close-button",onClick:l,"aria-label":"Close chat",children:(0,Ga.jsx)(Fc,{className:"chat-popup__close-icon"})})}),r&&(0,Ga.jsx)(Us,{...t})]})})]})}var hr=ce(bt(),1);var ie=ce(Ze(),1),xO=Pt.object({fromLocation:Pt.string().describe("The location the user is searching from"),fromCoordinates:Pt.object({latitude:Pt.number(),longitude:Pt.number()}).describe("The user's lat/lng coordinates from geocoding"),vendors:Pt.array(Pt.object({vendor_id:Pt.string(),notes:Pt.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 bO({payload:e,serverEnriched:t,distanceMatrixToolId:a,invokeTool:n,messageContext:r}){let[o,i]=(0,hr.useState)(),[l,s]=(0,hr.useState)(!0),[u,c]=(0,hr.useState)({}),d=(0,hr.useRef)(!1),p=(0,hr.useRef)(!1),f=(0,hr.useMemo)(()=>e.vendors.map(b=>b.vendor_id).join(","),[e.vendors]),m=`${e.fromCoordinates.latitude},${e.fromCoordinates.longitude}`,w=t.vendorDetails?.success??!1,C=r?.getFeedback?.()?.notes;(0,hr.useEffect)(()=>{if(!p.current&&C&&C.length>0){p.current=!0;let b={};for(let T of C)T.noteId&&(b[T.noteId]={rating:T.rating??null,commentText:T.comment??null,showComment:!1});c(b)}},[C]),(0,hr.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 F=await n(a,{args:{origin:e.fromCoordinates,destinations:I}});i(F.success?{success:!0,data:F.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 h=b=>u[b]||{rating:null,commentText:null,showComment:!1},x=(b,T)=>{c(I=>({...I,[b]:{...h(b),...T}}))},g=b=>{c(T=>{let{[b]:I,...F}=T;return F})},S=(b,T)=>{r?.submitFeedback?.({notes:[{noteId:b,...T}]})},L=b=>{let T=b/1609.34;return T<.1?"< 0.1 mi":`${T.toFixed(1)} mi`};if(!t||!t.vendorDetails)return(0,ie.jsx)("div",{children:"Loading vendor details..."});let y=t.vendorDetails?.data??{},_=o?.data??[];return(0,ie.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[l&&(0,ie.jsx)("style",{children:"@keyframes hybrid-vendor-cards-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }"}),e.vendors.map((b,T)=>{let I=y[b.vendor_id],F=I?.names?.[0]?.value??"Unknown",O=I?.location?.address,N=_.find(ye=>ye.destinationIndex===T),P=N&&N.distanceMeters?L(N.distanceMeters):void 0,Q=I?.financials?.fees?.find(ye=>ye.fee_type?.includes("Hourly"))?.amount,oe=I?.avg_rating,le=I?.review_count,de=I?.verification,Ee=I?.quality_scores?.completeness_score,$=I?.subtype??[],fe=$.includes("In-Home")?"In-Home":$.includes("In-Center")?"In-Center":null,xt=I?.references_and_background_check?.background_check_status?.toLowerCase(),E=xt==="clear"||xt==="completed";return(0,ie.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,ie.jsx)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:(0,ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,ie.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:F.charAt(0).toUpperCase()}),(0,ie.jsx)("span",{style:{fontWeight:600,fontSize:"1rem",color:"#111827"},children:F})]})}),(le!=null||Ee!=null)&&(0,ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"#6b7280"},children:[oe!=null&&(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("span",{style:{color:"#facc15"},children:"\u2605"}),(0,ie.jsx)("span",{children:oe.toFixed(1)}),le!=null&&(0,ie.jsxs)("span",{style:{color:"#9ca3af"},children:["(",le," reviews)"]})]}),oe!=null&&Ee!=null?(0,ie.jsx)("span",{style:{color:"#9ca3af"},children:"\u2022"}):null,Ee!=null?(0,ie.jsxs)("span",{children:["CN Score: ",Ee]}):null]}),fe&&(0,ie.jsx)("div",{style:{color:"#6b7280"},children:fe}),O&&(0,ie.jsx)("div",{style:{color:"#6b7280"},children:O}),(0,ie.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280",minHeight:"1.25rem"},children:l?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("span",{children:"\u{1F4CD}"}),(0,ie.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,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("span",{children:"\u{1F4CD}"}),(0,ie.jsxs)("span",{children:[P," from ",e.fromLocation]})]}):null}),Q&&(0,ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280"},children:[(0,ie.jsx)("span",{children:"\u{1F4B0}"}),(0,ie.jsxs)("span",{children:["Rate: $",Q,"/hr"]})]}),b.notes&&(0,ie.jsxs)("div",{style:{color:"#374151",marginTop:"0.4rem"},children:[(0,ie.jsx)("span",{style:{marginRight:"0.25rem"},children:"\u2728"}),(0,ie.jsx)("strong",{children:"Recommendation notes"}),(0,ie.jsx)("div",{style:{marginLeft:"1.25rem",marginTop:"0.25rem",color:"#6b7280"},children:b.notes})]}),(()=>{let ye=h(b.vendor_id),Ut=ye.rating==="positive",K=ye.rating==="negative",k=U=>{h(b.vendor_id).rating===U?(g(b.vendor_id),S(b.vendor_id,{})):(x(b.vendor_id,{rating:U}),S(b.vendor_id,{rating:U,vendorId:b.vendor_id,vendorName:F}))},A=()=>{let U=h(b.vendor_id);x(b.vendor_id,{showComment:!U.showComment})},M=()=>{let B=h(b.vendor_id).commentText?.trim();B&&(x(b.vendor_id,{showComment:!1,commentText:B}),S(b.vendor_id,{comment:B,vendorId:b.vendor_id,vendorName:F}))};return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",alignItems:"center",minHeight:"1.75rem"},children:[de?.verified&&(0,ie.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,ie.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Wellthy Verified"]}),E&&(0,ie.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,ie.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Background check"]}),r&&(0,ie.jsxs)("div",{style:{marginLeft:"auto",display:"flex",gap:"0.25rem",alignItems:"center"},children:[(0,ie.jsx)("button",{onClick:()=>k("positive"),style:{background:Ut?"rgba(34, 197, 94, 0.1)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:Ut?"#22c55e":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:"This vendor was helpful",children:(0,ie.jsx)(vi,{style:{width:"1rem",height:"1rem"}})}),(0,ie.jsx)("button",{onClick:()=>k("negative"),style:{background:K?"rgba(239, 68, 68, 0.1)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:K?"#ef4444":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:"This vendor was not helpful",children:(0,ie.jsx)(yi,{style:{width:"1rem",height:"1rem"}})}),(()=>{let U=!!ye.commentText?.trim(),B=U?gi:Ln;return(0,ie.jsx)("button",{onClick:A,style:{background:ye.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:U?"#3b82f6":ye.showComment?"#6b7280":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:U?"Edit comment":"Add comment",children:(0,ie.jsx)(B,{style:{width:"1rem",height:"1rem"}})})})()]})]}),ye.showComment&&(0,ie.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,ie.jsxs)("div",{style:{display:"flex",gap:"0.5rem",alignItems:"flex-start"},children:[(0,ie.jsx)("textarea",{placeholder:"Share your thoughts about this vendor...",value:ye.commentText??"",onChange:U=>x(b.vendor_id,{commentText:U.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,ie.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.375rem"},children:[(0,ie.jsx)("button",{onClick:M,disabled:!ye.commentText?.trim(),style:{padding:"0.35rem 0.75rem",fontSize:"0.75rem",fontWeight:500,borderRadius:"0.3rem",cursor:ye.commentText?.trim()?"pointer":"not-allowed",background:"#3b82f6",border:"none",color:"#ffffff",opacity:ye.commentText?.trim()?1:.5},children:"Save"}),(0,ie.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"})]})]})})]})})()]},b.vendor_id)})]})}var gZ=ce(bt(),1),wk=ce(Ze(),1),vZ=bs({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 Wa=ce(Ze(),1),xse=[Eh({widgetType:"person-card",schema:Pt.object({name:Pt.string(),photoUri:Pt.string().optional().describe("URL to a photo of the person"),details:Pt.record(Pt.string(),Pt.any()).optional()}).describe("showing a person card with name, photo and additional details"),render:e=>(0,Wa.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,Wa.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[e.photoUri&&(0,Wa.jsx)("img",{src:e.photoUri,alt:e.name,style:{width:"3rem",height:"3rem",borderRadius:"9999px",objectFit:"cover",flexShrink:0},loading:"lazy"}),(0,Wa.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,Wa.jsx)("div",{style:{fontWeight:600,fontSize:"1rem",color:"#111827",marginBottom:"0.25rem"},children:e.name}),e.details?(0,Wa.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Object.entries(e.details).map(([t,a])=>(0,Wa.jsxs)("div",{style:{display:"flex",gap:"0.5rem",fontSize:"0.875rem"},children:[(0,Wa.jsxs)("span",{style:{color:"#6b7280",fontWeight:500,minWidth:"fit-content"},children:[t,":"]}),(0,Wa.jsx)("span",{style:{color:"#374151"},children:String(a)})]},t))}):null]})]})})}),Eh({widgetType:"link",schema:Pt.object({uri:Pt.string().url(),text:Pt.string().optional()}).describe("rendering a clickable link"),render:e=>(0,Wa.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 SO=e=>{let t=e?"86dc78e28f933225750d9bcff7c94b18-CPgsswom7FkUYvplmy6H":"CPgsswom7FkUYvplmy6H",a=e?"82a0f402ed32bf51cfcb2c3baeb67d57-DwsbeKAxOctXSGgghvW8":"DwsbeKAxOctXSGgghvW8";return[Eh({widgetType:"vendor-cards",schema:xO,enrich:{vendorDetails:{toolId:t,inputs:{vendorIds:"${vendors|map('vendor_id')|join(',')}"}}},render:(n,r,{messageContext:o,invokeTool:i})=>(0,Wa.jsx)(bO,{payload:n,serverEnriched:r,distanceMatrixToolId:a,invokeTool:i,messageContext:o})})]};var Mh=ce(Ze(),1),_k=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=`
|
|
121
|
+
position: fixed;
|
|
122
|
+
bottom: 20px;
|
|
123
|
+
right: 20px;
|
|
124
|
+
width: 384px;
|
|
125
|
+
height: 500px;
|
|
126
|
+
z-index: 999999;
|
|
127
|
+
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
|
|
128
|
+
border-radius: 12px;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
`,document.body.appendChild(this.container));this.container&&(this.container.style.display="block"),this.root=(0,wO.createRoot)(this.container);let{containerId:t,...a}=this.config,n=a.anchor?.enabled?$h:Us;this.root.render((0,Mh.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?$h:Us;this.root.render((0,Mh.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 jm({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)}}},Je=null;window.ChatWidget={init:async e=>{Je?Je.updateConfig(e):Je=new _k(e),await Je.init()},destroy:()=>{Je&&(Je.destroy(),Je=null)},hide:()=>{Je&&(Je.openOverride=!1,Je.container&&(Je.container.style.display="block"),Je.updateConfig({}))},show:()=>{if(Je){if(Je.openOverride=!0,Je.container&&(Je.container.style.display="block"),Je.container&&Je.container.children.length===0&&Je.root){let{containerId:e,...t}=Je.config,a=t.anchor?.enabled?$h:Us;Je.root.render((0,Mh.jsx)(a,{...t,openOverride:Je.openOverride,onToggleOpen:n=>{Je.openOverride=n,Je.updateConfig({})}}))}Je.updateConfig({})}},updateConfig:e=>{Je&&Je.updateConfig(e)},updateToken:e=>{Je&&Je.updateToken(e)},getVendorCardsWidget:SO,createWidget:vO};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 TO(yZ);})();
|
|
131
|
+
/*! Bundled license information:
|
|
132
|
+
|
|
133
|
+
scheduler/cjs/scheduler.production.js:
|
|
134
|
+
(**
|
|
135
|
+
* @license React
|
|
136
|
+
* scheduler.production.js
|
|
137
|
+
*
|
|
138
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the MIT license found in the
|
|
141
|
+
* LICENSE file in the root directory of this source tree.
|
|
142
|
+
*)
|
|
143
|
+
|
|
144
|
+
react/cjs/react.production.js:
|
|
145
|
+
(**
|
|
146
|
+
* @license React
|
|
147
|
+
* react.production.js
|
|
148
|
+
*
|
|
149
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the MIT license found in the
|
|
152
|
+
* LICENSE file in the root directory of this source tree.
|
|
153
|
+
*)
|
|
154
|
+
|
|
155
|
+
react-dom/cjs/react-dom.production.js:
|
|
156
|
+
(**
|
|
157
|
+
* @license React
|
|
158
|
+
* react-dom.production.js
|
|
159
|
+
*
|
|
160
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the MIT license found in the
|
|
163
|
+
* LICENSE file in the root directory of this source tree.
|
|
164
|
+
*)
|
|
165
|
+
|
|
166
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
167
|
+
(**
|
|
168
|
+
* @license React
|
|
169
|
+
* react-dom-client.production.js
|
|
170
|
+
*
|
|
171
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the MIT license found in the
|
|
174
|
+
* LICENSE file in the root directory of this source tree.
|
|
175
|
+
*)
|
|
176
|
+
|
|
177
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
178
|
+
(**
|
|
179
|
+
* @license React
|
|
180
|
+
* react-jsx-runtime.production.js
|
|
181
|
+
*
|
|
182
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the MIT license found in the
|
|
185
|
+
* LICENSE file in the root directory of this source tree.
|
|
186
|
+
*)
|
|
187
|
+
|
|
188
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
189
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
190
|
+
lucide-react/dist/esm/Icon.js:
|
|
191
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
192
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
193
|
+
lucide-react/dist/esm/icons/circle-stop.js:
|
|
194
|
+
lucide-react/dist/esm/icons/message-square-text.js:
|
|
195
|
+
lucide-react/dist/esm/icons/message-square.js:
|
|
196
|
+
lucide-react/dist/esm/icons/mic-off.js:
|
|
197
|
+
lucide-react/dist/esm/icons/mic.js:
|
|
198
|
+
lucide-react/dist/esm/icons/send.js:
|
|
199
|
+
lucide-react/dist/esm/icons/thumbs-up.js:
|
|
200
|
+
lucide-react/dist/esm/icons/thumbs-down.js:
|
|
201
|
+
lucide-react/dist/esm/icons/x.js:
|
|
202
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
203
|
+
(**
|
|
204
|
+
* @license lucide-react v0.553.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*)
|
|
209
|
+
*/
|
|
210
|
+
//# sourceMappingURL=widget.global.js.map
|