@horneross/embeds 1.0.230
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/chatbox/index.css +2 -0
- package/dist/chatbox/index.js +761 -0
- package/dist/form/index.css +2 -0
- package/dist/form/index.js +271 -0
- package/package.json +44 -0
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
var $X=Object.create;var Db=Object.defineProperty;var jX=Object.getOwnPropertyDescriptor;var HX=Object.getOwnPropertyNames;var VX=Object.getPrototypeOf,qX=Object.prototype.hasOwnProperty;var GX=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var WS=(e,t)=>()=>(e&&(t=e(e=0)),t);var Qt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nn=(e,t)=>{for(var r in t)Db(e,r,{get:t[r],enumerable:!0})},B4=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of HX(t))!qX.call(e,n)&&n!==r&&Db(e,n,{get:()=>t[n],enumerable:!(a=jX(t,n))||a.enumerable});return e};var O=(e,t,r)=>(r=e!=null?$X(VX(e)):{},B4(t||!e||!e.__esModule?Db(r,"default",{value:e,enumerable:!0}):r,e)),ZX=e=>B4(Db({},"__esModule",{value:!0}),e);var h,c=WS(()=>{h={}});var J4=Qt(lt=>{"use strict";c();var XS=Symbol.for("react.transitional.element"),XX=Symbol.for("react.portal"),JX=Symbol.for("react.fragment"),QX=Symbol.for("react.strict_mode"),eJ=Symbol.for("react.profiler"),tJ=Symbol.for("react.consumer"),rJ=Symbol.for("react.context"),aJ=Symbol.for("react.forward_ref"),nJ=Symbol.for("react.suspense"),oJ=Symbol.for("react.memo"),G4=Symbol.for("react.lazy"),iJ=Symbol.for("react.activity"),j4=Symbol.iterator;function sJ(e){return e===null||typeof e!="object"?null:(e=j4&&e[j4]||e["@@iterator"],typeof e=="function"?e:null)}var Z4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W4=Object.assign,Y4={};function gf(e,t,r){this.props=e,this.context=t,this.refs=Y4,this.updater=r||Z4}gf.prototype.isReactComponent={};gf.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")};gf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function K4(){}K4.prototype=gf.prototype;function JS(e,t,r){this.props=e,this.context=t,this.refs=Y4,this.updater=r||Z4}var QS=JS.prototype=new K4;QS.constructor=JS;W4(QS,gf.prototype);QS.isPureReactComponent=!0;var H4=Array.isArray;function KS(){}var hr={H:null,A:null,T:null,S:null},X4=Object.prototype.hasOwnProperty;function eI(e,t,r){var a=r.ref;return{$$typeof:XS,type:e,key:t,ref:a!==void 0?a:null,props:r}}function lJ(e,t){return eI(e.type,t,e.props)}function tI(e){return typeof e=="object"&&e!==null&&e.$$typeof===XS}function uJ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var V4=/\/+/g;function YS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uJ(""+e.key):t.toString(36)}function cJ(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(KS,KS):(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 hf(e,t,r,a,n){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 XS:case XX:i=!0;break;case G4:return i=e._init,hf(i(e._payload),t,r,a,n)}}if(i)return n=n(e),i=a===""?"."+YS(e,0):a,H4(n)?(r="",i!=null&&(r=i.replace(V4,"$&/")+"/"),hf(n,t,r,"",function(u){return u})):n!=null&&(tI(n)&&(n=lJ(n,r+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(V4,"$&/")+"/")+i)),t.push(n)),1;i=0;var s=a===""?".":a+":";if(H4(e))for(var l=0;l<e.length;l++)a=e[l],o=s+YS(a,l),i+=hf(a,t,r,o,n);else if(l=sJ(e),typeof l=="function")for(e=l.call(e),l=0;!(a=e.next()).done;)a=a.value,o=s+YS(a,l++),i+=hf(a,t,r,o,n);else if(o==="object"){if(typeof e.then=="function")return hf(cJ(e),t,r,a,n);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 Ub(e,t,r){if(e==null)return e;var a=[],n=0;return hf(e,a,"","",function(o){return t.call(r,o,n++)}),a}function dJ(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var q4=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)},fJ={map:Ub,forEach:function(e,t,r){Ub(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ub(e,function(){t++}),t},toArray:function(e){return Ub(e,function(t){return t})||[]},only:function(e){if(!tI(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};lt.Activity=iJ;lt.Children=fJ;lt.Component=gf;lt.Fragment=JX;lt.Profiler=eJ;lt.PureComponent=JS;lt.StrictMode=QX;lt.Suspense=nJ;lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=hr;lt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return hr.H.useMemoCache(e)}};lt.cache=function(e){return function(){return e.apply(null,arguments)}};lt.cacheSignal=function(){return null};lt.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=W4({},e.props),n=e.key;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)!X4.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(a[o]=t[o]);var o=arguments.length-2;if(o===1)a.children=r;else if(1<o){for(var i=Array(o),s=0;s<o;s++)i[s]=arguments[s+2];a.children=i}return eI(e.type,n,a)};lt.createContext=function(e){return e={$$typeof:rJ,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:tJ,_context:e},e};lt.createElement=function(e,t,r){var a,n={},o=null;if(t!=null)for(a in t.key!==void 0&&(o=""+t.key),t)X4.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(n[a]=t[a]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];n.children=s}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)n[a]===void 0&&(n[a]=i[a]);return eI(e,o,n)};lt.createRef=function(){return{current:null}};lt.forwardRef=function(e){return{$$typeof:aJ,render:e}};lt.isValidElement=tI;lt.lazy=function(e){return{$$typeof:G4,_payload:{_status:-1,_result:e},_init:dJ}};lt.memo=function(e,t){return{$$typeof:oJ,type:e,compare:t===void 0?null:t}};lt.startTransition=function(e){var t=hr.T,r={};hr.T=r;try{var a=e(),n=hr.S;n!==null&&n(r,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(KS,q4)}catch(o){q4(o)}finally{t!==null&&r.types!==null&&(t.types=r.types),hr.T=t}};lt.unstable_useCacheRefresh=function(){return hr.H.useCacheRefresh()};lt.use=function(e){return hr.H.use(e)};lt.useActionState=function(e,t,r){return hr.H.useActionState(e,t,r)};lt.useCallback=function(e,t){return hr.H.useCallback(e,t)};lt.useContext=function(e){return hr.H.useContext(e)};lt.useDebugValue=function(){};lt.useDeferredValue=function(e,t){return hr.H.useDeferredValue(e,t)};lt.useEffect=function(e,t){return hr.H.useEffect(e,t)};lt.useEffectEvent=function(e){return hr.H.useEffectEvent(e)};lt.useId=function(){return hr.H.useId()};lt.useImperativeHandle=function(e,t,r){return hr.H.useImperativeHandle(e,t,r)};lt.useInsertionEffect=function(e,t){return hr.H.useInsertionEffect(e,t)};lt.useLayoutEffect=function(e,t){return hr.H.useLayoutEffect(e,t)};lt.useMemo=function(e,t){return hr.H.useMemo(e,t)};lt.useOptimistic=function(e,t){return hr.H.useOptimistic(e,t)};lt.useReducer=function(e,t,r){return hr.H.useReducer(e,t,r)};lt.useRef=function(e){return hr.H.useRef(e)};lt.useState=function(e){return hr.H.useState(e)};lt.useSyncExternalStore=function(e,t,r){return hr.H.useSyncExternalStore(e,t,r)};lt.useTransition=function(){return hr.H.useTransition()};lt.version="19.2.0"});var re=Qt(($_e,Q4)=>{"use strict";c();Q4.exports=J4()});var rI=Qt((H_e,eP)=>{c();eP.exports=function(t,r){var a="000000000"+t;return a.substr(a.length-r)}});var rP=Qt((q_e,tP)=>{c();var pJ=rI(),mJ=typeof window=="object"?window:self,hJ=Object.keys(mJ).length,gJ=navigator.mimeTypes?navigator.mimeTypes.length:0,yJ=pJ((gJ+navigator.userAgent.length).toString(36)+hJ.toString(36),4);tP.exports=function(){return yJ}});var iP=Qt((Z_e,oP)=>{c();var aI,aP=typeof window<"u"&&(window.crypto||window.msCrypto)||typeof self<"u"&&self.crypto;aP?(nP=Math.pow(2,32)-1,aI=function(){return Math.abs(aP.getRandomValues(new Uint32Array(1))[0]/nP)}):aI=Math.random;var nP;oP.exports=aI});var _h=Qt((Y_e,cP)=>{c();var zb=rP(),sP=rI(),bJ=iP(),Sh=0,oI=4,Fb=36,lP=Math.pow(Fb,oI);function nI(){return sP((bJ()*lP<<0).toString(Fb),oI)}function uP(){return Sh=Sh<lP?Sh:0,Sh++,Sh-1}function Ih(){var e="c",t=new Date().getTime().toString(Fb),r=sP(uP().toString(Fb),oI),a=zb(),n=nI()+nI();return e+t+r+a+n}Ih.slug=function(){var t=new Date().getTime().toString(36),r=uP().toString(36).slice(-4),a=zb().slice(0,1)+zb().slice(-1),n=nI().slice(-2);return t.slice(-2)+r+a+n};Ih.isCuid=function(t){return typeof t!="string"?!1:!!t.startsWith("c")};Ih.isSlug=function(t){if(typeof t!="string")return!1;var r=t.length;return r>=7&&r<=10};Ih.fingerprint=zb;cP.exports=Ih});var AP=Qt((X_e,CP)=>{"use strict";c();var hI=Object.defineProperty,vJ=Object.getOwnPropertyDescriptor,xJ=Object.getOwnPropertyNames,wJ=Object.prototype.hasOwnProperty,mP=(e,t)=>{for(var r in t)hI(e,r,{get:t[r],enumerable:!0})},TJ=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of xJ(t))!wJ.call(e,n)&&n!==r&&hI(e,n,{get:()=>t[n],enumerable:!(a=vJ(t,n))||a.enumerable});return e},EJ=e=>TJ(hI({},"__esModule",{value:!0}),e),hP={};mP(hP,{Decimal:()=>kQ,Public:()=>gP,getRuntime:()=>OJ,makeStrictEnum:()=>CJ,objectEnumValues:()=>_J});CP.exports=EJ(hP);var gP={};mP(gP,{validator:()=>SJ});function SJ(...e){return t=>t}var Bb=Symbol(),iI=new WeakMap,IJ=class{constructor(e){e===Bb?iI.set(this,"Prisma.".concat(this._getName())):iI.set(this,"new Prisma.".concat(this._getNamespace(),".").concat(this._getName(),"()"))}_getName(){return this.constructor.name}toString(){return iI.get(this)}},gI=class extends IJ{_getNamespace(){return"NullTypes"}},sI=class extends gI{};yI(sI,"DbNull");var lI=class extends gI{};yI(lI,"JsonNull");var uI=class extends gI{};yI(uI,"AnyNull");var _J={classes:{DbNull:sI,JsonNull:lI,AnyNull:uI},instances:{DbNull:new sI(Bb),JsonNull:new lI(Bb),AnyNull:new uI(Bb)}};function yI(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}var kJ=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function CJ(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!kJ.has(r))throw new TypeError("Invalid enum value: ".concat(String(r)))}})}var AJ="Cloudflare-Workers",LJ="node";function NJ(){var e,t,r;return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":((e=globalThis.navigator)==null?void 0:e.userAgent)===AJ?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":((r=(t=globalThis.process)==null?void 0:t.release)==null?void 0:r.name)===LJ?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var RJ={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function OJ(){let e=NJ();return{id:e,prettyName:RJ[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var yf=9e15,zl=1e9,cI="0123456789abcdef",jb="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Hb="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",dI={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-yf,maxE:yf,crypto:!1},yP,vs,at=!0,qb="[DecimalError] ",Ul=qb+"Invalid argument: ",bP=qb+"Precision limit exceeded",vP=qb+"crypto unavailable",xP="[object Decimal]",Ga=Math.floor,fa=Math.pow,DJ=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,MJ=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,PJ=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,wP=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ri=1e7,Ge=7,UJ=9007199254740991,zJ=jb.length-1,fI=Hb.length-1,ue={toStringTag:xP};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),$e(e)};ue.ceil=function(){return $e(new this.constructor(this),this.e+1,2)};ue.clampedTo=ue.clamp=function(e,t){var r,a=this,n=a.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(Ul+t);return r=a.cmp(e),r<0?e:a.cmp(t)>0?t:new n(a)};ue.comparedTo=ue.cmp=function(e){var t,r,a,n,o=this,i=o.d,s=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!i||!s)return!l||!u?NaN:l!==u?l:i===s?0:!i^l<0?1:-1;if(!i[0]||!s[0])return i[0]?l:s[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(a=i.length,n=s.length,t=0,r=a<n?a:n;t<r;++t)if(i[t]!==s[t])return i[t]>s[t]^l<0?1:-1;return a===n?0:a>n^l<0?1:-1};ue.cosine=ue.cos=function(){var e,t,r=this,a=r.constructor;return r.d?r.d[0]?(e=a.precision,t=a.rounding,a.precision=e+Math.max(r.e,r.sd())+Ge,a.rounding=1,r=FJ(a,_P(a,r)),a.precision=e,a.rounding=t,$e(vs==2||vs==3?r.neg():r,e,t,!0)):new a(1):new a(NaN)};ue.cubeRoot=ue.cbrt=function(){var e,t,r,a,n,o,i,s,l,u,d=this,f=d.constructor;if(!d.isFinite()||d.isZero())return new f(d);for(at=!1,o=d.s*fa(d.s*d,1/3),!o||Math.abs(o)==1/0?(r=Da(d.d),e=d.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=fa(r,1/3),e=Ga((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),a=new f(r),a.s=d.s):a=new f(o.toString()),i=(e=f.precision)+3;;)if(s=a,l=s.times(s).times(s),u=l.plus(d),a=nr(u.plus(d).times(s),u.plus(l),i+2,1),Da(s.d).slice(0,i)===(r=Da(a.d)).slice(0,i))if(r=r.slice(i-3,i+1),r=="9999"||!n&&r=="4999"){if(!n&&($e(s,e+1,0),s.times(s).times(s).eq(d))){a=s;break}i+=4,n=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&($e(a,e+1,1),t=!a.times(a).times(a).eq(d));break}return at=!0,$e(a,e,f.rounding,t)};ue.decimalPlaces=ue.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-Ga(this.e/Ge))*Ge,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};ue.dividedBy=ue.div=function(e){return nr(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.divToInt=function(e){var t=this,r=t.constructor;return $e(nr(t,new r(e),0,1,1),r.precision,r.rounding)};ue.equals=ue.eq=function(e){return this.cmp(e)===0};ue.floor=function(){return $e(new this.constructor(this),this.e+1,3)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){var t=this.cmp(e);return t==1||t===0};ue.hyperbolicCosine=ue.cosh=function(){var e,t,r,a,n,o=this,i=o.constructor,s=new i(1);if(!o.isFinite())return new i(o.s?1/0:NaN);if(o.isZero())return s;r=i.precision,a=i.rounding,i.precision=r+Math.max(o.e,o.sd())+4,i.rounding=1,n=o.d.length,n<32?(e=Math.ceil(n/3),t=(1/Zb(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=bf(i,1,o.times(t),new i(1),!0);for(var l,u=e,d=new i(8);u--;)l=o.times(o),o=s.minus(l.times(d.minus(l.times(d))));return $e(o,i.precision=r,i.rounding=a,!0)};ue.hyperbolicSine=ue.sinh=function(){var e,t,r,a,n=this,o=n.constructor;if(!n.isFinite()||n.isZero())return new o(n);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(n.e,n.sd())+4,o.rounding=1,a=n.d.length,a<3)n=bf(o,2,n,n,!0);else{e=1.4*Math.sqrt(a),e=e>16?16:e|0,n=n.times(1/Zb(5,e)),n=bf(o,2,n,n,!0);for(var i,s=new o(5),l=new o(16),u=new o(20);e--;)i=n.times(n),n=n.times(s.plus(i.times(l.times(i).plus(u))))}return o.precision=t,o.rounding=r,$e(n,t,r,!0)};ue.hyperbolicTangent=ue.tanh=function(){var e,t,r=this,a=r.constructor;return r.isFinite()?r.isZero()?new a(r):(e=a.precision,t=a.rounding,a.precision=e+7,a.rounding=1,nr(r.sinh(),r.cosh(),a.precision=e,a.rounding=t)):new a(r.s)};ue.inverseCosine=ue.acos=function(){var e,t=this,r=t.constructor,a=t.abs().cmp(1),n=r.precision,o=r.rounding;return a!==-1?a===0?t.isNeg()?ti(r,n,o):new r(0):new r(NaN):t.isZero()?ti(r,n+4,o).times(.5):(r.precision=n+6,r.rounding=1,t=t.asin(),e=ti(r,n+4,o).times(.5),r.precision=n,r.rounding=o,e.minus(t))};ue.inverseHyperbolicCosine=ue.acosh=function(){var e,t,r=this,a=r.constructor;return r.lte(1)?new a(r.eq(1)?0:NaN):r.isFinite()?(e=a.precision,t=a.rounding,a.precision=e+Math.max(Math.abs(r.e),r.sd())+4,a.rounding=1,at=!1,r=r.times(r).minus(1).sqrt().plus(r),at=!0,a.precision=e,a.rounding=t,r.ln()):new a(r)};ue.inverseHyperbolicSine=ue.asinh=function(){var e,t,r=this,a=r.constructor;return!r.isFinite()||r.isZero()?new a(r):(e=a.precision,t=a.rounding,a.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,a.rounding=1,at=!1,r=r.times(r).plus(1).sqrt().plus(r),at=!0,a.precision=e,a.rounding=t,r.ln())};ue.inverseHyperbolicTangent=ue.atanh=function(){var e,t,r,a,n=this,o=n.constructor;return n.isFinite()?n.e>=0?new o(n.abs().eq(1)?n.s/0:n.isZero()?n:NaN):(e=o.precision,t=o.rounding,a=n.sd(),Math.max(a,e)<2*-n.e-1?$e(new o(n),e,t,!0):(o.precision=r=a-n.e,n=nr(n.plus(1),new o(1).minus(n),r+e,1),o.precision=e+4,o.rounding=1,n=n.ln(),o.precision=e,o.rounding=t,n.times(.5))):new o(NaN)};ue.inverseSine=ue.asin=function(){var e,t,r,a,n=this,o=n.constructor;return n.isZero()?new o(n):(t=n.abs().cmp(1),r=o.precision,a=o.rounding,t!==-1?t===0?(e=ti(o,r+4,a).times(.5),e.s=n.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,n=n.div(new o(1).minus(n.times(n)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=a,n.times(2)))};ue.inverseTangent=ue.atan=function(){var e,t,r,a,n,o,i,s,l,u=this,d=u.constructor,f=d.precision,p=d.rounding;if(u.isFinite()){if(u.isZero())return new d(u);if(u.abs().eq(1)&&f+4<=fI)return i=ti(d,f+4,p).times(.25),i.s=u.s,i}else{if(!u.s)return new d(NaN);if(f+4<=fI)return i=ti(d,f+4,p).times(.5),i.s=u.s,i}for(d.precision=s=f+10,d.rounding=1,r=Math.min(28,s/Ge+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(at=!1,t=Math.ceil(s/Ge),a=1,l=u.times(u),i=new d(u),n=u;e!==-1;)if(n=n.times(l),o=i.minus(n.div(a+=2)),n=n.times(l),i=o.plus(n.div(a+=2)),i.d[t]!==void 0)for(e=t;i.d[e]===o.d[e]&&e--;);return r&&(i=i.times(2<<r-1)),at=!0,$e(i,d.precision=f,d.rounding=p,!0)};ue.isFinite=function(){return!!this.d};ue.isInteger=ue.isInt=function(){return!!this.d&&Ga(this.e/Ge)>this.d.length-2};ue.isNaN=function(){return!this.s};ue.isNegative=ue.isNeg=function(){return this.s<0};ue.isPositive=ue.isPos=function(){return this.s>0};ue.isZero=function(){return!!this.d&&this.d[0]===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.log=function(e){var t,r,a,n,o,i,s,l,u=this,d=u.constructor,f=d.precision,p=d.rounding,m=5;if(e==null)e=new d(10),t=!0;else{if(e=new d(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new d(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new d(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(n=r[0];n%10===0;)n/=10;o=n!==1}if(at=!1,s=f+m,i=Pl(u,s),a=t?Vb(d,s+10):Pl(e,s),l=nr(i,a,s,1),kh(l.d,n=f,p))do if(s+=10,i=Pl(u,s),a=t?Vb(d,s+10):Pl(e,s),l=nr(i,a,s,1),!o){+Da(l.d).slice(n+1,n+15)+1==1e14&&(l=$e(l,f+1,0));break}while(kh(l.d,n+=10,p));return at=!0,$e(l,f,p)};ue.minus=ue.sub=function(e){var t,r,a,n,o,i,s,l,u,d,f,p,m=this,g=m.constructor;if(e=new g(e),!m.d||!e.d)return!m.s||!e.s?e=new g(NaN):m.d?e.s=-e.s:e=new g(e.d||m.s!==e.s?m:NaN),e;if(m.s!=e.s)return e.s=-e.s,m.plus(e);if(u=m.d,p=e.d,s=g.precision,l=g.rounding,!u[0]||!p[0]){if(p[0])e.s=-e.s;else if(u[0])e=new g(m);else return new g(l===3?-0:0);return at?$e(e,s,l):e}if(r=Ga(e.e/Ge),d=Ga(m.e/Ge),u=u.slice(),o=d-r,o){for(f=o<0,f?(t=u,o=-o,i=p.length):(t=p,r=d,i=u.length),a=Math.max(Math.ceil(s/Ge),i)+2,o>a&&(o=a,t.length=1),t.reverse(),a=o;a--;)t.push(0);t.reverse()}else{for(a=u.length,i=p.length,f=a<i,f&&(i=a),a=0;a<i;a++)if(u[a]!=p[a]){f=u[a]<p[a];break}o=0}for(f&&(t=u,u=p,p=t,e.s=-e.s),i=u.length,a=p.length-i;a>0;--a)u[i++]=0;for(a=p.length;a>o;){if(u[--a]<p[a]){for(n=a;n&&u[--n]===0;)u[n]=ri-1;--u[n],u[a]+=ri}u[a]-=p[a]}for(;u[--i]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(e.d=u,e.e=Gb(u,r),at?$e(e,s,l):e):new g(l===3?-0:0)};ue.modulo=ue.mod=function(e){var t,r=this,a=r.constructor;return e=new a(e),!r.d||!e.s||e.d&&!e.d[0]?new a(NaN):!e.d||r.d&&!r.d[0]?$e(new a(r),a.precision,a.rounding):(at=!1,a.modulo==9?(t=nr(r,e.abs(),0,3,1),t.s*=e.s):t=nr(r,e,0,a.modulo,1),t=t.times(e),at=!0,r.minus(t))};ue.naturalExponential=ue.exp=function(){return pI(this)};ue.naturalLogarithm=ue.ln=function(){return Pl(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s,$e(e)};ue.plus=ue.add=function(e){var t,r,a,n,o,i,s,l,u,d,f=this,p=f.constructor;if(e=new p(e),!f.d||!e.d)return!f.s||!e.s?e=new p(NaN):f.d||(e=new p(e.d||f.s===e.s?f:NaN)),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(u=f.d,d=e.d,s=p.precision,l=p.rounding,!u[0]||!d[0])return d[0]||(e=new p(f)),at?$e(e,s,l):e;if(o=Ga(f.e/Ge),a=Ga(e.e/Ge),u=u.slice(),n=o-a,n){for(n<0?(r=u,n=-n,i=d.length):(r=d,a=o,i=u.length),o=Math.ceil(s/Ge),i=o>i?o+1:i+1,n>i&&(n=i,r.length=1),r.reverse();n--;)r.push(0);r.reverse()}for(i=u.length,n=d.length,i-n<0&&(n=i,r=d,d=u,u=r),t=0;n;)t=(u[--n]=u[n]+d[n]+t)/ri|0,u[n]%=ri;for(t&&(u.unshift(t),++a),i=u.length;u[--i]==0;)u.pop();return e.d=u,e.e=Gb(u,a),at?$e(e,s,l):e};ue.precision=ue.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ul+e);return r.d?(t=TP(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};ue.round=function(){var e=this,t=e.constructor;return $e(new t(e),e.e+1,t.rounding)};ue.sine=ue.sin=function(){var e,t,r=this,a=r.constructor;return r.isFinite()?r.isZero()?new a(r):(e=a.precision,t=a.rounding,a.precision=e+Math.max(r.e,r.sd())+Ge,a.rounding=1,r=$J(a,_P(a,r)),a.precision=e,a.rounding=t,$e(vs>2?r.neg():r,e,t,!0)):new a(NaN)};ue.squareRoot=ue.sqrt=function(){var e,t,r,a,n,o,i=this,s=i.d,l=i.e,u=i.s,d=i.constructor;if(u!==1||!s||!s[0])return new d(!u||u<0&&(!s||s[0])?NaN:s?i:1/0);for(at=!1,u=Math.sqrt(+i),u==0||u==1/0?(t=Da(s),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=Ga((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),a=new d(t)):a=new d(u.toString()),r=(l=d.precision)+3;;)if(o=a,a=o.plus(nr(i,o,r+2,1)).times(.5),Da(o.d).slice(0,r)===(t=Da(a.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!n&&t=="4999"){if(!n&&($e(o,l+1,0),o.times(o).eq(i))){a=o;break}r+=4,n=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&($e(a,l+1,1),e=!a.times(a).eq(i));break}return at=!0,$e(a,l,d.rounding,e)};ue.tangent=ue.tan=function(){var e,t,r=this,a=r.constructor;return r.isFinite()?r.isZero()?new a(r):(e=a.precision,t=a.rounding,a.precision=e+10,a.rounding=1,r=r.sin(),r.s=1,r=nr(r,new a(1).minus(r.times(r)).sqrt(),e+10,0),a.precision=e,a.rounding=t,$e(vs==2||vs==4?r.neg():r,e,t,!0)):new a(NaN)};ue.times=ue.mul=function(e){var t,r,a,n,o,i,s,l,u,d=this,f=d.constructor,p=d.d,m=(e=new f(e)).d;if(e.s*=d.s,!p||!p[0]||!m||!m[0])return new f(!e.s||p&&!p[0]&&!m||m&&!m[0]&&!p?NaN:!p||!m?e.s/0:e.s*0);for(r=Ga(d.e/Ge)+Ga(e.e/Ge),l=p.length,u=m.length,l<u&&(o=p,p=m,m=o,i=l,l=u,u=i),o=[],i=l+u,a=i;a--;)o.push(0);for(a=u;--a>=0;){for(t=0,n=l+a;n>a;)s=o[n]+m[a]*p[n-a-1]+t,o[n--]=s%ri|0,t=s/ri|0;o[n]=(o[n]+t)%ri|0}for(;!o[--i];)o.pop();return t?++r:o.shift(),e.d=o,e.e=Gb(o,r),at?$e(e,f.precision,f.rounding):e};ue.toBinary=function(e,t){return bI(this,2,e,t)};ue.toDecimalPlaces=ue.toDP=function(e,t){var r=this,a=r.constructor;return r=new a(r),e===void 0?r:(En(e,0,zl),t===void 0?t=a.rounding:En(t,0,8),$e(r,e+r.e+1,t))};ue.toExponential=function(e,t){var r,a=this,n=a.constructor;return e===void 0?r=Oi(a,!0):(En(e,0,zl),t===void 0?t=n.rounding:En(t,0,8),a=$e(new n(a),e+1,t),r=Oi(a,!0,e+1)),a.isNeg()&&!a.isZero()?"-"+r:r};ue.toFixed=function(e,t){var r,a,n=this,o=n.constructor;return e===void 0?r=Oi(n):(En(e,0,zl),t===void 0?t=o.rounding:En(t,0,8),a=$e(new o(n),e+n.e+1,t),r=Oi(a,!1,e+a.e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};ue.toFraction=function(e){var t,r,a,n,o,i,s,l,u,d,f,p,m=this,g=m.d,x=m.constructor;if(!g)return new x(m);if(u=r=new x(1),a=l=new x(0),t=new x(a),o=t.e=TP(g)-m.e-1,i=o%Ge,t.d[0]=fa(10,i<0?Ge+i:i),e==null)e=o>0?t:u;else{if(s=new x(e),!s.isInt()||s.lt(u))throw Error(Ul+s);e=s.gt(t)?o>0?t:u:s}for(at=!1,s=new x(Da(g)),d=x.precision,x.precision=o=g.length*Ge*2;f=nr(s,t,0,1,1),n=r.plus(f.times(a)),n.cmp(e)!=1;)r=a,a=n,n=u,u=l.plus(f.times(n)),l=n,n=t,t=s.minus(f.times(n)),s=n;return n=nr(e.minus(r),a,0,1,1),l=l.plus(n.times(u)),r=r.plus(n.times(a)),l.s=u.s=m.s,p=nr(u,a,o,1).minus(m).abs().cmp(nr(l,r,o,1).minus(m).abs())<1?[u,a]:[l,r],x.precision=d,at=!0,p};ue.toHexadecimal=ue.toHex=function(e,t){return bI(this,16,e,t)};ue.toNearest=function(e,t){var r=this,a=r.constructor;if(r=new a(r),e==null){if(!r.d)return r;e=new a(1),t=a.rounding}else{if(e=new a(e),t===void 0?t=a.rounding:En(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(at=!1,r=nr(r,e,0,t,1).times(e),at=!0,$e(r)):(e.s=r.s,r=e),r};ue.toNumber=function(){return+this};ue.toOctal=function(e,t){return bI(this,8,e,t)};ue.toPower=ue.pow=function(e){var t,r,a,n,o,i,s=this,l=s.constructor,u=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(fa(+s,u));if(s=new l(s),s.eq(1))return s;if(a=l.precision,o=l.rounding,e.eq(1))return $e(s,a,o);if(t=Ga(e.e/Ge),t>=e.d.length-1&&(r=u<0?-u:u)<=UJ)return n=EP(l,s,r,a),e.s<0?new l(1).div(n):$e(n,a,o);if(i=s.s,i<0){if(t<e.d.length-1)return new l(NaN);if(e.d[t]&1||(i=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=i,s}return r=fa(+s,u),t=r==0||!isFinite(r)?Ga(u*(Math.log("0."+Da(s.d))/Math.LN10+s.e+1)):new l(r+"").e,t>l.maxE+1||t<l.minE-1?new l(t>0?i/0:0):(at=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),n=pI(e.times(Pl(s,a+r)),a),n.d&&(n=$e(n,a+5,1),kh(n.d,a,o)&&(t=a+10,n=$e(pI(e.times(Pl(s,t+r)),t),t+5,1),+Da(n.d).slice(a+1,a+15)+1==1e14&&(n=$e(n,a+1,0)))),n.s=i,at=!0,l.rounding=o,$e(n,a,o))};ue.toPrecision=function(e,t){var r,a=this,n=a.constructor;return e===void 0?r=Oi(a,a.e<=n.toExpNeg||a.e>=n.toExpPos):(En(e,1,zl),t===void 0?t=n.rounding:En(t,0,8),a=$e(new n(a),e,t),r=Oi(a,e<=a.e||a.e<=n.toExpNeg,e)),a.isNeg()&&!a.isZero()?"-"+r:r};ue.toSignificantDigits=ue.toSD=function(e,t){var r=this,a=r.constructor;return e===void 0?(e=a.precision,t=a.rounding):(En(e,1,zl),t===void 0?t=a.rounding:En(t,0,8)),$e(new a(r),e,t)};ue.toString=function(){var e=this,t=e.constructor,r=Oi(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};ue.truncated=ue.trunc=function(){return $e(new this.constructor(this),this.e+1,1)};ue.valueOf=ue.toJSON=function(){var e=this,t=e.constructor,r=Oi(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Da(e){var t,r,a,n=e.length-1,o="",i=e[0];if(n>0){for(o+=i,t=1;t<n;t++)a=e[t]+"",r=Ge-a.length,r&&(o+=Ml(r)),o+=a;i=e[t],a=i+"",r=Ge-a.length,r&&(o+=Ml(r))}else if(i===0)return"0";for(;i%10===0;)i/=10;return o+i}function En(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ul+e)}function kh(e,t,r,a){var n,o,i,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=Ge,n=0):(n=Math.ceil((t+1)/Ge),t%=Ge),o=fa(10,Ge-t),s=e[n]%o|0,a==null?t<3?(t==0?s=s/100|0:t==1&&(s=s/10|0),i=r<4&&s==99999||r>3&&s==49999||s==5e4||s==0):i=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[n+1]/o/100|0)==fa(10,t-2)-1||(s==o/2||s==0)&&(e[n+1]/o/100|0)==0:t<4?(t==0?s=s/1e3|0:t==1?s=s/100|0:t==2&&(s=s/10|0),i=(a||r<4)&&s==9999||!a&&r>3&&s==4999):i=((a||r<4)&&s+1==o||!a&&r>3&&s+1==o/2)&&(e[n+1]/o/1e3|0)==fa(10,t-3)-1,i}function $b(e,t,r){for(var a,n=[0],o,i=0,s=e.length;i<s;){for(o=n.length;o--;)n[o]*=t;for(n[0]+=cI.indexOf(e.charAt(i++)),a=0;a<n.length;a++)n[a]>r-1&&(n[a+1]===void 0&&(n[a+1]=0),n[a+1]+=n[a]/r|0,n[a]%=r)}return n.reverse()}function FJ(e,t){var r,a,n;if(t.isZero())return t;a=t.d.length,a<32?(r=Math.ceil(a/3),n=(1/Zb(4,r)).toString()):(r=16,n="2.3283064365386962890625e-10"),e.precision+=r,t=bf(e,1,t.times(n),new e(1));for(var o=r;o--;){var i=t.times(t);t=i.times(i).minus(i).times(8).plus(1)}return e.precision-=r,t}var nr=function(){function e(a,n,o){var i,s=0,l=a.length;for(a=a.slice();l--;)i=a[l]*n+s,a[l]=i%o|0,s=i/o|0;return s&&a.unshift(s),a}function t(a,n,o,i){var s,l;if(o!=i)l=o>i?1:-1;else for(s=l=0;s<o;s++)if(a[s]!=n[s]){l=a[s]>n[s]?1:-1;break}return l}function r(a,n,o,i){for(var s=0;o--;)a[o]-=s,s=a[o]<n[o]?1:0,a[o]=s*i+a[o]-n[o];for(;!a[0]&&a.length>1;)a.shift()}return function(a,n,o,i,s,l){var u,d,f,p,m,g,x,w,b,v,T,E,I,_,A,N,F,R,ne,z,D=a.constructor,$=a.s==n.s?1:-1,H=a.d,V=n.d;if(!H||!H[0]||!V||!V[0])return new D(!a.s||!n.s||(H?V&&H[0]==V[0]:!V)?NaN:H&&H[0]==0||!V?$*0:$/0);for(l?(m=1,d=a.e-n.e):(l=ri,m=Ge,d=Ga(a.e/m)-Ga(n.e/m)),ne=V.length,F=H.length,b=new D($),v=b.d=[],f=0;V[f]==(H[f]||0);f++);if(V[f]>(H[f]||0)&&d--,o==null?(_=o=D.precision,i=D.rounding):s?_=o+(a.e-n.e)+1:_=o,_<0)v.push(1),g=!0;else{if(_=_/m+2|0,f=0,ne==1){for(p=0,V=V[0],_++;(f<F||p)&&_--;f++)A=p*l+(H[f]||0),v[f]=A/V|0,p=A%V|0;g=p||f<F}else{for(p=l/(V[0]+1)|0,p>1&&(V=e(V,p,l),H=e(H,p,l),ne=V.length,F=H.length),N=ne,T=H.slice(0,ne),E=T.length;E<ne;)T[E++]=0;z=V.slice(),z.unshift(0),R=V[0],V[1]>=l/2&&++R;do p=0,u=t(V,T,ne,E),u<0?(I=T[0],ne!=E&&(I=I*l+(T[1]||0)),p=I/R|0,p>1?(p>=l&&(p=l-1),x=e(V,p,l),w=x.length,E=T.length,u=t(x,T,w,E),u==1&&(p--,r(x,ne<w?z:V,w,l))):(p==0&&(u=p=1),x=V.slice()),w=x.length,w<E&&x.unshift(0),r(T,x,E,l),u==-1&&(E=T.length,u=t(V,T,ne,E),u<1&&(p++,r(T,ne<E?z:V,E,l))),E=T.length):u===0&&(p++,T=[0]),v[f++]=p,u&&T[0]?T[E++]=H[N]||0:(T=[H[N]],E=1);while((N++<F||T[0]!==void 0)&&_--);g=T[0]!==void 0}v[0]||v.shift()}if(m==1)b.e=d,yP=g;else{for(f=1,p=v[0];p>=10;p/=10)f++;b.e=f+d*m-1,$e(b,s?o+b.e+1:o,i,g)}return b}}();function $e(e,t,r,a){var n,o,i,s,l,u,d,f,p,m=e.constructor;e:if(t!=null){if(f=e.d,!f)return e;for(n=1,s=f[0];s>=10;s/=10)n++;if(o=t-n,o<0)o+=Ge,i=t,d=f[p=0],l=d/fa(10,n-i-1)%10|0;else if(p=Math.ceil((o+1)/Ge),s=f.length,p>=s)if(a){for(;s++<=p;)f.push(0);d=l=0,n=1,o%=Ge,i=o-Ge+1}else break e;else{for(d=s=f[p],n=1;s>=10;s/=10)n++;o%=Ge,i=o-Ge+n,l=i<0?0:d/fa(10,n-i-1)%10|0}if(a=a||t<0||f[p+1]!==void 0||(i<0?d:d%fa(10,n-i-1)),u=r<4?(l||a)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||a||r==6&&(o>0?i>0?d/fa(10,n-i):0:f[p-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,u?(t-=e.e+1,f[0]=fa(10,(Ge-t%Ge)%Ge),e.e=-t||0):f[0]=e.e=0,e;if(o==0?(f.length=p,s=1,p--):(f.length=p+1,s=fa(10,Ge-o),f[p]=i>0?(d/fa(10,n-i)%fa(10,i)|0)*s:0),u)for(;;)if(p==0){for(o=1,i=f[0];i>=10;i/=10)o++;for(i=f[0]+=s,s=1;i>=10;i/=10)s++;o!=s&&(e.e++,f[0]==ri&&(f[0]=1));break}else{if(f[p]+=s,f[p]!=ri)break;f[p--]=0,s=1}for(o=f.length;f[--o]===0;)f.pop()}return at&&(e.e>m.maxE?(e.d=null,e.e=NaN):e.e<m.minE&&(e.e=0,e.d=[0])),e}function Oi(e,t,r){if(!e.isFinite())return IP(e);var a,n=e.e,o=Da(e.d),i=o.length;return t?(r&&(a=r-i)>0?o=o.charAt(0)+"."+o.slice(1)+Ml(a):i>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):n<0?(o="0."+Ml(-n-1)+o,r&&(a=r-i)>0&&(o+=Ml(a))):n>=i?(o+=Ml(n+1-i),r&&(a=r-n-1)>0&&(o=o+"."+Ml(a))):((a=n+1)<i&&(o=o.slice(0,a)+"."+o.slice(a)),r&&(a=r-i)>0&&(n+1===i&&(o+="."),o+=Ml(a))),o}function Gb(e,t){var r=e[0];for(t*=Ge;r>=10;r/=10)t++;return t}function Vb(e,t,r){if(t>zJ)throw at=!0,r&&(e.precision=r),Error(bP);return $e(new e(jb),t,1,!0)}function ti(e,t,r){if(t>fI)throw Error(bP);return $e(new e(Hb),t,r,!0)}function TP(e){var t=e.length-1,r=t*Ge+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Ml(e){for(var t="";e--;)t+="0";return t}function EP(e,t,r,a){var n,o=new e(1),i=Math.ceil(a/Ge+4);for(at=!1;;){if(r%2&&(o=o.times(t),fP(o.d,i)&&(n=!0)),r=Ga(r/2),r===0){r=o.d.length-1,n&&o.d[r]===0&&++o.d[r];break}t=t.times(t),fP(t.d,i)}return at=!0,o}function dP(e){return e.d[e.d.length-1]&1}function SP(e,t,r){for(var a,n=new e(t[0]),o=0;++o<t.length;)if(a=new e(t[o]),a.s)n[r](a)&&(n=a);else{n=a;break}return n}function pI(e,t){var r,a,n,o,i,s,l,u=0,d=0,f=0,p=e.constructor,m=p.rounding,g=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(at=!1,l=g):l=t,s=new p(.03125);e.e>-2;)e=e.times(s),f+=5;for(a=Math.log(fa(2,f))/Math.LN10*2+5|0,l+=a,r=o=i=new p(1),p.precision=l;;){if(o=$e(o.times(e),l,1),r=r.times(++d),s=i.plus(nr(o,r,l,1)),Da(s.d).slice(0,l)===Da(i.d).slice(0,l)){for(n=f;n--;)i=$e(i.times(i),l,1);if(t==null)if(u<3&&kh(i.d,l-a,m,u))p.precision=l+=10,r=o=s=new p(1),d=0,u++;else return $e(i,p.precision=g,m,at=!0);else return p.precision=g,i}i=s}}function Pl(e,t){var r,a,n,o,i,s,l,u,d,f,p,m=1,g=10,x=e,w=x.d,b=x.constructor,v=b.rounding,T=b.precision;if(x.s<0||!w||!w[0]||!x.e&&w[0]==1&&w.length==1)return new b(w&&!w[0]?-1/0:x.s!=1?NaN:w?0:x);if(t==null?(at=!1,d=T):d=t,b.precision=d+=g,r=Da(w),a=r.charAt(0),Math.abs(o=x.e)<15e14){for(;a<7&&a!=1||a==1&&r.charAt(1)>3;)x=x.times(e),r=Da(x.d),a=r.charAt(0),m++;o=x.e,a>1?(x=new b("0."+r),o++):x=new b(a+"."+r.slice(1))}else return u=Vb(b,d+2,T).times(o+""),x=Pl(new b(a+"."+r.slice(1)),d-g).plus(u),b.precision=T,t==null?$e(x,T,v,at=!0):x;for(f=x,l=i=x=nr(x.minus(1),x.plus(1),d,1),p=$e(x.times(x),d,1),n=3;;){if(i=$e(i.times(p),d,1),u=l.plus(nr(i,new b(n),d,1)),Da(u.d).slice(0,d)===Da(l.d).slice(0,d))if(l=l.times(2),o!==0&&(l=l.plus(Vb(b,d+2,T).times(o+""))),l=nr(l,new b(m),d,1),t==null)if(kh(l.d,d-g,v,s))b.precision=d+=g,u=i=x=nr(f.minus(1),f.plus(1),d,1),p=$e(x.times(x),d,1),n=s=1;else return $e(l,b.precision=T,v,at=!0);else return b.precision=T,l;l=u,n+=2}}function IP(e){return String(e.s*e.s/0)}function mI(e,t){var r,a,n;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(r<0&&(r=a),r+=+t.slice(a+1),t=t.substring(0,a)):r<0&&(r=t.length),a=0;t.charCodeAt(a)===48;a++);for(n=t.length;t.charCodeAt(n-1)===48;--n);if(t=t.slice(a,n),t){if(n-=a,e.e=r=r-a-1,e.d=[],a=(r+1)%Ge,r<0&&(a+=Ge),a<n){for(a&&e.d.push(+t.slice(0,a)),n-=Ge;a<n;)e.d.push(+t.slice(a,a+=Ge));t=t.slice(a),a=Ge-t.length}else a-=n;for(;a--;)t+="0";e.d.push(+t),at&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function BJ(e,t){var r,a,n,o,i,s,l,u,d;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),wP.test(t))return mI(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(MJ.test(t))r=16,t=t.toLowerCase();else if(DJ.test(t))r=2;else if(PJ.test(t))r=8;else throw Error(Ul+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),i=o>=0,a=e.constructor,i&&(t=t.replace(".",""),s=t.length,o=s-o,n=EP(a,new a(r),o,o*2)),u=$b(t,r,ri),d=u.length-1,o=d;u[o]===0;--o)u.pop();return o<0?new a(e.s*0):(e.e=Gb(u,d),e.d=u,at=!1,i&&(e=nr(e,n,s*4)),l&&(e=e.times(Math.abs(l)<54?fa(2,l):Ch.pow(2,l))),at=!0,e)}function $J(e,t){var r,a=t.d.length;if(a<3)return t.isZero()?t:bf(e,2,t,t);r=1.4*Math.sqrt(a),r=r>16?16:r|0,t=t.times(1/Zb(5,r)),t=bf(e,2,t,t);for(var n,o=new e(5),i=new e(16),s=new e(20);r--;)n=t.times(t),t=t.times(o.plus(n.times(i.times(n).minus(s))));return t}function bf(e,t,r,a,n){var o,i,s,l,u=1,d=e.precision,f=Math.ceil(d/Ge);for(at=!1,l=r.times(r),s=new e(a);;){if(i=nr(s.times(l),new e(t++*t++),d,1),s=n?a.plus(i):a.minus(i),a=nr(i.times(l),new e(t++*t++),d,1),i=s.plus(a),i.d[f]!==void 0){for(o=f;i.d[o]===s.d[o]&&o--;);if(o==-1)break}o=s,s=a,a=i,i=o,u++}return at=!0,i.d.length=f+1,i}function Zb(e,t){for(var r=e;--t;)r*=e;return r}function _P(e,t){var r,a=t.s<0,n=ti(e,e.precision,1),o=n.times(.5);if(t=t.abs(),t.lte(o))return vs=a?4:1,t;if(r=t.divToInt(n),r.isZero())vs=a?3:2;else{if(t=t.minus(r.times(n)),t.lte(o))return vs=dP(r)?a?2:3:a?4:1,t;vs=dP(r)?a?1:4:a?3:2}return t.minus(n).abs()}function bI(e,t,r,a){var n,o,i,s,l,u,d,f,p,m=e.constructor,g=r!==void 0;if(g?(En(r,1,zl),a===void 0?a=m.rounding:En(a,0,8)):(r=m.precision,a=m.rounding),!e.isFinite())d=IP(e);else{for(d=Oi(e),i=d.indexOf("."),g?(n=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):n=t,i>=0&&(d=d.replace(".",""),p=new m(1),p.e=d.length-i,p.d=$b(Oi(p),10,n),p.e=p.d.length),f=$b(d,10,n),o=l=f.length;f[--l]==0;)f.pop();if(!f[0])d=g?"0p+0":"0";else{if(i<0?o--:(e=new m(e),e.d=f,e.e=o,e=nr(e,p,r,a,0,n),f=e.d,o=e.e,u=yP),i=f[r],s=n/2,u=u||f[r+1]!==void 0,u=a<4?(i!==void 0||u)&&(a===0||a===(e.s<0?3:2)):i>s||i===s&&(a===4||u||a===6&&f[r-1]&1||a===(e.s<0?8:7)),f.length=r,u)for(;++f[--r]>n-1;)f[r]=0,r||(++o,f.unshift(1));for(l=f.length;!f[l-1];--l);for(i=0,d="";i<l;i++)d+=cI.charAt(f[i]);if(g){if(l>1)if(t==16||t==8){for(i=t==16?4:3,--l;l%i;l++)d+="0";for(f=$b(d,n,t),l=f.length;!f[l-1];--l);for(i=1,d="1.";i<l;i++)d+=cI.charAt(f[i])}else d=d.charAt(0)+"."+d.slice(1);d=d+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)d="0"+d;d="0."+d}else if(++o>l)for(o-=l;o--;)d+="0";else o<l&&(d=d.slice(0,o)+"."+d.slice(o))}d=(t==16?"0x":t==2?"0b":t==8?"0o":"")+d}return e.s<0?"-"+d:d}function fP(e,t){if(e.length>t)return e.length=t,!0}function jJ(e){return new this(e).abs()}function HJ(e){return new this(e).acos()}function VJ(e){return new this(e).acosh()}function qJ(e,t){return new this(e).plus(t)}function GJ(e){return new this(e).asin()}function ZJ(e){return new this(e).asinh()}function WJ(e){return new this(e).atan()}function YJ(e){return new this(e).atanh()}function KJ(e,t){e=new this(e),t=new this(t);var r,a=this.precision,n=this.rounding,o=a+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=ti(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?ti(this,a,n):new this(0),r.s=e.s):!e.d||t.isZero()?(r=ti(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(nr(e,t,o,1)),t=ti(this,o,1),this.precision=a,this.rounding=n,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(nr(e,t,o,1)),r}function XJ(e){return new this(e).cbrt()}function JJ(e){return $e(e=new this(e),e.e+1,2)}function QJ(e,t,r){return new this(e).clamp(t,r)}function eQ(e){if(!e||typeof e!="object")throw Error(qb+"Object expected");var t,r,a,n=e.defaults===!0,o=["precision",1,zl,"rounding",0,8,"toExpNeg",-yf,0,"toExpPos",0,yf,"maxE",0,yf,"minE",-yf,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(r=o[t],n&&(this[r]=dI[r]),(a=e[r])!==void 0)if(Ga(a)===a&&a>=o[t+1]&&a<=o[t+2])this[r]=a;else throw Error(Ul+r+": "+a);if(r="crypto",n&&(this[r]=dI[r]),(a=e[r])!==void 0)if(a===!0||a===!1||a===0||a===1)if(a)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(vP);else this[r]=!1;else throw Error(Ul+r+": "+a);return this}function tQ(e){return new this(e).cos()}function rQ(e){return new this(e).cosh()}function kP(e){var t,r,a;function n(o){var i,s,l,u=this;if(!(u instanceof n))return new n(o);if(u.constructor=n,pP(o)){u.s=o.s,at?!o.d||o.e>n.maxE?(u.e=NaN,u.d=null):o.e<n.minE?(u.e=0,u.d=[0]):(u.e=o.e,u.d=o.d.slice()):(u.e=o.e,u.d=o.d?o.d.slice():o.d);return}if(l=typeof o,l==="number"){if(o===0){u.s=1/o<0?-1:1,u.e=0,u.d=[0];return}if(o<0?(o=-o,u.s=-1):u.s=1,o===~~o&&o<1e7){for(i=0,s=o;s>=10;s/=10)i++;at?i>n.maxE?(u.e=NaN,u.d=null):i<n.minE?(u.e=0,u.d=[0]):(u.e=i,u.d=[o]):(u.e=i,u.d=[o]);return}else if(o*0!==0){o||(u.s=NaN),u.e=NaN,u.d=null;return}return mI(u,o.toString())}else if(l!=="string")throw Error(Ul+o);return(s=o.charCodeAt(0))===45?(o=o.slice(1),u.s=-1):(s===43&&(o=o.slice(1)),u.s=1),wP.test(o)?mI(u,o):BJ(u,o)}if(n.prototype=ue,n.ROUND_UP=0,n.ROUND_DOWN=1,n.ROUND_CEIL=2,n.ROUND_FLOOR=3,n.ROUND_HALF_UP=4,n.ROUND_HALF_DOWN=5,n.ROUND_HALF_EVEN=6,n.ROUND_HALF_CEIL=7,n.ROUND_HALF_FLOOR=8,n.EUCLID=9,n.config=n.set=eQ,n.clone=kP,n.isDecimal=pP,n.abs=jJ,n.acos=HJ,n.acosh=VJ,n.add=qJ,n.asin=GJ,n.asinh=ZJ,n.atan=WJ,n.atanh=YJ,n.atan2=KJ,n.cbrt=XJ,n.ceil=JJ,n.clamp=QJ,n.cos=tQ,n.cosh=rQ,n.div=aQ,n.exp=nQ,n.floor=oQ,n.hypot=iQ,n.ln=sQ,n.log=lQ,n.log10=cQ,n.log2=uQ,n.max=dQ,n.min=fQ,n.mod=pQ,n.mul=mQ,n.pow=hQ,n.random=gQ,n.round=yQ,n.sign=bQ,n.sin=vQ,n.sinh=xQ,n.sqrt=wQ,n.sub=TQ,n.sum=EQ,n.tan=SQ,n.tanh=IQ,n.trunc=_Q,e===void 0&&(e={}),e&&e.defaults!==!0)for(a=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<a.length;)e.hasOwnProperty(r=a[t++])||(e[r]=this[r]);return n.config(e),n}function aQ(e,t){return new this(e).div(t)}function nQ(e){return new this(e).exp()}function oQ(e){return $e(e=new this(e),e.e+1,3)}function iQ(){var e,t,r=new this(0);for(at=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return at=!0,new this(1/0);r=t}return at=!0,r.sqrt()}function pP(e){return e instanceof Ch||e&&e.toStringTag===xP||!1}function sQ(e){return new this(e).ln()}function lQ(e,t){return new this(e).log(t)}function uQ(e){return new this(e).log(2)}function cQ(e){return new this(e).log(10)}function dQ(){return SP(this,arguments,"lt")}function fQ(){return SP(this,arguments,"gt")}function pQ(e,t){return new this(e).mod(t)}function mQ(e,t){return new this(e).mul(t)}function hQ(e,t){return new this(e).pow(t)}function gQ(e){var t,r,a,n,o=0,i=new this(1),s=[];if(e===void 0?e=this.precision:En(e,1,zl),a=Math.ceil(e/Ge),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(a));o<a;)n=t[o],n>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=n%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(a*=4);o<a;)n=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((t[o+3]&127)<<24),n>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(n%1e7),o+=4);o=a/4}else throw Error(vP);else for(;o<a;)s[o++]=Math.random()*1e7|0;for(a=s[--o],e%=Ge,a&&e&&(n=fa(10,Ge-e),s[o]=(a/n|0)*n);s[o]===0;o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;s[0]===0;r-=Ge)s.shift();for(a=1,n=s[0];n>=10;n/=10)a++;a<Ge&&(r-=Ge-a)}return i.e=r,i.d=s,i}function yQ(e){return $e(e=new this(e),e.e+1,this.rounding)}function bQ(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function vQ(e){return new this(e).sin()}function xQ(e){return new this(e).sinh()}function wQ(e){return new this(e).sqrt()}function TQ(e,t){return new this(e).sub(t)}function EQ(){var e=0,t=arguments,r=new this(t[e]);for(at=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return at=!0,$e(r,this.precision,this.rounding)}function SQ(e){return new this(e).tan()}function IQ(e){return new this(e).tanh()}function _Q(e){return $e(e=new this(e),e.e+1,1)}ue[Symbol.for("nodejs.util.inspect.custom")]=ue.toString;ue[Symbol.toStringTag]="Decimal";var Ch=ue.constructor=kP(dI);jb=new Ch(jb);Hb=new Ch(Hb);var kQ=Ch;});var LP=Qt(B=>{c();Object.defineProperty(B,"__esModule",{value:!0});var{Decimal:CQ,objectEnumValues:vf,makeStrictEnum:AQ,Public:LQ,getRuntime:Gn,skip:nke}=AP(),or={};B.Prisma=or;B.$Enums={};or.prismaVersion={client:"5.20.0",engine:"06fc58a368dc7be9fbbbe894adf8d445d208c284"};or.PrismaClientKnownRequestError=()=>{let e=Gn().prettyName;throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
2
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.PrismaClientUnknownRequestError=()=>{let e=Gn().prettyName;throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
3
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.PrismaClientRustPanicError=()=>{let e=Gn().prettyName;throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
4
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.PrismaClientInitializationError=()=>{let e=Gn().prettyName;throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
5
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.PrismaClientValidationError=()=>{let e=Gn().prettyName;throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
6
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.NotFoundError=()=>{let e=Gn().prettyName;throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
7
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.Decimal=CQ;or.sql=()=>{let e=Gn().prettyName;throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
8
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.empty=()=>{let e=Gn().prettyName;throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
9
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.join=()=>{let e=Gn().prettyName;throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
10
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.raw=()=>{let e=Gn().prettyName;throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
11
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.validator=LQ.validator;or.getExtensionContext=()=>{let e=Gn().prettyName;throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
12
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.defineExtension=()=>{let e=Gn().prettyName;throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
|
|
13
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)};or.DbNull=vf.instances.DbNull;or.JsonNull=vf.instances.JsonNull;or.AnyNull=vf.instances.AnyNull;or.NullTypes={DbNull:vf.classes.DbNull,JsonNull:vf.classes.JsonNull,AnyNull:vf.classes.AnyNull};B.Prisma.TransactionIsolationLevel=AQ({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"});B.Prisma.OrganizationScalarFieldEnum={id:"id",name:"name",iconUrl:"iconUrl",defaultLanguage:"defaultLanguage",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.MembershipScalarFieldEnum={id:"id",role:"role",organizationId:"organizationId",userId:"userId",invitedName:"invitedName",invitedEmail:"invitedEmail",invitedToken:"invitedToken",isActive:"isActive",joinedAt:"joinedAt",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.UserScalarFieldEnum={id:"id",clerkId:"clerkId",name:"name",email:"email",emailVerified:"emailVerified",image:"image",picture:"picture",hasOptInEmail:"hasOptInEmail",createdAt:"createdAt",updatedAt:"updatedAt",customPicture:"customPicture",role:"role",viaProduct:"viaProduct",onboarded:"onboarded",isBlocked:"isBlocked"};B.Prisma.UsageScalarFieldEnum={id:"id",userId:"userId",organizationId:"organizationId",subscriptionId:"subscriptionId",monthlyTokenCostUsd:"monthlyTokenCostUsd",totalTokensUsed:"totalTokensUsed",billingCycleStart:"billingCycleStart",billingCycleEnd:"billingCycleEnd",nbAgentQueries:"nbAgentQueries",nbDatastoreQueries:"nbDatastoreQueries",nbUploadedBytes:"nbUploadedBytes",nbDataProcessingBytes:"nbDataProcessingBytes",nbModelTokens:"nbModelTokens",nbStoredTokens:"nbStoredTokens",notifiedTokenCostLimitReached:"notifiedTokenCostLimitReached",notifiedAgentQueriesLimitReached:"notifiedAgentQueriesLimitReached",notifiedStoredTokenLimitReached:"notifiedStoredTokenLimitReached"};B.Prisma.DatastoreScalarFieldEnum={id:"id",name:"name",description:"description",type:"type",visibility:"visibility",config:"config",ownerId:"ownerId",createdAt:"createdAt",updatedAt:"updatedAt",organizationId:"organizationId",pluginDescriptionForHumans:"pluginDescriptionForHumans",pluginDescriptionForModel:"pluginDescriptionForModel",pluginIconUrl:"pluginIconUrl",pluginName:"pluginName"};B.Prisma.AppDatasourceScalarFieldEnum={id:"id",type:"type",name:"name",status:"status",config:"config",datastoreId:"datastoreId",ownerId:"ownerId",nbChunks:"nbChunks",textSize:"textSize",hash:"hash",nbSynch:"nbSynch",lastSynch:"lastSynch",createdAt:"createdAt",updatedAt:"updatedAt",groupId:"groupId",nbTokens:"nbTokens",organizationId:"organizationId",serviceProviderId:"serviceProviderId"};B.Prisma.UserApiKeyScalarFieldEnum={id:"id",key:"key",userId:"userId",organizationId:"organizationId",createdAt:"createdAt"};B.Prisma.DatastoreApiKeyScalarFieldEnum={id:"id",key:"key",datastoreId:"datastoreId",createdAt:"createdAt"};B.Prisma.AgentScalarFieldEnum={id:"id",hidden:"hidden",isDefault:"isDefault",name:"name",description:"description",iconUrl:"iconUrl",visibility:"visibility",handle:"handle",ownerId:"ownerId",organizationId:"organizationId",formId:"formId",nbQueries:"nbQueries",createdAt:"createdAt",updatedAt:"updatedAt",currentVersionId:"currentVersionId",versionCount:"versionCount"};B.Prisma.ActionApprovalScalarFieldEnum={id:"id",payload:"payload",toolId:"toolId",messageId:"messageId",agentId:"agentId",organizationId:"organizationId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.DomainScalarFieldEnum={id:"id",name:"name",agentId:"agentId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.ConversationScalarFieldEnum={id:"id",title:"title",isAiEnabled:"isAiEnabled",channel:"channel",status:"status",metadata:"metadata",channelExternalId:"channelExternalId",channelCredentialsId:"channelCredentialsId",organizationId:"organizationId",mailInboxId:"mailInboxId",priority:"priority",formId:"formId",agentId:"agentId",userId:"userId",visitorId:"visitorId",createdAt:"createdAt",updatedAt:"updatedAt",useFollowUp:"useFollowUp"};B.Prisma.MessageScalarFieldEnum={id:"id",text:"text",html:"html",from:"from",conversationId:"conversationId",sources:"sources",usage:"usage",type:"type",externalId:"externalId",userId:"userId",contactId:"contactId",visitorId:"visitorId",agentId:"agentId",metadata:"metadata",inputId:"inputId",eval:"eval",read:"read",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.AgentRunScalarFieldEnum={id:"id",conversationId:"conversationId",agentId:"agentId",status:"status",modelName:"modelName",metadata:"metadata",error:"error",startedAt:"startedAt",finishedAt:"finishedAt"};B.Prisma.ExternalIntegrationScalarFieldEnum={id:"id",type:"type",integrationId:"integrationId",integrationToken:"integrationToken",agentId:"agentId",apiKeyId:"apiKeyId",metadata:"metadata"};B.Prisma.ProductScalarFieldEnum={id:"id",active:"active",name:"name",description:"description",image:"image",metadata:"metadata",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.PriceScalarFieldEnum={id:"id",productId:"productId",active:"active",currency:"currency",interval:"interval",unitAmount:"unitAmount",interval_count:"interval_count",trial_period_days:"trial_period_days",type:"type",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.SubscriptionScalarFieldEnum={id:"id",plan:"plan",priceId:"priceId",customerId:"customerId",status:"status",start_date:"start_date",ended_at:"ended_at",trial_end:"trial_end",trial_start:"trial_start",cancel_at:"cancel_at",cancel_at_period_end:"cancel_at_period_end",canceled_at:"canceled_at",current_period_start:"current_period_start",current_period_end:"current_period_end",metadata:"metadata",coupon:"coupon",userId:"userId",organizationId:"organizationId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.SubscriptionHistoryScalarFieldEnum={id:"id",organizationId:"organizationId",subscriptionId:"subscriptionId",event:"event",previousPlan:"previousPlan",newPlan:"newPlan",previousStatus:"previousStatus",newStatus:"newStatus",metadata:"metadata",createdAt:"createdAt"};B.Prisma.BillingPeriodUsageScalarFieldEnum={id:"id",organizationId:"organizationId",subscriptionId:"subscriptionId",plan:"plan",periodStart:"periodStart",periodEnd:"periodEnd",tokenCostUsd:"tokenCostUsd",totalTokens:"totalTokens",agentQueries:"agentQueries",datastoreQueries:"datastoreQueries",uploadedBytes:"uploadedBytes",createdAt:"createdAt"};B.Prisma.ServiceProviderScalarFieldEnum={id:"id",type:"type",name:"name",refreshToken:"refreshToken",accessToken:"accessToken",externalId:"externalId",config:"config",ownerId:"ownerId",organizationId:"organizationId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.MessageBNPScalarFieldEnum={id:"id",text:"text",from:"from",userName:"userName",datastoreId:"datastoreId",read:"read",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.LeadScalarFieldEnum={id:"id",email:"email",firstName:"firstName",lastName:"lastName",phoneNumber:"phoneNumber",organizationId:"organizationId",agentId:"agentId",conversationId:"conversationId",createdAt:"createdAt"};B.Prisma.FormScalarFieldEnum={id:"id",name:"name",type:"type",draftConfig:"draftConfig",publishedConfig:"publishedConfig",organizationId:"organizationId",datastoreId:"datastoreId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.FormSubmissionScalarFieldEnum={id:"id",status:"status",data:"data",formId:"formId",conversationId:"conversationId",messageId:"messageId",createdAt:"createdAt"};B.Prisma.XPBNPEvalScalarFieldEnum={id:"id",active:"active",userName:"userName",feature:"feature",usecase:"usecase",promptType:"promptType",datasourceName:"datasourceName",datastoreName:"datastoreName",prompt:"prompt",comment:"comment",result:"result",score1:"score1",score2:"score2",score3:"score3",metadata:"metadata",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.LLMTaskOutputScalarFieldEnum={id:"id",type:"type",externalId:"externalId",output:"output",usage:"usage",createdAt:"createdAt"};B.Prisma.MailInboxScalarFieldEnum={id:"id",name:"name",description:"description",alias:"alias",fromName:"fromName",signature:"signature",showBranding:"showBranding",customEmail:"customEmail",isCustomEmailVerified:"isCustomEmailVerified",organizationId:"organizationId",customEmailVerificationTokenId:"customEmailVerificationTokenId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.AttachmentScalarFieldEnum={id:"id",name:"name",url:"url",size:"size",mimeType:"mimeType",messageId:"messageId",conversationId:"conversationId"};B.Prisma.ContactScalarFieldEnum={id:"id",email:"email",phoneNumber:"phoneNumber",externalId:"externalId",instagramId:"instagramId",firstName:"firstName",lastName:"lastName",organizationId:"organizationId",agentId:"agentId",metadata:"metadata",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.VisitorScalarFieldEnum={id:"id",contactId:"contactId",metadata:"metadata",organizationId:"organizationId",externalId:"externalId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.VerificationCodeScalarFieldEnum={code:"code",mailInboxId:"mailInboxId",createdAt:"createdAt"};B.Prisma.Onboarding_infoScalarFieldEnum={id:"id",metadata:"metadata",user_id:"user_id",organization_id:"organization_id",status:"status",completedSteps:"completedSteps",created_at:"created_at",updated_at:"updated_at"};B.Prisma.ContentFilterScalarFieldEnum={id:"id",name:"name",description:"description",action:"action",redirectUrl:"redirectUrl",agentId:"agentId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.FollowUpConversationScalarFieldEnum={id:"id",conversationId:"conversationId",agentId:"agentId",count:"count",lastFollowUpAt:"lastFollowUpAt",lastFollowUpMessageId:"lastFollowUpMessageId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.FollowUpConfigScalarFieldEnum={id:"id",prompt:"prompt",agentId:"agentId",createdAt:"createdAt",updatedAt:"updatedAt",count:"count",followUpDelayHours:"followUpDelayHours",config:"config"};B.Prisma.AutoSyncConfigScalarFieldEnum={id:"id",datasourceId:"datasourceId",autoSync:"autoSync",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.AgentModeScalarFieldEnum={id:"id",type:"type",isEnabled:"isEnabled",priority:"priority",config:"config",prompt:"prompt",temperature:"temperature",modelName:"modelName",agentId:"agentId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.RetrievalEvaluationConfigScalarFieldEnum={id:"id",agentId:"agentId",evaluatorPrompt:"evaluatorPrompt",generateQueryPrompt:"generateQueryPrompt",evaluatorModelName:"evaluatorModelName",retrievalRounds:"retrievalRounds",evaluationThreshold:"evaluationThreshold",additionalConfig:"additionalConfig",retrievalModelName:"retrievalModelName",generationModelName:"generationModelName",fallbackModels:"fallbackModels",modelTemperatures:"modelTemperatures",modelMaxTokens:"modelMaxTokens",enableModelComparison:"enableModelComparison",comparisonModels:"comparisonModels",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.ComposioProfileScalarFieldEnum={id:"id",accountId:"accountId",organizationId:"organizationId",toolkitSlug:"toolkitSlug",toolkitName:"toolkitName",profileName:"profileName",displayName:"displayName",encryptedConfig:"encryptedConfig",configHash:"configHash",isActive:"isActive",isDefault:"isDefault",redirectUrl:"redirectUrl",connectedAccountId:"connectedAccountId",mcpServerId:"mcpServerId",mcpUrl:"mcpUrl",createdAt:"createdAt",updatedAt:"updatedAt",lastUsedAt:"lastUsedAt"};B.Prisma.UserBlockLogScalarFieldEnum={id:"id",userId:"userId",blockedById:"blockedById",reason:"reason",action:"action",createdAt:"createdAt"};B.Prisma.UserBlockStatusScalarFieldEnum={id:"id",userId:"userId",isBlocked:"isBlocked",reason:"reason",blockedAt:"blockedAt",blockedById:"blockedById"};B.Prisma.AuditLogScalarFieldEnum={id:"id",resourceType:"resourceType",resourceId:"resourceId",action:"action",previousData:"previousData",newData:"newData",userId:"userId",organizationId:"organizationId",createdAt:"createdAt"};B.Prisma.LoginMonitoringConfigScalarFieldEnum={id:"id",isEnabled:"isEnabled",notificationEmails:"notificationEmails",organizationId:"organizationId",notifyOwners:"notifyOwners",notifyAdmins:"notifyAdmins",notifySuperAdmins:"notifySuperAdmins",createdAt:"createdAt",updatedAt:"updatedAt",createdById:"createdById",updatedById:"updatedById"};B.Prisma.LoginMonitoringNotificationScalarFieldEnum={id:"id",configId:"configId",userId:"userId",isEnabled:"isEnabled",createdAt:"createdAt"};B.Prisma.ImpersonationSessionScalarFieldEnum={id:"id",superadminId:"superadminId",targetUserId:"targetUserId",targetOrganizationId:"targetOrganizationId",isActive:"isActive",startedAt:"startedAt",expiresAt:"expiresAt",lastUsedAt:"lastUsedAt",endedAt:"endedAt",endReason:"endReason"};B.Prisma.DatastoreFileScalarFieldEnum={id:"id",datastoreId:"datastoreId",name:"name",s3Key:"s3Key",size:"size",mimeType:"mimeType",createdAt:"createdAt"};B.Prisma.ActivityLogScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",agentId:"agentId",endpoint:"endpoint",method:"method",statusCode:"statusCode",duration:"duration",resourceType:"resourceType",resourceId:"resourceId",action:"action",userAgent:"userAgent",ipAddress:"ipAddress",requestData:"requestData",responseData:"responseData",errorMessage:"errorMessage",metadata:"metadata",createdAt:"createdAt"};B.Prisma.TokenUsageLogScalarFieldEnum={id:"id",userId:"userId",organizationId:"organizationId",agentId:"agentId",conversationId:"conversationId",messageId:"messageId",modelName:"modelName",promptTokens:"promptTokens",completionTokens:"completionTokens",totalTokens:"totalTokens",inputCostUsd:"inputCostUsd",outputCostUsd:"outputCostUsd",totalCostUsd:"totalCostUsd",createdAt:"createdAt"};B.Prisma.AgentWorkflowScalarFieldEnum={id:"id",agentId:"agentId",name:"name",description:"description",status:"status",isDefault:"isDefault",steps:"steps",config:"config",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.WorkflowExecutionScalarFieldEnum={id:"id",workflowId:"workflowId",agentId:"agentId",conversationId:"conversationId",triggeredBy:"triggeredBy",status:"status",startedAt:"startedAt",completedAt:"completedAt",durationMs:"durationMs",inputData:"inputData",outputData:"outputData",errorMessage:"errorMessage",createdAt:"createdAt"};B.Prisma.AgentVersionScalarFieldEnum={id:"id",agentId:"agentId",versionNumber:"versionNumber",versionName:"versionName",name:"name",description:"description",iconUrl:"iconUrl",systemPrompt:"systemPrompt",userPrompt:"userPrompt",prompt:"prompt",promptType:"promptType",modelName:"modelName",temperature:"temperature",includeSources:"includeSources",restrictKnowledge:"restrictKnowledge",useMarkdown:"useMarkdown",useLanguageDetection:"useLanguageDetection",useConversationalMode:"useConversationalMode",conversationalModePrompt:"conversationalModePrompt",useContextDataAgents:"useContextDataAgents",useSendEmailOnNewConversation:"useSendEmailOnNewConversation",useContentFilter:"useContentFilter",useFollowUp:"useFollowUp",timeBetweenMessages:"timeBetweenMessages",fragmentEvaluationEnabled:"fragmentEvaluationEnabled",useSuperRetrieval:"useSuperRetrieval",isActive:"isActive",status:"status",changeDescription:"changeDescription",previousVersionId:"previousVersionId",createdAt:"createdAt",updatedAt:"updatedAt",config:"config",interfaceConfig:"interfaceConfig",composioConfig:"composioConfig",mcpConnections:"mcpConnections",tools:"tools",serviceProviders:"serviceProviders"};B.Prisma.NotificationSettingsScalarFieldEnum={id:"id",organizationId:"organizationId",settings:"settings",recipientMemberIds:"recipientMemberIds",recipientEmails:"recipientEmails",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.AgentTriggerScalarFieldEnum={id:"id",agentId:"agentId",workflowId:"workflowId",type:"type",config:"config",name:"name",description:"description",isEnabled:"isEnabled",priority:"priority",conditions:"conditions",triggerCount:"triggerCount",lastTriggeredAt:"lastTriggeredAt",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.AgentTriggerExecutionScalarFieldEnum={id:"id",triggerId:"triggerId",conversationId:"conversationId",workflowExecId:"workflowExecId",triggeredBy:"triggeredBy",matchedValue:"matchedValue",context:"context",status:"status",executedAt:"executedAt",durationMs:"durationMs",errorMessage:"errorMessage"};B.Prisma.UserPreferencesScalarFieldEnum={id:"id",userId:"userId",selectedOrganizationId:"selectedOrganizationId",createdAt:"createdAt",updatedAt:"updatedAt"};B.Prisma.SortOrder={asc:"asc",desc:"desc"};B.Prisma.NullableJsonNullValueInput={DbNull:or.DbNull,JsonNull:or.JsonNull};B.Prisma.JsonNullValueInput={JsonNull:or.JsonNull};B.Prisma.QueryMode={default:"default",insensitive:"insensitive"};B.Prisma.NullsOrder={first:"first",last:"last"};B.Prisma.OrganizationOrderByRelevanceFieldEnum={id:"id",name:"name",iconUrl:"iconUrl"};B.Prisma.MembershipOrderByRelevanceFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",invitedName:"invitedName",invitedEmail:"invitedEmail",invitedToken:"invitedToken"};B.Prisma.UserOrderByRelevanceFieldEnum={id:"id",clerkId:"clerkId",name:"name",email:"email",image:"image",picture:"picture",customPicture:"customPicture",viaProduct:"viaProduct"};B.Prisma.UsageOrderByRelevanceFieldEnum={id:"id",userId:"userId",organizationId:"organizationId",subscriptionId:"subscriptionId"};B.Prisma.JsonNullValueFilter={DbNull:or.DbNull,JsonNull:or.JsonNull,AnyNull:or.AnyNull};B.Prisma.DatastoreOrderByRelevanceFieldEnum={id:"id",name:"name",description:"description",ownerId:"ownerId",organizationId:"organizationId",pluginDescriptionForHumans:"pluginDescriptionForHumans",pluginDescriptionForModel:"pluginDescriptionForModel",pluginIconUrl:"pluginIconUrl",pluginName:"pluginName"};B.Prisma.AppDatasourceOrderByRelevanceFieldEnum={id:"id",name:"name",datastoreId:"datastoreId",ownerId:"ownerId",hash:"hash",groupId:"groupId",organizationId:"organizationId",serviceProviderId:"serviceProviderId"};B.Prisma.UserApiKeyOrderByRelevanceFieldEnum={id:"id",key:"key",userId:"userId",organizationId:"organizationId"};B.Prisma.DatastoreApiKeyOrderByRelevanceFieldEnum={id:"id",key:"key",datastoreId:"datastoreId"};B.Prisma.AgentOrderByRelevanceFieldEnum={id:"id",name:"name",description:"description",iconUrl:"iconUrl",handle:"handle",ownerId:"ownerId",organizationId:"organizationId",formId:"formId",currentVersionId:"currentVersionId"};B.Prisma.ActionApprovalOrderByRelevanceFieldEnum={id:"id",toolId:"toolId",messageId:"messageId",agentId:"agentId",organizationId:"organizationId"};B.Prisma.DomainOrderByRelevanceFieldEnum={id:"id",name:"name",agentId:"agentId"};B.Prisma.ConversationOrderByRelevanceFieldEnum={id:"id",title:"title",channelExternalId:"channelExternalId",channelCredentialsId:"channelCredentialsId",organizationId:"organizationId",mailInboxId:"mailInboxId",formId:"formId",agentId:"agentId",userId:"userId",visitorId:"visitorId"};B.Prisma.MessageOrderByRelevanceFieldEnum={id:"id",text:"text",html:"html",conversationId:"conversationId",externalId:"externalId",userId:"userId",contactId:"contactId",visitorId:"visitorId",agentId:"agentId",inputId:"inputId"};B.Prisma.AgentRunOrderByRelevanceFieldEnum={id:"id",conversationId:"conversationId",agentId:"agentId",error:"error"};B.Prisma.ExternalIntegrationOrderByRelevanceFieldEnum={id:"id",integrationId:"integrationId",integrationToken:"integrationToken",agentId:"agentId",apiKeyId:"apiKeyId"};B.Prisma.ProductOrderByRelevanceFieldEnum={id:"id",name:"name",description:"description",image:"image"};B.Prisma.PriceOrderByRelevanceFieldEnum={id:"id",productId:"productId",currency:"currency"};B.Prisma.SubscriptionOrderByRelevanceFieldEnum={id:"id",priceId:"priceId",customerId:"customerId",coupon:"coupon",userId:"userId",organizationId:"organizationId"};B.Prisma.SubscriptionHistoryOrderByRelevanceFieldEnum={id:"id",organizationId:"organizationId",subscriptionId:"subscriptionId",event:"event"};B.Prisma.BillingPeriodUsageOrderByRelevanceFieldEnum={id:"id",organizationId:"organizationId",subscriptionId:"subscriptionId"};B.Prisma.ServiceProviderOrderByRelevanceFieldEnum={id:"id",name:"name",refreshToken:"refreshToken",accessToken:"accessToken",externalId:"externalId",ownerId:"ownerId",organizationId:"organizationId"};B.Prisma.MessageBNPOrderByRelevanceFieldEnum={id:"id",text:"text",userName:"userName",datastoreId:"datastoreId"};B.Prisma.LeadOrderByRelevanceFieldEnum={id:"id",email:"email",firstName:"firstName",lastName:"lastName",phoneNumber:"phoneNumber",organizationId:"organizationId",agentId:"agentId",conversationId:"conversationId"};B.Prisma.FormOrderByRelevanceFieldEnum={id:"id",name:"name",organizationId:"organizationId",datastoreId:"datastoreId"};B.Prisma.FormSubmissionOrderByRelevanceFieldEnum={id:"id",formId:"formId",conversationId:"conversationId",messageId:"messageId"};B.Prisma.XPBNPEvalOrderByRelevanceFieldEnum={id:"id",userName:"userName",feature:"feature",usecase:"usecase",promptType:"promptType",datasourceName:"datasourceName",datastoreName:"datastoreName",prompt:"prompt",comment:"comment",result:"result"};B.Prisma.LLMTaskOutputOrderByRelevanceFieldEnum={id:"id",externalId:"externalId"};B.Prisma.MailInboxOrderByRelevanceFieldEnum={id:"id",name:"name",description:"description",alias:"alias",fromName:"fromName",signature:"signature",customEmail:"customEmail",organizationId:"organizationId",customEmailVerificationTokenId:"customEmailVerificationTokenId"};B.Prisma.AttachmentOrderByRelevanceFieldEnum={id:"id",name:"name",url:"url",mimeType:"mimeType",messageId:"messageId",conversationId:"conversationId"};B.Prisma.ContactOrderByRelevanceFieldEnum={id:"id",email:"email",phoneNumber:"phoneNumber",externalId:"externalId",instagramId:"instagramId",firstName:"firstName",lastName:"lastName",organizationId:"organizationId",agentId:"agentId"};B.Prisma.VisitorOrderByRelevanceFieldEnum={id:"id",contactId:"contactId",organizationId:"organizationId",externalId:"externalId"};B.Prisma.VerificationCodeOrderByRelevanceFieldEnum={code:"code",mailInboxId:"mailInboxId"};B.Prisma.onboarding_infoOrderByRelevanceFieldEnum={id:"id",user_id:"user_id",organization_id:"organization_id",completedSteps:"completedSteps"};B.Prisma.ContentFilterOrderByRelevanceFieldEnum={id:"id",name:"name",description:"description",redirectUrl:"redirectUrl",agentId:"agentId"};B.Prisma.FollowUpConversationOrderByRelevanceFieldEnum={id:"id",conversationId:"conversationId",agentId:"agentId",lastFollowUpMessageId:"lastFollowUpMessageId"};B.Prisma.FollowUpConfigOrderByRelevanceFieldEnum={id:"id",prompt:"prompt",agentId:"agentId"};B.Prisma.AutoSyncConfigOrderByRelevanceFieldEnum={id:"id",datasourceId:"datasourceId"};B.Prisma.AgentModeOrderByRelevanceFieldEnum={id:"id",prompt:"prompt",agentId:"agentId"};B.Prisma.RetrievalEvaluationConfigOrderByRelevanceFieldEnum={id:"id",agentId:"agentId",evaluatorPrompt:"evaluatorPrompt",generateQueryPrompt:"generateQueryPrompt"};B.Prisma.ComposioProfileOrderByRelevanceFieldEnum={id:"id",accountId:"accountId",organizationId:"organizationId",toolkitSlug:"toolkitSlug",toolkitName:"toolkitName",profileName:"profileName",displayName:"displayName",encryptedConfig:"encryptedConfig",configHash:"configHash",redirectUrl:"redirectUrl",connectedAccountId:"connectedAccountId",mcpServerId:"mcpServerId",mcpUrl:"mcpUrl"};B.Prisma.UserBlockLogOrderByRelevanceFieldEnum={id:"id",userId:"userId",blockedById:"blockedById",reason:"reason"};B.Prisma.UserBlockStatusOrderByRelevanceFieldEnum={id:"id",userId:"userId",reason:"reason",blockedById:"blockedById"};B.Prisma.AuditLogOrderByRelevanceFieldEnum={id:"id",resourceId:"resourceId",userId:"userId",organizationId:"organizationId"};B.Prisma.LoginMonitoringConfigOrderByRelevanceFieldEnum={id:"id",notificationEmails:"notificationEmails",organizationId:"organizationId",createdById:"createdById",updatedById:"updatedById"};B.Prisma.LoginMonitoringNotificationOrderByRelevanceFieldEnum={id:"id",configId:"configId",userId:"userId"};B.Prisma.ImpersonationSessionOrderByRelevanceFieldEnum={id:"id",superadminId:"superadminId",targetUserId:"targetUserId",targetOrganizationId:"targetOrganizationId",endReason:"endReason"};B.Prisma.DatastoreFileOrderByRelevanceFieldEnum={id:"id",datastoreId:"datastoreId",name:"name",s3Key:"s3Key",mimeType:"mimeType"};B.Prisma.ActivityLogOrderByRelevanceFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",agentId:"agentId",endpoint:"endpoint",method:"method",resourceId:"resourceId",userAgent:"userAgent",ipAddress:"ipAddress",errorMessage:"errorMessage"};B.Prisma.TokenUsageLogOrderByRelevanceFieldEnum={id:"id",userId:"userId",organizationId:"organizationId",agentId:"agentId",conversationId:"conversationId",messageId:"messageId",modelName:"modelName"};B.Prisma.AgentWorkflowOrderByRelevanceFieldEnum={id:"id",agentId:"agentId",name:"name",description:"description"};B.Prisma.WorkflowExecutionOrderByRelevanceFieldEnum={id:"id",workflowId:"workflowId",agentId:"agentId",conversationId:"conversationId",triggeredBy:"triggeredBy",errorMessage:"errorMessage"};B.Prisma.AgentVersionOrderByRelevanceFieldEnum={id:"id",agentId:"agentId",versionName:"versionName",name:"name",description:"description",iconUrl:"iconUrl",systemPrompt:"systemPrompt",userPrompt:"userPrompt",prompt:"prompt",conversationalModePrompt:"conversationalModePrompt",changeDescription:"changeDescription",previousVersionId:"previousVersionId"};B.Prisma.NotificationSettingsOrderByRelevanceFieldEnum={id:"id",organizationId:"organizationId",recipientMemberIds:"recipientMemberIds",recipientEmails:"recipientEmails"};B.Prisma.AgentTriggerOrderByRelevanceFieldEnum={id:"id",agentId:"agentId",workflowId:"workflowId",name:"name",description:"description"};B.Prisma.AgentTriggerExecutionOrderByRelevanceFieldEnum={id:"id",triggerId:"triggerId",conversationId:"conversationId",workflowExecId:"workflowExecId",triggeredBy:"triggeredBy",matchedValue:"matchedValue",errorMessage:"errorMessage"};B.Prisma.UserPreferencesOrderByRelevanceFieldEnum={id:"id",userId:"userId",selectedOrganizationId:"selectedOrganizationId"};B.LanguageCode=B.$Enums.LanguageCode={en:"en",es:"es",pt:"pt"};B.MembershipRole=B.$Enums.MembershipRole={OWNER:"OWNER",ADMIN:"ADMIN",USER:"USER"};B.GlobalRole=B.$Enums.GlobalRole={SUPERADMIN:"SUPERADMIN",CUSTOMER:"CUSTOMER"};B.DatastoreType=B.$Enums.DatastoreType={pinecone:"pinecone",qdrant:"qdrant",llamaindex:"llamaindex",typesense:"typesense",code_interpreter:"code_interpreter"};B.DatastoreVisibility=B.$Enums.DatastoreVisibility={public:"public",private:"private"};B.DatasourceType=B.$Enums.DatasourceType={web_page:"web_page",web_site:"web_site",text:"text",file:"file",file_row:"file_row",file_page_pdf:"file_page_pdf",google_drive_file:"google_drive_file",google_drive_folder:"google_drive_folder",notion:"notion",notion_page:"notion_page",qa:"qa",youtube_video:"youtube_video",youtube_bulk:"youtube_bulk",code_interpreter_file:"code_interpreter_file",file_attachment:"file_attachment"};B.DatasourceStatus=B.$Enums.DatasourceStatus={unsynched:"unsynched",pending:"pending",running:"running",synched:"synched",error:"error",usage_limit_reached:"usage_limit_reached"};B.AgentVisibility=B.$Enums.AgentVisibility={public:"public",private:"private"};B.ConversationChannel=B.$Enums.ConversationChannel={dashboard:"dashboard",agent_builder:"agent_builder",website:"website",slack:"slack",crisp:"crisp",api:"api",form:"form",mail:"mail",whatsapp:"whatsapp",telegram:"telegram",meta:"meta",mercadolibre:"mercadolibre",chatwoot:"chatwoot",crmhorneross:"crmhorneross"};B.ConversationStatus=B.$Enums.ConversationStatus={RESOLVED:"RESOLVED",UNRESOLVED:"UNRESOLVED",HUMAN_REQUESTED:"HUMAN_REQUESTED"};B.ConversationPriority=B.$Enums.ConversationPriority={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH"};B.MessageFrom=B.$Enums.MessageFrom={agent:"agent",human:"human"};B.MessageType=B.$Enums.MessageType={TEXT:"TEXT",IMAGE:"IMAGE",VIDEO:"VIDEO",AUDIO:"AUDIO",FILE:"FILE",ACTION:"ACTION",APPROVAL:"APPROVAL",SYSTEM:"SYSTEM",NOTIFICATION:"NOTIFICATION",ALERT:"ALERT",UPDATE:"UPDATE",REMINDER:"REMINDER"};B.MessageEval=B.$Enums.MessageEval={good:"good",bad:"bad"};B.AgentRunStatus=B.$Enums.AgentRunStatus={running:"running",stopped:"stopped",failed:"failed",completed:"completed"};B.AgentModelName=B.$Enums.AgentModelName={gpt_4o:"gpt_4o",gpt_4o_mini:"gpt_4o_mini",gpt_41:"gpt_41",gpt_41_openai:"gpt_41_openai",gpt_41_mini:"gpt_41_mini",gpt_41_nano:"gpt_41_nano",gpt_5:"gpt_5",gpt_5_nano:"gpt_5_nano",gpt_5_mini:"gpt_5_mini",deepseek_r1:"deepseek_r1",claude_3_7_sonnet:"claude_3_7_sonnet",claude_4_sonnet:"claude_4_sonnet",claude_4_5_sonnet:"claude_4_5_sonnet",nova_pro:"nova_pro",llama_4_maverick_17b:"llama_4_maverick_17b",deepseek_v3:"deepseek_v3",gpt_o3_mini:"gpt_o3_mini",gemini_2_5_flash:"gemini_2_5_flash",gemini_2_5_pro:"gemini_2_5_pro",grok_4:"grok_4",sonar_deep_research:"sonar_deep_research",sonar_pro:"sonar_pro"};B.IntegrationType=B.$Enums.IntegrationType={website:"website",crisp:"crisp",slack:"slack"};B.PriceInterval=B.$Enums.PriceInterval={day:"day",month:"month",week:"week",year:"year"};B.PriceType=B.$Enums.PriceType={recurring:"recurring"};B.SubscriptionPlan=B.$Enums.SubscriptionPlan={level_0:"level_0",level_0_5:"level_0_5",level_1:"level_1",level_2:"level_2",level_3:"level_3",level_4:"level_4",level_5:"level_5"};B.SubscriptionStatus=B.$Enums.SubscriptionStatus={active:"active",canceled:"canceled",incomplete:"incomplete",incomplete_expired:"incomplete_expired",past_due:"past_due",trialing:"trialing",unpaid:"unpaid"};B.ServiceProviderType=B.$Enums.ServiceProviderType={website:"website",wordpress:"wordpress",google_drive:"google_drive",notion:"notion",crisp:"crisp",slack:"slack",zendesk:"zendesk",whatsapp:"whatsapp",telegram:"telegram",meta:"meta",mercadolibre:"mercadolibre",chatwoot:"chatwoot",crmhorneross:"crmhorneross"};B.FormType=B.$Enums.FormType={conversational:"conversational",traditional:"traditional"};B.FormStatus=B.$Enums.FormStatus={COMPLETED:"COMPLETED",IN_PROGRESS:"IN_PROGRESS",ABANDONED:"ABANDONED"};B.LLMTaskOutputType=B.$Enums.LLMTaskOutputType={youtube_summary:"youtube_summary",web_page_summary:"web_page_summary"};B.OnboardingStatus=B.$Enums.OnboardingStatus={NOT_STARTED:"NOT_STARTED",IN_PROGRESS:"IN_PROGRESS",PENDING_PAYMENT:"PENDING_PAYMENT",COMPLETED:"COMPLETED"};B.ContentFilterAction=B.$Enums.ContentFilterAction={permit:"permit",filter:"filter",redirect:"redirect"};B.AgentModeType=B.$Enums.AgentModeType={conversational:"conversational",analytical:"analytical",creative:"creative",support:"support",sales:"sales",research:"research",educational:"educational",formal:"formal",casual:"casual",expert:"expert",multilingual:"multilingual",empathetic:"empathetic",problem_solving:"problem_solving",brainstorming:"brainstorming",advisory:"advisory"};B.UserBlockAction=B.$Enums.UserBlockAction={BLOCK:"BLOCK",UNBLOCK:"UNBLOCK"};B.AuditResourceType=B.$Enums.AuditResourceType={AGENT:"AGENT",DATASOURCE:"DATASOURCE",DATASTORE:"DATASTORE",FORM:"FORM",TOOL:"TOOL",CONVERSATION:"CONVERSATION",MESSAGE:"MESSAGE",SERVICE_PROVIDER:"SERVICE_PROVIDER",USER:"USER",LOGIN_MONITORING_CONFIG:"LOGIN_MONITORING_CONFIG",OTHER:"OTHER"};B.AuditAction=B.$Enums.AuditAction={CREATE:"CREATE",UPDATE:"UPDATE",DELETE:"DELETE",IMPERSONATE_START:"IMPERSONATE_START",IMPERSONATE_END:"IMPERSONATE_END",IMPERSONATE_SECURITY_VIOLATION:"IMPERSONATE_SECURITY_VIOLATION"};B.ActivityResourceType=B.$Enums.ActivityResourceType={AGENT:"AGENT",CONVERSATION:"CONVERSATION",MESSAGE:"MESSAGE",DATASTORE:"DATASTORE",DATASOURCE:"DATASOURCE",FORM:"FORM",TOOL:"TOOL",USER:"USER",ORGANIZATION:"ORGANIZATION",SERVICE_PROVIDER:"SERVICE_PROVIDER",CONTENT_FILTER:"CONTENT_FILTER",FOLLOW_UP_CONFIG:"FOLLOW_UP_CONFIG",MCP_CONNECTION:"MCP_CONNECTION",API_KEY:"API_KEY",MAIL_INBOX:"MAIL_INBOX",CONTACT:"CONTACT",LEAD:"LEAD",OTHER:"OTHER"};B.ActivityAction=B.$Enums.ActivityAction={CREATE:"CREATE",READ:"READ",UPDATE:"UPDATE",DELETE:"DELETE",QUERY:"QUERY",SYNC:"SYNC",UPLOAD:"UPLOAD",DOWNLOAD:"DOWNLOAD",EXECUTE:"EXECUTE",APPROVE:"APPROVE",REJECT:"REJECT",INVITE:"INVITE",LOGIN:"LOGIN",LOGOUT:"LOGOUT",EXPORT:"EXPORT",IMPORT:"IMPORT",DUPLICATE:"DUPLICATE",PUBLISH:"PUBLISH",ARCHIVE:"ARCHIVE",RESTORE:"RESTORE",OTHER:"OTHER"};B.AgentWorkflowStatus=B.$Enums.AgentWorkflowStatus={draft:"draft",active:"active",paused:"paused",archived:"archived"};B.WorkflowExecutionStatus=B.$Enums.WorkflowExecutionStatus={pending:"pending",running:"running",completed:"completed",failed:"failed",cancelled:"cancelled"};B.PromptType=B.$Enums.PromptType={raw:"raw",customer_support:"customer_support"};B.VersionStatus=B.$Enums.VersionStatus={active:"active",inactive:"inactive",archived:"archived"};B.AgentTriggerType=B.$Enums.AgentTriggerType={keyword:"keyword",phrase:"phrase",regex:"regex",sentiment:"sentiment",intent:"intent",schedule:"schedule",time_after_message:"time_after_message",time_no_response:"time_no_response",conversation_start:"conversation_start",conversation_resolved:"conversation_resolved",lead_captured:"lead_captured",form_submitted:"form_submitted",human_requested:"human_requested",webhook:"webhook",api_call:"api_call",integration_event:"integration_event",user_attribute:"user_attribute",conversation_count:"conversation_count",tag_added:"tag_added",channel:"channel",agent_mode_change:"agent_mode_change",tool_executed:"tool_executed",datastore_updated:"datastore_updated"};B.AgentTriggerExecStatus=B.$Enums.AgentTriggerExecStatus={success:"success",failed:"failed",skipped:"skipped",throttled:"throttled"};B.Prisma.ModelName={Organization:"Organization",Membership:"Membership",User:"User",Usage:"Usage",Datastore:"Datastore",AppDatasource:"AppDatasource",UserApiKey:"UserApiKey",DatastoreApiKey:"DatastoreApiKey",Agent:"Agent",ActionApproval:"ActionApproval",Domain:"Domain",Conversation:"Conversation",Message:"Message",AgentRun:"AgentRun",ExternalIntegration:"ExternalIntegration",Product:"Product",Price:"Price",Subscription:"Subscription",SubscriptionHistory:"SubscriptionHistory",BillingPeriodUsage:"BillingPeriodUsage",ServiceProvider:"ServiceProvider",MessageBNP:"MessageBNP",Lead:"Lead",Form:"Form",FormSubmission:"FormSubmission",XPBNPEval:"XPBNPEval",LLMTaskOutput:"LLMTaskOutput",MailInbox:"MailInbox",Attachment:"Attachment",Contact:"Contact",Visitor:"Visitor",VerificationCode:"VerificationCode",onboarding_info:"onboarding_info",ContentFilter:"ContentFilter",FollowUpConversation:"FollowUpConversation",FollowUpConfig:"FollowUpConfig",AutoSyncConfig:"AutoSyncConfig",AgentMode:"AgentMode",RetrievalEvaluationConfig:"RetrievalEvaluationConfig",ComposioProfile:"ComposioProfile",UserBlockLog:"UserBlockLog",UserBlockStatus:"UserBlockStatus",AuditLog:"AuditLog",LoginMonitoringConfig:"LoginMonitoringConfig",LoginMonitoringNotification:"LoginMonitoringNotification",ImpersonationSession:"ImpersonationSession",DatastoreFile:"DatastoreFile",ActivityLog:"ActivityLog",TokenUsageLog:"TokenUsageLog",AgentWorkflow:"AgentWorkflow",WorkflowExecution:"WorkflowExecution",AgentVersion:"AgentVersion",NotificationSettings:"NotificationSettings",AgentTrigger:"AgentTrigger",AgentTriggerExecution:"AgentTriggerExecution",UserPreferences:"UserPreferences"};var vI=class{constructor(){return new Proxy(this,{get(t,r){let a,n=Gn();throw n.isEdge?a=`PrismaClient is not configured to run in ${n.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
14
|
+
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
15
|
+
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
16
|
+
`:a="PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `"+n.prettyName+"`).",a+=`
|
|
17
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`,new Error(a)}})}};B.PrismaClient=vI;Object.assign(B,or)});var RP=Qt((ske,NP)=>{c();var NQ=LP();NP.exports=NQ});var MP=Qt(DP=>{"use strict";c();var xf=re();function DQ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MQ=typeof Object.is=="function"?Object.is:DQ,PQ=xf.useState,UQ=xf.useEffect,zQ=xf.useLayoutEffect,FQ=xf.useDebugValue;function BQ(e,t){var r=t(),a=PQ({inst:{value:r,getSnapshot:t}}),n=a[0].inst,o=a[1];return zQ(function(){n.value=r,n.getSnapshot=t,xI(n)&&o({inst:n})},[e,r,t]),UQ(function(){return xI(n)&&o({inst:n}),e(function(){xI(n)&&o({inst:n})})},[e]),FQ(r),r}function xI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!MQ(e,r)}catch{return!0}}function $Q(e,t){return t()}var jQ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$Q:BQ;DP.useSyncExternalStore=xf.useSyncExternalStore!==void 0?xf.useSyncExternalStore:jQ});var UP=Qt((Ike,PP)=>{"use strict";c();PP.exports=MP()});var cU=Qt(Px=>{"use strict";c();var Aoe=Symbol.for("react.transitional.element"),Loe=Symbol.for("react.fragment");function uU(e,t,r){var a=null;if(r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),"key"in t){r={};for(var n in t)n!=="key"&&(r[n]=t[n])}else r=t;return t=r.ref,{$$typeof:Aoe,type:e,key:a,ref:t!==void 0?t:null,props:r}}Px.Fragment=Loe;Px.jsx=uU;Px.jsxs=uU});var ae=Qt((U3e,dU)=>{"use strict";c();dU.exports=cU()});function ZU(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var WU=WS(()=>{c()});var YU={};nn(YU,{default:()=>xie});var vie,xie,KU=WS(()=>{c();WU();vie=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xie=ZU(function(e){return vie.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var cB=Qt(fn=>{"use strict";c();var Dle=re();function uB(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function wu(){}var dn={d:{f:wu,r:function(){throw Error(uB(522))},D:wu,C:wu,L:wu,m:wu,X:wu,S:wu,M:wu},p:0,findDOMNode:null},Mle=Symbol.for("react.portal");function Ple(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mle,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}var h0=Dle.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function lw(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=dn;fn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(uB(299));return Ple(e,t,null,r)};fn.flushSync=function(e){var t=h0.T,r=dn.p;try{if(h0.T=null,dn.p=2,e)return e()}finally{h0.T=t,dn.p=r,dn.d.f()}};fn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,dn.d.C(e,t))};fn.prefetchDNS=function(e){typeof e=="string"&&dn.d.D(e)};fn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,a=lw(r,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?dn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:o}):r==="script"&&dn.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};fn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=lw(t.as,t.crossOrigin);dn.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&dn.d.M(e)};fn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,a=lw(r,t.crossOrigin);dn.d.L(e,r,{crossOrigin:a,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})}};fn.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=lw(t.as,t.crossOrigin);dn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else dn.d.m(e)};fn.requestFormReset=function(e){dn.d.r(e)};fn.unstable_batchedUpdates=function(e,t){return e(t)};fn.useFormState=function(e,t,r){return h0.H.useFormState(e,t,r)};fn.useFormStatus=function(){return h0.H.useHostTransitionStatus()};fn.version="19.2.0"});var g0=Qt((VQe,fB)=>{"use strict";c();function dB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dB)}catch(e){console.error(e)}}dB(),fB.exports=cB()});var w7=Qt((Rat,x7)=>{c();var g7=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vce=/\n/g,xce=/^\s*/,wce=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Tce=/^:\s*/,Ece=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Sce=/^[;\s]*/,Ice=/^\s+|\s+$/g,_ce=`
|
|
18
|
+
`,y7="/",b7="*",md="",kce="comment",Cce="declaration";x7.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,a=1;function n(x){var w=x.match(vce);w&&(r+=w.length);var b=x.lastIndexOf(_ce);a=~b?x.length-b:a+x.length}function o(){var x={line:r,column:a};return function(w){return w.position=new i(x),d(),w}}function i(x){this.start=x,this.end={line:r,column:a},this.source=t.source}i.prototype.content=e;var s=[];function l(x){var w=new Error(t.source+":"+r+":"+a+": "+x);if(w.reason=x,w.filename=t.source,w.line=r,w.column=a,w.source=e,t.silent)s.push(w);else throw w}function u(x){var w=x.exec(e);if(w){var b=w[0];return n(b),e=e.slice(b.length),w}}function d(){u(xce)}function f(x){var w;for(x=x||[];w=p();)w!==!1&&x.push(w);return x}function p(){var x=o();if(!(y7!=e.charAt(0)||b7!=e.charAt(1))){for(var w=2;md!=e.charAt(w)&&(b7!=e.charAt(w)||y7!=e.charAt(w+1));)++w;if(w+=2,md===e.charAt(w-1))return l("End of comment missing");var b=e.slice(2,w-2);return a+=2,n(b),e=e.slice(w),a+=2,x({type:kce,comment:b})}}function m(){var x=o(),w=u(wce);if(w){if(p(),!u(Tce))return l("property missing ':'");var b=u(Ece),v=x({type:Cce,property:v7(w[0].replace(g7,md)),value:b?v7(b[0].replace(g7,md)):md});return u(Sce),v}}function g(){var x=[];f(x);for(var w;w=m();)w!==!1&&(x.push(w),f(x));return x}return d(),g()};function v7(e){return e?e.replace(Ice,md):md}});var T7=Qt(_0=>{"use strict";c();var Ace=_0&&_0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_0,"__esModule",{value:!0});_0.default=Nce;var Lce=Ace(w7());function Nce(e,t){var r=null;if(!e||typeof e!="string")return r;var a=(0,Lce.default)(e),n=typeof t=="function";return a.forEach(function(o){if(o.type==="declaration"){var i=o.property,s=o.value;n?t(i,s,o):s&&(r=r||{},r[i]=s)}}),r}});var G$=Qt((pdt,q$)=>{"use strict";c();var oT=Object.prototype.hasOwnProperty,V$=Object.prototype.toString,z$=Object.defineProperty,F$=Object.getOwnPropertyDescriptor,B$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):V$.call(t)==="[object Array]"},$$=function(t){if(!t||V$.call(t)!=="[object Object]")return!1;var r=oT.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&oT.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!a)return!1;var n;for(n in t);return typeof n>"u"||oT.call(t,n)},j$=function(t,r){z$&&r.name==="__proto__"?z$(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},H$=function(t,r){if(r==="__proto__")if(oT.call(t,r)){if(F$)return F$(t,r).value}else return;return t[r]};q$.exports=function e(){var t,r,a,n,o,i,s=arguments[0],l=1,u=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)a=H$(s,r),n=H$(t,r),s!==n&&(d&&n&&($$(n)||(o=B$(n)))?(o?(o=!1,i=a&&B$(a)?a:[]):i=a&&$$(a)?a:{},j$(s,{name:r,newValue:e(d,i,n)})):typeof n<"u"&&j$(s,{name:r,newValue:n}));return s}});var fV=Qt((eO,tO)=>{c();(function(e,t){typeof eO=="object"&&typeof tO<"u"?tO.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(eO,function(){"use strict";var e=1e3,t=6e4,r=36e5,a="millisecond",n="second",o="minute",i="hour",s="day",l="week",u="month",d="quarter",f="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var D=["th","st","nd","rd"],$=z%100;return"["+z+(D[($-20)%10]||D[$]||D[0])+"]"}},b=function(z,D,$){var H=String(z);return!H||H.length>=D?z:""+Array(D+1-H.length).join($)+z},v={s:b,z:function(z){var D=-z.utcOffset(),$=Math.abs(D),H=Math.floor($/60),V=$%60;return(D<=0?"+":"-")+b(H,2,"0")+":"+b(V,2,"0")},m:function z(D,$){if(D.date()<$.date())return-z($,D);var H=12*($.year()-D.year())+($.month()-D.month()),V=D.clone().add(H,u),Q=$-V<0,te=D.clone().add(H+(Q?-1:1),u);return+(-(H+($-V)/(Q?V-te:te-V))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:u,y:f,w:l,d:s,D:p,h:i,m:o,s:n,ms:a,Q:d}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},T="en",E={};E[T]=w;var I="$isDayjsObject",_=function(z){return z instanceof R||!(!z||!z[I])},A=function z(D,$,H){var V;if(!D)return T;if(typeof D=="string"){var Q=D.toLowerCase();E[Q]&&(V=Q),$&&(E[Q]=$,V=Q);var te=D.split("-");if(!V&&te.length>1)return z(te[0])}else{var Ee=D.name;E[Ee]=D,V=Ee}return!H&&V&&(T=V),V||!H&&T},N=function(z,D){if(_(z))return z.clone();var $=typeof D=="object"?D:{};return $.date=z,$.args=arguments,new R($)},F=v;F.l=A,F.i=_,F.w=function(z,D){return N(z,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var R=function(){function z($){this.$L=A($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[I]=!0}var D=z.prototype;return D.parse=function($){this.$d=function(H){var V=H.date,Q=H.utc;if(V===null)return new Date(NaN);if(F.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var te=V.match(g);if(te){var Ee=te[2]-1||0,C=(te[7]||"0").substring(0,3);return Q?new Date(Date.UTC(te[1],Ee,te[3]||1,te[4]||0,te[5]||0,te[6]||0,C)):new Date(te[1],Ee,te[3]||1,te[4]||0,te[5]||0,te[6]||0,C)}}return new Date(V)}($),this.init()},D.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},D.$utils=function(){return F},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function($,H){var V=N($);return this.startOf(H)<=V&&V<=this.endOf(H)},D.isAfter=function($,H){return N($)<this.startOf(H)},D.isBefore=function($,H){return this.endOf(H)<N($)},D.$g=function($,H,V){return F.u($)?this[H]:this.set(V,$)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function($,H){var V=this,Q=!!F.u(H)||H,te=F.p($),Ee=function(ze,Oe){var Ke=F.w(V.$u?Date.UTC(V.$y,Oe,ze):new Date(V.$y,Oe,ze),V);return Q?Ke:Ke.endOf(s)},C=function(ze,Oe){return F.w(V.toDate()[ze].apply(V.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(Oe)),V)},_e=this.$W,He=this.$M,M=this.$D,Ye="set"+(this.$u?"UTC":"");switch(te){case f:return Q?Ee(1,0):Ee(31,11);case u:return Q?Ee(1,He):Ee(0,He+1);case l:var ut=this.$locale().weekStart||0,yt=(_e<ut?_e+7:_e)-ut;return Ee(Q?M-yt:M+(6-yt),He);case s:case p:return C(Ye+"Hours",0);case i:return C(Ye+"Minutes",1);case o:return C(Ye+"Seconds",2);case n:return C(Ye+"Milliseconds",3);default:return this.clone()}},D.endOf=function($){return this.startOf($,!1)},D.$set=function($,H){var V,Q=F.p($),te="set"+(this.$u?"UTC":""),Ee=(V={},V[s]=te+"Date",V[p]=te+"Date",V[u]=te+"Month",V[f]=te+"FullYear",V[i]=te+"Hours",V[o]=te+"Minutes",V[n]=te+"Seconds",V[a]=te+"Milliseconds",V)[Q],C=Q===s?this.$D+(H-this.$W):H;if(Q===u||Q===f){var _e=this.clone().set(p,1);_e.$d[Ee](C),_e.init(),this.$d=_e.set(p,Math.min(this.$D,_e.daysInMonth())).$d}else Ee&&this.$d[Ee](C);return this.init(),this},D.set=function($,H){return this.clone().$set($,H)},D.get=function($){return this[F.p($)]()},D.add=function($,H){var V,Q=this;$=Number($);var te=F.p(H),Ee=function(He){var M=N(Q);return F.w(M.date(M.date()+Math.round(He*$)),Q)};if(te===u)return this.set(u,this.$M+$);if(te===f)return this.set(f,this.$y+$);if(te===s)return Ee(1);if(te===l)return Ee(7);var C=(V={},V[o]=t,V[i]=r,V[n]=e,V)[te]||1,_e=this.$d.getTime()+$*C;return F.w(_e,this)},D.subtract=function($,H){return this.add(-1*$,H)},D.format=function($){var H=this,V=this.$locale();if(!this.isValid())return V.invalidDate||m;var Q=$||"YYYY-MM-DDTHH:mm:ssZ",te=F.z(this),Ee=this.$H,C=this.$m,_e=this.$M,He=V.weekdays,M=V.months,Ye=V.meridiem,ut=function(Oe,Ke,ct,Xe){return Oe&&(Oe[Ke]||Oe(H,Q))||ct[Ke].slice(0,Xe)},yt=function(Oe){return F.s(Ee%12||12,Oe,"0")},ze=Ye||function(Oe,Ke,ct){var Xe=Oe<12?"AM":"PM";return ct?Xe.toLowerCase():Xe};return Q.replace(x,function(Oe,Ke){return Ke||function(ct){switch(ct){case"YY":return String(H.$y).slice(-2);case"YYYY":return F.s(H.$y,4,"0");case"M":return _e+1;case"MM":return F.s(_e+1,2,"0");case"MMM":return ut(V.monthsShort,_e,M,3);case"MMMM":return ut(M,_e);case"D":return H.$D;case"DD":return F.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return ut(V.weekdaysMin,H.$W,He,2);case"ddd":return ut(V.weekdaysShort,H.$W,He,3);case"dddd":return He[H.$W];case"H":return String(Ee);case"HH":return F.s(Ee,2,"0");case"h":return yt(1);case"hh":return yt(2);case"a":return ze(Ee,C,!0);case"A":return ze(Ee,C,!1);case"m":return String(C);case"mm":return F.s(C,2,"0");case"s":return String(H.$s);case"ss":return F.s(H.$s,2,"0");case"SSS":return F.s(H.$ms,3,"0");case"Z":return te}return null}(Oe)||te.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function($,H,V){var Q,te=this,Ee=F.p(H),C=N($),_e=(C.utcOffset()-this.utcOffset())*t,He=this-C,M=function(){return F.m(te,C)};switch(Ee){case f:Q=M()/12;break;case u:Q=M();break;case d:Q=M()/3;break;case l:Q=(He-_e)/6048e5;break;case s:Q=(He-_e)/864e5;break;case i:Q=He/r;break;case o:Q=He/t;break;case n:Q=He/e;break;default:Q=He}return V?Q:F.a(Q)},D.daysInMonth=function(){return this.endOf(u).$D},D.$locale=function(){return E[this.$L]},D.locale=function($,H){if(!$)return this.$L;var V=this.clone(),Q=A($,H,!0);return Q&&(V.$L=Q),V},D.clone=function(){return F.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},z}(),ne=R.prototype;return N.prototype=ne,[["$ms",a],["$s",n],["$m",o],["$H",i],["$W",s],["$M",u],["$y",f],["$D",p]].forEach(function(z){ne[z[1]]=function(D){return this.$g(D,z[0],z[1])}}),N.extend=function(z,D){return z.$i||(z(D,R,N),z.$i=!0),N},N.locale=A,N.isDayjs=_,N.unix=function(z){return N(1e3*z)},N.en=E[T],N.Ls=E,N.p={},N})});var pV=Qt((rO,aO)=>{c();(function(e,t){typeof rO=="object"&&typeof aO<"u"?aO.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_relativeTime=t()})(rO,function(){"use strict";return function(e,t,r){e=e||{};var a=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(s,l,u,d){return a.fromToBase(s,l,u,d)}r.en.relativeTime=n,a.fromToBase=function(s,l,u,d,f){for(var p,m,g,x=u.$locale().relativeTime||n,w=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=w.length,v=0;v<b;v+=1){var T=w[v];T.d&&(p=d?r(s).diff(u,T.d,!0):u.diff(s,T.d,!0));var E=(e.rounding||Math.round)(Math.abs(p));if(g=p>0,E<=T.r||!T.r){E<=1&&v>0&&(T=w[v-1]);var I=x[T.l];f&&(E=f(""+E)),m=typeof I=="string"?I.replace("%d",E):I(E,l,T.l,g);break}}if(l)return m;var _=g?x.future:x.past;return typeof _=="function"?_(m):_.replace("%s",m)},a.to=function(s,l){return o(s,l,this,!0)},a.from=function(s,l){return o(s,l,this)};var i=function(s){return s.$u?r.utc():r()};a.toNow=function(s){return this.to(i(this),s)},a.fromNow=function(s){return this.from(i(this),s)}}})});var MV=Qt(()=>{c()});var Xq=Qt((hkt,Kq)=>{c();function wxe(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,a=0;return function(...o){clearTimeout(r);let i=Date.now(),s=i-a,l=t-s;l<=0?(a=i,e.apply(this,o)):r=setTimeout(()=>{a=Date.now(),e.apply(this,o)},l)}}Kq.exports=wxe});var Qq=Qt(Jq=>{"use strict";c();var mm=re();function Txe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Exe=typeof Object.is=="function"?Object.is:Txe,Sxe=mm.useState,Ixe=mm.useEffect,_xe=mm.useLayoutEffect,kxe=mm.useDebugValue;function Cxe(e,t){var r=t(),a=Sxe({inst:{value:r,getSnapshot:t}}),n=a[0].inst,o=a[1];return _xe(function(){n.value=r,n.getSnapshot=t,IO(n)&&o({inst:n})},[e,r,t]),Ixe(function(){return IO(n)&&o({inst:n}),e(function(){IO(n)&&o({inst:n})})},[e]),kxe(r),r}function IO(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Exe(e,r)}catch{return!0}}function Axe(e,t){return t()}var Lxe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Axe:Cxe;Jq.useSyncExternalStore=mm.useSyncExternalStore!==void 0?mm.useSyncExternalStore:Lxe});var tG=Qt((vkt,eG)=>{"use strict";c();eG.exports=Qq()});var mZ=Qt(Ar=>{"use strict";c();function cD(e,t){var r=e.length;e.push(t);e:for(;0<r;){var a=r-1>>>1,n=e[a];if(0<vE(n,t))e[a]=t,e[r]=n,r=a;else break e}}function ds(e){return e.length===0?null:e[0]}function wE(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var a=0,n=e.length,o=n>>>1;a<o;){var i=2*(a+1)-1,s=e[i],l=i+1,u=e[l];if(0>vE(s,r))l<n&&0>vE(u,s)?(e[a]=u,e[l]=r,a=l):(e[a]=s,e[i]=r,a=i);else if(l<n&&0>vE(u,r))e[a]=u,e[l]=r,a=l;else break e}}return t}function vE(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}Ar.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(oZ=performance,Ar.unstable_now=function(){return oZ.now()}):(sD=Date,iZ=sD.now(),Ar.unstable_now=function(){return sD.now()-iZ});var oZ,sD,iZ,ml=[],Gu=[],ZEe=1,jo=null,an=3,dD=!1,Dy=!1,My=!1,fD=!1,uZ=typeof setTimeout=="function"?setTimeout:null,cZ=typeof clearTimeout=="function"?clearTimeout:null,sZ=typeof setImmediate<"u"?setImmediate:null;function xE(e){for(var t=ds(Gu);t!==null;){if(t.callback===null)wE(Gu);else if(t.startTime<=e)wE(Gu),t.sortIndex=t.expirationTime,cD(ml,t);else break;t=ds(Gu)}}function pD(e){if(My=!1,xE(e),!Dy)if(ds(ml)!==null)Dy=!0,Mm||(Mm=!0,Dm());else{var t=ds(Gu);t!==null&&mD(pD,t.startTime-e)}}var Mm=!1,Py=-1,dZ=5,fZ=-1;function pZ(){return fD?!0:!(Ar.unstable_now()-fZ<dZ)}function lD(){if(fD=!1,Mm){var e=Ar.unstable_now();fZ=e;var t=!0;try{e:{Dy=!1,My&&(My=!1,cZ(Py),Py=-1),dD=!0;var r=an;try{t:{for(xE(e),jo=ds(ml);jo!==null&&!(jo.expirationTime>e&&pZ());){var a=jo.callback;if(typeof a=="function"){jo.callback=null,an=jo.priorityLevel;var n=a(jo.expirationTime<=e);if(e=Ar.unstable_now(),typeof n=="function"){jo.callback=n,xE(e),t=!0;break t}jo===ds(ml)&&wE(ml),xE(e)}else wE(ml);jo=ds(ml)}if(jo!==null)t=!0;else{var o=ds(Gu);o!==null&&mD(pD,o.startTime-e),t=!1}}break e}finally{jo=null,an=r,dD=!1}t=void 0}}finally{t?Dm():Mm=!1}}}var Dm;typeof sZ=="function"?Dm=function(){sZ(lD)}:typeof MessageChannel<"u"?(uD=new MessageChannel,lZ=uD.port2,uD.port1.onmessage=lD,Dm=function(){lZ.postMessage(null)}):Dm=function(){uZ(lD,0)};var uD,lZ;function mD(e,t){Py=uZ(function(){e(Ar.unstable_now())},t)}Ar.unstable_IdlePriority=5;Ar.unstable_ImmediatePriority=1;Ar.unstable_LowPriority=4;Ar.unstable_NormalPriority=3;Ar.unstable_Profiling=null;Ar.unstable_UserBlockingPriority=2;Ar.unstable_cancelCallback=function(e){e.callback=null};Ar.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"):dZ=0<e?Math.floor(1e3/e):5};Ar.unstable_getCurrentPriorityLevel=function(){return an};Ar.unstable_next=function(e){switch(an){case 1:case 2:case 3:var t=3;break;default:t=an}var r=an;an=t;try{return e()}finally{an=r}};Ar.unstable_requestPaint=function(){fD=!0};Ar.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=an;an=e;try{return t()}finally{an=r}};Ar.unstable_scheduleCallback=function(e,t,r){var a=Ar.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?a+r:a):r=a,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:ZEe++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>a?(e.sortIndex=r,cD(Gu,e),ds(ml)===null&&e===ds(Gu)&&(My?(cZ(Py),Py=-1):My=!0,mD(pD,r-a))):(e.sortIndex=n,cD(ml,e),Dy||dD||(Dy=!0,Mm||(Mm=!0,Dm()))),e};Ar.unstable_shouldYield=pZ;Ar.unstable_wrapCallback=function(e){var t=an;return function(){var r=an;an=t;try{return e.apply(this,arguments)}finally{an=r}}}});var gZ=Qt((ONt,hZ)=>{"use strict";c();hZ.exports=mZ()});var CX=Qt(GS=>{"use strict";c();var wa=gZ(),jW=re(),WEe=g0();function oe(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function HW(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tb(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function VW(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 qW(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 yZ(e){if(Tb(e)!==e)throw Error(oe(188))}function YEe(e){var t=e.alternate;if(!t){if(t=Tb(e),t===null)throw Error(oe(188));return t!==e?null:e}for(var r=e,a=t;;){var n=r.return;if(n===null)break;var o=n.alternate;if(o===null){if(a=n.return,a!==null){r=a;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===r)return yZ(n),e;if(o===a)return yZ(n),t;o=o.sibling}throw Error(oe(188))}if(r.return!==a.return)r=n,a=o;else{for(var i=!1,s=n.child;s;){if(s===r){i=!0,r=n,a=o;break}if(s===a){i=!0,a=n,r=o;break}s=s.sibling}if(!i){for(s=o.child;s;){if(s===r){i=!0,r=o,a=n;break}if(s===a){i=!0,a=o,r=n;break}s=s.sibling}if(!i)throw Error(oe(189))}}if(r.alternate!==a)throw Error(oe(190))}if(r.tag!==3)throw Error(oe(188));return r.stateNode.current===r?e:t}function GW(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=GW(e),t!==null)return t;e=e.sibling}return null}var Ir=Object.assign,KEe=Symbol.for("react.element"),TE=Symbol.for("react.transitional.element"),Vy=Symbol.for("react.portal"),$m=Symbol.for("react.fragment"),ZW=Symbol.for("react.strict_mode"),WD=Symbol.for("react.profiler"),WW=Symbol.for("react.consumer"),Tl=Symbol.for("react.context"),HM=Symbol.for("react.forward_ref"),YD=Symbol.for("react.suspense"),KD=Symbol.for("react.suspense_list"),VM=Symbol.for("react.memo"),Zu=Symbol.for("react.lazy");Symbol.for("react.scope");var XD=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var XEe=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var bZ=Symbol.iterator;function Uy(e){return e===null||typeof e!="object"?null:(e=bZ&&e[bZ]||e["@@iterator"],typeof e=="function"?e:null)}var JEe=Symbol.for("react.client.reference");function JD(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===JEe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $m:return"Fragment";case WD:return"Profiler";case ZW:return"StrictMode";case YD:return"Suspense";case KD:return"SuspenseList";case XD:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Vy:return"Portal";case Tl:return e.displayName||"Context";case WW:return(e._context.displayName||"Context")+".Consumer";case HM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case VM:return t=e.displayName||null,t!==null?t:JD(e.type)||"Memo";case Zu:t=e._payload,e=e._init;try{return JD(e(t))}catch{}}return null}var qy=Array.isArray,tt=jW.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ht=WEe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xd={pending:!1,data:null,method:null,action:null},QD=[],jm=-1;function gs(e){return{current:e}}function Oa(e){0>jm||(e.current=QD[jm],QD[jm]=null,jm--)}function pr(e,t){jm++,QD[jm]=e.current,e.current=t}var hs=gs(null),lb=gs(null),nc=gs(null),tS=gs(null);function rS(e,t){switch(pr(nc,t),pr(lb,e),pr(hs,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?IW(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=IW(t),e=mX(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Oa(hs),pr(hs,e)}function ih(){Oa(hs),Oa(lb),Oa(nc)}function eM(e){e.memoizedState!==null&&pr(tS,e);var t=hs.current,r=mX(t,e.type);t!==r&&(pr(lb,e),pr(hs,r))}function aS(e){lb.current===e&&(Oa(hs),Oa(lb)),tS.current===e&&(Oa(tS),vb._currentValue=Xd)}var hD,vZ;function Zd(e){if(hD===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);hD=t&&t[1]||"",vZ=-1<r.stack.indexOf(`
|
|
19
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
20
|
+
`+hD+e+vZ}var gD=!1;function yD(e,t){if(!e||gD)return"";gD=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(m){var p=m}Reflect.construct(e,[],f)}else{try{f.call()}catch(m){p=m}e.call(f.prototype)}}else{try{throw Error()}catch(m){p=m}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(m){if(m&&p&&typeof m.stack=="string")return[m.stack,p.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split(`
|
|
21
|
+
`),u=s.split(`
|
|
22
|
+
`);for(n=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;if(a===l.length||n===u.length)for(a=l.length-1,n=u.length-1;1<=a&&0<=n&&l[a]!==u[n];)n--;for(;1<=a&&0<=n;a--,n--)if(l[a]!==u[n]){if(a!==1||n!==1)do if(a--,n--,0>n||l[a]!==u[n]){var d=`
|
|
23
|
+
`+l[a].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=a&&0<=n);break}}}finally{gD=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Zd(r):""}function QEe(e,t){switch(e.tag){case 26:case 27:case 5:return Zd(e.type);case 16:return Zd("Lazy");case 13:return e.child!==t&&t!==null?Zd("Suspense Fallback"):Zd("Suspense");case 19:return Zd("SuspenseList");case 0:case 15:return yD(e.type,!1);case 11:return yD(e.type.render,!1);case 1:return yD(e.type,!0);case 31:return Zd("Activity");default:return""}}function xZ(e){try{var t="",r=null;do t+=QEe(e,r),r=e,e=e.return;while(e);return t}catch(a){return`
|
|
24
|
+
Error generating stack: `+a.message+`
|
|
25
|
+
`+a.stack}}var tM=Object.prototype.hasOwnProperty,qM=wa.unstable_scheduleCallback,bD=wa.unstable_cancelCallback,eSe=wa.unstable_shouldYield,tSe=wa.unstable_requestPaint,vo=wa.unstable_now,rSe=wa.unstable_getCurrentPriorityLevel,YW=wa.unstable_ImmediatePriority,KW=wa.unstable_UserBlockingPriority,nS=wa.unstable_NormalPriority,aSe=wa.unstable_LowPriority,XW=wa.unstable_IdlePriority,nSe=wa.log,oSe=wa.unstable_setDisableYieldValue,Eb=null,xo=null;function Qu(e){if(typeof nSe=="function"&&oSe(e),xo&&typeof xo.setStrictMode=="function")try{xo.setStrictMode(Eb,e)}catch{}}var wo=Math.clz32?Math.clz32:lSe,iSe=Math.log,sSe=Math.LN2;function lSe(e){return e>>>=0,e===0?32:31-(iSe(e)/sSe|0)|0}var EE=256,SE=262144,IE=4194304;function Wd(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 LS(e,t,r){var a=e.pendingLanes;if(a===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~o,a!==0?n=Wd(a):(i&=s,i!==0?n=Wd(i):r||(r=s&~e,r!==0&&(n=Wd(r))))):(s=a&~o,s!==0?n=Wd(s):i!==0?n=Wd(i):r||(r=a&~e,r!==0&&(n=Wd(r)))),n===0?0:t!==0&&t!==n&&!(t&o)&&(o=n&-n,r=t&-t,o>=r||o===32&&(r&4194048)!==0)?t:n}function Sb(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function uSe(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 JW(){var e=IE;return IE<<=1,!(IE&62914560)&&(IE=4194304),e}function vD(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ib(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cSe(e,t,r,a,n,o){var i=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(r=i&~r;0<r;){var d=31-wo(r),f=1<<d;s[d]=0,l[d]=-1;var p=u[d];if(p!==null)for(u[d]=null,d=0;d<p.length;d++){var m=p[d];m!==null&&(m.lane&=-536870913)}r&=~f}a!==0&&QW(e,a,0),o!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function QW(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-wo(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|r&261930}function eY(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-wo(r),n=1<<a;n&t|e[a]&t&&(e[a]|=t),r&=~n}}function tY(e,t){var r=t&-t;return r=r&42?1:GM(r),r&(e.suspendedLanes|t)?0:r}function GM(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 ZM(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rY(){var e=Ht.p;return e!==0?e:(e=window.event,e===void 0?32:IX(e.type))}function wZ(e,t){var r=Ht.p;try{return Ht.p=e,t()}finally{Ht.p=r}}var yc=Math.random().toString(36).slice(2),ja="__reactFiber$"+yc,Hn="__reactProps$"+yc,yh="__reactContainer$"+yc,rM="__reactEvents$"+yc,dSe="__reactListeners$"+yc,fSe="__reactHandles$"+yc,TZ="__reactResources$"+yc,_b="__reactMarker$"+yc;function WM(e){delete e[ja],delete e[Hn],delete e[rM],delete e[dSe],delete e[fSe]}function Hm(e){var t=e[ja];if(t)return t;for(var r=e.parentNode;r;){if(t=r[yh]||r[ja]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=LW(e);e!==null;){if(r=e[ja])return r;e=LW(e)}return t}e=r,r=e.parentNode}return null}function bh(e){if(e=e[ja]||e[yh]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Gy(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(oe(33))}function Qm(e){var t=e[TZ];return t||(t=e[TZ]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ra(e){e[_b]=!0}var aY=new Set,nY={};function lf(e,t){sh(e,t),sh(e+"Capture",t)}function sh(e,t){for(nY[e]=t,e=0;e<t.length;e++)aY.add(t[e])}var pSe=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]*$"),EZ={},SZ={};function mSe(e){return tM.call(SZ,e)?!0:tM.call(EZ,e)?!1:pSe.test(e)?SZ[e]=!0:(EZ[e]=!0,!1)}function BE(e,t,r){if(mSe(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function _E(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function hl(e,t,r,a){if(a===null)e.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+a)}}function Vo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hSe(e,t,r){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function aM(e){if(!e._valueTracker){var t=oY(e)?"checked":"value";e._valueTracker=hSe(e,t,""+e[t])}}function iY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=oY(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function oS(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 gSe=/[\n"\\]/g;function Zo(e){return e.replace(gSe,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function nM(e,t,r,a,n,o,i,s){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=""+Vo(t)):e.value!==""+Vo(t)&&(e.value=""+Vo(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?oM(e,i,Vo(t)):r!=null?oM(e,i,Vo(r)):a!=null&&e.removeAttribute("value"),n==null&&o!=null&&(e.defaultChecked=!!o),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Vo(s):e.removeAttribute("name")}function sY(e,t,r,a,n,o,i,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||r!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){aM(e);return}r=r!=null?""+Vo(r):"",t=t!=null?""+Vo(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),aM(e)}function oM(e,t,r){t==="number"&&oS(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function eh(e,t,r,a){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&a&&(e[r].defaultSelected=!0)}else{for(r=""+Vo(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function lY(e,t,r){if(t!=null&&(t=""+Vo(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Vo(r):""}function uY(e,t,r,a){if(t==null){if(a!=null){if(r!=null)throw Error(oe(92));if(qy(a)){if(1<a.length)throw Error(oe(93));a=a[0]}r=a}r==null&&(r=""),t=r}r=Vo(t),e.defaultValue=r,a=e.textContent,a===r&&a!==""&&a!==null&&(e.value=a),aM(e)}function lh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ySe=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 IZ(e,t,r){var a=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,r):typeof r!="number"||r===0||ySe.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function cY(e,t,r){if(t!=null&&typeof t!="object")throw Error(oe(62));if(e=e.style,r!=null){for(var a in r)!r.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&r[n]!==a&&IZ(e,n,a)}else for(var o in t)t.hasOwnProperty(o)&&IZ(e,o,t[o])}function YM(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 bSe=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"]]),vSe=/^[\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 $E(e){return vSe.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function El(){}var iM=null;function KM(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vm=null,th=null;function _Z(e){var t=bh(e);if(t&&(e=t.stateNode)){var r=e[Hn]||null;e:switch(e=t.stateNode,t.type){case"input":if(nM(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Zo(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var n=a[Hn]||null;if(!n)throw Error(oe(90));nM(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<r.length;t++)a=r[t],a.form===e.form&&iY(a)}break e;case"textarea":lY(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&eh(e,!!r.multiple,t,!1)}}}var xD=!1;function dY(e,t,r){if(xD)return e(t,r);xD=!0;try{var a=e(t);return a}finally{if(xD=!1,(Vm!==null||th!==null)&&(jS(),Vm&&(t=Vm,e=th,th=Vm=null,_Z(t),e)))for(t=0;t<e.length;t++)_Z(e[t])}}function ub(e,t){var r=e.stateNode;if(r===null)return null;var a=r[Hn]||null;if(a===null)return null;r=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(oe(231,t,typeof r));return r}var Cl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sM=!1;if(Cl)try{Pm={},Object.defineProperty(Pm,"passive",{get:function(){sM=!0}}),window.addEventListener("test",Pm,Pm),window.removeEventListener("test",Pm,Pm)}catch{sM=!1}var Pm,ec=null,XM=null,jE=null;function fY(){if(jE)return jE;var e,t=XM,r=t.length,a,n="value"in ec?ec.value:ec.textContent,o=n.length;for(e=0;e<r&&t[e]===n[e];e++);var i=r-e;for(a=1;a<=i&&t[r-a]===n[o-a];a++);return jE=n.slice(e,1<a?1-a:void 0)}function HE(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 kE(){return!0}function kZ(){return!1}function Vn(e){function t(r,a,n,o,i){this._reactName=r,this._targetInst=n,this.type=a,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?kE:kZ,this.isPropagationStopped=kZ,this}return Ir(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=kE)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=kE)},persist:function(){},isPersistent:kE}),t}var uf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},NS=Vn(uf),kb=Ir({},uf,{view:0,detail:0}),xSe=Vn(kb),wD,TD,zy,RS=Ir({},kb,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:JM,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!==zy&&(zy&&e.type==="mousemove"?(wD=e.screenX-zy.screenX,TD=e.screenY-zy.screenY):TD=wD=0,zy=e),wD)},movementY:function(e){return"movementY"in e?e.movementY:TD}}),CZ=Vn(RS),wSe=Ir({},RS,{dataTransfer:0}),TSe=Vn(wSe),ESe=Ir({},kb,{relatedTarget:0}),ED=Vn(ESe),SSe=Ir({},uf,{animationName:0,elapsedTime:0,pseudoElement:0}),ISe=Vn(SSe),_Se=Ir({},uf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kSe=Vn(_Se),CSe=Ir({},uf,{data:0}),AZ=Vn(CSe),ASe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LSe={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"},NSe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RSe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NSe[e])?!!t[e]:!1}function JM(){return RSe}var OSe=Ir({},kb,{key:function(e){if(e.key){var t=ASe[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=HE(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LSe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:JM,charCode:function(e){return e.type==="keypress"?HE(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?HE(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),DSe=Vn(OSe),MSe=Ir({},RS,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),LZ=Vn(MSe),PSe=Ir({},kb,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:JM}),USe=Vn(PSe),zSe=Ir({},uf,{propertyName:0,elapsedTime:0,pseudoElement:0}),FSe=Vn(zSe),BSe=Ir({},RS,{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}),$Se=Vn(BSe),jSe=Ir({},uf,{newState:0,oldState:0}),HSe=Vn(jSe),VSe=[9,13,27,32],QM=Cl&&"CompositionEvent"in window,Yy=null;Cl&&"documentMode"in document&&(Yy=document.documentMode);var qSe=Cl&&"TextEvent"in window&&!Yy,pY=Cl&&(!QM||Yy&&8<Yy&&11>=Yy),NZ=" ",RZ=!1;function mY(e,t){switch(e){case"keyup":return VSe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qm=!1;function GSe(e,t){switch(e){case"compositionend":return hY(t);case"keypress":return t.which!==32?null:(RZ=!0,NZ);case"textInput":return e=t.data,e===NZ&&RZ?null:e;default:return null}}function ZSe(e,t){if(qm)return e==="compositionend"||!QM&&mY(e,t)?(e=fY(),jE=XM=ec=null,qm=!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 pY&&t.locale!=="ko"?null:t.data;default:return null}}var WSe={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 OZ(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WSe[e.type]:t==="textarea"}function gY(e,t,r,a){Vm?th?th.push(a):th=[a]:Vm=a,t=ES(t,"onChange"),0<t.length&&(r=new NS("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var Ky=null,cb=null;function YSe(e){dX(e,0)}function OS(e){var t=Gy(e);if(iY(t))return e}function DZ(e,t){if(e==="change")return t}var yY=!1;Cl&&(Cl?(AE="oninput"in document,AE||(SD=document.createElement("div"),SD.setAttribute("oninput","return;"),AE=typeof SD.oninput=="function"),CE=AE):CE=!1,yY=CE&&(!document.documentMode||9<document.documentMode));var CE,AE,SD;function MZ(){Ky&&(Ky.detachEvent("onpropertychange",bY),cb=Ky=null)}function bY(e){if(e.propertyName==="value"&&OS(cb)){var t=[];gY(t,cb,e,KM(e)),dY(YSe,t)}}function KSe(e,t,r){e==="focusin"?(MZ(),Ky=t,cb=r,Ky.attachEvent("onpropertychange",bY)):e==="focusout"&&MZ()}function XSe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return OS(cb)}function JSe(e,t){if(e==="click")return OS(t)}function QSe(e,t){if(e==="input"||e==="change")return OS(t)}function eIe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eo=typeof Object.is=="function"?Object.is:eIe;function db(e,t){if(Eo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var n=r[a];if(!tM.call(t,n)||!Eo(e[n],t[n]))return!1}return!0}function PZ(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function UZ(e,t){var r=PZ(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=PZ(r)}}function vY(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xY(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=oS(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=oS(e.document)}return t}function e4(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 tIe=Cl&&"documentMode"in document&&11>=document.documentMode,Gm=null,lM=null,Xy=null,uM=!1;function zZ(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;uM||Gm==null||Gm!==oS(a)||(a=Gm,"selectionStart"in a&&e4(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Xy&&db(Xy,a)||(Xy=a,a=ES(lM,"onSelect"),0<a.length&&(t=new NS("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=Gm)))}function Gd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Zm={animationend:Gd("Animation","AnimationEnd"),animationiteration:Gd("Animation","AnimationIteration"),animationstart:Gd("Animation","AnimationStart"),transitionrun:Gd("Transition","TransitionRun"),transitionstart:Gd("Transition","TransitionStart"),transitioncancel:Gd("Transition","TransitionCancel"),transitionend:Gd("Transition","TransitionEnd")},ID={},wY={};Cl&&(wY=document.createElement("div").style,"AnimationEvent"in window||(delete Zm.animationend.animation,delete Zm.animationiteration.animation,delete Zm.animationstart.animation),"TransitionEvent"in window||delete Zm.transitionend.transition);function cf(e){if(ID[e])return ID[e];if(!Zm[e])return e;var t=Zm[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in wY)return ID[e]=t[r];return e}var TY=cf("animationend"),EY=cf("animationiteration"),SY=cf("animationstart"),rIe=cf("transitionrun"),aIe=cf("transitionstart"),nIe=cf("transitioncancel"),IY=cf("transitionend"),_Y=new Map,cM="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(" ");cM.push("scrollEnd");function Ri(e,t){_Y.set(e,t),lf(t,[e])}var iS=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=[],Wm=0,t4=0;function DS(){for(var e=Wm,t=t4=Wm=0;t<e;){var r=Ho[t];Ho[t++]=null;var a=Ho[t];Ho[t++]=null;var n=Ho[t];Ho[t++]=null;var o=Ho[t];if(Ho[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}o!==0&&kY(r,n,o)}}function MS(e,t,r,a){Ho[Wm++]=e,Ho[Wm++]=t,Ho[Wm++]=r,Ho[Wm++]=a,t4|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function r4(e,t,r,a){return MS(e,t,r,a),sS(e)}function df(e,t){return MS(e,null,null,t),sS(e)}function kY(e,t,r){e.lanes|=r;var a=e.alternate;a!==null&&(a.lanes|=r);for(var n=!1,o=e.return;o!==null;)o.childLanes|=r,a=o.alternate,a!==null&&(a.childLanes|=r),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(n=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,n&&t!==null&&(n=31-wo(r),e=o.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=r|536870912),o):null}function sS(e){if(50<ib)throw ib=0,NM=null,Error(oe(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ym={};function oIe(e,t,r,a){this.tag=e,this.key=r,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yo(e,t,r,a){return new oIe(e,t,r,a)}function a4(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Il(e,t){var r=e.alternate;return r===null?(r=yo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function CY(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function VE(e,t,r,a,n,o){var i=0;if(a=e,typeof e=="function")a4(e)&&(i=1);else if(typeof e=="string")i=l_e(e,r,hs.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case XD:return e=yo(31,r,t,n),e.elementType=XD,e.lanes=o,e;case $m:return Jd(r.children,n,o,t);case ZW:i=8,n|=24;break;case WD:return e=yo(12,r,t,n|2),e.elementType=WD,e.lanes=o,e;case YD:return e=yo(13,r,t,n),e.elementType=YD,e.lanes=o,e;case KD:return e=yo(19,r,t,n),e.elementType=KD,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Tl:i=10;break e;case WW:i=9;break e;case HM:i=11;break e;case VM:i=14;break e;case Zu:i=16,a=null;break e}i=29,r=Error(oe(130,e===null?"null":typeof e,"")),a=null}return t=yo(i,r,t,n),t.elementType=e,t.type=a,t.lanes=o,t}function Jd(e,t,r,a){return e=yo(7,e,a,t),e.lanes=r,e}function _D(e,t,r){return e=yo(6,e,null,t),e.lanes=r,e}function AY(e){var t=yo(18,null,null,0);return t.stateNode=e,t}function kD(e,t,r){return t=yo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var FZ=new WeakMap;function Wo(e,t){if(typeof e=="object"&&e!==null){var r=FZ.get(e);return r!==void 0?r:(t={value:e,source:t,stack:xZ(t)},FZ.set(e,t),t)}return{value:e,source:t,stack:xZ(t)}}var Km=[],Xm=0,lS=null,fb=0,qo=[],Go=0,pc=null,fs=1,ps="";function xl(e,t){Km[Xm++]=fb,Km[Xm++]=lS,lS=e,fb=t}function LY(e,t,r){qo[Go++]=fs,qo[Go++]=ps,qo[Go++]=pc,pc=e;var a=fs;e=ps;var n=32-wo(a)-1;a&=~(1<<n),r+=1;var o=32-wo(t)+n;if(30<o){var i=n-n%5;o=(a&(1<<i)-1).toString(32),a>>=i,n-=i,fs=1<<32-wo(t)+n|r<<n|a,ps=o+e}else fs=1<<o|r<<n|a,ps=e}function n4(e){e.return!==null&&(xl(e,1),LY(e,1,0))}function o4(e){for(;e===lS;)lS=Km[--Xm],Km[Xm]=null,fb=Km[--Xm],Km[Xm]=null;for(;e===pc;)pc=qo[--Go],qo[Go]=null,ps=qo[--Go],qo[Go]=null,fs=qo[--Go],qo[Go]=null}function NY(e,t){qo[Go++]=fs,qo[Go++]=ps,qo[Go++]=pc,fs=t.id,ps=t.overflow,pc=e}var Ha=null,Sr=null,Mt=!1,oc=null,Yo=!1,dM=Error(oe(519));function mc(e){var t=Error(oe(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pb(Wo(t,e)),dM}function BZ(e){var t=e.stateNode,r=e.type,a=e.memoizedProps;switch(t[ja]=e,t[Hn]=a,r){case"dialog":It("cancel",t),It("close",t);break;case"iframe":case"object":case"embed":It("load",t);break;case"video":case"audio":for(r=0;r<yb.length;r++)It(yb[r],t);break;case"source":It("error",t);break;case"img":case"image":case"link":It("error",t),It("load",t);break;case"details":It("toggle",t);break;case"input":It("invalid",t),sY(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":It("invalid",t);break;case"textarea":It("invalid",t),uY(t,a.value,a.defaultValue,a.children)}r=a.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||a.suppressHydrationWarning===!0||pX(t.textContent,r)?(a.popover!=null&&(It("beforetoggle",t),It("toggle",t)),a.onScroll!=null&&It("scroll",t),a.onScrollEnd!=null&&It("scrollend",t),a.onClick!=null&&(t.onclick=El),t=!0):t=!1,t||mc(e,!0)}function $Z(e){for(Ha=e.return;Ha;)switch(Ha.tag){case 5:case 31:case 13:Yo=!1;return;case 27:case 3:Yo=!0;return;default:Ha=Ha.return}}function Um(e){if(e!==Ha)return!1;if(!Mt)return $Z(e),Mt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||PM(e.type,e.memoizedProps)),r=!r),r&&Sr&&mc(e),$Z(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));Sr=AW(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));Sr=AW(e)}else t===27?(t=Sr,bc(e.type)?(e=BM,BM=null,Sr=e):Sr=t):Sr=Ha?Xo(e.stateNode.nextSibling):null;return!0}function rf(){Sr=Ha=null,Mt=!1}function CD(){var e=oc;return e!==null&&($n===null?$n=e:$n.push.apply($n,e),oc=null),e}function pb(e){oc===null?oc=[e]:oc.push(e)}var fM=gs(null),ff=null,Sl=null;function Yu(e,t,r){pr(fM,t._currentValue),t._currentValue=r}function _l(e){e._currentValue=fM.current,Oa(fM)}function pM(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function mM(e,t,r,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var o=n.dependencies;if(o!==null){var i=n.child;o=o.firstContext;e:for(;o!==null;){var s=o;o=n;for(var l=0;l<t.length;l++)if(s.context===t[l]){o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),pM(o.return,r,e),a||(i=null);break e}o=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(oe(341));i.lanes|=r,o=i.alternate,o!==null&&(o.lanes|=r),pM(i,r,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function vh(e,t,r,a){e=null;for(var n=t,o=!1;n!==null;){if(!o){if(n.flags&524288)o=!0;else if(n.flags&262144)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(oe(387));if(i=i.memoizedProps,i!==null){var s=n.type;Eo(n.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(n===tS.current){if(i=n.alternate,i===null)throw Error(oe(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(vb):e=[vb])}n=n.return}e!==null&&mM(t,e,r,a),t.flags|=262144}function uS(e){for(e=e.firstContext;e!==null;){if(!Eo(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function af(e){ff=e,Sl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Va(e){return RY(ff,e)}function LE(e,t){return ff===null&&af(e),RY(e,t)}function RY(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Sl===null){if(e===null)throw Error(oe(308));Sl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sl=Sl.next=t;return r}var iIe=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},sIe=wa.unstable_scheduleCallback,lIe=wa.unstable_NormalPriority,ca={$$typeof:Tl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function i4(){return{controller:new iIe,data:new Map,refCount:0}}function Cb(e){e.refCount--,e.refCount===0&&sIe(lIe,function(){e.controller.abort()})}var Jy=null,hM=0,uh=0,rh=null;function uIe(e,t){if(Jy===null){var r=Jy=[];hM=0,uh=N4(),rh={status:"pending",value:void 0,then:function(a){r.push(a)}}}return hM++,t.then(jZ,jZ),t}function jZ(){if(--hM===0&&Jy!==null){rh!==null&&(rh.status="fulfilled");var e=Jy;Jy=null,uh=0,rh=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cIe(e,t){var r=[],a={status:"pending",value:null,reason:null,then:function(n){r.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<r.length;n++)(0,r[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<r.length;n++)(0,r[n])(void 0)}),a}var HZ=tt.S;tt.S=function(e,t){GK=vo(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uIe(e,t),HZ!==null&&HZ(e,t)};var Qd=gs(null);function s4(){var e=Qd.current;return e!==null?e:lr.pooledCache}function qE(e,t){t===null?pr(Qd,Qd.current):pr(Qd,t.pool)}function OY(){var e=s4();return e===null?null:{parent:ca._currentValue,pool:e}}var xh=Error(oe(460)),l4=Error(oe(474)),PS=Error(oe(542)),cS={then:function(){}};function VZ(e){return e=e.status,e==="fulfilled"||e==="rejected"}function DY(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(El,El),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,GZ(e),e;default:if(typeof t.status=="string")t.then(El,El);else{if(e=lr,e!==null&&100<e.shellSuspendCounter)throw Error(oe(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,GZ(e),e}throw ef=t,xh}}function Yd(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(ef=r,xh):r}}var ef=null;function qZ(){if(ef===null)throw Error(oe(459));var e=ef;return ef=null,e}function GZ(e){if(e===xh||e===PS)throw Error(oe(483))}var ah=null,mb=0;function NE(e){var t=mb;return mb+=1,ah===null&&(ah=[]),DY(ah,e,t)}function Fy(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function RE(e,t){throw t.$$typeof===KEe?Error(oe(525)):(e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function MY(e){function t(b,v){if(e){var T=b.deletions;T===null?(b.deletions=[v],b.flags|=16):T.push(v)}}function r(b,v){if(!e)return null;for(;v!==null;)t(b,v),v=v.sibling;return null}function a(b){for(var v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function n(b,v){return b=Il(b,v),b.index=0,b.sibling=null,b}function o(b,v,T){return b.index=T,e?(T=b.alternate,T!==null?(T=T.index,T<v?(b.flags|=67108866,v):T):(b.flags|=67108866,v)):(b.flags|=1048576,v)}function i(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function s(b,v,T,E){return v===null||v.tag!==6?(v=_D(T,b.mode,E),v.return=b,v):(v=n(v,T),v.return=b,v)}function l(b,v,T,E){var I=T.type;return I===$m?d(b,v,T.props.children,E,T.key):v!==null&&(v.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Zu&&Yd(I)===v.type)?(v=n(v,T.props),Fy(v,T),v.return=b,v):(v=VE(T.type,T.key,T.props,null,b.mode,E),Fy(v,T),v.return=b,v)}function u(b,v,T,E){return v===null||v.tag!==4||v.stateNode.containerInfo!==T.containerInfo||v.stateNode.implementation!==T.implementation?(v=kD(T,b.mode,E),v.return=b,v):(v=n(v,T.children||[]),v.return=b,v)}function d(b,v,T,E,I){return v===null||v.tag!==7?(v=Jd(T,b.mode,E,I),v.return=b,v):(v=n(v,T),v.return=b,v)}function f(b,v,T){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=_D(""+v,b.mode,T),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case TE:return T=VE(v.type,v.key,v.props,null,b.mode,T),Fy(T,v),T.return=b,T;case Vy:return v=kD(v,b.mode,T),v.return=b,v;case Zu:return v=Yd(v),f(b,v,T)}if(qy(v)||Uy(v))return v=Jd(v,b.mode,T,null),v.return=b,v;if(typeof v.then=="function")return f(b,NE(v),T);if(v.$$typeof===Tl)return f(b,LE(b,v),T);RE(b,v)}return null}function p(b,v,T,E){var I=v!==null?v.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return I!==null?null:s(b,v,""+T,E);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case TE:return T.key===I?l(b,v,T,E):null;case Vy:return T.key===I?u(b,v,T,E):null;case Zu:return T=Yd(T),p(b,v,T,E)}if(qy(T)||Uy(T))return I!==null?null:d(b,v,T,E,null);if(typeof T.then=="function")return p(b,v,NE(T),E);if(T.$$typeof===Tl)return p(b,v,LE(b,T),E);RE(b,T)}return null}function m(b,v,T,E,I){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return b=b.get(T)||null,s(v,b,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case TE:return b=b.get(E.key===null?T:E.key)||null,l(v,b,E,I);case Vy:return b=b.get(E.key===null?T:E.key)||null,u(v,b,E,I);case Zu:return E=Yd(E),m(b,v,T,E,I)}if(qy(E)||Uy(E))return b=b.get(T)||null,d(v,b,E,I,null);if(typeof E.then=="function")return m(b,v,T,NE(E),I);if(E.$$typeof===Tl)return m(b,v,T,LE(v,E),I);RE(v,E)}return null}function g(b,v,T,E){for(var I=null,_=null,A=v,N=v=0,F=null;A!==null&&N<T.length;N++){A.index>N?(F=A,A=null):F=A.sibling;var R=p(b,A,T[N],E);if(R===null){A===null&&(A=F);break}e&&A&&R.alternate===null&&t(b,A),v=o(R,v,N),_===null?I=R:_.sibling=R,_=R,A=F}if(N===T.length)return r(b,A),Mt&&xl(b,N),I;if(A===null){for(;N<T.length;N++)A=f(b,T[N],E),A!==null&&(v=o(A,v,N),_===null?I=A:_.sibling=A,_=A);return Mt&&xl(b,N),I}for(A=a(A);N<T.length;N++)F=m(A,b,N,T[N],E),F!==null&&(e&&F.alternate!==null&&A.delete(F.key===null?N:F.key),v=o(F,v,N),_===null?I=F:_.sibling=F,_=F);return e&&A.forEach(function(ne){return t(b,ne)}),Mt&&xl(b,N),I}function x(b,v,T,E){if(T==null)throw Error(oe(151));for(var I=null,_=null,A=v,N=v=0,F=null,R=T.next();A!==null&&!R.done;N++,R=T.next()){A.index>N?(F=A,A=null):F=A.sibling;var ne=p(b,A,R.value,E);if(ne===null){A===null&&(A=F);break}e&&A&&ne.alternate===null&&t(b,A),v=o(ne,v,N),_===null?I=ne:_.sibling=ne,_=ne,A=F}if(R.done)return r(b,A),Mt&&xl(b,N),I;if(A===null){for(;!R.done;N++,R=T.next())R=f(b,R.value,E),R!==null&&(v=o(R,v,N),_===null?I=R:_.sibling=R,_=R);return Mt&&xl(b,N),I}for(A=a(A);!R.done;N++,R=T.next())R=m(A,b,N,R.value,E),R!==null&&(e&&R.alternate!==null&&A.delete(R.key===null?N:R.key),v=o(R,v,N),_===null?I=R:_.sibling=R,_=R);return e&&A.forEach(function(z){return t(b,z)}),Mt&&xl(b,N),I}function w(b,v,T,E){if(typeof T=="object"&&T!==null&&T.type===$m&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case TE:e:{for(var I=T.key;v!==null;){if(v.key===I){if(I=T.type,I===$m){if(v.tag===7){r(b,v.sibling),E=n(v,T.props.children),E.return=b,b=E;break e}}else if(v.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Zu&&Yd(I)===v.type){r(b,v.sibling),E=n(v,T.props),Fy(E,T),E.return=b,b=E;break e}r(b,v);break}else t(b,v);v=v.sibling}T.type===$m?(E=Jd(T.props.children,b.mode,E,T.key),E.return=b,b=E):(E=VE(T.type,T.key,T.props,null,b.mode,E),Fy(E,T),E.return=b,b=E)}return i(b);case Vy:e:{for(I=T.key;v!==null;){if(v.key===I)if(v.tag===4&&v.stateNode.containerInfo===T.containerInfo&&v.stateNode.implementation===T.implementation){r(b,v.sibling),E=n(v,T.children||[]),E.return=b,b=E;break e}else{r(b,v);break}else t(b,v);v=v.sibling}E=kD(T,b.mode,E),E.return=b,b=E}return i(b);case Zu:return T=Yd(T),w(b,v,T,E)}if(qy(T))return g(b,v,T,E);if(Uy(T)){if(I=Uy(T),typeof I!="function")throw Error(oe(150));return T=I.call(T),x(b,v,T,E)}if(typeof T.then=="function")return w(b,v,NE(T),E);if(T.$$typeof===Tl)return w(b,v,LE(b,T),E);RE(b,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,v!==null&&v.tag===6?(r(b,v.sibling),E=n(v,T),E.return=b,b=E):(r(b,v),E=_D(T,b.mode,E),E.return=b,b=E),i(b)):r(b,v)}return function(b,v,T,E){try{mb=0;var I=w(b,v,T,E);return ah=null,I}catch(A){if(A===xh||A===PS)throw A;var _=yo(29,A,null,b.mode);return _.lanes=E,_.return=b,_}finally{}}}var nf=MY(!0),PY=MY(!1),Wu=!1;function u4(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gM(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 ic(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sc(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,jt&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=sS(e),kY(e,null,r),t}return MS(e,a,t,r),sS(e)}function Qy(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,eY(e,r)}}function AD(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var n=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};o===null?n=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?n=o=t:o=o.next=t}else n=o=t;r={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var yM=!1;function eb(){if(yM){var e=rh;if(e!==null)throw e}}function tb(e,t,r,a){yM=!1;var n=e.updateQueue;Wu=!1;var o=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(o!==null){var f=n.baseState;i=0,d=u=l=null,s=o;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Lt&p)===p:(a&p)===p){p!==0&&p===uh&&(yM=!0),d!==null&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,x=s;p=t;var w=r;switch(x.tag){case 1:if(g=x.payload,typeof g=="function"){f=g.call(w,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,p=typeof g=="function"?g.call(w,f,p):g,p==null)break e;f=Ir({},f,p);break e;case 2:Wu=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=n.callbacks,m===null?n.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=m,l=f):d=d.next=m,i|=p;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;m=s,s=m.next,m.next=null,n.lastBaseUpdate=m,n.shared.pending=null}}while(!0);d===null&&(l=f),n.baseState=l,n.firstBaseUpdate=u,n.lastBaseUpdate=d,o===null&&(n.shared.lanes=0),gc|=i,e.lanes=i,e.memoizedState=f}}function UY(e,t){if(typeof e!="function")throw Error(oe(191,e));e.call(t)}function zY(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)UY(r[e],t)}var ch=gs(null),dS=gs(0);function ZZ(e,t){e=Rl,pr(dS,e),pr(ch,t),Rl=e|t.baseLanes}function bM(){pr(dS,Rl),pr(ch,ch.current)}function c4(){Rl=dS.current,Oa(ch),Oa(dS)}var So=gs(null),Ko=null;function Ku(e){var t=e.alternate;pr(ea,ea.current&1),pr(So,e),Ko===null&&(t===null||ch.current!==null||t.memoizedState!==null)&&(Ko=e)}function vM(e){pr(ea,ea.current),pr(So,e),Ko===null&&(Ko=e)}function FY(e){e.tag===22?(pr(ea,ea.current),pr(So,e),Ko===null&&(Ko=e)):Xu(e)}function Xu(){pr(ea,ea.current),pr(So,So.current)}function go(e){Oa(So),Ko===e&&(Ko=null),Oa(ea)}var ea=gs(0);function fS(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||zM(r)||FM(r)))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)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 Al=0,mt=null,ar=null,la=null,pS=!1,nh=!1,of=!1,mS=0,hb=0,oh=null,dIe=0;function qr(){throw Error(oe(321))}function d4(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Eo(e[r],t[r]))return!1;return!0}function f4(e,t,r,a,n,o){return Al=o,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tt.H=e===null||e.memoizedState===null?gK:E4,of=!1,o=r(a,n),of=!1,nh&&(o=$Y(t,r,a,n)),BY(e),o}function BY(e){tt.H=gb;var t=ar!==null&&ar.next!==null;if(Al=0,la=ar=mt=null,pS=!1,hb=0,oh=null,t)throw Error(oe(300));e===null||da||(e=e.dependencies,e!==null&&uS(e)&&(da=!0))}function $Y(e,t,r,a){mt=e;var n=0;do{if(nh&&(oh=null),hb=0,nh=!1,25<=n)throw Error(oe(301));if(n+=1,la=ar=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}tt.H=yK,o=t(r,a)}while(nh);return o}function fIe(){var e=tt.H,t=e.useState()[0];return t=typeof t.then=="function"?Ab(t):t,e=e.useState()[0],(ar!==null?ar.memoizedState:null)!==e&&(mt.flags|=1024),t}function p4(){var e=mS!==0;return mS=0,e}function m4(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function h4(e){if(pS){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pS=!1}Al=0,la=ar=mt=null,nh=!1,hb=mS=0,oh=null}function wn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return la===null?mt.memoizedState=la=e:la=la.next=e,la}function ta(){if(ar===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=ar.next;var t=la===null?mt.memoizedState:la.next;if(t!==null)la=t,ar=e;else{if(e===null)throw mt.alternate===null?Error(oe(467)):Error(oe(310));ar=e,e={memoizedState:ar.memoizedState,baseState:ar.baseState,baseQueue:ar.baseQueue,queue:ar.queue,next:null},la===null?mt.memoizedState=la=e:la=la.next=e}return la}function US(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ab(e){var t=hb;return hb+=1,oh===null&&(oh=[]),e=DY(oh,e,t),t=mt,(la===null?t.memoizedState:la.next)===null&&(t=t.alternate,tt.H=t===null||t.memoizedState===null?gK:E4),e}function zS(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ab(e);if(e.$$typeof===Tl)return Va(e)}throw Error(oe(438,String(e)))}function g4(e){var t=null,r=mt.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var a=mt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=US(),mt.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),a=0;a<e;a++)r[a]=XEe;return t.index++,r}function Ll(e,t){return typeof t=="function"?t(e):t}function GE(e){var t=ta();return y4(t,ar,e)}function y4(e,t,r){var a=e.queue;if(a===null)throw Error(oe(311));a.lastRenderedReducer=r;var n=e.baseQueue,o=a.pending;if(o!==null){if(n!==null){var i=n.next;n.next=o.next,o.next=i}t.baseQueue=n=o,a.pending=null}if(o=e.baseState,n===null)e.memoizedState=o;else{t=n.next;var s=i=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(Lt&f)===f:(Al&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===uh&&(d=!0);else if((Al&p)===p){u=u.next,p===uh&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,i=o):l=l.next=f,mt.lanes|=p,gc|=p;f=u.action,of&&r(o,f),o=u.hasEagerState?u.eagerState:r(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=p,i=o):l=l.next=p,mt.lanes|=f,gc|=f;u=u.next}while(u!==null&&u!==t);if(l===null?i=o:l.next=s,!Eo(o,e.memoizedState)&&(da=!0,d&&(r=rh,r!==null)))throw r;e.memoizedState=o,e.baseState=i,e.baseQueue=l,a.lastRenderedState=o}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function LD(e){var t=ta(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var a=r.dispatch,n=r.pending,o=t.memoizedState;if(n!==null){r.pending=null;var i=n=n.next;do o=e(o,i.action),i=i.next;while(i!==n);Eo(o,t.memoizedState)||(da=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function jY(e,t,r){var a=mt,n=ta(),o=Mt;if(o){if(r===void 0)throw Error(oe(407));r=r()}else r=t();var i=!Eo((ar||n).memoizedState,r);if(i&&(n.memoizedState=r,da=!0),n=n.queue,b4(qY.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||la!==null&&la.memoizedState.tag&1){if(a.flags|=2048,dh(9,{destroy:void 0},VY.bind(null,a,n,r,t),null),lr===null)throw Error(oe(349));o||Al&127||HY(a,t,r)}return r}function HY(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=mt.updateQueue,t===null?(t=US(),mt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function VY(e,t,r,a){t.value=r,t.getSnapshot=a,GY(t)&&ZY(e)}function qY(e,t,r){return r(function(){GY(t)&&ZY(e)})}function GY(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Eo(e,r)}catch{return!0}}function ZY(e){var t=df(e,2);t!==null&&jn(t,e,2)}function xM(e){var t=wn();if(typeof e=="function"){var r=e;if(e=r(),of){Qu(!0);try{r()}finally{Qu(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:e},t}function WY(e,t,r,a){return e.baseState=r,y4(e,ar,typeof a=="function"?a:Ll)}function pIe(e,t,r,a,n){if(BS(e))throw Error(oe(485));if(e=t.action,e!==null){var o={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){o.listeners.push(i)}};tt.T!==null?r(!0):o.isTransition=!1,a(o),r=t.pending,r===null?(o.next=t.pending=o,YY(t,o)):(o.next=r.next,t.pending=r.next=o)}}function YY(e,t){var r=t.action,a=t.payload,n=e.state;if(t.isTransition){var o=tt.T,i={};tt.T=i;try{var s=r(n,a),l=tt.S;l!==null&&l(i,s),WZ(e,t,s)}catch(u){wM(e,t,u)}finally{o!==null&&i.types!==null&&(o.types=i.types),tt.T=o}}else try{o=r(n,a),WZ(e,t,o)}catch(u){wM(e,t,u)}}function WZ(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(a){YZ(e,t,a)},function(a){return wM(e,t,a)}):YZ(e,t,r)}function YZ(e,t,r){t.status="fulfilled",t.value=r,KY(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,YY(e,r)))}function wM(e,t,r){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=r,KY(t),t=t.next;while(t!==a)}e.action=null}function KY(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function XY(e,t){return t}function KZ(e,t){if(Mt){var r=lr.formState;if(r!==null){e:{var a=mt;if(Mt){if(Sr){t:{for(var n=Sr,o=Yo;n.nodeType!==8;){if(!o){n=null;break t}if(n=Xo(n.nextSibling),n===null){n=null;break t}}o=n.data,n=o==="F!"||o==="F"?n:null}if(n){Sr=Xo(n.nextSibling),a=n.data==="F!";break e}}mc(a)}a=!1}a&&(t=r[0])}}return r=wn(),r.memoizedState=r.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:XY,lastRenderedState:t},r.queue=a,r=pK.bind(null,mt,a),a.dispatch=r,a=xM(!1),o=T4.bind(null,mt,!1,a.queue),a=wn(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,r=pIe.bind(null,mt,n,o,r),n.dispatch=r,a.memoizedState=e,[t,r,!1]}function XZ(e){var t=ta();return JY(t,ar,e)}function JY(e,t,r){if(t=y4(e,t,XY)[0],e=GE(Ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ab(t)}catch(i){throw i===xh?PS:i}else a=t;t=ta();var n=t.queue,o=n.dispatch;return r!==t.memoizedState&&(mt.flags|=2048,dh(9,{destroy:void 0},mIe.bind(null,n,r),null)),[a,o,e]}function mIe(e,t){e.action=t}function JZ(e){var t=ta(),r=ar;if(r!==null)return JY(t,r,e);ta(),t=t.memoizedState,r=ta();var a=r.queue.dispatch;return r.memoizedState=e,[t,a,!1]}function dh(e,t,r,a){return e={tag:e,create:r,deps:a,inst:t,next:null},t=mt.updateQueue,t===null&&(t=US(),mt.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e),e}function QY(){return ta().memoizedState}function ZE(e,t,r,a){var n=wn();mt.flags|=e,n.memoizedState=dh(1|t,{destroy:void 0},r,a===void 0?null:a)}function FS(e,t,r,a){var n=ta();a=a===void 0?null:a;var o=n.memoizedState.inst;ar!==null&&a!==null&&d4(a,ar.memoizedState.deps)?n.memoizedState=dh(t,o,r,a):(mt.flags|=e,n.memoizedState=dh(1|t,o,r,a))}function QZ(e,t){ZE(8390656,8,e,t)}function b4(e,t){FS(2048,8,e,t)}function hIe(e){mt.flags|=4;var t=mt.updateQueue;if(t===null)t=US(),mt.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function eK(e){var t=ta().memoizedState;return hIe({ref:t,nextImpl:e}),function(){if(jt&2)throw Error(oe(440));return t.impl.apply(void 0,arguments)}}function tK(e,t){return FS(4,2,e,t)}function rK(e,t){return FS(4,4,e,t)}function aK(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nK(e,t,r){r=r!=null?r.concat([e]):null,FS(4,4,aK.bind(null,t,e),r)}function v4(){}function oK(e,t){var r=ta();t=t===void 0?null:t;var a=r.memoizedState;return t!==null&&d4(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function iK(e,t){var r=ta();t=t===void 0?null:t;var a=r.memoizedState;if(t!==null&&d4(t,a[1]))return a[0];if(a=e(),of){Qu(!0);try{e()}finally{Qu(!1)}}return r.memoizedState=[a,t],a}function x4(e,t,r){return r===void 0||Al&1073741824&&!(Lt&261930)?e.memoizedState=t:(e.memoizedState=r,e=WK(),mt.lanes|=e,gc|=e,r)}function sK(e,t,r,a){return Eo(r,t)?r:ch.current!==null?(e=x4(e,r,a),Eo(e,t)||(da=!0),e):!(Al&42)||Al&1073741824&&!(Lt&261930)?(da=!0,e.memoizedState=r):(e=WK(),mt.lanes|=e,gc|=e,t)}function lK(e,t,r,a,n){var o=Ht.p;Ht.p=o!==0&&8>o?o:8;var i=tt.T,s={};tt.T=s,T4(e,!1,t,r);try{var l=n(),u=tt.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=cIe(l,a);rb(e,t,d,To(e))}else rb(e,t,a,To(e))}catch(f){rb(e,t,{then:function(){},status:"rejected",reason:f},To())}finally{Ht.p=o,i!==null&&s.types!==null&&(i.types=s.types),tt.T=i}}function gIe(){}function TM(e,t,r,a){if(e.tag!==5)throw Error(oe(476));var n=uK(e).queue;lK(e,n,t,Xd,r===null?gIe:function(){return cK(e),r(a)})}function uK(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Xd,baseState:Xd,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:Xd},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cK(e){var t=uK(e);t.next===null&&(t=e.alternate.memoizedState),rb(e,t.next.queue,{},To())}function w4(){return Va(vb)}function dK(){return ta().memoizedState}function fK(){return ta().memoizedState}function yIe(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=To();e=ic(r);var a=sc(t,e,r);a!==null&&(jn(a,t,r),Qy(a,t,r)),t={cache:i4()},e.payload=t;return}t=t.return}}function bIe(e,t,r){var a=To();r={lane:a,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},BS(e)?mK(t,r):(r=r4(e,t,r,a),r!==null&&(jn(r,e,a),hK(r,t,a)))}function pK(e,t,r){var a=To();rb(e,t,r,a)}function rb(e,t,r,a){var n={lane:a,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(BS(e))mK(t,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(n.hasEagerState=!0,n.eagerState=s,Eo(s,i))return MS(e,t,n,0),lr===null&&DS(),!1}catch{}finally{}if(r=r4(e,t,n,a),r!==null)return jn(r,e,a),hK(r,t,a),!0}return!1}function T4(e,t,r,a){if(a={lane:2,revertLane:N4(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},BS(e)){if(t)throw Error(oe(479))}else t=r4(e,r,a,2),t!==null&&jn(t,e,2)}function BS(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function mK(e,t){nh=pS=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function hK(e,t,r){if(r&4194048){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,eY(e,r)}}var gb={readContext:Va,use:zS,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useLayoutEffect:qr,useInsertionEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useSyncExternalStore:qr,useId:qr,useHostTransitionStatus:qr,useFormState:qr,useActionState:qr,useOptimistic:qr,useMemoCache:qr,useCacheRefresh:qr};gb.useEffectEvent=qr;var gK={readContext:Va,use:zS,useCallback:function(e,t){return wn().memoizedState=[e,t===void 0?null:t],e},useContext:Va,useEffect:QZ,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,ZE(4194308,4,aK.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ZE(4194308,4,e,t)},useInsertionEffect:function(e,t){ZE(4,2,e,t)},useMemo:function(e,t){var r=wn();t=t===void 0?null:t;var a=e();if(of){Qu(!0);try{e()}finally{Qu(!1)}}return r.memoizedState=[a,t],a},useReducer:function(e,t,r){var a=wn();if(r!==void 0){var n=r(t);if(of){Qu(!0);try{r(t)}finally{Qu(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=bIe.bind(null,mt,e),[a.memoizedState,e]},useRef:function(e){var t=wn();return e={current:e},t.memoizedState=e},useState:function(e){e=xM(e);var t=e.queue,r=pK.bind(null,mt,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:v4,useDeferredValue:function(e,t){var r=wn();return x4(r,e,t)},useTransition:function(){var e=xM(!1);return e=lK.bind(null,mt,e.queue,!0,!1),wn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var a=mt,n=wn();if(Mt){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),lr===null)throw Error(oe(349));Lt&127||HY(a,t,r)}n.memoizedState=r;var o={value:r,getSnapshot:t};return n.queue=o,QZ(qY.bind(null,a,o,e),[e]),a.flags|=2048,dh(9,{destroy:void 0},VY.bind(null,a,o,r,t),null),r},useId:function(){var e=wn(),t=lr.identifierPrefix;if(Mt){var r=ps,a=fs;r=(a&~(1<<32-wo(a)-1)).toString(32)+r,t="_"+t+"R_"+r,r=mS++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=dIe++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:w4,useFormState:KZ,useActionState:KZ,useOptimistic:function(e){var t=wn();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=T4.bind(null,mt,!0,r),r.dispatch=t,[e,t]},useMemoCache:g4,useCacheRefresh:function(){return wn().memoizedState=yIe.bind(null,mt)},useEffectEvent:function(e){var t=wn(),r={impl:e};return t.memoizedState=r,function(){if(jt&2)throw Error(oe(440));return r.impl.apply(void 0,arguments)}}},E4={readContext:Va,use:zS,useCallback:oK,useContext:Va,useEffect:b4,useImperativeHandle:nK,useInsertionEffect:tK,useLayoutEffect:rK,useMemo:iK,useReducer:GE,useRef:QY,useState:function(){return GE(Ll)},useDebugValue:v4,useDeferredValue:function(e,t){var r=ta();return sK(r,ar.memoizedState,e,t)},useTransition:function(){var e=GE(Ll)[0],t=ta().memoizedState;return[typeof e=="boolean"?e:Ab(e),t]},useSyncExternalStore:jY,useId:dK,useHostTransitionStatus:w4,useFormState:XZ,useActionState:XZ,useOptimistic:function(e,t){var r=ta();return WY(r,ar,e,t)},useMemoCache:g4,useCacheRefresh:fK};E4.useEffectEvent=eK;var yK={readContext:Va,use:zS,useCallback:oK,useContext:Va,useEffect:b4,useImperativeHandle:nK,useInsertionEffect:tK,useLayoutEffect:rK,useMemo:iK,useReducer:LD,useRef:QY,useState:function(){return LD(Ll)},useDebugValue:v4,useDeferredValue:function(e,t){var r=ta();return ar===null?x4(r,e,t):sK(r,ar.memoizedState,e,t)},useTransition:function(){var e=LD(Ll)[0],t=ta().memoizedState;return[typeof e=="boolean"?e:Ab(e),t]},useSyncExternalStore:jY,useId:dK,useHostTransitionStatus:w4,useFormState:JZ,useActionState:JZ,useOptimistic:function(e,t){var r=ta();return ar!==null?WY(r,ar,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:g4,useCacheRefresh:fK};yK.useEffectEvent=eK;function ND(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:Ir({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var EM={enqueueSetState:function(e,t,r){e=e._reactInternals;var a=To(),n=ic(a);n.payload=t,r!=null&&(n.callback=r),t=sc(e,n,a),t!==null&&(jn(t,e,a),Qy(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=To(),n=ic(a);n.tag=1,n.payload=t,r!=null&&(n.callback=r),t=sc(e,n,a),t!==null&&(jn(t,e,a),Qy(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=To(),a=ic(r);a.tag=2,t!=null&&(a.callback=t),t=sc(e,a,r),t!==null&&(jn(t,e,r),Qy(t,e,r))}};function eW(e,t,r,a,n,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,i):t.prototype&&t.prototype.isPureReactComponent?!db(r,a)||!db(n,o):!0}function tW(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&EM.enqueueReplaceState(t,t.state,null)}function sf(e,t){var r=t;if("ref"in t){r={};for(var a in t)a!=="ref"&&(r[a]=t[a])}if(e=e.defaultProps){r===t&&(r=Ir({},r));for(var n in e)r[n]===void 0&&(r[n]=e[n])}return r}function bK(e){iS(e)}function vK(e){console.error(e)}function xK(e){iS(e)}function hS(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function rW(e,t,r){try{var a=e.onCaughtError;a(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function SM(e,t,r){return r=ic(r),r.tag=3,r.payload={element:null},r.callback=function(){hS(e,t)},r}function wK(e){return e=ic(e),e.tag=3,e}function TK(e,t,r,a){var n=r.type.getDerivedStateFromError;if(typeof n=="function"){var o=a.value;e.payload=function(){return n(o)},e.callback=function(){rW(t,r,a)}}var i=r.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){rW(t,r,a),typeof n!="function"&&(lc===null?lc=new Set([this]):lc.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function vIe(e,t,r,a,n){if(r.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=r.alternate,t!==null&&vh(t,r,n,!0),r=So.current,r!==null){switch(r.tag){case 31:case 13:return Ko===null?xS():r.alternate===null&&Gr===0&&(Gr=3),r.flags&=-257,r.flags|=65536,r.lanes=n,a===cS?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([a]):t.add(a),jD(e,a,n)),!1;case 22:return r.flags|=65536,a===cS?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([a]):r.add(a)),jD(e,a,n)),!1}throw Error(oe(435,r.tag))}return jD(e,a,n),xS(),!1}if(Mt)return t=So.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==dM&&(e=Error(oe(422),{cause:a}),pb(Wo(e,r)))):(a!==dM&&(t=Error(oe(423),{cause:a}),pb(Wo(t,r))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Wo(a,r),n=SM(e.stateNode,a,n),AD(e,n),Gr!==4&&(Gr=2)),!1;var o=Error(oe(520),{cause:a});if(o=Wo(o,r),ob===null?ob=[o]:ob.push(o),Gr!==4&&(Gr=2),t===null)return!0;a=Wo(a,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=n&-n,r.lanes|=e,e=SM(r.stateNode,a,e),AD(r,e),!1;case 1:if(t=r.type,o=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(lc===null||!lc.has(o))))return r.flags|=65536,n&=-n,r.lanes|=n,n=wK(n),TK(n,e,r,a),AD(r,n),!1}r=r.return}while(r!==null);return!1}var S4=Error(oe(461)),da=!1;function $a(e,t,r,a){t.child=e===null?PY(t,null,r,a):nf(t,e.child,r,a)}function aW(e,t,r,a,n){r=r.render;var o=t.ref;if("ref"in a){var i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}else i=a;return af(t),a=f4(e,t,r,i,o,n),s=p4(),e!==null&&!da?(m4(e,t,n),Nl(e,t,n)):(Mt&&s&&n4(t),t.flags|=1,$a(e,t,a,n),t.child)}function nW(e,t,r,a,n){if(e===null){var o=r.type;return typeof o=="function"&&!a4(o)&&o.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=o,EK(e,t,o,a,n)):(e=VE(r.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!I4(e,n)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:db,r(i,a)&&e.ref===t.ref)return Nl(e,t,n)}return t.flags|=1,e=Il(o,a),e.ref=t.ref,e.return=t,t.child=e}function EK(e,t,r,a,n){if(e!==null){var o=e.memoizedProps;if(db(o,a)&&e.ref===t.ref)if(da=!1,t.pendingProps=a=o,I4(e,n))e.flags&131072&&(da=!0);else return t.lanes=e.lanes,Nl(e,t,n)}return IM(e,t,r,a,n)}function SK(e,t,r,a){var n=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(o=o!==null?o.baseLanes|r:r,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~o}else a=0,t.child=null;return oW(e,t,o,r,a)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qE(t,o!==null?o.cachePool:null),o!==null?ZZ(t,o):bM(),FY(t);else return a=t.lanes=536870912,oW(e,t,o!==null?o.baseLanes|r:r,r,a)}else o!==null?(qE(t,o.cachePool),ZZ(t,o),Xu(t),t.memoizedState=null):(e!==null&&qE(t,null),bM(),Xu(t));return $a(e,t,n,r),t.child}function Zy(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function oW(e,t,r,a,n){var o=s4();return o=o===null?null:{parent:ca._currentValue,pool:o},t.memoizedState={baseLanes:r,cachePool:o},e!==null&&qE(t,null),bM(),FY(t),e!==null&&vh(e,t,a,!0),t.childLanes=n,null}function WE(e,t){return t=gS({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function iW(e,t,r){return nf(t,e.child,null,r),e=WE(t,t.pendingProps),e.flags|=2,go(t),t.memoizedState=null,e}function xIe(e,t,r){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Mt){if(a.mode==="hidden")return e=WE(t,a),t.lanes=536870912,Zy(null,e);if(vM(t),(e=Sr)?(e=gX(e,Yo),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pc!==null?{id:fs,overflow:ps}:null,retryLane:536870912,hydrationErrors:null},r=AY(e),r.return=t,t.child=r,Ha=t,Sr=null)):e=null,e===null)throw mc(t);return t.lanes=536870912,null}return WE(t,a)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if(vM(t),n)if(t.flags&256)t.flags&=-257,t=iW(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(oe(558));else if(da||vh(e,t,r,!1),n=(r&e.childLanes)!==0,da||n){if(a=lr,a!==null&&(i=tY(a,r),i!==0&&i!==o.retryLane))throw o.retryLane=i,df(e,i),jn(a,e,i),S4;xS(),t=iW(e,t,r)}else e=o.treeContext,Sr=Xo(i.nextSibling),Ha=t,Mt=!0,oc=null,Yo=!1,e!==null&&NY(t,e),t=WE(t,a),t.flags|=4096;return t}return e=Il(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function YE(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(oe(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function IM(e,t,r,a,n){return af(t),r=f4(e,t,r,a,void 0,n),a=p4(),e!==null&&!da?(m4(e,t,n),Nl(e,t,n)):(Mt&&a&&n4(t),t.flags|=1,$a(e,t,r,n),t.child)}function sW(e,t,r,a,n,o){return af(t),t.updateQueue=null,r=$Y(t,a,r,n),BY(e),a=p4(),e!==null&&!da?(m4(e,t,o),Nl(e,t,o)):(Mt&&a&&n4(t),t.flags|=1,$a(e,t,r,o),t.child)}function lW(e,t,r,a,n){if(af(t),t.stateNode===null){var o=Ym,i=r.contextType;typeof i=="object"&&i!==null&&(o=Va(i)),o=new r(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=EM,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},u4(t),i=r.contextType,o.context=typeof i=="object"&&i!==null?Va(i):Ym,o.state=t.memoizedState,i=r.getDerivedStateFromProps,typeof i=="function"&&(ND(t,r,i,a),o.state=t.memoizedState),typeof r.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&&EM.enqueueReplaceState(o,o.state,null),tb(t,a,o,n),eb(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var s=t.memoizedProps,l=sf(r,s);o.props=l;var u=o.context,d=r.contextType;i=Ym,typeof d=="object"&&d!==null&&(i=Va(d));var f=r.getDerivedStateFromProps;d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s||u!==i)&&tW(t,o,a,i),Wu=!1;var p=t.memoizedState;o.state=p,tb(t,a,o,n),eb(),u=t.memoizedState,s||p!==u||Wu?(typeof f=="function"&&(ND(t,r,f,a),u=t.memoizedState),(l=Wu||eW(t,r,l,a,p,u,i))?(d||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=a,t.memoizedState=u),o.props=a,o.state=u,o.context=i,a=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,gM(e,t),i=t.memoizedProps,d=sf(r,i),o.props=d,f=t.pendingProps,p=o.context,u=r.contextType,l=Ym,typeof u=="object"&&u!==null&&(l=Va(u)),s=r.getDerivedStateFromProps,(u=typeof s=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==f||p!==l)&&tW(t,o,a,l),Wu=!1,p=t.memoizedState,o.state=p,tb(t,a,o,n),eb();var m=t.memoizedState;i!==f||p!==m||Wu||e!==null&&e.dependencies!==null&&uS(e.dependencies)?(typeof s=="function"&&(ND(t,r,s,a),m=t.memoizedState),(d=Wu||eW(t,r,d,a,p,m,l)||e!==null&&e.dependencies!==null&&uS(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,m,l)),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=a,t.memoizedState=m),o.props=a,o.state=m,o.context=l,a=d):(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),a=!1)}return o=a,YE(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,r=a&&typeof r.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=nf(t,e.child,null,n),t.child=nf(t,null,r,n)):$a(e,t,r,n),t.memoizedState=o.state,e=t.child):e=Nl(e,t,n),e}function uW(e,t,r,a){return rf(),t.flags|=256,$a(e,t,r,a),t.child}var RD={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function OD(e){return{baseLanes:e,cachePool:OY()}}function DD(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=bo),e}function IK(e,t,r){var a=t.pendingProps,n=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(ea.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Mt){if(n?Ku(t):Xu(t),(e=Sr)?(e=gX(e,Yo),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pc!==null?{id:fs,overflow:ps}:null,retryLane:536870912,hydrationErrors:null},r=AY(e),r.return=t,t.child=r,Ha=t,Sr=null)):e=null,e===null)throw mc(t);return FM(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Xu(t),n=t.mode,s=gS({mode:"hidden",children:s},n),a=Jd(a,n,r,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=OD(r),a.childLanes=DD(e,i,r),t.memoizedState=RD,Zy(null,a)):(Ku(t),_M(t,s))}var l=e.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(o)t.flags&256?(Ku(t),t.flags&=-257,t=MD(e,t,r)):t.memoizedState!==null?(Xu(t),t.child=e.child,t.flags|=128,t=null):(Xu(t),s=a.fallback,n=t.mode,a=gS({mode:"visible",children:a.children},n),s=Jd(s,n,r,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,nf(t,e.child,null,r),a=t.child,a.memoizedState=OD(r),a.childLanes=DD(e,i,r),t.memoizedState=RD,t=Zy(null,a));else if(Ku(t),FM(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var u=i.dgst;i=u,a=Error(oe(419)),a.stack="",a.digest=i,pb({value:a,source:null,stack:null}),t=MD(e,t,r)}else if(da||vh(e,t,r,!1),i=(r&e.childLanes)!==0,da||i){if(i=lr,i!==null&&(a=tY(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,df(e,a),jn(i,e,a),S4;zM(s)||xS(),t=MD(e,t,r)}else zM(s)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Sr=Xo(s.nextSibling),Ha=t,Mt=!0,oc=null,Yo=!1,e!==null&&NY(t,e),t=_M(t,a.children),t.flags|=4096);return t}return n?(Xu(t),s=a.fallback,n=t.mode,l=e.child,u=l.sibling,a=Il(l,{mode:"hidden",children:a.children}),a.subtreeFlags=l.subtreeFlags&65011712,u!==null?s=Il(u,s):(s=Jd(s,n,r,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,Zy(null,a),a=t.child,s=e.child.memoizedState,s===null?s=OD(r):(n=s.cachePool,n!==null?(l=ca._currentValue,n=n.parent!==l?{parent:l,pool:l}:n):n=OY(),s={baseLanes:s.baseLanes|r,cachePool:n}),a.memoizedState=s,a.childLanes=DD(e,i,r),t.memoizedState=RD,Zy(e.child,a)):(Ku(t),r=e.child,e=r.sibling,r=Il(r,{mode:"visible",children:a.children}),r.return=t,r.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=r,t.memoizedState=null,r)}function _M(e,t){return t=gS({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gS(e,t){return e=yo(22,e,null,t),e.lanes=0,e}function MD(e,t,r){return nf(t,e.child,null,r),e=_M(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cW(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),pM(e.return,t,r)}function PD(e,t,r,a,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:n,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=r,i.tailMode=n,i.treeForkCount=o)}function _K(e,t,r){var a=t.pendingProps,n=a.revealOrder,o=a.tail;a=a.children;var i=ea.current,s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,pr(ea,i),$a(e,t,a,r),a=Mt?fb:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cW(e,r,t);else if(e.tag===19)cW(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&fS(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),PD(t,!1,n,r,o,a);break;case"backwards":case"unstable_legacy-backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&fS(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}PD(t,!0,r,null,o,a);break;case"together":PD(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Nl(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),gc|=t.lanes,!(r&t.childLanes))if(e!==null){if(vh(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,r=Il(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Il(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function I4(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&uS(e)))}function wIe(e,t,r){switch(t.tag){case 3:rS(t,t.stateNode.containerInfo),Yu(t,ca,e.memoizedState.cache),rf();break;case 27:case 5:eM(t);break;case 4:rS(t,t.stateNode.containerInfo);break;case 10:Yu(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vM(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ku(t),t.flags|=128,null):r&t.child.childLanes?IK(e,t,r):(Ku(t),e=Nl(e,t,r),e!==null?e.sibling:null);Ku(t);break;case 19:var n=(e.flags&128)!==0;if(a=(r&t.childLanes)!==0,a||(vh(e,t,r,!1),a=(r&t.childLanes)!==0),n){if(a)return _K(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),pr(ea,ea.current),a)break;return null;case 22:return t.lanes=0,SK(e,t,r,t.pendingProps);case 24:Yu(t,ca,e.memoizedState.cache)}return Nl(e,t,r)}function kK(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)da=!0;else{if(!I4(e,r)&&!(t.flags&128))return da=!1,wIe(e,t,r);da=!!(e.flags&131072)}else da=!1,Mt&&t.flags&1048576&&LY(t,fb,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Yd(t.elementType),t.type=e,typeof e=="function")a4(e)?(a=sf(e,a),t.tag=1,t=lW(null,t,e,a,r)):(t.tag=0,t=IM(null,t,e,a,r));else{if(e!=null){var n=e.$$typeof;if(n===HM){t.tag=11,t=aW(null,t,e,a,r);break e}else if(n===VM){t.tag=14,t=nW(null,t,e,a,r);break e}}throw t=JD(e)||e,Error(oe(306,t,""))}}return t;case 0:return IM(e,t,t.type,t.pendingProps,r);case 1:return a=t.type,n=sf(a,t.pendingProps),lW(e,t,a,n,r);case 3:e:{if(rS(t,t.stateNode.containerInfo),e===null)throw Error(oe(387));a=t.pendingProps;var o=t.memoizedState;n=o.element,gM(e,t),tb(t,a,null,r);var i=t.memoizedState;if(a=i.cache,Yu(t,ca,a),a!==o.cache&&mM(t,[ca],r,!0),eb(),a=i.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=uW(e,t,a,r);break e}else if(a!==n){n=Wo(Error(oe(424)),t),pb(n),t=uW(e,t,a,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Sr=Xo(e.firstChild),Ha=t,Mt=!0,oc=null,Yo=!0,r=PY(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(rf(),a===n){t=Nl(e,t,r);break e}$a(e,t,a,r)}t=t.child}return t;case 26:return YE(e,t),e===null?(r=RW(t.type,null,t.pendingProps,null))?t.memoizedState=r:Mt||(r=t.type,e=t.pendingProps,a=SS(nc.current).createElement(r),a[ja]=t,a[Hn]=e,qa(a,r,e),Ra(a),t.stateNode=a):t.memoizedState=RW(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return eM(t),e===null&&Mt&&(a=t.stateNode=yX(t.type,t.pendingProps,nc.current),Ha=t,Yo=!0,n=Sr,bc(t.type)?(BM=n,Sr=Xo(a.firstChild)):Sr=n),$a(e,t,t.pendingProps.children,r),YE(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mt&&((n=a=Sr)&&(a=YIe(a,t.type,t.pendingProps,Yo),a!==null?(t.stateNode=a,Ha=t,Sr=Xo(a.firstChild),Yo=!1,n=!0):n=!1),n||mc(t)),eM(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,PM(n,o)?a=null:i!==null&&PM(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=f4(e,t,fIe,null,null,r),vb._currentValue=n),YE(e,t),$a(e,t,a,r),t.child;case 6:return e===null&&Mt&&((e=r=Sr)&&(r=KIe(r,t.pendingProps,Yo),r!==null?(t.stateNode=r,Ha=t,Sr=null,e=!0):e=!1),e||mc(t)),null;case 13:return IK(e,t,r);case 4:return rS(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=nf(t,null,a,r):$a(e,t,a,r),t.child;case 11:return aW(e,t,t.type,t.pendingProps,r);case 7:return $a(e,t,t.pendingProps,r),t.child;case 8:return $a(e,t,t.pendingProps.children,r),t.child;case 12:return $a(e,t,t.pendingProps.children,r),t.child;case 10:return a=t.pendingProps,Yu(t,t.type,a.value),$a(e,t,a.children,r),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,af(t),n=Va(n),a=a(n),t.flags|=1,$a(e,t,a,r),t.child;case 14:return nW(e,t,t.type,t.pendingProps,r);case 15:return EK(e,t,t.type,t.pendingProps,r);case 19:return _K(e,t,r);case 31:return xIe(e,t,r);case 22:return SK(e,t,r,t.pendingProps);case 24:return af(t),a=Va(ca),e===null?(n=s4(),n===null&&(n=lr,o=i4(),n.pooledCache=o,o.refCount++,o!==null&&(n.pooledCacheLanes|=r),n=o),t.memoizedState={parent:a,cache:n},u4(t),Yu(t,ca,n)):(e.lanes&r&&(gM(e,t),tb(t,null,null,r),eb()),n=e.memoizedState,o=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Yu(t,ca,a)):(a=o.cache,Yu(t,ca,a),a!==n.cache&&mM(t,[ca],r,!0))),$a(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(oe(156,t.tag))}function gl(e){e.flags|=4}function UD(e,t,r,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(XK())e.flags|=8192;else throw ef=cS,l4}else e.flags&=-16777217}function dW(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!xX(t))if(XK())e.flags|=8192;else throw ef=cS,l4}function OE(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?JW():536870912,e.lanes|=t,fh|=t)}function By(e,t){if(!Mt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Er(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function TIe(e,t,r){var a=t.pendingProps;switch(o4(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Er(t),null;case 1:return Er(t),null;case 3:return r=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_l(ca),ih(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Um(t)?gl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,CD())),Er(t),null;case 26:var n=t.type,o=t.memoizedState;return e===null?(gl(t),o!==null?(Er(t),dW(t,o)):(Er(t),UD(t,n,null,a,r))):o?o!==e.memoizedState?(gl(t),Er(t),dW(t,o)):(Er(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&gl(t),Er(t),UD(t,n,e,a,r)),null;case 27:if(aS(t),r=nc.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&gl(t);else{if(!a){if(t.stateNode===null)throw Error(oe(166));return Er(t),null}e=hs.current,Um(t)?BZ(t,e):(e=yX(n,a,r),t.stateNode=e,gl(t))}return Er(t),null;case 5:if(aS(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&gl(t);else{if(!a){if(t.stateNode===null)throw Error(oe(166));return Er(t),null}if(o=hs.current,Um(t))BZ(t,o);else{var i=SS(nc.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":o=i.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}o[ja]=t,o[Hn]=a;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(qa(o,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&gl(t)}}return Er(t),UD(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&gl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(oe(166));if(e=nc.current,Um(t)){if(e=t.stateNode,r=t.memoizedProps,a=null,n=Ha,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[ja]=t,e=!!(e.nodeValue===r||a!==null&&a.suppressHydrationWarning===!0||pX(e.nodeValue,r)),e||mc(t,!0)}else e=SS(e).createTextNode(a),e[ja]=t,t.stateNode=e}return Er(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(a=Um(t),r!==null){if(e===null){if(!a)throw Error(oe(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(557));e[ja]=t}else rf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Er(t),e=!1}else r=CD(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(go(t),t):(go(t),null);if(t.flags&128)throw Error(oe(558))}return Er(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Um(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(oe(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(oe(317));n[ja]=t}else rf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Er(t),n=!1}else n=CD(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(go(t),t):(go(t),null)}return go(t),t.flags&128?(t.lanes=r,t):(r=a!==null,e=e!==null&&e.memoizedState!==null,r&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==n&&(a.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),OE(t,t.updateQueue),Er(t),null);case 4:return ih(),e===null&&R4(t.stateNode.containerInfo),Er(t),null;case 10:return _l(t.type),Er(t),null;case 19:if(Oa(ea),a=t.memoizedState,a===null)return Er(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)By(a,!1);else{if(Gr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fS(e),o!==null){for(t.flags|=128,By(a,!1),e=o.updateQueue,t.updateQueue=e,OE(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)CY(r,e),r=r.sibling;return pr(ea,ea.current&1|2),Mt&&xl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&vo()>bS&&(t.flags|=128,n=!0,By(a,!1),t.lanes=4194304)}else{if(!n)if(e=fS(o),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,OE(t,e),By(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Mt)return Er(t),null}else 2*vo()-a.renderingStartTime>bS&&r!==536870912&&(t.flags|=128,n=!0,By(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=vo(),e.sibling=null,r=ea.current,pr(ea,n?r&1|2:r&1),Mt&&xl(t,a.treeForkCount),e):(Er(t),null);case 22:case 23:return go(t),c4(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?r&536870912&&!(t.flags&128)&&(Er(t),t.subtreeFlags&6&&(t.flags|=8192)):Er(t),r=t.updateQueue,r!==null&&OE(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==r&&(t.flags|=2048),e!==null&&Oa(Qd),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_l(ca),Er(t),null;case 25:return null;case 30:return null}throw Error(oe(156,t.tag))}function EIe(e,t){switch(o4(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _l(ca),ih(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return aS(t),null;case 31:if(t.memoizedState!==null){if(go(t),t.alternate===null)throw Error(oe(340));rf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(go(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));rf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oa(ea),null;case 4:return ih(),null;case 10:return _l(t.type),null;case 22:case 23:return go(t),c4(),e!==null&&Oa(Qd),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _l(ca),null;case 25:return null;default:return null}}function CK(e,t){switch(o4(t),t.tag){case 3:_l(ca),ih();break;case 26:case 27:case 5:aS(t);break;case 4:ih();break;case 31:t.memoizedState!==null&&go(t);break;case 13:go(t);break;case 19:Oa(ea);break;case 10:_l(t.type);break;case 22:case 23:go(t),c4(),e!==null&&Oa(Qd);break;case 24:_l(ca)}}function Lb(e,t){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var n=a.next;r=n;do{if((r.tag&e)===e){a=void 0;var o=r.create,i=r.inst;a=o(),i.destroy=a}r=r.next}while(r!==n)}}catch(s){Jt(t,t.return,s)}}function hc(e,t,r){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var o=n.next;a=o;do{if((a.tag&e)===e){var i=a.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=t;var l=r,u=s;try{u()}catch(d){Jt(n,l,d)}}}a=a.next}while(a!==o)}}catch(d){Jt(t,t.return,d)}}function AK(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{zY(t,r)}catch(a){Jt(e,e.return,a)}}}function LK(e,t,r){r.props=sf(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(a){Jt(e,t,a)}}function ab(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof r=="function"?e.refCleanup=r(a):r.current=a}}catch(n){Jt(e,t,n)}}function ms(e,t){var r=e.ref,a=e.refCleanup;if(r!==null)if(typeof a=="function")try{a()}catch(n){Jt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(n){Jt(e,t,n)}else r.current=null}function NK(e){var t=e.type,r=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&a.focus();break e;case"img":r.src?a.src=r.src:r.srcSet&&(a.srcset=r.srcSet)}}catch(n){Jt(e,e.return,n)}}function zD(e,t,r){try{var a=e.stateNode;HIe(a,e.type,r,t),a[Hn]=t}catch(n){Jt(e,e.return,n)}}function RK(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&bc(e.type)||e.tag===4}function FD(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RK(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&bc(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 kM(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=El));else if(a!==4&&(a===27&&bc(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(kM(e,t,r),e=e.sibling;e!==null;)kM(e,t,r),e=e.sibling}function yS(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(a===27&&bc(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(yS(e,t,r),e=e.sibling;e!==null;)yS(e,t,r),e=e.sibling}function OK(e){var t=e.stateNode,r=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);qa(t,a,r),t[ja]=e,t[Hn]=r}catch(o){Jt(e,e.return,o)}}var wl=!1,ua=!1,BD=!1,fW=typeof WeakSet=="function"?WeakSet:Set,Na=null;function SIe(e,t){if(e=e.containerInfo,DM=CS,e=xY(e),e4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var n=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||n!==0&&f.nodeType!==3||(s=i+n),f!==o||a!==0&&f.nodeType!==3||(l=i+a),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++u===n&&(s=i),p===o&&++d===a&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(MM={focusedElem:e,selectionRange:r},CS=!1,Na=t;Na!==null;)if(t=Na,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Na=e;else for(;Na!==null;){switch(t=Na,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)n=e[r],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,r=t,n=o.memoizedProps,o=o.memoizedState,a=r.stateNode;try{var g=sf(r.type,n);e=a.getSnapshotBeforeUpdate(g,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(x){Jt(r,r.return,x)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)UM(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":UM(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(oe(163))}if(e=t.sibling,e!==null){e.return=t.return,Na=e;break}Na=t.return}}function DK(e,t,r){var a=r.flags;switch(r.tag){case 0:case 11:case 15:bl(e,r),a&4&&Lb(5,r);break;case 1:if(bl(e,r),a&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(i){Jt(r,r.return,i)}else{var n=sf(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Jt(r,r.return,i)}}a&64&&AK(r),a&512&&ab(r,r.return);break;case 3:if(bl(e,r),a&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{zY(e,t)}catch(i){Jt(r,r.return,i)}}break;case 27:t===null&&a&4&&OK(r);case 26:case 5:bl(e,r),t===null&&a&4&&NK(r),a&512&&ab(r,r.return);break;case 12:bl(e,r);break;case 31:bl(e,r),a&4&&UK(e,r);break;case 13:bl(e,r),a&4&&zK(e,r),a&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=OIe.bind(null,r),XIe(e,r))));break;case 22:if(a=r.memoizedState!==null||wl,!a){t=t!==null&&t.memoizedState!==null||ua,n=wl;var o=ua;wl=a,(ua=t)&&!o?vl(e,r,(r.subtreeFlags&8772)!==0):bl(e,r),wl=n,ua=o}break;case 30:break;default:bl(e,r)}}function MK(e){var t=e.alternate;t!==null&&(e.alternate=null,MK(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&WM(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 Lr=null,Bn=!1;function yl(e,t,r){for(r=r.child;r!==null;)PK(e,t,r),r=r.sibling}function PK(e,t,r){if(xo&&typeof xo.onCommitFiberUnmount=="function")try{xo.onCommitFiberUnmount(Eb,r)}catch{}switch(r.tag){case 26:ua||ms(r,t),yl(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ua||ms(r,t);var a=Lr,n=Bn;bc(r.type)&&(Lr=r.stateNode,Bn=!1),yl(e,t,r),sb(r.stateNode),Lr=a,Bn=n;break;case 5:ua||ms(r,t);case 6:if(a=Lr,n=Bn,Lr=null,yl(e,t,r),Lr=a,Bn=n,Lr!==null)if(Bn)try{(Lr.nodeType===9?Lr.body:Lr.nodeName==="HTML"?Lr.ownerDocument.body:Lr).removeChild(r.stateNode)}catch(o){Jt(r,t,o)}else try{Lr.removeChild(r.stateNode)}catch(o){Jt(r,t,o)}break;case 18:Lr!==null&&(Bn?(e=Lr,kW(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),gh(e)):kW(Lr,r.stateNode));break;case 4:a=Lr,n=Bn,Lr=r.stateNode.containerInfo,Bn=!0,yl(e,t,r),Lr=a,Bn=n;break;case 0:case 11:case 14:case 15:hc(2,r,t),ua||hc(4,r,t),yl(e,t,r);break;case 1:ua||(ms(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"&&LK(r,t,a)),yl(e,t,r);break;case 21:yl(e,t,r);break;case 22:ua=(a=ua)||r.memoizedState!==null,yl(e,t,r),ua=a;break;default:yl(e,t,r)}}function UK(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gh(e)}catch(r){Jt(t,t.return,r)}}}function zK(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gh(e)}catch(r){Jt(t,t.return,r)}}function IIe(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fW),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fW),t;default:throw Error(oe(435,e.tag))}}function DE(e,t){var r=IIe(e);t.forEach(function(a){if(!r.has(a)){r.add(a);var n=DIe.bind(null,e,a);a.then(n,n)}})}function zn(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var n=r[a],o=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 27:if(bc(s.type)){Lr=s.stateNode,Bn=!1;break e}break;case 5:Lr=s.stateNode,Bn=!1;break e;case 3:case 4:Lr=s.stateNode.containerInfo,Bn=!0;break e}s=s.return}if(Lr===null)throw Error(oe(160));PK(o,i,n),Lr=null,Bn=!1,o=n.alternate,o!==null&&(o.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)FK(t,e),t=t.sibling}var Ni=null;function FK(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zn(t,e),Fn(e),a&4&&(hc(3,e,e.return),Lb(3,e),hc(5,e,e.return));break;case 1:zn(t,e),Fn(e),a&512&&(ua||r===null||ms(r,r.return)),a&64&&wl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?a:r.concat(a))));break;case 26:var n=Ni;if(zn(t,e),Fn(e),a&512&&(ua||r===null||ms(r,r.return)),a&4){var o=r!==null?r.memoizedState:null;if(a=e.memoizedState,r===null)if(a===null)if(e.stateNode===null){e:{a=e.type,r=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":o=n.getElementsByTagName("title")[0],(!o||o[_b]||o[ja]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=n.createElement(a),n.head.insertBefore(o,n.querySelector("head > title"))),qa(o,a,r),o[ja]=e,Ra(o),a=o;break e;case"link":var i=DW("link","href",n).get(a+(r.href||""));if(i){for(var s=0;s<i.length;s++)if(o=i[s],o.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&o.getAttribute("rel")===(r.rel==null?null:r.rel)&&o.getAttribute("title")===(r.title==null?null:r.title)&&o.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){i.splice(s,1);break t}}o=n.createElement(a),qa(o,a,r),n.head.appendChild(o);break;case"meta":if(i=DW("meta","content",n).get(a+(r.content||""))){for(s=0;s<i.length;s++)if(o=i[s],o.getAttribute("content")===(r.content==null?null:""+r.content)&&o.getAttribute("name")===(r.name==null?null:r.name)&&o.getAttribute("property")===(r.property==null?null:r.property)&&o.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&o.getAttribute("charset")===(r.charSet==null?null:r.charSet)){i.splice(s,1);break t}}o=n.createElement(a),qa(o,a,r),n.head.appendChild(o);break;default:throw Error(oe(468,a))}o[ja]=e,Ra(o),a=o}e.stateNode=a}else MW(n,e.type,e.stateNode);else e.stateNode=OW(n,a,e.memoizedProps);else o!==a?(o===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):o.count--,a===null?MW(n,e.type,e.stateNode):OW(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&zD(e,e.memoizedProps,r.memoizedProps)}break;case 27:zn(t,e),Fn(e),a&512&&(ua||r===null||ms(r,r.return)),r!==null&&a&4&&zD(e,e.memoizedProps,r.memoizedProps);break;case 5:if(zn(t,e),Fn(e),a&512&&(ua||r===null||ms(r,r.return)),e.flags&32){n=e.stateNode;try{lh(n,"")}catch(g){Jt(e,e.return,g)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,zD(e,n,r!==null?r.memoizedProps:n)),a&1024&&(BD=!0);break;case 6:if(zn(t,e),Fn(e),a&4){if(e.stateNode===null)throw Error(oe(162));a=e.memoizedProps,r=e.stateNode;try{r.nodeValue=a}catch(g){Jt(e,e.return,g)}}break;case 3:if(JE=null,n=Ni,Ni=IS(t.containerInfo),zn(t,e),Ni=n,Fn(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{gh(t.containerInfo)}catch(g){Jt(e,e.return,g)}BD&&(BD=!1,BK(e));break;case 4:a=Ni,Ni=IS(e.stateNode.containerInfo),zn(t,e),Fn(e),Ni=a;break;case 12:zn(t,e),Fn(e);break;case 31:zn(t,e),Fn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,DE(e,a)));break;case 13:zn(t,e),Fn(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&($S=vo()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,DE(e,a)));break;case 22:n=e.memoizedState!==null;var l=r!==null&&r.memoizedState!==null,u=wl,d=ua;if(wl=u||n,ua=d||l,zn(t,e),ua=d,wl=u,Fn(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(r===null||l||wl||ua||Kd(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){l=r=t;try{if(o=l.stateNode,n)i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty("display")?f.display:null;s.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(g){Jt(l,l.return,g)}}}else if(t.tag===6){if(r===null){l=t;try{l.stateNode.nodeValue=n?"":l.memoizedProps}catch(g){Jt(l,l.return,g)}}}else if(t.tag===18){if(r===null){l=t;try{var m=l.stateNode;n?CW(m,!0):CW(l.stateNode,!1)}catch(g){Jt(l,l.return,g)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(r=a.retryQueue,r!==null&&(a.retryQueue=null,DE(e,r))));break;case 19:zn(t,e),Fn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,DE(e,a)));break;case 30:break;case 21:break;default:zn(t,e),Fn(e)}}function Fn(e){var t=e.flags;if(t&2){try{for(var r,a=e.return;a!==null;){if(RK(a)){r=a;break}a=a.return}if(r==null)throw Error(oe(160));switch(r.tag){case 27:var n=r.stateNode,o=FD(e);yS(e,o,n);break;case 5:var i=r.stateNode;r.flags&32&&(lh(i,""),r.flags&=-33);var s=FD(e);yS(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,u=FD(e);kM(e,u,l);break;default:throw Error(oe(161))}}catch(d){Jt(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function BK(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;BK(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)DK(e,t.alternate,t),t=t.sibling}function Kd(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:hc(4,t,t.return),Kd(t);break;case 1:ms(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&LK(t,t.return,r),Kd(t);break;case 27:sb(t.stateNode);case 26:case 5:ms(t,t.return),Kd(t);break;case 22:t.memoizedState===null&&Kd(t);break;case 30:Kd(t);break;default:Kd(t)}e=e.sibling}}function vl(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:vl(n,o,r),Lb(4,o);break;case 1:if(vl(n,o,r),a=o,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(u){Jt(a,a.return,u)}if(a=o,n=a.updateQueue,n!==null){var s=a.stateNode;try{var l=n.shared.hiddenCallbacks;if(l!==null)for(n.shared.hiddenCallbacks=null,n=0;n<l.length;n++)UY(l[n],s)}catch(u){Jt(a,a.return,u)}}r&&i&64&&AK(o),ab(o,o.return);break;case 27:OK(o);case 26:case 5:vl(n,o,r),r&&a===null&&i&4&&NK(o),ab(o,o.return);break;case 12:vl(n,o,r);break;case 31:vl(n,o,r),r&&i&4&&UK(n,o);break;case 13:vl(n,o,r),r&&i&4&&zK(n,o);break;case 22:o.memoizedState===null&&vl(n,o,r),ab(o,o.return);break;case 30:break;default:vl(n,o,r)}t=t.sibling}}function _4(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Cb(r))}function k4(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cb(e))}function Li(e,t,r,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$K(e,t,r,a),t=t.sibling}function $K(e,t,r,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Li(e,t,r,a),n&2048&&Lb(9,t);break;case 1:Li(e,t,r,a);break;case 3:Li(e,t,r,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cb(e)));break;case 12:if(n&2048){Li(e,t,r,a),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,s=o.onPostCommit;typeof s=="function"&&s(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Jt(t,t.return,l)}}else Li(e,t,r,a);break;case 31:Li(e,t,r,a);break;case 13:Li(e,t,r,a);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,t.memoizedState!==null?o._visibility&2?Li(e,t,r,a):nb(e,t):o._visibility&2?Li(e,t,r,a):(o._visibility|=2,Fm(e,t,r,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&_4(i,t);break;case 24:Li(e,t,r,a),n&2048&&k4(t.alternate,t);break;default:Li(e,t,r,a)}}function Fm(e,t,r,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,i=t,s=r,l=a,u=i.flags;switch(i.tag){case 0:case 11:case 15:Fm(o,i,s,l,n),Lb(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?Fm(o,i,s,l,n):nb(o,i):(d._visibility|=2,Fm(o,i,s,l,n)),n&&u&2048&&_4(i.alternate,i);break;case 24:Fm(o,i,s,l,n),n&&u&2048&&k4(i.alternate,i);break;default:Fm(o,i,s,l,n)}t=t.sibling}}function nb(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,a=t,n=a.flags;switch(a.tag){case 22:nb(r,a),n&2048&&_4(a.alternate,a);break;case 24:nb(r,a),n&2048&&k4(a.alternate,a);break;default:nb(r,a)}t=t.sibling}}var Wy=8192;function zm(e,t,r){if(e.subtreeFlags&Wy)for(e=e.child;e!==null;)jK(e,t,r),e=e.sibling}function jK(e,t,r){switch(e.tag){case 26:zm(e,t,r),e.flags&Wy&&e.memoizedState!==null&&u_e(r,Ni,e.memoizedState,e.memoizedProps);break;case 5:zm(e,t,r);break;case 3:case 4:var a=Ni;Ni=IS(e.stateNode.containerInfo),zm(e,t,r),Ni=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Wy,Wy=16777216,zm(e,t,r),Wy=a):zm(e,t,r));break;default:zm(e,t,r)}}function HK(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 $y(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var a=t[r];Na=a,qK(a,e)}HK(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)VK(e),e=e.sibling}function VK(e){switch(e.tag){case 0:case 11:case 15:$y(e),e.flags&2048&&hc(9,e,e.return);break;case 3:$y(e);break;case 12:$y(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,KE(e)):$y(e);break;default:$y(e)}}function KE(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var a=t[r];Na=a,qK(a,e)}HK(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hc(8,t,t.return),KE(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,KE(t));break;default:KE(t)}e=e.sibling}}function qK(e,t){for(;Na!==null;){var r=Na;switch(r.tag){case 0:case 11:case 15:hc(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var a=r.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Cb(r.memoizedState.cache)}if(a=r.child,a!==null)a.return=r,Na=a;else e:for(r=e;Na!==null;){a=Na;var n=a.sibling,o=a.return;if(MK(a),a===r){Na=null;break e}if(n!==null){n.return=o,Na=n;break e}Na=o}}}var _Ie={getCacheForType:function(e){var t=Va(ca),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Va(ca).controller.signal}},kIe=typeof WeakMap=="function"?WeakMap:Map,jt=0,lr=null,_t=null,Lt=0,Xt=0,ho=null,tc=!1,wh=!1,C4=!1,Rl=0,Gr=0,gc=0,tf=0,A4=0,bo=0,fh=0,ob=null,$n=null,CM=!1,$S=0,GK=0,bS=1/0,vS=null,lc=null,xa=0,uc=null,ph=null,kl=0,AM=0,LM=null,ZK=null,ib=0,NM=null;function To(){return jt&2&&Lt!==0?Lt&-Lt:tt.T!==null?N4():rY()}function WK(){if(bo===0)if(!(Lt&536870912)||Mt){var e=SE;SE<<=1,!(SE&3932160)&&(SE=262144),bo=e}else bo=536870912;return e=So.current,e!==null&&(e.flags|=32),bo}function jn(e,t,r){(e===lr&&(Xt===2||Xt===9)||e.cancelPendingCommit!==null)&&(mh(e,0),rc(e,Lt,bo,!1)),Ib(e,r),(!(jt&2)||e!==lr)&&(e===lr&&(!(jt&2)&&(tf|=r),Gr===4&&rc(e,Lt,bo,!1)),ys(e))}function YK(e,t,r){if(jt&6)throw Error(oe(327));var a=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Sb(e,t),n=a?LIe(e,t):$D(e,t,!0),o=a;do{if(n===0){wh&&!a&&rc(e,t,0,!1);break}else{if(r=e.current.alternate,o&&!CIe(r)){n=$D(e,t,!1),o=!1;continue}if(n===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 s=e;n=ob;var l=s.current.memoizedState.isDehydrated;if(l&&(mh(s,i).flags|=256),i=$D(s,i,!1),i!==2){if(C4&&!l){s.errorRecoveryDisabledLanes|=o,tf|=o,n=4;break e}o=$n,$n=n,o!==null&&($n===null?$n=o:$n.push.apply($n,o))}n=i}if(o=!1,n!==2)continue}}if(n===1){mh(e,0),rc(e,t,0,!0);break}e:{switch(a=e,o=n,o){case 0:case 1:throw Error(oe(345));case 4:if((t&4194048)!==t)break;case 6:rc(a,t,bo,!tc);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(oe(329))}if((t&62914560)===t&&(n=$S+300-vo(),10<n)){if(rc(a,t,bo,!tc),LS(a,0,!0)!==0)break e;kl=t,a.timeoutHandle=hX(pW.bind(null,a,r,$n,vS,CM,t,bo,tf,fh,tc,o,"Throttled",-0,0),n);break e}pW(a,r,$n,vS,CM,t,bo,tf,fh,tc,o,null,-0,0)}}break}while(!0);ys(e)}function pW(e,t,r,a,n,o,i,s,l,u,d,f,p,m){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:El},jK(t,o,f);var g=(o&62914560)===o?$S-vo():(o&4194048)===o?GK-vo():0;if(g=c_e(f,g),g!==null){kl=o,e.cancelPendingCommit=g(hW.bind(null,e,t,o,r,a,n,i,s,l,d,f,null,p,m)),rc(e,o,i,!u);return}}hW(e,t,o,r,a,n,i,s,l)}function CIe(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var a=0;a<r.length;a++){var n=r[a],o=n.getSnapshot;n=n.value;try{if(!Eo(o(),n))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rc(e,t,r,a){t&=~A4,t&=~tf,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var o=31-wo(n),i=1<<o;a[o]=-1,n&=~i}r!==0&&QW(e,r,t)}function jS(){return jt&6?!0:(Nb(0,!1),!1)}function L4(){if(_t!==null){if(Xt===0)var e=_t.return;else e=_t,Sl=ff=null,h4(e),ah=null,mb=0,e=_t;for(;e!==null;)CK(e.alternate,e),e=e.return;_t=null}}function mh(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,GIe(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),kl=0,L4(),lr=e,_t=r=Il(e.current,null),Lt=t,Xt=0,ho=null,tc=!1,wh=Sb(e,t),C4=!1,fh=bo=A4=tf=gc=Gr=0,$n=ob=null,CM=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-wo(a),o=1<<n;t|=e[n],a&=~o}return Rl=t,DS(),r}function KK(e,t){mt=null,tt.H=gb,t===xh||t===PS?(t=qZ(),Xt=3):t===l4?(t=qZ(),Xt=4):Xt=t===S4?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ho=t,_t===null&&(Gr=1,hS(e,Wo(t,e.current)))}function XK(){var e=So.current;return e===null?!0:(Lt&4194048)===Lt?Ko===null:(Lt&62914560)===Lt||Lt&536870912?e===Ko:!1}function JK(){var e=tt.H;return tt.H=gb,e===null?gb:e}function QK(){var e=tt.A;return tt.A=_Ie,e}function xS(){Gr=4,tc||(Lt&4194048)!==Lt&&So.current!==null||(wh=!0),!(gc&134217727)&&!(tf&134217727)||lr===null||rc(lr,Lt,bo,!1)}function $D(e,t,r){var a=jt;jt|=2;var n=JK(),o=QK();(lr!==e||Lt!==t)&&(vS=null,mh(e,t)),t=!1;var i=Gr;e:do try{if(Xt!==0&&_t!==null){var s=_t,l=ho;switch(Xt){case 8:L4(),i=6;break e;case 3:case 2:case 9:case 6:So.current===null&&(t=!0);var u=Xt;if(Xt=0,ho=null,Jm(e,s,l,u),r&&wh){i=0;break e}break;default:u=Xt,Xt=0,ho=null,Jm(e,s,l,u)}}AIe(),i=Gr;break}catch(d){KK(e,d)}while(!0);return t&&e.shellSuspendCounter++,Sl=ff=null,jt=a,tt.H=n,tt.A=o,_t===null&&(lr=null,Lt=0,DS()),i}function AIe(){for(;_t!==null;)eX(_t)}function LIe(e,t){var r=jt;jt|=2;var a=JK(),n=QK();lr!==e||Lt!==t?(vS=null,bS=vo()+500,mh(e,t)):wh=Sb(e,t);e:do try{if(Xt!==0&&_t!==null){t=_t;var o=ho;t:switch(Xt){case 1:Xt=0,ho=null,Jm(e,t,o,1);break;case 2:case 9:if(VZ(o)){Xt=0,ho=null,mW(t);break}t=function(){Xt!==2&&Xt!==9||lr!==e||(Xt=7),ys(e)},o.then(t,t);break e;case 3:Xt=7;break e;case 4:Xt=5;break e;case 7:VZ(o)?(Xt=0,ho=null,mW(t)):(Xt=0,ho=null,Jm(e,t,o,7));break;case 5:var i=null;switch(_t.tag){case 26:i=_t.memoizedState;case 5:case 27:var s=_t;if(i?xX(i):s.stateNode.complete){Xt=0,ho=null;var l=s.sibling;if(l!==null)_t=l;else{var u=s.return;u!==null?(_t=u,HS(u)):_t=null}break t}}Xt=0,ho=null,Jm(e,t,o,5);break;case 6:Xt=0,ho=null,Jm(e,t,o,6);break;case 8:L4(),Gr=6;break e;default:throw Error(oe(462))}}NIe();break}catch(d){KK(e,d)}while(!0);return Sl=ff=null,tt.H=a,tt.A=n,jt=r,_t!==null?0:(lr=null,Lt=0,DS(),Gr)}function NIe(){for(;_t!==null&&!eSe();)eX(_t)}function eX(e){var t=kK(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,t===null?HS(e):_t=t}function mW(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=sW(r,t,t.pendingProps,t.type,void 0,Lt);break;case 11:t=sW(r,t,t.pendingProps,t.type.render,t.ref,Lt);break;case 5:h4(t);default:CK(r,t),t=_t=CY(t,Rl),t=kK(r,t,Rl)}e.memoizedProps=e.pendingProps,t===null?HS(e):_t=t}function Jm(e,t,r,a){Sl=ff=null,h4(t),ah=null,mb=0;var n=t.return;try{if(vIe(e,n,t,r,Lt)){Gr=1,hS(e,Wo(r,e.current)),_t=null;return}}catch(o){if(n!==null)throw _t=n,o;Gr=1,hS(e,Wo(r,e.current)),_t=null;return}t.flags&32768?(Mt||a===1?e=!0:wh||Lt&536870912?e=!1:(tc=e=!0,(a===2||a===9||a===3||a===6)&&(a=So.current,a!==null&&a.tag===13&&(a.flags|=16384))),tX(t,e)):HS(t)}function HS(e){var t=e;do{if(t.flags&32768){tX(t,tc);return}e=t.return;var r=TIe(t.alternate,t,Rl);if(r!==null){_t=r;return}if(t=t.sibling,t!==null){_t=t;return}_t=t=e}while(t!==null);Gr===0&&(Gr=5)}function tX(e,t){do{var r=EIe(e.alternate,e);if(r!==null){r.flags&=32767,_t=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){_t=e;return}_t=e=r}while(e!==null);Gr=6,_t=null}function hW(e,t,r,a,n,o,i,s,l){e.cancelPendingCommit=null;do VS();while(xa!==0);if(jt&6)throw Error(oe(327));if(t!==null){if(t===e.current)throw Error(oe(177));if(o=t.lanes|t.childLanes,o|=t4,cSe(e,r,o,i,s,l),e===lr&&(_t=lr=null,Lt=0),ph=t,uc=e,kl=r,AM=o,LM=n,ZK=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,MIe(nS,function(){return iX(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=tt.T,tt.T=null,n=Ht.p,Ht.p=2,i=jt,jt|=4;try{SIe(e,t,r)}finally{jt=i,Ht.p=n,tt.T=a}}xa=1,rX(),aX(),nX()}}function rX(){if(xa===1){xa=0;var e=uc,t=ph,r=(t.flags&13878)!==0;if(t.subtreeFlags&13878||r){r=tt.T,tt.T=null;var a=Ht.p;Ht.p=2;var n=jt;jt|=4;try{FK(t,e);var o=MM,i=xY(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(i!==s&&s&&s.ownerDocument&&vY(s.ownerDocument.documentElement,s)){if(l!==null&&e4(s)){var u=l.start,d=l.end;if(d===void 0&&(d=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(d,s.value.length);else{var f=s.ownerDocument||document,p=f&&f.defaultView||window;if(p.getSelection){var m=p.getSelection(),g=s.textContent.length,x=Math.min(l.start,g),w=l.end===void 0?x:Math.min(l.end,g);!m.extend&&x>w&&(i=w,w=x,x=i);var b=UZ(s,x),v=UZ(s,w);if(b&&v&&(m.rangeCount!==1||m.anchorNode!==b.node||m.anchorOffset!==b.offset||m.focusNode!==v.node||m.focusOffset!==v.offset)){var T=f.createRange();T.setStart(b.node,b.offset),m.removeAllRanges(),x>w?(m.addRange(T),m.extend(v.node,v.offset)):(T.setEnd(v.node,v.offset),m.addRange(T))}}}}for(f=[],m=s;m=m.parentNode;)m.nodeType===1&&f.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<f.length;s++){var E=f[s];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}CS=!!DM,MM=DM=null}finally{jt=n,Ht.p=a,tt.T=r}}e.current=t,xa=2}}function aX(){if(xa===2){xa=0;var e=uc,t=ph,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=tt.T,tt.T=null;var a=Ht.p;Ht.p=2;var n=jt;jt|=4;try{DK(e,t.alternate,t)}finally{jt=n,Ht.p=a,tt.T=r}}xa=3}}function nX(){if(xa===4||xa===3){xa=0,tSe();var e=uc,t=ph,r=kl,a=ZK;t.subtreeFlags&10256||t.flags&10256?xa=5:(xa=0,ph=uc=null,oX(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(lc=null),ZM(r),t=t.stateNode,xo&&typeof xo.onCommitFiberRoot=="function")try{xo.onCommitFiberRoot(Eb,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=tt.T,n=Ht.p,Ht.p=2,tt.T=null;try{for(var o=e.onRecoverableError,i=0;i<a.length;i++){var s=a[i];o(s.value,{componentStack:s.stack})}}finally{tt.T=t,Ht.p=n}}kl&3&&VS(),ys(e),n=e.pendingLanes,r&261930&&n&42?e===NM?ib++:(ib=0,NM=e):ib=0,Nb(0,!1)}}function oX(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cb(t)))}function VS(){return rX(),aX(),nX(),iX()}function iX(){if(xa!==5)return!1;var e=uc,t=AM;AM=0;var r=ZM(kl),a=tt.T,n=Ht.p;try{Ht.p=32>r?32:r,tt.T=null,r=LM,LM=null;var o=uc,i=kl;if(xa=0,ph=uc=null,kl=0,jt&6)throw Error(oe(331));var s=jt;if(jt|=4,VK(o.current),$K(o,o.current,i,r),jt=s,Nb(0,!1),xo&&typeof xo.onPostCommitFiberRoot=="function")try{xo.onPostCommitFiberRoot(Eb,o)}catch{}return!0}finally{Ht.p=n,tt.T=a,oX(e,t)}}function gW(e,t,r){t=Wo(r,t),t=SM(e.stateNode,t,2),e=sc(e,t,2),e!==null&&(Ib(e,2),ys(e))}function Jt(e,t,r){if(e.tag===3)gW(e,e,r);else for(;t!==null;){if(t.tag===3){gW(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(lc===null||!lc.has(a))){e=Wo(r,e),r=wK(2),a=sc(t,r,2),a!==null&&(TK(r,a,t,e),Ib(a,2),ys(a));break}}t=t.return}}function jD(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new kIe;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(r)||(C4=!0,n.add(r),e=RIe.bind(null,e,t,r),t.then(e,e))}function RIe(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,lr===e&&(Lt&r)===r&&(Gr===4||Gr===3&&(Lt&62914560)===Lt&&300>vo()-$S?!(jt&2)&&mh(e,0):A4|=r,fh===Lt&&(fh=0)),ys(e)}function sX(e,t){t===0&&(t=JW()),e=df(e,t),e!==null&&(Ib(e,t),ys(e))}function OIe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sX(e,r)}function DIe(e,t){var r=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(oe(314))}a!==null&&a.delete(t),sX(e,r)}function MIe(e,t){return qM(e,t)}var wS=null,Bm=null,RM=!1,TS=!1,HD=!1,ac=0;function ys(e){e!==Bm&&e.next===null&&(Bm===null?wS=Bm=e:Bm=Bm.next=e),TS=!0,RM||(RM=!0,UIe())}function Nb(e,t){if(!HD&&TS){HD=!0;do for(var r=!1,a=wS;a!==null;){if(!t)if(e!==0){var n=a.pendingLanes;if(n===0)var o=0;else{var i=a.suspendedLanes,s=a.pingedLanes;o=(1<<31-wo(42|e)+1)-1,o&=n&~(i&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(r=!0,yW(a,o))}else o=Lt,o=LS(a,a===lr?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(o&3)||Sb(a,o)||(r=!0,yW(a,o));a=a.next}while(r);HD=!1}}function PIe(){lX()}function lX(){TS=RM=!1;var e=0;ac!==0&&qIe()&&(e=ac);for(var t=vo(),r=null,a=wS;a!==null;){var n=a.next,o=uX(a,t);o===0?(a.next=null,r===null?wS=n:r.next=n,n===null&&(Bm=r)):(r=a,(e!==0||o&3)&&(TS=!0)),a=n}xa!==0&&xa!==5||Nb(e,!1),ac!==0&&(ac=0)}function uX(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-wo(o),s=1<<i,l=n[i];l===-1?(!(s&r)||s&a)&&(n[i]=uSe(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(t=lr,r=Lt,r=LS(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,r===0||e===t&&(Xt===2||Xt===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&bD(a),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||Sb(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(a!==null&&bD(a),ZM(r)){case 2:case 8:r=KW;break;case 32:r=nS;break;case 268435456:r=XW;break;default:r=nS}return a=cX.bind(null,e),r=qM(r,a),e.callbackPriority=t,e.callbackNode=r,t}return a!==null&&a!==null&&bD(a),e.callbackPriority=2,e.callbackNode=null,2}function cX(e,t){if(xa!==0&&xa!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(VS()&&e.callbackNode!==r)return null;var a=Lt;return a=LS(e,e===lr?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(YK(e,a,t),uX(e,vo()),e.callbackNode!=null&&e.callbackNode===r?cX.bind(null,e):null)}function yW(e,t){if(VS())return null;YK(e,t,!0)}function UIe(){ZIe(function(){jt&6?qM(YW,PIe):lX()})}function N4(){if(ac===0){var e=uh;e===0&&(e=EE,EE<<=1,!(EE&261888)&&(EE=256)),ac=e}return ac}function bW(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$E(""+e)}function vW(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function zIe(e,t,r,a,n){if(t==="submit"&&r&&r.stateNode===n){var o=bW((n[Hn]||null).action),i=a.submitter;i&&(t=(t=i[Hn]||null)?bW(t.formAction):i.getAttribute("formAction"),t!==null&&(o=t,i=null));var s=new NS("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ac!==0){var l=i?vW(n,i):new FormData(n);TM(r,{pending:!0,data:l,method:n.method,action:o},null,l)}}else typeof o=="function"&&(s.preventDefault(),l=i?vW(n,i):new FormData(n),TM(r,{pending:!0,data:l,method:n.method,action:o},o,l))},currentTarget:n}]})}}for(ME=0;ME<cM.length;ME++)PE=cM[ME],xW=PE.toLowerCase(),wW=PE[0].toUpperCase()+PE.slice(1),Ri(xW,"on"+wW);var PE,xW,wW,ME;Ri(TY,"onAnimationEnd");Ri(EY,"onAnimationIteration");Ri(SY,"onAnimationStart");Ri("dblclick","onDoubleClick");Ri("focusin","onFocus");Ri("focusout","onBlur");Ri(rIe,"onTransitionRun");Ri(aIe,"onTransitionStart");Ri(nIe,"onTransitionCancel");Ri(IY,"onTransitionEnd");sh("onMouseEnter",["mouseout","mouseover"]);sh("onMouseLeave",["mouseout","mouseover"]);sh("onPointerEnter",["pointerout","pointerover"]);sh("onPointerLeave",["pointerout","pointerover"]);lf("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));lf("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));lf("onBeforeInput",["compositionend","keypress","textInput","paste"]);lf("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));lf("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));lf("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yb="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(" "),FIe=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yb));function dX(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],n=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&n.isPropagationStopped())break e;o=s,n.currentTarget=u;try{o(n)}catch(d){iS(d)}n.currentTarget=null,o=l}else for(i=0;i<a.length;i++){if(s=a[i],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&n.isPropagationStopped())break e;o=s,n.currentTarget=u;try{o(n)}catch(d){iS(d)}n.currentTarget=null,o=l}}}}function It(e,t){var r=t[rM];r===void 0&&(r=t[rM]=new Set);var a=e+"__bubble";r.has(a)||(fX(t,e,2,!1),r.add(a))}function VD(e,t,r){var a=0;t&&(a|=4),fX(r,e,a,t)}var UE="_reactListening"+Math.random().toString(36).slice(2);function R4(e){if(!e[UE]){e[UE]=!0,aY.forEach(function(r){r!=="selectionchange"&&(FIe.has(r)||VD(r,!1,e),VD(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[UE]||(t[UE]=!0,VD("selectionchange",!1,t))}}function fX(e,t,r,a){switch(IX(t)){case 2:var n=p_e;break;case 8:n=m_e;break;default:n=P4}r=n.bind(null,t,r,e),n=void 0,!sM||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function qD(e,t,r,a,n){var o=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=a.return;i!==null;){var l=i.tag;if((l===3||l===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=Hm(s),i===null)return;if(l=i.tag,l===5||l===6||l===26||l===27){a=o=i;continue e}s=s.parentNode}}a=a.return}dY(function(){var u=o,d=KM(r),f=[];e:{var p=_Y.get(e);if(p!==void 0){var m=NS,g=e;switch(e){case"keypress":if(HE(r)===0)break e;case"keydown":case"keyup":m=DSe;break;case"focusin":g="focus",m=ED;break;case"focusout":g="blur",m=ED;break;case"beforeblur":case"afterblur":m=ED;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=CZ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=TSe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=USe;break;case TY:case EY:case SY:m=ISe;break;case IY:m=FSe;break;case"scroll":case"scrollend":m=xSe;break;case"wheel":m=$Se;break;case"copy":case"cut":case"paste":m=kSe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=LZ;break;case"toggle":case"beforetoggle":m=HSe}var x=(t&4)!==0,w=!x&&(e==="scroll"||e==="scrollend"),b=x?p!==null?p+"Capture":null:p;x=[];for(var v=u,T;v!==null;){var E=v;if(T=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||T===null||b===null||(E=ub(v,b),E!=null&&x.push(bb(v,E,T))),w)break;v=v.return}0<x.length&&(p=new m(p,g,null,r,d),f.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&r!==iM&&(g=r.relatedTarget||r.fromElement)&&(Hm(g)||g[yh]))break e;if((m||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,m?(g=r.relatedTarget||r.toElement,m=u,g=g?Hm(g):null,g!==null&&(w=Tb(g),x=g.tag,g!==w||x!==5&&x!==27&&x!==6)&&(g=null)):(m=null,g=u),m!==g)){if(x=CZ,E="onMouseLeave",b="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(x=LZ,E="onPointerLeave",b="onPointerEnter",v="pointer"),w=m==null?p:Gy(m),T=g==null?p:Gy(g),p=new x(E,v+"leave",m,r,d),p.target=w,p.relatedTarget=T,E=null,Hm(d)===u&&(x=new x(b,v+"enter",g,r,d),x.target=T,x.relatedTarget=w,E=x),w=E,m&&g)t:{for(x=BIe,b=m,v=g,T=0,E=b;E;E=x(E))T++;E=0;for(var I=v;I;I=x(I))E++;for(;0<T-E;)b=x(b),T--;for(;0<E-T;)v=x(v),E--;for(;T--;){if(b===v||v!==null&&b===v.alternate){x=b;break t}b=x(b),v=x(v)}x=null}else x=null;m!==null&&TW(f,p,m,x,!1),g!==null&&w!==null&&TW(f,w,g,x,!0)}}e:{if(p=u?Gy(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var _=DZ;else if(OZ(p))if(yY)_=QSe;else{_=XSe;var A=KSe}else m=p.nodeName,!m||m.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&YM(u.elementType)&&(_=DZ):_=JSe;if(_&&(_=_(e,u))){gY(f,_,r,d);break e}A&&A(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&oM(p,"number",p.value)}switch(A=u?Gy(u):window,e){case"focusin":(OZ(A)||A.contentEditable==="true")&&(Gm=A,lM=u,Xy=null);break;case"focusout":Xy=lM=Gm=null;break;case"mousedown":uM=!0;break;case"contextmenu":case"mouseup":case"dragend":uM=!1,zZ(f,r,d);break;case"selectionchange":if(tIe)break;case"keydown":case"keyup":zZ(f,r,d)}var N;if(QM)e:{switch(e){case"compositionstart":var F="onCompositionStart";break e;case"compositionend":F="onCompositionEnd";break e;case"compositionupdate":F="onCompositionUpdate";break e}F=void 0}else qm?mY(e,r)&&(F="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(F="onCompositionStart");F&&(pY&&r.locale!=="ko"&&(qm||F!=="onCompositionStart"?F==="onCompositionEnd"&&qm&&(N=fY()):(ec=d,XM="value"in ec?ec.value:ec.textContent,qm=!0)),A=ES(u,F),0<A.length&&(F=new AZ(F,e,null,r,d),f.push({event:F,listeners:A}),N?F.data=N:(N=hY(r),N!==null&&(F.data=N)))),(N=qSe?GSe(e,r):ZSe(e,r))&&(F=ES(u,"onBeforeInput"),0<F.length&&(A=new AZ("onBeforeInput","beforeinput",null,r,d),f.push({event:A,listeners:F}),A.data=N)),zIe(f,e,u,r,d)}dX(f,t)})}function bb(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ES(e,t){for(var r=t+"Capture",a=[];e!==null;){var n=e,o=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||o===null||(n=ub(e,r),n!=null&&a.unshift(bb(e,n,o)),n=ub(e,t),n!=null&&a.push(bb(e,n,o))),e.tag===3)return a;e=e.return}return[]}function BIe(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function TW(e,t,r,a,n){for(var o=t._reactName,i=[];r!==null&&r!==a;){var s=r,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===a)break;s!==5&&s!==26&&s!==27||u===null||(l=u,n?(u=ub(r,o),u!=null&&i.unshift(bb(r,u,l))):n||(u=ub(r,o),u!=null&&i.push(bb(r,u,l)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var $Ie=/\r\n?/g,jIe=/\u0000|\uFFFD/g;function EW(e){return(typeof e=="string"?e:""+e).replace($Ie,`
|
|
26
|
+
`).replace(jIe,"")}function pX(e,t){return t=EW(t),EW(e)===t}function rr(e,t,r,a,n,o){switch(r){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||lh(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&lh(e,""+a);break;case"className":_E(e,"class",a);break;case"tabIndex":_E(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":_E(e,r,a);break;case"style":cY(e,a,o);break;case"data":if(t!=="object"){_E(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(r);break}a=$E(""+a),e.setAttribute(r,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(r,"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"&&(r==="formAction"?(t!=="input"&&rr(e,t,"name",n.name,n,null),rr(e,t,"formEncType",n.formEncType,n,null),rr(e,t,"formMethod",n.formMethod,n,null),rr(e,t,"formTarget",n.formTarget,n,null)):(rr(e,t,"encType",n.encType,n,null),rr(e,t,"method",n.method,n,null),rr(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(r);break}a=$E(""+a),e.setAttribute(r,a);break;case"onClick":a!=null&&(e.onclick=El);break;case"onScroll":a!=null&&It("scroll",e);break;case"onScrollEnd":a!=null&&It("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(oe(61));if(r=a.__html,r!=null){if(n.children!=null)throw Error(oe(60));e.innerHTML=r}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}r=$E(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(r,""+a):e.removeAttribute(r);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":a===!0?e.setAttribute(r,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(r,a):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(r,a):e.removeAttribute(r);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(r):e.setAttribute(r,a);break;case"popover":It("beforetoggle",e),It("toggle",e),BE(e,"popover",a);break;case"xlinkActuate":hl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":hl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":hl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":hl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":hl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":hl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":hl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":hl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":hl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":BE(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=bSe.get(r)||r,BE(e,r,a))}}function OM(e,t,r,a,n,o){switch(r){case"style":cY(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(oe(61));if(r=a.__html,r!=null){if(n.children!=null)throw Error(oe(60));e.innerHTML=r}}break;case"children":typeof a=="string"?lh(e,a):(typeof a=="number"||typeof a=="bigint")&&lh(e,""+a);break;case"onScroll":a!=null&&It("scroll",e);break;case"onScrollEnd":a!=null&&It("scrollend",e);break;case"onClick":a!=null&&(e.onclick=El);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nY.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(n=r.endsWith("Capture"),t=r.slice(2,n?r.length-7:void 0),o=e[Hn]||null,o=o!=null?o[r]:null,typeof o=="function"&&e.removeEventListener(t,o,n),typeof a=="function")){typeof o!="function"&&o!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,a,n);break e}r in e?e[r]=a:a===!0?e.setAttribute(r,""):BE(e,r,a)}}}function qa(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":It("error",e),It("load",e);var a=!1,n=!1,o;for(o in r)if(r.hasOwnProperty(o)){var i=r[o];if(i!=null)switch(o){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(oe(137,t));default:rr(e,t,o,i,r,null)}}n&&rr(e,t,"srcSet",r.srcSet,r,null),a&&rr(e,t,"src",r.src,r,null);return;case"input":It("invalid",e);var s=o=i=n=null,l=null,u=null;for(a in r)if(r.hasOwnProperty(a)){var d=r[a];if(d!=null)switch(a){case"name":n=d;break;case"type":i=d;break;case"checked":l=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(oe(137,t));break;default:rr(e,t,a,d,r,null)}}sY(e,o,s,l,u,i,n,!1);return;case"select":It("invalid",e),a=i=o=null;for(n in r)if(r.hasOwnProperty(n)&&(s=r[n],s!=null))switch(n){case"value":o=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:rr(e,t,n,s,r,null)}t=o,r=i,e.multiple=!!a,t!=null?eh(e,!!a,t,!1):r!=null&&eh(e,!!a,r,!0);return;case"textarea":It("invalid",e),o=n=a=null;for(i in r)if(r.hasOwnProperty(i)&&(s=r[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(oe(91));break;default:rr(e,t,i,s,r,null)}uY(e,a,n,o);return;case"option":for(l in r)if(r.hasOwnProperty(l)&&(a=r[l],a!=null))switch(l){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:rr(e,t,l,a,r,null)}return;case"dialog":It("beforetoggle",e),It("toggle",e),It("cancel",e),It("close",e);break;case"iframe":case"object":It("load",e);break;case"video":case"audio":for(a=0;a<yb.length;a++)It(yb[a],e);break;case"image":It("error",e),It("load",e);break;case"details":It("toggle",e);break;case"embed":case"source":case"link":It("error",e),It("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 r)if(r.hasOwnProperty(u)&&(a=r[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(oe(137,t));default:rr(e,t,u,a,r,null)}return;default:if(YM(t)){for(d in r)r.hasOwnProperty(d)&&(a=r[d],a!==void 0&&OM(e,t,d,a,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(a=r[s],a!=null&&rr(e,t,s,a,r,null))}function HIe(e,t,r,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,o=null,i=null,s=null,l=null,u=null,d=null;for(m in r){var f=r[m];if(r.hasOwnProperty(m)&&f!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=f;default:a.hasOwnProperty(m)||rr(e,t,m,null,a,f)}}for(var p in a){var m=a[p];if(f=r[p],a.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case"type":o=m;break;case"name":n=m;break;case"checked":u=m;break;case"defaultChecked":d=m;break;case"value":i=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(oe(137,t));break;default:m!==f&&rr(e,t,p,m,a,f)}}nM(e,i,s,l,u,d,o,n);return;case"select":m=i=s=p=null;for(o in r)if(l=r[o],r.hasOwnProperty(o)&&l!=null)switch(o){case"value":break;case"multiple":m=l;default:a.hasOwnProperty(o)||rr(e,t,o,null,a,l)}for(n in a)if(o=a[n],l=r[n],a.hasOwnProperty(n)&&(o!=null||l!=null))switch(n){case"value":p=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:o!==l&&rr(e,t,n,o,a,l)}t=s,r=i,a=m,p!=null?eh(e,!!r,p,!1):!!a!=!!r&&(t!=null?eh(e,!!r,t,!0):eh(e,!!r,r?[]:"",!1));return;case"textarea":m=p=null;for(s in r)if(n=r[s],r.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:rr(e,t,s,null,a,n)}for(i in a)if(n=a[i],o=r[i],a.hasOwnProperty(i)&&(n!=null||o!=null))switch(i){case"value":p=n;break;case"defaultValue":m=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(oe(91));break;default:n!==o&&rr(e,t,i,n,a,o)}lY(e,p,m);return;case"option":for(var g in r)if(p=r[g],r.hasOwnProperty(g)&&p!=null&&!a.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:rr(e,t,g,null,a,p)}for(l in a)if(p=a[l],m=r[l],a.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case"selected":e.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:rr(e,t,l,p,a,m)}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 x in r)p=r[x],r.hasOwnProperty(x)&&p!=null&&!a.hasOwnProperty(x)&&rr(e,t,x,null,a,p);for(u in a)if(p=a[u],m=r[u],a.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(oe(137,t));break;default:rr(e,t,u,p,a,m)}return;default:if(YM(t)){for(var w in r)p=r[w],r.hasOwnProperty(w)&&p!==void 0&&!a.hasOwnProperty(w)&&OM(e,t,w,void 0,a,p);for(d in a)p=a[d],m=r[d],!a.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||OM(e,t,d,p,a,m);return}}for(var b in r)p=r[b],r.hasOwnProperty(b)&&p!=null&&!a.hasOwnProperty(b)&&rr(e,t,b,null,a,p);for(f in a)p=a[f],m=r[f],!a.hasOwnProperty(f)||p===m||p==null&&m==null||rr(e,t,f,p,a,m)}function SW(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function VIe(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),a=0;a<r.length;a++){var n=r[a],o=n.transferSize,i=n.initiatorType,s=n.duration;if(o&&s&&SW(i)){for(i=0,s=n.responseEnd,a+=1;a<r.length;a++){var l=r[a],u=l.startTime;if(u>s)break;var d=l.transferSize,f=l.initiatorType;d&&SW(f)&&(l=l.responseEnd,i+=d*(l<s?1:(s-u)/(l-u)))}if(--a,t+=8*(o+i)/(n.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 DM=null,MM=null;function SS(e){return e.nodeType===9?e:e.ownerDocument}function IW(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 mX(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 PM(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 GD=null;function qIe(){var e=window.event;return e&&e.type==="popstate"?e===GD?!1:(GD=e,!0):(GD=null,!1)}var hX=typeof setTimeout=="function"?setTimeout:void 0,GIe=typeof clearTimeout=="function"?clearTimeout:void 0,_W=typeof Promise=="function"?Promise:void 0,ZIe=typeof queueMicrotask=="function"?queueMicrotask:typeof _W<"u"?function(e){return _W.resolve(null).then(e).catch(WIe)}:hX;function WIe(e){setTimeout(function(){throw e})}function bc(e){return e==="head"}function kW(e,t){var r=t,a=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"||r==="/&"){if(a===0){e.removeChild(n),gh(t);return}a--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")a++;else if(r==="html")sb(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,sb(r);for(var o=r.firstChild;o;){var i=o.nextSibling,s=o.nodeName;o[_b]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&o.rel.toLowerCase()==="stylesheet"||r.removeChild(o),o=i}}else r==="body"&&sb(e.ownerDocument.body);r=n}while(r);gh(t)}function CW(e,t){var r=e;e=0;do{var a=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=a}while(r)}function UM(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":UM(r),WM(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function YIe(e,t,r,a){for(;e.nodeType===1;){var n=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[_b])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!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Xo(e.nextSibling),e===null)break}return null}function KIe(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Xo(e.nextSibling),e===null))return null;return e}function gX(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xo(e.nextSibling),e===null))return null;return e}function zM(e){return e.data==="$?"||e.data==="$~"}function FM(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function XIe(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var a=function(){t(),r.removeEventListener("DOMContentLoaded",a)};r.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xo(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 BM=null;function AW(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Xo(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function LW(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function yX(e,t,r){switch(t=SS(r),e){case"html":if(e=t.documentElement,!e)throw Error(oe(452));return e;case"head":if(e=t.head,!e)throw Error(oe(453));return e;case"body":if(e=t.body,!e)throw Error(oe(454));return e;default:throw Error(oe(451))}}function sb(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);WM(e)}var Jo=new Map,NW=new Set;function IS(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ol=Ht.d;Ht.d={f:JIe,r:QIe,D:e_e,C:t_e,L:r_e,m:a_e,X:o_e,S:n_e,M:i_e};function JIe(){var e=Ol.f(),t=jS();return e||t}function QIe(e){var t=bh(e);t!==null&&t.tag===5&&t.type==="form"?cK(t):Ol.r(e)}var Th=typeof document>"u"?null:document;function bX(e,t,r){var a=Th;if(a&&typeof t=="string"&&t){var n=Zo(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof r=="string"&&(n+='[crossorigin="'+r+'"]'),NW.has(n)||(NW.add(n),e={rel:e,crossOrigin:r,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),qa(t,"link",e),Ra(t),a.head.appendChild(t)))}}function e_e(e){Ol.D(e),bX("dns-prefetch",e,null)}function t_e(e,t){Ol.C(e,t),bX("preconnect",e,t)}function r_e(e,t,r){Ol.L(e,t,r);var a=Th;if(a&&e&&t){var n='link[rel="preload"][as="'+Zo(t)+'"]';t==="image"&&r&&r.imageSrcSet?(n+='[imagesrcset="'+Zo(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(n+='[imagesizes="'+Zo(r.imageSizes)+'"]')):n+='[href="'+Zo(e)+'"]';var o=n;switch(t){case"style":o=hh(e);break;case"script":o=Eh(e)}Jo.has(o)||(e=Ir({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Jo.set(o,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Rb(o))||t==="script"&&a.querySelector(Ob(o))||(t=a.createElement("link"),qa(t,"link",e),Ra(t),a.head.appendChild(t)))}}function a_e(e,t){Ol.m(e,t);var r=Th;if(r&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Zo(a)+'"][href="'+Zo(e)+'"]',o=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Eh(e)}if(!Jo.has(o)&&(e=Ir({rel:"modulepreload",href:e},t),Jo.set(o,e),r.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Ob(o)))return}a=r.createElement("link"),qa(a,"link",e),Ra(a),r.head.appendChild(a)}}}function n_e(e,t,r){Ol.S(e,t,r);var a=Th;if(a&&e){var n=Qm(a).hoistableStyles,o=hh(e);t=t||"default";var i=n.get(o);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(Rb(o)))s.loading=5;else{e=Ir({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Jo.get(o))&&O4(e,r);var l=i=a.createElement("link");Ra(l),qa(l,"link",e),l._p=new Promise(function(u,d){l.onload=u,l.onerror=d}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,XE(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(o,i)}}}function o_e(e,t){Ol.X(e,t);var r=Th;if(r&&e){var a=Qm(r).hoistableScripts,n=Eh(e),o=a.get(n);o||(o=r.querySelector(Ob(n)),o||(e=Ir({src:e,async:!0},t),(t=Jo.get(n))&&D4(e,t),o=r.createElement("script"),Ra(o),qa(o,"link",e),r.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(n,o))}}function i_e(e,t){Ol.M(e,t);var r=Th;if(r&&e){var a=Qm(r).hoistableScripts,n=Eh(e),o=a.get(n);o||(o=r.querySelector(Ob(n)),o||(e=Ir({src:e,async:!0,type:"module"},t),(t=Jo.get(n))&&D4(e,t),o=r.createElement("script"),Ra(o),qa(o,"link",e),r.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(n,o))}}function RW(e,t,r,a){var n=(n=nc.current)?IS(n):null;if(!n)throw Error(oe(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=hh(r.href),r=Qm(n).hoistableStyles,a=r.get(t),a||(a={type:"style",instance:null,count:0,state:null},r.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=hh(r.href);var o=Qm(n).hoistableStyles,i=o.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,i),(o=n.querySelector(Rb(e)))&&!o._p&&(i.instance=o,i.state.loading=5),Jo.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Jo.set(e,r),o||s_e(n,e,r,i.state))),t&&a===null)throw Error(oe(528,""));return i}if(t&&a!==null)throw Error(oe(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Eh(r),r=Qm(n).hoistableScripts,a=r.get(t),a||(a={type:"script",instance:null,count:0,state:null},r.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(oe(444,e))}}function hh(e){return'href="'+Zo(e)+'"'}function Rb(e){return'link[rel="stylesheet"]['+e+"]"}function vX(e){return Ir({},e,{"data-precedence":e.precedence,precedence:null})}function s_e(e,t,r,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),qa(t,"link",r),Ra(t),e.head.appendChild(t))}function Eh(e){return'[src="'+Zo(e)+'"]'}function Ob(e){return"script[async]"+e}function OW(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Zo(r.href)+'"]');if(a)return t.instance=a,Ra(a),a;var n=Ir({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ra(a),qa(a,"style",n),XE(a,r.precedence,e),t.instance=a;case"stylesheet":n=hh(r.href);var o=e.querySelector(Rb(n));if(o)return t.state.loading|=4,t.instance=o,Ra(o),o;a=vX(r),(n=Jo.get(n))&&O4(a,n),o=(e.ownerDocument||e).createElement("link"),Ra(o);var i=o;return i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),qa(o,"link",a),t.state.loading|=4,XE(o,r.precedence,e),t.instance=o;case"script":return o=Eh(r.src),(n=e.querySelector(Ob(o)))?(t.instance=n,Ra(n),n):(a=r,(n=Jo.get(o))&&(a=Ir({},r),D4(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ra(n),qa(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(oe(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,XE(a,r.precedence,e));return t.instance}function XE(e,t,r){for(var a=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,o=n,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)o=s;else if(o!==n)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function O4(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function D4(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var JE=null;function DW(e,t,r){if(JE===null){var a=new Map,n=JE=new Map;n.set(r,a)}else n=JE,a=n.get(r),a||(a=new Map,n.set(r,a));if(a.has(e))return a;for(a.set(e,null),r=r.getElementsByTagName(e),n=0;n<r.length;n++){var o=r[n];if(!(o[_b]||o[ja]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var i=o.getAttribute(t)||"";i=e+i;var s=a.get(i);s?s.push(o):a.set(i,[o])}}return a}function MW(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function l_e(e,t,r){if(r===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;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!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 xX(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function u_e(e,t,r,a){if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var n=hh(a.href),o=t.querySelector(Rb(n));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_S.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=o,Ra(o);return}o=t.ownerDocument||t,a=vX(a),(n=Jo.get(n))&&O4(a,n),o=o.createElement("link"),Ra(o);var i=o;i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),qa(o,"link",a),r.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=_S.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var ZD=0;function c_e(e,t){return e.stylesheets&&e.count===0&&QE(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var a=setTimeout(function(){if(e.stylesheets&&QE(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ZD===0&&(ZD=62500*VIe());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&QE(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ZD?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function _S(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)QE(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var kS=null;function QE(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,kS=new Map,t.forEach(d_e,e),kS=null,_S.call(e))}function d_e(e,t){if(!(t.state.loading&4)){var r=kS.get(e);if(r)var a=r.get(null);else{r=new Map,kS.set(e,r);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<n.length;o++){var i=n[o];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(r.set(i.dataset.precedence,i),a=i)}a&&r.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),o=r.get(i)||a,o===a&&r.set(null,n),r.set(i,n),this.count++,a=_S.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),o?o.parentNode.insertBefore(n,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var vb={$$typeof:Tl,Provider:null,Consumer:null,_currentValue:Xd,_currentValue2:Xd,_threadCount:0};function f_e(e,t,r,a,n,o,i,s,l){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=vD(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vD(0),this.hiddenUpdates=vD(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function wX(e,t,r,a,n,o,i,s,l,u,d,f){return e=new f_e(e,t,r,i,l,u,d,f,s),t=1,o===!0&&(t|=24),o=yo(3,null,null,t),e.current=o,o.stateNode=e,t=i4(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:r,cache:t},u4(o),e}function TX(e){return e?(e=Ym,e):Ym}function EX(e,t,r,a,n,o){n=TX(n),a.context===null?a.context=n:a.pendingContext=n,a=ic(t),a.payload={element:r},o=o===void 0?null:o,o!==null&&(a.callback=o),r=sc(e,a,t),r!==null&&(jn(r,e,t),Qy(r,e,t))}function PW(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function M4(e,t){PW(e,t),(e=e.alternate)&&PW(e,t)}function SX(e){if(e.tag===13||e.tag===31){var t=df(e,67108864);t!==null&&jn(t,e,67108864),M4(e,67108864)}}function UW(e){if(e.tag===13||e.tag===31){var t=To();t=GM(t);var r=df(e,t);r!==null&&jn(r,e,t),M4(e,t)}}var CS=!0;function p_e(e,t,r,a){var n=tt.T;tt.T=null;var o=Ht.p;try{Ht.p=2,P4(e,t,r,a)}finally{Ht.p=o,tt.T=n}}function m_e(e,t,r,a){var n=tt.T;tt.T=null;var o=Ht.p;try{Ht.p=8,P4(e,t,r,a)}finally{Ht.p=o,tt.T=n}}function P4(e,t,r,a){if(CS){var n=$M(a);if(n===null)qD(e,t,a,AS,r),zW(e,a);else if(g_e(n,e,t,r,a))a.stopPropagation();else if(zW(e,a),t&4&&-1<h_e.indexOf(e)){for(;n!==null;){var o=bh(n);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var i=Wd(o.pendingLanes);if(i!==0){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-wo(i);s.entanglements[1]|=l,i&=~l}ys(o),!(jt&6)&&(bS=vo()+500,Nb(0,!1))}}break;case 31:case 13:s=df(o,2),s!==null&&jn(s,o,2),jS(),M4(o,2)}if(o=$M(a),o===null&&qD(e,t,a,AS,r),o===n)break;n=o}n!==null&&a.stopPropagation()}else qD(e,t,a,null,r)}}function $M(e){return e=KM(e),U4(e)}var AS=null;function U4(e){if(AS=null,e=Hm(e),e!==null){var t=Tb(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=VW(t),e!==null)return e;e=null}else if(r===31){if(e=qW(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return AS=e,null}function IX(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(rSe()){case YW:return 2;case KW:return 8;case nS:case aSe:return 32;case XW:return 268435456;default:return 32}default:return 32}}var jM=!1,cc=null,dc=null,fc=null,xb=new Map,wb=new Map,Ju=[],h_e="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 zW(e,t){switch(e){case"focusin":case"focusout":cc=null;break;case"dragenter":case"dragleave":dc=null;break;case"mouseover":case"mouseout":fc=null;break;case"pointerover":case"pointerout":xb.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wb.delete(t.pointerId)}}function jy(e,t,r,a,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:o,targetContainers:[n]},t!==null&&(t=bh(t),t!==null&&SX(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function g_e(e,t,r,a,n){switch(t){case"focusin":return cc=jy(cc,e,t,r,a,n),!0;case"dragenter":return dc=jy(dc,e,t,r,a,n),!0;case"mouseover":return fc=jy(fc,e,t,r,a,n),!0;case"pointerover":var o=n.pointerId;return xb.set(o,jy(xb.get(o)||null,e,t,r,a,n)),!0;case"gotpointercapture":return o=n.pointerId,wb.set(o,jy(wb.get(o)||null,e,t,r,a,n)),!0}return!1}function _X(e){var t=Hm(e.target);if(t!==null){var r=Tb(t);if(r!==null){if(t=r.tag,t===13){if(t=VW(r),t!==null){e.blockedOn=t,wZ(e.priority,function(){UW(r)});return}}else if(t===31){if(t=qW(r),t!==null){e.blockedOn=t,wZ(e.priority,function(){UW(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function eS(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=$M(e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);iM=a,r.target.dispatchEvent(a),iM=null}else return t=bh(r),t!==null&&SX(t),e.blockedOn=r,!1;t.shift()}return!0}function FW(e,t,r){eS(e)&&r.delete(t)}function y_e(){jM=!1,cc!==null&&eS(cc)&&(cc=null),dc!==null&&eS(dc)&&(dc=null),fc!==null&&eS(fc)&&(fc=null),xb.forEach(FW),wb.forEach(FW)}function zE(e,t){e.blockedOn===t&&(e.blockedOn=null,jM||(jM=!0,wa.unstable_scheduleCallback(wa.unstable_NormalPriority,y_e)))}var FE=null;function BW(e){FE!==e&&(FE=e,wa.unstable_scheduleCallback(wa.unstable_NormalPriority,function(){FE===e&&(FE=null);for(var t=0;t<e.length;t+=3){var r=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(U4(a||r)===null)continue;break}var o=bh(r);o!==null&&(e.splice(t,3),t-=3,TM(o,{pending:!0,data:n,method:r.method,action:a},a,n))}}))}function gh(e){function t(l){return zE(l,e)}cc!==null&&zE(cc,e),dc!==null&&zE(dc,e),fc!==null&&zE(fc,e),xb.forEach(t),wb.forEach(t);for(var r=0;r<Ju.length;r++){var a=Ju[r];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ju.length&&(r=Ju[0],r.blockedOn===null);)_X(r),r.blockedOn===null&&Ju.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(a=0;a<r.length;a+=3){var n=r[a],o=r[a+1],i=n[Hn]||null;if(typeof o=="function")i||BW(r);else if(i){var s=null;if(o&&o.hasAttribute("formAction")){if(n=o,i=o[Hn]||null)s=i.formAction;else if(U4(n)!==null)continue}else s=i.action;typeof s=="function"?r[a+1]=s:(r.splice(a,3),a-=3),BW(r)}}}function kX(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(r,20)}function r(){if(!a&&!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 a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function z4(e){this._internalRoot=e}qS.prototype.render=z4.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));var r=t.current,a=To();EX(r,a,e,t,null,null)};qS.prototype.unmount=z4.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;EX(e.current,2,null,e,null,null),jS(),t[yh]=null}};function qS(e){this._internalRoot=e}qS.prototype.unstable_scheduleHydration=function(e){if(e){var t=rY();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ju.length&&t!==0&&t<Ju[r].priority;r++);Ju.splice(r,0,e),r===0&&_X(e)}};var $W=jW.version;if($W!=="19.2.0")throw Error(oe(527,$W,"19.2.0"));Ht.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(oe(188)):(e=Object.keys(e).join(","),Error(oe(268,e)));return e=YEe(t),e=e!==null?GW(e):null,e=e===null?null:e.stateNode,e};var b_e={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:tt,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Hy=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Hy.isDisabled&&Hy.supportsFiber))try{Eb=Hy.inject(b_e),xo=Hy}catch{}var Hy;GS.createRoot=function(e,t){if(!HW(e))throw Error(oe(299));var r=!1,a="",n=bK,o=vK,i=xK;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=wX(e,1,!1,null,null,r,a,null,n,o,i,kX),e[yh]=t.current,R4(e),new z4(t)};GS.hydrateRoot=function(e,t,r){if(!HW(e))throw Error(oe(299));var a=!1,n="",o=bK,i=vK,s=xK,l=null;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(n=r.identifierPrefix),r.onUncaughtError!==void 0&&(o=r.onUncaughtError),r.onCaughtError!==void 0&&(i=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=wX(e,1,!0,t,r??null,a,n,l,o,i,s,kX),t.context=TX(null),r=t.current,a=To(),a=GM(a),n=ic(a),n.callback=null,sc(r,n,a),r=a,t.current.lanes=r,Ib(t,r),ys(t),e[yh]=t.current,R4(e),new qS(t)};GS.version="19.2.0"});var NX=Qt((UNt,LX)=>{"use strict";c();function AX(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AX)}catch(e){console.error(e)}}AX(),LX.exports=CX()});c();c();c();c();function YX(e){return e.replace(/[-:]([a-z])/g,(t,r)=>`${r.toUpperCase()}`)}function $4(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var Mb=e=>{for(let t in e)typeof e[t]=="function"&&(window[YX(t)]=function(){e[t]()})};var KX=e=>{if(e.agentId&&e.element.setAttribute("agent-id",e.agentId||""),e.formId&&e.element.setAttribute("form-id",e.formId||""),e.contact)for(let t of Object.keys(e.contact))e.element.setAttribute($4(t),e.contact?.[t]||"");return e.id&&e.element.setAttribute("id",e.id),e.context&&e.element.setAttribute("context",e.context),e.interface&&e.element.setAttribute("interface",JSON.stringify(e.interface)),e.styles&&e.element.setAttribute("styles",JSON.stringify(e.styles)),e?.onMarkedAsResolved&&e.element.setAttribute("on-marked-as-resolved",e?.onMarkedAsResolved.name),e.element},Pb=KX;c();c();var mo=O(re()),mE=O(_h());c();c();var Be=O(RP());c();var RQ=O(_h());var gke=[Be.SubscriptionPlan.level_0,Be.SubscriptionPlan.level_0_5,Be.SubscriptionPlan.level_1,Be.SubscriptionPlan.level_2,Be.SubscriptionPlan.level_3,Be.SubscriptionPlan.level_4,Be.SubscriptionPlan.level_5],yke=Be.SubscriptionPlan.level_0,bke=[Be.SubscriptionPlan.level_0_5,Be.SubscriptionPlan.level_1,Be.SubscriptionPlan.level_2,Be.SubscriptionPlan.level_3,Be.SubscriptionPlan.level_4,Be.SubscriptionPlan.level_5],vke=[Be.SubscriptionPlan.level_0_5,Be.SubscriptionPlan.level_1,Be.SubscriptionPlan.level_2],xke=[Be.SubscriptionPlan.level_3,Be.SubscriptionPlan.level_4,Be.SubscriptionPlan.level_5],OQ=[Be.SubscriptionPlan.level_2,Be.SubscriptionPlan.level_3,Be.SubscriptionPlan.level_4,Be.SubscriptionPlan.level_5];function OP(e){return e?OQ.includes(e):!1}c();c();var Ea=O(re(),1),e3=O(UP(),1);c();c();var Ma=O(re(),1);var Fl={};nn(Fl,{ERROR_REVALIDATE_EVENT:()=>HQ,FOCUS_EVENT:()=>zP,MUTATE_EVENT:()=>BP,RECONNECT_EVENT:()=>FP});c();var zP=0,FP=1,BP=2,HQ=3;c();var $P=Object.prototype.hasOwnProperty;function Wb(e,t){var r,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((a=e.length)===t.length)for(;a--&&Wb(e[a],t[a]););return a===-1}if(!r||typeof e=="object"){a=0;for(r in e)if($P.call(e,r)&&++a&&!$P.call(t,r)||!(r in t)||!Wb(e[r],t[r]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}var ai=new WeakMap,xs=()=>{},Nr=xs(),wf=Object,Nt=e=>e===Nr,Zn=e=>typeof e=="function",on=(e,t)=>({...e,...t}),ev=e=>Zn(e.then),wI={},Yb={},CI="undefined",Tf=typeof window!=CI,Xb=typeof document!=CI,HP=Tf&&"Deno"in window,VP=()=>Tf&&typeof window.requestAnimationFrame!=CI,tv=(e,t)=>{let r=ai.get(e);return[()=>!Nt(t)&&e.get(t)||wI,a=>{if(!Nt(t)){let n=e.get(t);t in Yb||(Yb[t]=n),r[5](t,on(n,a),n||wI)}},r[6],()=>!Nt(t)&&t in Yb?Yb[t]:!Nt(t)&&e.get(t)||wI]},SI=!0,VQ=()=>SI,[II,_I]=Tf&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xs,xs],qQ=()=>{let e=Xb&&document.visibilityState;return Nt(e)||e!=="hidden"},GQ=e=>(Xb&&document.addEventListener("visibilitychange",e),II("focus",e),()=>{Xb&&document.removeEventListener("visibilitychange",e),_I("focus",e)}),ZQ=e=>{let t=()=>{SI=!0,e()},r=()=>{SI=!1};return II("online",t),II("offline",r),()=>{_I("online",t),_I("offline",r)}},qP={isOnline:VQ,isVisible:qQ},GP={initFocus:GQ,initReconnect:ZQ},Ef=!Ma.default.useId,xc=!Tf||HP,AI=e=>VP()?window.requestAnimationFrame(e):setTimeout(e,1),ws=xc?Ma.useEffect:Ma.useLayoutEffect,TI=typeof navigator<"u"&&navigator.connection,kI=!xc&&TI&&(["slow-2g","2g"].includes(TI.effectiveType)||TI.saveData),Kb=new WeakMap,EI=(e,t)=>wf.prototype.toString.call(e)===`[object ${t}]`,WQ=0,Jb=e=>{let t=typeof e,r=EI(e,"Date"),a=EI(e,"RegExp"),n=EI(e,"Object"),o,i;if(wf(e)===e&&!r&&!a){if(o=Kb.get(e),o)return o;if(o=++WQ+"~",Kb.set(e,o),Array.isArray(e)){for(o="@",i=0;i<e.length;i++)o+=Jb(e[i])+",";Kb.set(e,o)}if(n){o="#";let s=wf.keys(e).sort();for(;!Nt(i=s.pop());)Nt(e[i])||(o+=i+":"+Jb(e[i])+",");Kb.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},wc=e=>{if(Zn(e))try{e=e()}catch{e=""}let t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Jb(e):"",[e,t]},YQ=0,Bl=()=>++YQ;async function rv(...e){let[t,r,a,n]=e,o=on({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{}),i=o.populateCache,s=o.rollbackOnError,l=o.optimisticData,u=p=>typeof s=="function"?s(p):s!==!1,d=o.throwOnError;if(Zn(r)){let p=r,m=[],g=t.keys();for(let x of g)!/^\$(inf|sub)\$/.test(x)&&p(t.get(x)._k)&&m.push(x);return Promise.all(m.map(f))}return f(r);async function f(p){let[m]=wc(p);if(!m)return;let[g,x]=tv(t,m),[w,b,v,T]=ai.get(t),E=()=>{let D=w[m];return(Zn(o.revalidate)?o.revalidate(g().data,p):o.revalidate!==!1)&&(delete v[m],delete T[m],D&&D[0])?D[0](2).then(()=>g().data):g().data};if(e.length<3)return E();let I=a,_,A=Bl();b[m]=[A,0];let N=!Nt(l),F=g(),R=F.data,ne=F._c,z=Nt(ne)?R:ne;if(N&&(l=Zn(l)?l(z,R):l,x({data:l,_c:z})),Zn(I))try{I=I(z)}catch(D){_=D}if(I&&ev(I))if(I=await I.catch(D=>{_=D}),A!==b[m][0]){if(_)throw _;return I}else _&&N&&u(_)&&(i=!0,x({data:z,_c:Nr}));if(i&&!_)if(Zn(i)){let D=i(I,z);x({data:D,error:Nr,_c:Nr})}else x({data:I,error:Nr,_c:Nr});if(b[m][1]=Bl(),Promise.resolve(E()).then(()=>{x({_c:Nr})}),_){if(d)throw _;return}return I}}var jP=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},LI=(e,t)=>{if(!ai.has(e)){let r=on(GP,t),a={},n=rv.bind(Nr,e),o=xs,i={},s=(d,f)=>{let p=i[d]||[];return i[d]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(d,f,p)=>{e.set(d,f);let m=i[d];if(m)for(let g of m)g(f,p)},u=()=>{if(!ai.has(e)&&(ai.set(e,[a,{},{},{},n,l,s]),!xc)){let d=r.initFocus(setTimeout.bind(Nr,jP.bind(Nr,a,0))),f=r.initReconnect(setTimeout.bind(Nr,jP.bind(Nr,a,1)));o=()=>{d&&d(),f&&f(),ai.delete(e)}}};return u(),[e,n,u,o]}return[e,ai.get(e)[4]]},KQ=(e,t,r,a,n)=>{let o=r.errorRetryCount,i=n.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!Nt(o)&&i>o||setTimeout(a,s,n)},ZP=Wb,[av,Tc]=LI(new Map),nv=on({onLoadingSlow:xs,onSuccess:xs,onError:xs,onErrorRetry:KQ,onDiscarded:xs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:kI?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:kI?5e3:3e3,compare:ZP,isPaused:()=>!1,cache:av,mutate:Tc,fallback:{}},qP),NI=(e,t)=>{let r=on(e,t);if(t){let{use:a,fallback:n}=e,{use:o,fallback:i}=t;a&&o&&(r.use=a.concat(o)),n&&i&&(r.fallback=on(n,i))}return r},Qb=(0,Ma.createContext)({}),RI=e=>{let{value:t}=e,r=(0,Ma.useContext)(Qb),a=Zn(t),n=(0,Ma.useMemo)(()=>a?t(r):t,[a,r,t]),o=(0,Ma.useMemo)(()=>a?n:NI(r,n),[a,r,n]),i=n&&n.provider,s=(0,Ma.useRef)(Nr);i&&!s.current&&(s.current=LI(i(o.cache||av),n));let l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),ws(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,Ma.createElement)(Qb.Provider,on(e,{value:o}))};c();var WP="$inf$";var ov=O(re(),1);var YP=Tf&&window.__SWR_DEVTOOLS_USE__,XQ=YP?window.__SWR_DEVTOOLS_USE__:[],JQ=()=>{YP&&(window.__SWR_DEVTOOLS_REACT__=ov.default)},KP=e=>Zn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],iv=()=>on(nv,(0,ov.useContext)(Qb));var QQ=e=>(t,r,a)=>e(t,r&&((...o)=>{let[i]=wc(t),[,,,s]=ai.get(av);if(i.startsWith(WP))return r(...o);let l=s[i];return Nt(l)?r(...o):(delete s[i],l)}),a),eee=XQ.concat(QQ),XP=e=>function(...r){let a=iv(),[n,o,i]=KP(r),s=NI(a,i),l=e,{use:u}=s,d=(u||[]).concat(eee);for(let f=d.length;f--;)l=d[f](l);return l(n,o||s.fetcher||null,s)},JP=(e,t,r)=>{let a=t[e]||(t[e]=[]);return a.push(r),()=>{let n=a.indexOf(r);n>=0&&(a[n]=a[a.length-1],a.pop())}},QP=(e,t)=>(...r)=>{let[a,n,o]=KP(r),i=(o.use||[]).concat(t);return e(a,n,{...o,use:i})};JQ();var tee=()=>{},Hke=tee();var OI=Ea.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),DI={dedupe:!0},ree=(e,t,r)=>{let{cache:a,compare:n,suspense:o,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=r,[m,g,x,w]=ai.get(a),[b,v]=wc(e),T=(0,Ea.useRef)(!1),E=(0,Ea.useRef)(!1),I=(0,Ea.useRef)(b),_=(0,Ea.useRef)(t),A=(0,Ea.useRef)(r),N=()=>A.current,F=()=>N().isVisible()&&N().isOnline(),[R,ne,z,D]=tv(a,b),$=(0,Ea.useRef)({}).current,H=Nt(i)?Nt(r.fallback)?Nr:r.fallback[b]:i,V=(Ve,bt)=>{for(let zt in $){let We=zt;if(We==="data"){if(!n(Ve[We],bt[We])&&(!Nt(Ve[We])||!n(ut,bt[We])))return!1}else if(bt[We]!==Ve[We])return!1}return!0},Q=(0,Ea.useMemo)(()=>{let Ve=!b||!t?!1:Nt(s)?N().isPaused()||o?!1:l!==!1:s,bt=W=>{let ye=on(W);return delete ye._k,Ve?{isValidating:!0,isLoading:!0,...ye}:ye},zt=R(),We=D(),mr=bt(zt),U=zt===We?mr:bt(We),j=mr;return[()=>{let W=bt(R());return V(W,j)?(j.data=W.data,j.isLoading=W.isLoading,j.isValidating=W.isValidating,j.error=W.error,j):(j=W,W)},()=>U]},[a,b]),te=(0,e3.useSyncExternalStore)((0,Ea.useCallback)(Ve=>z(b,(bt,zt)=>{V(zt,bt)||Ve()}),[a,b]),Q[0],Q[1]),Ee=!T.current,C=m[b]&&m[b].length>0,_e=te.data,He=Nt(_e)?H&&ev(H)?OI(H):H:_e,M=te.error,Ye=(0,Ea.useRef)(He),ut=p?Nt(_e)?Nt(Ye.current)?He:Ye.current:_e:He,yt=C&&!Nt(M)?!1:Ee&&!Nt(s)?s:N().isPaused()?!1:o?Nt(He)?!1:l:Nt(He)||l,ze=!!(b&&t&&Ee&&yt),Oe=Nt(te.isValidating)?ze:te.isValidating,Ke=Nt(te.isLoading)?ze:te.isLoading,ct=(0,Ea.useCallback)(async Ve=>{let bt=_.current;if(!b||!bt||E.current||N().isPaused())return!1;let zt,We,mr=!0,U=Ve||{},j=!x[b]||!U.dedupe,W=()=>Ef?!E.current&&b===I.current&&T.current:b===I.current,ye={isValidating:!1,isLoading:!1},fe=()=>{ne(ye)},de=()=>{let Se=x[b];Se&&Se[1]===We&&delete x[b]},ce={isValidating:!0};Nt(R().data)&&(ce.isLoading=!0);try{if(j&&(ne(ce),r.loadingTimeout&&Nt(R().data)&&setTimeout(()=>{mr&&W()&&N().onLoadingSlow(b,r)},r.loadingTimeout),x[b]=[bt(v),Bl()]),[zt,We]=x[b],zt=await zt,j&&setTimeout(de,r.dedupingInterval),!x[b]||x[b][1]!==We)return j&&W()&&N().onDiscarded(b),!1;ye.error=Nr;let Se=g[b];if(!Nt(Se)&&(We<=Se[0]||We<=Se[1]||Se[1]===0))return fe(),j&&W()&&N().onDiscarded(b),!1;let Z=R().data;ye.data=n(Z,zt)?Z:zt,j&&W()&&N().onSuccess(zt,b,r)}catch(Se){de();let Z=N(),{shouldRetryOnError:X}=Z;Z.isPaused()||(ye.error=Se,j&&W()&&(Z.onError(Se,b,Z),(X===!0||Zn(X)&&X(Se))&&(!N().revalidateOnFocus||!N().revalidateOnReconnect||F())&&Z.onErrorRetry(Se,b,Z,ie=>{let Re=m[b];Re&&Re[0]&&Re[0](Fl.ERROR_REVALIDATE_EVENT,ie)},{retryCount:(U.retryCount||0)+1,dedupe:!0})))}return mr=!1,fe(),!0},[b,a]),Xe=(0,Ea.useCallback)((...Ve)=>rv(a,I.current,...Ve),[]);if(ws(()=>{_.current=t,A.current=r,Nt(_e)||(Ye.current=_e)}),ws(()=>{if(!b)return;let Ve=ct.bind(Nr,DI),bt=0,We=JP(b,m,(mr,U={})=>{if(mr==Fl.FOCUS_EVENT){let j=Date.now();N().revalidateOnFocus&&j>bt&&F()&&(bt=j+N().focusThrottleInterval,Ve())}else if(mr==Fl.RECONNECT_EVENT)N().revalidateOnReconnect&&F()&&Ve();else{if(mr==Fl.MUTATE_EVENT)return ct();if(mr==Fl.ERROR_REVALIDATE_EVENT)return ct(U)}});return E.current=!1,I.current=b,T.current=!0,ne({_k:v}),yt&&(Nt(He)||xc?Ve():AI(Ve)),()=>{E.current=!0,We()}},[b]),ws(()=>{let Ve;function bt(){let We=Zn(u)?u(R().data):u;We&&Ve!==-1&&(Ve=setTimeout(zt,We))}function zt(){!R().error&&(d||N().isVisible())&&(f||N().isOnline())?ct(DI).then(bt):bt()}return bt(),()=>{Ve&&(clearTimeout(Ve),Ve=-1)}},[u,d,f,b]),(0,Ea.useDebugValue)(ut),o&&Nt(He)&&b){if(!Ef&&xc)throw new Error("Fallback data is required when using Suspense in SSR.");_.current=t,A.current=r,E.current=!1;let Ve=w[b];if(!Nt(Ve)){let bt=Xe(Ve);OI(bt)}if(Nt(M)){let bt=ct(DI);Nt(ut)||(bt.status="fulfilled",bt.value=!0),OI(bt)}else throw M}return{mutate:Xe,get data(){return $.data=!0,ut},get error(){return $.error=!0,M},get isValidating(){return $.isValidating=!0,Oe},get isLoading(){return $.isLoading=!0,Ke}}},Vke=wf.defineProperty(RI,"defaultValue",{value:nv}),sv=XP(ree);c();var Za=O(re(),1);var t3=Ef?e=>{e()}:Za.default.startTransition,aee=e=>{let[,t]=(0,Za.useState)({}),r=(0,Za.useRef)(!1),a=(0,Za.useRef)(e),n=(0,Za.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,Za.useCallback)(i=>{let s=!1,l=a.current;for(let u in i)if(Object.prototype.hasOwnProperty.call(i,u)){let d=u;l[d]!==i[d]&&(l[d]=i[d],n.current[d]&&(s=!0))}s&&!r.current&&t({})},[]);return ws(()=>(r.current=!1,()=>{r.current=!0})),[a,n.current,o]},nee=()=>(e,t,r={})=>{let{mutate:a}=iv(),n=(0,Za.useRef)(e),o=(0,Za.useRef)(t),i=(0,Za.useRef)(r),s=(0,Za.useRef)(0),[l,u,d]=aee({data:Nr,error:Nr,isMutating:!1}),f=l.current,p=(0,Za.useCallback)(async(g,x)=>{let[w,b]=wc(n.current);if(!o.current)throw new Error("Can\u2019t trigger the mutation: missing fetcher.");if(!w)throw new Error("Can\u2019t trigger the mutation: missing key.");let v=on(on({populateCache:!1,throwOnError:!0},i.current),x),T=Bl();s.current=T,d({isMutating:!0});try{let E=await a(w,o.current(b,{arg:g}),on(v,{throwOnError:!0}));return s.current<=T&&(t3(()=>d({data:E,isMutating:!1,error:void 0})),v.onSuccess==null||v.onSuccess.call(v,E,w,v)),E}catch(E){if(s.current<=T&&(t3(()=>d({error:E,isMutating:!1})),v.onError==null||v.onError.call(v,E,w,v),v.throwOnError))throw E}},[]),m=(0,Za.useCallback)(()=>{s.current=Bl(),d({data:Nr,error:Nr,isMutating:!1})},[]);return ws(()=>{n.current=e,o.current=t,i.current=r}),{trigger:p,reset:m,get data(){return u.data=!0,f.data},get error(){return u.error=!0,f.error},get isMutating(){return u.isMutating=!0,f.isMutating}}},lv=QP(sv,nee);c();c();c();c();c();function Ah(e,t){return function(){return e.apply(t,arguments)}}var{toString:oee}=Object.prototype,{getPrototypeOf:UI}=Object,cv=(e=>t=>{let r=oee.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ni=e=>(e=e.toLowerCase(),t=>cv(t)===e),dv=e=>t=>typeof t===e,{isArray:Sf}=Array,Lh=dv("undefined");function iee(e){return e!==null&&!Lh(e)&&e.constructor!==null&&!Lh(e.constructor)&&Wn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var n3=ni("ArrayBuffer");function see(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n3(e.buffer),t}var lee=dv("string"),Wn=dv("function"),o3=dv("number"),fv=e=>e!==null&&typeof e=="object",uee=e=>e===!0||e===!1,uv=e=>{if(cv(e)!=="object")return!1;let t=UI(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cee=ni("Date"),dee=ni("File"),fee=ni("Blob"),pee=ni("FileList"),mee=e=>fv(e)&&Wn(e.pipe),hee=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wn(e.append)&&((t=cv(e))==="formdata"||t==="object"&&Wn(e.toString)&&e.toString()==="[object FormData]"))},gee=ni("URLSearchParams"),[yee,bee,vee,xee]=["ReadableStream","Request","Response","Headers"].map(ni),wee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nh(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),Sf(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{let o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length,s;for(a=0;a<i;a++)s=o[a],t.call(null,e[s],s,e)}}function i3(e,t){t=t.toLowerCase();let r=Object.keys(e),a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}var Ec=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,s3=e=>!Lh(e)&&e!==Ec;function PI(){let{caseless:e}=s3(this)&&this||{},t={},r=(a,n)=>{let o=e&&i3(t,n)||n;uv(t[o])&&uv(a)?t[o]=PI(t[o],a):uv(a)?t[o]=PI({},a):Sf(a)?t[o]=a.slice():t[o]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&Nh(arguments[a],r);return t}var Tee=(e,t,r,{allOwnKeys:a}={})=>(Nh(t,(n,o)=>{r&&Wn(n)?e[o]=Ah(n,r):e[o]=n},{allOwnKeys:a}),e),Eee=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),See=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Iee=(e,t,r,a)=>{let n,o,i,s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],(!a||a(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&UI(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},_ee=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let a=e.indexOf(t,r);return a!==-1&&a===r},kee=e=>{if(!e)return null;if(Sf(e))return e;let t=e.length;if(!o3(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Cee=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&UI(Uint8Array)),Aee=(e,t)=>{let a=(e&&e[Symbol.iterator]).call(e),n;for(;(n=a.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},Lee=(e,t)=>{let r,a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},Nee=ni("HTMLFormElement"),Ree=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),r3=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Oee=ni("RegExp"),l3=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),a={};Nh(r,(n,o)=>{let i;(i=t(n,o,e))!==!1&&(a[o]=i||n)}),Object.defineProperties(e,a)},Dee=e=>{l3(e,(t,r)=>{if(Wn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let a=e[r];if(Wn(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Mee=(e,t)=>{let r={},a=n=>{n.forEach(o=>{r[o]=!0})};return Sf(e)?a(e):a(String(e).split(t)),r},Pee=()=>{},Uee=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,MI="abcdefghijklmnopqrstuvwxyz",a3="0123456789",u3={DIGIT:a3,ALPHA:MI,ALPHA_DIGIT:MI+MI.toUpperCase()+a3},zee=(e=16,t=u3.ALPHA_DIGIT)=>{let r="",{length:a}=t;for(;e--;)r+=t[Math.random()*a|0];return r};function Fee(e){return!!(e&&Wn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var Bee=e=>{let t=new Array(10),r=(a,n)=>{if(fv(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[n]=a;let o=Sf(a)?[]:{};return Nh(a,(i,s)=>{let l=r(i,n+1);!Lh(l)&&(o[s]=l)}),t[n]=void 0,o}}return a};return r(e,0)},$ee=ni("AsyncFunction"),jee=e=>e&&(fv(e)||Wn(e))&&Wn(e.then)&&Wn(e.catch),c3=((e,t)=>e?setImmediate:t?((r,a)=>(Ec.addEventListener("message",({source:n,data:o})=>{n===Ec&&o===r&&a.length&&a.shift()()},!1),n=>{a.push(n),Ec.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Wn(Ec.postMessage)),Hee=typeof queueMicrotask<"u"?queueMicrotask.bind(Ec):typeof process<"u"&&process.nextTick||c3,Y={isArray:Sf,isArrayBuffer:n3,isBuffer:iee,isFormData:hee,isArrayBufferView:see,isString:lee,isNumber:o3,isBoolean:uee,isObject:fv,isPlainObject:uv,isReadableStream:yee,isRequest:bee,isResponse:vee,isHeaders:xee,isUndefined:Lh,isDate:cee,isFile:dee,isBlob:fee,isRegExp:Oee,isFunction:Wn,isStream:mee,isURLSearchParams:gee,isTypedArray:Cee,isFileList:pee,forEach:Nh,merge:PI,extend:Tee,trim:wee,stripBOM:Eee,inherits:See,toFlatObject:Iee,kindOf:cv,kindOfTest:ni,endsWith:_ee,toArray:kee,forEachEntry:Aee,matchAll:Lee,isHTMLForm:Nee,hasOwnProperty:r3,hasOwnProp:r3,reduceDescriptors:l3,freezeMethods:Dee,toObjectSet:Mee,toCamelCase:Ree,noop:Pee,toFiniteNumber:Uee,findKey:i3,global:Ec,isContextDefined:s3,ALPHABET:u3,generateString:zee,isSpecCompliantForm:Fee,toJSONObject:Bee,isAsyncFn:$ee,isThenable:jee,setImmediate:c3,asap:Hee};c();c();c();c();c();function If(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}Y.inherits(If,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});var d3=If.prototype,f3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{f3[e]={value:e}});Object.defineProperties(If,f3);Object.defineProperty(d3,"isAxiosError",{value:!0});If.from=(e,t,r,a,n,o)=>{let i=Object.create(d3);return Y.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),If.call(i,e.message,t,r,a,n),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var rt=If;c();var pv=null;function zI(e){return Y.isPlainObject(e)||Y.isArray(e)}function m3(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function p3(e,t,r){return e?e.concat(t).map(function(n,o){return n=m3(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function Vee(e){return Y.isArray(e)&&!e.some(zI)}var qee=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function Gee(e,t,r){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new(pv||FormData),r=Y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!Y.isUndefined(w[x])});let a=r.metaTokens,n=r.visitor||d,o=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(n))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(!l&&Y.isBlob(g))throw new rt("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,x,w){let b=g;if(g&&!w&&typeof g=="object"){if(Y.endsWith(x,"{}"))x=a?x:x.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&Vee(g)||(Y.isFileList(g)||Y.endsWith(x,"[]"))&&(b=Y.toArray(g)))return x=m3(x),b.forEach(function(T,E){!(Y.isUndefined(T)||T===null)&&t.append(i===!0?p3([x],E,o):i===null?x:x+"[]",u(T))}),!1}return zI(g)?!0:(t.append(p3(w,x,o),u(g)),!1)}let f=[],p=Object.assign(qee,{defaultVisitor:d,convertValue:u,isVisitable:zI});function m(g,x){if(!Y.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(g),Y.forEach(g,function(b,v){(!(Y.isUndefined(b)||b===null)&&n.call(t,b,Y.isString(v)?v.trim():v,x,p))===!0&&m(b,x?x.concat(v):[v])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return m(e),t}var $l=Gee;function h3(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function g3(e,t){this._pairs=[],e&&$l(e,this,t)}var y3=g3.prototype;y3.append=function(t,r){this._pairs.push([t,r])};y3.toString=function(t){let r=t?function(a){return t.call(this,a,h3)}:h3;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};var mv=g3;function Zee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rh(e,t,r){if(!t)return e;let a=r&&r.encode||Zee;Y.isFunction(r)&&(r={serialize:r});let n=r&&r.serialize,o;if(n?o=n(t,r):o=Y.isURLSearchParams(t)?t.toString():new mv(t,r).toString(a),o){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}c();var FI=class{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(a){a!==null&&t(a)})}},BI=FI;c();c();c();c();var hv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};c();c();c();c();var b3=typeof URLSearchParams<"u"?URLSearchParams:mv;c();var v3=typeof FormData<"u"?FormData:null;c();var x3=typeof Blob<"u"?Blob:null;var w3={isBrowser:!0,classes:{URLSearchParams:b3,FormData:v3,Blob:x3},protocols:["http","https","file","blob","url","data"]};var HI={};nn(HI,{hasBrowserEnv:()=>jI,hasStandardBrowserEnv:()=>Wee,hasStandardBrowserWebWorkerEnv:()=>Yee,navigator:()=>$I,origin:()=>Kee});c();var jI=typeof window<"u"&&typeof document<"u",$I=typeof navigator=="object"&&navigator||void 0,Wee=jI&&(!$I||["ReactNative","NativeScript","NS"].indexOf($I.product)<0),Yee=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kee=jI&&window.location.href||"http://localhost";var Rr={...HI,...w3};function VI(e,t){return $l(e,new Rr.classes.URLSearchParams,Object.assign({visitor:function(r,a,n,o){return Rr.isNode&&Y.isBuffer(r)?(this.append(a,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}c();function Xee(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jee(e){let t={},r=Object.keys(e),a,n=r.length,o;for(a=0;a<n;a++)o=r[a],t[o]=e[o];return t}function Qee(e){function t(r,a,n,o){let i=r[o++];if(i==="__proto__")return!0;let s=Number.isFinite(+i),l=o>=r.length;return i=!i&&Y.isArray(n)?n.length:i,l?(Y.hasOwnProp(n,i)?n[i]=[n[i],a]:n[i]=a,!s):((!n[i]||!Y.isObject(n[i]))&&(n[i]=[]),t(r,a,n[i],o)&&Y.isArray(n[i])&&(n[i]=Jee(n[i])),!s)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){let r={};return Y.forEachEntry(e,(a,n)=>{t(Xee(a),n,r,0)}),r}return null}var gv=Qee;function ete(e,t,r){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}var qI={transitional:hv,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let a=r.getContentType()||"",n=a.indexOf("application/json")>-1,o=Y.isObject(t);if(o&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return n?JSON.stringify(gv(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return VI(t,this.formSerializer).toString();if((s=Y.isFileList(t))||a.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return $l(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||n?(r.setContentType("application/json",!1),ete(t)):t}],transformResponse:[function(t){let r=this.transitional||qI.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(a&&!this.responseType||n)){let i=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?rt.from(s,rt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rr.classes.FormData,Blob:Rr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{qI.headers[e]={}});var _f=qI;c();c();var tte=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),T3=e=>{let t={},r,a,n;return e&&e.split(`
|
|
27
|
+
`).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&tte[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t};var E3=Symbol("internals");function Oh(e){return e&&String(e).trim().toLowerCase()}function yv(e){return e===!1||e==null?e:Y.isArray(e)?e.map(yv):String(e)}function rte(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}var ate=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function GI(e,t,r,a,n){if(Y.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!Y.isString(t)){if(Y.isString(a))return t.indexOf(a)!==-1;if(Y.isRegExp(a))return a.test(t)}}function nte(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function ote(e,t){let r=Y.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,o,i){return this[a].call(this,t,n,o,i)},configurable:!0})})}var kf=class{constructor(t){t&&this.set(t)}set(t,r,a){let n=this;function o(s,l,u){let d=Oh(l);if(!d)throw new Error("header name must be a non-empty string");let f=Y.findKey(n,d);(!f||n[f]===void 0||u===!0||u===void 0&&n[f]!==!1)&&(n[f||l]=yv(s))}let i=(s,l)=>Y.forEach(s,(u,d)=>o(u,d,l));if(Y.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(Y.isString(t)&&(t=t.trim())&&!ate(t))i(T3(t),r);else if(Y.isHeaders(t))for(let[s,l]of t.entries())o(l,s,a);else t!=null&&o(r,t,a);return this}get(t,r){if(t=Oh(t),t){let a=Y.findKey(this,t);if(a){let n=this[a];if(!r)return n;if(r===!0)return rte(n);if(Y.isFunction(r))return r.call(this,n,a);if(Y.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Oh(t),t){let a=Y.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||GI(this,this[a],a,r)))}return!1}delete(t,r){let a=this,n=!1;function o(i){if(i=Oh(i),i){let s=Y.findKey(a,i);s&&(!r||GI(a,a[s],s,r))&&(delete a[s],n=!0)}}return Y.isArray(t)?t.forEach(o):o(t),n}clear(t){let r=Object.keys(this),a=r.length,n=!1;for(;a--;){let o=r[a];(!t||GI(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){let r=this,a={};return Y.forEach(this,(n,o)=>{let i=Y.findKey(a,o);if(i){r[i]=yv(n),delete r[o];return}let s=t?nte(o):String(o).trim();s!==o&&delete r[o],r[s]=yv(n),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return Y.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&Y.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
28
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){let a=(this[E3]=this[E3]={accessors:{}}).accessors,n=this.prototype;function o(i){let s=Oh(i);a[s]||(ote(n,i),a[s]=!0)}return Y.isArray(t)?t.forEach(o):o(t),this}};kf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Y.reduceDescriptors(kf.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});Y.freezeMethods(kf);var pa=kf;function Dh(e,t){let r=this||_f,a=t||r,n=pa.from(a.headers),o=a.data;return Y.forEach(e,function(s){o=s.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}c();function Mh(e){return!!(e&&e.__CANCEL__)}c();function S3(e,t,r){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,r),this.name="CanceledError"}Y.inherits(S3,rt,{__CANCEL__:!0});var Di=S3;c();c();c();function Ph(e,t,r){let a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new rt("Request failed with status code "+r.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}c();function ZI(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}c();c();function ite(e,t){e=e||10;let r=new Array(e),a=new Array(e),n=0,o=0,i;return t=t!==void 0?t:1e3,function(l){let u=Date.now(),d=a[o];i||(i=u),r[n]=l,a[n]=u;let f=o,p=0;for(;f!==n;)p+=r[f++],f=f%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),u-i<t)return;let m=d&&u-d;return m?Math.round(p*1e3/m):void 0}}var I3=ite;c();function ste(e,t){let r=0,a=1e3/t,n,o,i=(u,d=Date.now())=>{r=d,n=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{let d=Date.now(),f=d-r;f>=a?i(u,d):(n=u,o||(o=setTimeout(()=>{o=null,i(n)},a-f)))},()=>n&&i(n)]}var _3=ste;var Cf=(e,t,r=3)=>{let a=0,n=I3(50,250);return _3(o=>{let i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-a,u=n(l),d=i<=s;a=i;let f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-i)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},WI=(e,t)=>{let r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},YI=e=>(...t)=>Y.asap(()=>e(...t));c();c();var k3=Rr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Rr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Rr.origin),Rr.navigator&&/(msie|trident)/i.test(Rr.navigator.userAgent)):()=>!0;c();var C3=Rr.hasStandardBrowserEnv?{write(e,t,r,a,n,o){let i=[e+"="+encodeURIComponent(t)];Y.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Y.isString(a)&&i.push("path="+a),Y.isString(n)&&i.push("domain="+n),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};c();c();function KI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}c();function XI(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Uh(e,t){return e&&!KI(t)?XI(e,t):t}c();var A3=e=>e instanceof pa?{...e}:e;function oi(e,t){t=t||{};let r={};function a(u,d,f,p){return Y.isPlainObject(u)&&Y.isPlainObject(d)?Y.merge.call({caseless:p},u,d):Y.isPlainObject(d)?Y.merge({},d):Y.isArray(d)?d.slice():d}function n(u,d,f,p){if(Y.isUndefined(d)){if(!Y.isUndefined(u))return a(void 0,u,f,p)}else return a(u,d,f,p)}function o(u,d){if(!Y.isUndefined(d))return a(void 0,d)}function i(u,d){if(Y.isUndefined(d)){if(!Y.isUndefined(u))return a(void 0,u)}else return a(void 0,d)}function s(u,d,f){if(f in t)return a(u,d);if(f in e)return a(void 0,u)}let l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,d,f)=>n(A3(u),A3(d),f,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(d){let f=l[d]||n,p=f(e[d],t[d],d);Y.isUndefined(p)&&f!==s||(r[d]=p)}),r}var bv=e=>{let t=oi({},e),{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:i,auth:s}=t;t.headers=i=pa.from(i),t.url=Rh(Uh(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Y.isFormData(r)){if(Rr.hasStandardBrowserEnv||Rr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){let[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Rr.hasStandardBrowserEnv&&(a&&Y.isFunction(a)&&(a=a(t)),a||a!==!1&&k3(t.url))){let u=n&&o&&C3.read(o);u&&i.set(n,u)}return t};var lte=typeof XMLHttpRequest<"u",L3=lte&&function(e){return new Promise(function(r,a){let n=bv(e),o=n.data,i=pa.from(n.headers).normalize(),{responseType:s,onUploadProgress:l,onDownloadProgress:u}=n,d,f,p,m,g;function x(){m&&m(),g&&g(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(n.method.toUpperCase(),n.url,!0),w.timeout=n.timeout;function b(){if(!w)return;let T=pa.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),I={data:!s||s==="text"||s==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:e,request:w};Ph(function(A){r(A),x()},function(A){a(A),x()},I),w=null}"onloadend"in w?w.onloadend=b:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(b)},w.onabort=function(){w&&(a(new rt("Request aborted",rt.ECONNABORTED,e,w)),w=null)},w.onerror=function(){a(new rt("Network Error",rt.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let E=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",I=n.transitional||hv;n.timeoutErrorMessage&&(E=n.timeoutErrorMessage),a(new rt(E,I.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,w)),w=null},o===void 0&&i.setContentType(null),"setRequestHeader"in w&&Y.forEach(i.toJSON(),function(E,I){w.setRequestHeader(I,E)}),Y.isUndefined(n.withCredentials)||(w.withCredentials=!!n.withCredentials),s&&s!=="json"&&(w.responseType=n.responseType),u&&([p,g]=Cf(u,!0),w.addEventListener("progress",p)),l&&w.upload&&([f,m]=Cf(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(d=T=>{w&&(a(!T||T.type?new Di(null,e,w):T),w.abort(),w=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));let v=ZI(n.url);if(v&&Rr.protocols.indexOf(v)===-1){a(new rt("Unsupported protocol "+v+":",rt.ERR_BAD_REQUEST,e));return}w.send(o||null)})};c();c();var ute=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n,o=function(u){if(!n){n=!0,s();let d=u instanceof Error?u:this.reason;a.abort(d instanceof rt?d:new Di(d instanceof Error?d.message:d))}},i=t&&setTimeout(()=>{i=null,o(new rt(`timeout ${t} of ms exceeded`,rt.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));let{signal:l}=a;return l.unsubscribe=()=>Y.asap(s),l}},N3=ute;c();var cte=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},dte=async function*(e,t){for await(let r of fte(e))yield*cte(r,t)},fte=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},JI=(e,t,r,a)=>{let n=dte(e,t),o=0,i,s=l=>{i||(i=!0,a&&a(l))};return new ReadableStream({async pull(l){try{let{done:u,value:d}=await n.next();if(u){s(),l.close();return}let f=d.byteLength;if(r){let p=o+=f;r(p)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),n.return()}},{highWaterMark:2})};var xv=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",O3=xv&&typeof ReadableStream=="function",pte=xv&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),D3=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mte=O3&&D3(()=>{let e=!1,t=new Request(Rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),R3=64*1024,QI=O3&&D3(()=>Y.isReadableStream(new Response("").body)),vv={stream:QI&&(e=>e.body)};xv&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vv[t]&&(vv[t]=Y.isFunction(e[t])?r=>r[t]():(r,a)=>{throw new rt(`Response type '${t}' is not supported`,rt.ERR_NOT_SUPPORT,a)})})})(new Response);var hte=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new Request(Rr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e=e+""),Y.isString(e))return(await pte(e)).byteLength},gte=async(e,t)=>{let r=Y.toFiniteNumber(e.getContentLength());return r??hte(t)},M3=xv&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:o,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=bv(e);u=u?(u+"").toLowerCase():"text";let m=N3([n,o&&o.toAbortSignal()],i),g,x=m&&m.unsubscribe&&(()=>{m.unsubscribe()}),w;try{if(l&&mte&&r!=="get"&&r!=="head"&&(w=await gte(d,a))!==0){let I=new Request(t,{method:"POST",body:a,duplex:"half"}),_;if(Y.isFormData(a)&&(_=I.headers.get("content-type"))&&d.setContentType(_),I.body){let[A,N]=WI(w,Cf(YI(l)));a=JI(I.body,R3,A,N)}}Y.isString(f)||(f=f?"include":"omit");let b="credentials"in Request.prototype;g=new Request(t,{...p,signal:m,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",credentials:b?f:void 0});let v=await fetch(g),T=QI&&(u==="stream"||u==="response");if(QI&&(s||T&&x)){let I={};["status","statusText","headers"].forEach(F=>{I[F]=v[F]});let _=Y.toFiniteNumber(v.headers.get("content-length")),[A,N]=s&&WI(_,Cf(YI(s),!0))||[];v=new Response(JI(v.body,R3,A,()=>{N&&N(),x&&x()}),I)}u=u||"text";let E=await vv[Y.findKey(vv,u)||"text"](v,e);return!T&&x&&x(),await new Promise((I,_)=>{Ph(I,_,{data:E,headers:pa.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:g})})}catch(b){throw x&&x(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,e,g),{cause:b.cause||b}):rt.from(b,b&&b.code,e,g)}});var e_={http:pv,xhr:L3,fetch:M3};Y.forEach(e_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var P3=e=>`- ${e}`,yte=e=>Y.isFunction(e)||e===null||e===!1,wv={getAdapter:e=>{e=Y.isArray(e)?e:[e];let{length:t}=e,r,a,n={};for(let o=0;o<t;o++){r=e[o];let i;if(a=r,!yte(r)&&(a=e_[(i=String(r)).toLowerCase()],a===void 0))throw new rt(`Unknown adapter '${i}'`);if(a)break;n[i||"#"+o]=a}if(!a){let o=Object.entries(n).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build")),i=t?o.length>1?`since :
|
|
29
|
+
`+o.map(P3).join(`
|
|
30
|
+
`):" "+P3(o[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return a},adapters:e_};function t_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Di(null,e)}function Tv(e){return t_(e),e.headers=pa.from(e.headers),e.data=Dh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wv.getAdapter(e.adapter||_f.adapter)(e).then(function(a){return t_(e),a.data=Dh.call(e,e.transformResponse,a),a.headers=pa.from(a.headers),a},function(a){return Mh(a)||(t_(e),a&&a.response&&(a.response.data=Dh.call(e,e.transformResponse,a.response),a.response.headers=pa.from(a.response.headers))),Promise.reject(a)})}c();c();var Ev="1.7.9";var Sv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sv[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var U3={};Sv.transitional=function(t,r,a){function n(o,i){return"[Axios v"+Ev+"] Transitional option '"+o+"'"+i+(a?". "+a:"")}return(o,i,s)=>{if(t===!1)throw new rt(n(i," has been removed"+(r?" in "+r:"")),rt.ERR_DEPRECATED);return r&&!U3[i]&&(U3[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,s):!0}};Sv.spelling=function(t){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function bte(e,t,r){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);let a=Object.keys(e),n=a.length;for(;n-- >0;){let o=a[n],i=t[o];if(i){let s=e[o],l=s===void 0||i(s,o,e);if(l!==!0)throw new rt("option "+o+" must be "+l,rt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new rt("Unknown option "+o,rt.ERR_BAD_OPTION)}}var zh={assertOptions:bte,validators:Sv};var Mi=zh.validators,Af=class{constructor(t){this.defaults=t,this.interceptors={request:new BI,response:new BI}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;let o=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?o&&!String(a.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
31
|
+
`+o):a.stack=o}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=oi(this.defaults,r);let{transitional:a,paramsSerializer:n,headers:o}=r;a!==void 0&&zh.assertOptions(a,{silentJSONParsing:Mi.transitional(Mi.boolean),forcedJSONParsing:Mi.transitional(Mi.boolean),clarifyTimeoutError:Mi.transitional(Mi.boolean)},!1),n!=null&&(Y.isFunction(n)?r.paramsSerializer={serialize:n}:zh.assertOptions(n,{encode:Mi.function,serialize:Mi.function},!0)),zh.assertOptions(r,{baseUrl:Mi.spelling("baseURL"),withXsrfToken:Mi.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&Y.merge(o.common,o[r.method]);o&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),r.headers=pa.concat(i,o);let s=[],l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});let u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let d,f=0,p;if(!l){let g=[Tv.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),p=g.length,d=Promise.resolve(r);f<p;)d=d.then(g[f++],g[f++]);return d}p=s.length;let m=r;for(f=0;f<p;){let g=s[f++],x=s[f++];try{m=g(m)}catch(w){x.call(this,w);break}}try{d=Tv.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=oi(this.defaults,t);let r=Uh(t.baseURL,t.url);return Rh(r,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Af.prototype[t]=function(r,a){return this.request(oi(a||{},{method:t,url:r,data:(a||{}).data}))}});Y.forEach(["post","put","patch"],function(t){function r(a){return function(o,i,s){return this.request(oi(s||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Af.prototype[t]=r(),Af.prototype[t+"Form"]=r(!0)});var Fh=Af;c();var r_=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});let a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o,i=new Promise(s=>{a.subscribe(s),o=s}).then(n);return i.cancel=function(){a.unsubscribe(o)},i},t(function(o,i,s){a.reason||(a.reason=new Di(o,i,s),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(n){t=n}),cancel:t}}},z3=r_;c();function a_(e){return function(r){return e.apply(null,r)}}c();function n_(e){return Y.isObject(e)&&e.isAxiosError===!0}c();var o_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(o_).forEach(([e,t])=>{o_[t]=e});var F3=o_;function B3(e){let t=new Fh(e),r=Ah(Fh.prototype.request,t);return Y.extend(r,Fh.prototype,t,{allOwnKeys:!0}),Y.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return B3(oi(e,n))},r}var ra=B3(_f);ra.Axios=Fh;ra.CanceledError=Di;ra.CancelToken=z3;ra.isCancel=Mh;ra.VERSION=Ev;ra.toFormData=$l;ra.AxiosError=rt;ra.Cancel=ra.CanceledError;ra.all=function(t){return Promise.all(t)};ra.spread=a_;ra.isAxiosError=n_;ra.mergeConfig=oi;ra.AxiosHeaders=pa;ra.formToJSON=e=>gv(Y.isHTMLForm(e)?new FormData(e):e);ra.getAdapter=wv.getAdapter;ra.HttpStatusCode=F3;ra.default=ra;var Sc=ra;var{Axios:WLe,AxiosError:YLe,CanceledError:KLe,isCancel:XLe,CancelToken:JLe,VERSION:QLe,all:eNe,Cancel:tNe,isAxiosError:rNe,spread:aNe,toFormData:nNe,AxiosHeaders:oNe,HttpStatusCode:iNe,formToJSON:sNe,getAdapter:lNe,mergeConfig:uNe}=Sc;var Bh=e=>(t,{arg:r})=>Sc(t,{method:e,data:r}).then(a=>a.data);var Iv=(...e)=>Sc(...e).then(t=>t.data);c();var i_=O(re());function vte(){let e=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",t=(0,i_.useCallback)((a,n)=>{let o=`${e??""}/api/agents/${a}`;n?Tc(o,n,!1):Tc(o)},[e]),r=(0,i_.useCallback)(()=>{Tc(a=>a.includes("/api/agents/"),void 0,!1)},[]);return{invalidateAgentCache:t,invalidateAllAgentCache:r}}var $3=vte;var s_=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com";function xte({id:e}){let{invalidateAgentCache:t}=$3(),r=sv(e?`${s_??""}/api/agents/${e}`:null,Iv,{revalidateOnFocus:!1,revalidateOnReconnect:!1,dedupingInterval:5e3}),a=lv(e?`${s_??""}/api/agents/${e}`:`${s_??""}/api/agents`,Bh(e?"PATCH":"POST"),{onSuccess(n,o,i){r.mutate(n,!1),e&&t(e,n)}});return{query:r,mutation:a}}var _v=xte;c();c();c();c();c();var Yn=O(re(),1),Vh=e=>e.type==="checkbox",Ic=e=>e instanceof Date,sn=e=>e==null,Q3=e=>typeof e=="object",Zr=e=>!sn(e)&&!Array.isArray(e)&&Q3(e)&&!Ic(e),wte=e=>Zr(e)&&e.target?Vh(e.target)?e.target.checked:e.target.value:e,Tte=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ete=(e,t)=>e.has(Tte(t)),Ste=e=>{let t=e.constructor&&e.constructor.prototype;return Zr(t)&&t.hasOwnProperty("isPrototypeOf")},f_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Io(e){let t,r=Array.isArray(e),a=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(f_&&(e instanceof Blob||a))&&(r||Zr(e)))if(t=r?[]:{},!r&&!Ste(e))t=e;else for(let n in e)e.hasOwnProperty(n)&&(t[n]=Io(e[n]));else return e;return t}var Rv=e=>Array.isArray(e)?e.filter(Boolean):[],aa=e=>e===void 0,Me=(e,t,r)=>{if(!t||!Zr(e))return r;let a=Rv(t.split(/[,[\].]+?/)).reduce((n,o)=>sn(n)?n:n[o],e);return aa(a)||a===e?aa(e[t])?r:e[t]:a},Pi=e=>typeof e=="boolean",p_=e=>/^\w*$/.test(e),e5=e=>Rv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Gt=(e,t,r)=>{let a=-1,n=p_(t)?[t]:e5(t),o=n.length,i=o-1;for(;++a<o;){let s=n[a],l=r;if(a!==i){let u=e[s];l=Zr(u)||Array.isArray(u)?u:isNaN(+n[a+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}return e},H3={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ii={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ts={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},kNe=Yn.default.createContext(null);var Ite=(e,t,r,a=!0)=>{let n={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(n,o,{get:()=>{let i=o;return t._proxyFormState[i]!==ii.all&&(t._proxyFormState[i]=!a||ii.all),r&&(r[i]=!0),e[i]}});return n},Sn=e=>Zr(e)&&!Object.keys(e).length,_te=(e,t,r,a)=>{r(e);let{name:n,...o}=e;return Sn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!a||ii.all))},kv=e=>Array.isArray(e)?e:[e];function kte(e){let t=Yn.default.useRef(e);t.current=e,Yn.default.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var zi=e=>typeof e=="string",Cte=(e,t,r,a,n)=>zi(e)?(a&&t.watch.add(e),Me(r,e,n)):Array.isArray(e)?e.map(o=>(a&&t.watch.add(o),Me(r,o))):(a&&(t.watchAll=!0),r);var m_=(e,t,r,a,n)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:n||!0}}:{};var V3=e=>({isOnSubmit:!e||e===ii.onSubmit,isOnBlur:e===ii.onBlur,isOnChange:e===ii.onChange,isOnAll:e===ii.all,isOnTouch:e===ii.onTouched}),q3=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(a=>e.startsWith(a)&&/^\.\w+/.test(e.slice(a.length)))),Hh=(e,t,r,a)=>{for(let n of r||Object.keys(e)){let o=Me(e,n);if(o){let{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],n)&&!a)return!0;if(i.ref&&t(i.ref,i.name)&&!a)return!0;if(Hh(s,t))break}else if(Zr(s)&&Hh(s,t))break}}},Ate=(e,t,r)=>{let a=kv(Me(e,r));return Gt(a,"root",t[r]),Gt(e,r,a),e},h_=e=>e.type==="file",Ui=e=>typeof e=="function",Av=e=>{if(!f_)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Cv=e=>zi(e),g_=e=>e.type==="radio",Lv=e=>e instanceof RegExp,G3={value:!1,isValid:!1},Z3={value:!0,isValid:!0},t5=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!aa(e[0].attributes.value)?aa(e[0].value)||e[0].value===""?Z3:{value:e[0].value,isValid:!0}:Z3:G3}return G3},W3={isValid:!1,value:null},r5=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,W3):W3;function Y3(e,t,r="validate"){if(Cv(e)||Array.isArray(e)&&e.every(Cv)||Pi(e)&&!e)return{type:r,message:Cv(e)?e:"",ref:t}}var Lf=e=>Zr(e)&&!Lv(e)?e:{value:e,message:""},K3=async(e,t,r,a,n,o)=>{let{ref:i,refs:s,required:l,maxLength:u,minLength:d,min:f,max:p,pattern:m,validate:g,name:x,valueAsNumber:w,mount:b}=e._f,v=Me(r,x);if(!b||t.has(x))return{};let T=s?s[0]:i,E=z=>{n&&T.reportValidity&&(T.setCustomValidity(Pi(z)?"":z||""),T.reportValidity())},I={},_=g_(i),A=Vh(i),N=_||A,F=(w||h_(i))&&aa(i.value)&&aa(v)||Av(i)&&i.value===""||v===""||Array.isArray(v)&&!v.length,R=m_.bind(null,x,a,I),ne=(z,D,$,H=Ts.maxLength,V=Ts.minLength)=>{let Q=z?D:$;I[x]={type:z?H:V,message:Q,ref:i,...R(z?H:V,Q)}};if(o?!Array.isArray(v)||!v.length:l&&(!N&&(F||sn(v))||Pi(v)&&!v||A&&!t5(s).isValid||_&&!r5(s).isValid)){let{value:z,message:D}=Cv(l)?{value:!!l,message:l}:Lf(l);if(z&&(I[x]={type:Ts.required,message:D,ref:T,...R(Ts.required,D)},!a))return E(D),I}if(!F&&(!sn(f)||!sn(p))){let z,D,$=Lf(p),H=Lf(f);if(!sn(v)&&!isNaN(v)){let V=i.valueAsNumber||v&&+v;sn($.value)||(z=V>$.value),sn(H.value)||(D=V<H.value)}else{let V=i.valueAsDate||new Date(v),Q=C=>new Date(new Date().toDateString()+" "+C),te=i.type=="time",Ee=i.type=="week";zi($.value)&&v&&(z=te?Q(v)>Q($.value):Ee?v>$.value:V>new Date($.value)),zi(H.value)&&v&&(D=te?Q(v)<Q(H.value):Ee?v<H.value:V<new Date(H.value))}if((z||D)&&(ne(!!z,$.message,H.message,Ts.max,Ts.min),!a))return E(I[x].message),I}if((u||d)&&!F&&(zi(v)||o&&Array.isArray(v))){let z=Lf(u),D=Lf(d),$=!sn(z.value)&&v.length>+z.value,H=!sn(D.value)&&v.length<+D.value;if(($||H)&&(ne($,z.message,D.message),!a))return E(I[x].message),I}if(m&&!F&&zi(v)){let{value:z,message:D}=Lf(m);if(Lv(z)&&!v.match(z)&&(I[x]={type:Ts.pattern,message:D,ref:i,...R(Ts.pattern,D)},!a))return E(D),I}if(g){if(Ui(g)){let z=await g(v,r),D=Y3(z,T);if(D&&(I[x]={...D,...R(Ts.validate,D.message)},!a))return E(D.message),I}else if(Zr(g)){let z={};for(let D in g){if(!Sn(z)&&!a)break;let $=Y3(await g[D](v,r),T,D);$&&(z={...$,...R(D,$.message)},E($.message),a&&(I[x]=z))}if(!Sn(z)&&(I[x]={ref:T,...z},!a))return I}}return E(!0),I};function Lte(e,t){let r=t.slice(0,-1).length,a=0;for(;a<r;)e=aa(e)?a++:e[t[a++]];return e}function Nte(e){for(let t in e)if(e.hasOwnProperty(t)&&!aa(e[t]))return!1;return!0}function ma(e,t){let r=Array.isArray(t)?t:p_(t)?[t]:e5(t),a=r.length===1?e:Lte(e,r),n=r.length-1,o=r[n];return a&&delete a[o],n!==0&&(Zr(a)&&Sn(a)||Array.isArray(a)&&Nte(a))&&ma(e,r.slice(0,-1)),e}var l_=()=>{let e=[];return{get observers(){return e},next:n=>{for(let o of e)o.next&&o.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(o=>o!==n)}}),unsubscribe:()=>{e=[]}}},d_=e=>sn(e)||!Q3(e);function jl(e,t){if(d_(e)||d_(t))return e===t;if(Ic(e)&&Ic(t))return e.getTime()===t.getTime();let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let n of r){let o=e[n];if(!a.includes(n))return!1;if(n!=="ref"){let i=t[n];if(Ic(o)&&Ic(i)||Zr(o)&&Zr(i)||Array.isArray(o)&&Array.isArray(i)?!jl(o,i):o!==i)return!1}}return!0}var a5=e=>e.type==="select-multiple",Rte=e=>g_(e)||Vh(e),u_=e=>Av(e)&&e.isConnected,n5=e=>{for(let t in e)if(Ui(e[t]))return!0;return!1};function Nv(e,t={}){let r=Array.isArray(e);if(Zr(e)||r)for(let a in e)Array.isArray(e[a])||Zr(e[a])&&!n5(e[a])?(t[a]=Array.isArray(e[a])?[]:{},Nv(e[a],t[a])):sn(e[a])||(t[a]=!0);return t}function o5(e,t,r){let a=Array.isArray(e);if(Zr(e)||a)for(let n in e)Array.isArray(e[n])||Zr(e[n])&&!n5(e[n])?aa(t)||d_(r[n])?r[n]=Array.isArray(e[n])?Nv(e[n],[]):{...Nv(e[n])}:o5(e[n],sn(t)?{}:t[n],r[n]):r[n]=!jl(e[n],t[n]);return r}var $h=(e,t)=>o5(e,t,Nv(t)),i5=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>aa(e)?e:t?e===""?NaN:e&&+e:r&&zi(e)?new Date(e):a?a(e):e;function c_(e){let t=e.ref;return h_(t)?t.files:g_(t)?r5(e.refs).value:a5(t)?[...t.selectedOptions].map(({value:r})=>r):Vh(t)?t5(e.refs).value:i5(aa(t.value)?e.ref.value:t.value,e)}var Ote=(e,t,r,a)=>{let n={};for(let o of e){let i=Me(t,o);i&&Gt(n,o,i._f)}return{criteriaMode:r,names:[...e],fields:n,shouldUseNativeValidation:a}},jh=e=>aa(e)?e:Lv(e)?e.source:Zr(e)?Lv(e.value)?e.value.source:e.value:e,X3="AsyncFunction",Dte=e=>!!e&&!!e.validate&&!!(Ui(e.validate)&&e.validate.constructor.name===X3||Zr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===X3)),Mte=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function J3(e,t,r){let a=Me(e,r);if(a||p_(r))return{error:a,name:r};let n=r.split(".");for(;n.length;){let o=n.join("."),i=Me(t,o),s=Me(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};n.pop()}return{name:r}}var Pte=(e,t,r,a,n)=>n.isOnAll?!1:!r&&n.isOnTouch?!(t||e):(r?a.isOnBlur:n.isOnBlur)?!e:(r?a.isOnChange:n.isOnChange)?e:!0,Ute=(e,t)=>!Rv(Me(e,t)).length&&ma(e,t),zte={mode:ii.onSubmit,reValidateMode:ii.onChange,shouldFocusError:!0};function Fte(e={}){let t={...zte,...e},r={submitCount:0,isDirty:!1,isLoading:Ui(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},a={},n=Zr(t.defaultValues)||Zr(t.values)?Io(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Io(n),i={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0,d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:l_(),array:l_(),state:l_()},p=V3(t.mode),m=V3(t.reValidateMode),g=t.criteriaMode===ii.all,x=U=>j=>{clearTimeout(u),u=setTimeout(U,j)},w=async U=>{if(!t.disabled&&(d.isValid||U)){let j=t.resolver?Sn((await N()).errors):await R(a,!0);j!==r.isValid&&f.state.next({isValid:j})}},b=(U,j)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((U||Array.from(s.mount)).forEach(W=>{W&&(j?Gt(r.validatingFields,W,j):ma(r.validatingFields,W))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Sn(r.validatingFields)}))},v=(U,j=[],W,ye,fe=!0,de=!0)=>{if(ye&&W&&!t.disabled){if(i.action=!0,de&&Array.isArray(Me(a,U))){let ce=W(Me(a,U),ye.argA,ye.argB);fe&&Gt(a,U,ce)}if(de&&Array.isArray(Me(r.errors,U))){let ce=W(Me(r.errors,U),ye.argA,ye.argB);fe&&Gt(r.errors,U,ce),Ute(r.errors,U)}if(d.touchedFields&&de&&Array.isArray(Me(r.touchedFields,U))){let ce=W(Me(r.touchedFields,U),ye.argA,ye.argB);fe&&Gt(r.touchedFields,U,ce)}d.dirtyFields&&(r.dirtyFields=$h(n,o)),f.state.next({name:U,isDirty:z(U,j),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Gt(o,U,j)},T=(U,j)=>{Gt(r.errors,U,j),f.state.next({errors:r.errors})},E=U=>{r.errors=U,f.state.next({errors:r.errors,isValid:!1})},I=(U,j,W,ye)=>{let fe=Me(a,U);if(fe){let de=Me(o,U,aa(W)?Me(n,U):W);aa(de)||ye&&ye.defaultChecked||j?Gt(o,U,j?de:c_(fe._f)):H(U,de),i.mount&&w()}},_=(U,j,W,ye,fe)=>{let de=!1,ce=!1,Se={name:U};if(!t.disabled){let Z=!!(Me(a,U)&&Me(a,U)._f&&Me(a,U)._f.disabled);if(!W||ye){d.isDirty&&(ce=r.isDirty,r.isDirty=Se.isDirty=z(),de=ce!==Se.isDirty);let X=Z||jl(Me(n,U),j);ce=!!(!Z&&Me(r.dirtyFields,U)),X||Z?ma(r.dirtyFields,U):Gt(r.dirtyFields,U,!0),Se.dirtyFields=r.dirtyFields,de=de||d.dirtyFields&&ce!==!X}if(W){let X=Me(r.touchedFields,U);X||(Gt(r.touchedFields,U,W),Se.touchedFields=r.touchedFields,de=de||d.touchedFields&&X!==W)}de&&fe&&f.state.next(Se)}return de?Se:{}},A=(U,j,W,ye)=>{let fe=Me(r.errors,U),de=d.isValid&&Pi(j)&&r.isValid!==j;if(t.delayError&&W?(l=x(()=>T(U,W)),l(t.delayError)):(clearTimeout(u),l=null,W?Gt(r.errors,U,W):ma(r.errors,U)),(W?!jl(fe,W):fe)||!Sn(ye)||de){let ce={...ye,...de&&Pi(j)?{isValid:j}:{},errors:r.errors,name:U};r={...r,...ce},f.state.next(ce)}},N=async U=>{b(U,!0);let j=await t.resolver(o,t.context,Ote(U||s.mount,a,t.criteriaMode,t.shouldUseNativeValidation));return b(U),j},F=async U=>{let{errors:j}=await N(U);if(U)for(let W of U){let ye=Me(j,W);ye?Gt(r.errors,W,ye):ma(r.errors,W)}else r.errors=j;return j},R=async(U,j,W={valid:!0})=>{for(let ye in U){let fe=U[ye];if(fe){let{_f:de,...ce}=fe;if(de){let Se=s.array.has(de.name),Z=fe._f&&Dte(fe._f);Z&&d.validatingFields&&b([ye],!0);let X=await K3(fe,s.disabled,o,g,t.shouldUseNativeValidation&&!j,Se);if(Z&&d.validatingFields&&b([ye]),X[de.name]&&(W.valid=!1,j))break;!j&&(Me(X,de.name)?Se?Ate(r.errors,X,de.name):Gt(r.errors,de.name,X[de.name]):ma(r.errors,de.name))}!Sn(ce)&&await R(ce,j,W)}}return W.valid},ne=()=>{for(let U of s.unMount){let j=Me(a,U);j&&(j._f.refs?j._f.refs.every(W=>!u_(W)):!u_(j._f.ref))&&yt(U)}s.unMount=new Set},z=(U,j)=>!t.disabled&&(U&&j&&Gt(o,U,j),!jl(_e(),n)),D=(U,j,W)=>Cte(U,s,{...i.mount?o:aa(j)?n:zi(U)?{[U]:j}:j},W,j),$=U=>Rv(Me(i.mount?o:n,U,t.shouldUnregister?Me(n,U,[]):[])),H=(U,j,W={})=>{let ye=Me(a,U),fe=j;if(ye){let de=ye._f;de&&(!de.disabled&&Gt(o,U,i5(j,de)),fe=Av(de.ref)&&sn(j)?"":j,a5(de.ref)?[...de.ref.options].forEach(ce=>ce.selected=fe.includes(ce.value)):de.refs?Vh(de.ref)?de.refs.length>1?de.refs.forEach(ce=>(!ce.defaultChecked||!ce.disabled)&&(ce.checked=Array.isArray(fe)?!!fe.find(Se=>Se===ce.value):fe===ce.value)):de.refs[0]&&(de.refs[0].checked=!!fe):de.refs.forEach(ce=>ce.checked=ce.value===fe):h_(de.ref)?de.ref.value="":(de.ref.value=fe,de.ref.type||f.values.next({name:U,values:{...o}})))}(W.shouldDirty||W.shouldTouch)&&_(U,fe,W.shouldTouch,W.shouldDirty,!0),W.shouldValidate&&C(U)},V=(U,j,W)=>{for(let ye in j){let fe=j[ye],de=`${U}.${ye}`,ce=Me(a,de);(s.array.has(U)||Zr(fe)||ce&&!ce._f)&&!Ic(fe)?V(de,fe,W):H(de,fe,W)}},Q=(U,j,W={})=>{let ye=Me(a,U),fe=s.array.has(U),de=Io(j);Gt(o,U,de),fe?(f.array.next({name:U,values:{...o}}),(d.isDirty||d.dirtyFields)&&W.shouldDirty&&f.state.next({name:U,dirtyFields:$h(n,o),isDirty:z(U,de)})):ye&&!ye._f&&!sn(de)?V(U,de,W):H(U,de,W),q3(U,s)&&f.state.next({...r}),f.values.next({name:i.mount?U:void 0,values:{...o}})},te=async U=>{i.mount=!0;let j=U.target,W=j.name,ye=!0,fe=Me(a,W),de=()=>j.type?c_(fe._f):wte(U),ce=Se=>{ye=Number.isNaN(Se)||Ic(Se)&&isNaN(Se.getTime())||jl(Se,Me(o,W,Se))};if(fe){let Se,Z,X=de(),ie=U.type===H3.BLUR||U.type===H3.FOCUS_OUT,Re=!Mte(fe._f)&&!t.resolver&&!Me(r.errors,W)&&!fe._f.deps||Pte(ie,Me(r.touchedFields,W),r.isSubmitted,m,p),dt=q3(W,s,ie);Gt(o,W,X),ie?(fe._f.onBlur&&fe._f.onBlur(U),l&&l(0)):fe._f.onChange&&fe._f.onChange(U);let zr=_(W,X,ie,!1),Fr=!Sn(zr)||dt;if(!ie&&f.values.next({name:W,type:U.type,values:{...o}}),Re)return d.isValid&&(t.mode==="onBlur"&&ie?w():ie||w()),Fr&&f.state.next({name:W,...dt?{}:zr});if(!ie&&dt&&f.state.next({...r}),t.resolver){let{errors:Ta}=await N([W]);if(ce(X),ye){let ei=J3(r.errors,a,W),Tn=J3(Ta,a,ei.name||W);Se=Tn.error,W=Tn.name,Z=Sn(Ta)}}else b([W],!0),Se=(await K3(fe,s.disabled,o,g,t.shouldUseNativeValidation))[W],b([W]),ce(X),ye&&(Se?Z=!1:d.isValid&&(Z=await R(a,!0)));ye&&(fe._f.deps&&C(fe._f.deps),A(W,Z,Se,zr))}},Ee=(U,j)=>{if(Me(r.errors,j)&&U.focus)return U.focus(),1},C=async(U,j={})=>{let W,ye,fe=kv(U);if(t.resolver){let de=await F(aa(U)?U:fe);W=Sn(de),ye=U?!fe.some(ce=>Me(de,ce)):W}else U?(ye=(await Promise.all(fe.map(async de=>{let ce=Me(a,de);return await R(ce&&ce._f?{[de]:ce}:ce)}))).every(Boolean),!(!ye&&!r.isValid)&&w()):ye=W=await R(a);return f.state.next({...!zi(U)||d.isValid&&W!==r.isValid?{}:{name:U},...t.resolver||!U?{isValid:W}:{},errors:r.errors}),j.shouldFocus&&!ye&&Hh(a,Ee,U?fe:s.mount),ye},_e=U=>{let j={...i.mount?o:n};return aa(U)?j:zi(U)?Me(j,U):U.map(W=>Me(j,W))},He=(U,j)=>({invalid:!!Me((j||r).errors,U),isDirty:!!Me((j||r).dirtyFields,U),error:Me((j||r).errors,U),isValidating:!!Me(r.validatingFields,U),isTouched:!!Me((j||r).touchedFields,U)}),M=U=>{U&&kv(U).forEach(j=>ma(r.errors,j)),f.state.next({errors:U?r.errors:{}})},Ye=(U,j,W)=>{let ye=(Me(a,U,{_f:{}})._f||{}).ref,fe=Me(r.errors,U)||{},{ref:de,message:ce,type:Se,...Z}=fe;Gt(r.errors,U,{...Z,...j,ref:ye}),f.state.next({name:U,errors:r.errors,isValid:!1}),W&&W.shouldFocus&&ye&&ye.focus&&ye.focus()},ut=(U,j)=>Ui(U)?f.values.subscribe({next:W=>U(D(void 0,j),W)}):D(U,j,!0),yt=(U,j={})=>{for(let W of U?kv(U):s.mount)s.mount.delete(W),s.array.delete(W),j.keepValue||(ma(a,W),ma(o,W)),!j.keepError&&ma(r.errors,W),!j.keepDirty&&ma(r.dirtyFields,W),!j.keepTouched&&ma(r.touchedFields,W),!j.keepIsValidating&&ma(r.validatingFields,W),!t.shouldUnregister&&!j.keepDefaultValue&&ma(n,W);f.values.next({values:{...o}}),f.state.next({...r,...j.keepDirty?{isDirty:z()}:{}}),!j.keepIsValid&&w()},ze=({disabled:U,name:j,field:W,fields:ye})=>{(Pi(U)&&i.mount||U||s.disabled.has(j))&&(U?s.disabled.add(j):s.disabled.delete(j),_(j,c_(W?W._f:Me(ye,j)._f),!1,!1,!0))},Oe=(U,j={})=>{let W=Me(a,U),ye=Pi(j.disabled)||Pi(t.disabled);return Gt(a,U,{...W||{},_f:{...W&&W._f?W._f:{ref:{name:U}},name:U,mount:!0,...j}}),s.mount.add(U),W?ze({field:W,disabled:Pi(j.disabled)?j.disabled:t.disabled,name:U}):I(U,!0,j.value),{...ye?{disabled:j.disabled||t.disabled}:{},...t.progressive?{required:!!j.required,min:jh(j.min),max:jh(j.max),minLength:jh(j.minLength),maxLength:jh(j.maxLength),pattern:jh(j.pattern)}:{},name:U,onChange:te,onBlur:te,ref:fe=>{if(fe){Oe(U,j),W=Me(a,U);let de=aa(fe.value)&&fe.querySelectorAll&&fe.querySelectorAll("input,select,textarea")[0]||fe,ce=Rte(de),Se=W._f.refs||[];if(ce?Se.find(Z=>Z===de):de===W._f.ref)return;Gt(a,U,{_f:{...W._f,...ce?{refs:[...Se.filter(u_),de,...Array.isArray(Me(n,U))?[{}]:[]],ref:{type:de.type,name:U}}:{ref:de}}}),I(U,!1,void 0,de)}else W=Me(a,U,{}),W._f&&(W._f.mount=!1),(t.shouldUnregister||j.shouldUnregister)&&!(Ete(s.array,U)&&i.action)&&s.unMount.add(U)}}},Ke=()=>t.shouldFocusError&&Hh(a,Ee,s.mount),ct=U=>{Pi(U)&&(f.state.next({disabled:U}),Hh(a,(j,W)=>{let ye=Me(a,W);ye&&(j.disabled=ye._f.disabled||U,Array.isArray(ye._f.refs)&&ye._f.refs.forEach(fe=>{fe.disabled=ye._f.disabled||U}))},0,!1))},Xe=(U,j)=>async W=>{let ye;W&&(W.preventDefault&&W.preventDefault(),W.persist&&W.persist());let fe=Io(o);if(s.disabled.size)for(let de of s.disabled)Gt(fe,de,void 0);if(f.state.next({isSubmitting:!0}),t.resolver){let{errors:de,values:ce}=await N();r.errors=de,fe=ce}else await R(a);if(ma(r.errors,"root"),Sn(r.errors)){f.state.next({errors:{}});try{await U(fe,W)}catch(de){ye=de}}else j&&await j({...r.errors},W),Ke(),setTimeout(Ke);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Sn(r.errors)&&!ye,submitCount:r.submitCount+1,errors:r.errors}),ye)throw ye},Pt=(U,j={})=>{Me(a,U)&&(aa(j.defaultValue)?Q(U,Io(Me(n,U))):(Q(U,j.defaultValue),Gt(n,U,Io(j.defaultValue))),j.keepTouched||ma(r.touchedFields,U),j.keepDirty||(ma(r.dirtyFields,U),r.isDirty=j.defaultValue?z(U,Io(Me(n,U))):z()),j.keepError||(ma(r.errors,U),d.isValid&&w()),f.state.next({...r}))},Ve=(U,j={})=>{let W=U?Io(U):n,ye=Io(W),fe=Sn(U),de=fe?n:ye;if(j.keepDefaultValues||(n=W),!j.keepValues){if(j.keepDirtyValues){let ce=new Set([...s.mount,...Object.keys($h(n,o))]);for(let Se of Array.from(ce))Me(r.dirtyFields,Se)?Gt(de,Se,Me(o,Se)):Q(Se,Me(de,Se))}else{if(f_&&aa(U))for(let ce of s.mount){let Se=Me(a,ce);if(Se&&Se._f){let Z=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(Av(Z)){let X=Z.closest("form");if(X){X.reset();break}}}}a={}}o=t.shouldUnregister?j.keepDefaultValues?Io(n):{}:Io(de),f.array.next({values:{...de}}),f.values.next({values:{...de}})}s={mount:j.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!j.keepIsValid||!!j.keepDirtyValues,i.watch=!!t.shouldUnregister,f.state.next({submitCount:j.keepSubmitCount?r.submitCount:0,isDirty:fe?!1:j.keepDirty?r.isDirty:!!(j.keepDefaultValues&&!jl(U,n)),isSubmitted:j.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:fe?{}:j.keepDirtyValues?j.keepDefaultValues&&o?$h(n,o):r.dirtyFields:j.keepDefaultValues&&U?$h(n,U):j.keepDirty?r.dirtyFields:{},touchedFields:j.keepTouched?r.touchedFields:{},errors:j.keepErrors?r.errors:{},isSubmitSuccessful:j.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},bt=(U,j)=>Ve(Ui(U)?U(o):U,j);return{control:{register:Oe,unregister:yt,getFieldState:He,handleSubmit:Xe,setError:Ye,_executeSchema:N,_getWatch:D,_getDirty:z,_updateValid:w,_removeUnmounted:ne,_updateFieldArray:v,_updateDisabledField:ze,_getFieldArray:$,_reset:Ve,_resetDefaultValues:()=>Ui(t.defaultValues)&&t.defaultValues().then(U=>{bt(U,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_disableForm:ct,_subjects:f,_proxyFormState:d,_setErrors:E,get _fields(){return a},get _formValues(){return o},get _state(){return i},set _state(U){i=U},get _defaultValues(){return n},get _names(){return s},set _names(U){s=U},get _formState(){return r},set _formState(U){r=U},get _options(){return t},set _options(U){t={...t,...U}}},trigger:C,register:Oe,handleSubmit:Xe,watch:ut,setValue:Q,getValues:_e,reset:bt,resetField:Pt,clearErrors:M,unregister:yt,setError:Ye,setFocus:(U,j={})=>{let W=Me(a,U),ye=W&&W._f;if(ye){let fe=ye.refs?ye.refs[0]:ye.ref;fe.focus&&(fe.focus(),j.shouldSelect&&Ui(fe.select)&&fe.select())}},getFieldState:He}}function s5(e={}){let t=Yn.default.useRef(void 0),r=Yn.default.useRef(void 0),[a,n]=Yn.default.useState({isDirty:!1,isValidating:!1,isLoading:Ui(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ui(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Fte(e),formState:a});let o=t.current.control;return o._options=e,kte({subject:o._subjects.state,next:i=>{_te(i,o._proxyFormState,o._updateFormState,!0)&&n({...o._formState})}}),Yn.default.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Yn.default.useEffect(()=>{if(o._proxyFormState.isDirty){let i=o._getDirty();i!==a.isDirty&&o._subjects.state.next({isDirty:i})}},[o,a.isDirty]),Yn.default.useEffect(()=>{e.values&&!jl(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,n(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),Yn.default.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Yn.default.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Yn.default.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=Ite(a,o),t.current}var l5=(e,t,r)=>{if(e&&"reportValidity"in e){let a=Me(r,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},y_=(e,t)=>{for(let r in t.fields){let a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?l5(a.ref,r,e):a.refs&&a.refs.forEach(n=>l5(n,r,e))}},u5=(e,t)=>{t.shouldUseNativeValidation&&y_(e,t);let r={};for(let a in e){let n=Me(t.fields,a),o=Object.assign(e[a]||{},{ref:n&&n.ref});if(Bte(t.names||Object.keys(e),a)){let i=Object.assign({},Me(r,a));Gt(i,"root",o),Gt(r,a,i)}else Gt(r,a,o)}return r},Bte=(e,t)=>e.some(r=>r.startsWith(t+"."));var $te=function(e,t){for(var r={};e.length;){var a=e[0],n=a.code,o=a.message,i=a.path.join(".");if(!r[i])if("unionErrors"in a){var s=a.unionErrors[0].errors[0];r[i]={message:s.message,type:s.code}}else r[i]={message:o,type:n};if("unionErrors"in a&&a.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=r[i].types,u=l&&l[a.code];r[i]=m_(i,t,r,n,u?[].concat(u,a.message):a.message)}e.shift()}return r},c5=function(e,t,r){return r===void 0&&(r={}),function(a,n,o){try{return Promise.resolve(function(i,s){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](a,t)).then(function(u){return o.shouldUseNativeValidation&&y_({},o),{errors:{},values:r.raw?a:u}})}catch(u){return s(u)}return l&&l.then?l.then(void 0,s):l}(0,function(i){if(function(s){return Array.isArray(s?.errors)}(i))return{values:{},errors:u5($te(i.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw i}))}catch(i){return Promise.reject(i)}}};c();c();var Dv=O(re());c();var d5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jte=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase()),b_=e=>{let t=jte(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ov=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim(),f5=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};c();var qh=O(re());c();var p5={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 m5=(0,qh.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},l)=>(0,qh.createElement)("svg",{ref:l,...p5,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Ov("lucide",n),...!o&&!f5(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,d])=>(0,qh.createElement)(u,d)),...Array.isArray(o)?o:[o]]));var Ie=(e,t)=>{let r=(0,Dv.forwardRef)(({className:a,...n},o)=>(0,Dv.createElement)(m5,{ref:o,iconNode:t,className:Ov(`lucide-${d5(b_(e))}`,`lucide-${e}`,a),...n}));return r.displayName=b_(e),r};c();var Hte=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Gh=Ie("arrow-right-left",Hte);c();var Vte=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Zh=Ie("arrow-up-right",Vte);c();var qte=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Es=Ie("bot",qte);c();var Gte=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],Wh=Ie("brain",Gte);c();var Zte=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Hl=Ie("chart-column",Zte);c();var Wte=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kn=Ie("check",Wte);c();var Yte=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gr=Ie("chevron-down",Yte);c();var Kte=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_o=Ie("circle-alert",Kte);c();var Xte=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ln=Ie("circle-check",Xte);c();var Jte=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],Vl=Ie("circle-user",Jte);c();var Qte=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ql=Ie("circle-x",Qte);c();var ere=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],_c=Ie("copy",ere);c();var tre=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Nf=Ie("cpu",tre);c();var rre=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Yh=Ie("database",rre);c();var are=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Gl=Ie("external-link",are);c();var nre=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],Kh=Ie("file-code",nre);c();var ore=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],Rf=Ie("file-spreadsheet",ore);c();var ire=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Fi=Ie("file-text",ire);c();var sre=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Xh=Ie("file",sre);c();var lre=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Jh=Ie("film",lre);c();var ure=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Zl=Ie("globe",ure);c();var cre=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Ss=Ie("image",cre);c();var dre=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ht=Ie("loader-circle",dre);c();var fre=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Qh=Ie("loader",fre);c();var pre=[["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"}]],eg=Ie("mic",pre);c();var mre=[["path",{d:"M5 12h14",key:"1ays0h"}]],Of=Ie("minus",mre);c();var hre=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],tg=Ie("music",hre);c();var gre=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],kc=Ie("paperclip",gre);c();var yre=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rg=Ie("search",yre);c();var bre=[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]],Wl=Ie("sliders-vertical",bre);c();var vre=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],ko=Ie("sparkles",vre);c();var xre=[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]],Yl=Ie("square-arrow-out-up-right",xre);c();var wre=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Kl=Ie("square-check-big",wre);c();var Tre=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Df=Ie("square",Tre);c();var Ere=[["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"}]],ag=Ie("thumbs-down",Ere);c();var Sre=[["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"}]],ng=Ie("thumbs-up",Sre);c();var Ire=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Xl=Ie("triangle-alert",Ire);c();var _re=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],og=Ie("user-plus",_re);c();var kre=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ig=Ie("user",kre);c();var Cre=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Is=Ie("x",Cre);c();var Are=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],_s=Ie("zap",Are);var rn=O(re());c();var S={};nn(S,{$brand:()=>x_,$input:()=>RC,$output:()=>NC,NEVER:()=>v_,TimePrecision:()=>MC,ZodAny:()=>O6,ZodArray:()=>U6,ZodBase64:()=>jA,ZodBase64URL:()=>HA,ZodBigInt:()=>Hg,ZodBigIntFormat:()=>ZA,ZodBoolean:()=>jg,ZodCIDRv4:()=>BA,ZodCIDRv6:()=>$A,ZodCUID:()=>OA,ZodCUID2:()=>DA,ZodCatch:()=>Q6,ZodCustom:()=>Mx,ZodCustomStringFormat:()=>GA,ZodDate:()=>Rx,ZodDefault:()=>Z6,ZodDiscriminatedUnion:()=>z6,ZodE164:()=>VA,ZodEmail:()=>AA,ZodEmoji:()=>NA,ZodEnum:()=>Fg,ZodError:()=>Tne,ZodFile:()=>q6,ZodFirstPartyTypeKind:()=>et,ZodGUID:()=>kx,ZodIPv4:()=>zA,ZodIPv6:()=>FA,ZodISODate:()=>Ex,ZodISODateTime:()=>Tx,ZodISODuration:()=>Ix,ZodISOTime:()=>Sx,ZodIntersection:()=>F6,ZodIssueCode:()=>woe,ZodJWT:()=>qA,ZodKSUID:()=>UA,ZodLazy:()=>oU,ZodLiteral:()=>V6,ZodMap:()=>j6,ZodNaN:()=>tU,ZodNanoID:()=>RA,ZodNever:()=>M6,ZodNonOptional:()=>e2,ZodNull:()=>R6,ZodNullable:()=>G6,ZodNumber:()=>$g,ZodNumberFormat:()=>Zf,ZodObject:()=>Ox,ZodOptional:()=>QA,ZodPipe:()=>t2,ZodPrefault:()=>Y6,ZodPromise:()=>iU,ZodReadonly:()=>rU,ZodRealError:()=>Gf,ZodRecord:()=>KA,ZodSet:()=>H6,ZodString:()=>Bg,ZodStringFormat:()=>ur,ZodSuccess:()=>J6,ZodSymbol:()=>L6,ZodTemplateLiteral:()=>nU,ZodTransform:()=>XA,ZodTuple:()=>$6,ZodType:()=>xt,ZodULID:()=>MA,ZodURL:()=>LA,ZodUUID:()=>Rs,ZodUndefined:()=>N6,ZodUnion:()=>WA,ZodUnknown:()=>D6,ZodVoid:()=>P6,ZodXID:()=>PA,_ZodString:()=>CA,_default:()=>W6,any:()=>roe,array:()=>Pa,base64:()=>Lx,base64url:()=>jne,bigint:()=>Xne,boolean:()=>kt,catch:()=>eU,check:()=>yoe,cidrv4:()=>Bne,cidrv6:()=>$ne,clone:()=>In,coerce:()=>r2,config:()=>na,core:()=>Ns,cuid:()=>One,cuid2:()=>Dne,custom:()=>Vg,date:()=>noe,discriminatedUnion:()=>YA,e164:()=>Hne,email:()=>Sne,emoji:()=>Nne,endsWith:()=>Ng,enum:()=>Fc,file:()=>doe,flattenError:()=>gg,float32:()=>Zne,float64:()=>Wne,formatError:()=>yg,function:()=>vA,getErrorMap:()=>Eoe,globalRegistry:()=>ji,gt:()=>As,gte:()=>_n,guid:()=>Ine,hostname:()=>Gne,includes:()=>Ag,instanceof:()=>Bc,int:()=>kA,int32:()=>Yne,int64:()=>Jne,intersection:()=>B6,ipv4:()=>zne,ipv6:()=>Fne,iso:()=>_x,json:()=>voe,jwt:()=>Vne,keyof:()=>ooe,ksuid:()=>Une,lazy:()=>Dx,length:()=>qf,literal:()=>Ce,locales:()=>Eg,looseObject:()=>tu,lowercase:()=>kg,lt:()=>Cs,lte:()=>Co,map:()=>loe,maxLength:()=>Vf,maxSize:()=>Hf,mime:()=>Rg,minLength:()=>eu,minSize:()=>Mc,multipleOf:()=>Dc,nan:()=>moe,nanoid:()=>Rne,nativeEnum:()=>coe,negative:()=>uA,never:()=>cr,nonnegative:()=>dA,nonoptional:()=>X6,nonpositive:()=>cA,normalize:()=>Og,null:()=>Nx,nullable:()=>Cx,nullish:()=>foe,number:()=>Os,object:()=>Pe,optional:()=>_r,overwrite:()=>Ls,parse:()=>SA,parseAsync:()=>IA,partialRecord:()=>soe,pipe:()=>Ax,positive:()=>lA,prefault:()=>K6,preprocess:()=>xoe,prettifyError:()=>N_,promise:()=>goe,property:()=>fA,readonly:()=>aU,record:()=>zc,refine:()=>sU,regex:()=>_g,regexes:()=>ks,registry:()=>Jv,safeParse:()=>_A,safeParseAsync:()=>Uc,set:()=>uoe,setErrorMap:()=>Toe,size:()=>Ig,startsWith:()=>Lg,strictObject:()=>br,string:()=>J,stringFormat:()=>qne,stringbool:()=>boe,success:()=>poe,superRefine:()=>lU,symbol:()=>eoe,templateLiteral:()=>hoe,toJSONSchema:()=>Pc,toLowerCase:()=>Mg,toUpperCase:()=>Pg,transform:()=>JA,treeifyError:()=>L_,trim:()=>Dg,tuple:()=>ioe,uint32:()=>Kne,uint64:()=>Qne,ulid:()=>Mne,undefined:()=>toe,union:()=>Zt,unknown:()=>Ut,uppercase:()=>Cg,url:()=>Lne,uuid:()=>_ne,uuidv4:()=>kne,uuidv6:()=>Cne,uuidv7:()=>Ane,void:()=>aoe,xid:()=>Pne});c();var Ns={};nn(Ns,{$ZodAny:()=>oC,$ZodArray:()=>xg,$ZodAsyncError:()=>Bi,$ZodBase64:()=>Yk,$ZodBase64URL:()=>Kk,$ZodBigInt:()=>Yv,$ZodBigIntFormat:()=>tC,$ZodBoolean:()=>vg,$ZodCIDRv4:()=>Gk,$ZodCIDRv6:()=>Zk,$ZodCUID:()=>Mk,$ZodCUID2:()=>Pk,$ZodCatch:()=>SC,$ZodCheck:()=>yr,$ZodCheckBigIntFormat:()=>dk,$ZodCheckEndsWith:()=>Ek,$ZodCheckGreaterThan:()=>qv,$ZodCheckIncludes:()=>wk,$ZodCheckLengthEquals:()=>yk,$ZodCheckLessThan:()=>Vv,$ZodCheckLowerCase:()=>vk,$ZodCheckMaxLength:()=>hk,$ZodCheckMaxSize:()=>fk,$ZodCheckMimeType:()=>Ik,$ZodCheckMinLength:()=>gk,$ZodCheckMinSize:()=>pk,$ZodCheckMultipleOf:()=>uk,$ZodCheckNumberFormat:()=>ck,$ZodCheckOverwrite:()=>_k,$ZodCheckProperty:()=>Sk,$ZodCheckRegex:()=>bk,$ZodCheckSizeEquals:()=>mk,$ZodCheckStartsWith:()=>Tk,$ZodCheckStringFormat:()=>Ff,$ZodCheckUpperCase:()=>xk,$ZodCustom:()=>LC,$ZodCustomStringFormat:()=>Qk,$ZodDate:()=>lC,$ZodDefault:()=>xC,$ZodDiscriminatedUnion:()=>cC,$ZodE164:()=>Xk,$ZodEmail:()=>Nk,$ZodEmoji:()=>Ok,$ZodEnum:()=>hC,$ZodError:()=>hg,$ZodFile:()=>yC,$ZodFunction:()=>wx,$ZodGUID:()=>Ak,$ZodIPv4:()=>Vk,$ZodIPv6:()=>qk,$ZodISODate:()=>$k,$ZodISODateTime:()=>Bk,$ZodISODuration:()=>Hk,$ZodISOTime:()=>jk,$ZodIntersection:()=>dC,$ZodJWT:()=>Jk,$ZodKSUID:()=>Fk,$ZodLazy:()=>AC,$ZodLiteral:()=>gC,$ZodMap:()=>pC,$ZodNaN:()=>IC,$ZodNanoID:()=>Dk,$ZodNever:()=>iC,$ZodNonOptional:()=>TC,$ZodNull:()=>nC,$ZodNullable:()=>vC,$ZodNumber:()=>Wv,$ZodNumberFormat:()=>eC,$ZodObject:()=>uC,$ZodOptional:()=>bC,$ZodPipe:()=>Tg,$ZodPrefault:()=>wC,$ZodPromise:()=>CC,$ZodReadonly:()=>_C,$ZodRealError:()=>zf,$ZodRecord:()=>fC,$ZodRegistry:()=>$f,$ZodSet:()=>mC,$ZodString:()=>Rc,$ZodStringFormat:()=>ir,$ZodSuccess:()=>EC,$ZodSymbol:()=>rC,$ZodTemplateLiteral:()=>kC,$ZodTransform:()=>wg,$ZodTuple:()=>Oc,$ZodType:()=>ot,$ZodULID:()=>Uk,$ZodURL:()=>Rk,$ZodUUID:()=>Lk,$ZodUndefined:()=>aC,$ZodUnion:()=>Kv,$ZodUnknown:()=>Bf,$ZodVoid:()=>sC,$ZodXID:()=>zk,$brand:()=>x_,$constructor:()=>q,$input:()=>RC,$output:()=>NC,Doc:()=>bg,JSONSchema:()=>k6,JSONSchemaGenerator:()=>zg,NEVER:()=>v_,TimePrecision:()=>MC,_any:()=>rA,_array:()=>Ug,_base64:()=>gx,_base64url:()=>yx,_bigint:()=>YC,_boolean:()=>ZC,_catch:()=>hne,_check:()=>_6,_cidrv4:()=>mx,_cidrv6:()=>hx,_coercedBigint:()=>KC,_coercedBoolean:()=>WC,_coercedDate:()=>iA,_coercedNumber:()=>$C,_coercedString:()=>DC,_cuid:()=>sx,_cuid2:()=>lx,_custom:()=>hA,_date:()=>oA,_default:()=>fne,_discriminatedUnion:()=>tne,_e164:()=>bx,_email:()=>Qv,_emoji:()=>ox,_endsWith:()=>Ng,_enum:()=>ine,_file:()=>mA,_float32:()=>HC,_float64:()=>VC,_gt:()=>As,_gte:()=>_n,_guid:()=>Sg,_includes:()=>Ag,_int:()=>jC,_int32:()=>qC,_int64:()=>XC,_intersection:()=>rne,_ipv4:()=>fx,_ipv6:()=>px,_isoDate:()=>UC,_isoDateTime:()=>PC,_isoDuration:()=>FC,_isoTime:()=>zC,_jwt:()=>vx,_ksuid:()=>dx,_lazy:()=>vne,_length:()=>qf,_literal:()=>lne,_lowercase:()=>kg,_lt:()=>Cs,_lte:()=>Co,_map:()=>nne,_max:()=>Co,_maxLength:()=>Vf,_maxSize:()=>Hf,_mime:()=>Rg,_min:()=>_n,_minLength:()=>eu,_minSize:()=>Mc,_multipleOf:()=>Dc,_nan:()=>sA,_nanoid:()=>ix,_nativeEnum:()=>sne,_negative:()=>uA,_never:()=>aA,_nonnegative:()=>dA,_nonoptional:()=>pne,_nonpositive:()=>cA,_normalize:()=>Og,_null:()=>tA,_nullable:()=>dne,_number:()=>BC,_optional:()=>cne,_overwrite:()=>Ls,_parse:()=>Uv,_parseAsync:()=>Fv,_pipe:()=>gne,_positive:()=>lA,_promise:()=>xne,_property:()=>fA,_readonly:()=>yne,_record:()=>ane,_refine:()=>gA,_regex:()=>_g,_safeParse:()=>$v,_safeParseAsync:()=>jv,_set:()=>one,_size:()=>Ig,_startsWith:()=>Lg,_string:()=>OC,_stringFormat:()=>xx,_stringbool:()=>bA,_success:()=>mne,_superRefine:()=>yA,_symbol:()=>QC,_templateLiteral:()=>bne,_toLowerCase:()=>Mg,_toUpperCase:()=>Pg,_transform:()=>une,_trim:()=>Dg,_tuple:()=>pA,_uint32:()=>GC,_uint64:()=>JC,_ulid:()=>ux,_undefined:()=>eA,_union:()=>ene,_unknown:()=>jf,_uppercase:()=>Cg,_url:()=>nx,_uuid:()=>ex,_uuidv4:()=>tx,_uuidv6:()=>rx,_uuidv7:()=>ax,_void:()=>nA,_xid:()=>cx,clone:()=>In,config:()=>na,flattenError:()=>gg,formatError:()=>yg,function:()=>vA,globalConfig:()=>sg,globalRegistry:()=>ji,isValidBase64:()=>Wk,isValidBase64URL:()=>D5,isValidJWT:()=>M5,locales:()=>Eg,parse:()=>zv,parseAsync:()=>Bv,prettifyError:()=>N_,regexes:()=>ks,registry:()=>Jv,safeParse:()=>R_,safeParseAsync:()=>O_,toDotPath:()=>y5,toJSONSchema:()=>Pc,treeifyError:()=>L_,util:()=>xe,version:()=>kk});c();c();var v_=Object.freeze({status:"aborted"});function q(e,t,r){function a(s,l){var u;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),t(s,l);for(let d in i.prototype)d in s||Object.defineProperty(s,d,{value:i.prototype[d].bind(s)});s._zod.constr=i,s._zod.def=l}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function i(s){var l;let u=r?.Parent?new o:this;a(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(i,"init",{value:a}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var x_=Symbol("zod_brand"),Bi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},sg={};function na(e){return e&&Object.assign(sg,e),sg}c();c();var xe={};nn(xe,{BIGINT_FORMAT_RANGES:()=>A_,Class:()=>T_,NUMBER_FORMAT_RANGES:()=>C_,aborted:()=>Lc,allowsEval:()=>S_,assert:()=>Dre,assertEqual:()=>Lre,assertIs:()=>Rre,assertNever:()=>Ore,assertNotEqual:()=>Nre,assignProp:()=>Cc,cached:()=>cg,captureStackTrace:()=>Pv,cleanEnum:()=>Yre,cleanRegex:()=>dg,clone:()=>In,cloneDef:()=>Pre,createTransparentProxy:()=>jre,defineLazy:()=>Ft,esc:()=>Mv,escapeRegex:()=>$i,extend:()=>qre,finalizeIssue:()=>Jn,floatSafeRemainder:()=>E_,getElementAtPath:()=>Ure,getEnumValues:()=>ug,getLengthableOrigin:()=>mg,getParsedType:()=>$re,getSizableOrigin:()=>pg,isObject:()=>Mf,isPlainObject:()=>Ac,issue:()=>Uf,joinValues:()=>ee,jsonStringifyReplacer:()=>Pf,merge:()=>Gre,mergeDefs:()=>Ql,normalizeParams:()=>ve,nullish:()=>Jl,numKeys:()=>Bre,objectClone:()=>Mre,omit:()=>Vre,optionalKeys:()=>k_,partial:()=>Zre,pick:()=>Hre,prefixIssues:()=>Xn,primitiveTypes:()=>__,promiseAllObject:()=>zre,propertyKeyTypes:()=>fg,randomString:()=>Fre,required:()=>Wre,shallowClone:()=>I_,stringifyPrimitive:()=>Te,unwrapMessage:()=>lg});c();function Lre(e){return e}function Nre(e){return e}function Rre(e){}function Ore(e){throw new Error}function Dre(e){}function ug(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,n])=>t.indexOf(+a)===-1).map(([a,n])=>n)}function ee(e,t="|"){return e.map(r=>Te(r)).join(t)}function Pf(e,t){return typeof t=="bigint"?t.toString():t}function cg(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Jl(e){return e==null}function dg(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function E_(e,t){let r=(e.toString().split(".")[1]||"").length,a=t.toString(),n=(a.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var h5=Symbol("evaluating");function Ft(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==h5)return a===void 0&&(a=h5,a=r()),a},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Mre(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Cc(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ql(...e){let t={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function Pre(e){return Ql(e._zod.def)}function Ure(e,t){return t?t.reduce((r,a)=>r?.[a],e):e}function zre(e){let t=Object.keys(e),r=t.map(a=>e[a]);return Promise.all(r).then(a=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=a[o];return n})}function Fre(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let a=0;a<e;a++)r+=t[Math.floor(Math.random()*t.length)];return r}function Mv(e){return JSON.stringify(e)}var Pv="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Mf(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var S_=cg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ac(e){if(Mf(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;return!(Mf(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function I_(e){return Ac(e)?{...e}:e}function Bre(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var $re=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}`)}},fg=new Set(["string","number","symbol"]),__=new Set(["string","number","bigint","boolean","symbol","undefined"]);function $i(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function In(e,t,r){let a=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(a._zod.parent=e),a}function ve(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 jre(e){let t;return new Proxy({},{get(r,a,n){return t??(t=e()),Reflect.get(t,a,n)},set(r,a,n,o){return t??(t=e()),Reflect.set(t,a,n,o)},has(r,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(r,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(r,a,n){return t??(t=e()),Reflect.defineProperty(t,a,n)}})}function Te(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function k_(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var C_={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]},A_={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Hre(e,t){let r=e._zod.def,a=Ql(e._zod.def,{get shape(){let n={};for(let o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(n[o]=r.shape[o])}return Cc(this,"shape",n),n},checks:[]});return In(e,a)}function Vre(e,t){let r=e._zod.def,a=Ql(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete n[o]}return Cc(this,"shape",n),n},checks:[]});return In(e,a)}function qre(e,t){if(!Ac(t))throw new Error("Invalid input to extend: expected a plain object");let r=Ql(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return Cc(this,"shape",a),a},checks:[]});return In(e,r)}function Gre(e,t){let r=Ql(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return Cc(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return In(e,r)}function Zre(e,t,r){let a=Ql(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in n))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=e?new e({type:"optional",innerType:n[i]}):n[i])}else for(let i in n)o[i]=e?new e({type:"optional",innerType:n[i]}):n[i];return Cc(this,"shape",o),o},checks:[]});return In(t,a)}function Wre(e,t,r){let a=Ql(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new e({type:"nonoptional",innerType:n[i]}))}else for(let i in n)o[i]=new e({type:"nonoptional",innerType:n[i]});return Cc(this,"shape",o),o},checks:[]});return In(t,a)}function Lc(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Xn(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function lg(e){return typeof e=="string"?e:e?.message}function Jn(e,t,r){let a={...e,path:e.path??[]};if(!e.message){let n=lg(e.inst?._zod.def?.error?.(e))??lg(t?.error?.(e))??lg(r.customError?.(e))??lg(r.localeError?.(e))??"Invalid input";a.message=n}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function pg(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function mg(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Uf(...e){let[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}function Yre(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var T_=class{constructor(...t){}};var g5=(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,Pf,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},hg=q("$ZodError",g5),zf=q("$ZodError",g5,{Parent:Error});function gg(e,t=r=>r.message){let r={},a=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):a.push(t(n));return{formErrors:a,fieldErrors:r}}function yg(e,t){let r=t||function(o){return o.message},a={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)a._errors.push(r(i));else{let s=a,l=0;for(;l<i.path.length;){let u=i.path[l];l===i.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(r(i))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return n(e),a}function L_(e,t){let r=t||function(o){return o.message},a={errors:[]},n=(o,i=[])=>{var s,l;for(let u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(d=>n({issues:d},u.path));else if(u.code==="invalid_key")n({issues:u.issues},u.path);else if(u.code==="invalid_element")n({issues:u.issues},u.path);else{let d=[...i,...u.path];if(d.length===0){a.errors.push(r(u));continue}let f=a,p=0;for(;p<d.length;){let m=d[p],g=p===d.length-1;typeof m=="string"?(f.properties??(f.properties={}),(s=f.properties)[m]??(s[m]={errors:[]}),f=f.properties[m]):(f.items??(f.items=[]),(l=f.items)[m]??(l[m]={errors:[]}),f=f.items[m]),g&&f.errors.push(r(u)),p++}}};return n(e),a}function y5(e){let t=[],r=e.map(a=>typeof a=="object"?a.key:a);for(let a of r)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function N_(e){let t=[],r=[...e.issues].sort((a,n)=>(a.path??[]).length-(n.path??[]).length);for(let a of r)t.push(`\u2716 ${a.message}`),a.path?.length&&t.push(` \u2192 at ${y5(a.path)}`);return t.join(`
|
|
32
|
+
`)}var Uv=e=>(t,r,a,n)=>{let o=a?Object.assign(a,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Bi;if(i.issues.length){let s=new(n?.Err??e)(i.issues.map(l=>Jn(l,o,na())));throw Pv(s,n?.callee),s}return i.value},zv=Uv(zf),Fv=e=>async(t,r,a,n)=>{let o=a?Object.assign(a,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(n?.Err??e)(i.issues.map(l=>Jn(l,o,na())));throw Pv(s,n?.callee),s}return i.value},Bv=Fv(zf),$v=e=>(t,r,a)=>{let n=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Bi;return o.issues.length?{success:!1,error:new(e??hg)(o.issues.map(i=>Jn(i,n,na())))}:{success:!0,data:o.value}},R_=$v(zf),jv=e=>async(t,r,a)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>Jn(i,n,na())))}:{success:!0,data:o.value}},O_=jv(zf);c();c();var ks={};nn(ks,{base64:()=>W_,base64url:()=>Hv,bigint:()=>tk,boolean:()=>nk,browserEmail:()=>oae,cidrv4:()=>G_,cidrv6:()=>Z_,cuid:()=>D_,cuid2:()=>M_,date:()=>X_,datetime:()=>Q_,domain:()=>sae,duration:()=>B_,e164:()=>K_,email:()=>j_,emoji:()=>H_,extendedDuration:()=>Xre,guid:()=>$_,hostname:()=>Y_,html5Email:()=>tae,idnEmail:()=>nae,integer:()=>rk,ipv4:()=>V_,ipv6:()=>q_,ksuid:()=>z_,lowercase:()=>sk,nanoid:()=>F_,null:()=>ok,number:()=>ak,rfc5322Email:()=>rae,string:()=>ek,time:()=>J_,ulid:()=>P_,undefined:()=>ik,unicodeEmail:()=>aae,uppercase:()=>lk,uuid:()=>Nc,uuid4:()=>Jre,uuid6:()=>Qre,uuid7:()=>eae,xid:()=>U_});c();var D_=/^[cC][^\s-]{8,}$/,M_=/^[0-9a-z]+$/,P_=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,U_=/^[0-9a-vA-V]{20}$/,z_=/^[A-Za-z0-9]{27}$/,F_=/^[a-zA-Z0-9_-]{21}$/,B_=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Xre=/^[-+]?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)?)??$/,$_=/^([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})$/,Nc=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)$/,Jre=Nc(4),Qre=Nc(6),eae=Nc(7),j_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tae=/^[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])?)*$/,rae=/^(([^<>()\[\]\\.,;:\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,}))$/,aae=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,nae=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,oae=/^[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])?)*$/,iae="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function H_(){return new RegExp(iae,"u")}var V_=/^(?:(?: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])$/,q_=/^(([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})$/,G_=/^((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])$/,Z_=/^(([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])$/,W_=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hv=/^[A-Za-z0-9_-]*$/,Y_=/^(?=.{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])?)*\.?$/,sae=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,K_=/^\+(?:[0-9]){6,14}[0-9]$/,b5="(?:(?:\\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])))",X_=new RegExp(`^${b5}$`);function v5(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 J_(e){return new RegExp(`^${v5(e)}$`)}function Q_(e){let t=v5({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${r.join("|")})`;return new RegExp(`^${b5}T(?:${a})$`)}var ek=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},tk=/^\d+n?$/,rk=/^\d+$/,ak=/^-?\d+(?:\.\d+)?/i,nk=/true|false/i,ok=/null/i;var ik=/undefined/i;var sk=/^[^A-Z]*$/,lk=/^[^a-z]*$/;var yr=q("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),w5={number:"number",bigint:"bigint",object:"date"},Vv=q("$ZodCheckLessThan",(e,t)=>{yr.init(e,t);let r=w5[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:r,code:"too_big",maximum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qv=q("$ZodCheckGreaterThan",(e,t)=>{yr.init(e,t);let r=w5[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),uk=q("$ZodCheckMultipleOf",(e,t)=>{yr.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):E_(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ck=q("$ZodCheckNumberFormat",(e,t)=>{yr.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),a=r?"int":"number",[n,o]=C_[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=rk)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,continue:!t.abort});return}}s<n&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),dk=q("$ZodCheckBigIntFormat",(e,t)=>{yr.init(e,t);let[r,a]=A_[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=a}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>a&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inst:e})}}),fk=q("$ZodCheckMaxSize",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Jl(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;n.size<=t.maximum||a.issues.push({origin:pg(n),code:"too_big",maximum:t.maximum,input:n,inst:e,continue:!t.abort})}}),pk=q("$ZodCheckMinSize",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Jl(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;n.size>=t.minimum||a.issues.push({origin:pg(n),code:"too_small",minimum:t.minimum,input:n,inst:e,continue:!t.abort})}}),mk=q("$ZodCheckSizeEquals",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Jl(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=a=>{let n=a.value,o=n.size;if(o===t.size)return;let i=o>t.size;a.issues.push({origin:pg(n),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),hk=q("$ZodCheckMaxLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Jl(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;if(n.length<=t.maximum)return;let i=mg(n);a.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),gk=q("$ZodCheckMinLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Jl(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;if(n.length>=t.minimum)return;let i=mg(n);a.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),yk=q("$ZodCheckLengthEquals",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Jl(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=a=>{let n=a.value,o=n.length;if(o===t.length)return;let i=mg(n),s=o>t.length;a.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Ff=q("$ZodCheckStringFormat",(e,t)=>{var r,a;yr.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),bk=q("$ZodCheckRegex",(e,t)=>{Ff.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),vk=q("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=sk),Ff.init(e,t)}),xk=q("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=lk),Ff.init(e,t)}),wk=q("$ZodCheckIncludes",(e,t)=>{yr.init(e,t);let r=$i(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Tk=q("$ZodCheckStartsWith",(e,t)=>{yr.init(e,t);let r=new RegExp(`^${$i(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),Ek=q("$ZodCheckEndsWith",(e,t)=>{yr.init(e,t);let r=new RegExp(`.*${$i(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function x5(e,t,r){e.issues.length&&t.issues.push(...Xn(r,e.issues))}var Sk=q("$ZodCheckProperty",(e,t)=>{yr.init(e,t),e._zod.check=r=>{let a=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(n=>x5(n,r,t.property));x5(a,r,t.property)}}),Ik=q("$ZodCheckMimeType",(e,t)=>{yr.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),_k=q("$ZodCheckOverwrite",(e,t)=>{yr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});c();var bg=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 a=t.split(`
|
|
33
|
+
`).filter(i=>i),n=Math.min(...a.map(i=>i.length-i.trimStart().length)),o=a.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
|
|
34
|
+
`))}};c();var kk={major:4,minor:0,patch:17};var ot=q("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kk;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let n of a)for(let o of n._zod.onattach)o(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(o,i,s)=>{let l=Lc(o),u;for(let d of i){if(d._zod.def.when){if(!d._zod.def.when(o))continue}else if(l)continue;let f=o.issues.length,p=d._zod.check(o);if(p instanceof Promise&&s?.async===!1)throw new Bi;if(u||p instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await p,o.issues.length!==f&&(l||(l=Lc(o,f)))});else{if(o.issues.length===f)continue;l||(l=Lc(o,f))}}return u?u.then(()=>o):o};e._zod.run=(o,i)=>{let s=e._zod.parse(o,i);if(s instanceof Promise){if(i.async===!1)throw new Bi;return s.then(l=>n(l,a,i))}return n(s,a,i)}}e["~standard"]={validate:n=>{try{let o=R_(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return O_(e,n).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),Rc=q("$ZodString",(e,t)=>{ot.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ek(e._zod.bag),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ir=q("$ZodStringFormat",(e,t)=>{Ff.init(e,t),Rc.init(e,t)}),Ak=q("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=$_),ir.init(e,t)}),Lk=q("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Nc(a))}else t.pattern??(t.pattern=Nc());ir.init(e,t)}),Nk=q("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=j_),ir.init(e,t)}),Rk=q("$ZodURL",(e,t)=>{ir.init(e,t),e._zod.check=r=>{try{let a=r.value.trim(),n=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Y_.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Ok=q("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=H_()),ir.init(e,t)}),Dk=q("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=F_),ir.init(e,t)}),Mk=q("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=D_),ir.init(e,t)}),Pk=q("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=M_),ir.init(e,t)}),Uk=q("$ZodULID",(e,t)=>{t.pattern??(t.pattern=P_),ir.init(e,t)}),zk=q("$ZodXID",(e,t)=>{t.pattern??(t.pattern=U_),ir.init(e,t)}),Fk=q("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=z_),ir.init(e,t)}),Bk=q("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Q_(t)),ir.init(e,t)}),$k=q("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=X_),ir.init(e,t)}),jk=q("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=J_(t)),ir.init(e,t)}),Hk=q("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=B_),ir.init(e,t)}),Vk=q("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=V_),ir.init(e,t),e._zod.onattach.push(r=>{let a=r._zod.bag;a.format="ipv4"})}),qk=q("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=q_),ir.init(e,t),e._zod.onattach.push(r=>{let a=r._zod.bag;a.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Gk=q("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=G_),ir.init(e,t)}),Zk=q("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Z_),ir.init(e,t),e._zod.check=r=>{let[a,n]=r.value.split("/");try{if(!n)throw new Error;let o=Number(n);if(`${o}`!==n)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${a}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Wk(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Yk=q("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=W_),ir.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{Wk(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function D5(e){if(!Hv.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Wk(r)}var Kk=q("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Hv),ir.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{D5(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Xk=q("$ZodE164",(e,t)=>{t.pattern??(t.pattern=K_),ir.init(e,t)});function M5(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let n=JSON.parse(atob(a));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Jk=q("$ZodJWT",(e,t)=>{ir.init(e,t),e._zod.check=r=>{M5(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Qk=q("$ZodCustomStringFormat",(e,t)=>{ir.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Wv=q("$ZodNumber",(e,t)=>{ot.init(e,t),e._zod.pattern=e._zod.bag.pattern??ak,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),eC=q("$ZodNumber",(e,t)=>{ck.init(e,t),Wv.init(e,t)}),vg=q("$ZodBoolean",(e,t)=>{ot.init(e,t),e._zod.pattern=nk,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Yv=q("$ZodBigInt",(e,t)=>{ot.init(e,t),e._zod.pattern=tk,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),tC=q("$ZodBigInt",(e,t)=>{dk.init(e,t),Yv.init(e,t)}),rC=q("$ZodSymbol",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),aC=q("$ZodUndefined",(e,t)=>{ot.init(e,t),e._zod.pattern=ik,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),nC=q("$ZodNull",(e,t)=>{ot.init(e,t),e._zod.pattern=ok,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),oC=q("$ZodAny",(e,t)=>{ot.init(e,t),e._zod.parse=r=>r}),Bf=q("$ZodUnknown",(e,t)=>{ot.init(e,t),e._zod.parse=r=>r}),iC=q("$ZodNever",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),sC=q("$ZodVoid",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),lC=q("$ZodDate",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function E5(e,t,r){e.issues.length&&t.issues.push(...Xn(r,e.issues)),t.value[r]=e.value}var xg=q("$ZodArray",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let i=0;i<n.length;i++){let s=n[i],l=t.element._zod.run({value:s,issues:[]},a);l instanceof Promise?o.push(l.then(u=>E5(u,r,i))):E5(l,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function Gv(e,t,r,a){e.issues.length&&t.issues.push(...Xn(r,e.issues)),e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}var uC=q("$ZodObject",(e,t)=>{ot.init(e,t);let r=cg(()=>{let f=Object.keys(t.shape);for(let m of f)if(!t.shape[m]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);let p=k_(t.shape);return{shape:t.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(p)}});Ft(e._zod,"propValues",()=>{let f=t.shape,p={};for(let m in f){let g=f[m]._zod;if(g.values){p[m]??(p[m]=new Set);for(let x of g.values)p[m].add(x)}}return p});let a=f=>{let p=new bg(["shape","payload","ctx"]),m=r.value,g=v=>{let T=Mv(v);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};p.write("const input = payload.value;");let x=Object.create(null),w=0;for(let v of m.keys)x[v]=`key_${w++}`;p.write("const newResult = {}");for(let v of m.keys){let T=x[v],E=Mv(v);p.write(`const ${T} = ${g(v)};`),p.write(`
|
|
35
|
+
if (${T}.issues.length) {
|
|
36
|
+
payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
|
|
37
|
+
...iss,
|
|
38
|
+
path: iss.path ? [${E}, ...iss.path] : [${E}]
|
|
39
|
+
})));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (${T}.value === undefined) {
|
|
43
|
+
if (${E} in input) {
|
|
44
|
+
newResult[${E}] = undefined;
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
newResult[${E}] = ${T}.value;
|
|
48
|
+
}
|
|
49
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");let b=p.compile();return(v,T)=>b(f,v,T)},n,o=Mf,i=!sg.jitless,l=i&&S_.value,u=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=r.value);let m=f.value;if(!o(m))return f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f;let g=[];if(i&&l&&p?.async===!1&&p.jitless!==!0)n||(n=a(t.shape)),f=n(f,p);else{f.value={};let T=d.shape;for(let E of d.keys){let _=T[E]._zod.run({value:m[E],issues:[]},p);_ instanceof Promise?g.push(_.then(A=>Gv(A,f,E,m))):Gv(_,f,E,m)}}if(!u)return g.length?Promise.all(g).then(()=>f):f;let x=[],w=d.keySet,b=u._zod,v=b.def.type;for(let T of Object.keys(m)){if(w.has(T))continue;if(v==="never"){x.push(T);continue}let E=b.run({value:m[T],issues:[]},p);E instanceof Promise?g.push(E.then(I=>Gv(I,f,T,m))):Gv(E,f,T,m)}return x.length&&f.issues.push({code:"unrecognized_keys",keys:x,input:m,inst:e}),g.length?Promise.all(g).then(()=>f):f}});function S5(e,t,r,a){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Lc(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>Jn(i,a,na())))}),t)}var Kv=q("$ZodUnion",(e,t)=>{ot.init(e,t),Ft(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Ft(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Ft(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Ft(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>dg(o.source)).join("|")})$`)}});let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},o);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(l=>S5(l,n,e,o)):S5(s,n,e,o)}}),cC=q("$ZodDiscriminatedUnion",(e,t)=>{Kv.init(e,t);let r=e._zod.parse;Ft(e._zod,"propValues",()=>{let n={};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[s,l]of Object.entries(i)){n[s]||(n[s]=new Set);for(let u of l)n[s].add(u)}}return n});let a=cg(()=>{let n=t.options,o=new Map;for(let i of n){let s=i._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,i)}}return o});e._zod.parse=(n,o)=>{let i=n.value;if(!Mf(i))return n.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),n;let s=a.value.get(i?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),n)}}),dC=q("$ZodIntersection",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},a),i=t.right._zod.run({value:n,issues:[]},a);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([l,u])=>I5(r,l,u)):I5(r,o,i)}});function Ck(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(Ac(e)&&Ac(t)){let r=Object.keys(t),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of a){let i=Ck(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n[o]=i.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let a=0;a<e.length;a++){let n=e[a],o=t[a],i=Ck(n,o);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function I5(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Lc(e))return e;let a=Ck(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Oc=q("$ZodTuple",(e,t)=>{ot.init(e,t);let r=t.items,a=r.length-[...r].reverse().findIndex(n=>n._zod.optin!=="optional");e._zod.parse=(n,o)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let s=[];if(!t.rest){let u=i.length>r.length,d=i.length<a-1;if(u||d)return n.issues.push({...u?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),n}let l=-1;for(let u of r){if(l++,l>=i.length&&l>=a)continue;let d=u._zod.run({value:i[l],issues:[]},o);d instanceof Promise?s.push(d.then(f=>Zv(f,n,l))):Zv(d,n,l)}if(t.rest){let u=i.slice(r.length);for(let d of u){l++;let f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?s.push(f.then(p=>Zv(p,n,l))):Zv(f,n,l)}}return s.length?Promise.all(s).then(()=>n):n}});function Zv(e,t,r){e.issues.length&&t.issues.push(...Xn(r,e.issues)),t.value[r]=e.value}var fC=q("$ZodRecord",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!Ac(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[];if(t.keyType._zod.values){let i=t.keyType._zod.values;r.value={};for(let l of i)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){let u=t.valueType._zod.run({value:n[l],issues:[]},a);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&r.issues.push(...Xn(l,d.issues)),r.value[l]=d.value})):(u.issues.length&&r.issues.push(...Xn(l,u.issues)),r.value[l]=u.value)}let s;for(let l in n)i.has(l)||(s=s??[],s.push(l));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else{r.value={};for(let i of Reflect.ownKeys(n)){if(i==="__proto__")continue;let s=t.keyType._zod.run({value:i,issues:[]},a);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(u=>Jn(u,a,na())),input:i,path:[i],inst:e}),r.value[s.value]=s.value;continue}let l=t.valueType._zod.run({value:n[i],issues:[]},a);l instanceof Promise?o.push(l.then(u=>{u.issues.length&&r.issues.push(...Xn(i,u.issues)),r.value[s.value]=u.value})):(l.issues.length&&r.issues.push(...Xn(i,l.issues)),r.value[s.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),pC=q("$ZodMap",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[i,s]of n){let l=t.keyType._zod.run({value:i,issues:[]},a),u=t.valueType._zod.run({value:s,issues:[]},a);l instanceof Promise||u instanceof Promise?o.push(Promise.all([l,u]).then(([d,f])=>{_5(d,f,r,i,n,e,a)})):_5(l,u,r,i,n,e,a)}return o.length?Promise.all(o).then(()=>r):r}});function _5(e,t,r,a,n,o,i){e.issues.length&&(fg.has(typeof a)?r.issues.push(...Xn(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>Jn(s,i,na()))})),t.issues.length&&(fg.has(typeof a)?r.issues.push(...Xn(a,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:a,issues:t.issues.map(s=>Jn(s,i,na()))})),r.value.set(e.value,t.value)}var mC=q("$ZodSet",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let i of n){let s=t.valueType._zod.run({value:i,issues:[]},a);s instanceof Promise?o.push(s.then(l=>k5(l,r))):k5(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function k5(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var hC=q("$ZodEnum",(e,t)=>{ot.init(e,t);let r=ug(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(n=>fg.has(typeof n)).map(n=>typeof n=="string"?$i(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return a.has(i)||n.issues.push({code:"invalid_value",values:r,input:i,inst:e}),n}}),gC=q("$ZodLiteral",(e,t)=>{if(ot.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?$i(r):r?$i(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,a)=>{let n=r.value;return e._zod.values.has(n)||r.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),r}}),yC=q("$ZodFile",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),wg=q("$ZodTransform",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=t.transform(r.value,r);if(a.async)return(n instanceof Promise?n:Promise.resolve(n)).then(i=>(r.value=i,r));if(n instanceof Promise)throw new Bi;return r.value=n,r}});function C5(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var bC=q("$ZodOptional",(e,t)=>{ot.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ft(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ft(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dg(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>C5(o,r.value)):C5(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),vC=q("$ZodNullable",(e,t)=>{ot.init(e,t),Ft(e._zod,"optin",()=>t.innerType._zod.optin),Ft(e._zod,"optout",()=>t.innerType._zod.optout),Ft(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dg(r.source)}|null)$`):void 0}),Ft(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),xC=q("$ZodDefault",(e,t)=>{ot.init(e,t),e._zod.optin="optional",Ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>A5(o,t)):A5(n,t)}});function A5(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var wC=q("$ZodPrefault",(e,t)=>{ot.init(e,t),e._zod.optin="optional",Ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),TC=q("$ZodNonOptional",(e,t)=>{ot.init(e,t),Ft(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>L5(o,e)):L5(n,e)}});function L5(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 EC=q("$ZodSuccess",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),SC=q("$ZodCatch",(e,t)=>{ot.init(e,t),Ft(e._zod,"optin",()=>t.innerType._zod.optin),Ft(e._zod,"optout",()=>t.innerType._zod.optout),Ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Jn(i,a,na()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>Jn(o,a,na()))},input:r.value}),r.issues=[]),r)}}),IC=q("$ZodNaN",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Tg=q("$ZodPipe",(e,t)=>{ot.init(e,t),Ft(e._zod,"values",()=>t.in._zod.values),Ft(e._zod,"optin",()=>t.in._zod.optin),Ft(e._zod,"optout",()=>t.out._zod.optout),Ft(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{let n=t.in._zod.run(r,a);return n instanceof Promise?n.then(o=>N5(o,t,a)):N5(n,t,a)}});function N5(e,t,r){return e.issues.length?e:t.out._zod.run({value:e.value,issues:e.issues},r)}var _C=q("$ZodReadonly",(e,t)=>{ot.init(e,t),Ft(e._zod,"propValues",()=>t.innerType._zod.propValues),Ft(e._zod,"values",()=>t.innerType._zod.values),Ft(e._zod,"optin",()=>t.innerType._zod.optin),Ft(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(R5):R5(n)}});function R5(e){return e.value=Object.freeze(e.value),e}var kC=q("$ZodTemplateLiteral",(e,t)=>{ot.init(e,t);let r=[];for(let a of t.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let n=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${a._zod.traits}`);let o=n.startsWith("^")?1:0,i=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,i))}else if(a===null||__.has(typeof a))r.push($i(`${a}`));else throw new Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,n)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"template_literal",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a)}),CC=q("$ZodPromise",(e,t)=>{ot.init(e,t),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},a))}),AC=q("$ZodLazy",(e,t)=>{ot.init(e,t),Ft(e._zod,"innerType",()=>t.getter()),Ft(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Ft(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Ft(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),Ft(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),LC=q("$ZodCustom",(e,t)=>{yr.init(e,t),ot.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,n=t.fn(a);if(n instanceof Promise)return n.then(o=>O5(o,r,a,e));O5(n,r,a,e)}});function O5(e,t,r,a){if(!e){let n={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(n.params=a._zod.def.params),t.issues.push(Uf(n))}}var Eg={};nn(Eg,{ar:()=>U5,az:()=>z5,be:()=>B5,ca:()=>$5,cs:()=>j5,da:()=>H5,de:()=>V5,en:()=>Xv,eo:()=>q5,es:()=>G5,fa:()=>Z5,fi:()=>W5,fr:()=>Y5,frCA:()=>K5,he:()=>X5,hu:()=>J5,id:()=>Q5,is:()=>e6,it:()=>t6,ja:()=>r6,kh:()=>a6,ko:()=>n6,mk:()=>o6,ms:()=>i6,nl:()=>s6,no:()=>l6,ota:()=>u6,pl:()=>d6,ps:()=>c6,pt:()=>f6,ru:()=>m6,sl:()=>h6,sv:()=>g6,ta:()=>y6,th:()=>b6,tr:()=>v6,ua:()=>x6,ur:()=>w6,vi:()=>T6,yo:()=>I6,zhCN:()=>E6,zhTW:()=>S6});c();c();var lae=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\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 ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${Te(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 "${n.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]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${ee(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function U5(){return{localeError:lae()}}c();var uae=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Te(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function z5(){return{localeError:uae()}}c();function F5(e,t,r,a){let n=Math.abs(e),o=n%10,i=n%100;return i>=11&&i<=19?a:o===1?t:o>=2&&o<=4?r:a}var cae=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(n))return"\u043C\u0430\u0441\u0456\u045E";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${Te(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),l=F5(s,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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),l=F5(s,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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${ee(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function B5(){return{localeError:cae()}}c();var dae=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${Te(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${ee(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",i=t(n.origin);return i?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(n.origin);return i?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function $5(){return{localeError:dae()}}c();var fae=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${n.expected}, obdr\u017Eeno ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Te(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${ee(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function j5(){return{localeError:fae()}}c();var pae=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function r(i){return e[i]??null}function a(i){return t[i]??i}let n=i=>{let s=typeof i;switch(s){case"number":return Number.isNaN(i)?"NaN":"tal";case"object":return Array.isArray(i)?"liste":i===null?"null":Object.getPrototypeOf(i)!==Object.prototype&&i.constructor?i.constructor.name:"objekt"}return s},o={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"};return i=>{switch(i.code){case"invalid_type":return`Ugyldigt input: forventede ${a(i.expected)}, fik ${a(n(i.input))}`;case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${Te(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${ee(i.values,"|")}`;case"too_big":{let s=i.inclusive?"<=":"<",l=r(i.origin),u=a(i.origin);return l?`For stor: forventede ${u??"value"} ${l.verb} ${s} ${i.maximum.toString()} ${l.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${s} ${i.maximum.toString()}`}case"too_small":{let s=i.inclusive?">=":">",l=r(i.origin),u=a(i.origin);return l?`For lille: forventede ${u} ${l.verb} ${s} ${i.minimum.toString()} ${l.unit}`:`For lille: forventede ${u} havde ${s} ${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${o[s.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${ee(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}};function H5(){return{localeError:pae()}}c();var mae=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Te(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${ee(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function V5(){return{localeError:mae()}}c();var hae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},gae=()=>{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"}};function t(a){return e[a]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Invalid input: expected ${a.expected}, received ${hae(a.input)}`;case"invalid_value":return a.values.length===1?`Invalid input: expected ${Te(a.values[0])}`:`Invalid option: expected one of ${ee(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",o=t(a.origin);return o?`Too big: expected ${a.origin??"value"} to have ${n}${a.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",o=t(a.origin);return o?`Too small: expected ${a.origin} to have ${n}${a.minimum.toString()} ${o.unit}`:`Too small: expected ${a.origin} to be ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${ee(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function Xv(){return{localeError:gae()}}c();var yae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},bae=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return a=>{switch(a.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${a.expected}, ricevi\u011Dis ${yae(a.input)}`;case"invalid_value":return a.values.length===1?`Nevalida enigo: atendi\u011Dis ${Te(a.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${ee(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",o=t(a.origin);return o?`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${n}${a.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",o=t(a.origin);return o?`Tro malgranda: atendi\u011Dis ke ${a.origin} havu ${n}${a.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${a.origin} estu ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} \u015Dlosilo${a.keys.length>1?"j":""}: ${ee(a.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function q5(){return{localeError:bae()}}c();var vae=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(n))return"arreglo";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${n.expected}, recibido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${Te(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Demasiado grande: se esperaba que ${n.origin??"valor"} tuviera ${o}${n.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${n.origin??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Demasiado peque\xF1o: se esperaba que ${n.origin} tuviera ${o}${n.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${n.origin} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n.origin}`;default:return"Entrada inv\xE1lida"}}};function G5(){return{localeError:vae()}}c();var xae=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(n))return"\u0622\u0631\u0627\u06CC\u0647";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${r(n.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${Te(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${ee(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;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]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${ee(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Z5(){return{localeError:xae()}}c();var wae=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Te(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ee(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function W5(){return{localeError:wae()}}c();var Tae=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Entr\xE9e invalide : ${n.expected} attendu, ${r(n.input)} re\xE7u`;case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${Te(n.values[0])} attendu`:`Option invalide : une valeur parmi ${ee(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Trop grand : ${n.origin??"valeur"} doit ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Trop petit : ${n.origin} doit ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${ee(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Y5(){return{localeError:Tae()}}c();var Eae=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${n.expected}, re\xE7u ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${Te(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",i=t(n.origin);return i?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",i=t(n.origin);return i?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${ee(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function K5(){return{localeError:Eae()}}c();var Sae=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},a={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return n=>{switch(n.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${n.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${Te(n.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${n.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${n.maximum.toString()} ${i.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${n.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${n.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${n.minimum.toString()} ${i.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${n.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${a[o.format]??n.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}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 ${n.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${n.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${n.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${ee(n.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function X5(){return{localeError:Sae()}}c();var Iae=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(n))return"t\xF6mb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${n.expected}, a kapott \xE9rt\xE9k ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Te(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function J5(){return{localeError:Iae()}}c();var _ae=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${Te(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Q5(){return{localeError:_ae()}}c();var kae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Cae=()=>{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(a){return e[a]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return a=>{switch(a.code){case"invalid_type":return`Rangt gildi: \xDE\xFA sl\xF3st inn ${kae(a.input)} \xFEar sem \xE1 a\xF0 vera ${a.expected}`;case"invalid_value":return a.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${Te(a.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${ee(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",o=t(a.origin);return o?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} hafi ${n}${a.maximum.toString()} ${o.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} s\xE9 ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",o=t(a.origin);return o?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} hafi ${n}${a.minimum.toString()} ${o.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} s\xE9 ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${n.prefix}"`:n.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${n.suffix}"`:n.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${n.includes}"`:n.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??a.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${ee(a.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${a.origin}`;default:return"Rangt gildi"}}};function e6(){return{localeError:Cae()}}c();var Aae=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${Te(n.values[0])}`:`Opzione non valida: atteso uno tra ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${ee(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function t6(){return{localeError:Aae()}}c();var Lae=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(n))return"\u914D\u5217";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${r(n.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${Te(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${ee(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(n.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(n.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${ee(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function r6(){return{localeError:Lae()}}c();var Nae=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(n))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(n===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\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 ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${Te(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${ee(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function a6(){return{localeError:Nae()}}c();var Rae=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${r(n.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Te(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${ee(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${o}${i}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${i}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${o}${i}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${ee(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function n6(){return{localeError:Rae()}}c();var Oae=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(n))return"\u043D\u0438\u0437\u0430";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${Te(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${ee(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function o6(){return{localeError:Oae()}}c();var Dae=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${Te(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Terlalu besar: dijangka ${n.origin??"nilai"} ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Terlalu kecil: dijangka ${n.origin} ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${ee(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function i6(){return{localeError:Dae()}}c();var Mae=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${Te(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Te lang: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${i.unit??"elementen"} bevat`:`Te lang: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Te kort: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${i.unit} bevat`:`Te kort: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function s6(){return{localeError:Mae()}}c();var Pae=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${Te(n.values[0])}`:`Ugyldig valg: forventet en av ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${ee(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function l6(){return{localeError:Pae()}}c();var Uae=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`F\xE2sit giren: umulan ${n.expected}, al\u0131nan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${Te(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function u6(){return{localeError:Uae()}}c();var zae=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(n))return"\u0627\u0631\u06D0";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${r(n.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${Te(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${ee(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;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]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${ee(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function c6(){return{localeError:zae()}}c();var Fae=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Te(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function d6(){return{localeError:Fae()}}c();var Bae=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${Te(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function f6(){return{localeError:Bae()}}c();function p6(e,t,r,a){let n=Math.abs(e),o=n%10,i=n%100;return i>=11&&i<=19?a:o===1?t:o>=2&&o<=4?r:a}var $ae=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(n))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${Te(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),l=p6(s,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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),l=p6(s,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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function m6(){return{localeError:$ae()}}c();var jae=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Te(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${ee(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function h6(){return{localeError:jae()}}c();var Hae=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Te(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${ee(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function g6(){return{localeError:Hae()}}c();var Vae=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(n))return"\u0B85\u0BA3\u0BBF";if(n===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\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 ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Te(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ee(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.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 ${n.origin} ${o}${n.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 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function y6(){return{localeError:Vae()}}c();var qae=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(n))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(n===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\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 ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${Te(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(n.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(n.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${ee(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function b6(){return{localeError:qae()}}c();var Gae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Zae=()=>{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(a){return e[a]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return a=>{switch(a.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${a.expected}, al\u0131nan ${Gae(a.input)}`;case"invalid_value":return a.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Te(a.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${ee(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",o=t(a.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${n}${a.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",o=t(a.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${n}${a.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Ge\xE7ersiz metin: "${n.prefix}" ile ba\u015Flamal\u0131`:n.format==="ends_with"?`Ge\xE7ersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Ge\xE7ersiz metin: "${n.includes}" i\xE7ermeli`:n.format==="regex"?`Ge\xE7ersiz metin: ${n.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[n.format]??a.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${a.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${a.keys.length>1?"lar":""}: ${ee(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${a.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function v6(){return{localeError:Zae()}}c();var Wae=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(n))return"\u043C\u0430\u0441\u0438\u0432";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\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 ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${Te(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.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 ${n.origin} ${i.verb} ${o}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${ee(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function x6(){return{localeError:Wae()}}c();var Yae=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(n))return"\u0622\u0631\u06D2";if(n===null)return"\u0646\u0644";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${r(n.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${Te(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${ee(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${ee(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function w6(){return{localeError:Yae()}}c();var Kae=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(n))return"m\u1EA3ng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${Te(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${ee(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function T6(){return{localeError:Kae()}}c();var Xae=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(n))return"\u6570\u7EC4";if(n===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Te(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${ee(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function E6(){return{localeError:Xae()}}c();var Jae=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${n.expected}\uFF0C\u4F46\u6536\u5230 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Te(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${ee(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function S6(){return{localeError:Jae()}}c();var Qae=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r=n=>{let o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(n))return"akop\u1ECD";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},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"};return n=>{switch(n.code){case"invalid_type":return`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${r(n.input)}`;case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${Te(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${i.verb} ${o}${n.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${i.verb} ${o}${n.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${ee(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function I6(){return{localeError:Qae()}}c();var NC=Symbol("ZodOutput"),RC=Symbol("ZodInput"),$f=class{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){let a=r[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let a={...this.get(r)??{}};delete a.id;let n={...a,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Jv(){return new $f}var ji=Jv();c();c();function OC(e,t){return new e({type:"string",...ve(t)})}function DC(e,t){return new e({type:"string",coerce:!0,...ve(t)})}function Qv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ve(t)})}function Sg(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ve(t)})}function ex(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ve(t)})}function tx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ve(t)})}function rx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ve(t)})}function ax(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ve(t)})}function nx(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ve(t)})}function ox(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ve(t)})}function ix(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ve(t)})}function sx(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ve(t)})}function lx(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ve(t)})}function ux(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ve(t)})}function cx(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ve(t)})}function dx(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ve(t)})}function fx(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ve(t)})}function px(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ve(t)})}function mx(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ve(t)})}function hx(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ve(t)})}function gx(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ve(t)})}function yx(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ve(t)})}function bx(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ve(t)})}function vx(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ve(t)})}var MC={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function PC(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ve(t)})}function UC(e,t){return new e({type:"string",format:"date",check:"string_format",...ve(t)})}function zC(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ve(t)})}function FC(e,t){return new e({type:"string",format:"duration",check:"string_format",...ve(t)})}function BC(e,t){return new e({type:"number",checks:[],...ve(t)})}function $C(e,t){return new e({type:"number",coerce:!0,checks:[],...ve(t)})}function jC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ve(t)})}function HC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ve(t)})}function VC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ve(t)})}function qC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ve(t)})}function GC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ve(t)})}function ZC(e,t){return new e({type:"boolean",...ve(t)})}function WC(e,t){return new e({type:"boolean",coerce:!0,...ve(t)})}function YC(e,t){return new e({type:"bigint",...ve(t)})}function KC(e,t){return new e({type:"bigint",coerce:!0,...ve(t)})}function XC(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ve(t)})}function JC(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ve(t)})}function QC(e,t){return new e({type:"symbol",...ve(t)})}function eA(e,t){return new e({type:"undefined",...ve(t)})}function tA(e,t){return new e({type:"null",...ve(t)})}function rA(e){return new e({type:"any"})}function jf(e){return new e({type:"unknown"})}function aA(e,t){return new e({type:"never",...ve(t)})}function nA(e,t){return new e({type:"void",...ve(t)})}function oA(e,t){return new e({type:"date",...ve(t)})}function iA(e,t){return new e({type:"date",coerce:!0,...ve(t)})}function sA(e,t){return new e({type:"nan",...ve(t)})}function Cs(e,t){return new Vv({check:"less_than",...ve(t),value:e,inclusive:!1})}function Co(e,t){return new Vv({check:"less_than",...ve(t),value:e,inclusive:!0})}function As(e,t){return new qv({check:"greater_than",...ve(t),value:e,inclusive:!1})}function _n(e,t){return new qv({check:"greater_than",...ve(t),value:e,inclusive:!0})}function lA(e){return As(0,e)}function uA(e){return Cs(0,e)}function cA(e){return Co(0,e)}function dA(e){return _n(0,e)}function Dc(e,t){return new uk({check:"multiple_of",...ve(t),value:e})}function Hf(e,t){return new fk({check:"max_size",...ve(t),maximum:e})}function Mc(e,t){return new pk({check:"min_size",...ve(t),minimum:e})}function Ig(e,t){return new mk({check:"size_equals",...ve(t),size:e})}function Vf(e,t){return new hk({check:"max_length",...ve(t),maximum:e})}function eu(e,t){return new gk({check:"min_length",...ve(t),minimum:e})}function qf(e,t){return new yk({check:"length_equals",...ve(t),length:e})}function _g(e,t){return new bk({check:"string_format",format:"regex",...ve(t),pattern:e})}function kg(e){return new vk({check:"string_format",format:"lowercase",...ve(e)})}function Cg(e){return new xk({check:"string_format",format:"uppercase",...ve(e)})}function Ag(e,t){return new wk({check:"string_format",format:"includes",...ve(t),includes:e})}function Lg(e,t){return new Tk({check:"string_format",format:"starts_with",...ve(t),prefix:e})}function Ng(e,t){return new Ek({check:"string_format",format:"ends_with",...ve(t),suffix:e})}function fA(e,t,r){return new Sk({check:"property",property:e,schema:t,...ve(r)})}function Rg(e,t){return new Ik({check:"mime_type",mime:e,...ve(t)})}function Ls(e){return new _k({check:"overwrite",tx:e})}function Og(e){return Ls(t=>t.normalize(e))}function Dg(){return Ls(e=>e.trim())}function Mg(){return Ls(e=>e.toLowerCase())}function Pg(){return Ls(e=>e.toUpperCase())}function Ug(e,t,r){return new e({type:"array",element:t,...ve(r)})}function ene(e,t,r){return new e({type:"union",options:t,...ve(r)})}function tne(e,t,r,a){return new e({type:"union",options:r,discriminator:t,...ve(a)})}function rne(e,t,r){return new e({type:"intersection",left:t,right:r})}function pA(e,t,r,a){let n=r instanceof ot,o=n?a:r,i=n?r:null;return new e({type:"tuple",items:t,rest:i,...ve(o)})}function ane(e,t,r,a){return new e({type:"record",keyType:t,valueType:r,...ve(a)})}function nne(e,t,r,a){return new e({type:"map",keyType:t,valueType:r,...ve(a)})}function one(e,t,r){return new e({type:"set",valueType:t,...ve(r)})}function ine(e,t,r){let a=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:a,...ve(r)})}function sne(e,t,r){return new e({type:"enum",entries:t,...ve(r)})}function lne(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ve(r)})}function mA(e,t){return new e({type:"file",...ve(t)})}function une(e,t){return new e({type:"transform",transform:t})}function cne(e,t){return new e({type:"optional",innerType:t})}function dne(e,t){return new e({type:"nullable",innerType:t})}function fne(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():I_(r)}})}function pne(e,t,r){return new e({type:"nonoptional",innerType:t,...ve(r)})}function mne(e,t){return new e({type:"success",innerType:t})}function hne(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function gne(e,t,r){return new e({type:"pipe",in:t,out:r})}function yne(e,t){return new e({type:"readonly",innerType:t})}function bne(e,t,r){return new e({type:"template_literal",parts:t,...ve(r)})}function vne(e,t){return new e({type:"lazy",getter:t})}function xne(e,t){return new e({type:"promise",innerType:t})}function hA(e,t,r){let a=ve(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function gA(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ve(r)})}function yA(e){let t=_6(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(Uf(a,r.value,t._zod.def));else{let n=a;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(Uf(n))}},e(r.value,r)));return t}function _6(e,t){let r=new yr({check:"custom",...ve(t)});return r._zod.check=e,r}function bA(e,t){let r=ve(t),a=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let o=new Set(a),i=new Set(n),s=e.Pipe??Tg,l=e.Boolean??vg,u=e.String??Rc,d=e.Transform??wg,f=new d({type:"transform",transform:(g,x)=>{let w=g;return r.case!=="sensitive"&&(w=w.toLowerCase()),o.has(w)?!0:i.has(w)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:x.value,inst:f,continue:!1}),{})},error:r.error}),p=new s({type:"pipe",in:new u({type:"string",error:r.error}),out:f,error:r.error});return new s({type:"pipe",in:p,out:new l({type:"boolean",error:r.error}),error:r.error})}function xx(e,t,r,a={}){let n=ve(a),o={...ve(a),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}var wx=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let r=(...a)=>{let n=this._def.input?zv(this._def.input,a,void 0,{callee:r}):a;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=t(...n);return this._def.output?zv(this._def.output,o,void 0,{callee:r}):o};return r}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let r=async(...a)=>{let n=this._def.input?await Bv(this._def.input,a,void 0,{callee:r}):a;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await t(...n);return this._def.output?Bv(this._def.output,o,void 0,{callee:r}):o};return r}input(...t){let r=this.constructor;return Array.isArray(t[0])?new r({type:"function",input:new Oc({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new r({type:"function",input:t[0],output:this._def.output})}output(t){let r=this.constructor;return new r({type:"function",input:this._def.input,output:t})}};function vA(e){return new wx({type:"function",input:Array.isArray(e?.input)?pA(Oc,e?.input):e?.input??Ug(xg,jf(Bf)),output:e?.output??jf(Bf)})}c();var zg=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??ji,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var a;let n=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},i=this.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,s);let l=t._zod.toJSONSchema?.();if(l)s.schema=l;else{let f={...r,schemaPath:[...r.schemaPath,t],path:r.path},p=t._zod.parent;if(p)s.ref=p,this.process(p,f),this.seen.get(p).isParent=!0;else{let m=s.schema;switch(n.type){case"string":{let g=m;g.type="string";let{minimum:x,maximum:w,format:b,patterns:v,contentEncoding:T}=t._zod.bag;if(typeof x=="number"&&(g.minLength=x),typeof w=="number"&&(g.maxLength=w),b&&(g.format=o[b]??b,g.format===""&&delete g.format),T&&(g.contentEncoding=T),v&&v.size>0){let E=[...v];E.length===1?g.pattern=E[0].source:E.length>1&&(s.schema.allOf=[...E.map(I=>({...this.target==="draft-7"||this.target==="draft-4"?{type:"string"}:{},pattern:I.source}))])}break}case"number":{let g=m,{minimum:x,maximum:w,format:b,multipleOf:v,exclusiveMaximum:T,exclusiveMinimum:E}=t._zod.bag;typeof b=="string"&&b.includes("int")?g.type="integer":g.type="number",typeof E=="number"&&(this.target==="draft-4"?(g.minimum=E,g.exclusiveMinimum=!0):g.exclusiveMinimum=E),typeof x=="number"&&(g.minimum=x,typeof E=="number"&&this.target!=="draft-4"&&(E>=x?delete g.minimum:delete g.exclusiveMinimum)),typeof T=="number"&&(this.target==="draft-4"?(g.maximum=T,g.exclusiveMaximum=!0):g.exclusiveMaximum=T),typeof w=="number"&&(g.maximum=w,typeof T=="number"&&this.target!=="draft-4"&&(T<=w?delete g.maximum:delete g.exclusiveMaximum)),typeof v=="number"&&(g.multipleOf=v);break}case"boolean":{let g=m;g.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let g=m,{minimum:x,maximum:w}=t._zod.bag;typeof x=="number"&&(g.minItems=x),typeof w=="number"&&(g.maxItems=w),g.type="array",g.items=this.process(n.element,{...f,path:[...f.path,"items"]});break}case"object":{let g=m;g.type="object",g.properties={};let x=n.shape;for(let v in x)g.properties[v]=this.process(x[v],{...f,path:[...f.path,"properties",v]});let w=new Set(Object.keys(x)),b=new Set([...w].filter(v=>{let T=n.shape[v]._zod;return this.io==="input"?T.optin===void 0:T.optout===void 0}));b.size>0&&(g.required=Array.from(b)),n.catchall?._zod.def.type==="never"?g.additionalProperties=!1:n.catchall?n.catchall&&(g.additionalProperties=this.process(n.catchall,{...f,path:[...f.path,"additionalProperties"]})):this.io==="output"&&(g.additionalProperties=!1);break}case"union":{let g=m;g.anyOf=n.options.map((x,w)=>this.process(x,{...f,path:[...f.path,"anyOf",w]}));break}case"intersection":{let g=m,x=this.process(n.left,{...f,path:[...f.path,"allOf",0]}),w=this.process(n.right,{...f,path:[...f.path,"allOf",1]}),b=T=>"allOf"in T&&Object.keys(T).length===1,v=[...b(x)?x.allOf:[x],...b(w)?w.allOf:[w]];g.allOf=v;break}case"tuple":{let g=m;g.type="array";let x=n.items.map((v,T)=>this.process(v,{...f,path:[...f.path,"prefixItems",T]}));if(this.target==="draft-2020-12"?g.prefixItems=x:g.items=x,n.rest){let v=this.process(n.rest,{...f,path:[...f.path,"items"]});this.target==="draft-2020-12"?g.items=v:g.additionalItems=v}n.rest&&(g.items=this.process(n.rest,{...f,path:[...f.path,"items"]}));let{minimum:w,maximum:b}=t._zod.bag;typeof w=="number"&&(g.minItems=w),typeof b=="number"&&(g.maxItems=b);break}case"record":{let g=m;g.type="object",this.target!=="draft-4"&&(g.propertyNames=this.process(n.keyType,{...f,path:[...f.path,"propertyNames"]})),g.additionalProperties=this.process(n.valueType,{...f,path:[...f.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let g=m,x=ug(n.entries);x.every(w=>typeof w=="number")&&(g.type="number"),x.every(w=>typeof w=="string")&&(g.type="string"),g.enum=x;break}case"literal":{let g=m,x=[];for(let w of n.values)if(w===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof w=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");x.push(Number(w))}else x.push(w);if(x.length!==0)if(x.length===1){let w=x[0];g.type=w===null?"null":typeof w,this.target==="draft-4"?g.enum=[w]:g.const=w}else x.every(w=>typeof w=="number")&&(g.type="number"),x.every(w=>typeof w=="string")&&(g.type="string"),x.every(w=>typeof w=="boolean")&&(g.type="string"),x.every(w=>w===null)&&(g.type="null"),g.enum=x;break}case"file":{let g=m,x={type:"string",format:"binary",contentEncoding:"binary"},{minimum:w,maximum:b,mime:v}=t._zod.bag;w!==void 0&&(x.minLength=w),b!==void 0&&(x.maxLength=b),v?v.length===1?(x.contentMediaType=v[0],Object.assign(g,x)):g.anyOf=v.map(T=>({...x,contentMediaType:T})):Object.assign(g,x);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let g=this.process(n.innerType,f);m.anyOf=[g,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,f),s.ref=n.innerType;break}case"success":{let g=m;g.type="boolean";break}case"default":{this.process(n.innerType,f),s.ref=n.innerType,m.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,f),s.ref=n.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,f),s.ref=n.innerType;let g;try{g=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=g;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let g=m,x=t._zod.pattern;if(!x)throw new Error("Pattern not found in template literal");g.type="string",g.pattern=x.source;break}case"pipe":{let g=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process(g,f),s.ref=g;break}case"readonly":{this.process(n.innerType,f),s.ref=n.innerType,m.readOnly=!0;break}case"promise":{this.process(n.innerType,f),s.ref=n.innerType;break}case"optional":{this.process(n.innerType,f),s.ref=n.innerType;break}case"lazy":{let g=t._zod.innerType;this.process(g,f),s.ref=g;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let u=this.metadataRegistry.get(t);return u&&Object.assign(s.schema,u),this.io==="input"&&ha(t)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((a=s.schema).default??(a.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,r){let a={cycles:r?.cycles??"ref",reused:r?.reused??"inline",external:r?.external??void 0},n=this.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=d=>{let f=this.target==="draft-2020-12"?"$defs":"definitions";if(a.external){let x=a.external.registry.get(d[0])?.id,w=a.external.uri??(v=>v);if(x)return{ref:w(x)};let b=d[1].defId??d[1].schema.id??`schema${this.counter++}`;return d[1].defId=b,{defId:b,ref:`${w("__shared")}#/${f}/${b}`}}if(d[1]===n)return{ref:"#"};let m=`#/${f}/`,g=d[1].schema.id??`__schema${this.counter++}`;return{defId:g,ref:m+g}},i=d=>{if(d[1].schema.$ref)return;let f=d[1],{ref:p,defId:m}=o(d);f.def={...f.schema},m&&(f.defId=m);let g=f.schema;for(let x in g)delete g[x];g.$ref=p};if(a.cycles==="throw")for(let d of this.seen.entries()){let f=d[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
|
|
50
|
+
|
|
51
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of this.seen.entries()){let f=d[1];if(t===d[0]){i(d);continue}if(a.external){let m=a.external.registry.get(d[0])?.id;if(t!==d[0]&&m){i(d);continue}}if(this.metadataRegistry.get(d[0])?.id){i(d);continue}if(f.cycle){i(d);continue}if(f.count>1&&a.reused==="ref"){i(d);continue}}let s=(d,f)=>{let p=this.seen.get(d),m=p.def??p.schema,g={...m};if(p.ref===null)return;let x=p.ref;if(p.ref=null,x){s(x,f);let w=this.seen.get(x).schema;w.$ref&&(f.target==="draft-7"||f.target==="draft-4")?(m.allOf=m.allOf??[],m.allOf.push(w)):(Object.assign(m,w),Object.assign(m,g))}p.isParent||this.override({zodSchema:d,jsonSchema:m,path:p.path??[]})};for(let d of[...this.seen.entries()].reverse())s(d[0],{target:this.target});let l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?l.$schema="http://json-schema.org/draft-04/schema#":console.warn(`Invalid target: ${this.target}`),a.external?.uri){let d=a.external.registry.get(t)?.id;if(!d)throw new Error("Schema is missing an `id` property");l.$id=a.external.uri(d)}Object.assign(l,n.def);let u=a.external?.defs??{};for(let d of this.seen.entries()){let f=d[1];f.def&&f.defId&&(u[f.defId]=f.def)}a.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?l.$defs=u:l.definitions=u);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error("Error converting schema to JSON.")}}};function Pc(e,t){if(e instanceof $f){let a=new zg(t),n={};for(let s of e._idmap.entries()){let[l,u]=s;a.process(u)}let o={},i={registry:e,uri:t?.uri,defs:n};for(let s of e._idmap.entries()){let[l,u]=s;o[l]=a.emit(u,{...t,external:i})}if(Object.keys(n).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[s]:n}}return{schemas:o}}let r=new zg(t);return r.process(e),r.emit(e,t)}function ha(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;switch(n.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return ha(n.element,r);case"object":{for(let o in n.shape)if(ha(n.shape[o],r))return!0;return!1}case"union":{for(let o of n.options)if(ha(o,r))return!0;return!1}case"intersection":return ha(n.left,r)||ha(n.right,r);case"tuple":{for(let o of n.items)if(ha(o,r))return!0;return!!(n.rest&&ha(n.rest,r))}case"record":return ha(n.keyType,r)||ha(n.valueType,r);case"map":return ha(n.keyType,r)||ha(n.valueType,r);case"set":return ha(n.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ha(n.innerType,r);case"lazy":return ha(n.getter(),r);case"default":return ha(n.innerType,r);case"prefault":return ha(n.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return ha(n.in,r)||ha(n.out,r);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${n.type}`)}var k6={};c();c();c();var _x={};nn(_x,{ZodISODate:()=>Ex,ZodISODateTime:()=>Tx,ZodISODuration:()=>Ix,ZodISOTime:()=>Sx,date:()=>wA,datetime:()=>xA,duration:()=>EA,time:()=>TA});c();var Tx=q("ZodISODateTime",(e,t)=>{Bk.init(e,t),ur.init(e,t)});function xA(e){return PC(Tx,e)}var Ex=q("ZodISODate",(e,t)=>{$k.init(e,t),ur.init(e,t)});function wA(e){return UC(Ex,e)}var Sx=q("ZodISOTime",(e,t)=>{jk.init(e,t),ur.init(e,t)});function TA(e){return zC(Sx,e)}var Ix=q("ZodISODuration",(e,t)=>{Hk.init(e,t),ur.init(e,t)});function EA(e){return FC(Ix,e)}c();c();var A6=(e,t)=>{hg.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>yg(e,r)},flatten:{value:r=>gg(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Pf,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Pf,2)}},isEmpty:{get(){return e.issues.length===0}}})},Tne=q("ZodError",A6),Gf=q("ZodError",A6,{Parent:Error});var SA=Uv(Gf),IA=Fv(Gf),_A=$v(Gf),Uc=jv(Gf);var xt=q("ZodType",(e,t)=>(ot.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),e.clone=(r,a)=>In(e,r,a),e.brand=()=>e,e.register=(r,a)=>(r.add(e,a),e),e.parse=(r,a)=>SA(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>_A(e,r,a),e.parseAsync=async(r,a)=>IA(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>Uc(e,r,a),e.spa=e.safeParseAsync,e.refine=(r,a)=>e.check(sU(r,a)),e.superRefine=r=>e.check(lU(r)),e.overwrite=r=>e.check(Ls(r)),e.optional=()=>_r(e),e.nullable=()=>Cx(e),e.nullish=()=>_r(Cx(e)),e.nonoptional=r=>X6(e,r),e.array=()=>Pa(e),e.or=r=>Zt([e,r]),e.and=r=>B6(e,r),e.transform=r=>Ax(e,JA(r)),e.default=r=>W6(e,r),e.prefault=r=>K6(e,r),e.catch=r=>eU(e,r),e.pipe=r=>Ax(e,r),e.readonly=()=>aU(e),e.describe=r=>{let a=e.clone();return ji.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return ji.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ji.get(e);let a=e.clone();return ji.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),CA=q("_ZodString",(e,t)=>{Rc.init(e,t),xt.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(_g(...a)),e.includes=(...a)=>e.check(Ag(...a)),e.startsWith=(...a)=>e.check(Lg(...a)),e.endsWith=(...a)=>e.check(Ng(...a)),e.min=(...a)=>e.check(eu(...a)),e.max=(...a)=>e.check(Vf(...a)),e.length=(...a)=>e.check(qf(...a)),e.nonempty=(...a)=>e.check(eu(1,...a)),e.lowercase=a=>e.check(kg(a)),e.uppercase=a=>e.check(Cg(a)),e.trim=()=>e.check(Dg()),e.normalize=(...a)=>e.check(Og(...a)),e.toLowerCase=()=>e.check(Mg()),e.toUpperCase=()=>e.check(Pg())}),Bg=q("ZodString",(e,t)=>{Rc.init(e,t),CA.init(e,t),e.email=r=>e.check(Qv(AA,r)),e.url=r=>e.check(nx(LA,r)),e.jwt=r=>e.check(vx(qA,r)),e.emoji=r=>e.check(ox(NA,r)),e.guid=r=>e.check(Sg(kx,r)),e.uuid=r=>e.check(ex(Rs,r)),e.uuidv4=r=>e.check(tx(Rs,r)),e.uuidv6=r=>e.check(rx(Rs,r)),e.uuidv7=r=>e.check(ax(Rs,r)),e.nanoid=r=>e.check(ix(RA,r)),e.guid=r=>e.check(Sg(kx,r)),e.cuid=r=>e.check(sx(OA,r)),e.cuid2=r=>e.check(lx(DA,r)),e.ulid=r=>e.check(ux(MA,r)),e.base64=r=>e.check(gx(jA,r)),e.base64url=r=>e.check(yx(HA,r)),e.xid=r=>e.check(cx(PA,r)),e.ksuid=r=>e.check(dx(UA,r)),e.ipv4=r=>e.check(fx(zA,r)),e.ipv6=r=>e.check(px(FA,r)),e.cidrv4=r=>e.check(mx(BA,r)),e.cidrv6=r=>e.check(hx($A,r)),e.e164=r=>e.check(bx(VA,r)),e.datetime=r=>e.check(xA(r)),e.date=r=>e.check(wA(r)),e.time=r=>e.check(TA(r)),e.duration=r=>e.check(EA(r))});function J(e){return OC(Bg,e)}var ur=q("ZodStringFormat",(e,t)=>{ir.init(e,t),CA.init(e,t)}),AA=q("ZodEmail",(e,t)=>{Nk.init(e,t),ur.init(e,t)});function Sne(e){return Qv(AA,e)}var kx=q("ZodGUID",(e,t)=>{Ak.init(e,t),ur.init(e,t)});function Ine(e){return Sg(kx,e)}var Rs=q("ZodUUID",(e,t)=>{Lk.init(e,t),ur.init(e,t)});function _ne(e){return ex(Rs,e)}function kne(e){return tx(Rs,e)}function Cne(e){return rx(Rs,e)}function Ane(e){return ax(Rs,e)}var LA=q("ZodURL",(e,t)=>{Rk.init(e,t),ur.init(e,t)});function Lne(e){return nx(LA,e)}var NA=q("ZodEmoji",(e,t)=>{Ok.init(e,t),ur.init(e,t)});function Nne(e){return ox(NA,e)}var RA=q("ZodNanoID",(e,t)=>{Dk.init(e,t),ur.init(e,t)});function Rne(e){return ix(RA,e)}var OA=q("ZodCUID",(e,t)=>{Mk.init(e,t),ur.init(e,t)});function One(e){return sx(OA,e)}var DA=q("ZodCUID2",(e,t)=>{Pk.init(e,t),ur.init(e,t)});function Dne(e){return lx(DA,e)}var MA=q("ZodULID",(e,t)=>{Uk.init(e,t),ur.init(e,t)});function Mne(e){return ux(MA,e)}var PA=q("ZodXID",(e,t)=>{zk.init(e,t),ur.init(e,t)});function Pne(e){return cx(PA,e)}var UA=q("ZodKSUID",(e,t)=>{Fk.init(e,t),ur.init(e,t)});function Une(e){return dx(UA,e)}var zA=q("ZodIPv4",(e,t)=>{Vk.init(e,t),ur.init(e,t)});function zne(e){return fx(zA,e)}var FA=q("ZodIPv6",(e,t)=>{qk.init(e,t),ur.init(e,t)});function Fne(e){return px(FA,e)}var BA=q("ZodCIDRv4",(e,t)=>{Gk.init(e,t),ur.init(e,t)});function Bne(e){return mx(BA,e)}var $A=q("ZodCIDRv6",(e,t)=>{Zk.init(e,t),ur.init(e,t)});function $ne(e){return hx($A,e)}var jA=q("ZodBase64",(e,t)=>{Yk.init(e,t),ur.init(e,t)});function Lx(e){return gx(jA,e)}var HA=q("ZodBase64URL",(e,t)=>{Kk.init(e,t),ur.init(e,t)});function jne(e){return yx(HA,e)}var VA=q("ZodE164",(e,t)=>{Xk.init(e,t),ur.init(e,t)});function Hne(e){return bx(VA,e)}var qA=q("ZodJWT",(e,t)=>{Jk.init(e,t),ur.init(e,t)});function Vne(e){return vx(qA,e)}var GA=q("ZodCustomStringFormat",(e,t)=>{Qk.init(e,t),ur.init(e,t)});function qne(e,t,r={}){return xx(GA,e,t,r)}function Gne(e){return xx(GA,"hostname",ks.hostname,e)}var $g=q("ZodNumber",(e,t)=>{Wv.init(e,t),xt.init(e,t),e.gt=(a,n)=>e.check(As(a,n)),e.gte=(a,n)=>e.check(_n(a,n)),e.min=(a,n)=>e.check(_n(a,n)),e.lt=(a,n)=>e.check(Cs(a,n)),e.lte=(a,n)=>e.check(Co(a,n)),e.max=(a,n)=>e.check(Co(a,n)),e.int=a=>e.check(kA(a)),e.safe=a=>e.check(kA(a)),e.positive=a=>e.check(As(0,a)),e.nonnegative=a=>e.check(_n(0,a)),e.negative=a=>e.check(Cs(0,a)),e.nonpositive=a=>e.check(Co(0,a)),e.multipleOf=(a,n)=>e.check(Dc(a,n)),e.step=(a,n)=>e.check(Dc(a,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Os(e){return BC($g,e)}var Zf=q("ZodNumberFormat",(e,t)=>{eC.init(e,t),$g.init(e,t)});function kA(e){return jC(Zf,e)}function Zne(e){return HC(Zf,e)}function Wne(e){return VC(Zf,e)}function Yne(e){return qC(Zf,e)}function Kne(e){return GC(Zf,e)}var jg=q("ZodBoolean",(e,t)=>{vg.init(e,t),xt.init(e,t)});function kt(e){return ZC(jg,e)}var Hg=q("ZodBigInt",(e,t)=>{Yv.init(e,t),xt.init(e,t),e.gte=(a,n)=>e.check(_n(a,n)),e.min=(a,n)=>e.check(_n(a,n)),e.gt=(a,n)=>e.check(As(a,n)),e.gte=(a,n)=>e.check(_n(a,n)),e.min=(a,n)=>e.check(_n(a,n)),e.lt=(a,n)=>e.check(Cs(a,n)),e.lte=(a,n)=>e.check(Co(a,n)),e.max=(a,n)=>e.check(Co(a,n)),e.positive=a=>e.check(As(BigInt(0),a)),e.negative=a=>e.check(Cs(BigInt(0),a)),e.nonpositive=a=>e.check(Co(BigInt(0),a)),e.nonnegative=a=>e.check(_n(BigInt(0),a)),e.multipleOf=(a,n)=>e.check(Dc(a,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Xne(e){return YC(Hg,e)}var ZA=q("ZodBigIntFormat",(e,t)=>{tC.init(e,t),Hg.init(e,t)});function Jne(e){return XC(ZA,e)}function Qne(e){return JC(ZA,e)}var L6=q("ZodSymbol",(e,t)=>{rC.init(e,t),xt.init(e,t)});function eoe(e){return QC(L6,e)}var N6=q("ZodUndefined",(e,t)=>{aC.init(e,t),xt.init(e,t)});function toe(e){return eA(N6,e)}var R6=q("ZodNull",(e,t)=>{nC.init(e,t),xt.init(e,t)});function Nx(e){return tA(R6,e)}var O6=q("ZodAny",(e,t)=>{oC.init(e,t),xt.init(e,t)});function roe(){return rA(O6)}var D6=q("ZodUnknown",(e,t)=>{Bf.init(e,t),xt.init(e,t)});function Ut(){return jf(D6)}var M6=q("ZodNever",(e,t)=>{iC.init(e,t),xt.init(e,t)});function cr(e){return aA(M6,e)}var P6=q("ZodVoid",(e,t)=>{sC.init(e,t),xt.init(e,t)});function aoe(e){return nA(P6,e)}var Rx=q("ZodDate",(e,t)=>{lC.init(e,t),xt.init(e,t),e.min=(a,n)=>e.check(_n(a,n)),e.max=(a,n)=>e.check(Co(a,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function noe(e){return oA(Rx,e)}var U6=q("ZodArray",(e,t)=>{xg.init(e,t),xt.init(e,t),e.element=t.element,e.min=(r,a)=>e.check(eu(r,a)),e.nonempty=r=>e.check(eu(1,r)),e.max=(r,a)=>e.check(Vf(r,a)),e.length=(r,a)=>e.check(qf(r,a)),e.unwrap=()=>e.element});function Pa(e,t){return Ug(U6,e,t)}function ooe(e){let t=e._zod.def.shape;return Fc(Object.keys(t))}var Ox=q("ZodObject",(e,t)=>{uC.init(e,t),xt.init(e,t),xe.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Fc(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ut()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ut()}),e.strict=()=>e.clone({...e._zod.def,catchall:cr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>xe.extend(e,r),e.merge=r=>xe.merge(e,r),e.pick=r=>xe.pick(e,r),e.omit=r=>xe.omit(e,r),e.partial=(...r)=>xe.partial(QA,e,r[0]),e.required=(...r)=>xe.required(e2,e,r[0])});function Pe(e,t){let r={type:"object",get shape(){return xe.assignProp(this,"shape",e?xe.objectClone(e):{}),this.shape},...xe.normalizeParams(t)};return new Ox(r)}function br(e,t){return new Ox({type:"object",get shape(){return xe.assignProp(this,"shape",xe.objectClone(e)),this.shape},catchall:cr(),...xe.normalizeParams(t)})}function tu(e,t){return new Ox({type:"object",get shape(){return xe.assignProp(this,"shape",xe.objectClone(e)),this.shape},catchall:Ut(),...xe.normalizeParams(t)})}var WA=q("ZodUnion",(e,t)=>{Kv.init(e,t),xt.init(e,t),e.options=t.options});function Zt(e,t){return new WA({type:"union",options:e,...xe.normalizeParams(t)})}var z6=q("ZodDiscriminatedUnion",(e,t)=>{WA.init(e,t),cC.init(e,t)});function YA(e,t,r){return new z6({type:"union",options:t,discriminator:e,...xe.normalizeParams(r)})}var F6=q("ZodIntersection",(e,t)=>{dC.init(e,t),xt.init(e,t)});function B6(e,t){return new F6({type:"intersection",left:e,right:t})}var $6=q("ZodTuple",(e,t)=>{Oc.init(e,t),xt.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function ioe(e,t,r){let a=t instanceof ot,n=a?r:t,o=a?t:null;return new $6({type:"tuple",items:e,rest:o,...xe.normalizeParams(n)})}var KA=q("ZodRecord",(e,t)=>{fC.init(e,t),xt.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function zc(e,t,r){return new KA({type:"record",keyType:e,valueType:t,...xe.normalizeParams(r)})}function soe(e,t,r){let a=In(e);return a._zod.values=void 0,new KA({type:"record",keyType:a,valueType:t,...xe.normalizeParams(r)})}var j6=q("ZodMap",(e,t)=>{pC.init(e,t),xt.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function loe(e,t,r){return new j6({type:"map",keyType:e,valueType:t,...xe.normalizeParams(r)})}var H6=q("ZodSet",(e,t)=>{mC.init(e,t),xt.init(e,t),e.min=(...r)=>e.check(Mc(...r)),e.nonempty=r=>e.check(Mc(1,r)),e.max=(...r)=>e.check(Hf(...r)),e.size=(...r)=>e.check(Ig(...r))});function uoe(e,t){return new H6({type:"set",valueType:e,...xe.normalizeParams(t)})}var Fg=q("ZodEnum",(e,t)=>{hC.init(e,t),xt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(a,n)=>{let o={};for(let i of a)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Fg({...t,checks:[],...xe.normalizeParams(n),entries:o})},e.exclude=(a,n)=>{let o={...t.entries};for(let i of a)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new Fg({...t,checks:[],...xe.normalizeParams(n),entries:o})}});function Fc(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Fg({type:"enum",entries:r,...xe.normalizeParams(t)})}function coe(e,t){return new Fg({type:"enum",entries:e,...xe.normalizeParams(t)})}var V6=q("ZodLiteral",(e,t)=>{gC.init(e,t),xt.init(e,t),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 Ce(e,t){return new V6({type:"literal",values:Array.isArray(e)?e:[e],...xe.normalizeParams(t)})}var q6=q("ZodFile",(e,t)=>{yC.init(e,t),xt.init(e,t),e.min=(r,a)=>e.check(Mc(r,a)),e.max=(r,a)=>e.check(Hf(r,a)),e.mime=(r,a)=>e.check(Rg(Array.isArray(r)?r:[r],a))});function doe(e){return mA(q6,e)}var XA=q("ZodTransform",(e,t)=>{wg.init(e,t),xt.init(e,t),e._zod.parse=(r,a)=>{r.addIssue=o=>{if(typeof o=="string")r.issues.push(xe.issue(o,r.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(xe.issue(i))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function JA(e){return new XA({type:"transform",transform:e})}var QA=q("ZodOptional",(e,t)=>{bC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _r(e){return new QA({type:"optional",innerType:e})}var G6=q("ZodNullable",(e,t)=>{vC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Cx(e){return new G6({type:"nullable",innerType:e})}function foe(e){return _r(Cx(e))}var Z6=q("ZodDefault",(e,t)=>{xC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function W6(e,t){return new Z6({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():xe.shallowClone(t)}})}var Y6=q("ZodPrefault",(e,t)=>{wC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function K6(e,t){return new Y6({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():xe.shallowClone(t)}})}var e2=q("ZodNonOptional",(e,t)=>{TC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function X6(e,t){return new e2({type:"nonoptional",innerType:e,...xe.normalizeParams(t)})}var J6=q("ZodSuccess",(e,t)=>{EC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function poe(e){return new J6({type:"success",innerType:e})}var Q6=q("ZodCatch",(e,t)=>{SC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eU(e,t){return new Q6({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var tU=q("ZodNaN",(e,t)=>{IC.init(e,t),xt.init(e,t)});function moe(e){return sA(tU,e)}var t2=q("ZodPipe",(e,t)=>{Tg.init(e,t),xt.init(e,t),e.in=t.in,e.out=t.out});function Ax(e,t){return new t2({type:"pipe",in:e,out:t})}var rU=q("ZodReadonly",(e,t)=>{_C.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function aU(e){return new rU({type:"readonly",innerType:e})}var nU=q("ZodTemplateLiteral",(e,t)=>{kC.init(e,t),xt.init(e,t)});function hoe(e,t){return new nU({type:"template_literal",parts:e,...xe.normalizeParams(t)})}var oU=q("ZodLazy",(e,t)=>{AC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.getter()});function Dx(e){return new oU({type:"lazy",getter:e})}var iU=q("ZodPromise",(e,t)=>{CC.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function goe(e){return new iU({type:"promise",innerType:e})}var Mx=q("ZodCustom",(e,t)=>{LC.init(e,t),xt.init(e,t)});function yoe(e){let t=new yr({check:"custom"});return t._zod.check=e,t}function Vg(e,t){return hA(Mx,e??(()=>!0),t)}function sU(e,t={}){return gA(Mx,e,t)}function lU(e){return yA(e)}function Bc(e,t={error:`Input not instance of ${e.name}`}){let r=new Mx({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...xe.normalizeParams(t)});return r._zod.bag.Class=e,r}var boe=(...e)=>bA({Pipe:t2,Boolean:jg,String:Bg,Transform:XA},...e);function voe(e){let t=Dx(()=>Zt([J(e),Os(),kt(),Nx(),Pa(t),zc(J(),t)]));return t}function xoe(e,t){return Ax(JA(e),t)}c();var woe={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 Toe(e){na({customError:e})}function Eoe(){return na().customError}var et;et||(et={});var r2={};nn(r2,{bigint:()=>koe,boolean:()=>_oe,date:()=>Coe,number:()=>Ioe,string:()=>Soe});c();function Soe(e){return DC(Bg,e)}function Ioe(e){return $C($g,e)}function _oe(e){return WC(jg,e)}function koe(e){return KC(Hg,e)}function Coe(e){return iA(Rx,e)}na(Xv());c();var a2=async e=>{let t=new FormData;t.append("file",e,"audio.wav");try{let r=await fetch(h.AZURE_URL_VOICE,{method:"POST",headers:{"api-key":h.AZURE_KEY_VOICE},body:t});if(!r.ok)throw new Error("Error en la transcripci\xF3n");return(await r.json()).text}catch(r){throw console.error("Error transcribiendo audio:",r),r}};c();var $c=O(ae()),Noe=({customBrandingName:e,customBrandingUrl:t})=>(0,$c.jsx)("a",{href:t||"https://horneross.com",target:"_blank",rel:"noopener noreferrer",className:"no-underline mx-auto block w-fit",children:(0,$c.jsx)("div",{className:"bg-white border border-gray-100 px-2 py-0 rounded-md",children:(0,$c.jsx)("div",{className:"truncate whitespace-nowrap py-0 my-0 h-[14px] flex justify-center items-center",children:(0,$c.jsxs)("span",{className:"text-[10px] font-light text-black py-0",children:["Powered by"," ",(0,$c.jsx)("span",{className:"text-[10px] font-light text-orange-800",children:e||"horneross.com"})]})})})}),fU=Noe;c();c();var SU=O(re());c();c();function pU(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=pU(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function jc(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=pU(e))&&(a&&(a+=" "),a+=t);return a}var mU=jc;var hU=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gU=jc,Wf=(e,t)=>r=>{var a;if(t?.variants==null)return gU(e,r?.class,r?.className);let{variants:n,defaultVariants:o}=t,i=Object.keys(n).map(u=>{let d=r?.[u],f=o?.[u];if(d===null)return null;let p=hU(d)||hU(f);return n[u][p]}),s=r&&Object.entries(r).reduce((u,d)=>{let[f,p]=d;return p===void 0||(u[f]=p),u},{}),l=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,d)=>{let{class:f,className:p,...m}=d;return Object.entries(m).every(g=>{let[x,w]=g;return Array.isArray(w)?w.includes({...o,...s}[x]):{...o,...s}[x]===w})?[...u,f,p]:u},[]);return gU(e,i,l,r?.class,r?.className)};c();c();c();var i2="-",Roe=e=>{let t=Doe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split(i2);return s[0]===""&&s.length!==1&&s.shift(),vU(s,t)||Ooe(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},vU=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?vU(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join(i2);return t.validators.find(({validator:i})=>i(o))?.classGroupId},yU=/^\[(.+)\]$/,Ooe=e=>{if(yU.test(e)){let t=yU.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Doe=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return Poe(Object.entries(e.classGroups),r).forEach(([o,i])=>{o2(i,a,o,t)}),a},o2=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:bU(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(Moe(n)){o2(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{o2(i,bU(t,o),r,a)})})},bU=(e,t)=>{let r=e;return t.split(i2).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Moe=e=>e.isThemeGetter,Poe=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,n]}):e,Uoe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},xU="!",zoe=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{let l=[],u=0,d=0,f;for(let w=0;w<s.length;w++){let b=s[w];if(u===0){if(b===n&&(a||s.slice(w,w+o)===t)){l.push(s.slice(d,w)),d=w+o;continue}if(b==="/"){f=w;continue}}b==="["?u++:b==="]"&&u--}let p=l.length===0?s:s.substring(d),m=p.startsWith(xU),g=m?p.substring(1):p,x=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:x}};return r?s=>r({className:s,parseClassName:i}):i},Foe=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Boe=e=>({cache:Uoe(e.cacheSize),parseClassName:zoe(e),...Roe(e)}),$oe=/\s+/,joe=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split($oe),s="";for(let l=i.length-1;l>=0;l-=1){let u=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=r(u),g=!!m,x=a(g?p.substring(0,m):p);if(!x){if(!g){s=u+(s.length>0?" "+s:s);continue}if(x=a(p),!x){s=u+(s.length>0?" "+s:s);continue}g=!1}let w=Foe(d).join(":"),b=f?w+xU:w,v=b+x;if(o.includes(v))continue;o.push(v);let T=n(x,g);for(let E=0;E<T.length;++E){let I=T[E];o.push(b+I)}s=u+(s.length>0?" "+s:s)}return s};function Hoe(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=wU(t))&&(a&&(a+=" "),a+=r);return a}var wU=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=wU(e[a]))&&(r&&(r+=" "),r+=t);return r};function Voe(e,...t){let r,a,n,o=i;function i(l){let u=t.reduce((d,f)=>f(d),e());return r=Boe(u),a=r.cache.get,n=r.cache.set,o=s,s(l)}function s(l){let u=a(l);if(u)return u;let d=joe(l,r);return n(l,d),d}return function(){return o(Hoe.apply(null,arguments))}}var vr=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},TU=/^\[(?:([a-z-]+):)?(.+)\]$/i,qoe=/^\d+\/\d+$/,Goe=new Set(["px","full","screen"]),Zoe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Woe=/\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$/,Yoe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Koe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xoe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ds=e=>Yf(e)||Goe.has(e)||qoe.test(e),ru=e=>Kf(e,"length",oie),Yf=e=>!!e&&!Number.isNaN(Number(e)),n2=e=>Kf(e,"number",Yf),qg=e=>!!e&&Number.isInteger(Number(e)),Joe=e=>e.endsWith("%")&&Yf(e.slice(0,-1)),gt=e=>TU.test(e),au=e=>Zoe.test(e),Qoe=new Set(["length","size","percentage"]),eie=e=>Kf(e,Qoe,EU),tie=e=>Kf(e,"position",EU),rie=new Set(["image","url"]),aie=e=>Kf(e,rie,sie),nie=e=>Kf(e,"",iie),Gg=()=>!0,Kf=(e,t,r)=>{let a=TU.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},oie=e=>Woe.test(e)&&!Yoe.test(e),EU=()=>!1,iie=e=>Koe.test(e),sie=e=>Xoe.test(e);var lie=()=>{let e=vr("colors"),t=vr("spacing"),r=vr("blur"),a=vr("brightness"),n=vr("borderColor"),o=vr("borderRadius"),i=vr("borderSpacing"),s=vr("borderWidth"),l=vr("contrast"),u=vr("grayscale"),d=vr("hueRotate"),f=vr("invert"),p=vr("gap"),m=vr("gradientColorStops"),g=vr("gradientColorStopPositions"),x=vr("inset"),w=vr("margin"),b=vr("opacity"),v=vr("padding"),T=vr("saturate"),E=vr("scale"),I=vr("sepia"),_=vr("skew"),A=vr("space"),N=vr("translate"),F=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",gt,t],z=()=>[gt,t],D=()=>["",Ds,ru],$=()=>["auto",Yf,gt],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],Ee=()=>["","0",gt],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_e=()=>[Yf,gt];return{cacheSize:500,separator:":",theme:{colors:[Gg],spacing:[Ds,ru],blur:["none","",au,gt],brightness:_e(),borderColor:[e],borderRadius:["none","","full",au,gt],borderSpacing:z(),borderWidth:D(),contrast:_e(),grayscale:Ee(),hueRotate:_e(),invert:Ee(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[Joe,ru],inset:ne(),margin:ne(),opacity:_e(),padding:z(),saturate:_e(),scale:_e(),sepia:Ee(),skew:_e(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",gt]}],container:["container"],columns:[{columns:[au]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:[...H(),gt]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qg,gt]}],basis:[{basis:ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",gt]}],grow:[{grow:Ee()}],shrink:[{shrink:Ee()}],order:[{order:["first","last","none",qg,gt]}],"grid-cols":[{"grid-cols":[Gg]}],"col-start-end":[{col:["auto",{span:["full",qg,gt]},gt]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Gg]}],"row-start-end":[{row:["auto",{span:[qg,gt]},gt]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",gt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",gt]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",gt,t]}],"min-w":[{"min-w":[gt,t,"min","max","fit"]}],"max-w":[{"max-w":[gt,t,"none","full","min","max","fit","prose",{screen:[au]},au]}],h:[{h:[gt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[gt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[gt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[gt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",au,ru]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",n2]}],"font-family":[{font:[Gg]}],"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",gt]}],"line-clamp":[{"line-clamp":["none",Yf,n2]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ds,gt]}],"list-image":[{"list-image":["none",gt]}],"list-style-type":[{list:["none","disc","decimal",gt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ds,ru]}],"underline-offset":[{"underline-offset":["auto",Ds,gt]}],"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:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",gt]}],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",gt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),tie]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",eie]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:V()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Ds,gt]}],"outline-w":[{outline:[Ds,ru]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ds,ru]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",au,nie]}],"shadow-color":[{shadow:[Gg]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",au,gt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[T]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"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",gt]}],duration:[{duration:_e()}],ease:[{ease:["linear","in","out","in-out",gt]}],delay:[{delay:_e()}],animate:[{animate:["none","spin","ping","pulse","bounce",gt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[qg,gt]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",gt]}],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",gt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",gt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ds,ru,n2]}],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 Ux=Voe(lie);function nt(...e){return Ux(jc(e))}var Zg=O(ae()),uie=Wf("animate-spin",{variants:{size:{default:"size-4",sm:"size-3",lg:"size-5",xl:"size-6"},variant:{default:"text-primary",secondary:"text-secondary-foreground",destructive:"text-destructive",muted:"text-muted-foreground"}},defaultVariants:{size:"default",variant:"default"}}),s2=SU.forwardRef(({className:e,size:t,variant:r,label:a="Loading...",...n},o)=>(0,Zg.jsxs)("div",{ref:o,role:"status","aria-label":a,className:nt("inline-flex items-center justify-center",e),...n,children:[(0,Zg.jsx)(ht,{className:nt(uie({size:t,variant:r}))}),(0,Zg.jsx)("span",{className:"sr-only",children:a})]}));s2.displayName="Progress";c();var IU=O(re());var _U=O(ae()),cie=Wf("flex",{variants:{direction:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},spacing:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{direction:"column",spacing:2,align:"stretch",justify:"start"}}),Xf=IU.forwardRef(({className:e,direction:t,spacing:r,align:a,justify:n,fullWidth:o,sx:i,children:s,...l},u)=>(0,_U.jsx)("div",{ref:u,className:nt(cie({direction:t,spacing:r,align:a,justify:n}),o&&"w-full",e),...l,children:s}));Xf.displayName="Stack";var l2=O(ae());function die({progressProps:e,rootProps:t,className:r}){return(0,l2.jsx)(Xf,{align:"center",justify:"center",className:nt("w-full h-full",r,t?.className),...t,children:(0,l2.jsx)(s2,{size:"default",...e})})}var kU=die;c();var Dr=O(re());c();var Hc=O(re());var nu=O(ae()),CU=[{id:"task",name:"/task",description:"Crear tarea de seguimiento",icon:Kl,category:"utility"},{id:"analyze",name:"/analyze",description:"Analizar conversaci\xF3n o datos",icon:Hl,category:"data"},{id:"mode",name:"/mode",description:"Cambiar modo del agente",icon:Wl,category:"agent"},{id:"handoff",name:"/handoff",description:"Transferir a otro agente",icon:Gh,category:"agent"}],AU=({query:e,onSelect:t,onClose:r,selectedIndex:a=0,onIndexChange:n})=>{let o=(0,Hc.useRef)(null),i=(0,Hc.useMemo)(()=>{let s=e.toLowerCase().replace("/","");return s?CU.filter(l=>l.name.toLowerCase().includes(s)||l.description.toLowerCase().includes(s)||l.shortcut?.toLowerCase().includes(s)):CU},[e]);return(0,Hc.useEffect)(()=>{o.current&&o.current.querySelector('[data-selected="true"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})},[a]),(0,Hc.useEffect)(()=>{let s=l=>{l.key==="ArrowDown"?(l.preventDefault(),n?.(Math.min(a+1,i.length-1))):l.key==="ArrowUp"?(l.preventDefault(),n?.(Math.max(a-1,0))):l.key==="Enter"?(l.preventDefault(),i[a]&&t(i[a])):l.key==="Escape"&&(l.preventDefault(),r())};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[a,i,t,r,n]),i.length===0?null:(0,nu.jsx)("div",{ref:o,className:"w-full bg-white dark:bg-[#303030] border border-orange-200 dark:border-[#242426] rounded-2xl overflow-hidden animate-in fade-in slide-in-from-bottom-2 duration-150",children:(0,nu.jsx)("div",{className:"py-1.5 px-2",children:i.map((s,l)=>{let u=s.icon,d=l===a;return(0,nu.jsxs)("button",{"data-selected":d,onClick:()=>t(s),onMouseEnter:()=>n?.(l),className:`w-full px-2.5 py-2 flex items-center gap-2.5 rounded-lg transition-all text-left ${d?"bg-orange-500/20 text-neutral-900 dark:text-white":"hover:bg-orange-50 dark:hover:bg-white/5 text-neutral-700 dark:text-gray-300"}`,children:[(0,nu.jsx)(u,{className:`w-4 h-4 flex-shrink-0 ${d?"text-orange-500 dark:text-orange-400":"text-neutral-500 dark:text-gray-400"}`}),(0,nu.jsx)("span",{className:`font-mono text-sm flex-1 ${d?"text-neutral-900 dark:text-white font-medium":"text-neutral-700 dark:text-gray-300"}`,children:s.name}),d&&(0,nu.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-orange-500 dark:bg-orange-400 flex-shrink-0 animate-pulse"})]},s.id)})})})};c();var Vc=O(re());var Hi=O(ae()),LU=({query:e,agents:t,onSelect:r,onClose:a,selectedIndex:n=0,onIndexChange:o})=>{let i=(0,Vc.useRef)(null),s=(0,Vc.useMemo)(()=>{let l=e.toLowerCase().replace("@","");return l?t.filter(u=>u.name.toLowerCase().includes(l)||u.description?.toLowerCase().includes(l)||u.id.toLowerCase().includes(l)):t},[e,t]);return(0,Vc.useEffect)(()=>{i.current&&i.current.querySelector('[data-selected="true"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})},[n]),(0,Vc.useEffect)(()=>{let l=u=>{u.key==="ArrowDown"?(u.preventDefault(),o?.(Math.min(n+1,s.length-1))):u.key==="ArrowUp"?(u.preventDefault(),o?.(Math.max(n-1,0))):u.key==="Enter"?(u.preventDefault(),s[n]&&r(s[n])):u.key==="Escape"&&(u.preventDefault(),a())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n,s,r,a,o]),s.length===0?null:(0,Hi.jsx)("div",{ref:i,className:"w-full bg-white dark:bg-[#303030] border border-orange-200 dark:border-[#242426] rounded-2xl overflow-hidden animate-in fade-in slide-in-from-bottom-2 duration-150",children:(0,Hi.jsx)("div",{className:"py-1.5 px-2",children:s.map((l,u)=>{let d=u===n,f=l.type==="system"?ko:l.type==="user"?ig:Es;return(0,Hi.jsxs)("button",{"data-selected":d,onClick:()=>r(l),onMouseEnter:()=>o?.(u),className:`w-full px-2.5 py-2 flex items-center gap-2.5 rounded-lg transition-all text-left ${d?"bg-orange-500/20 text-neutral-900 dark:text-white":"hover:bg-orange-50 dark:hover:bg-white/5 text-neutral-700 dark:text-gray-300"}`,children:[(0,Hi.jsx)("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 overflow-hidden",style:{backgroundColor:l.avatarColor||"#404042"},children:l.avatarUrl?(0,Hi.jsx)("img",{src:l.avatarUrl,alt:l.name,className:"w-full h-full object-cover"}):(0,Hi.jsx)(f,{className:"w-3 h-3 text-white"})}),(0,Hi.jsxs)("span",{className:`font-mono text-sm flex-1 ${d?"text-neutral-900 dark:text-white font-medium":"text-neutral-700 dark:text-gray-300"}`,children:["@",l.name]}),d&&(0,Hi.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-orange-500 dark:bg-orange-400 flex-shrink-0 animate-pulse"})]},l.id)})})})};c();var sB=O(re());c();var ga=O(re(),1);c();var RU=O(re(),1);function NU(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function u2(...e){return t=>{let r=!1,a=e.map(n=>{let o=NU(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){let o=a[n];typeof o=="function"?o():NU(e[n],null)}}}}function si(...e){return RU.useCallback(u2(...e),e)}var Jf=O(ae(),1);function c2(e){let t=fie(e),r=ga.forwardRef((a,n)=>{let{children:o,...i}=a,s=ga.Children.toArray(o),l=s.find(pie);if(l){let u=l.props.children,d=s.map(f=>f===l?ga.Children.count(u)>1?ga.Children.only(null):ga.isValidElement(u)?u.props.children:null:f);return(0,Jf.jsx)(t,{...i,ref:n,children:ga.isValidElement(u)?ga.cloneElement(u,void 0,d):null})}return(0,Jf.jsx)(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}var d2=c2("Slot");function fie(e){let t=ga.forwardRef((r,a)=>{let{children:n,...o}=r;if(ga.isValidElement(n)){let i=hie(n),s=mie(o,n.props);return n.type!==ga.Fragment&&(s.ref=a?u2(a,i):i),ga.cloneElement(n,s)}return ga.Children.count(n)>1?ga.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var OU=Symbol("radix.slottable");function DU(e){let t=({children:r})=>(0,Jf.jsx)(Jf.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=OU,t}function pie(e){return ga.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===OU}function mie(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...s)=>{let l=o(...s);return n(...s),l}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function hie(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}c();c();var Yg=O(ae(),1),Vi=O(re(),1);c();var MU=O(re(),1),Qf=(0,MU.createContext)({});c();var PU=O(re(),1);function ep(e){let t=(0,PU.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();var p2=O(ae(),1),$U=O(re(),1),qc=O(re(),1);c();var UU=O(re(),1),ou=(0,UU.createContext)(null);c();var FU=O(ae(),1),zx=O(re(),1),Ms=O(re(),1);c();var zU=O(re(),1),tp=(0,zU.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var f2=class extends zx.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let a=this.props.sizeRef.current;a.height=r.offsetHeight||0,a.width=r.offsetWidth||0,a.top=r.offsetTop,a.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function BU({children:e,isPresent:t}){let r=(0,Ms.useId)(),a=(0,Ms.useRef)(null),n=(0,Ms.useRef)({width:0,height:0,top:0,left:0}),{nonce:o}=(0,Ms.useContext)(tp);return(0,Ms.useInsertionEffect)(()=>{let{width:i,height:s,top:l,left:u}=n.current;if(t||!a.current||!i||!s)return;a.current.dataset.motionPopId=r;let d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
52
|
+
[data-motion-pop-id="${r}"] {
|
|
53
|
+
position: absolute !important;
|
|
54
|
+
width: ${i}px !important;
|
|
55
|
+
height: ${s}px !important;
|
|
56
|
+
top: ${l}px !important;
|
|
57
|
+
left: ${u}px !important;
|
|
58
|
+
}
|
|
59
|
+
`),()=>{document.head.removeChild(d)}},[t]),(0,FU.jsx)(f2,{isPresent:t,childRef:a,sizeRef:n,children:zx.cloneElement(e,{ref:a})})}var jU=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:o,mode:i})=>{let s=ep(gie),l=(0,qc.useId)(),u=(0,qc.useCallback)(f=>{s.set(f,!0);for(let p of s.values())if(!p)return;a&&a()},[s,a]),d=(0,qc.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:n,onExitComplete:u,register:f=>(s.set(f,!1),()=>s.delete(f))}),o?[Math.random(),u]:[r,u]);return(0,qc.useMemo)(()=>{s.forEach((f,p)=>s.set(p,!1))},[r]),$U.useEffect(()=>{!r&&!s.size&&a&&a()},[r]),i==="popLayout"&&(e=(0,p2.jsx)(BU,{isPresent:r,children:e})),(0,p2.jsx)(ou.Provider,{value:d,children:e})};function gie(){return new Map}c();var iu=O(re(),1);function Fx(e=!0){let t=(0,iu.useContext)(ou);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:a,register:n}=t,o=(0,iu.useId)();(0,iu.useEffect)(()=>{e&&n(o)},[e]);let i=(0,iu.useCallback)(()=>e&&a&&a(o),[o,a,e]);return!r&&a?[!1,i]:[!0]}c();var Bx=O(re(),1),Wg=e=>e.key||"";function m2(e){let t=[];return Bx.Children.forEach(e,r=>{(0,Bx.isValidElement)(r)&&t.push(r)}),t}c();var $x=O(re(),1);c();var rp=typeof window<"u";var jx=rp?$x.useLayoutEffect:$x.useEffect;var Vt=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:n=!0,mode:o="sync",propagate:i=!1})=>{let[s,l]=Fx(i),u=(0,Vi.useMemo)(()=>m2(e),[e]),d=i&&!s?[]:u.map(Wg),f=(0,Vi.useRef)(!0),p=(0,Vi.useRef)(u),m=ep(()=>new Map),[g,x]=(0,Vi.useState)(u),[w,b]=(0,Vi.useState)(u);jx(()=>{f.current=!1,p.current=u;for(let E=0;E<w.length;E++){let I=Wg(w[E]);d.includes(I)?m.delete(I):m.get(I)!==!0&&m.set(I,!1)}},[w,d.length,d.join("-")]);let v=[];if(u!==g){let E=[...u];for(let I=0;I<w.length;I++){let _=w[I],A=Wg(_);d.includes(A)||(E.splice(I,0,_),v.push(_))}o==="wait"&&v.length&&(E=v),b(m2(E)),x(u);return}let{forceRender:T}=(0,Vi.useContext)(Qf);return(0,Yg.jsx)(Yg.Fragment,{children:w.map(E=>{let I=Wg(E),_=i&&!s?!1:u===w||d.includes(I),A=()=>{if(m.has(I))m.set(I,!0);else return;let N=!0;m.forEach(F=>{F||(N=!1)}),N&&(T?.(),b(p.current),i&&l?.(),a&&a())};return(0,Yg.jsx)(jU,{isPresent:_,initial:!f.current||r?void 0:!1,custom:_?void 0:t,presenceAffectsLayout:n,mode:o,onExitComplete:_?void 0:A,children:E},I)})})};c();c();c();c();var er=e=>e;var Ps=er,li=er;c();function Gc(e){let t;return()=>(t===void 0&&(t=e()),t)}c();var Qn=(e,t,r)=>{let a=t-e;return a===0?1:(r-e)/a};c();var Wr=e=>e*1e3,Ua=e=>e/1e3;c();c();var ap={skipAnimations:!1,useManualTiming:!1};c();function HU(e){let t=new Set,r=new Set,a=!1,n=!1,o=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1};function s(u){o.has(u)&&(l.schedule(u),e()),u(i)}let l={schedule:(u,d=!1,f=!1)=>{let m=f&&a?t:r;return d&&o.add(u),m.has(u)||m.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(i=u,a){n=!0;return}a=!0,[t,r]=[r,t],t.forEach(s),t.clear(),a=!1,n&&(n=!1,l.process(u))}};return l}var Hx=["read","resolveKeyframes","update","preRender","render","postRender"],yie=40;function Vx(e,t){let r=!1,a=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=Hx.reduce((b,v)=>(b[v]=HU(o),b),{}),{read:s,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:p}=i,m=()=>{let b=ap.useManualTiming?n.timestamp:performance.now();r=!1,n.delta=a?1e3/60:Math.max(Math.min(b-n.timestamp,yie),1),n.timestamp=b,n.isProcessing=!0,s.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),n.isProcessing=!1,r&&t&&(a=!1,e(m))},g=()=>{r=!0,a=!0,n.isProcessing||e(m)};return{schedule:Hx.reduce((b,v)=>{let T=i[v];return b[v]=(E,I=!1,_=!1)=>(r||g(),T.schedule(E,I,_)),b},{}),cancel:b=>{for(let v=0;v<Hx.length;v++)i[Hx[v]].cancel(b)},state:n,steps:i}}var{schedule:vt,cancel:eo,state:Yr,steps:qx}=Vx(typeof requestAnimationFrame<"u"?requestAnimationFrame:er,!0);c();var VU=O(re(),1),Gx=(0,VU.createContext)({strict:!1});c();c();var qU={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Us={};for(let e in qU)Us[e]={isEnabled:t=>qU[e].some(r=>!!t[r])};function GU(e){for(let t in e)Us[t]={...Us[t],...e[t]}}c();c();var bie=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Kg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bie.has(e)}var XU=e=>!Kg(e);function wie(e){e&&(XU=t=>t.startsWith("on")?!Kg(t):e(t))}try{wie((KU(),ZX(YU)).default)}catch{}function JU(e,t,r){let a={};for(let n in e)n==="values"&&typeof e.values=="object"||(XU(n)||r===!0&&Kg(n)||!t&&!Kg(n)||e.draggable&&n.startsWith("onDrag"))&&(a[n]=e[n]);return a}c();function QU(e){if(typeof Proxy>"u")return e;let t=new Map,r=(...a)=>e(...a);return new Proxy(r,{get:(a,n)=>n==="create"?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}c();c();var Jx=O(ae(),1);var ip=O(re(),1);c();var ez=O(re(),1),su=(0,ez.createContext)({});c();var Yx=O(re(),1);c();c();function zs(e){return typeof e=="string"||Array.isArray(e)}c();c();function lu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}c();var Zx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xg=["initial",...Zx];function Zc(e){return lu(e.animate)||Xg.some(t=>zs(e[t]))}function Wx(e){return!!(Zc(e)||e.variants)}function tz(e,t){if(Zc(e)){let{initial:r,animate:a}=e;return{initial:r===!1||zs(r)?r:void 0,animate:zs(a)?a:void 0}}return e.inherit!==!1?t:{}}function az(e){let{initial:t,animate:r}=tz(e,(0,Yx.useContext)(su));return(0,Yx.useMemo)(()=>({initial:t,animate:r}),[rz(t),rz(r)])}function rz(e){return Array.isArray(e)?e.join(" "):e}c();var nz=Symbol.for("motionComponentSymbol");c();var oz=O(re(),1);c();function Fs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function iz(e,t,r){return(0,oz.useCallback)(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),r&&(typeof r=="function"?r(a):Fs(r)&&(r.current=a))},[t])}c();var kn=O(re(),1);c();c();var np=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Tie="framerAppearId",Kx="data-"+np(Tie);c();var{schedule:op,cancel:zUe}=Vx(queueMicrotask,!1);c();var sz=O(re(),1),Xx=(0,sz.createContext)({});function lz(e,t,r,a,n){var o,i;let{visualElement:s}=(0,kn.useContext)(su),l=(0,kn.useContext)(Gx),u=(0,kn.useContext)(ou),d=(0,kn.useContext)(tp).reducedMotion,f=(0,kn.useRef)(null);a=a||l.renderer,!f.current&&a&&(f.current=a(e,{visualState:t,parent:s,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));let p=f.current,m=(0,kn.useContext)(Xx);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&Eie(f.current,r,n,m);let g=(0,kn.useRef)(!1);(0,kn.useInsertionEffect)(()=>{p&&g.current&&p.update(r,u)});let x=r[Kx],w=(0,kn.useRef)(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,x)));return jx(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),op.render(p.render),w.current&&p.animationState&&p.animationState.animateChanges())}),(0,kn.useEffect)(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),w.current=!1))}),p}function Eie(e,t,r,a){let{layoutId:n,layout:o,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:uz(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!i||s&&Fs(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:a,layoutScroll:l,layoutRoot:u})}function uz(e){if(e)return e.options.allowProjection!==!1?e.projection:uz(e.parent)}function cz({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:a,Component:n}){var o,i;e&&GU(e);function s(u,d){let f,p={...(0,ip.useContext)(tp),...u,layoutId:Sie(u)},{isStatic:m}=p,g=az(u),x=a(u,m);if(!m&&rp){Iie(p,e);let w=_ie(p);f=w.MeasureLayout,g.visualElement=lz(n,x,p,t,w.ProjectionNode)}return(0,Jx.jsxs)(su.Provider,{value:g,children:[f&&g.visualElement?(0,Jx.jsx)(f,{visualElement:g.visualElement,...p}):null,r(n,u,iz(x,g.visualElement,d),x,m,g.visualElement)]})}s.displayName=`motion.${typeof n=="string"?n:`create(${(i=(o=n.displayName)!==null&&o!==void 0?o:n.name)!==null&&i!==void 0?i:""})`}`;let l=(0,ip.forwardRef)(s);return l[nz]=n,l}function Sie({layoutId:e}){let t=(0,ip.useContext)(Qf).id;return t&&e!==void 0?t+"-"+e:e}function Iie(e,t){let r=(0,ip.useContext)(Gx).strict}function _ie(e){let{drag:t,layout:r}=Us;if(!t&&!r)return{};let a={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}c();c();var dz=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sp(e){return typeof e!="string"||e.includes("-")?!1:!!(dz.indexOf(e)>-1||/[A-Z]/u.test(e))}c();c();var h2=O(re(),1);c();function fz(e){let t=[{},{}];return e?.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function lp(e,t,r,a){if(typeof t=="function"){let[n,o]=fz(a);t=t(r!==void 0?r:e.custom,n,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,o]=fz(a);t=t(r!==void 0?r:e.custom,n,o)}return t}c();c();c();var Jg=e=>Array.isArray(e);var pz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mz=e=>Jg(e)?e[e.length-1]||0:e;c();var dr=e=>!!(e&&e.getVelocity);function up(e){let t=dr(e)?e.get():e;return pz(t)?t.toValue():t}function kie({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},a,n,o){let i={latestValues:Cie(a,n,o,e),renderState:t()};return r&&(i.onMount=s=>r({props:a,current:s,...i}),i.onUpdate=s=>r(s)),i}var Qx=e=>(t,r)=>{let a=(0,h2.useContext)(su),n=(0,h2.useContext)(ou),o=()=>kie(e,t,a,n);return r?o():ep(o)};function Cie(e,t,r,a){let n={},o=a(e,{});for(let p in o)n[p]=up(o[p]);let{initial:i,animate:s}=e,l=Zc(e),u=Wx(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let d=r?r.initial===!1:!1;d=d||i===!1;let f=d?s:i;if(f&&typeof f!="boolean"&&!lu(f)){let p=Array.isArray(f)?f:[f];for(let m=0;m<p.length;m++){let g=lp(e,p[m]);if(g){let{transitionEnd:x,transition:w,...b}=g;for(let v in b){let T=b[v];if(Array.isArray(T)){let E=d?T.length-1:0;T=T[E]}T!==null&&(n[v]=T)}for(let v in x)n[v]=x[v]}}}return n}c();var qi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cn=new Set(qi);c();c();c();var hz=e=>t=>typeof t=="string"&&t.startsWith(e),e1=hz("--"),Aie=hz("var(--"),cp=e=>Aie(e)?Lie.test(e.split("/*")[0].trim()):!1,Lie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;c();var t1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();c();c();var za=(e,t,r)=>r>t?t:r<e?e:r;var Gi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Bs={...Gi,transform:e=>za(0,1,e)},Qg={...Gi,default:1};c();var e0=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zi=e0("deg"),un=e0("%"),Fe=e0("px"),gz=e0("vh"),yz=e0("vw"),g2={...un,parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)};c();var bz={borderWidth:Fe,borderTopWidth:Fe,borderRightWidth:Fe,borderBottomWidth:Fe,borderLeftWidth:Fe,borderRadius:Fe,radius:Fe,borderTopLeftRadius:Fe,borderTopRightRadius:Fe,borderBottomRightRadius:Fe,borderBottomLeftRadius:Fe,width:Fe,maxWidth:Fe,height:Fe,maxHeight:Fe,top:Fe,right:Fe,bottom:Fe,left:Fe,padding:Fe,paddingTop:Fe,paddingRight:Fe,paddingBottom:Fe,paddingLeft:Fe,margin:Fe,marginTop:Fe,marginRight:Fe,marginBottom:Fe,marginLeft:Fe,backgroundPositionX:Fe,backgroundPositionY:Fe};c();var vz={rotate:Zi,rotateX:Zi,rotateY:Zi,rotateZ:Zi,scale:Qg,scaleX:Qg,scaleY:Qg,scaleZ:Qg,skew:Zi,skewX:Zi,skewY:Zi,distance:Fe,translateX:Fe,translateY:Fe,translateZ:Fe,x:Fe,y:Fe,z:Fe,perspective:Fe,transformPerspective:Fe,opacity:Bs,originX:g2,originY:g2,originZ:Fe};c();var y2={...Gi,transform:Math.round};var dp={...bz,...vz,zIndex:y2,size:Fe,fillOpacity:Bs,strokeOpacity:Bs,numOctaves:y2};c();var Nie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rie=qi.length;function xz(e,t,r){let a="",n=!0;for(let o=0;o<Rie;o++){let i=qi[o],s=e[i];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(i.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||r){let u=t1(s,dp[i]);if(!l){n=!1;let d=Nie[i]||i;a+=`${d}(${u}) `}r&&(t[i]=u)}}return a=a.trim(),r?a=r(t,n?"":a):n&&(a="none"),a}function fp(e,t,r){let{style:a,vars:n,transformOrigin:o}=e,i=!1,s=!1;for(let l in t){let u=t[l];if(Cn.has(l)){i=!0;continue}else if(e1(l)){n[l]=u;continue}else{let d=t1(u,dp[l]);l.startsWith("origin")?(s=!0,o[l]=d):a[l]=d}}if(t.transform||(i||r?a.transform=xz(t,e.transform,r):a.transform&&(a.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:d=0}=o;a.transformOrigin=`${l} ${u} ${d}`}}c();var Oie={offset:"stroke-dashoffset",array:"stroke-dasharray"},Die={offset:"strokeDashoffset",array:"strokeDasharray"};function wz(e,t,r=1,a=0,n=!0){e.pathLength=1;let o=n?Oie:Die;e[o.offset]=Fe.transform(-a);let i=Fe.transform(t),s=Fe.transform(r);e[o.array]=`${i} ${s}`}c();function Tz(e,t,r){return typeof e=="string"?e:Fe.transform(t+r*e)}function Ez(e,t,r){let a=Tz(t,e.x,e.width),n=Tz(r,e.y,e.height);return`${a} ${n}`}function pp(e,{attrX:t,attrY:r,attrScale:a,originX:n,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...u},d,f){if(fp(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:m,dimensions:g}=e;p.transform&&(g&&(m.transform=p.transform),delete p.transform),g&&(n!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=Ez(g,n!==void 0?n:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),a!==void 0&&(p.scale=a),i!==void 0&&wz(p,i,s,l,!1)}c();c();var mp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var r1=()=>({...mp(),attrs:{}});c();var hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";c();c();function a1(e,{style:t,vars:r},a,n){Object.assign(e.style,t,n&&n.getProjectionStyles(a));for(let o in r)e.style.setProperty(o,r[o])}c();var n1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function o1(e,t,r,a){a1(e,t,void 0,a);for(let n in t.attrs)e.setAttribute(n1.has(n)?n:np(n),t.attrs[n])}c();c();c();c();var gp={};function Sz(e){Object.assign(gp,e)}function i1(e,{layout:t,layoutId:r}){return Cn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!gp[e]||e==="opacity")}function yp(e,t,r){var a;let{style:n}=e,o={};for(let i in n)(dr(n[i])||t.style&&dr(t.style[i])||i1(i,e)||((a=r?.getValue(i))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(o[i]=n[i]);return o}function s1(e,t,r){let a=yp(e,t,r);for(let n in e)if(dr(e[n])||dr(t[n])){let o=qi.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;a[o]=e[n]}return a}function Mie(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var Iz=["x","y","width","height","cx","cy","r"],_z={useVisualState:Qx({scrapeMotionValuesFromProps:s1,createRenderState:r1,onUpdate:({props:e,prevProps:t,current:r,renderState:a,latestValues:n})=>{if(!r)return;let o=!!e.drag;if(!o){for(let s in n)if(Cn.has(s)){o=!0;break}}if(!o)return;let i=!t;if(t)for(let s=0;s<Iz.length;s++){let l=Iz[s];e[l]!==t[l]&&(i=!0)}i&&vt.read(()=>{Mie(r,a),vt.render(()=>{pp(a,n,hp(r.tagName),e.transformTemplate),o1(r,a)})})}})};c();var kz={useVisualState:Qx({scrapeMotionValuesFromProps:yp,createRenderState:mp})};c();var bp=O(re(),1);c();var Cz=O(re(),1);function b2(e,t,r){for(let a in t)!dr(t[a])&&!i1(a,r)&&(e[a]=t[a])}function Pie({transformTemplate:e},t){return(0,Cz.useMemo)(()=>{let r=mp();return fp(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Uie(e,t){let r=e.style||{},a={};return b2(a,r,e),Object.assign(a,Pie(e,t)),a}function Az(e,t){let r={},a=Uie(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}c();var Lz=O(re(),1);function Nz(e,t,r,a){let n=(0,Lz.useMemo)(()=>{let o=r1();return pp(o,t,hp(a),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};b2(o,e.style,e),n.style={...o,...n.style}}return n}function Rz(e=!1){return(r,a,n,{latestValues:o},i)=>{let l=(sp(r)?Nz:Az)(a,o,i,r),u=JU(a,typeof r=="string",e),d=r!==bp.Fragment?{...u,...l,ref:n}:{},{children:f}=a,p=(0,bp.useMemo)(()=>dr(f)?f.get():f,[f]);return(0,bp.createElement)(r,{...d,children:p})}}function Oz(e,t){return function(a,{forwardMotionProps:n}={forwardMotionProps:!1}){let i={...sp(a)?_z:kz,preloadedFeatures:e,useRender:Rz(n),createVisualElement:t,Component:a};return cz(i)}}c();c();c();c();c();c();function v2(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}c();function uu(e,t,r){let a=e.getProps();return lp(a,t,r!==void 0?r:a.custom,e)}c();c();c();c();c();c();var x2=Gc(()=>window.ScrollTimeline!==void 0);var t0=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let a=0;a<this.animations.length;a++)this.animations[a][t]=r}attachTimeline(t,r){let a=this.animations.map(n=>{if(x2()&&n.attachTimeline)return n.attachTimeline(t);if(typeof r=="function")return r(n)});return()=>{a.forEach((n,o)=>{n&&n(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var r0=class extends t0{then(t,r){return Promise.all(this.animations).then(t).catch(r)}};c();function cu(e,t){return e?e[t]||e.default||e:void 0}c();function vp(e){let t=0,r=50,a=e.next(t);for(;!a.done&&t<2e4;)t+=r,a=e.next(t);return t>=2e4?1/0:t}c();c();function du(e){return typeof e=="function"}c();c();function a0(e,t){e.timeline=t,e.onfinish=null}c();c();var xp=e=>Array.isArray(e)&&typeof e[0]=="number";c();c();c();var T2={linearEasing:void 0};function Dz(e,t){let r=Gc(e);return()=>{var a;return(a=T2[t])!==null&&a!==void 0?a:r()}}var fu=Dz(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");c();var n0=(e,t,r=10)=>{let a="",n=Math.max(Math.round(t/r),2);for(let o=0;o<n;o++)a+=e(Qn(0,n-1,o))+", ";return`linear(${a.substring(0,a.length-2)})`};function u1(e){return!!(typeof e=="function"&&fu()||!e||typeof e=="string"&&(e in l1||fu())||xp(e)||Array.isArray(e)&&e.every(u1))}var wp=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`,l1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wp([0,.65,.55,1]),circOut:wp([.55,0,1,.45]),backIn:wp([.31,.01,.66,-.59]),backOut:wp([.33,1.53,.69,.99])};function Tp(e,t){if(e)return typeof e=="function"&&fu()?n0(e,t):xp(e)?wp(e):Array.isArray(e)?e.map(r=>Tp(r,t)||l1.easeOut):l1[e]}c();c();var to={x:!1,y:!1};function Ep(){return to.x||to.y}c();c();function E2(e,t,r){var a;if(e instanceof Element)return[e];if(typeof e=="string"){let n=document;t&&(n=t.current);let o=(a=r?.[e])!==null&&a!==void 0?a:n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function c1(e,t){let r=E2(e),a=new AbortController,n={passive:!0,...t,signal:a.signal};return[r,n,()=>a.abort()]}function Mz(e){return t=>{t.pointerType==="touch"||Ep()||e(t)}}function S2(e,t,r={}){let[a,n,o]=c1(e,r),i=Mz(s=>{let{target:l}=s,u=t(s);if(typeof u!="function"||!l)return;let d=Mz(f=>{u(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,n)});return a.forEach(s=>{s.addEventListener("pointerenter",i,n)}),o}c();c();var d1=(e,t)=>t?e===t?!0:d1(e,t.parentElement):!1;c();var Wc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;c();var zie=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pz(e){return zie.has(e.tagName)||e.tabIndex!==-1}c();c();var Yc=new WeakSet;function Uz(e){return t=>{t.key==="Enter"&&e(t)}}function I2(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var zz=(e,t)=>{let r=e.currentTarget;if(!r)return;let a=Uz(()=>{if(Yc.has(r))return;I2(r,"down");let n=Uz(()=>{I2(r,"up")}),o=()=>I2(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function Fz(e){return Wc(e)&&!Ep()}function _2(e,t,r={}){let[a,n,o]=c1(e,r),i=s=>{let l=s.currentTarget;if(!Fz(s)||Yc.has(l))return;Yc.add(l);let u=t(s),d=(m,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!Fz(m)||!Yc.has(l))&&(Yc.delete(l),typeof u=="function"&&u(m,{success:g}))},f=m=>{d(m,r.useGlobalTarget||d1(l,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",p,n)};return a.forEach(s=>{!Pz(s)&&s.getAttribute("tabindex")===null&&(s.tabIndex=0),(r.useGlobalTarget?window:s).addEventListener("pointerdown",i,n),s.addEventListener("focus",u=>zz(u,n),n)}),o}c();c();c();c();c();c();c();c();c();c();function k2(e){return e==="x"||e==="y"?to[e]?null:(to[e]=!0,()=>{to[e]=!1}):to.x||to.y?null:(to.x=to.y=!0,()=>{to.x=to.y=!1})}c();var f1=new Set(["width","height","top","left","right","bottom",...qi]);c();c();c();var p1;function Bie(){p1=void 0}var Wa={now:()=>(p1===void 0&&Wa.set(Yr.isProcessing||ap.useManualTiming?Yr.timestamp:performance.now()),p1),set:e=>{p1=e,queueMicrotask(Bie)}};c();c();function Sp(e,t){e.indexOf(t)===-1&&e.push(t)}function Ip(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var pu=class{constructor(){this.subscriptions=[]}add(t){return Sp(this.subscriptions,t),()=>Ip(this.subscriptions,t)}notify(t,r,a){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,a);else for(let o=0;o<n;o++){let i=this.subscriptions[o];i&&i(t,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};c();function m1(e,t){return t?e*(1e3/t):0}var $z=30,$ie=e=>!isNaN(parseFloat(e)),jz={current:void 0},C2=class{constructor(t,r={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,n=!0)=>{let o=Wa.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Wa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$ie(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new pu);let a=this.events[t].add(r);return t==="change"?()=>{a(),vt.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,a){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return jz.current&&jz.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Wa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$z)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,$z);return m1(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function $s(e,t){return new C2(e,t)}function jie(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,$s(r))}function Hz(e,t){let r=uu(e,t),{transitionEnd:a={},transition:n={},...o}=r||{};o={...o,...a};for(let i in o){let s=mz(o[i]);jie(e,i,s)}}c();c();function Vz(e){return!!(dr(e)&&e.add)}function o0(e,t){let r=e.getValue("willChange");if(Vz(r))return r.add(t)}c();function h1(e){return e.props[Kx]}c();c();var g1={current:!1};c();c();c();c();var qz=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Hie=1e-7,Vie=12;function qie(e,t,r,a,n){let o,i,s=0;do i=t+(r-t)/2,o=qz(i,a,n)-e,o>0?r=i:t=i;while(Math.abs(o)>Hie&&++s<Vie);return i}function mu(e,t,r,a){if(e===t&&r===a)return er;let n=o=>qie(o,0,1,e,r);return o=>o===0||o===1?o:qz(n(o),t,a)}c();var y1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();var b1=e=>t=>1-e(1-t);var A2=mu(.33,1.53,.69,.99),i0=b1(A2),v1=y1(i0);var x1=e=>(e*=2)<1?.5*i0(e):.5*(2-Math.pow(2,-10*(e-1)));c();var w1=e=>1-Math.sin(Math.acos(e)),T1=b1(w1),E1=y1(w1);c();c();c();var S1=e=>/^0[^.\s]+$/u.test(e);function Gz(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||S1(e):!0}c();c();c();c();c();c();var hu=e=>Math.round(e*1e5)/1e5;c();c();var _p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;c();function Zz(e){return e==null}c();var Wz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var kp=(e,t)=>r=>!!(typeof r=="string"&&Wz.test(r)&&r.startsWith(e)||t&&!Zz(r)&&Object.prototype.hasOwnProperty.call(r,t)),I1=(e,t,r)=>a=>{if(typeof a!="string")return a;let[n,o,i,s]=a.match(_p);return{[e]:parseFloat(n),[t]:parseFloat(o),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var Gie=e=>za(0,255,e),L2={...Gi,transform:e=>Math.round(Gie(e))},Wi={test:kp("rgb","red"),parse:I1("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+L2.transform(e)+", "+L2.transform(t)+", "+L2.transform(r)+", "+hu(Bs.transform(a))+")"};function Zie(e){let t="",r="",a="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,a+=a,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:n?parseInt(n,16)/255:1}}var s0={test:kp("#"),parse:Zie,transform:Wi.transform};c();var gu={test:kp("hsl","hue"),parse:I1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+un.transform(hu(t))+", "+un.transform(hu(r))+", "+hu(Bs.transform(a))+")"};var oa={test:e=>Wi.test(e)||s0.test(e)||gu.test(e),parse:e=>Wi.test(e)?Wi.parse(e):gu.test(e)?gu.parse(e):s0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Wi.transform(e):gu.transform(e)};c();var Yz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wie(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(_p))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Yz))===null||r===void 0?void 0:r.length)||0)>0}var Xz="number",Jz="color",Yie="var",Kie="var(",Kz="${}",Xie=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Kc(e){let t=e.toString(),r=[],a={color:[],number:[],var:[]},n=[],o=0,s=t.replace(Xie,l=>(oa.test(l)?(a.color.push(o),n.push(Jz),r.push(oa.parse(l))):l.startsWith(Kie)?(a.var.push(o),n.push(Yie),r.push(l)):(a.number.push(o),n.push(Xz),r.push(parseFloat(l))),++o,Kz)).split(Kz);return{values:r,split:s,indexes:a,types:n}}function Qz(e){return Kc(e).values}function eF(e){let{split:t,types:r}=Kc(e),a=t.length;return n=>{let o="";for(let i=0;i<a;i++)if(o+=t[i],n[i]!==void 0){let s=r[i];s===Xz?o+=hu(n[i]):s===Jz?o+=oa.transform(n[i]):o+=n[i]}return o}}var Jie=e=>typeof e=="number"?0:e;function Qie(e){let t=Qz(e);return eF(e)(t.map(Jie))}var cn={test:Wie,parse:Qz,createTransformer:eF,getAnimatableNone:Qie};c();c();var ese=new Set(["brightness","contrast","saturate","opacity"]);function tse(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=r.match(_p)||[];if(!a)return e;let n=r.replace(a,""),o=ese.has(t)?1:0;return a!==r&&(o*=100),t+"("+o+n+")"}var rse=/\b([a-z-]*)\(.*?\)/gu,l0={...cn,getAnimatableNone:e=>{let t=e.match(rse);return t?t.map(tse).join(" "):e}};c();var ase={...dp,color:oa,backgroundColor:oa,outlineColor:oa,fill:oa,stroke:oa,borderColor:oa,borderTopColor:oa,borderRightColor:oa,borderBottomColor:oa,borderLeftColor:oa,filter:l0,WebkitFilter:l0},Cp=e=>ase[e];function _1(e,t){let r=Cp(e);return r!==l0&&(r=cn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var nse=new Set(["auto","none","0"]);function tF(e,t,r){let a=0,n;for(;a<e.length&&!n;){let o=e[a];typeof o=="string"&&!nse.has(o)&&Kc(o).values.length&&(n=e[a]),a++}if(n&&r)for(let o of t)e[o]=_1(r,n)}c();c();var N2=e=>e===Gi||e===Fe,rF=(e,t)=>parseFloat(e.split(", ")[t]),aF=(e,t)=>(r,{transform:a})=>{if(a==="none"||!a)return 0;let n=a.match(/^matrix3d\((.+)\)$/u);if(n)return rF(n[1],t);{let o=a.match(/^matrix\((.+)\)$/u);return o?rF(o[1],e):0}},ose=new Set(["x","y","z"]),ise=qi.filter(e=>!ose.has(e));function nF(e){let t=[];return ise.forEach(r=>{let a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}var Xc={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aF(4,13),y:aF(5,14)};Xc.translateX=Xc.x;Xc.translateY=Xc.y;var Jc=new Set,R2=!1,O2=!1;function oF(){if(O2){let e=Array.from(Jc).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{let n=nF(a);n.length&&(r.set(a,n),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let n=r.get(a);n&&n.forEach(([o,i])=>{var s;(s=a.getValue(o))===null||s===void 0||s.set(i)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}O2=!1,R2=!1,Jc.forEach(e=>e.complete()),Jc.clear()}function iF(){Jc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(O2=!0)})}function sF(){iF(),oF()}var yu=class{constructor(t,r,a,n,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Jc.add(this),R2||(R2=!0,vt.read(iF),vt.resolveKeyframes(oF))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:a,motionValue:n}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){let i=n?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(a&&r){let l=a.readValue(r,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),n&&i===void 0&&n.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Jc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Jc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};c();c();var k1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var sse=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lse(e){let t=sse.exec(e);if(!t)return[,];let[,r,a,n]=t;return[`--${r??a}`,n]}var use=4;function D2(e,t,r=1){li(r<=use,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[a,n]=lse(e);if(!a)return;let o=window.getComputedStyle(t).getPropertyValue(a);if(o){let i=o.trim();return k1(i)?parseFloat(i):i}return cp(n)?D2(n,t,r+1):n}c();c();var C1=e=>t=>t.test(e);c();var lF={test:e=>e==="auto",parse:e=>e};var M2=[Gi,Fe,un,Zi,yz,gz,lF],P2=e=>M2.find(C1(e));var Ap=class extends yu{constructor(t,r,a,n,o){super(t,r,a,n,o,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),cp(u))){let d=D2(u,r.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!f1.has(a)||t.length!==2)return;let[n,o]=t,i=P2(n),s=P2(o);if(i!==s)if(N2(i)&&N2(s))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,a=[];for(let n=0;n<t.length;n++)Gz(t[n])&&a.push(n);a.length&&tF(t,a,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xc[a](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&t.getValue(a,n).jump(n,!1)}measureEndState(){var t;let{element:r,name:a,unresolvedKeyframes:n}=this;if(!r||!r.current)return;let o=r.getValue(a);o&&o.jump(this.measuredOrigin,!1);let i=n.length-1,s=n[i];n[i]=Xc[a](r.measureViewportBox(),window.getComputedStyle(r.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{r.getValue(l).set(u)}),this.resolveNoneKeyframes()}};c();c();c();var U2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(cn.test(e)||e==="0")&&!e.startsWith("url("));function cse(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function uF(e,t,r,a){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],i=U2(n,t),s=U2(o,t);return Ps(i===s,`You are trying to animate ${t} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!i||!s?!1:cse(e)||(r==="spring"||du(r))&&a}c();var dse=e=>e!==null;function bu(e,{repeat:t,repeatType:r="loop"},a){let n=e.filter(dse),o=t&&r!=="loop"&&t%2===1?0:n.length-1;return!o||a===void 0?n[o]:a}var fse=40,Lp=class{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Wa.now(),this.options={autoplay:t,delay:r,type:a,repeat:n,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>fse?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&sF(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=Wa.now(),this.hasAttemptedResolve=!0;let{name:a,type:n,velocity:o,delay:i,onComplete:s,onUpdate:l,isGenerator:u}=this.options;if(!u&&!uF(t,a,n,o))if(g1.current||!i){l&&l(bu(t,this.options,r)),s&&s(),this.resolveFinishedPromise();return}else this.options.duration=0;let d=this.initPlayback(t,r);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...d},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};c();c();c();c();var Rt=(e,t,r)=>e+(t-e)*r;c();c();function z2(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function cF({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let n=0,o=0,i=0;if(!t)n=o=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=z2(l,s,e+1/3),o=z2(l,s,e),i=z2(l,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:a}}c();function Np(e,t){return r=>r>0?t:e}var F2=(e,t,r)=>{let a=e*e,n=r*(t*t-a)+a;return n<0?0:Math.sqrt(n)},pse=[s0,Wi,gu],mse=e=>pse.find(t=>t.test(e));function dF(e){let t=mse(e);if(Ps(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===gu&&(r=cF(r)),r}var B2=(e,t)=>{let r=dF(e),a=dF(t);if(!r||!a)return Np(e,t);let n={...r};return o=>(n.red=F2(r.red,a.red,o),n.green=F2(r.green,a.green,o),n.blue=F2(r.blue,a.blue,o),n.alpha=Rt(r.alpha,a.alpha,o),Wi.transform(n))};c();var hse=(e,t)=>r=>t(e(r)),Yi=(...e)=>e.reduce(hse);c();var A1=new Set(["none","hidden"]);function fF(e,t){return A1.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function gse(e,t){return r=>Rt(e,t,r)}function L1(e){return typeof e=="number"?gse:typeof e=="string"?cp(e)?Np:oa.test(e)?B2:vse:Array.isArray(e)?pF:typeof e=="object"?oa.test(e)?B2:yse:Np}function pF(e,t){let r=[...e],a=r.length,n=e.map((o,i)=>L1(o)(o,t[i]));return o=>{for(let i=0;i<a;i++)r[i]=n[i](o);return r}}function yse(e,t){let r={...e,...t},a={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(a[n]=L1(e[n])(e[n],t[n]));return n=>{for(let o in a)r[o]=a[o](n);return r}}function bse(e,t){var r;let a=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let i=t.types[o],s=e.indexes[i][n[i]],l=(r=e.values[s])!==null&&r!==void 0?r:0;a[o]=l,n[i]++}return a}var vse=(e,t)=>{let r=cn.createTransformer(t),a=Kc(e),n=Kc(t);return a.indexes.var.length===n.indexes.var.length&&a.indexes.color.length===n.indexes.color.length&&a.indexes.number.length>=n.indexes.number.length?A1.has(e)&&!n.values.length||A1.has(t)&&!a.values.length?fF(e,t):Yi(pF(bse(a,n),n.values),r):(Ps(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Np(e,t))};function N1(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Rt(e,t,r):L1(e)(e,t)}c();c();c();var xse=5;function R1(e,t,r){let a=Math.max(t-xse,0);return m1(r-e(a),t-a)}c();var xr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};c();var $2=.001;function mF({duration:e=xr.duration,bounce:t=xr.bounce,velocity:r=xr.velocity,mass:a=xr.mass}){let n,o;Ps(e<=Wr(xr.maxDuration),"Spring duration must be 10 seconds or less");let i=1-t;i=za(xr.minDamping,xr.maxDamping,i),e=za(xr.minDuration,xr.maxDuration,Ua(e)),i<1?(n=u=>{let d=u*i,f=d*e,p=d-r,m=O1(u,i),g=Math.exp(-f);return $2-p/m*g},o=u=>{let f=u*i*e,p=f*r+r,m=Math.pow(i,2)*Math.pow(u,2)*e,g=Math.exp(-f),x=O1(Math.pow(u,2),i);return(-n(u)+$2>0?-1:1)*((p-m)*g)/x}):(n=u=>{let d=Math.exp(-u*e),f=(u-r)*e+1;return-$2+d*f},o=u=>{let d=Math.exp(-u*e),f=(r-u)*(e*e);return d*f});let s=5/e,l=Tse(n,o,s);if(e=Wr(e),isNaN(l))return{stiffness:xr.stiffness,damping:xr.damping,duration:e};{let u=Math.pow(l,2)*a;return{stiffness:u,damping:i*2*Math.sqrt(a*u),duration:e}}}var wse=12;function Tse(e,t,r){let a=r;for(let n=1;n<wse;n++)a=a-e(a)/t(a);return a}function O1(e,t){return e*Math.sqrt(1-t*t)}var Ese=["duration","bounce"],Sse=["stiffness","damping","mass"];function hF(e,t){return t.some(r=>e[r]!==void 0)}function Ise(e){let t={velocity:xr.velocity,stiffness:xr.stiffness,damping:xr.damping,mass:xr.mass,isResolvedFromDuration:!1,...e};if(!hF(e,Sse)&&hF(e,Ese))if(e.visualDuration){let r=e.visualDuration,a=2*Math.PI/(r*1.2),n=a*a,o=2*za(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:xr.mass,stiffness:n,damping:o}}else{let r=mF(e);t={...t,...r,mass:xr.mass},t.isResolvedFromDuration=!0}return t}function D1(e=xr.visualDuration,t=xr.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:n}=r,o=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:m}=Ise({...r,velocity:-Ua(r.velocity||0)}),g=p||0,x=u/(2*Math.sqrt(l*d)),w=i-o,b=Ua(Math.sqrt(l/d)),v=Math.abs(w)<5;a||(a=v?xr.restSpeed.granular:xr.restSpeed.default),n||(n=v?xr.restDelta.granular:xr.restDelta.default);let T;if(x<1){let I=O1(b,x);T=_=>{let A=Math.exp(-x*b*_);return i-A*((g+x*b*w)/I*Math.sin(I*_)+w*Math.cos(I*_))}}else if(x===1)T=I=>i-Math.exp(-b*I)*(w+(g+b*w)*I);else{let I=b*Math.sqrt(x*x-1);T=_=>{let A=Math.exp(-x*b*_),N=Math.min(I*_,300);return i-A*((g+x*b*w)*Math.sinh(N)+I*w*Math.cosh(N))/I}}let E={calculatedDuration:m&&f||null,next:I=>{let _=T(I);if(m)s.done=I>=f;else{let A=0;x<1&&(A=I===0?Wr(g):R1(T,I,_));let N=Math.abs(A)<=a,F=Math.abs(i-_)<=n;s.done=N&&F}return s.value=s.done?i:_,s},toString:()=>{let I=Math.min(vp(E),2e4),_=n0(A=>E.next(I*A).value,I,30);return I+"ms "+_}};return E}function j2({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:d}){let f=e[0],p={done:!1,value:f},m=N=>s!==void 0&&N<s||l!==void 0&&N>l,g=N=>s===void 0?l:l===void 0||Math.abs(s-N)<Math.abs(l-N)?s:l,x=r*t,w=f+x,b=i===void 0?w:i(w);b!==w&&(x=b-f);let v=N=>-x*Math.exp(-N/a),T=N=>b+v(N),E=N=>{let F=v(N),R=T(N);p.done=Math.abs(F)<=u,p.value=p.done?b:R},I,_,A=N=>{m(p.value)&&(I=N,_=D1({keyframes:[p.value,g(p.value)],velocity:R1(T,N,p.value),damping:n,stiffness:o,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:N=>{let F=!1;return!_&&I===void 0&&(F=!0,E(N),A(N)),I!==void 0&&N>=I?_.next(N-I):(!F&&E(N),p)}}}c();c();var gF=mu(.42,0,1,1),yF=mu(0,0,.58,1),M1=mu(.42,0,.58,1);c();var bF=e=>Array.isArray(e)&&typeof e[0]!="number";c();var vF={linear:er,easeIn:gF,easeInOut:M1,easeOut:yF,circIn:w1,circInOut:E1,circOut:T1,backIn:i0,backInOut:v1,backOut:A2,anticipate:x1},H2=e=>{if(xp(e)){li(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,a,n]=e;return mu(t,r,a,n)}else if(typeof e=="string")return li(vF[e]!==void 0,`Invalid easing type '${e}'`),vF[e];return e};c();function _se(e,t,r){let a=[],n=r||N1,o=e.length-1;for(let i=0;i<o;i++){let s=n(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||er:t;s=Yi(l,s)}a.push(s)}return a}function xF(e,t,{clamp:r=!0,ease:a,mixer:n}={}){let o=e.length;if(li(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=_se(t,a,n),l=s.length,u=d=>{if(i&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);let p=Qn(e[f],e[f+1],d);return s[f](p)};return r?d=>u(za(e[0],e[o-1],d)):u}c();c();function wF(e,t){let r=e[e.length-1];for(let a=1;a<=t;a++){let n=Qn(0,t,a);e.push(Rt(r,1,n))}}function TF(e){let t=[0];return wF(t,e.length-1),t}c();function EF(e,t){return e.map(r=>r*t)}function kse(e,t){return e.map(()=>t||M1).splice(0,e.length-1)}function u0({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){let n=bF(a)?a.map(H2):H2(a),o={done:!1,value:t[0]},i=EF(r&&r.length===t.length?r:TF(t),e),s=xF(i,t,{ease:Array.isArray(n)?n:kse(t,n)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}c();var SF=e=>{let t=({timestamp:r})=>e(r);return{start:()=>vt.update(t,!0),stop:()=>eo(t),now:()=>Yr.isProcessing?Yr.timestamp:Wa.now()}};var Cse={decay:j2,inertia:j2,tween:u0,keyframes:u0,spring:D1},Ase=e=>e/100,Qc=class extends Lp{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:r,motionValue:a,element:n,keyframes:o}=this.options,i=n?.KeyframeResolver||yu,s=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new i(o,s,r,a,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:r="keyframes",repeat:a=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=this.options,s=du(r)?r:Cse[r]||u0,l,u;s!==u0&&typeof t[0]!="number"&&(l=Yi(Ase,N1(t[0],t[1])),t=[0,100]);let d=s({...this.options,keyframes:t});o==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=vp(d));let{calculatedDuration:f}=d,p=f+n,m=p*(a+1)-n;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:m}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){let{resolved:a}=this;if(!a){let{keyframes:N}=this.options;return{done:!0,value:N[N.length-1]}}let{finalKeyframe:n,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=a;if(this.startTime===null)return o.next(0);let{delay:p,repeat:m,repeatType:g,repeatDelay:x,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let b=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let T=this.currentTime,E=o;if(m){let N=Math.min(this.currentTime,d)/f,F=Math.floor(N),R=N%1;!R&&N>=1&&(R=1),R===1&&F--,F=Math.min(F,m+1),!!(F%2)&&(g==="reverse"?(R=1-R,x&&(R-=x/f)):g==="mirror"&&(E=i)),T=za(0,1,R)*f}let I=v?{done:!1,value:l[0]}:E.next(T);s&&(I.value=s(I.value));let{done:_}=I;!v&&u!==null&&(_=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&n!==void 0&&(I.value=bu(l,this.options,n)),w&&w(I.value),A&&this.finish(),I}get duration(){let{resolved:t}=this;return t?Ua(t.calculatedDuration):0}get time(){return Ua(this.currentTime)}set time(t){t=Wr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=SF,onPlay:r,startTime:a}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),r&&r();let n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=n):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};c();var IF=new Set(["opacity","clipPath","filter","transform"]);c();function _F(e,t,r,{delay:a=0,duration:n=300,repeat:o=0,repeatType:i="loop",ease:s="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let d=Tp(s,n);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:a,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"})}c();var kF=Gc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var P1=10,Lse=2e4;function Nse(e){return du(e.type)||e.type==="spring"||!u1(e.ease)}function Rse(e,t){let r=new Qc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),a={done:!1,value:e[0]},n=[],o=0;for(;!a.done&&o<Lse;)a=r.sample(o),n.push(a.value),o+=P1;return{times:void 0,keyframes:n,duration:o-P1,ease:"linear"}}var CF={anticipate:x1,backInOut:v1,circInOut:E1};function Ose(e){return e in CF}var c0=class extends Lp{constructor(t){super(t);let{name:r,motionValue:a,element:n,keyframes:o}=this.options;this.resolver=new Ap(o,(i,s)=>this.onKeyframesResolved(i,s),r,a,n),this.resolver.scheduleResolve()}initPlayback(t,r){let{duration:a=300,times:n,ease:o,type:i,motionValue:s,name:l,startTime:u}=this.options;if(!s.owner||!s.owner.current)return!1;if(typeof o=="string"&&fu()&&Ose(o)&&(o=CF[o]),Nse(this.options)){let{onComplete:f,onUpdate:p,motionValue:m,element:g,...x}=this.options,w=Rse(t,x);t=w.keyframes,t.length===1&&(t[1]=t[0]),a=w.duration,n=w.times,o=w.ease,i="keyframes"}let d=_F(s.owner.current,l,t,{...this.options,duration:a,times:n,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(a0(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:f}=this.options;s.set(bu(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:a,times:n,type:i,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:r}=t;return Ua(r)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:r}=t;return Ua(r.currentTime||0)}set time(t){let{resolved:r}=this;if(!r)return;let{animation:a}=r;a.currentTime=Wr(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:r}=t;return r.playbackRate}set speed(t){let{resolved:r}=this;if(!r)return;let{animation:a}=r;a.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:r}=t;return r.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:r}=this;if(!r)return er;let{animation:a}=r;a0(a,t)}return er}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:r,keyframes:a,duration:n,type:o,ease:i,times:s}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:d,onComplete:f,element:p,...m}=this.options,g=new Qc({...m,keyframes:a,duration:n,type:o,ease:i,times:s,isGenerator:!0}),x=Wr(this.time);u.setWithVelocity(g.sample(x-P1).value,g.sample(x).value,P1)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:r,name:a,repeatDelay:n,repeatType:o,damping:i,type:s}=t;if(!r||!r.owner||!(r.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=r.owner.getProps();return kF()&&a&&IF.has(a)&&!l&&!u&&!n&&o!=="mirror"&&i!==0&&s!=="inertia"}};c();var Dse={type:"spring",stiffness:500,damping:25,restSpeed:10},Mse=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pse={type:"keyframes",duration:.8},Use={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AF=(e,{keyframes:t})=>t.length>2?Pse:Cn.has(e)?e.startsWith("scale")?Mse(t[1]):Dse:Use;c();function LF({when:e,delay:t,delayChildren:r,staggerChildren:a,staggerDirection:n,repeat:o,repeatType:i,repeatDelay:s,from:l,elapsed:u,...d}){return!!Object.keys(d).length}var Rp=(e,t,r,a={},n,o)=>i=>{let s=cu(a,e)||{},l=s.delay||a.delay||0,{elapsed:u=0}=a;u=u-Wr(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:n};LF(s)||(d={...d,...AF(e,d)}),d.duration&&(d.duration=Wr(d.duration)),d.repeatDelay&&(d.repeatDelay=Wr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),(g1.current||ap.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),f&&!o&&t.get()!==void 0){let p=bu(d.keyframes,s);if(p!==void 0)return vt.update(()=>{d.onUpdate(p),d.onComplete()}),new r0([])}return!o&&c0.supports(d)?new c0(d):new Qc(d)};function zse({protectedKeys:e,needsAnimating:t},r){let a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}function U1(e,t,{delay:r=0,transitionOverride:a,type:n}={}){var o;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=t;a&&(i=a);let u=[],d=n&&e.animationState&&e.animationState.getState()[n];for(let f in l){let p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),m=l[f];if(m===void 0||d&&zse(d,f))continue;let g={delay:r,...cu(i||{},f)},x=!1;if(window.MotionHandoffAnimation){let b=h1(e);if(b){let v=window.MotionHandoffAnimation(b,f,vt);v!==null&&(g.startTime=v,x=!0)}}o0(e,f),p.start(Rp(f,p,m,e.shouldReduceMotion&&f1.has(f)?{type:!1}:g,e,x));let w=p.animation;w&&u.push(w)}return s&&Promise.all(u).then(()=>{vt.update(()=>{s&&Hz(e,s)})}),u}c();function z1(e,t,r={}){var a;let n=uu(e,t,r.type==="exit"?(a=e.presenceContext)===null||a===void 0?void 0:a.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);let i=n?()=>Promise.all(U1(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=o;return Fse(e,t,d+u,f,p,r)}:()=>Promise.resolve(),{when:l}=o;if(l){let[u,d]=l==="beforeChildren"?[i,s]:[s,i];return u().then(()=>d())}else return Promise.all([i(),s(r.delay)])}function Fse(e,t,r=0,a=0,n=1,o){let i=[],s=(e.variantChildren.size-1)*a,l=n===1?(u=0)=>u*a:(u=0)=>s-u*a;return Array.from(e.variantChildren).sort(Bse).forEach((u,d)=>{u.notify("AnimationStart",t),i.push(z1(u,t,{...o,delay:r+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(i)}function Bse(e,t){return e.sortNodePosition(t)}function NF(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let n=t.map(o=>z1(e,o,r));a=Promise.all(n)}else if(typeof t=="string")a=z1(e,t,r);else{let n=typeof t=="function"?uu(e,t,r.custom):t;a=Promise.all(U1(e,n,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}c();var $se=Xg.length;function V2(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?V2(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<$se;r++){let a=Xg[r],n=e.props[a];(zs(n)||n===!1)&&(t[a]=n)}return t}var jse=[...Zx].reverse(),Hse=Zx.length;function Vse(e){return t=>Promise.all(t.map(({animation:r,options:a})=>NF(e,r,a)))}function OF(e){let t=Vse(e),r=RF(),a=!0,n=l=>(u,d)=>{var f;let p=uu(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){let{transition:m,transitionEnd:g,...x}=p;u={...u,...x,...g}}return u};function o(l){t=l(e)}function i(l){let{props:u}=e,d=V2(e.parent)||{},f=[],p=new Set,m={},g=1/0;for(let w=0;w<Hse;w++){let b=jse[w],v=r[b],T=u[b]!==void 0?u[b]:d[b],E=zs(T),I=b===l?v.isActive:null;I===!1&&(g=w);let _=T===d[b]&&T!==u[b]&&E;if(_&&a&&e.manuallyAnimateOnMount&&(_=!1),v.protectedKeys={...m},!v.isActive&&I===null||!T&&!v.prevProp||lu(T)||typeof T=="boolean")continue;let A=qse(v.prevProp,T),N=A||b===l&&v.isActive&&!_&&E||w>g&&E,F=!1,R=Array.isArray(T)?T:[T],ne=R.reduce(n(b),{});I===!1&&(ne={});let{prevResolvedValues:z={}}=v,D={...z,...ne},$=Q=>{N=!0,p.has(Q)&&(F=!0,p.delete(Q)),v.needsAnimating[Q]=!0;let te=e.getValue(Q);te&&(te.liveStyle=!1)};for(let Q in D){let te=ne[Q],Ee=z[Q];if(m.hasOwnProperty(Q))continue;let C=!1;Jg(te)&&Jg(Ee)?C=!v2(te,Ee):C=te!==Ee,C?te!=null?$(Q):p.add(Q):te!==void 0&&p.has(Q)?$(Q):v.protectedKeys[Q]=!0}v.prevProp=T,v.prevResolvedValues=ne,v.isActive&&(m={...m,...ne}),a&&e.blockInitialAnimation&&(N=!1),N&&(!(_&&A)||F)&&f.push(...R.map(Q=>({animation:Q,options:{type:b}})))}if(p.size){let w={};p.forEach(b=>{let v=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),w[b]=v??null}),f.push({animation:w})}let x=!!f.length;return a&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),a=!1,x?t(f):Promise.resolve()}function s(l,u){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),r[l].isActive=u;let f=i(l);for(let p in r)r[p].protectedKeys={};return f}return{animateChanges:i,setActive:s,setAnimateFunction:o,getState:()=>r,reset:()=>{r=RF(),a=!0}}}function qse(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!v2(t,e):!1}function ed(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RF(){return{animate:ed(!0),whileInView:ed(),whileHover:ed(),whileTap:ed(),whileDrag:ed(),whileFocus:ed(),exit:ed()}}c();var Sa=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var F1=class extends Sa{constructor(t){super(t),t.animationState||(t.animationState=OF(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();lu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};c();var Gse=0,B1=class extends Sa{constructor(){super(...arguments),this.id=Gse++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;let n=this.node.animationState.setActive("exit",!t);r&&!t&&n.then(()=>r(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var DF={animation:{Feature:F1},exit:{Feature:B1}};c();c();c();c();c();c();function js(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}c();function Hs(e){return{point:{x:e.pageX,y:e.pageY}}}var MF=e=>t=>Wc(t)&&e(t,Hs(t));function vu(e,t,r,a){return js(e,t,MF(r),a)}c();var PF=(e,t)=>Math.abs(e-t);function UF(e,t){let r=PF(e.x,t.x),a=PF(e.y,t.y);return Math.sqrt(r**2+a**2)}var Op=class{constructor(t,r,{transformPagePoint:a,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=G2(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=UF(f.offset,{x:0,y:0})>=3;if(!p&&!m)return;let{point:g}=f,{timestamp:x}=Yr;this.history.push({...g,timestamp:x});let{onStart:w,onMove:b}=this.handlers;p||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=q2(p,this.transformPagePoint),vt.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:m,onSessionEnd:g,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let w=G2(f.type==="pointercancel"?this.lastMoveEventInfo:q2(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,w),g&&g(f,w)},!Wc(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=a,this.contextWindow=n||window;let i=Hs(t),s=q2(i,this.transformPagePoint),{point:l}=s,{timestamp:u}=Yr;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=r;d&&d(t,G2(s,this.history)),this.removeListeners=Yi(vu(this.contextWindow,"pointermove",this.handlePointerMove),vu(this.contextWindow,"pointerup",this.handlePointerUp),vu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eo(this.updatePoint)}};function q2(e,t){return t?{point:t(e.point)}:e}function zF(e,t){return{x:e.x-t.x,y:e.y-t.y}}function G2({point:e},t){return{point:e,delta:zF(e,FF(t)),offset:zF(e,Zse(t)),velocity:Wse(t,.1)}}function Zse(e){return e[0]}function FF(e){return e[e.length-1]}function Wse(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null,n=FF(e);for(;r>=0&&(a=e[r],!(n.timestamp-a.timestamp>Wr(t)));)r--;if(!a)return{x:0,y:0};let o=Ua(n.timestamp-a.timestamp);if(o===0)return{x:0,y:0};let i={x:(n.x-a.x)/o,y:(n.y-a.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}c();c();var HF=1e-4,Yse=1-HF,Kse=1+HF,VF=.01,Xse=0-VF,Jse=0+VF;function Fa(e){return e.max-e.min}function qF(e,t,r){return Math.abs(e-t)<=r}function BF(e,t,r,a=.5){e.origin=a,e.originPoint=Rt(t.min,t.max,e.origin),e.scale=Fa(r)/Fa(t),e.translate=Rt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Yse&&e.scale<=Kse||isNaN(e.scale))&&(e.scale=1),(e.translate>=Xse&&e.translate<=Jse||isNaN(e.translate))&&(e.translate=0)}function Dp(e,t,r,a){BF(e.x,t.x,r.x,a?a.originX:void 0),BF(e.y,t.y,r.y,a?a.originY:void 0)}function $F(e,t,r){e.min=r.min+t.min,e.max=e.min+Fa(t)}function GF(e,t,r){$F(e.x,t.x,r.x),$F(e.y,t.y,r.y)}function jF(e,t,r){e.min=t.min-r.min,e.max=e.min+Fa(t)}function Mp(e,t,r){jF(e.x,t.x,r.x),jF(e.y,t.y,r.y)}function XF(e,{min:t,max:r},a){return t!==void 0&&e<t?e=a?Rt(t,e,a.min):Math.max(e,t):r!==void 0&&e>r&&(e=a?Rt(r,e,a.max):Math.min(e,r)),e}function ZF(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function JF(e,{top:t,left:r,bottom:a,right:n}){return{x:ZF(e.x,r,n),y:ZF(e.y,t,a)}}function WF(e,t){let r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,a]=[a,r]),{min:r,max:a}}function QF(e,t){return{x:WF(e.x,t.x),y:WF(e.y,t.y)}}function e8(e,t){let r=.5,a=Fa(e),n=Fa(t);return n>a?r=Qn(t.min,t.max-a,e.min):a>n&&(r=Qn(e.min,e.max-n,t.min)),za(0,1,r)}function t8(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var $1=.35;function r8(e=$1){return e===!1?e=0:e===!0&&(e=$1),{x:YF(e,"left","right"),y:YF(e,"top","bottom")}}function YF(e,t,r){return{min:KF(e,t),max:KF(e,r)}}function KF(e,t){return typeof e=="number"?e:e[t]||0}c();var a8=()=>({translate:0,scale:1,origin:0,originPoint:0}),td=()=>({x:a8(),y:a8()}),n8=()=>({min:0,max:0}),wr=()=>({x:n8(),y:n8()});c();function An(e){return[e("x"),e("y")]}c();c();function j1({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function o8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function i8(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}c();c();function Z2(e){return e===void 0||e===1}function H1({scale:e,scaleX:t,scaleY:r}){return!Z2(e)||!Z2(t)||!Z2(r)}function Vs(e){return H1(e)||W2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function W2(e){return s8(e.x)||s8(e.y)}function s8(e){return e&&e!=="0%"}function d0(e,t,r){let a=e-r,n=t*a;return r+n}function l8(e,t,r,a,n){return n!==void 0&&(e=d0(e,n,a)),d0(e,r,a)+t}function Y2(e,t=0,r=1,a,n){e.min=l8(e.min,t,r,a,n),e.max=l8(e.max,t,r,a,n)}function K2(e,{x:t,y:r}){Y2(e.x,t.translate,t.scale,t.originPoint),Y2(e.y,r.translate,r.scale,r.originPoint)}var u8=.999999999999,c8=1.0000000000001;function f8(e,t,r,a=!1){let n=r.length;if(!n)return;t.x=t.y=1;let o,i;for(let s=0;s<n;s++){o=r[s],i=o.projectionDelta;let{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&rd(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,K2(e,i)),a&&Vs(o.latestValues)&&rd(e,o.latestValues))}t.x<c8&&t.x>u8&&(t.x=1),t.y<c8&&t.y>u8&&(t.y=1)}function xu(e,t){e.min=e.min+t,e.max=e.max+t}function d8(e,t,r,a,n=.5){let o=Rt(e.min,e.max,n);Y2(e,t,r,o,a)}function rd(e,t){d8(e.x,t.x,t.scaleX,t.scale,t.originX),d8(e.y,t.y,t.scaleY,t.scale,t.originY)}function X2(e,t){return j1(i8(e.getBoundingClientRect(),t))}function p8(e,t,r){let a=X2(e,r),{scroll:n}=t;return n&&(xu(a.x,n.offset.x),xu(a.y,n.offset.y)),a}c();var V1=({current:e})=>e?e.ownerDocument.defaultView:null;var Qse=new WeakMap,G1=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wr(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){let{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;let n=d=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Hs(d).point)},o=(d,f)=>{let{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=k2(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),An(w=>{let b=this.getAxisMotionValue(w).get()||0;if(un.test(b)){let{projection:v}=this.visualElement;if(v&&v.layout){let T=v.layout.layoutBox[w];T&&(b=Fa(T)*(parseFloat(b)/100))}}this.originPoint[w]=b}),g&&vt.postRender(()=>g(d,f)),o0(this.visualElement,"transform");let{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},i=(d,f)=>{let{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:w}=f;if(m&&this.currentDirection===null){this.currentDirection=ele(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),x&&x(d,f)},s=(d,f)=>this.stop(d,f),l=()=>An(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Op(t,{onSessionStart:n,onStart:o,onMove:i,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:V1(this.visualElement)})}stop(t,r){let a=this.isDragging;if(this.cancel(),!a)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:o}=this.getProps();o&&vt.postRender(()=>o(t,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,a){let{drag:n}=this.getProps();if(!a||!q1(t,n,this.currentDirection))return;let o=this.getAxisMotionValue(t),i=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(i=XF(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var t;let{dragConstraints:r,dragElastic:a}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;r&&Fs(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&n?this.constraints=JF(n.layoutBox,r):this.constraints=!1,this.elastic=r8(a),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&An(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=t8(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Fs(t))return!1;let a=t.current;li(a!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=p8(a,n.root,this.visualElement.getTransformPagePoint()),i=QF(n.layout.layoutBox,o);if(r){let s=r(o8(i));this.hasMutatedConstraints=!!s,s&&(i=j1(s))}return i}startAnimation(t){let{drag:r,dragMomentum:a,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=An(d=>{if(!q1(d,r,this.currentDirection))return;let f=l&&l[d]||{};i&&(f={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,g={type:"inertia",velocity:a?t[d]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){let a=this.getAxisMotionValue(t);return o0(this.visualElement,t),a.start(Rp(t,a,0,r,this.visualElement,!1))}stopAnimation(){An(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){An(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),n=a[r];return n||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){An(r=>{let{drag:a}=this.getProps();if(!q1(r,a,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(r);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[r];o.set(t[r]-Rt(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!Fs(r)||!a||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};An(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let l=s.get();n[i]=e8({min:l,max:l},this.constraints[i])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),An(i=>{if(!q1(i,t,null))return;let s=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];s.set(Rt(l,u,n[i]))})}addListeners(){if(!this.visualElement.current)return;Qse.set(this.visualElement,this);let t=this.visualElement.current,r=vu(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),a=()=>{let{dragConstraints:l}=this.getProps();Fs(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",a);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),vt.read(a);let i=js(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(An(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{i(),r(),o(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=$1,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:s}}};function q1(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function ele(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Z1=class extends Sa{constructor(t){super(t),this.removeGroupControls=er,this.removeListeners=er,this.controls=new G1(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||er}unmount(){this.removeGroupControls(),this.removeListeners()}};c();var m8=e=>(t,r)=>{e&&vt.postRender(()=>e(t,r))},W1=class extends Sa{constructor(){super(...arguments),this.removePointerDownListener=er}onPointerDown(t){this.session=new Op(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:V1(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:n}=this.node.getProps();return{onSessionStart:m8(t),onStart:m8(r),onMove:a,onEnd:(o,i)=>{delete this.session,n&&vt.postRender(()=>n(o,i))}}}mount(){this.removePointerDownListener=vu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};c();var y8=O(ae(),1),f0=O(re(),1);c();var Pp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};c();function h8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Up={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Fe.test(e))e=parseFloat(e);else return e;let r=h8(e,t.target.x),a=h8(e,t.target.y);return`${r}% ${a}%`}};c();var g8={correct:(e,{treeScale:t,projectionDelta:r})=>{let a=e,n=cn.parse(e);if(n.length>5)return a;let o=cn.createTransformer(e),i=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;let u=Rt(s,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=u),typeof n[3+i]=="number"&&(n[3+i]/=u),o(n)}};var J2=class extends f0.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:n}=this.props,{projection:o}=t;Sz(tle),o&&(r.group&&r.group.add(o),a&&a.register&&n&&a.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Pp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:a,drag:n,isPresent:o}=this.props,i=a.projection;return i&&(i.isPresent=o,n||t.layoutDependency!==r||r===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||vt.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),op.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),a&&a.deregister&&a.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Y1(e){let[t,r]=Fx(),a=(0,f0.useContext)(Qf);return(0,y8.jsx)(J2,{...e,layoutGroup:a,switchLayoutGroup:(0,f0.useContext)(Xx),isPresent:t,safeToRemove:r})}var tle={borderRadius:{...Up,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Up,borderTopRightRadius:Up,borderBottomLeftRadius:Up,borderBottomRightRadius:Up,boxShadow:g8};c();c();c();function b8(e,t,r){let a=dr(e)?e:$s(e);return a.start(Rp("",a,t,r)),a.animation}c();function v8(e){return e instanceof SVGElement&&e.tagName!=="svg"}c();c();var x8=(e,t)=>e.depth-t.depth;var K1=class{constructor(){this.children=[],this.isDirty=!1}add(t){Sp(this.children,t),this.isDirty=!0}remove(t){Ip(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(x8),this.isDirty=!1,this.children.forEach(t)}};c();function w8(e,t){let r=Wa.now(),a=({timestamp:n})=>{let o=n-r;o>=t&&(eo(a),e(o-t))};return vt.read(a,!0),()=>eo(a)}c();var I8=["TopLeft","TopRight","BottomLeft","BottomRight"],rle=I8.length,T8=e=>typeof e=="string"?parseFloat(e):e,E8=e=>typeof e=="number"||Fe.test(e);function _8(e,t,r,a,n,o){n?(e.opacity=Rt(0,r.opacity!==void 0?r.opacity:1,ale(a)),e.opacityExit=Rt(t.opacity!==void 0?t.opacity:1,0,nle(a))):o&&(e.opacity=Rt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,a));for(let i=0;i<rle;i++){let s=`border${I8[i]}Radius`,l=S8(t,s),u=S8(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||E8(l)===E8(u)?(e[s]=Math.max(Rt(T8(l),T8(u),a),0),(un.test(u)||un.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=Rt(t.rotate||0,r.rotate||0,a))}function S8(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var ale=k8(0,.5,T1),nle=k8(.5,.95,er);function k8(e,t,r){return a=>a<e?0:a>t?1:r(Qn(e,t,a))}c();function C8(e,t){e.min=t.min,e.max=t.max}function ro(e,t){C8(e.x,t.x),C8(e.y,t.y)}function Q2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}c();function A8(e,t,r,a,n){return e-=t,e=d0(e,1/r,a),n!==void 0&&(e=d0(e,1/n,a)),e}function ole(e,t=0,r=1,a=.5,n,o=e,i=e){if(un.test(t)&&(t=parseFloat(t),t=Rt(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=Rt(o.min,o.max,a);e===o&&(s-=t),e.min=A8(e.min,t,r,s,n),e.max=A8(e.max,t,r,s,n)}function L8(e,t,[r,a,n],o,i){ole(e,t[r],t[a],t[n],t.scale,o,i)}var ile=["x","scaleX","originX"],sle=["y","scaleY","originY"];function eL(e,t,r,a){L8(e.x,t,ile,r?r.x:void 0,a?a.x:void 0),L8(e.y,t,sle,r?r.y:void 0,a?a.y:void 0)}c();function N8(e){return e.translate===0&&e.scale===1}function tL(e){return N8(e.x)&&N8(e.y)}function R8(e,t){return e.min===t.min&&e.max===t.max}function D8(e,t){return R8(e.x,t.x)&&R8(e.y,t.y)}function O8(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rL(e,t){return O8(e.x,t.x)&&O8(e.y,t.y)}function aL(e){return Fa(e.x)/Fa(e.y)}function nL(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}c();var X1=class{constructor(){this.members=[]}add(t){Sp(this.members,t),t.scheduleRender()}remove(t){if(Ip(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(n=>t===n);if(r===0)return!1;let a;for(let n=r;n>=0;n--){let o=this.members[n];if(o.isPresent!==!1){a=o;break}}return a?(this.promote(a),!0):!1}promote(t,r){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.instance&&a.scheduleRender(),t.scheduleRender(),t.resumeFrom=a,r&&(t.resumeFrom.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;n===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:a}=t;r.onExitComplete&&r.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};c();function M8(e,t,r){let a="",n=e.x.translate/t.x,o=e.y.translate/t.y,i=r?.z||0;if((n||o||i)&&(a=`translate3d(${n}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:m,skewY:g}=r;u&&(a=`perspective(${u}px) ${a}`),d&&(a+=`rotate(${d}deg) `),f&&(a+=`rotateX(${f}deg) `),p&&(a+=`rotateY(${p}deg) `),m&&(a+=`skewX(${m}deg) `),g&&(a+=`skewY(${g}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(a+=`scale(${s}, ${l})`),a||"none"}var ad={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},p0=typeof window<"u"&&window.MotionDebug!==void 0,oL=["","X","Y","Z"],lle={visibility:"hidden"},P8=1e3,ule=0;function iL(e,t,r,a){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),a&&(a[e]=0))}function V8(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=h1(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",vt,!(n||o))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&V8(a)}function J1({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:n}){return class{constructor(i={},s=t?.()){this.id=ule++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,p0&&(ad.totalNodes=ad.resolvedTargetDeltas=ad.recalculatedProjection=0),this.nodes.forEach(fle),this.nodes.forEach(yle),this.nodes.forEach(ble),this.nodes.forEach(ple),p0&&window.MotionDebug.record(ad)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new K1)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new pu),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=v8(i),this.instance=i;let{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(u||l)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=w8(p,250),Pp.hasAnimatedSinceResize&&(Pp.hasAnimatedSinceResize=!1,this.nodes.forEach(z8))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let x=this.options.transition||d.getDefaultTransition()||Ele,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!rL(this.targetLayout,g)||m,T=!p&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,T);let E={...cu(x,"layout"),onPlay:w,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||z8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,eo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vle),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&V8(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(U8);return}this.isUpdating||this.nodes.forEach(hle),this.isUpdating=!1,this.nodes.forEach(gle),this.nodes.forEach(cle),this.nodes.forEach(dle),this.clearAllSnapshots();let s=Wa.now();Yr.delta=za(0,1e3/60,s-Yr.timestamp),Yr.timestamp=s,Yr.isProcessing=!0,qx.update.process(Yr),qx.preRender.process(Yr),qx.render.process(Yr),Yr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,op.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mle),this.sharedNodes.forEach(xle)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=wr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!tL(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&(s||Vs(this.latestValues)||d)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),Sle(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var i;let{visualElement:s}=this.options;if(!s)return wr();let l=s.measureViewportBox();if(!(((i=this.scroll)===null||i===void 0?void 0:i.wasRoot)||this.path.some(Ile))){let{scroll:d}=this.root;d&&(xu(l.x,d.offset.x),xu(l.y,d.offset.y))}return l}removeElementScroll(i){var s;let l=wr();if(ro(l,i),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return l;for(let u=0;u<this.path.length;u++){let d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&ro(l,i),xu(l.x,f.offset.x),xu(l.y,f.offset.y))}return l}applyTransform(i,s=!1){let l=wr();ro(l,i);for(let u=0;u<this.path.length;u++){let d=this.path[u];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&rd(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Vs(d.latestValues)&&rd(l,d.latestValues)}return Vs(this.latestValues)&&rd(l,this.latestValues),l}removeTransform(i){let s=wr();ro(s,i);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!Vs(u.latestValues))continue;H1(u.latestValues)&&u.updateSnapshot();let d=wr(),f=u.measurePageBox();ro(d,f),eL(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Vs(this.latestValues)&&eL(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Yr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var s;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==l;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=Yr.timestamp,!this.targetDelta&&!this.relativeTarget){let m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wr(),this.relativeTargetOrigin=wr(),Mp(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ro(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=wr(),this.targetWithTransforms=wr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),GF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ro(this.target,this.layout.layoutBox),K2(this.target,this.targetDelta)):ro(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wr(),this.relativeTargetOrigin=wr(),Mp(this.relativeTargetOrigin,this.target,m.target),ro(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}p0&&ad.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||H1(this.parent.latestValues)||W2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;let s=this.getLead(),l=!!this.resumingFrom||this!==s,u=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Yr.timestamp&&(u=!1),u)return;let{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;ro(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,m=this.treeScale.y;f8(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=wr());let{target:g}=s;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Q2(this.prevProjectionDelta.x,this.projectionDelta.x),Q2(this.prevProjectionDelta.y,this.projectionDelta.y)),Dp(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==m||!nL(this.projectionDelta.x,this.prevProjectionDelta.x)||!nL(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),p0&&ad.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),i){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=td(),this.projectionDelta=td(),this.projectionDeltaWithTransform=td()}setAnimationOrigin(i,s=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=td();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let p=wr(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,x=m!==g,w=this.getStack(),b=!w||w.members.length<=1,v=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(Tle));this.animationProgress=0;let T;this.mixTargetDelta=E=>{let I=E/1e3;F8(f.x,i.x,I),F8(f.y,i.y,I),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mp(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wle(this.relativeTarget,this.relativeTargetOrigin,p,I),T&&D8(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=wr()),ro(T,this.relativeTarget)),x&&(this.animationValues=d,_8(d,u,this.latestValues,I,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vt.update(()=>{Pp.hasAnimatedSinceResize=!0,this.currentAnimation=b8(0,P8,{...i,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(P8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:l,layout:u,latestValues:d}=i;if(!(!s||!l||!u)){if(this!==i&&this.layout&&u&&q8(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||wr();let f=Fa(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;let p=Fa(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+p}ro(s,l),rd(s,d),Dp(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new X1),this.sharedNodes.get(i).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){var i;let{layoutId:s}=this.options;return s?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;let{layoutId:s}=this.options;return s?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let u={};l.z&&iL("z",i,u,this.animationValues);for(let d=0;d<oL.length;d++)iL(`rotate${oL[d]}`,i,u,this.animationValues),iL(`skew${oL[d]}`,i,u,this.animationValues);i.render();for(let d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}getProjectionStyles(i){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return lle;let u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=up(i?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=up(i?.pointerEvents)||""),this.hasProjected&&!Vs(this.latestValues)&&(x.transform=d?d({},""):"none",this.hasProjected=!1),x}let p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=M8(this.projectionDeltaWithTransform,this.treeScale,p),d&&(u.transform=d(p,u.transform));let{x:m,y:g}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let x in gp){if(p[x]===void 0)continue;let{correct:w,applyTo:b}=gp[x],v=u.transform==="none"?p[x]:w(p[x],f);if(b){let T=b.length;for(let E=0;E<T;E++)u[b[E]]=v}else u[x]=v}return this.options.layoutId&&(u.pointerEvents=f===this?up(i?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var s;return(s=i.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(U8),this.root.sharedNodes.clear()}}}function cle(e){e.updateLayout()}function dle(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:a,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;o==="size"?An(f=>{let p=i?r.measuredBox[f]:r.layoutBox[f],m=Fa(p);p.min=a[f].min,p.max=p.min+m}):q8(o,r.layoutBox,a)&&An(f=>{let p=i?r.measuredBox[f]:r.layoutBox[f],m=Fa(a[f]);p.max=p.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});let s=td();Dp(s,a,r.layoutBox);let l=td();i?Dp(l,e.applyTransform(n,!0),r.measuredBox):Dp(l,a,r.layoutBox);let u=!tL(s),d=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:m}=f;if(p&&m){let g=wr();Mp(g,r.layoutBox,p.layoutBox);let x=wr();Mp(x,a,m.layoutBox),rL(g,x)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){let{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function fle(e){p0&&ad.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ple(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mle(e){e.clearSnapshot()}function U8(e){e.clearMeasurements()}function hle(e){e.isLayoutDirty=!1}function gle(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function z8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yle(e){e.resolveTargetDelta()}function ble(e){e.calcProjection()}function vle(e){e.resetSkewAndRotation()}function xle(e){e.removeLeadSnapshot()}function F8(e,t,r){e.translate=Rt(t.translate,0,r),e.scale=Rt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function B8(e,t,r,a){e.min=Rt(t.min,r.min,a),e.max=Rt(t.max,r.max,a)}function wle(e,t,r,a){B8(e.x,t.x,r.x,a),B8(e.y,t.y,r.y,a)}function Tle(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ele={duration:.45,ease:[.4,0,.1,1]},$8=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),j8=$8("applewebkit/")&&!$8("chrome/")?Math.round:er;function H8(e){e.min=j8(e.min),e.max=j8(e.max)}function Sle(e){H8(e.x),H8(e.y)}function q8(e,t,r){return e==="position"||e==="preserve-aspect"&&!qF(aL(t),aL(r),.2)}function Ile(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}c();var G8=J1({attachResizeListener:(e,t)=>js(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var sL={current:void 0},Q1=J1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sL.current){let e=new G8({});e.mount(window),e.setOptions({layoutScroll:!0}),sL.current=e}return sL.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Z8={pan:{Feature:W1},drag:{Feature:Z1,ProjectionNode:Q1,MeasureLayout:Y1}};c();c();function W8(e,t,r){let{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,o=a[n];o&&vt.postRender(()=>o(t,Hs(t)))}var ew=class extends Sa{mount(){let{current:t}=this.node;t&&(this.unmount=S2(t,r=>(W8(this.node,r,"Start"),a=>W8(this.node,a,"End"))))}unmount(){}};c();var tw=class extends Sa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yi(js(this.node.current,"focus",()=>this.onFocus()),js(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};c();function Y8(e,t,r){let{props:a}=e;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",r==="Start");let n="onTap"+(r==="End"?"":r),o=a[n];o&&vt.postRender(()=>o(t,Hs(t)))}var rw=class extends Sa{mount(){let{current:t}=this.node;t&&(this.unmount=_2(t,r=>(Y8(this.node,r,"Start"),(a,{success:n})=>Y8(this.node,a,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};c();c();var uL=new WeakMap,lL=new WeakMap,_le=e=>{let t=uL.get(e.target);t&&t(e)},kle=e=>{e.forEach(_le)};function Cle({root:e,...t}){let r=e||document;lL.has(r)||lL.set(r,{});let a=lL.get(r),n=JSON.stringify(t);return a[n]||(a[n]=new IntersectionObserver(kle,{root:e,...t})),a[n]}function K8(e,t,r){let a=Cle(t);return uL.set(e,r),a.observe(e),()=>{uL.delete(e),a.unobserve(e)}}var Ale={some:0,all:1},aw=class extends Sa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:n="some",once:o}=t,i={root:r?r.current:void 0,rootMargin:a,threshold:typeof n=="number"?n:Ale[n]},s=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(l)};return K8(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Lle(t,r))&&this.startObserver()}unmount(){}};function Lle({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var X8={inView:{Feature:aw},tap:{Feature:rw},focus:{Feature:tw},hover:{Feature:ew}};c();var J8={layout:{ProjectionNode:Q1,MeasureLayout:Y1}};c();var aB=O(re(),1);c();c();c();c();c();var m0={current:null},nw={current:!1};function Q8(){if(nw.current=!0,!!rp)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>m0.current=e.matches;e.addListener(t),t()}else m0.current=!1}c();var Nle=[...M2,oa,cn],eB=e=>Nle.find(C1(e));c();var cL=new WeakMap;c();function tB(e,t,r){for(let a in t){let n=t[a],o=r[a];if(dr(n))e.addValue(a,n);else if(dr(o))e.addValue(a,$s(n,{owner:e}));else if(o!==n)if(e.hasValue(a)){let i=e.getValue(a);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=e.getStaticValue(a);e.addValue(a,$s(i!==void 0?i:n,{owner:e}))}}for(let a in r)t[a]===void 0&&e.removeValue(a);return t}var rB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ow=class{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=Wa.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,vt.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:d}=i;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=Zc(r),this.isVariantNode=Wx(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:f,...p}=this.scrapeMotionValuesFromProps(r,{},this);for(let m in p){let g=p[m];l[m]!==void 0&&dr(g)&&g.set(l[m],!1)}}mount(t){this.current=t,cL.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,a)=>this.bindToMotionValue(a,r)),nw.current||Q8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:m0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cL.delete(this.current),this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let a=Cn.has(t),n=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&vt.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),o(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Us){let r=Us[t];if(!r)continue;let{isEnabled:a,Feature:n}=r;if(!this.features[t]&&n&&a(this.props)&&(this.features[t]=new n(this)),this.features[t]){let o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let a=0;a<rB.length;a++){let n=rB[a];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o="on"+n,i=t[o];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=tB(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let a=this.values.get(t);r!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&r!==void 0&&(a=$s(r===null?void 0:r,{owner:this}),this.addValue(t,a)),a}readValue(t,r){var a;let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(a=this.getBaseTargetFromProps(this.props,t))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(k1(n)||S1(n))?n=parseFloat(n):!eB(n)&&cn.test(r)&&(n=_1(t,r)),this.setBaseTarget(t,dr(n)?n.get():n)),dr(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:a}=this.props,n;if(typeof a=="string"||typeof a=="object"){let i=lp(this.props,a,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);i&&(n=i[t])}if(a&&n!==void 0)return n;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!dr(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new pu),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}};var zp=class extends ow{constructor(){super(...arguments),this.KeyframeResolver=Ap}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:a}){delete r[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;dr(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};function Rle(e){return window.getComputedStyle(e)}var iw=class extends zp{constructor(){super(...arguments),this.type="html",this.renderInstance=a1}readValueFromInstance(t,r){if(Cn.has(r)){let a=Cp(r);return a&&a.default||0}else{let a=Rle(t),n=(e1(r)?a.getPropertyValue(r):a[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return X2(t,r)}build(t,r,a){fp(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return yp(t,r,a)}};c();var sw=class extends zp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wr}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Cn.has(r)){let a=Cp(r);return a&&a.default||0}return r=n1.has(r)?r:np(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return s1(t,r,a)}build(t,r,a){pp(t,r,this.isSVGTag,a.transformTemplate)}renderInstance(t,r,a,n){o1(t,r,a,n)}mount(t){this.isSVGTag=hp(t.tagName),super.mount(t)}};var nB=(e,t)=>sp(e)?new sw(t):new iw(t,{allowProjection:e!==aB.Fragment});var oB=Oz({...DF,...X8,...Z8,...J8},nB);var se=QU(oB);var Fp=O(ae()),iB=Wf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive translate-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 dark:bg-primary dark:hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 dark:bg-destructive/80 dark:hover:bg-destructive/70",outline:"border border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 dark:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:bg-secondary/30 dark:hover:bg-secondary/50",ghost:"!bg-transparent hover:bg-accent hover:text-accent-foreground dark:!bg-transparent dark:hover:bg-accent/50",link:"!bg-transparent text-primary underline-offset-4 hover:underline dark:!bg-transparent"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2",xs:"h-7 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"h-9 w-9","icon-sm":"h-7 w-7","icon-lg":"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Br=sB.forwardRef(({className:e,variant:t,size:r,asChild:a=!1,loading:n,children:o,disabled:i,...s},l)=>{let u=a?d2:se.button,d=()=>n||i?{}:{opacity:.9};if(a)return(0,Fp.jsx)(d2,{"data-slot":"button",className:nt(iB({variant:t,size:r,className:e})),ref:l,...s,children:o});let f={...s};return(t==="ghost"||t==="link")&&(f.style={...f.style||{},backgroundColor:"transparent"}),(0,Fp.jsxs)(u,{"data-slot":"button",className:nt(iB({variant:t,size:r,className:e})),ref:l,disabled:i||n,whileHover:d(),transition:{duration:.15,ease:"easeOut"},...f,children:[n&&(0,Fp.jsx)(ht,{className:"animate-spin"}),n?(0,Fp.jsx)("span",{className:"opacity-70",children:o}):o]})});Br.displayName="Button";c();c();var ft=O(re(),1);c();var UQe=!!(typeof window<"u"&&window.document&&window.document.createElement);function ui(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}c();var qs=O(re(),1),lB=O(ae(),1);function Bp(e,t=[]){let r=[];function a(o,i){let s=qs.createContext(i),l=r.length;r=[...r,i];let u=f=>{let{scope:p,children:m,...g}=f,x=p?.[e]?.[l]||s,w=qs.useMemo(()=>g,Object.values(g));return(0,lB.jsx)(x.Provider,{value:w,children:m})};u.displayName=o+"Provider";function d(f,p){let m=p?.[e]?.[l]||s,g=qs.useContext(m);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}let n=()=>{let o=r.map(i=>qs.createContext(i));return function(s){let l=s?.[e]||o;return qs.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,Ole(n,...t)]}function Ole(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){let i=a.reduce((s,{useScope:l,scopeName:u})=>{let f=l(o)[`__scope${u}`];return{...s,...f}},{});return qs.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}c();var Or=O(re(),1);c();var pB=O(re(),1),mB=O(g0(),1);var hB=O(ae(),1),Ule=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ia=Ule.reduce((e,t)=>{let r=c2(`Primitive.${t}`),a=pB.forwardRef((n,o)=>{let{asChild:i,...s}=n,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,hB.jsx)(l,{...s,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function gB(e,t){e&&mB.flushSync(()=>e.dispatchEvent(t))}c();var $p=O(re(),1);function Gs(e){let t=$p.useRef(e);return $p.useEffect(()=>{t.current=e}),$p.useMemo(()=>(...r)=>t.current?.(...r),[])}c();var yB=O(re(),1);function bB(e,t=globalThis?.document){let r=Gs(e);yB.useEffect(()=>{let a=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var fL=O(ae(),1),zle="DismissableLayer",dL="dismissableLayer.update",Fle="dismissableLayer.pointerDownOutside",Ble="dismissableLayer.focusOutside",vB,wB=Or.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pL=Or.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,u=Or.useContext(wB),[d,f]=Or.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=Or.useState({}),g=si(t,A=>f(A)),x=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(w),v=d?x.indexOf(d):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,E=v>=b,I=Hle(A=>{let N=A.target,F=[...u.branches].some(R=>R.contains(N));!E||F||(n?.(A),i?.(A),A.defaultPrevented||s?.())},p),_=Vle(A=>{let N=A.target;[...u.branches].some(R=>R.contains(N))||(o?.(A),i?.(A),A.defaultPrevented||s?.())},p);return bB(A=>{v===u.layers.size-1&&(a?.(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},p),Or.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vB=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),xB(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=vB)}},[d,p,r,u]),Or.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),xB())},[d,u]),Or.useEffect(()=>{let A=()=>m({});return document.addEventListener(dL,A),()=>document.removeEventListener(dL,A)},[]),(0,fL.jsx)(Ia.div,{...l,ref:g,style:{pointerEvents:T?E?"auto":"none":void 0,...e.style},onFocusCapture:ui(e.onFocusCapture,_.onFocusCapture),onBlurCapture:ui(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ui(e.onPointerDownCapture,I.onPointerDownCapture)})});pL.displayName=zle;var $le="DismissableLayerBranch",jle=Or.forwardRef((e,t)=>{let r=Or.useContext(wB),a=Or.useRef(null),n=si(t,a);return Or.useEffect(()=>{let o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,fL.jsx)(Ia.div,{...e,ref:n})});jle.displayName=$le;function Hle(e,t=globalThis?.document){let r=Gs(e),a=Or.useRef(!1),n=Or.useRef(()=>{});return Or.useEffect(()=>{let o=s=>{if(s.target&&!a.current){let u=function(){TB(Fle,r,d,{discrete:!0})};var l=u;let d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=u,t.addEventListener("click",n.current,{once:!0})):u()}else t.removeEventListener("click",n.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function Vle(e,t=globalThis?.document){let r=Gs(e),a=Or.useRef(!1);return Or.useEffect(()=>{let n=o=>{o.target&&!a.current&&TB(Ble,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function xB(){let e=new CustomEvent(dL);document.dispatchEvent(e)}function TB(e,t,r,{discrete:a}){let n=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),a?gB(n,o):n.dispatchEvent(o)}c();var mL=O(re(),1);c();var EB=O(re(),1),_a=globalThis?.document?EB.useLayoutEffect:()=>{};var qle=mL[" useId ".trim().toString()]||(()=>{}),Gle=0;function SB(e){let[t,r]=mL.useState(qle());return _a(()=>{e||r(a=>a??String(Gle++))},[e]),e||(t?`radix-${t}`:"")}c();var Nn=O(re(),1);c();c();c();c();var IB=["top","right","bottom","left"];var Ki=Math.min,pn=Math.max,b0=Math.round,v0=Math.floor,ci=e=>({x:e,y:e}),Zle={left:"right",right:"left",bottom:"top",top:"bottom"},Wle={start:"end",end:"start"};function cw(e,t,r){return pn(e,Ki(t,r))}function Xi(e,t){return typeof e=="function"?e(t):e}function Ji(e){return e.split("-")[0]}function nd(e){return e.split("-")[1]}function dw(e){return e==="x"?"y":"x"}function fw(e){return e==="y"?"height":"width"}function Zs(e){return["top","bottom"].includes(Ji(e))?"y":"x"}function pw(e){return dw(Zs(e))}function _B(e,t,r){r===void 0&&(r=!1);let a=nd(e),n=pw(e),o=fw(n),i=n==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=y0(i)),[i,y0(i)]}function kB(e){let t=y0(e);return[uw(e),t,uw(t)]}function uw(e){return e.replace(/start|end/g,t=>Wle[t])}function Yle(e,t,r){let a=["left","right"],n=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?n:a:t?a:n;case"left":case"right":return t?o:i;default:return[]}}function CB(e,t,r,a){let n=nd(e),o=Yle(Ji(e),r==="start",a);return n&&(o=o.map(i=>i+"-"+n),t&&(o=o.concat(o.map(uw)))),o}function y0(e){return e.replace(/left|right|bottom|top/g,t=>Zle[t])}function Kle(e){return{top:0,right:0,bottom:0,left:0,...e}}function hL(e){return typeof e!="number"?Kle(e):{top:e,right:e,bottom:e,left:e}}function od(e){let{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function AB(e,t,r){let{reference:a,floating:n}=e,o=Zs(t),i=pw(t),s=fw(i),l=Ji(t),u=o==="y",d=a.x+a.width/2-n.width/2,f=a.y+a.height/2-n.height/2,p=a[s]/2-n[s]/2,m;switch(l){case"top":m={x:d,y:a.y-n.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:f};break;case"left":m={x:a.x-n.width,y:f};break;default:m={x:a.x,y:a.y}}switch(nd(t)){case"start":m[i]-=p*(r&&u?-1:1);break;case"end":m[i]+=p*(r&&u?-1:1);break}return m}var RB=async(e,t,r)=>{let{placement:a="bottom",strategy:n="absolute",middleware:o=[],platform:i}=r,s=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=AB(u,a,l),p=a,m={},g=0;for(let x=0;x<s.length;x++){let{name:w,fn:b}=s[x],{x:v,y:T,data:E,reset:I}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:n,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});d=v??d,f=T??f,m={...m,[w]:{...m[w],...E}},I&&g<=50&&(g++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(u=I.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):I.rects),{x:d,y:f}=AB(u,p,l)),x=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function jp(e,t){var r;t===void 0&&(t={});let{x:a,y:n,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Xi(t,e),g=hL(m),w=s[p?f==="floating"?"reference":"floating":f],b=od(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(w)))==null||r?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),v=f==="floating"?{x:a,y:n,width:i.floating.width,height:i.floating.height}:i.reference,T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),E=await(o.isElement==null?void 0:o.isElement(T))?await(o.getScale==null?void 0:o.getScale(T))||{x:1,y:1}:{x:1,y:1},I=od(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:T,strategy:l}):v);return{top:(b.top-I.top+g.top)/E.y,bottom:(I.bottom-b.bottom+g.bottom)/E.y,left:(b.left-I.left+g.left)/E.x,right:(I.right-b.right+g.right)/E.x}}var OB=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:a,placement:n,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=Xi(e,t)||{};if(u==null)return{};let f=hL(d),p={x:r,y:a},m=pw(n),g=fw(m),x=await i.getDimensions(u),w=m==="y",b=w?"top":"left",v=w?"bottom":"right",T=w?"clientHeight":"clientWidth",E=o.reference[g]+o.reference[m]-p[m]-o.floating[g],I=p[m]-o.reference[m],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u)),A=_?_[T]:0;(!A||!await(i.isElement==null?void 0:i.isElement(_)))&&(A=s.floating[T]||o.floating[g]);let N=E/2-I/2,F=A/2-x[g]/2-1,R=Ki(f[b],F),ne=Ki(f[v],F),z=R,D=A-x[g]-ne,$=A/2-x[g]/2+N,H=cw(z,$,D),V=!l.arrow&&nd(n)!=null&&$!==H&&o.reference[g]/2-($<z?R:ne)-x[g]/2<0,Q=V?$<z?$-z:$-D:0;return{[m]:p[m]+Q,data:{[m]:H,centerOffset:$-H-Q,...V&&{alignmentOffset:Q}},reset:V}}});var DB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;let{placement:n,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...w}=Xi(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let b=Ji(n),v=Zs(s),T=Ji(s)===s,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(T||!x?[y0(s)]:kB(s)),_=g!=="none";!p&&_&&I.push(...CB(s,x,g,E));let A=[s,...I],N=await jp(t,w),F=[],R=((a=o.flip)==null?void 0:a.overflows)||[];if(d&&F.push(N[b]),f){let $=_B(n,i,E);F.push(N[$[0]],N[$[1]])}if(R=[...R,{placement:n,overflows:F}],!F.every($=>$<=0)){var ne,z;let $=(((ne=o.flip)==null?void 0:ne.index)||0)+1,H=A[$];if(H)return{data:{index:$,overflows:R},reset:{placement:H}};let V=(z=R.filter(Q=>Q.overflows[0]<=0).sort((Q,te)=>Q.overflows[1]-te.overflows[1])[0])==null?void 0:z.placement;if(!V)switch(m){case"bestFit":{var D;let Q=(D=R.filter(te=>{if(_){let Ee=Zs(te.placement);return Ee===v||Ee==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(Ee=>Ee>0).reduce((Ee,C)=>Ee+C,0)]).sort((te,Ee)=>te[1]-Ee[1])[0])==null?void 0:D[0];Q&&(V=Q);break}case"initialPlacement":V=s;break}if(n!==V)return{reset:{placement:V}}}return{}}}};function LB(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function NB(e){return IB.some(t=>e[t]>=0)}var MB=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:a="referenceHidden",...n}=Xi(e,t);switch(a){case"referenceHidden":{let o=await jp(t,{...n,elementContext:"reference"}),i=LB(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:NB(i)}}}case"escaped":{let o=await jp(t,{...n,altBoundary:!0}),i=LB(o,r.floating);return{data:{escapedOffsets:i,escaped:NB(i)}}}default:return{}}}}};async function Xle(e,t){let{placement:r,platform:a,elements:n}=e,o=await(a.isRTL==null?void 0:a.isRTL(n.floating)),i=Ji(r),s=nd(r),l=Zs(r)==="y",u=["left","top"].includes(i)?-1:1,d=o&&l?-1:1,f=Xi(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),l?{x:m*d,y:p*u}:{x:p*u,y:m*d}}var PB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;let{x:n,y:o,placement:i,middlewareData:s}=t,l=await Xle(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:i}}}}},UB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:a,placement:n}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:w=>{let{x:b,y:v}=w;return{x:b,y:v}}},...l}=Xi(e,t),u={x:r,y:a},d=await jp(t,l),f=Zs(Ji(n)),p=dw(f),m=u[p],g=u[f];if(o){let w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",v=m+d[w],T=m-d[b];m=cw(v,m,T)}if(i){let w=f==="y"?"top":"left",b=f==="y"?"bottom":"right",v=g+d[w],T=g-d[b];g=cw(v,g,T)}let x=s.fn({...t,[p]:m,[f]:g});return{...x,data:{x:x.x-r,y:x.y-a,enabled:{[p]:o,[f]:i}}}}}},zB=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:a,placement:n,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Xi(e,t),d={x:r,y:a},f=Zs(n),p=dw(f),m=d[p],g=d[f],x=Xi(s,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){let T=p==="y"?"height":"width",E=o.reference[p]-o.floating[T]+w.mainAxis,I=o.reference[p]+o.reference[T]-w.mainAxis;m<E?m=E:m>I&&(m=I)}if(u){var b,v;let T=p==="y"?"width":"height",E=["top","left"].includes(Ji(n)),I=o.reference[f]-o.floating[T]+(E&&((b=i.offset)==null?void 0:b[f])||0)+(E?0:w.crossAxis),_=o.reference[f]+o.reference[T]+(E?0:((v=i.offset)==null?void 0:v[f])||0)-(E?w.crossAxis:0);g<I?g=I:g>_&&(g=_)}return{[p]:m,[f]:g}}}},FB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;let{placement:n,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...u}=Xi(e,t),d=await jp(t,u),f=Ji(n),p=nd(n),m=Zs(n)==="y",{width:g,height:x}=o.floating,w,b;f==="top"||f==="bottom"?(w=f,b=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(b=f,w=p==="end"?"top":"bottom");let v=x-d.top-d.bottom,T=g-d.left-d.right,E=Ki(x-d[w],v),I=Ki(g-d[b],T),_=!t.middlewareData.shift,A=E,N=I;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=T),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(A=v),_&&!p){let R=pn(d.left,0),ne=pn(d.right,0),z=pn(d.top,0),D=pn(d.bottom,0);m?N=g-2*(R!==0||ne!==0?R+ne:pn(d.left,d.right)):A=x-2*(z!==0||D!==0?z+D:pn(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:A});let F=await i.getDimensions(s.floating);return g!==F.width||x!==F.height?{reset:{rects:!0}}:{}}}};c();function mw(){return typeof window<"u"}function sd(e){return $B(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function di(e){var t;return(t=($B(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $B(e){return mw()?e instanceof Node||e instanceof Ln(e).Node:!1}function Ao(e){return mw()?e instanceof Element||e instanceof Ln(e).Element:!1}function fi(e){return mw()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function BB(e){return!mw()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}function Hp(e){let{overflow:t,overflowX:r,overflowY:a,display:n}=Lo(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function jB(e){return["table","td","th"].includes(sd(e))}function x0(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function hw(e){let t=gw(),r=Ao(e)?Lo(e):e;return["transform","translate","scale","rotate","perspective"].some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(a=>(r.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(r.contain||"").includes(a))}function HB(e){let t=Ws(e);for(;fi(t)&&!ld(t);){if(hw(t))return t;if(x0(t))return null;t=Ws(t)}return null}function gw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ld(e){return["html","body","#document"].includes(sd(e))}function Lo(e){return Ln(e).getComputedStyle(e)}function w0(e){return Ao(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ws(e){if(sd(e)==="html")return e;let t=e.assignedSlot||e.parentNode||BB(e)&&e.host||di(e);return BB(t)?t.host:t}function VB(e){let t=Ws(e);return ld(t)?e.ownerDocument?e.ownerDocument.body:e.body:fi(t)&&Hp(t)?t:VB(t)}function id(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=VB(e),o=n===((a=e.ownerDocument)==null?void 0:a.body),i=Ln(n);if(o){let s=yw(i);return t.concat(i,i.visualViewport||[],Hp(n)?n:[],s&&r?id(s):[])}return t.concat(n,id(n,[],r))}function yw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ZB(e){let t=Lo(e),r=parseFloat(t.width)||0,a=parseFloat(t.height)||0,n=fi(e),o=n?e.offsetWidth:r,i=n?e.offsetHeight:a,s=b0(r)!==o||b0(a)!==i;return s&&(r=o,a=i),{width:r,height:a,$:s}}function yL(e){return Ao(e)?e:e.contextElement}function Vp(e){let t=yL(e);if(!fi(t))return ci(1);let r=t.getBoundingClientRect(),{width:a,height:n,$:o}=ZB(t),i=(o?b0(r.width):r.width)/a,s=(o?b0(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var Jle=ci(0);function WB(e){let t=Ln(e);return!gw()||!t.visualViewport?Jle:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qle(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ln(e)?!1:t}function ud(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=yL(e),i=ci(1);t&&(a?Ao(a)&&(i=Vp(a)):i=Vp(e));let s=Qle(o,r,a)?WB(o):ci(0),l=(n.left+s.x)/i.x,u=(n.top+s.y)/i.y,d=n.width/i.x,f=n.height/i.y;if(o){let p=Ln(o),m=a&&Ao(a)?Ln(a):a,g=p,x=yw(g);for(;x&&a&&m!==g;){let w=Vp(x),b=x.getBoundingClientRect(),v=Lo(x),T=b.left+(x.clientLeft+parseFloat(v.paddingLeft))*w.x,E=b.top+(x.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,f*=w.y,l+=T,u+=E,g=Ln(x),x=yw(g)}}return od({width:d,height:f,x:l,y:u})}function bL(e,t){let r=w0(e).scrollLeft;return t?t.left+r:ud(di(e)).left+r}function YB(e,t,r){r===void 0&&(r=!1);let a=e.getBoundingClientRect(),n=a.left+t.scrollLeft-(r?0:bL(e,a)),o=a.top+t.scrollTop;return{x:n,y:o}}function eue(e){let{elements:t,rect:r,offsetParent:a,strategy:n}=e,o=n==="fixed",i=di(a),s=t?x0(t.floating):!1;if(a===i||s&&o)return r;let l={scrollLeft:0,scrollTop:0},u=ci(1),d=ci(0),f=fi(a);if((f||!f&&!o)&&((sd(a)!=="body"||Hp(i))&&(l=w0(a)),fi(a))){let m=ud(a);u=Vp(a),d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}let p=i&&!f&&!o?YB(i,l,!0):ci(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:r.y*u.y-l.scrollTop*u.y+d.y+p.y}}function tue(e){return Array.from(e.getClientRects())}function rue(e){let t=di(e),r=w0(e),a=e.ownerDocument.body,n=pn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=pn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),i=-r.scrollLeft+bL(e),s=-r.scrollTop;return Lo(a).direction==="rtl"&&(i+=pn(t.clientWidth,a.clientWidth)-n),{width:n,height:o,x:i,y:s}}function aue(e,t){let r=Ln(e),a=di(e),n=r.visualViewport,o=a.clientWidth,i=a.clientHeight,s=0,l=0;if(n){o=n.width,i=n.height;let u=gw();(!u||u&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:o,height:i,x:s,y:l}}function nue(e,t){let r=ud(e,!0,t==="fixed"),a=r.top+e.clientTop,n=r.left+e.clientLeft,o=fi(e)?Vp(e):ci(1),i=e.clientWidth*o.x,s=e.clientHeight*o.y,l=n*o.x,u=a*o.y;return{width:i,height:s,x:l,y:u}}function qB(e,t,r){let a;if(t==="viewport")a=aue(e,r);else if(t==="document")a=rue(di(e));else if(Ao(t))a=nue(t,r);else{let n=WB(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return od(a)}function KB(e,t){let r=Ws(e);return r===t||!Ao(r)||ld(r)?!1:Lo(r).position==="fixed"||KB(r,t)}function oue(e,t){let r=t.get(e);if(r)return r;let a=id(e,[],!1).filter(s=>Ao(s)&&sd(s)!=="body"),n=null,o=Lo(e).position==="fixed",i=o?Ws(e):e;for(;Ao(i)&&!ld(i);){let s=Lo(i),l=hw(i);!l&&s.position==="fixed"&&(n=null),(o?!l&&!n:!l&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Hp(i)&&!l&&KB(e,i))?a=a.filter(d=>d!==i):n=s,i=Ws(i)}return t.set(e,a),a}function iue(e){let{element:t,boundary:r,rootBoundary:a,strategy:n}=e,i=[...r==="clippingAncestors"?x0(t)?[]:oue(t,this._c):[].concat(r),a],s=i[0],l=i.reduce((u,d)=>{let f=qB(t,d,n);return u.top=pn(f.top,u.top),u.right=Ki(f.right,u.right),u.bottom=Ki(f.bottom,u.bottom),u.left=pn(f.left,u.left),u},qB(t,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sue(e){let{width:t,height:r}=ZB(e);return{width:t,height:r}}function lue(e,t,r){let a=fi(t),n=di(t),o=r==="fixed",i=ud(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=ci(0);if(a||!a&&!o)if((sd(t)!=="body"||Hp(n))&&(s=w0(t)),a){let p=ud(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else n&&(l.x=bL(n));let u=n&&!a&&!o?YB(n,s):ci(0),d=i.left+s.scrollLeft-l.x-u.x,f=i.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function gL(e){return Lo(e).position==="static"}function GB(e,t){if(!fi(e)||Lo(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return di(e)===r&&(r=r.ownerDocument.body),r}function XB(e,t){let r=Ln(e);if(x0(e))return r;if(!fi(e)){let n=Ws(e);for(;n&&!ld(n);){if(Ao(n)&&!gL(n))return n;n=Ws(n)}return r}let a=GB(e,t);for(;a&&jB(a)&&gL(a);)a=GB(a,t);return a&&ld(a)&&gL(a)&&!hw(a)?r:a||HB(e)||r}var uue=async function(e){let t=this.getOffsetParent||XB,r=this.getDimensions,a=await r(e.floating);return{reference:lue(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function cue(e){return Lo(e).direction==="rtl"}var JB={convertOffsetParentRelativeRectToViewportRelativeRect:eue,getDocumentElement:di,getClippingRect:iue,getOffsetParent:XB,getElementRects:uue,getClientRects:tue,getDimensions:sue,getScale:Vp,isElement:Ao,isRTL:cue};function QB(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function due(e,t){let r=null,a,n=di(e);function o(){var s;clearTimeout(a),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();let u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(s||t(),!p||!m)return;let g=v0(f),x=v0(n.clientWidth-(d+p)),w=v0(n.clientHeight-(f+m)),b=v0(d),T={rootMargin:-g+"px "+-x+"px "+-w+"px "+-b+"px",threshold:pn(0,Ki(1,l))||1},E=!0;function I(_){let A=_[0].intersectionRatio;if(A!==l){if(!E)return i();A?i(!1,A):a=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!QB(u,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(I,{...T,root:n.ownerDocument})}catch{r=new IntersectionObserver(I,T)}r.observe(e)}return i(!0),o}function vL(e,t,r,a){a===void 0&&(a={});let{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,u=yL(e),d=n||o?[...u?id(u):[],...id(t)]:[];d.forEach(b=>{n&&b.addEventListener("scroll",r,{passive:!0}),o&&b.addEventListener("resize",r)});let f=u&&s?due(u,r):null,p=-1,m=null;i&&(m=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var T;(T=m)==null||T.observe(t)})),r()}),u&&!l&&m.observe(u),m.observe(t));let g,x=l?ud(e):null;l&&w();function w(){let b=ud(e);x&&!QB(x,b)&&r(),x=b,g=requestAnimationFrame(w)}return r(),()=>{var b;d.forEach(v=>{n&&v.removeEventListener("scroll",r),o&&v.removeEventListener("resize",r)}),f?.(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(g)}}var e9=PB;var t9=UB,r9=DB,a9=FB,n9=MB,xL=OB;var o9=zB,wL=(e,t,r)=>{let a=new Map,n={platform:JB,...r},o={...n.platform,_c:a};return RB(e,t,{...n,platform:o})};var ia=O(re(),1),xw=O(re(),1),s9=O(g0(),1),bw=typeof document<"u"?xw.useLayoutEffect:xw.useEffect;function vw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!vw(e[a],t[a]))return!1;return!0}if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,n[a]))return!1;for(a=r;a--!==0;){let o=n[a];if(!(o==="_owner"&&e.$$typeof)&&!vw(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function l9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function i9(e,t){let r=l9(e);return Math.round(t*r)/r}function TL(e){let t=ia.useRef(e);return bw(()=>{t.current=e}),t}function u9(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:n,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=ia.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ia.useState(a);vw(p,a)||m(a);let[g,x]=ia.useState(null),[w,b]=ia.useState(null),v=ia.useCallback(te=>{te!==_.current&&(_.current=te,x(te))},[]),T=ia.useCallback(te=>{te!==A.current&&(A.current=te,b(te))},[]),E=o||g,I=i||w,_=ia.useRef(null),A=ia.useRef(null),N=ia.useRef(d),F=l!=null,R=TL(l),ne=TL(n),z=TL(u),D=ia.useCallback(()=>{if(!_.current||!A.current)return;let te={placement:t,strategy:r,middleware:p};ne.current&&(te.platform=ne.current),wL(_.current,A.current,te).then(Ee=>{let C={...Ee,isPositioned:z.current!==!1};$.current&&!vw(N.current,C)&&(N.current=C,s9.flushSync(()=>{f(C)}))})},[p,t,r,ne,z]);bw(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(te=>({...te,isPositioned:!1})))},[u]);let $=ia.useRef(!1);bw(()=>($.current=!0,()=>{$.current=!1}),[]),bw(()=>{if(E&&(_.current=E),I&&(A.current=I),E&&I){if(R.current)return R.current(E,I,D);D()}},[E,I,D,R,F]);let H=ia.useMemo(()=>({reference:_,floating:A,setReference:v,setFloating:T}),[v,T]),V=ia.useMemo(()=>({reference:E,floating:I}),[E,I]),Q=ia.useMemo(()=>{let te={position:r,left:0,top:0};if(!V.floating)return te;let Ee=i9(V.floating,d.x),C=i9(V.floating,d.y);return s?{...te,transform:"translate("+Ee+"px, "+C+"px)",...l9(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Ee,top:C}},[r,s,V.floating,d.x,d.y]);return ia.useMemo(()=>({...d,update:D,refs:H,elements:V,floatingStyles:Q}),[d,D,H,V,Q])}var fue=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:a,padding:n}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?xL({element:a.current,padding:n}).fn(r):{}:a?xL({element:a,padding:n}).fn(r):{}}}},c9=(e,t)=>({...e9(e),options:[e,t]}),d9=(e,t)=>({...t9(e),options:[e,t]}),f9=(e,t)=>({...o9(e),options:[e,t]}),p9=(e,t)=>({...r9(e),options:[e,t]}),m9=(e,t)=>({...a9(e),options:[e,t]});var h9=(e,t)=>({...n9(e),options:[e,t]});var g9=(e,t)=>({...fue(e),options:[e,t]});c();var y9=O(re(),1);var EL=O(ae(),1),pue="Arrow",b9=y9.forwardRef((e,t)=>{let{children:r,width:a=10,height:n=5,...o}=e;return(0,EL.jsx)(Ia.svg,{...o,ref:t,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,EL.jsx)("polygon",{points:"0,0 30,0 15,10"})})});b9.displayName=pue;var v9=b9;c();var x9=O(re(),1);function w9(e){let[t,r]=x9.useState(void 0);return _a(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let o=n[0],i,s;if("borderBoxSize"in o){let l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var Tu=O(ae(),1);var SL="Popper",[T9,IL]=Bp(SL),[hue,E9]=T9(SL),S9=e=>{let{__scopePopper:t,children:r}=e,[a,n]=Nn.useState(null);return(0,Tu.jsx)(hue,{scope:t,anchor:a,onAnchorChange:n,children:r})};S9.displayName=SL;var I9="PopperAnchor",_9=Nn.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...n}=e,o=E9(I9,r),i=Nn.useRef(null),s=si(t,i),l=Nn.useRef(null);return Nn.useEffect(()=>{let u=l.current;l.current=a?.current||i.current,u!==l.current&&o.onAnchorChange(l.current)}),a?null:(0,Tu.jsx)(Ia.div,{...n,ref:s})});_9.displayName=I9;var _L="PopperContent",[gue,yue]=T9(_L),k9=Nn.forwardRef((e,t)=>{let{__scopePopper:r,side:a="bottom",sideOffset:n=0,align:o="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:g,...x}=e,w=E9(_L,r),[b,v]=Nn.useState(null),T=si(t,ze=>v(ze)),[E,I]=Nn.useState(null),_=w9(E),A=_?.width??0,N=_?.height??0,F=a+(o!=="center"?"-"+o:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},ne=Array.isArray(u)?u:[u],z=ne.length>0,D={padding:R,boundary:ne.filter(vue),altBoundary:z},{refs:$,floatingStyles:H,placement:V,isPositioned:Q,middlewareData:te}=u9({strategy:"fixed",placement:F,whileElementsMounted:(...ze)=>vL(...ze,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[c9({mainAxis:n+N,alignmentAxis:i}),l&&d9({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?f9():void 0,...D}),l&&p9({...D}),m9({...D,apply:({elements:ze,rects:Oe,availableWidth:Ke,availableHeight:ct})=>{let{width:Xe,height:Pt}=Oe.reference,Ve=ze.floating.style;Ve.setProperty("--radix-popper-available-width",`${Ke}px`),Ve.setProperty("--radix-popper-available-height",`${ct}px`),Ve.setProperty("--radix-popper-anchor-width",`${Xe}px`),Ve.setProperty("--radix-popper-anchor-height",`${Pt}px`)}}),E&&g9({element:E,padding:s}),xue({arrowWidth:A,arrowHeight:N}),p&&h9({strategy:"referenceHidden",...D})]}),[Ee,C]=L9(V),_e=Gs(g);_a(()=>{Q&&_e?.()},[Q,_e]);let He=te.arrow?.x,M=te.arrow?.y,Ye=te.arrow?.centerOffset!==0,[ut,yt]=Nn.useState();return _a(()=>{b&&yt(window.getComputedStyle(b).zIndex)},[b]),(0,Tu.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:Q?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ut,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(" "),...te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Tu.jsx)(gue,{scope:r,placedSide:Ee,onArrowChange:I,arrowX:He,arrowY:M,shouldHideArrow:Ye,children:(0,Tu.jsx)(Ia.div,{"data-side":Ee,"data-align":C,...x,ref:T,style:{...x.style,animation:Q?void 0:"none"}})})})});k9.displayName=_L;var C9="PopperArrow",bue={top:"bottom",right:"left",bottom:"top",left:"right"},A9=Nn.forwardRef(function(t,r){let{__scopePopper:a,...n}=t,o=yue(C9,a),i=bue[o.placedSide];return(0,Tu.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,Tu.jsx)(v9,{...n,ref:r,style:{...n.style,display:"block"}})})});A9.displayName=C9;function vue(e){return e!==null}var xue=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:a,middlewareData:n}=t,i=n.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=L9(r),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+s/2,m=(n.arrow?.y??0)+l/2,g="",x="";return u==="bottom"?(g=i?f:`${p}px`,x=`${-l}px`):u==="top"?(g=i?f:`${p}px`,x=`${a.floating.height+l}px`):u==="right"?(g=`${-l}px`,x=i?f:`${m}px`):u==="left"&&(g=`${a.floating.width+l}px`,x=i?f:`${m}px`),{data:{x:g,y:x}}}});function L9(e){let[t,r="center"]=e.split("-");return[t,r]}var N9=S9,R9=_9,O9=k9,D9=A9;c();var ww=O(re(),1),M9=O(g0(),1);var P9=O(ae(),1),Tue="Portal",kL=ww.forwardRef((e,t)=>{let{container:r,...a}=e,[n,o]=ww.useState(!1);_a(()=>o(!0),[]);let i=r||n&&globalThis?.document?.body;return i?M9.default.createPortal((0,P9.jsx)(Ia.div,{...a,ref:t}),i):null});kL.displayName=Tue;c();var Rn=O(re(),1);var U9=O(re(),1);function Eue(e,t){return U9.useReducer((r,a)=>t[r][a]??r,e)}var Ew=e=>{let{present:t,children:r}=e,a=Sue(t),n=typeof r=="function"?r({present:a.isPresent}):Rn.Children.only(r),o=si(a.ref,Iue(n));return typeof r=="function"||a.isPresent?Rn.cloneElement(n,{ref:o}):null};Ew.displayName="Presence";function Sue(e){let[t,r]=Rn.useState(),a=Rn.useRef(null),n=Rn.useRef(e),o=Rn.useRef("none"),i=e?"mounted":"unmounted",[s,l]=Eue(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Rn.useEffect(()=>{let u=Tw(a.current);o.current=s==="mounted"?u:"none"},[s]),_a(()=>{let u=a.current,d=n.current;if(d!==e){let p=o.current,m=Tw(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),_a(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,f=m=>{let x=Tw(a.current).includes(CSS.escape(m.animationName));if(m.target===t&&x&&(l("ANIMATION_END"),!n.current)){let w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},p=m=>{m.target===t&&(o.current=Tw(a.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Rn.useCallback(u=>{a.current=u?getComputedStyle(u):null,r(u)},[])}}function Tw(e){return e?.animationName||"none"}function Iue(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}c();var No=O(re(),1);var Sw=O(re(),1);var _ue=No[" useInsertionEffect ".trim().toString()]||_a;function z9({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){let[n,o,i]=kue({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n;{let d=No.useRef(e!==void 0);No.useEffect(()=>{let f=d.current;f!==s&&console.warn(`${a} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,a])}let u=No.useCallback(d=>{if(s){let f=Cue(d)?d(e):d;f!==e&&i.current?.(f)}else o(d)},[s,e,o,i]);return[l,u]}function kue({defaultProp:e,onChange:t}){let[r,a]=No.useState(e),n=No.useRef(r),o=No.useRef(t);return _ue(()=>{o.current=t},[t]),No.useEffect(()=>{n.current!==r&&(o.current?.(r),n.current=r)},[r,n]),[r,a,o]}function Cue(e){return typeof e=="function"}var ott=Symbol("RADIX:SYNC_STATE");c();var F9=O(re(),1);var B9=O(ae(),1),Aue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Lue="VisuallyHidden",$9=F9.forwardRef((e,t)=>(0,B9.jsx)(Ia.span,{...e,ref:t,style:{...Aue,...e.style}}));$9.displayName=Lue;var j9=$9;var sa=O(ae(),1),[Iw,wtt]=Bp("Tooltip",[IL]),_w=IL(),H9="TooltipProvider",Rue=700,CL="tooltip.open",[Oue,LL]=Iw(H9),V9=e=>{let{__scopeTooltip:t,delayDuration:r=Rue,skipDelayDuration:a=300,disableHoverableContent:n=!1,children:o}=e,i=ft.useRef(!0),s=ft.useRef(!1),l=ft.useRef(0);return ft.useEffect(()=>{let u=l.current;return()=>window.clearTimeout(u)},[]),(0,sa.jsx)(Oue,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:ft.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:ft.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,a)},[a]),isPointerInTransitRef:s,onPointerInTransitChange:ft.useCallback(u=>{s.current=u},[]),disableHoverableContent:n,children:o})};V9.displayName=H9;var T0="Tooltip",[Due,E0]=Iw(T0),q9=e=>{let{__scopeTooltip:t,children:r,open:a,defaultOpen:n,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,l=LL(T0,e.__scopeTooltip),u=_w(t),[d,f]=ft.useState(null),p=SB(),m=ft.useRef(0),g=i??l.disableHoverableContent,x=s??l.delayDuration,w=ft.useRef(!1),[b,v]=z9({prop:a,defaultProp:n??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(CL))):l.onClose(),o?.(A)},caller:T0}),T=ft.useMemo(()=>b?w.current?"delayed-open":"instant-open":"closed",[b]),E=ft.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w.current=!1,v(!0)},[v]),I=ft.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v(!1)},[v]),_=ft.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,v(!0),m.current=0},x)},[x,v]);return ft.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,sa.jsx)(N9,{...u,children:(0,sa.jsx)(Due,{scope:t,contentId:p,open:b,stateAttribute:T,trigger:d,onTriggerChange:f,onTriggerEnter:ft.useCallback(()=>{l.isOpenDelayedRef.current?_():E()},[l.isOpenDelayedRef,_,E]),onTriggerLeave:ft.useCallback(()=>{g?I():(window.clearTimeout(m.current),m.current=0)},[I,g]),onOpen:E,onClose:I,disableHoverableContent:g,children:r})})};q9.displayName=T0;var AL="TooltipTrigger",G9=ft.forwardRef((e,t)=>{let{__scopeTooltip:r,...a}=e,n=E0(AL,r),o=LL(AL,r),i=_w(r),s=ft.useRef(null),l=si(t,s,n.onTriggerChange),u=ft.useRef(!1),d=ft.useRef(!1),f=ft.useCallback(()=>u.current=!1,[]);return ft.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),(0,sa.jsx)(R9,{asChild:!0,...i,children:(0,sa.jsx)(Ia.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...a,ref:l,onPointerMove:ui(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(n.onTriggerEnter(),d.current=!0)}),onPointerLeave:ui(e.onPointerLeave,()=>{n.onTriggerLeave(),d.current=!1}),onPointerDown:ui(e.onPointerDown,()=>{n.open&&n.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ui(e.onFocus,()=>{u.current||n.onOpen()}),onBlur:ui(e.onBlur,n.onClose),onClick:ui(e.onClick,n.onClose)})})});G9.displayName=AL;var NL="TooltipPortal",[Mue,Pue]=Iw(NL,{forceMount:void 0}),Z9=e=>{let{__scopeTooltip:t,forceMount:r,children:a,container:n}=e,o=E0(NL,t);return(0,sa.jsx)(Mue,{scope:t,forceMount:r,children:(0,sa.jsx)(Ew,{present:r||o.open,children:(0,sa.jsx)(kL,{asChild:!0,container:n,children:a})})})};Z9.displayName=NL;var qp="TooltipContent",W9=ft.forwardRef((e,t)=>{let r=Pue(qp,e.__scopeTooltip),{forceMount:a=r.forceMount,side:n="top",...o}=e,i=E0(qp,e.__scopeTooltip);return(0,sa.jsx)(Ew,{present:a||i.open,children:i.disableHoverableContent?(0,sa.jsx)(Y9,{side:n,...o,ref:t}):(0,sa.jsx)(Uue,{side:n,...o,ref:t})})}),Uue=ft.forwardRef((e,t)=>{let r=E0(qp,e.__scopeTooltip),a=LL(qp,e.__scopeTooltip),n=ft.useRef(null),o=si(t,n),[i,s]=ft.useState(null),{trigger:l,onClose:u}=r,d=n.current,{onPointerInTransitChange:f}=a,p=ft.useCallback(()=>{s(null),f(!1)},[f]),m=ft.useCallback((g,x)=>{let w=g.currentTarget,b={x:g.clientX,y:g.clientY},v=$ue(b,w.getBoundingClientRect()),T=jue(b,v),E=Hue(x.getBoundingClientRect()),I=que([...T,...E]);s(I),f(!0)},[f]);return ft.useEffect(()=>()=>p(),[p]),ft.useEffect(()=>{if(l&&d){let g=w=>m(w,d),x=w=>m(w,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",x),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",x)}}},[l,d,m,p]),ft.useEffect(()=>{if(i){let g=x=>{let w=x.target,b={x:x.clientX,y:x.clientY},v=l?.contains(w)||d?.contains(w),T=!Vue(b,i);v?p():T&&(p(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,i,u,p]),(0,sa.jsx)(Y9,{...e,ref:o})}),[zue,Fue]=Iw(T0,{isInside:!1}),Bue=DU("TooltipContent"),Y9=ft.forwardRef((e,t)=>{let{__scopeTooltip:r,children:a,"aria-label":n,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,l=E0(qp,r),u=_w(r),{onClose:d}=l;return ft.useEffect(()=>(document.addEventListener(CL,d),()=>document.removeEventListener(CL,d)),[d]),ft.useEffect(()=>{if(l.trigger){let f=p=>{p.target?.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),(0,sa.jsx)(pL,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:(0,sa.jsxs)(O9,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,sa.jsx)(Bue,{children:a}),(0,sa.jsx)(zue,{scope:r,isInside:!0,children:(0,sa.jsx)(j9,{id:l.contentId,role:"tooltip",children:n||a})})]})})});W9.displayName=qp;var K9="TooltipArrow",X9=ft.forwardRef((e,t)=>{let{__scopeTooltip:r,...a}=e,n=_w(r);return Fue(K9,r).isInside?null:(0,sa.jsx)(D9,{...n,...a,ref:t})});X9.displayName=K9;function $ue(e,t){let r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),n=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,a,n,o)){case o:return"left";case n:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function jue(e,t,r=5){let a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return a}function Hue(e){let{top:t,right:r,bottom:a,left:n}=e;return[{x:n,y:t},{x:r,y:t},{x:r,y:a},{x:n,y:a}]}function Vue(e,t){let{x:r,y:a}=e,n=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){let s=t[o],l=t[i],u=s.x,d=s.y,f=l.x,p=l.y;d>a!=p>a&&r<(f-u)*(a-d)/(p-d)+u&&(n=!n)}return n}function que(e){let t=e.slice();return t.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),Gue(t)}function Gue(e){if(e.length<=1)return e.slice();let t=[];for(let a=0;a<e.length;a++){let n=e[a];for(;t.length>=2;){let o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(n.y-i.y)>=(o.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let a=e.length-1;a>=0;a--){let n=e[a];for(;r.length>=2;){let o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(n.y-i.y)>=(o.y-i.y)*(n.x-i.x))r.pop();else break}r.push(n)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var J9=V9,Q9=q9,e7=G9,t7=Z9,r7=W9,a7=X9;var Ys=O(ae());function Wue({delayDuration:e=0,...t}){return(0,Ys.jsx)(J9,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pi({...e}){return(0,Ys.jsx)(Wue,{children:(0,Ys.jsx)(Q9,{"data-slot":"tooltip",...e})})}function mi({...e}){return(0,Ys.jsx)(e7,{"data-slot":"tooltip-trigger",...e})}function hi({className:e,sideOffset:t=0,children:r,...a}){return(0,Ys.jsx)(t7,{children:(0,Ys.jsxs)(r7,{"data-slot":"tooltip-content",sideOffset:t,className:nt("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...a,children:[r,(0,Ys.jsx)(a7,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}var we=O(ae()),n7=null;try{n7=GX("@app/store/agent")?.useAgentStore}catch{}function S0({value:e,onChange:t,onSubmit:r,onStop:a,onFileUpload:n,onRecordAudio:o,onStopRecording:i,isRecording:s,isLoading:l,placeholder:u,channel:d,selectedAgent:f,onAgentChange:p,availableAgents:m=[],hasAttachments:g=!1,variant:x="default",selectedModel:w,onModelChange:b,availableModels:v,agentName:T,agentIconUrl:E}){let I=(0,Dr.useRef)(null),_=(0,Dr.useRef)(null),[A,N]=(0,Dr.useState)(!1),[F,R]=(0,Dr.useState)(!1),[ne,z]=(0,Dr.useState)(!1),[D,$]=(0,Dr.useState)(!1),H=[{id:"gpt_4o",name:"GPT-4o",icon:"\u{1F7E2}"},{id:"gpt_41",name:"GPT-4.1",icon:"\u{1F535}"},{id:"claude_4_sonnet",name:"Claude 4 Sonnet",icon:"\u{1F7E1}"},{id:"claude_4_5_sonnet",name:"Claude 4.5 Sonnet",icon:"\u{1F7E1}"},{id:"gpt_o3_mini",name:"GPT-o3 Mini",icon:"\u{1F7E2}"},{id:"deepseek_v3",name:"Deepseek V3",icon:"\u{1F534}"}],V=n7?.()||{},Q=V.selectedChatAgent,te=V.setSelectedChatAgent,Ee=V.agent,C=d==="agent_builder"?Q||Ee:f,_e=d==="agent_builder"?ie=>{te?.(ie),p?.(ie)}:p,He=m,M=(0,Dr.useCallback)(async ie=>{if(d==="agent_builder"&&C?.id&&_e){z(!0),N(!1);try{let Re=await fetch(`/api/agents/${C.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({versionConfig:{modelName:ie}})});if(Re.ok){let dt=await Re.json();_e(dt)}}catch(Re){console.error("Error updating model:",Re)}finally{z(!1)}return}if(!(!C?.id||ne)){z(!0),N(!1);try{let Re=await fetch(`/api/agents/${C.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({versionConfig:{modelName:ie}})});if(Re.ok){let dt=await Re.json();_e?.(dt)}}catch(Re){console.error("Error updating model:",Re)}finally{z(!1)}}},[d,C?.id,_e,ne]),Ye=C?.currentVersion?.modelName||"gpt_4o",ut=H.find(ie=>ie.id===Ye)?.name||Ye,[yt,ze]=(0,Dr.useState)(!1),[Oe,Ke]=(0,Dr.useState)(""),[ct,Xe]=(0,Dr.useState)(0),[Pt,Ve]=(0,Dr.useState)(!1),[bt,zt]=(0,Dr.useState)(""),[We,mr]=(0,Dr.useState)(0),U=d==="agent_builder"&&He.length>0,j=d==="dashboard"&&v&&v.length>0,W=d==="agent_builder"&&!C?.id,ye=(0,Dr.useCallback)(ie=>{t(ie);let Re=_.current?.selectionStart||ie.length,zr=ie.slice(0,Re).split(/\s/),Fr=zr[zr.length-1];if(Fr.startsWith("/")&&Fr.length>0){ze(!0),Ke(Fr),Xe(0),Ve(!1);return}if(Fr.startsWith("@")&&Fr.length>0){Ve(!0),zt(Fr),mr(0),ze(!1);return}ze(!1),Ke(""),Ve(!1),zt("")},[t]),fe=(0,Dr.useCallback)(ie=>{let Re=_.current?.selectionStart||e.length,dt=e.slice(0,Re),zr=e.slice(Re),Fr=dt.lastIndexOf("/");if(Fr===-1)return;let Ta=dt.slice(0,Fr)+ie.name+" ",ei=Ta+zr;t(ei),ze(!1),Ke(""),setTimeout(()=>{if(_.current){let Tn=Ta.length;_.current.setSelectionRange(Tn,Tn),_.current.focus()}},0)},[e,t]),de=(0,Dr.useCallback)(ie=>{let Re=_.current?.selectionStart||e.length,dt=e.slice(0,Re),zr=e.slice(Re),Fr=dt.lastIndexOf("@");if(Fr===-1)return;let Ta=dt.slice(0,Fr)+`@${ie.name} `,ei=Ta+zr;t(ei),Ve(!1),zt(""),setTimeout(()=>{if(_.current){let Tn=Ta.length;_.current.setSelectionRange(Tn,Tn),_.current.focus()}},0)},[e,t]),ce=(0,Dr.useCallback)(ie=>{if(yt||Pt){if(["ArrowDown","ArrowUp","Escape"].includes(ie.key)){ie.preventDefault();return}if(ie.key==="Enter"&&!ie.shiftKey){ie.preventDefault();return}}ie.key==="Enter"&&!ie.shiftKey&&(ie.preventDefault(),l||r())},[r,l,yt,Pt]),Se=(0,Dr.useCallback)(()=>{I.current?.click()},[]),Z=(0,Dr.useCallback)(ie=>{if(!D){console.log("[MessageInput] \u{1F504} Agent selected from dropdown:",ie.name,ie.id,"channel:",d),$(!0);try{console.log("[MessageInput] \u2705 Calling onAgentChange callback"),_e?.(ie),N(!1)}catch(Re){console.error("[MessageInput] Failed to update agent:",Re)}finally{$(!1)}}},[_e,d,D]),X=(0,Dr.useCallback)(ie=>{let Re=Array.from(ie.target.files||[]);Re.length>0&&n?.(Re),ie.currentTarget.value=""},[n]);return(0,we.jsxs)("div",{className:"relative w-full z-50",children:[yt&&(0,we.jsx)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-[100]",children:(0,we.jsx)(AU,{query:Oe,onSelect:fe,onClose:()=>{ze(!1),Ke("")},selectedIndex:ct,onIndexChange:Xe})}),Pt&&(0,we.jsx)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-[100]",children:(0,we.jsx)(LU,{query:bt,agents:He,onSelect:de,onClose:()=>{Ve(!1),zt("")},selectedIndex:We,onIndexChange:mr})}),(0,we.jsxs)("div",{className:`w-full bg-orange-50 dark:bg-[#303030] flex flex-col px-2 sm:px-3 py-1.5 mb-3 rounded-3xl border-2 border-neutral-200 dark:border-[#333535] ${x==="compact"?"h-auto":"h-full"}`,children:[(0,we.jsx)("div",{className:`w-full ${x==="compact"?"h-auto":"h-full flex-1"}`,children:(0,we.jsx)("textarea",{ref:_,value:e,onChange:ie=>ye(ie.target.value),onKeyDown:ce,placeholder:W?"Selecciona un agente...":u||"Escribe un mensaje...",disabled:!!l||W,className:`!text-sm w-full overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-horneross-orange hover:scrollbar-thumb-horneross-orange-dark !caret-black dark:!caret-white !text-black dark:!text-white placeholder:text-xs placeholder:text-neutral-500 dark:placeholder:text-gray-500 ${x==="compact"?"!min-h-[60px]":"h-full"}`,style:{all:"unset",resize:"none",fontWeight:200,scrollbarWidth:"thin",scrollbarColor:"#d4d4d4 transparent",overscrollBehavior:"contain",width:"100%",...x==="compact"?{minHeight:"60px"}:{}}})}),(0,we.jsxs)("div",{className:"w-full flex justify-between items-center gap-1.5 md:gap-3",children:[(0,we.jsxs)(pi,{children:[(0,we.jsx)(mi,{asChild:!0,children:(0,we.jsxs)(Br,{type:"button",variant:"outline",size:"sm",onClick:Se,disabled:!!l||W,className:"bg-neutral-100 dark:bg-white/5 hover:bg-neutral-200 dark:hover:bg-white/10 border-neutral-300 dark:border-white/20 text-neutral-900 dark:text-white rounded-2xl px-2.5 md:px-3",children:[(0,we.jsx)(kc,{className:"w-4 h-4"}),(0,we.jsx)("span",{className:"font-medium hidden sm:inline",children:"Attach"})]})}),(0,we.jsx)(hi,{children:(0,we.jsx)("p",{children:"Attach"})})]}),(0,we.jsxs)("div",{className:"flex items-center gap-1.5 md:gap-2",children:[U&&(0,we.jsxs)("div",{className:"relative",children:[(0,we.jsxs)(pi,{children:[(0,we.jsx)(mi,{asChild:!0,children:(0,we.jsxs)(Br,{type:"button",variant:"outline",size:"sm",onClick:()=>N(!A),disabled:!!l,className:"bg-neutral-100 dark:bg-white/5 hover:bg-neutral-200 dark:hover:bg-white/10 border-neutral-300 dark:border-white/20 text-neutral-900 dark:text-white rounded-2xl flex items-center gap-1 md:gap-1.5 px-2 md:px-3 py-2 max-w-[140px] sm:max-w-[200px] md:max-w-none",children:[(0,we.jsx)(Nf,{className:"w-4 h-4 flex-shrink-0"}),(0,we.jsx)("span",{className:"text-xs font-semibold leading-tight truncate max-w-[40px] sm:max-w-[60px] md:max-w-none",children:C?.name||T||"Agent"}),(0,we.jsx)("span",{className:"text-xs opacity-50 hidden sm:inline",children:"/"}),(0,we.jsx)("span",{className:"text-xs opacity-60 leading-tight truncate max-w-[40px] sm:max-w-[60px] md:max-w-none hidden sm:inline",children:ut||"Model"}),(0,we.jsx)(gr,{className:`w-3 h-3 ml-auto transition-transform flex-shrink-0 ${A?"rotate-180":""}`})]})}),(0,we.jsx)(hi,{children:(0,we.jsx)("p",{children:"Agente & Modelo"})})]}),A&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("div",{className:"fixed inset-0 z-40 pointer-events-none",onClick:()=>N(!1)}),(0,we.jsxs)("div",{className:"absolute bottom-full right-0 sm:left-1/2 sm:-translate-x-1/2 mb-3 bg-white dark:bg-[#242426] border border-orange-200 dark:border-[#404042] rounded-lg shadow-xl z-50 w-[240px] sm:w-[280px]",children:[(0,we.jsxs)("div",{className:"border-b border-neutral-200 dark:border-[#404042] p-3",children:[(0,we.jsx)("div",{className:"text-xs font-semibold text-neutral-600 dark:text-neutral-400 mb-2",children:"AGENTE"}),(0,we.jsx)("div",{className:"max-h-48 overflow-y-auto space-y-1",children:He.map(ie=>(0,we.jsxs)(Br,{type:"button",variant:"ghost",size:"sm",onClick:()=>{Z(ie)},disabled:D,className:`w-full justify-start rounded-lg text-sm px-3 py-2 transition-all disabled:opacity-50 disabled:cursor-not-allowed ${C?.id===ie.id?"bg-orange-500/20 text-orange-600 dark:text-orange-400 font-medium":"text-black dark:text-white hover:bg-orange-100 dark:hover:bg-[#2a2a2c]"}`,children:[D&&C?.id===ie.id?(0,we.jsx)(ht,{className:"w-3 h-3 mr-2 flex-shrink-0 animate-spin"}):(0,we.jsx)(Nf,{className:"w-3 h-3 mr-2 flex-shrink-0"}),(0,we.jsx)("span",{className:"truncate",children:ie.name}),C?.id===ie.id&&!D&&(0,we.jsx)(Kn,{className:"w-3 h-3 ml-auto flex-shrink-0"})]},ie.id))})]}),(0,we.jsxs)("div",{className:"p-3",children:[(0,we.jsx)("div",{className:"text-xs font-semibold text-neutral-600 dark:text-neutral-400 mb-2",children:"MODELO"}),(0,we.jsx)("div",{className:"max-h-48 overflow-y-auto space-y-1",children:H.map(ie=>(0,we.jsxs)(Br,{type:"button",variant:"ghost",size:"sm",onClick:()=>{M(ie.id),N(!1)},disabled:ne||!C,className:`w-full justify-start rounded-lg text-sm px-3 py-2 transition-all ${Ye===ie.id?"bg-orange-500/20 text-orange-600 dark:text-orange-400 font-medium":"text-black dark:text-white hover:bg-orange-100 dark:hover:bg-[#2a2a2c]"}`,children:[(0,we.jsx)(_s,{className:"w-3 h-3 mr-2 flex-shrink-0"}),(0,we.jsx)("span",{className:"truncate",children:ie.name}),Ye===ie.id&&(0,we.jsx)(Kn,{className:"w-3 h-3 ml-auto flex-shrink-0"})]},ie.id))})]})]})]})]}),j&&(0,we.jsxs)("div",{className:"relative",children:[(0,we.jsxs)(pi,{children:[(0,we.jsx)(mi,{asChild:!0,children:(0,we.jsxs)(Br,{type:"button",variant:"outline",size:"sm",onClick:()=>R(!F),disabled:!!l,className:"bg-neutral-100 dark:bg-white/5 hover:bg-neutral-200 dark:hover:bg-white/10 border-neutral-300 dark:border-white/20 text-neutral-900 dark:text-white rounded-2xl flex items-center gap-1 md:gap-1.5 px-2 md:px-3 py-2 max-w-[120px] sm:max-w-[180px] md:max-w-none",children:[(0,we.jsx)(_s,{className:"w-4 h-4 flex-shrink-0"}),(0,we.jsx)("span",{className:"text-xs font-semibold leading-tight truncate",children:w?v.find(ie=>ie.value===w)?.label||w:"Model"}),(0,we.jsx)(gr,{className:`w-3 h-3 ml-auto transition-transform flex-shrink-0 ${F?"rotate-180":""}`})]})}),(0,we.jsx)(hi,{children:(0,we.jsx)("p",{children:"Select Model"})})]}),F&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("div",{className:"fixed inset-0 z-40",onClick:()=>R(!1)}),(0,we.jsx)("div",{className:"absolute bottom-full right-0 sm:left-1/2 sm:-translate-x-1/2 mb-3 bg-white dark:bg-[#242426] border border-orange-200 dark:border-[#404042] rounded-lg shadow-xl z-50 w-[200px] sm:w-[240px]",children:(0,we.jsxs)("div",{className:"p-3",children:[(0,we.jsx)("div",{className:"text-xs font-semibold text-neutral-600 dark:text-neutral-400 mb-2",children:"SELECT MODEL"}),(0,we.jsx)("div",{className:"max-h-64 overflow-y-auto space-y-1",children:v.map(ie=>(0,we.jsxs)(Br,{type:"button",variant:"ghost",size:"sm",onClick:()=>{b&&b(ie.value),R(!1)},className:`w-full justify-start rounded-lg text-sm px-3 py-2 transition-all ${w===ie.value?"bg-orange-500/20 text-orange-600 dark:text-orange-400 font-medium":"text-black dark:text-white hover:bg-orange-100 dark:hover:bg-[#2a2a2c]"}`,children:[(0,we.jsx)(_s,{className:"w-3 h-3 mr-2 flex-shrink-0"}),(0,we.jsx)("span",{className:"truncate",children:ie.label}),w===ie.value&&(0,we.jsx)(Kn,{className:"w-3 h-3 ml-auto flex-shrink-0"})]},ie.value))})]})})]})]}),(0,we.jsxs)(pi,{children:[(0,we.jsx)(mi,{asChild:!0,children:(0,we.jsx)(Br,{type:"button",variant:"ghost",size:"icon-sm",onClick:o?s?i:o:void 0,disabled:!!l||W,className:`rounded-2xl !bg-orange-100 dark:!bg-black !text-neutral-900 dark:!text-white hover:!bg-orange-200 dark:hover:!bg-neutral-900 !border !border-orange-200 dark:!border-neutral-800 ${s?"!bg-red-100 dark:!bg-red-950 !text-red-600 dark:!text-red-500 !border-red-300 dark:!border-red-800":""}`,children:s?(0,we.jsx)(Df,{className:"w-4 h-4 fill-current"}):(0,we.jsx)(eg,{className:"w-4 h-4"})})}),(0,we.jsx)(hi,{children:(0,we.jsx)("p",{children:s?"Detener grabaci\xF3n":"Grabar audio"})})]}),(0,we.jsxs)(pi,{children:[(0,we.jsx)(mi,{asChild:!0,children:(0,we.jsx)(Br,{type:"button",size:"icon-sm",onClick:l&&a?a:r,disabled:W||(l?!a:!e?.trim()&&!g),className:"rounded-2xl bg-[#FF8800] hover:bg-[#FF8800]/90 disabled:opacity-40 text-white",children:l?a?(0,we.jsx)(Df,{className:"w-3 h-3 text-white fill-current"}):(0,we.jsx)(ht,{className:"w-4 h-4 text-white animate-spin"}):(0,we.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,we.jsx)("path",{d:"M12 19V5M5 12l7-7 7 7"})})})}),(0,we.jsx)(hi,{children:(0,we.jsx)("p",{children:l?a?"Detener":"Cargando...":"Enviar mensaje"})})]})]}),(0,we.jsx)("input",{ref:I,type:"file",multiple:!0,style:{display:"none"},onChange:X})]})]})]})}c();var kw=O(re());c();var ao=O(re());var no=O(ae()),Yue=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("h1",{ref:r,className:nt("scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl text-black dark:text-white",e),...t}));Yue.displayName="TypographyH1";var Kue=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("h2",{ref:r,className:nt("scroll-m-20 border-b border-gray-200 dark:border-gray-800 pb-2 text-3xl font-semibold tracking-tight first:mt-0 text-black dark:text-white",e),...t}));Kue.displayName="TypographyH2";var Xue=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("h3",{ref:r,className:nt("scroll-m-20 text-2xl font-semibold tracking-tight text-black dark:text-white",e),...t}));Xue.displayName="TypographyH3";var Jue=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("h4",{ref:r,className:nt("scroll-m-20 text-xl font-semibold tracking-tight text-black dark:text-white",e),...t}));Jue.displayName="TypographyH4";var Que=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("p",{ref:r,className:nt("leading-7 [&:not(:first-child)]:mt-6 text-black dark:text-white",e),...t}));Que.displayName="TypographyP";var ece=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("blockquote",{ref:r,className:nt("mt-6 border-l-2 border-[#FF8800] dark:border-[#FFB347] pl-6 italic text-black/80 dark:text-white/80",e),...t}));ece.displayName="TypographyBlockquote";var tce=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("ul",{ref:r,className:nt("my-6 ml-6 list-disc [&>li]:mt-2 text-black dark:text-white",e),...t}));tce.displayName="TypographyList";var rce=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("code",{ref:r,className:nt("relative rounded bg-black/10 dark:bg-white/10 px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-black dark:text-white",e),...t}));rce.displayName="TypographyInlineCode";var ace=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("p",{ref:r,className:nt("text-xl text-black/70 dark:text-white/70",e),...t}));ace.displayName="TypographyLead";var nce=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("div",{ref:r,className:nt("text-lg font-semibold text-black dark:text-white",e),...t}));nce.displayName="TypographyLarge";var mn=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("small",{ref:r,className:nt("text-sm font-medium leading-none text-black dark:text-white",e),...t}));mn.displayName="TypographySmall";var Ro=ao.forwardRef(({className:e,...t},r)=>(0,no.jsx)("p",{ref:r,className:nt("text-sm text-black/70 dark:text-white/70",e),...t}));Ro.displayName="TypographyMuted";var gi=O(ae()),o7=[{text:"Analizando tu consulta",icon:Wh},{text:"Procesando informaci\xF3n",icon:ko},{text:"Buscando en la base de conocimiento",icon:rg},{text:"Generando respuesta",icon:Fi},{text:"Optimizando resultado",icon:_s}],oce=({visible:e,channel:t="default",className:r})=>{let[a,n]=(0,kw.useState)(0);(0,kw.useEffect)(()=>{if(!e){n(0);return}let s=setInterval(()=>{n(l=>(l+1)%o7.length)},2e3);return()=>clearInterval(s)},[e]);let o=o7[a],i=o.icon;return(0,gi.jsx)(Vt,{children:e&&(0,gi.jsx)(se.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3,ease:"easeInOut"},className:nt("w-full max-w-3xl mx-auto px-4",r),children:(0,gi.jsxs)("div",{className:"flex items-center gap-3 py-2",children:[(0,gi.jsx)(se.div,{initial:{opacity:0,rotate:-180,scale:.5},animate:{opacity:1,rotate:0,scale:1},exit:{opacity:0,rotate:180,scale:.5},transition:{duration:.4,ease:"backOut"},className:"flex-shrink-0",children:(0,gi.jsx)(i,{className:"w-4 h-4 text-[#FF8800] dark:text-[#FFB347]"})},`icon-${a}`),(0,gi.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,gi.jsx)(Vt,{mode:"wait",children:(0,gi.jsx)(se.div,{initial:{opacity:0,y:20,filter:"blur(4px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},exit:{opacity:0,y:-20,filter:"blur(4px)"},transition:{duration:.4,ease:"easeOut"},children:(0,gi.jsx)(mn,{className:"text-black dark:text-gray-400",children:o.text})},a)})})]})})})},RL=oce;c();var OL=O(re());var ya=O(ae());function ice(e){let t=("mimeType"in e?e.mimeType:e.type)?.toLowerCase()||"",r=e.name?.split(".").pop()?.toLowerCase()||"";return t.startsWith("image/")?{icon:(0,ya.jsx)(Ss,{className:"w-5 h-5"}),color:"text-blue-400",bgColor:"bg-blue-500/10 border-blue-500/30 hover:bg-blue-500/20"}:t==="application/pdf"||r==="pdf"?{icon:(0,ya.jsx)(Fi,{className:"w-5 h-5"}),color:"text-red-400",bgColor:"bg-red-500/10 border-red-500/30 hover:bg-red-500/20"}:t.includes("spreadsheet")||t.includes("excel")||["xls","xlsx","csv"].includes(r||"")?{icon:(0,ya.jsx)(Rf,{className:"w-5 h-5"}),color:"text-green-400",bgColor:"bg-green-500/10 border-green-500/30 hover:bg-green-500/20"}:t.includes("word")||t.includes("document")||["doc","docx"].includes(r||"")?{icon:(0,ya.jsx)(Fi,{className:"w-5 h-5"}),color:"text-blue-400",bgColor:"bg-blue-500/10 border-blue-500/30 hover:bg-blue-500/20"}:t==="application/json"||r==="json"?{icon:(0,ya.jsx)(Kh,{className:"w-5 h-5"}),color:"text-yellow-400",bgColor:"bg-yellow-500/10 border-yellow-500/30 hover:bg-yellow-500/20"}:t==="text/csv"||r==="csv"?{icon:(0,ya.jsx)(Rf,{className:"w-5 h-5"}),color:"text-green-400",bgColor:"bg-green-500/10 border-green-500/30 hover:bg-green-500/20"}:{icon:(0,ya.jsx)(Xh,{className:"w-5 h-5"}),color:"text-gray-400",bgColor:"bg-gray-500/10 border-gray-500/30 hover:bg-gray-500/20"}}function sce(e){return e<1024?e+" B":e<1024*1024?(e/1024).toFixed(1)+" KB":(e/(1024*1024)).toFixed(1)+" MB"}function DL({file:e,onRemove:t,disabled:r}){let{icon:a,color:n,bgColor:o}=ice(e),s=("mimeType"in e&&e.mimeType||"type"in e&&e.type||"").startsWith("image/"),l=e._uploading===!0,u=e._error===!0,[d,f]=OL.default.useState(null);return OL.default.useEffect(()=>{if(s){if("url"in e&&e.url)f(e.url);else if(e instanceof File||e instanceof Blob){let p=new FileReader;p.onloadend=()=>{f(p.result)},p.readAsDataURL(e)}}},[e,s]),(0,ya.jsxs)(se.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:`group relative inline-flex items-center gap-3 px-3 py-2 border rounded-xl transition-all duration-200 ${u?"bg-red-500/10 border-red-500/30":o} ${l?"opacity-60":""}`,children:[(0,ya.jsx)("div",{className:`flex-shrink-0 ${n} relative`,children:l?(0,ya.jsx)(ht,{className:"w-5 h-5 animate-spin"}):s&&d?(0,ya.jsx)("div",{className:"w-10 h-10 rounded-lg overflow-hidden border border-[rgba(255,136,0,0.2)] dark:border-white/10",children:(0,ya.jsx)("img",{src:d,alt:e.name,className:"w-full h-full object-cover"})}):a}),(0,ya.jsxs)("div",{className:"flex flex-col min-w-0 flex-1",children:[(0,ya.jsx)("span",{className:"text-sm font-medium truncate max-w-[200px] text-black dark:text-white",children:e.name}),(0,ya.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:l?"Subiendo...":u?"Error al subir":sce(e.size)})]}),(0,ya.jsx)(se.button,{type:"button",disabled:r,onClick:t,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center rounded-md transition-all text-gray-600 dark:text-gray-400 hover:bg-red-500/20 hover:text-red-500 disabled:opacity-50 disabled:cursor-not-allowed",whileHover:r?{}:{scale:1.1},whileTap:r?{}:{scale:.95},children:(0,ya.jsx)(Is,{className:"w-4 h-4"})})]})}c();var Cw=O(ae());function lce({starters:e,onStarterClick:t,disabled:r=!1,primaryColor:a="#FF8800"}){if(!e||e.length===0)return null;let o=(i=>{let s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);return s?`${parseInt(s[1],16)}, ${parseInt(s[2],16)}, ${parseInt(s[3],16)}`:"255, 136, 0"})(a);return(0,Cw.jsx)(se.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"flex flex-wrap justify-start gap-2 pb-3",children:e.map((i,s)=>(0,Cw.jsx)(se.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:s*.05},whileHover:r?{}:{opacity:.9},whileTap:r?{}:{scale:.98},children:(0,Cw.jsx)(Br,{variant:"outline",size:"sm",onClick:()=>t(i),disabled:r,className:"text-black dark:text-gray-300 hover:text-black dark:hover:text-white",style:{backgroundColor:`rgba(${o}, 0.1)`,borderColor:`rgba(${o}, 0.2)`},onMouseEnter:l=>{r||(l.currentTarget.style.backgroundColor=`rgba(${o}, 0.2)`,l.currentTarget.style.borderColor=`rgba(${o}, 0.4)`)},onMouseLeave:l=>{r||(l.currentTarget.style.backgroundColor=`rgba(${o}, 0.1)`,l.currentTarget.style.borderColor=`rgba(${o}, 0.2)`)},children:i})},s))})}var i7=lce;c();var Ur=O(re());c();var Jr=O(re());c();var Aw={ASSISTANT_MESSAGE:"py-1 rounded-xl text-black dark:text-white",USER_MESSAGE:"py-1 mx-2 rounded-3xl bg-gray-200 dark:bg-black border border-gray-400/40 dark:border-gray-600/40 !text-black dark:!text-white",MESSAGE_TEXT:"text-base md:text-xl whitespace-normal font-medium text-black dark:text-white",LOADING_TEXT:"text-xs text-gray-500 dark:text-white/60 px-3"},s7={agent_builder:Aw,dashboard:Aw,website:Aw,default:Aw},Qi={CONTAINER:"ml-2 inline-flex items-center gap-2 rounded-xl border px-3 py-2 bg-gray-100 dark:bg-white/[.03]",LOADING:"border-yellow-500/40 dark:border-yellow-500/20 bg-yellow-500/20 dark:bg-yellow-500/25",COMPLETE:"border-green-500/40 dark:border-green-500/20 bg-green-500/20 dark:bg-green-500/25",ERROR:"border-red-500/40 dark:border-red-500/20 bg-red-500/20 dark:bg-red-500/25",ICON_LOADING:"w-4 h-4 animate-spin text-yellow-600 dark:text-yellow-400",ICON_COMPLETE:"w-4 h-4 text-green-600 dark:text-green-400",ICON_ERROR:"w-4 h-4 text-red-600 dark:text-red-400",TEXT_LOADING:"text-sm font-medium text-yellow-700 dark:text-yellow-300",TEXT_COMPLETE:"text-sm font-medium text-green-700 dark:text-green-300",TEXT_ERROR:"text-sm font-medium text-red-700 dark:text-red-300"},Lw={MESSAGE_WRAPPER_USER:"flex justify-end w-full",MESSAGE_WRAPPER_ASSISTANT:"flex justify-start w-full flex-1",MESSAGE_CONTENT_USER:"max-w-[90%] md:max-w-[80%] items-end",MESSAGE_CONTENT_ASSISTANT:"flex flex-col items-start w-full"},l7={agent_builder:Lw,dashboard:Lw,website:Lw,default:Lw,AVATAR:"w-8 h-8 rounded-full border border-gray-400 dark:border-gray-600 overflow-hidden flex items-center justify-center bg-gray-200 dark:bg-transparent",AVATAR_ICON:"w-4 h-4 text-gray-600 dark:text-gray-400"};function uce(...e){return e.filter(Boolean).join(" ")}function ML(e,t="default"){let r=s7[t];return e==="user"?r.USER_MESSAGE:r.ASSISTANT_MESSAGE}function PL(e="default"){return s7[e].MESSAGE_TEXT}function u7(e){let t=Qi.CONTAINER,r={loading:Qi.LOADING,complete:Qi.COMPLETE,error:Qi.ERROR}[e];return uce(t,r)}function c7(e){return{loading:Qi.TEXT_LOADING,complete:Qi.TEXT_COMPLETE,error:Qi.TEXT_ERROR}[e]}function Nw(e){return{loading:Qi.ICON_LOADING,complete:Qi.ICON_COMPLETE,error:Qi.ICON_ERROR}[e]}function UL(e,t="default"){let r=l7[t];return e==="user"?r.MESSAGE_WRAPPER_USER:r.MESSAGE_WRAPPER_ASSISTANT}function zL(e,t="default"){let r=l7[t];return e==="user"?r.MESSAGE_CONTENT_USER:r.MESSAGE_CONTENT_ASSISTANT}c();var nl=O(re());c();c();c();c();c();function FL(e){let t=[],r=String(e||""),a=r.indexOf(","),n=0,o=!1;for(;!o;){a===-1&&(a=r.length,o=!0);let i=r.slice(n,a).trim();(i||!o)&&t.push(i),n=a+1,a=r.indexOf(",",n)}return t}function Rw(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}c();c();var cce=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dce=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fce={};function Ow(e,t){return((t||fce).jsx?dce:cce).test(e)}c();c();var pce=/[ \t\n\f\r]/g;function BL(e){return typeof e=="object"?e.type==="text"?d7(e.value):!1:d7(e)}function d7(e){return e.replace(pce,"")===""}c();c();c();var Ks=class{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}};Ks.prototype.normal={};Ks.prototype.property={};Ks.prototype.space=void 0;function $L(e,t){let r={},a={};for(let n of e)Object.assign(r,n.property),Object.assign(a,n.normal);return new Ks(r,a,t)}c();c();c();function Xs(e){return e.toLowerCase()}c();c();var ka=class{constructor(t,r){this.attribute=r,this.property=t}};ka.prototype.attribute="";ka.prototype.booleanish=!1;ka.prototype.boolean=!1;ka.prototype.commaOrSpaceSeparated=!1;ka.prototype.commaSeparated=!1;ka.prototype.defined=!1;ka.prototype.mustUseProperty=!1;ka.prototype.number=!1;ka.prototype.overloadedBoolean=!1;ka.prototype.property="";ka.prototype.spaceSeparated=!1;ka.prototype.space=void 0;var I0={};nn(I0,{boolean:()=>it,booleanish:()=>$r,commaOrSpaceSeparated:()=>On,commaSeparated:()=>Eu,number:()=>he,overloadedBoolean:()=>jL,spaceSeparated:()=>Wt});c();var mce=0,it=cd(),$r=cd(),jL=cd(),he=cd(),Wt=cd(),Eu=cd(),On=cd();function cd(){return 2**++mce}var HL=Object.keys(I0),dd=class extends ka{constructor(t,r,a,n){let o=-1;if(super(t,r),f7(this,"space",n),typeof a=="number")for(;++o<HL.length;){let i=HL[o];f7(this,HL[o],(a&I0[i])===I0[i])}}};dd.prototype.defined=!0;function f7(e,t,r){r&&(e[t]=r)}function Oo(e){let t={},r={};for(let[a,n]of Object.entries(e.properties)){let o=new dd(a,e.transform(e.attributes||{},a),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,r[Xs(a)]=a,r[Xs(o.attribute)]=a}return new Ks(t,r,e.space)}var VL=Oo({properties:{ariaActiveDescendant:null,ariaAtomic:$r,ariaAutoComplete:null,ariaBusy:$r,ariaChecked:$r,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:Wt,ariaCurrent:null,ariaDescribedBy:Wt,ariaDetails:null,ariaDisabled:$r,ariaDropEffect:Wt,ariaErrorMessage:null,ariaExpanded:$r,ariaFlowTo:Wt,ariaGrabbed:$r,ariaHasPopup:null,ariaHidden:$r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wt,ariaLevel:he,ariaLive:null,ariaModal:$r,ariaMultiLine:$r,ariaMultiSelectable:$r,ariaOrientation:null,ariaOwns:Wt,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:$r,ariaReadOnly:$r,ariaRelevant:null,ariaRequired:$r,ariaRoleDescription:Wt,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:$r,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});c();c();c();function Dw(e,t){return t in e?e[t]:t}function Mw(e,t){return Dw(e,t.toLowerCase())}var p7=Oo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eu,acceptCharset:Wt,accessKey:Wt,action:null,allow:null,allowFullScreen:it,allowPaymentRequest:it,allowUserMedia:it,alt:null,as:null,async:it,autoCapitalize:null,autoComplete:Wt,autoFocus:it,autoPlay:it,blocking:Wt,capture:null,charSet:null,checked:it,cite:null,className:Wt,cols:he,colSpan:null,content:null,contentEditable:$r,controls:it,controlsList:Wt,coords:he|Eu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:it,defer:it,dir:null,dirName:null,disabled:it,download:jL,draggable:$r,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:it,formTarget:null,headers:Wt,height:he,hidden:it,high:he,href:null,hrefLang:null,htmlFor:Wt,httpEquiv:Wt,id:null,imageSizes:null,imageSrcSet:null,inert:it,inputMode:null,integrity:null,is:null,isMap:it,itemId:null,itemProp:Wt,itemRef:Wt,itemScope:it,itemType:Wt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:it,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:it,muted:it,name:null,nonce:null,noModule:it,noValidate:it,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:it,optimum:he,pattern:null,ping:Wt,placeholder:null,playsInline:it,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:it,referrerPolicy:null,rel:Wt,required:it,reversed:it,rows:he,rowSpan:he,sandbox:Wt,scope:null,scoped:it,seamless:it,selected:it,shadowRootClonable:it,shadowRootDelegatesFocus:it,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:$r,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:it,useMap:null,value:$r,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wt,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:it,declare:it,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:it,noHref:it,noShade:it,noWrap:it,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:$r,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:it,disableRemotePlayback:it,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:Mw});c();var m7=Oo({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:On,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:Wt,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:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:it,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,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:Eu,g2:Eu,glyphName:Eu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:On,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,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:he,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:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:On,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:On,rev:On,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:On,requiredFeatures:On,requiredFonts:On,requiredFormats:On,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:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:On,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:On,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:On,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dw});c();var qL=Oo({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()}});c();var GL=Oo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mw});c();var ZL=Oo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});c();var WL={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"};c();var hce=/[A-Z]/g,h7=/-[a-z]/g,gce=/^data[-\w.:]+$/i;function fd(e,t){let r=Xs(t),a=t,n=ka;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&gce.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(h7,bce);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!h7.test(o)){let i=o.replace(hce,yce);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=dd}return new n(a,t)}function yce(e){return"-"+e.toLowerCase()}function bce(e){return e.charAt(1).toUpperCase()}var pd=$L([VL,p7,qL,GL,ZL],"html"),Js=$L([VL,m7,qL,GL,ZL],"svg");c();function YL(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Pw(e){return e.join(" ").trim()}c();var KL=O(T7(),1),E7=KL.default.default||KL.default;c();c();var hd=S7("end"),Dn=S7("start");function S7(e){return t;function t(r){let a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function XL(e){let t=Dn(e),r=hd(e);if(t&&r)return{start:t,end:r}}c();c();c();c();function Su(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?I7(e.position):"start"in e||"end"in e?I7(e):"line"in e||"column"in e?JL(e):""}function JL(e){return _7(e&&e.line)+":"+_7(e&&e.column)}function I7(e){return JL(e&&e.start)+"-"+JL(e&&e.end)}function _7(e){return e&&typeof e=="number"?e:1}var Kr=class extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let n="",o={},i=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?n=t:!o.cause&&t&&(i=!0,n=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof a=="string"){let l=a.indexOf(":");l===-1?o.ruleId=a:(o.source=a.slice(0,l),o.ruleId=a.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let s=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=s?s.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=s?s.line:void 0,this.name=Su(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,this.expected,this.note,this.url}};Kr.prototype.file="";Kr.prototype.name="";Kr.prototype.reason="";Kr.prototype.message="";Kr.prototype.stack="";Kr.prototype.column=void 0;Kr.prototype.line=void 0;Kr.prototype.ancestors=void 0;Kr.prototype.cause=void 0;Kr.prototype.fatal=void 0;Kr.prototype.place=void 0;Kr.prototype.ruleId=void 0;Kr.prototype.source=void 0;var QL={}.hasOwnProperty,Rce=new Map,Oce=/[A-Z]/g,Dce=/-([a-z])/g,Mce=new Set(["table","tbody","thead","tfoot","tr"]),Pce=new Set(["td","th"]),k7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eN(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let r=t.filePath||void 0,a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=Vce(r,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");a=Hce(r,t.jsx,t.jsxs)}let n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Js:pd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=C7(n,e,void 0);return o&&typeof o!="string"?o:n.create(e,n.Fragment,{children:o||void 0},void 0)}function C7(e,t,r){if(t.type==="element")return Uce(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return zce(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Bce(e,t,r);if(t.type==="mdxjsEsm")return Fce(e,t);if(t.type==="root")return $ce(e,t,r);if(t.type==="text")return jce(e,t)}function Uce(e,t,r){let a=e.schema,n=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(n=Js,e.schema=n),e.ancestors.push(t);let o=L7(e,t.tagName,!1),i=qce(e,t),s=rN(e,t);return Mce.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!BL(l):!0})),A7(e,i,o,t),tN(i,s),e.ancestors.pop(),e.schema=a,e.create(t,o,i,r)}function zce(e,t){if(t.data&&t.data.estree&&e.evaluater){let a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}k0(e,t.position)}function Fce(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);k0(e,t.position)}function Bce(e,t,r){let a=e.schema,n=a;t.name==="svg"&&a.space==="html"&&(n=Js,e.schema=n),e.ancestors.push(t);let o=t.name===null?e.Fragment:L7(e,t.name,!0),i=Gce(e,t),s=rN(e,t);return A7(e,i,o,t),tN(i,s),e.ancestors.pop(),e.schema=a,e.create(t,o,i,r)}function $ce(e,t,r){let a={};return tN(a,rN(e,t)),e.create(t,e.Fragment,a,r)}function jce(e,t){return t.value}function A7(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function tN(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function Hce(e,t,r){return a;function a(n,o,i,s){let u=Array.isArray(i.children)?r:t;return s?u(o,i,s):u(o,i)}}function Vce(e,t){return r;function r(a,n,o,i){let s=Array.isArray(o.children),l=Dn(a);return t(n,o,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function qce(e,t){let r={},a,n;for(n in t.properties)if(n!=="children"&&QL.call(t.properties,n)){let o=Zce(e,n,t.properties[n]);if(o){let[i,s]=o;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&Pce.has(t.tagName)?a=s:r[i]=s}}if(a){let o=r.style||(r.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function Gce(e,t){let r={};for(let a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){let o=a.data.estree.body[0];o.type;let i=o.expression;i.type;let s=i.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else k0(e,t.position);else{let n=a.name,o;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){let s=a.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else k0(e,t.position);else o=a.value===null?!0:a.value;r[n]=o}return r}function rN(e,t){let r=[],a=-1,n=e.passKeys?new Map:Rce;for(;++a<t.children.length;){let o=t.children[a],i;if(e.passKeys){let l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){let u=n.get(l)||0;i=l+"-"+u,n.set(l,u+1)}}let s=C7(e,o,i);s!==void 0&&r.push(s)}return r}function Zce(e,t,r){let a=fd(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?Rw(r):Pw(r)),a.property==="style"){let n=typeof r=="object"?r:Wce(e,String(r));return e.stylePropertyNameCase==="css"&&(n=Yce(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&a.space?WL[a.property]||a.property:a.attribute,r]}}function Wce(e,t){let r={};try{E7(t,a)}catch(n){if(!e.ignoreInvalidStyle){let o=n,i=new Kr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=k7+"#cannot-parse-style-attribute",i}}return r;function a(n,o){let i=n;i.slice(0,2)!=="--"&&(i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),i=i.replace(Dce,Xce)),r[i]=o}}function L7(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){let n=t.split("."),o=-1,i;for(;++o<n.length;){let s=Ow(n[o])?{type:"Identifier",name:n[o]}:{type:"Literal",value:n[o]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}a=i}else a=Ow(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){let n=a.value;return QL.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(a);k0(e)}function k0(e,t){let r=new Kr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=k7+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Yce(e){let t={},r;for(r in e)QL.call(e,r)&&(t[Kce(r)]=e[r]);return t}function Kce(e){let t=e.replace(Oce,Jce);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Xce(e,t){return t.toUpperCase()}function Jce(e){return"-"+e.toLowerCase()}c();c();var C0={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 Yp=O(ae(),1),DN=O(re(),1);c();c();c();c();c();c();var Qce={};function gd(e,t){let r=t||Qce,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return R7(e,a,n)}function R7(e,t,r){if(ede(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return N7(e.children,t,r)}return Array.isArray(e)?N7(e,t,r):""}function N7(e,t,r){let a=[],n=-1;for(;++n<e.length;)a[n]=R7(e[n],t,r);return a.join("")}function ede(e){return!!(e&&typeof e=="object")}c();c();var O7=document.createElement("i");function Gp(e){let t="&"+e+";";O7.innerHTML=t;let r=O7.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}c();function Xr(e,t,r,a){let n=e.length,o=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,a.length<1e4)i=Array.from(a),i.unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);o<a.length;)i=a.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function hn(e,t){return e.length>0?(Xr(e,e.length,0,t),e):t}c();var D7={}.hasOwnProperty;function Uw(e){let t={},r=-1;for(;++r<e.length;)tde(t,e[r]);return t}function tde(e,t){let r;for(r in t){let n=(D7.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],i;if(o)for(i in o){D7.call(n,i)||(n[i]=[]);let s=o[i];rde(n[i],Array.isArray(s)?s:s?[s]:[])}}}function rde(e,t){let r=-1,a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);Xr(e,0,0,a)}c();function zw(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}c();function Ya(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}c();c();var ba=Iu(/[A-Za-z]/),jr=Iu(/[\dA-Za-z]/),M7=Iu(/[#-'*+\--9=?A-Z^-~]/);function yd(e){return e!==null&&(e<32||e===127)}var A0=Iu(/\d/),P7=Iu(/[\dA-Fa-f]/),U7=Iu(/[!-/:-@[-`{-~]/);function Ne(e){return e!==null&&e<-2}function St(e){return e!==null&&(e<0||e===32)}function qe(e){return e===-2||e===-1||e===32}var bd=Iu(/\p{P}|\p{S}/u),es=Iu(/\s/);function Iu(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Do(e){let t=[],r=-1,a=0,n=0;for(;++r<e.length;){let o=e.charCodeAt(r),i="";if(o===37&&jr(e.charCodeAt(r+1))&&jr(e.charCodeAt(r+2)))n=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){let s=e.charCodeAt(r+1);o<56320&&s>56319&&s<57344?(i=String.fromCharCode(o,s),n=1):i="\uFFFD"}else i=String.fromCharCode(o);i&&(t.push(e.slice(a,r),encodeURIComponent(i)),a=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(a)}c();c();c();function je(e,t,r,a){let n=a?a-1:Number.POSITIVE_INFINITY,o=0;return i;function i(l){return qe(l)?(e.enter(r),s(l)):t(l)}function s(l){return qe(l)&&o++<n?(e.consume(l),s):(e.exit(r),t(l))}}var z7={tokenize:ade};function ade(e){let t=e.attempt(this.parser.constructs.contentInitial,a,n),r;return t;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),je(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),o(s)}function o(s){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Ne(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),i)}}c();var B7={tokenize:nde},F7={tokenize:ode};function nde(e){let t=this,r=[],a=0,n,o,i;return s;function s(T){if(a<r.length){let E=r[a];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(T)}return u(T)}function l(T){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&v();let E=t.events.length,I=E,_;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){_=t.events[I][1].end;break}b(a);let A=E;for(;A<t.events.length;)t.events[A][1].end={..._},A++;return Xr(t.events,I+1,0,t.events.slice(E)),t.events.length=A,u(T)}return s(T)}function u(T){if(a===r.length){if(!n)return p(T);if(n.currentConstruct&&n.currentConstruct.concrete)return g(T);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(F7,d,f)(T)}function d(T){return n&&v(),b(a),p(T)}function f(T){return t.parser.lazy[t.now().line]=a!==r.length,i=t.now().offset,g(T)}function p(T){return t.containerState={},e.attempt(F7,m,g)(T)}function m(T){return a++,r.push([t.currentConstruct,t.containerState]),p(T)}function g(T){if(T===null){n&&v(),b(0),e.consume(T);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:o}),x(T)}function x(T){if(T===null){w(e.exit("chunkFlow"),!0),b(0),e.consume(T);return}return Ne(T)?(e.consume(T),w(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(T),x)}function w(T,E){let I=t.sliceStream(T);if(E&&I.push(null),T.previous=o,o&&(o.next=T),o=T,n.defineSkip(T.start),n.write(I),t.parser.lazy[T.start.line]){let _=n.events.length;for(;_--;)if(n.events[_][1].start.offset<i&&(!n.events[_][1].end||n.events[_][1].end.offset>i))return;let A=t.events.length,N=A,F,R;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(F){R=t.events[N][1].end;break}F=!0}for(b(a),_=A;_<t.events.length;)t.events[_][1].end={...R},_++;Xr(t.events,N+1,0,t.events.slice(A)),t.events.length=_}}function b(T){let E=r.length;for(;E-- >T;){let I=r[E];t.containerState=I[1],I[0].exit.call(t,e)}r.length=T}function v(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}function ode(e,t,r){return je(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}c();c();c();c();function Qs(e){if(e===null||St(e)||es(e))return 1;if(bd(e))return 2}c();function _u(e,t,r){let a=[],n=-1;for(;++n<e.length;){let o=e[n].resolveAll;o&&!a.includes(o)&&(t=o(t,r),a.push(o))}return t}var L0={name:"attention",resolveAll:ide,tokenize:sde};function ide(e,t){let r=-1,a,n,o,i,s,l,u,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f={...e[a][1].end},p={...e[r][1].start};$7(f,-l),$7(p,l),i={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[a][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},n={type:l>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[a][1].end={...i.start},e[r][1].start={...s.end},u=[],e[a][1].end.offset-e[a][1].start.offset&&(u=hn(u,[["enter",e[a][1],t],["exit",e[a][1],t]])),u=hn(u,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),u=hn(u,_u(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),u=hn(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,u=hn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,Xr(e,a-1,r-a+3,u),r=a+u.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function sde(e,t){let r=this.parser.constructs.attentionMarkers.null,a=this.previous,n=Qs(a),o;return i;function i(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;let u=e.exit("attentionSequence"),d=Qs(l),f=!d||d===2&&n||r.includes(l),p=!n||n===2&&d||r.includes(a);return u._open=!!(o===42?f:f&&(n||!p)),u._close=!!(o===42?p:p&&(d||!f)),t(l)}}function $7(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}c();var aN={name:"autolink",tokenize:lde};function lde(e,t,r){let a=0;return n;function n(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(m){return ba(m)?(e.consume(m),i):m===64?r(m):u(m)}function i(m){return m===43||m===45||m===46||jr(m)?(a=1,s(m)):u(m)}function s(m){return m===58?(e.consume(m),a=0,l):(m===43||m===45||m===46||jr(m))&&a++<32?(e.consume(m),s):(a=0,u(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||yd(m)?r(m):(e.consume(m),l)}function u(m){return m===64?(e.consume(m),d):M7(m)?(e.consume(m),u):r(m)}function d(m){return jr(m)?f(m):r(m)}function f(m){return m===46?(e.consume(m),a=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||jr(m))&&a++<63){let g=m===45?p:f;return e.consume(m),g}return r(m)}}c();var ts={partial:!0,tokenize:ude};function ude(e,t,r){return a;function a(o){return qe(o)?je(e,n,"linePrefix")(o):n(o)}function n(o){return o===null||Ne(o)?t(o):r(o)}}c();var Fw={continuation:{tokenize:dde},exit:fde,name:"blockQuote",tokenize:cde};function cde(e,t,r){let a=this;return n;function n(i){if(i===62){let s=a.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return r(i)}function o(i){return qe(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function dde(e,t,r){let a=this;return n;function n(i){return qe(i)?je(e,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)}function o(i){return e.attempt(Fw,t,r)(i)}}function fde(e){e.exit("blockQuote")}c();var Bw={name:"characterEscape",tokenize:pde};function pde(e,t,r){return a;function a(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),n}function n(o){return U7(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}c();var $w={name:"characterReference",tokenize:mde};function mde(e,t,r){let a=this,n=0,o,i;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,i=jr,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=P7,d):(e.enter("characterReferenceValue"),o=7,i=A0,d(f))}function d(f){if(f===59&&n){let p=e.exit("characterReferenceValue");return i===jr&&!Gp(a.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(f)&&n++<o?(e.consume(f),d):r(f)}}c();var j7={partial:!0,tokenize:gde},jw={concrete:!0,name:"codeFenced",tokenize:hde};function hde(e,t,r){let a=this,n={partial:!0,tokenize:I},o=0,i=0,s;return l;function l(_){return u(_)}function u(_){let A=a.events[a.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,s=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(_)}function d(_){return _===s?(i++,e.consume(_),d):i<3?r(_):(e.exit("codeFencedFenceSequence"),qe(_)?je(e,f,"whitespace")(_):f(_))}function f(_){return _===null||Ne(_)?(e.exit("codeFencedFence"),a.interrupt?t(_):e.check(j7,x,E)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||Ne(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(_)):qe(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),je(e,m,"whitespace")(_)):_===96&&_===s?r(_):(e.consume(_),p)}function m(_){return _===null||Ne(_)?f(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===null||Ne(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(_)):_===96&&_===s?r(_):(e.consume(_),g)}function x(_){return e.attempt(n,E,w)(_)}function w(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),b}function b(_){return o>0&&qe(_)?je(e,v,"linePrefix",o+1)(_):v(_)}function v(_){return _===null||Ne(_)?e.check(j7,x,E)(_):(e.enter("codeFlowValue"),T(_))}function T(_){return _===null||Ne(_)?(e.exit("codeFlowValue"),v(_)):(e.consume(_),T)}function E(_){return e.exit("codeFenced"),t(_)}function I(_,A,N){let F=0;return R;function R(H){return _.enter("lineEnding"),_.consume(H),_.exit("lineEnding"),ne}function ne(H){return _.enter("codeFencedFence"),qe(H)?je(_,z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):z(H)}function z(H){return H===s?(_.enter("codeFencedFenceSequence"),D(H)):N(H)}function D(H){return H===s?(F++,_.consume(H),D):F>=i?(_.exit("codeFencedFenceSequence"),qe(H)?je(_,$,"whitespace")(H):$(H)):N(H)}function $(H){return H===null||Ne(H)?(_.exit("codeFencedFence"),A(H)):N(H)}}}function gde(e,t,r){let a=this;return n;function n(i){return i===null?r(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return a.parser.lazy[a.now().line]?r(i):t(i)}}c();var N0={name:"codeIndented",tokenize:bde},yde={partial:!0,tokenize:vde};function bde(e,t,r){let a=this;return n;function n(u){return e.enter("codeIndented"),je(e,o,"linePrefix",5)(u)}function o(u){let d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(u):r(u)}function i(u){return u===null?l(u):Ne(u)?e.attempt(yde,i,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ne(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function vde(e,t,r){let a=this;return n;function n(i){return a.parser.lazy[a.now().line]?r(i):Ne(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):je(e,o,"linePrefix",5)(i)}function o(i){let s=a.events[a.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):Ne(i)?n(i):r(i)}}c();var nN={name:"codeText",previous:wde,resolve:xde,tokenize:Tde};function xde(e){let t=e.length-4,r=3,a,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)n===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(n=a):(a===t||e[a][1].type==="lineEnding")&&(e[n][1].type="codeTextData",a!==n+2&&(e[n][1].end=e[a-1][1].end,e.splice(n+2,a-n-2),t-=a-n-2,a=n+2),n=void 0);return e}function wde(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Tde(e,t,r){let a=this,n=0,o,i;return s;function s(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),n++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(i=e.enter("codeTextSequence"),o=0,f(p)):Ne(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),d(p))}function d(p){return p===null||p===32||p===96||Ne(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),d)}function f(p){return p===96?(e.consume(p),o++,f):o===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",d(p))}}c();c();c();var Hw=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,r){let a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){let n=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return a&&R0(this.left,a),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),R0(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),R0(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);R0(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);R0(this.left,r.reverse())}}};function R0(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Vw(e){let t={},r=-1,a,n,o,i,s,l,u,d=new Hw(e);for(;++r<d.length;){for(;r in t;)r=t[r];if(a=d.get(r),r&&a[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(l=a[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,Ede(d,r)),r=t[r],u=!0);else if(a[1]._container){for(o=r,n=void 0;o--;)if(i=d.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(n&&(d.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=o);else if(i[1].type!=="linePrefix")break;n&&(a[1].end={...d.get(n)[1].start},s=d.slice(n,r),s.unshift(a),d.splice(n,r-n+1,s))}}return Xr(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function Ede(e,t){let r=e.get(t)[1],a=e.get(t)[2],n=t-1,o=[],i=r._tokenizer||a.parser[r.contentType](r.start),s=i.events,l=[],u={},d,f,p=-1,m=r,g=0,x=0,w=[x];for(;m;){for(;e.get(++n)[1]!==m;);o.push(n),m._tokenizer||(d=a.sliceStream(m),m.next||d.push(null),f&&i.defineSkip(m.start),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(d),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=r;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(x=p+1,w.push(x),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(i.events=[],m?(m._tokenizer=void 0,m.previous=void 0):w.pop(),p=w.length;p--;){let b=s.slice(w[p],w[p+1]),v=o.pop();l.push([v,v+b.length-1]),e.splice(v,2,b)}for(l.reverse(),p=-1;++p<l.length;)u[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return u}var oN={resolve:Ide,tokenize:_de},Sde={partial:!0,tokenize:kde};function Ide(e){return Vw(e),e}function _de(e,t){let r;return a;function a(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?o(s):Ne(s)?e.check(Sde,i,o)(s):(e.consume(s),n)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function kde(e,t,r){let a=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),je(e,o,"linePrefix")}function o(i){if(i===null||Ne(i))return r(i);let s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(a.parser.constructs.flow,r,t)(i)}}c();c();function qw(e,t,r,a,n,o,i,s,l){let u=l||Number.POSITIVE_INFINITY,d=0;return f;function f(b){return b===60?(e.enter(a),e.enter(n),e.enter(o),e.consume(b),e.exit(o),p):b===null||b===32||b===41||yd(b)?r(b):(e.enter(a),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(b))}function p(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(n),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(s),p(b)):b===null||b===60||Ne(b)?r(b):(e.consume(b),b===92?g:m)}function g(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function x(b){return!d&&(b===null||b===41||St(b))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(a),t(b)):d<u&&b===40?(e.consume(b),d++,x):b===41?(e.consume(b),d--,x):b===null||b===32||b===40||yd(b)?r(b):(e.consume(b),b===92?w:x)}function w(b){return b===40||b===41||b===92?(e.consume(b),x):x(b)}}c();function Gw(e,t,r,a,n,o){let i=this,s=0,l;return u;function u(m){return e.enter(a),e.enter(n),e.consume(m),e.exit(n),e.enter(o),d}function d(m){return s>999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?r(m):m===93?(e.exit(o),e.enter(n),e.consume(m),e.exit(n),e.exit(a),t):Ne(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||Ne(m)||s++>999?(e.exit("chunkString"),d(m)):(e.consume(m),l||(l=!qe(m)),m===92?p:f)}function p(m){return m===91||m===92||m===93?(e.consume(m),s++,f):f(m)}}c();function Zw(e,t,r,a,n,o){let i;return s;function s(p){return p===34||p===39||p===40?(e.enter(a),e.enter(n),e.consume(p),e.exit(n),i=p===40?41:p,l):r(p)}function l(p){return p===i?(e.enter(n),e.consume(p),e.exit(n),e.exit(a),t):(e.enter(o),u(p))}function u(p){return p===i?(e.exit(o),l(i)):p===null?r(p):Ne(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),je(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===i||p===null||Ne(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===i||p===92?(e.consume(p),d):d(p)}}c();function vd(e,t){let r;return a;function a(n){return Ne(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,a):qe(n)?je(e,a,r?"linePrefix":"lineSuffix")(n):t(n)}}var iN={name:"definition",tokenize:Ade},Cde={partial:!0,tokenize:Lde};function Ade(e,t,r){let a=this,n;return o;function o(m){return e.enter("definition"),i(m)}function i(m){return Gw.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return n=Ya(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):r(m)}function l(m){return St(m)?vd(e,u)(m):u(m)}function u(m){return qw(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(Cde,f,f)(m)}function f(m){return qe(m)?je(e,p,"whitespace")(m):p(m)}function p(m){return m===null||Ne(m)?(e.exit("definition"),a.parser.defined.push(n),t(m)):r(m)}}function Lde(e,t,r){return a;function a(s){return St(s)?vd(e,n)(s):r(s)}function n(s){return Zw(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return qe(s)?je(e,i,"whitespace")(s):i(s)}function i(s){return s===null||Ne(s)?t(s):r(s)}}c();var sN={name:"hardBreakEscape",tokenize:Nde};function Nde(e,t,r){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),n}function n(o){return Ne(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}c();var lN={name:"headingAtx",resolve:Rde,tokenize:Ode};function Rde(e,t){let r=e.length-2,a=3,n,o;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},o={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},Xr(e,a,r-a+1,[["enter",n,t],["enter",o,t],["exit",o,t],["exit",n,t]])),e}function Ode(e,t,r){let a=0;return n;function n(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),i(d)}function i(d){return d===35&&a++<6?(e.consume(d),i):d===null||St(d)?(e.exit("atxHeadingSequence"),s(d)):r(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||Ne(d)?(e.exit("atxHeading"),t(d)):qe(d)?je(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||St(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}c();c();var H7=["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"],uN=["pre","script","style","textarea"];var cN={concrete:!0,name:"htmlFlow",resolveTo:Pde,tokenize:Ude},Dde={partial:!0,tokenize:Fde},Mde={partial:!0,tokenize:zde};function Pde(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 Ude(e,t,r){let a=this,n,o,i,s,l;return u;function u(M){return d(M)}function d(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),f}function f(M){return M===33?(e.consume(M),p):M===47?(e.consume(M),o=!0,x):M===63?(e.consume(M),n=3,a.interrupt?t:C):ba(M)?(e.consume(M),i=String.fromCharCode(M),w):r(M)}function p(M){return M===45?(e.consume(M),n=2,m):M===91?(e.consume(M),n=5,s=0,g):ba(M)?(e.consume(M),n=4,a.interrupt?t:C):r(M)}function m(M){return M===45?(e.consume(M),a.interrupt?t:C):r(M)}function g(M){let Ye="CDATA[";return M===Ye.charCodeAt(s++)?(e.consume(M),s===Ye.length?a.interrupt?t:z:g):r(M)}function x(M){return ba(M)?(e.consume(M),i=String.fromCharCode(M),w):r(M)}function w(M){if(M===null||M===47||M===62||St(M)){let Ye=M===47,ut=i.toLowerCase();return!Ye&&!o&&uN.includes(ut)?(n=1,a.interrupt?t(M):z(M)):H7.includes(i.toLowerCase())?(n=6,Ye?(e.consume(M),b):a.interrupt?t(M):z(M)):(n=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(M):o?v(M):T(M))}return M===45||jr(M)?(e.consume(M),i+=String.fromCharCode(M),w):r(M)}function b(M){return M===62?(e.consume(M),a.interrupt?t:z):r(M)}function v(M){return qe(M)?(e.consume(M),v):R(M)}function T(M){return M===47?(e.consume(M),R):M===58||M===95||ba(M)?(e.consume(M),E):qe(M)?(e.consume(M),T):R(M)}function E(M){return M===45||M===46||M===58||M===95||jr(M)?(e.consume(M),E):I(M)}function I(M){return M===61?(e.consume(M),_):qe(M)?(e.consume(M),I):T(M)}function _(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),l=M,A):qe(M)?(e.consume(M),_):N(M)}function A(M){return M===l?(e.consume(M),l=null,F):M===null||Ne(M)?r(M):(e.consume(M),A)}function N(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||St(M)?I(M):(e.consume(M),N)}function F(M){return M===47||M===62||qe(M)?T(M):r(M)}function R(M){return M===62?(e.consume(M),ne):r(M)}function ne(M){return M===null||Ne(M)?z(M):qe(M)?(e.consume(M),ne):r(M)}function z(M){return M===45&&n===2?(e.consume(M),V):M===60&&n===1?(e.consume(M),Q):M===62&&n===4?(e.consume(M),_e):M===63&&n===3?(e.consume(M),C):M===93&&n===5?(e.consume(M),Ee):Ne(M)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Dde,He,D)(M)):M===null||Ne(M)?(e.exit("htmlFlowData"),D(M)):(e.consume(M),z)}function D(M){return e.check(Mde,$,He)(M)}function $(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),H}function H(M){return M===null||Ne(M)?D(M):(e.enter("htmlFlowData"),z(M))}function V(M){return M===45?(e.consume(M),C):z(M)}function Q(M){return M===47?(e.consume(M),i="",te):z(M)}function te(M){if(M===62){let Ye=i.toLowerCase();return uN.includes(Ye)?(e.consume(M),_e):z(M)}return ba(M)&&i.length<8?(e.consume(M),i+=String.fromCharCode(M),te):z(M)}function Ee(M){return M===93?(e.consume(M),C):z(M)}function C(M){return M===62?(e.consume(M),_e):M===45&&n===2?(e.consume(M),C):z(M)}function _e(M){return M===null||Ne(M)?(e.exit("htmlFlowData"),He(M)):(e.consume(M),_e)}function He(M){return e.exit("htmlFlow"),t(M)}}function zde(e,t,r){let a=this;return n;function n(i){return Ne(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):r(i)}function o(i){return a.parser.lazy[a.now().line]?r(i):t(i)}}function Fde(e,t,r){return a;function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ts,t,r)}}c();var dN={name:"htmlText",tokenize:Bde};function Bde(e,t,r){let a=this,n,o,i;return s;function s(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),l}function l(C){return C===33?(e.consume(C),u):C===47?(e.consume(C),I):C===63?(e.consume(C),T):ba(C)?(e.consume(C),N):r(C)}function u(C){return C===45?(e.consume(C),d):C===91?(e.consume(C),o=0,g):ba(C)?(e.consume(C),v):r(C)}function d(C){return C===45?(e.consume(C),m):r(C)}function f(C){return C===null?r(C):C===45?(e.consume(C),p):Ne(C)?(i=f,Q(C)):(e.consume(C),f)}function p(C){return C===45?(e.consume(C),m):f(C)}function m(C){return C===62?V(C):C===45?p(C):f(C)}function g(C){let _e="CDATA[";return C===_e.charCodeAt(o++)?(e.consume(C),o===_e.length?x:g):r(C)}function x(C){return C===null?r(C):C===93?(e.consume(C),w):Ne(C)?(i=x,Q(C)):(e.consume(C),x)}function w(C){return C===93?(e.consume(C),b):x(C)}function b(C){return C===62?V(C):C===93?(e.consume(C),b):x(C)}function v(C){return C===null||C===62?V(C):Ne(C)?(i=v,Q(C)):(e.consume(C),v)}function T(C){return C===null?r(C):C===63?(e.consume(C),E):Ne(C)?(i=T,Q(C)):(e.consume(C),T)}function E(C){return C===62?V(C):T(C)}function I(C){return ba(C)?(e.consume(C),_):r(C)}function _(C){return C===45||jr(C)?(e.consume(C),_):A(C)}function A(C){return Ne(C)?(i=A,Q(C)):qe(C)?(e.consume(C),A):V(C)}function N(C){return C===45||jr(C)?(e.consume(C),N):C===47||C===62||St(C)?F(C):r(C)}function F(C){return C===47?(e.consume(C),V):C===58||C===95||ba(C)?(e.consume(C),R):Ne(C)?(i=F,Q(C)):qe(C)?(e.consume(C),F):V(C)}function R(C){return C===45||C===46||C===58||C===95||jr(C)?(e.consume(C),R):ne(C)}function ne(C){return C===61?(e.consume(C),z):Ne(C)?(i=ne,Q(C)):qe(C)?(e.consume(C),ne):F(C)}function z(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),n=C,D):Ne(C)?(i=z,Q(C)):qe(C)?(e.consume(C),z):(e.consume(C),$)}function D(C){return C===n?(e.consume(C),n=void 0,H):C===null?r(C):Ne(C)?(i=D,Q(C)):(e.consume(C),D)}function $(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||St(C)?F(C):(e.consume(C),$)}function H(C){return C===47||C===62||St(C)?F(C):r(C)}function V(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function Q(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),te}function te(C){return qe(C)?je(e,Ee,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):Ee(C)}function Ee(C){return e.enter("htmlTextData"),i(C)}}c();var xd={name:"labelEnd",resolveAll:Vde,resolveTo:qde,tokenize:Gde},$de={tokenize:Zde},jde={tokenize:Wde},Hde={tokenize:Yde};function Vde(e){let t=-1,r=[];for(;++t<e.length;){let a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){let n=a.type==="labelImage"?4:2;a.type="data",t+=n}}return e.length!==r.length&&Xr(e,0,e.length,r),e}function qde(e,t){let r=e.length,a=0,n,o,i,s;for(;r--;)if(n=e[r][1],o){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(o=r,n.type!=="labelLink")){a=2;break}}else n.type==="labelEnd"&&(i=r);let l={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}},d={type:"labelText",start:{...e[o+a+2][1].end},end:{...e[i-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=hn(s,e.slice(o+1,o+a+3)),s=hn(s,[["enter",d,t]]),s=hn(s,_u(t.parser.constructs.insideSpan.null,e.slice(o+a+4,i-3),t)),s=hn(s,[["exit",d,t],e[i-2],e[i-1],["exit",u,t]]),s=hn(s,e.slice(i+1)),s=hn(s,[["exit",l,t]]),Xr(e,o,e.length,s),e}function Gde(e,t,r){let a=this,n=a.events.length,o,i;for(;n--;)if((a.events[n][1].type==="labelImage"||a.events[n][1].type==="labelLink")&&!a.events[n][1]._balanced){o=a.events[n][1];break}return s;function s(p){return o?o._inactive?f(p):(i=a.parser.defined.includes(Ya(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt($de,d,i?d:f)(p):p===91?e.attempt(jde,d,i?u:f)(p):i?d(p):f(p)}function u(p){return e.attempt(Hde,d,f)(p)}function d(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function Zde(e,t,r){return a;function a(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),n}function n(f){return St(f)?vd(e,o)(f):o(f)}function o(f){return f===41?d(f):qw(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function i(f){return St(f)?vd(e,l)(f):d(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?Zw(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function u(f){return St(f)?vd(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function Wde(e,t,r){let a=this;return n;function n(s){return Gw.call(a,e,o,i,"reference","referenceMarker","referenceString")(s)}function o(s){return a.parser.defined.includes(Ya(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function i(s){return r(s)}}function Yde(e,t,r){return a;function a(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),n}function n(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}c();var fN={name:"labelStartImage",resolveAll:xd.resolveAll,tokenize:Kde};function Kde(e,t,r){let a=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):r(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(s):t(s)}}c();var pN={name:"labelStartLink",resolveAll:xd.resolveAll,tokenize:Xde};function Xde(e,t,r){let a=this;return n;function n(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 a.parser.constructs?r(i):t(i)}}c();var O0={name:"lineEnding",tokenize:Jde};function Jde(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),je(e,t,"linePrefix")}}c();c();var wd={name:"thematicBreak",tokenize:Qde};function Qde(e,t,r){let a=0,n;return o;function o(u){return e.enter("thematicBreak"),i(u)}function i(u){return n=u,s(u)}function s(u){return u===n?(e.enter("thematicBreakSequence"),l(u)):a>=3&&(u===null||Ne(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===n?(e.consume(u),a++,l):(e.exit("thematicBreakSequence"),qe(u)?je(e,s,"whitespace")(u):s(u))}}var Ka={continuation:{tokenize:afe},exit:ofe,name:"list",tokenize:rfe},efe={partial:!0,tokenize:ife},tfe={partial:!0,tokenize:nfe};function rfe(e,t,r){let a=this,n=a.events[a.events.length-1],o=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(m){let g=a.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!a.containerState.marker||m===a.containerState.marker:A0(m)){if(a.containerState.type||(a.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(wd,r,u)(m):u(m);if(!a.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return r(m)}function l(m){return A0(m)&&++i<10?(e.consume(m),l):(!a.interrupt||i<2)&&(a.containerState.marker?m===a.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):r(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||m,e.check(ts,a.interrupt?r:d,e.attempt(efe,p,f))}function d(m){return a.containerState.initialBlankLine=!0,o++,p(m)}function f(m){return qe(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):r(m)}function p(m){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function afe(e,t,r){let a=this;return a.containerState._closeFlow=void 0,e.check(ts,n,o);function n(s){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,je(e,t,"listItemIndent",a.containerState.size+1)(s)}function o(s){return a.containerState.furtherBlankLines||!qe(s)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,i(s)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(tfe,t,i)(s))}function i(s){return a.containerState._closeFlow=!0,a.interrupt=void 0,je(e,e.attempt(Ka,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function nfe(e,t,r){let a=this;return je(e,n,"listItemIndent",a.containerState.size+1);function n(o){let i=a.events[a.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===a.containerState.size?t(o):r(o)}}function ofe(e){e.exit(this.containerState.type)}function ife(e,t,r){let a=this;return je(e,n,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(o){let i=a.events[a.events.length-1];return!qe(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}c();var Ww={name:"setextUnderline",resolveTo:sfe,tokenize:lfe};function sfe(e,t){let r=e.length,a,n,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",o?(e.splice(n,0,["enter",i,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end={...e[o][1].end}):e[a][1]=i,e.push(["exit",i,t]),e}function lfe(e,t,r){let a=this,n;return o;function o(u){let d=a.events.length,f;for(;d--;)if(a.events[d][1].type!=="lineEnding"&&a.events[d][1].type!=="linePrefix"&&a.events[d][1].type!=="content"){f=a.events[d][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||f)?(e.enter("setextHeadingLine"),n=u,i(u)):r(u)}function i(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===n?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),qe(u)?je(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ne(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var V7={tokenize:ufe};function ufe(e){let t=this,r=e.attempt(ts,a,e.attempt(this.parser.constructs.flowInitial,n,je(e,e.attempt(this.parser.constructs.flow,n,e.attempt(oN,n)),"linePrefix")));return r;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}c();var q7={resolveAll:Y7()},G7=W7("string"),Z7=W7("text");function W7(e){return{resolveAll:Y7(e==="text"?cfe:void 0),tokenize:t};function t(r){let a=this,n=this.parser.constructs[e],o=r.attempt(n,i,s);return i;function i(d){return u(d)?o(d):s(d)}function s(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),l}function l(d){return u(d)?(r.exit("data"),o(d)):(r.consume(d),l)}function u(d){if(d===null)return!0;let f=n[d],p=-1;if(f)for(;++p<f.length;){let m=f[p];if(!m.previous||m.previous.call(a,a.previous))return!0}return!1}}}function Y7(e){return t;function t(r,a){let n=-1,o;for(;++n<=r.length;)o===void 0?r[n]&&r[n][1].type==="data"&&(o=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==o+2&&(r[o][1].end=r[n-1][1].end,r.splice(o+2,n-o-2),n=o+2),o=void 0);return e?e(r,a):r}}function cfe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let a=e[r-1][1],n=t.sliceStream(a),o=n.length,i=-1,s=0,l;for(;o--;){let u=n[o];if(typeof u=="string"){for(i=u.length;u.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(s){let u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?i:a.start._bufferIndex+i,_index:a.start._index+o,line:a.end.line,column:a.end.column-s,offset:a.end.offset-s},end:{...a.end}};a.end={...u.start},a.start.offset===a.end.offset?Object.assign(a,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var mN={};nn(mN,{attentionMarkers:()=>bfe,contentInitial:()=>ffe,disable:()=>vfe,document:()=>dfe,flow:()=>mfe,flowInitial:()=>pfe,insideSpan:()=>yfe,string:()=>hfe,text:()=>gfe});c();var dfe={42:Ka,43:Ka,45:Ka,48:Ka,49:Ka,50:Ka,51:Ka,52:Ka,53:Ka,54:Ka,55:Ka,56:Ka,57:Ka,62:Fw},ffe={91:iN},pfe={[-2]:N0,[-1]:N0,32:N0},mfe={35:lN,42:wd,45:[Ww,wd],60:cN,61:Ww,95:wd,96:jw,126:jw},hfe={38:$w,92:Bw},gfe={[-5]:O0,[-4]:O0,[-3]:O0,33:fN,38:$w,42:L0,60:[aN,dN],91:pN,92:[sN,Bw],93:xd,95:L0,96:nN},yfe={null:[L0,q7]},bfe={null:[42,95]},vfe={null:[]};c();function K7(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},n={},o=[],i=[],s=[],l=!0,u={attempt:F(A),check:F(N),consume:E,enter:I,exit:_,interrupt:F(N,{interrupt:!0})},d={code:null,containerState:{},defineSkip:b,events:[],now:w,parser:e,previous:null,sliceSerialize:g,sliceStream:x,write:m},f=t.tokenize.call(d,u),p;return t.resolveAll&&o.push(t),d;function m(D){return i=hn(i,D),v(),i[i.length-1]!==null?[]:(R(t,0),d.events=_u(o,d.events,d),d.events)}function g(D,$){return wfe(x(D),$)}function x(D){return xfe(i,D)}function w(){let{_bufferIndex:D,_index:$,line:H,column:V,offset:Q}=a;return{_bufferIndex:D,_index:$,line:H,column:V,offset:Q}}function b(D){n[D.line]=D.column,z()}function v(){let D;for(;a._index<i.length;){let $=i[a._index];if(typeof $=="string")for(D=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===D&&a._bufferIndex<$.length;)T($.charCodeAt(a._bufferIndex));else T($)}}function T(D){l=void 0,p=D,f=f(D)}function E(D){Ne(D)?(a.line++,a.column=1,a.offset+=D===-3?2:1,z()):D!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===i[a._index].length&&(a._bufferIndex=-1,a._index++)),d.previous=D,l=!0}function I(D,$){let H=$||{};return H.type=D,H.start=w(),d.events.push(["enter",H,d]),s.push(H),H}function _(D){let $=s.pop();return $.end=w(),d.events.push(["exit",$,d]),$}function A(D,$){R(D,$.from)}function N(D,$){$.restore()}function F(D,$){return H;function H(V,Q,te){let Ee,C,_e,He;return Array.isArray(V)?Ye(V):"tokenize"in V?Ye([V]):M(V);function M(Oe){return Ke;function Ke(ct){let Xe=ct!==null&&Oe[ct],Pt=ct!==null&&Oe.null,Ve=[...Array.isArray(Xe)?Xe:Xe?[Xe]:[],...Array.isArray(Pt)?Pt:Pt?[Pt]:[]];return Ye(Ve)(ct)}}function Ye(Oe){return Ee=Oe,C=0,Oe.length===0?te:ut(Oe[C])}function ut(Oe){return Ke;function Ke(ct){return He=ne(),_e=Oe,Oe.partial||(d.currentConstruct=Oe),Oe.name&&d.parser.constructs.disable.null.includes(Oe.name)?ze(ct):Oe.tokenize.call($?Object.assign(Object.create(d),$):d,u,yt,ze)(ct)}}function yt(Oe){return l=!0,D(_e,He),Q}function ze(Oe){return l=!0,He.restore(),++C<Ee.length?ut(Ee[C]):te}}}function R(D,$){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&Xr(d.events,$,d.events.length-$,D.resolve(d.events.slice($),d)),D.resolveTo&&(d.events=D.resolveTo(d.events,d))}function ne(){let D=w(),$=d.previous,H=d.currentConstruct,V=d.events.length,Q=Array.from(s);return{from:V,restore:te};function te(){a=D,d.previous=$,d.currentConstruct=H,d.events.length=V,s=Q,z()}}function z(){a.line in n&&a.column<2&&(a.column=n[a.line],a.offset+=n[a.line]-1)}}function xfe(e,t){let r=t.start._index,a=t.start._bufferIndex,n=t.end._index,o=t.end._bufferIndex,i;if(r===n)i=[e[r].slice(a,o)];else{if(i=e.slice(r,n),a>-1){let s=i[0];typeof s=="string"?i[0]=s.slice(a):i.shift()}o>0&&i.push(e[n].slice(0,o))}return i}function wfe(e,t){let r=-1,a=[],n;for(;++r<e.length;){let o=e[r],i;if(typeof o=="string")i=o;else switch(o){case-5:{i="\r";break}case-4:{i=`
|
|
60
|
+
`;break}case-3:{i=`\r
|
|
61
|
+
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&n)continue;i=" ";break}default:i=String.fromCharCode(o)}n=o===-2,a.push(i)}return a.join("")}function hN(e){let a={constructs:Uw([mN,...(e||{}).extensions||[]]),content:n(z7),defined:[],document:n(B7),flow:n(V7),lazy:{},string:n(G7),text:n(Z7)};return a;function n(o){return i;function i(s){return K7(a,o,s)}}}c();function gN(e){for(;!Vw(e););return e}c();var X7=/[\0\t\n\r]/g;function yN(){let e=1,t="",r=!0,a;return n;function n(o,i,s){let l=[],u,d,f,p,m;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(i||void 0).decode(o)),f=0,t="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if(X7.lastIndex=f,u=X7.exec(o),p=u&&u.index!==void 0?u.index:o.length,m=o.charCodeAt(p),!u){t=o.slice(f);break}if(m===10&&f===p&&a)l.push(-3),a=void 0;else switch(a&&(l.push(-5),a=void 0),f<p&&(l.push(o.slice(f,p)),e+=p-f),m){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:a=!0,e=1}f=p+1}return s&&(a&&l.push(-5),t&&l.push(t),l.push(null)),l}}c();var Tfe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function J7(e){return e.replace(Tfe,Efe)}function Efe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let n=r.charCodeAt(1),o=n===120||n===88;return zw(r.slice(o?2:1),o?16:10)}return Gp(r)||e}var e$={}.hasOwnProperty;function bN(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Sfe(r)(gN(hN(r).document().write(yN()(e,t,!0))))}function Sfe(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(j),autolinkProtocol:F,autolinkEmail:F,atxHeading:o(zt),blockQuote:o(ct),characterEscape:F,characterReference:F,codeFenced:o(Xe),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(Xe,i),codeText:o(Pt,i),codeTextData:F,data:F,codeFlowValue:F,definition:o(Ve),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(bt),hardBreakEscape:o(We),hardBreakTrailing:o(We),htmlFlow:o(mr,i),htmlFlowData:F,htmlText:o(mr,i),htmlTextData:F,image:o(U),label:i,link:o(j),listItem:o(ye),listItemValue:p,listOrdered:o(W,f),listUnordered:o(W),paragraph:o(fe),reference:M,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(zt),strong:o(de),thematicBreak:o(Se)},exit:{atxHeading:l(),atxHeadingSequence:I,autolink:l(),autolinkEmail:Ke,autolinkProtocol:Oe,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ut,characterReferenceMarkerNumeric:ut,characterReferenceValue:yt,characterReference:ze,codeFenced:l(w),codeFencedFence:x,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:l(b),codeText:l(H),codeTextData:R,data:R,definition:l(),definitionDestinationString:E,definitionLabelString:v,definitionTitleString:T,emphasis:l(),hardBreakEscape:l(z),hardBreakTrailing:l(z),htmlFlow:l(D),htmlFlowData:R,htmlText:l($),htmlTextData:R,image:l(Q),label:Ee,labelText:te,lineEnding:ne,link:l(V),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ye,resourceDestinationString:C,resourceTitleString:_e,resource:He,setextHeading:l(N),setextHeadingLineSequence:A,setextHeadingText:_,strong:l(),thematicBreak:l()}};t$(t,(e||{}).mdastExtensions||[]);let r={};return a;function a(Z){let X={type:"root",children:[]},ie={stack:[X],tokenStack:[],config:t,enter:s,exit:u,buffer:i,resume:d,data:r},Re=[],dt=-1;for(;++dt<Z.length;)if(Z[dt][1].type==="listOrdered"||Z[dt][1].type==="listUnordered")if(Z[dt][0]==="enter")Re.push(dt);else{let zr=Re.pop();dt=n(Z,zr,dt)}for(dt=-1;++dt<Z.length;){let zr=t[Z[dt][0]];e$.call(zr,Z[dt][1].type)&&zr[Z[dt][1].type].call(Object.assign({sliceSerialize:Z[dt][2].sliceSerialize},ie),Z[dt][1])}if(ie.tokenStack.length>0){let zr=ie.tokenStack[ie.tokenStack.length-1];(zr[1]||Q7).call(ie,void 0,zr[0])}for(X.position={start:ku(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:ku(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},dt=-1;++dt<t.transforms.length;)X=t.transforms[dt](X)||X;return X}function n(Z,X,ie){let Re=X-1,dt=-1,zr=!1,Fr,Ta,ei,Tn;for(;++Re<=ie;){let qn=Z[Re];switch(qn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qn[0]==="enter"?dt++:dt--,Tn=void 0;break}case"lineEndingBlank":{qn[0]==="enter"&&(Fr&&!Tn&&!dt&&!ei&&(ei=Re),Tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tn=void 0}if(!dt&&qn[0]==="enter"&&qn[1].type==="listItemPrefix"||dt===-1&&qn[0]==="exit"&&(qn[1].type==="listUnordered"||qn[1].type==="listOrdered")){if(Fr){let mf=Re;for(Ta=void 0;mf--;){let bs=Z[mf];if(bs[1].type==="lineEnding"||bs[1].type==="lineEndingBlank"){if(bs[0]==="exit")continue;Ta&&(Z[Ta][1].type="lineEndingBlank",zr=!0),bs[1].type="lineEnding",Ta=mf}else if(!(bs[1].type==="linePrefix"||bs[1].type==="blockQuotePrefix"||bs[1].type==="blockQuotePrefixWhitespace"||bs[1].type==="blockQuoteMarker"||bs[1].type==="listItemIndent"))break}ei&&(!Ta||ei<Ta)&&(Fr._spread=!0),Fr.end=Object.assign({},Ta?Z[Ta][1].start:qn[1].end),Z.splice(Ta||Re,0,["exit",Fr,qn[2]]),Re++,ie++}if(qn[1].type==="listItemPrefix"){let mf={type:"listItem",_spread:!1,start:Object.assign({},qn[1].start),end:void 0};Fr=mf,Z.splice(Re,0,["enter",mf,qn[2]]),Re++,ie++,ei=void 0,Tn=!0}}}return Z[X][1]._spread=zr,ie}function o(Z,X){return ie;function ie(Re){s.call(this,Z(Re),Re),X&&X.call(this,Re)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(Z,X,ie){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([X,ie||void 0]),Z.position={start:ku(X.start),end:void 0}}function l(Z){return X;function X(ie){Z&&Z.call(this,ie),u.call(this,ie)}}function u(Z,X){let ie=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==Z.type&&(X?X.call(this,Z,Re[0]):(Re[1]||Q7).call(this,Z,Re[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Su({start:Z.start,end:Z.end})+"): it\u2019s not open");ie.position.end=ku(Z.end)}function d(){return gd(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(Z){if(this.data.expectingFirstListItemValue){let X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function m(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.lang=Z}function g(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.meta=Z}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.value=Z.replace(/(\r?\n|\r)$/g,"")}function v(Z){let X=this.resume(),ie=this.stack[this.stack.length-1];ie.label=X,ie.identifier=Ya(this.sliceSerialize(Z)).toLowerCase()}function T(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.title=Z}function E(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.url=Z}function I(Z){let X=this.stack[this.stack.length-1];if(!X.depth){let ie=this.sliceSerialize(Z).length;X.depth=ie}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function A(Z){let X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function F(Z){let ie=this.stack[this.stack.length-1].children,Re=ie[ie.length-1];(!Re||Re.type!=="text")&&(Re=ce(),Re.position={start:ku(Z.start),end:void 0},ie.push(Re)),this.stack.push(Re)}function R(Z){let X=this.stack.pop();X.value+=this.sliceSerialize(Z),X.position.end=ku(Z.end)}function ne(Z){let X=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ie=X.children[X.children.length-1];ie.position.end=ku(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(F.call(this,Z),R.call(this,Z))}function z(){this.data.atHardBreak=!0}function D(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.value=Z}function $(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.value=Z}function H(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.value=Z}function V(){let Z=this.stack[this.stack.length-1];if(this.data.inReference){let X=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=X,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Q(){let Z=this.stack[this.stack.length-1];if(this.data.inReference){let X=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=X,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function te(Z){let X=this.sliceSerialize(Z),ie=this.stack[this.stack.length-2];ie.label=J7(X),ie.identifier=Ya(X).toLowerCase()}function Ee(){let Z=this.stack[this.stack.length-1],X=this.resume(),ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,ie.type==="link"){let Re=Z.children;ie.children=Re}else ie.alt=X}function C(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.url=Z}function _e(){let Z=this.resume(),X=this.stack[this.stack.length-1];X.title=Z}function He(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Ye(Z){let X=this.resume(),ie=this.stack[this.stack.length-1];ie.label=X,ie.identifier=Ya(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function ut(Z){this.data.characterReferenceType=Z.type}function yt(Z){let X=this.sliceSerialize(Z),ie=this.data.characterReferenceType,Re;ie?(Re=zw(X,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=Gp(X);let dt=this.stack[this.stack.length-1];dt.value+=Re}function ze(Z){let X=this.stack.pop();X.position.end=ku(Z.end)}function Oe(Z){R.call(this,Z);let X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(Z)}function Ke(Z){R.call(this,Z);let X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(Z)}function ct(){return{type:"blockquote",children:[]}}function Xe(){return{type:"code",lang:null,meta:null,value:""}}function Pt(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bt(){return{type:"emphasis",children:[]}}function zt(){return{type:"heading",depth:0,children:[]}}function We(){return{type:"break"}}function mr(){return{type:"html",value:""}}function U(){return{type:"image",title:null,url:"",alt:null}}function j(){return{type:"link",title:null,url:"",children:[]}}function W(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function ye(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function fe(){return{type:"paragraph",children:[]}}function de(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function Se(){return{type:"thematicBreak"}}}function ku(e){return{line:e.line,column:e.column,offset:e.offset}}function t$(e,t){let r=-1;for(;++r<t.length;){let a=t[r];Array.isArray(a)?t$(e,a):Ife(e,a)}}function Ife(e,t){let r;for(r in t)if(e$.call(t,r))switch(r){case"canContainEols":{let a=t[r];a&&e[r].push(...a);break}case"transforms":{let a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{let a=t[r];a&&Object.assign(e[r],a);break}}}function Q7(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Su({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Su({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Su({start:t.start,end:t.end})+") is still open")}function Yw(e){let t=this;t.parser=r;function r(a){return bN(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}c();c();c();c();function r$(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}c();function a$(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
62
|
+
`}]}c();function n$(e,t){let r=t.value?t.value+`
|
|
63
|
+
`:"",a={};t.lang&&(a.className=["language-"+t.lang]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}c();function o$(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}c();function i$(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}c();function s$(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),n=Do(a.toLowerCase()),o=e.footnoteOrder.indexOf(a),i,s=e.footnoteCounts.get(a);s===void 0?(s=0,e.footnoteOrder.push(a),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(a,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}c();function l$(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}c();function u$(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}c();c();function Kw(e,t){let r=t.referenceType,a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];let n=e.all(t),o=n[0];o&&o.type==="text"?o.value="["+o.value:n.unshift({type:"text",value:"["});let i=n[n.length-1];return i&&i.type==="text"?i.value+=a:n.push({type:"text",value:a}),n}function c$(e,t){let r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Kw(e,t);let n={src:Do(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(n.title=a.title);let o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,o),e.applyData(t,o)}c();function d$(e,t){let r={src:Do(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}c();function f$(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}c();function p$(e,t){let r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Kw(e,t);let n={href:Do(a.url||"")};a.title!==null&&a.title!==void 0&&(n.title=a.title);let o={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}c();function m$(e,t){let r={href:Do(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}c();function h$(e,t,r){let a=e.all(t),n=r?_fe(r):g$(t),o={},i=[];if(typeof t.checked=="boolean"){let d=a[0],f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},a.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<a.length;){let d=a[s];(n||s!==0||d.type!=="element"||d.tagName!=="p")&&i.push({type:"text",value:`
|
|
64
|
+
`}),d.type==="element"&&d.tagName==="p"&&!n?i.push(...d.children):i.push(d)}let l=a[a.length-1];l&&(n||l.type!=="element"||l.tagName!=="p")&&i.push({type:"text",value:`
|
|
65
|
+
`});let u={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,u),e.applyData(t,u)}function _fe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,a=-1;for(;!t&&++a<r.length;)t=g$(r[a])}return t}function g$(e){let t=e.spread;return t??e.children.length>1}c();function y$(e,t){let r={},a=e.all(t),n=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++n<a.length;){let i=a[n];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}c();function b$(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}c();function v$(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}c();function x$(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}c();function w$(e,t){let r=e.all(t),a=r.shift(),n=[];if(a){let i={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],i),n.push(i)}if(r.length>0){let i={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=Dn(t.children[1]),l=hd(t.children[t.children.length-1]);s&&l&&(i.position={start:s,end:l}),n.push(i)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}c();function T$(e,t,r){let a=r?r.children:void 0,o=(a?a.indexOf(t):1)===0?"th":"td",i=r&&r.type==="table"?r.align:void 0,s=i?i.length:t.children.length,l=-1,u=[];for(;++l<s;){let f=t.children[l],p={},m=i?i[l]:void 0;m&&(p.align=m);let g={type:"element",tagName:o,properties:p,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),u.push(g)}let d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}c();function E$(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}c();c();function I$(e){let t=String(e),r=/\r?\n|\r/g,a=r.exec(t),n=0,o=[];for(;a;)o.push(S$(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return o.push(S$(t.slice(n),n>0,!1)),o.join("")}function S$(e,t,r){let a=0,n=e.length;if(t){let o=e.codePointAt(a);for(;o===9||o===32;)a++,o=e.codePointAt(a)}if(r){let o=e.codePointAt(n-1);for(;o===9||o===32;)n--,o=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}function _$(e,t){let r={type:"text",value:I$(String(t.value))};return e.patch(t,r),e.applyData(t,r)}c();function k$(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var C$={blockquote:r$,break:a$,code:n$,delete:o$,emphasis:i$,footnoteReference:s$,heading:l$,html:u$,imageReference:c$,image:d$,inlineCode:f$,linkReference:p$,link:m$,listItem:h$,list:y$,paragraph:b$,root:v$,strong:x$,table:w$,tableCell:E$,tableRow:T$,text:_$,thematicBreak:k$,toml:Xw,yaml:Xw,definition:Xw,footnoteDefinition:Xw};function Xw(){}c();c();c();c();var A$=typeof self=="object"?self:globalThis,Lfe=(e,t)=>{let r=(n,o)=>(e.set(o,n),n),a=n=>{if(e.has(n))return e.get(n);let[o,i]=t[n];switch(o){case 0:case-1:return r(i,n);case 1:{let s=r([],n);for(let l of i)s.push(a(l));return s}case 2:{let s=r({},n);for(let[l,u]of i)s[a(l)]=a(u);return s}case 3:return r(new Date(i),n);case 4:{let{source:s,flags:l}=i;return r(new RegExp(s,l),n)}case 5:{let s=r(new Map,n);for(let[l,u]of i)s.set(a(l),a(u));return s}case 6:{let s=r(new Set,n);for(let l of i)s.add(a(l));return s}case 7:{let{name:s,message:l}=i;return r(new A$[s](l),n)}case 8:return r(BigInt(i),n);case"BigInt":return r(Object(BigInt(i)),n);case"ArrayBuffer":return r(new Uint8Array(i).buffer,i);case"DataView":{let{buffer:s}=new Uint8Array(i);return r(new DataView(s),i)}}return r(new A$[o](i),n)};return a},wN=e=>Lfe(new Map,e)(0);c();var Zp="",{toString:Nfe}={},{keys:Rfe}=Object,D0=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=Nfe.call(e).slice(8,-1);switch(r){case"Array":return[1,Zp];case"Object":return[2,Zp];case"Date":return[3,Zp];case"RegExp":return[4,Zp];case"Map":return[5,Zp];case"Set":return[6,Zp];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Qw=([e,t])=>e===0&&(t==="function"||t==="symbol"),Ofe=(e,t,r,a)=>{let n=(i,s)=>{let l=a.push(i)-1;return r.set(s,l),l},o=i=>{if(r.has(i))return r.get(i);let[s,l]=D0(i);switch(s){case 0:{let d=i;switch(l){case"bigint":s=8,d=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return n([-1],i)}return n([s,d],i)}case 1:{if(l){let p=i;return l==="DataView"?p=new Uint8Array(i.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(i)),n([l,[...p]],i)}let d=[],f=n([s,d],i);for(let p of i)d.push(o(p));return f}case 2:{if(l)switch(l){case"BigInt":return n([l,i.toString()],i);case"Boolean":case"Number":case"String":return n([l,i.valueOf()],i)}if(t&&"toJSON"in i)return o(i.toJSON());let d=[],f=n([s,d],i);for(let p of Rfe(i))(e||!Qw(D0(i[p])))&&d.push([o(p),o(i[p])]);return f}case 3:return n([s,i.toISOString()],i);case 4:{let{source:d,flags:f}=i;return n([s,{source:d,flags:f}],i)}case 5:{let d=[],f=n([s,d],i);for(let[p,m]of i)(e||!(Qw(D0(p))||Qw(D0(m))))&&d.push([o(p),o(m)]);return f}case 6:{let d=[],f=n([s,d],i);for(let p of i)(e||!Qw(D0(p)))&&d.push(o(p));return f}}let{message:u}=i;return n([s,{name:l,message:u}],i)};return o},TN=(e,{json:t,lossy:r}={})=>{let a=[];return Ofe(!(t||r),!!t,new Map,a)(e),a};var el=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wN(TN(e,t)):structuredClone(e):(e,t)=>wN(TN(e,t));function Dfe(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Mfe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function D$(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Dfe,a=e.options.footnoteBackLabel||Mfe,n=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let d=e.all(u),f=String(u.identifier).toUpperCase(),p=Do(f.toLowerCase()),m=0,g=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++m<=x;){g.length>0&&g.push({type:"text",value:" "});let v=typeof r=="string"?r:r(l,m);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(l,m),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}let w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){let v=w.children[w.children.length-1];v&&v.type==="text"?v.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...g)}else d.push(...g);let b={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...el(i),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
|
|
66
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
67
|
+
`}]}}c();c();c();c();c();c();c();var Cu=function(e){if(e==null)return Ffe;if(typeof e=="function")return eT(e);if(typeof e=="object")return Array.isArray(e)?Pfe(e):Ufe(e);if(typeof e=="string")return zfe(e);throw new Error("Expected function, string, or object as test")};function Pfe(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Cu(e[r]);return eT(a);function a(...n){let o=-1;for(;++o<t.length;)if(t[o].apply(this,n))return!0;return!1}}function Ufe(e){let t=e;return eT(r);function r(a){let n=a,o;for(o in e)if(n[o]!==t[o])return!1;return!0}}function zfe(e){return eT(t);function t(r){return r&&r.type===e}}function eT(e){return t;function t(r,a,n){return!!(Bfe(r)&&e.call(this,r,typeof a=="number"?a:void 0,n||void 0))}}function Ffe(){return!0}function Bfe(e){return e!==null&&typeof e=="object"&&"type"in e}var M$=[],tT=!0,Td=!1,rT="skip";function M0(e,t,r,a){let n;typeof t=="function"&&typeof r!="function"?(a=r,r=t):n=t;let o=Cu(n),i=a?-1:1;s(e,void 0,[])();function s(l,u,d){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=M$,g,x,w;if((!t||o(l,u,d[d.length-1]||void 0))&&(m=$fe(r(l,d)),m[0]===Td))return m;if("children"in l&&l.children){let b=l;if(b.children&&m[0]!==rT)for(x=(a?b.children.length:-1)+i,w=d.concat(b);x>-1&&x<b.children.length;){let v=b.children[x];if(g=s(v,x,w)(),g[0]===Td)return g;x=typeof g[1]=="number"?g[1]:x+i}}return m}}}function $fe(e){return Array.isArray(e)?e:typeof e=="number"?[tT,e]:e==null?M$:[e]}function tl(e,t,r,a){let n,o,i;typeof t=="function"&&typeof r!="function"?(o=void 0,i=t,n=r):(o=t,i=r,n=a),M0(e,o,s,n);function s(l,u){let d=u[u.length-1],f=d?d.children.indexOf(l):void 0;return i(l,f,d)}}var EN={}.hasOwnProperty,jfe={};function U$(e,t){let r=t||jfe,a=new Map,n=new Map,o=new Map,i={...C$,...r.handlers},s={all:u,applyData:Vfe,definitionById:a,footnoteById:n,footnoteCounts:o,footnoteOrder:[],handlers:i,one:l,options:r,patch:Hfe,wrap:Gfe};return tl(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){let f=d.type==="definition"?a:n,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),s;function l(d,f){let p=d.type,m=s.handlers[p];if(EN.call(s.handlers,p)&&m)return m(s,d,f);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in d){let{children:x,...w}=d,b=el(w);return b.children=s.all(d),b}return el(d)}return(s.options.unknownHandler||qfe)(s,d,f)}function u(d){let f=[];if("children"in d){let p=d.children,m=-1;for(;++m<p.length;){let g=s.one(p[m],d);if(g){if(m&&p[m-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=P$(g.value)),!Array.isArray(g)&&g.type==="element")){let x=g.children[0];x&&x.type==="text"&&(x.value=P$(x.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function Hfe(e,t){e.position&&(t.position=XL(e))}function Vfe(e,t){let r=t;if(e&&e.data){let a=e.data.hName,n=e.data.hChildren,o=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{let i="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:i}}r.type==="element"&&o&&Object.assign(r.properties,el(o)),"children"in r&&r.children&&n!==null&&n!==void 0&&(r.children=n)}return r}function qfe(e,t){let r=t.data||{},a="value"in t&&!(EN.call(r,"hProperties")||EN.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Gfe(e,t){let r=[],a=-1;for(t&&r.push({type:"text",value:`
|
|
68
|
+
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
69
|
+
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
70
|
+
`}),r}function P$(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function aT(e,t){let r=U$(e,t),a=r.one(e,void 0),n=D$(r),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return n&&("children"in o,o.children.push({type:"text",value:`
|
|
71
|
+
`},n)),o}c();function nT(e,t){return e&&"run"in e?async function(r,a){let n=aT(r,{file:a,...t});await e.run(n,a)}:function(r,a){return aT(r,{file:a,...e||t})}}c();c();c();function SN(e){if(e)throw e}var sT=O(G$(),1);c();function P0(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)}c();c();function IN(){let e=[],t={run:r,use:a};return t;function r(...n){let o=-1,i=n.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);s(null,...n);function s(l,...u){let d=e[++o],f=-1;if(l){i(l);return}for(;++f<n.length;)(u[f]===null||u[f]===void 0)&&(u[f]=n[f]);n=u,d?Z$(d,s)(...u):i(null,...u)}}function a(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Z$(e,t){let r;return a;function a(...i){let s=e.length>i.length,l;s&&i.push(n);try{l=e.apply(this,i)}catch(u){let d=u;if(s&&r)throw d;return n(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,n):l instanceof Error?n(l):o(l))}function n(i,...s){r||(r=!0,t(i,...s))}function o(i){n(null,i)}}c();c();c();var yi={basename:Zfe,dirname:Wfe,extname:Yfe,join:Kfe,sep:"/"};function Zfe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');U0(e);let r=0,a=-1,n=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(o){r=n+1;break}}else a<0&&(o=!0,a=n+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(o){r=n+1;break}}else i<0&&(o=!0,i=n+1),s>-1&&(e.codePointAt(n)===t.codePointAt(s--)?s<0&&(a=n):(s=-1,a=i));return r===a?a=i:a<0&&(a=e.length),e.slice(r,a)}function Wfe(e){if(U0(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Yfe(e){U0(e);let t=e.length,r=-1,a=0,n=-1,o=0,i;for(;t--;){let s=e.codePointAt(t);if(s===47){if(i){a=t+1;break}continue}r<0&&(i=!0,r=t+1),s===46?n<0?n=t:o!==1&&(o=1):n>-1&&(o=-1)}return n<0||r<0||o===0||o===1&&n===r-1&&n===a+1?"":e.slice(n,r)}function Kfe(...e){let t=-1,r;for(;++t<e.length;)U0(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Xfe(r)}function Xfe(e){U0(e);let t=e.codePointAt(0)===47,r=Jfe(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Jfe(e,t){let r="",a=0,n=-1,o=0,i=-1,s,l;for(;++i<=e.length;){if(i<e.length)s=e.codePointAt(i);else{if(s===47)break;s=47}if(s===47){if(!(n===i-1||o===1))if(n!==i-1&&o===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",a=0):(r=r.slice(0,l),a=r.length-1-r.lastIndexOf("/")),n=i,o=0;continue}}else if(r.length>0){r="",a=0,n=i,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(n+1,i):r=e.slice(n+1,i),a=i-n-1;n=i,o=0}else s===46&&o>-1?o++:o=-1}return r}function U0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}c();var W$={cwd:Qfe};function Qfe(){return"/"}c();c();function Wp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Y$(e){if(typeof e=="string")e=new URL(e);else if(!Wp(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 epe(e)}function epe(e){if(e.hostname!==""){let a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let a=t.codePointAt(r+2);if(a===70||a===102){let n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(t)}var _N=["history","path","basename","stem","extname","dirname"],Ed=class{constructor(t){let r;t?Wp(t)?r={path:t}:typeof t=="string"||tpe(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":W$.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<_N.length;){let o=_N[a];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let n;for(n in r)_N.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?yi.basename(this.path):void 0}set basename(t){CN(t,"basename"),kN(t,"basename"),this.path=yi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yi.dirname(this.path):void 0}set dirname(t){K$(this.basename,"dirname"),this.path=yi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yi.extname(this.path):void 0}set extname(t){if(kN(t,"extname"),K$(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=yi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Wp(t)&&(t=Y$(t)),CN(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yi.basename(this.path,this.extname):void 0}set stem(t){CN(t,"stem"),kN(t,"stem"),this.path=yi.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){let n=this.message(t,r,a);throw n.fatal=!0,n}info(t,r,a){let n=this.message(t,r,a);return n.fatal=void 0,n}message(t,r,a){let n=new Kr(t,r,a);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function kN(e,t){if(e&&e.includes(yi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yi.sep+"`")}function CN(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function K$(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function tpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}c();var X$=function(e){let a=this.constructor.prototype,n=a[e],o=function(){return n.apply(o,arguments)};return Object.setPrototypeOf(o,a),o};var rpe={}.hasOwnProperty,RN=class e extends X${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=IN()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let a=this.attachers[r];t.use(...a)}return t.data((0,sT.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(NN("data",this.frozen),this.namespace[t]=r,this):rpe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(NN("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[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);let n=r.call(t,...a);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=iT(t),a=this.parser||this.Parser;return AN("parse",a),a(String(r),r)}process(t,r){let a=this;return this.freeze(),AN("process",this.parser||this.Parser),LN("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(o,i){let s=iT(t),l=a.parse(s);a.run(l,s,function(d,f,p){if(d||!f||!p)return u(d);let m=f,g=a.stringify(m,p);npe(g)?p.value=g:p.result=g,u(d,p)});function u(d,f){d||!f?i(d):o?o(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),AN("processSync",this.parser||this.Parser),LN("processSync",this.compiler||this.Compiler),this.process(t,n),Q$("processSync","process",r),a;function n(o,i){r=!0,SN(o),a=i}}run(t,r,a){J$(t),this.freeze();let n=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?o(void 0,a):new Promise(o);function o(i,s){let l=iT(r);n.run(t,l,u);function u(d,f,p){let m=f||t;d?s(d):i?i(m):a(void 0,m,p)}}}runSync(t,r){let a=!1,n;return this.run(t,r,o),Q$("runSync","run",a),n;function o(i,s){SN(i),n=s,a=!0}}stringify(t,r){this.freeze();let a=iT(r),n=this.compiler||this.Compiler;return LN("stringify",n),J$(t),n(t,a)}use(t,...r){let a=this.attachers,n=this.namespace;if(NN("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[d,...f]=u;l(d,f)}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");s(u.plugins),u.settings&&(n.settings=(0,sT.default)(!0,n.settings,u.settings))}function s(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){let f=u[d];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let f=-1,p=-1;for(;++f<a.length;)if(a[f][0]===u){p=f;break}if(p===-1)a.push([u,...d]);else if(d.length>0){let[m,...g]=d,x=a[p][1];P0(x)&&P0(m)&&(m=(0,sT.default)(!0,x,m)),a[p]=[u,m,...g]}}}},ON=new RN().freeze();function AN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function LN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function NN(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 J$(e){if(!P0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Q$(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function iT(e){return ape(e)?e:new Ed(e)}function ape(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function npe(e){return typeof e=="string"||ope(e)}function ope(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var ipe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ej=[],tj={allowDangerousHtml:!0},spe=/^(https?|ircs?|mailto|xmpp)$/i,lpe=[{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:"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 MN(e){let t=upe(e),r=cpe(e);return dpe(t.runSync(t.parse(r),r),e)}function upe(e){let t=e.rehypePlugins||ej,r=e.remarkPlugins||ej,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tj}:tj;return ON().use(Yw).use(r).use(nT,a).use(t)}function cpe(e){let t=e.children||"",r=new Ed;return typeof t=="string"?r.value=t:(""+t,void 0),r}function dpe(e,t){let r=t.allowedElements,a=t.allowElement,n=t.components,o=t.disallowedElements,i=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||rj;for(let d of lpe)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+ipe+d.id,void 0);return r&&o&&void 0,t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),tl(e,u),eN(e,{Fragment:Yp.Fragment,components:n,ignoreInvalidStyle:!0,jsx:Yp.jsx,jsxs:Yp.jsxs,passKeys:!0,passNode:!0});function u(d,f,p){if(d.type==="raw"&&p&&typeof f=="number")return i?p.children.splice(f,1):p.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let m;for(m in C0)if(Object.hasOwn(C0,m)&&Object.hasOwn(d.properties,m)){let g=d.properties[m],x=C0[m];(x===null||x.includes(d.tagName))&&(d.properties[m]=l(String(g||""),m,d))}}if(d.type==="element"){let m=r?!r.includes(d.tagName):o?o.includes(d.tagName):!1;if(!m&&a&&typeof f=="number"&&(m=!a(d,f,p)),m&&p&&typeof f=="number")return s&&d.children?p.children.splice(f,1,...d.children):p.children.splice(f,1),f}}}function rj(e){let t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),n=e.indexOf("/");return t===-1||n!==-1&&t>n||r!==-1&&t>r||a!==-1&&t>a||spe.test(e.slice(0,t))?e:""}c();c();c();c();c();c();c();c();c();c();c();var aj=/[#.]/g;function PN(e,t){let r=e||"",a={},n=0,o,i;for(;n<r.length;){aj.lastIndex=n;let s=aj.exec(r),l=r.slice(n,s?s.index:r.length);l&&(o?o==="#"?a.id=l:Array.isArray(a.className)?a.className.push(l):a.className=[l]:i=l,n+=l.length),s&&(o=s[0],n++)}return{type:"element",tagName:i||t||"div",properties:a,children:[]}}function zN(e,t,r){let a=r?hpe(r):void 0;function n(o,i,...s){let l;if(o==null){l={type:"root",children:[]};let u=i;s.unshift(u)}else{l=PN(o,t);let u=l.tagName.toLowerCase(),d=a?a.get(u):void 0;if(l.tagName=d||u,fpe(i))s.unshift(i);else for(let[f,p]of Object.entries(i))ppe(e,l.properties,f,p)}for(let u of s)UN(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return n}function fpe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;let t=e,r=Object.keys(e);for(let a of r){let n=t[a];if(n&&typeof n=="object"){if(!Array.isArray(n))return!0;let o=n;for(let i of o)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function ppe(e,t,r,a){let n=fd(e,r),o;if(a!=null){if(typeof a=="number"){if(Number.isNaN(a))return;o=a}else typeof a=="boolean"?o=a:typeof a=="string"?n.spaceSeparated?o=YL(a):n.commaSeparated?o=FL(a):n.commaOrSpaceSeparated?o=YL(FL(a).join(" ")):o=nj(n,n.property,a):Array.isArray(a)?o=[...a]:o=n.property==="style"?mpe(a):String(a);if(Array.isArray(o)){let i=[];for(let s of o)i.push(nj(n,n.property,s));o=i}n.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[n.property]=o}}function UN(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(let r of t)UN(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?UN(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function nj(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Xs(r)===Xs(t)))return!0}return r}function mpe(e){let t=[];for(let[r,a]of Object.entries(e))t.push([r,a].join(": "));return t.join("; ")}function hpe(e){let t=new Map;for(let r of e)t.set(r.toLowerCase(),r);return t}c();var oj=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var FN=zN(pd,"div"),BN=zN(Js,"g",oj);c();c();function $N(e){let t=String(e),r=[];return{toOffset:n,toPoint:a};function a(o){if(typeof o=="number"&&o>-1&&o<=t.length){let i=0;for(;;){let s=r[i];if(s===void 0){let l=ij(t,r[i-1]);s=l===-1?t.length+1:l+1,r[i]=s}if(s>o)return{line:i+1,column:o-(i>0?r[i-1]:0)+1,offset:o};i++}}}function n(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;r.length<o.line;){let s=r[r.length-1],l=ij(t,s),u=l===-1?t.length+1:l+1;if(s===u)break;r.push(u)}let i=(o.line>1?r[o.line-2]:0)+o.column-1;if(i<r[o.line-1])return i}}}function ij(e,t){let r=e.indexOf("\r",t),a=e.indexOf(`
|
|
72
|
+
`,t);return a===-1?r:r===-1||r+1===a?a:r<a?r:a}c();var rs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};var lj={}.hasOwnProperty,gpe=Object.prototype;function jN(e,t){let r=t||{};return HN({file:r.file||void 0,location:!1,schema:r.space==="svg"?Js:pd,verbose:r.verbose||!1},e)}function HN(e,t){let r;switch(t.nodeName){case"#comment":{let a=t;return r={type:"comment",value:a.data},lT(e,a,r),r}case"#document":case"#document-fragment":{let a=t,n="mode"in a?a.mode==="quirks"||a.mode==="limited-quirks":!1;if(r={type:"root",children:uj(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){let o=String(e.file),i=$N(o),s=i.toPoint(0),l=i.toPoint(o.length);r.position={start:s,end:l}}return r}case"#documentType":{let a=t;return r={type:"doctype"},lT(e,a,r),r}case"#text":{let a=t;return r={type:"text",value:a.value},lT(e,a,r),r}default:return r=ype(e,t),r}}function uj(e,t){let r=-1,a=[];for(;++r<t.length;){let n=HN(e,t[r]);a.push(n)}return a}function ype(e,t){let r=e.schema;e.schema=t.namespaceURI===rs.svg?Js:pd;let a=-1,n={};for(;++a<t.attrs.length;){let s=t.attrs[a],l=(s.prefix?s.prefix+":":"")+s.name;lj.call(gpe,l)||(n[l]=s.value)}let i=(e.schema.space==="svg"?BN:FN)(t.tagName,n,uj(e,t.childNodes));if(lT(e,t,i),i.tagName==="template"){let s=t,l=s.sourceCodeLocation,u=l&&l.startTag&&Kp(l.startTag),d=l&&l.endTag&&Kp(l.endTag),f=HN(e,s.content);u&&d&&e.file&&(f.position={start:u.end,end:d.start}),i.content=f}return e.schema=r,i}function lT(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let a=bpe(e,r,t.sourceCodeLocation);a&&(e.location=!0,r.position=a)}}function bpe(e,t,r){let a=Kp(r);if(t.type==="element"){let n=t.children[t.children.length-1];if(a&&!r.endTag&&n&&n.position&&n.position.end&&(a.end=Object.assign({},n.position.end)),e.verbose){let o={},i;if(r.attrs)for(i in r.attrs)lj.call(r.attrs,i)&&(o[fd(e.schema,i).property]=Kp(r.attrs[i]));r.startTag;let s=Kp(r.startTag),l=r.endTag?Kp(r.endTag):void 0,u={opening:s};l&&(u.closing=l),u.properties=o,t.data={position:u}}}return a}function Kp(e){let t=sj({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=sj({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function sj(e){return e.line&&e.column?e:void 0}c();c();c();c();c();var rl=class{constructor(t,r,a){this.property=t,this.normal=r,a&&(this.space=a)}};rl.prototype.property={};rl.prototype.normal={};rl.prototype.space=null;function VN(e,t){let r={},a={},n=-1;for(;++n<e.length;)Object.assign(r,e[n].property),Object.assign(a,e[n].normal);return new rl(r,a,t)}c();c();c();function z0(e){return e.toLowerCase()}c();c();var Xa=class{constructor(t,r){this.property=t,this.attribute=r}};Xa.prototype.space=null;Xa.prototype.boolean=!1;Xa.prototype.booleanish=!1;Xa.prototype.overloadedBoolean=!1;Xa.prototype.number=!1;Xa.prototype.commaSeparated=!1;Xa.prototype.spaceSeparated=!1;Xa.prototype.commaOrSpaceSeparated=!1;Xa.prototype.mustUseProperty=!1;Xa.prototype.defined=!1;var F0={};nn(F0,{boolean:()=>st,booleanish:()=>Hr,commaOrSpaceSeparated:()=>Mn,commaSeparated:()=>Au,number:()=>ge,overloadedBoolean:()=>qN,spaceSeparated:()=>Yt});c();var vpe=0,st=Sd(),Hr=Sd(),qN=Sd(),ge=Sd(),Yt=Sd(),Au=Sd(),Mn=Sd();function Sd(){return 2**++vpe}var GN=Object.keys(F0),Id=class extends Xa{constructor(t,r,a,n){let o=-1;if(super(t,r),cj(this,"space",n),typeof a=="number")for(;++o<GN.length;){let i=GN[o];cj(this,GN[o],(a&F0[i])===F0[i])}}};Id.prototype.defined=!0;function cj(e,t,r){r&&(e[t]=r)}var xpe={}.hasOwnProperty;function Mo(e){let t={},r={},a;for(a in e.properties)if(xpe.call(e.properties,a)){let n=e.properties[a],o=new Id(a,e.transform(e.attributes||{},a),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,r[z0(a)]=a,r[z0(o.attribute)]=a}return new rl(t,r,e.space)}var ZN=Mo({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});c();var WN=Mo({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});c();c();c();function uT(e,t){return t in e?e[t]:t}function cT(e,t){return uT(e,t.toLowerCase())}var YN=Mo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:cT,properties:{xmlns:null,xmlnsXLink:null}});c();var KN=Mo({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Hr,ariaAutoComplete:null,ariaBusy:Hr,ariaChecked:Hr,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:Hr,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:Hr,ariaFlowTo:Yt,ariaGrabbed:Hr,ariaHasPopup:null,ariaHidden:Hr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:ge,ariaLive:null,ariaModal:Hr,ariaMultiLine:Hr,ariaMultiSelectable:Hr,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:Hr,ariaReadOnly:Hr,ariaRelevant:null,ariaRequired:Hr,ariaRoleDescription:Yt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:Hr,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null}});c();var dj=Mo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:cT,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Au,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:st,allowPaymentRequest:st,allowUserMedia:st,alt:null,as:null,async:st,autoCapitalize:null,autoComplete:Yt,autoFocus:st,autoPlay:st,blocking:Yt,capture:null,charSet:null,checked:st,cite:null,className:Yt,cols:ge,colSpan:null,content:null,contentEditable:Hr,controls:st,controlsList:Yt,coords:ge|Au,crossOrigin:null,data:null,dateTime:null,decoding:null,default:st,defer:st,dir:null,dirName:null,disabled:st,download:qN,draggable:Hr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:st,formTarget:null,headers:Yt,height:ge,hidden:st,high:ge,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:st,inputMode:null,integrity:null,is:null,isMap:st,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:st,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:st,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:st,muted:st,name:null,nonce:null,noModule:st,noValidate:st,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:st,optimum:ge,pattern:null,ping:Yt,placeholder:null,playsInline:st,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:st,referrerPolicy:null,rel:Yt,required:st,reversed:st,rows:ge,rowSpan:ge,sandbox:Yt,scope:null,scoped:st,seamless:st,selected:st,shadowRootClonable:st,shadowRootDelegatesFocus:st,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:Hr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:st,useMap:null,value:Hr,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:st,declare:st,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:st,noHref:st,noShade:st,noWrap:st,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:Hr,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:st,disableRemotePlayback:st,prefix:null,property:null,results:ge,security:null,unselectable:null}});c();var fj=Mo({space:"svg",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"},transform:uT,properties:{about:Mn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:Yt,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:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:st,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,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:Au,g2:Au,glyphName:Au,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Mn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,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:ge,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:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mn,rev:Mn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mn,requiredFeatures:Mn,requiredFonts:Mn,requiredFormats:Mn,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:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Mn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});c();var wpe=/^data[-\w.:]+$/i,pj=/-[a-z]/g,Tpe=/[A-Z]/g;function XN(e,t){let r=z0(t),a=t,n=Xa;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&wpe.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(pj,Spe);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!pj.test(o)){let i=o.replace(Tpe,Epe);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=Id}return new n(a,t)}function Epe(e){return"-"+e.toLowerCase()}function Spe(e){return e.charAt(1).toUpperCase()}var mj=VN([WN,ZN,YN,KN,dj],"html"),JN=VN([WN,ZN,YN,KN,fj],"svg");c();var hj={}.hasOwnProperty;function dT(e,t){let r=t||{};function a(n,...o){let i=a.invalid,s=a.handlers;if(n&&hj.call(n,e)){let l=String(n[e]);i=hj.call(s,l)?s[l]:a.unknown}if(i)return i.call(this,n,...o)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}var Ipe={},_pe={}.hasOwnProperty,gj=dT("type",{handlers:{root:kpe,element:Rpe,text:Lpe,comment:Npe,doctype:Ape}});function QN(e,t){let a=(t||Ipe).space;return gj(e,a==="svg"?JN:mj)}function kpe(e,t){let r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=eR(e.children,r,t),Xp(e,r),r}function Cpe(e,t){let r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=eR(e.children,r,t),Xp(e,r),r}function Ape(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Xp(e,t),t}function Lpe(e){let t={nodeName:"#text",value:e.value,parentNode:null};return Xp(e,t),t}function Npe(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return Xp(e,t),t}function Rpe(e,t){let r=t,a=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=JN);let n=[],o;if(e.properties){for(o in e.properties)if(o!=="children"&&_pe.call(e.properties,o)){let l=Ope(a,o,e.properties[o]);l&&n.push(l)}}let i=a.space;let s={nodeName:e.tagName,tagName:e.tagName,attrs:n,namespaceURI:rs[i],childNodes:[],parentNode:null};return s.childNodes=eR(e.children,s,a),Xp(e,s),e.tagName==="template"&&e.content&&(s.content=Cpe(e.content,a)),s}function Ope(e,t,r){let a=XN(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&a.boolean)return;Array.isArray(r)&&(r=a.commaSeparated?Rw(r):Pw(r));let n={name:a.attribute,value:r===!0?"":String(r)};if(a.space&&a.space!=="html"&&a.space!=="svg"){let o=n.name.indexOf(":");o<0?n.prefix="":(n.name=n.name.slice(o+1),n.prefix=a.attribute.slice(0,o)),n.namespace=rs[a.space]}return n}function eR(e,t,r){let a=-1,n=[];if(e)for(;++a<e.length;){let o=gj(e[a],r);o.parentNode=t,n.push(o)}return n}function Xp(e,t){let r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}c();var yj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];c();c();c();c();c();var Dpe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),fr="\uFFFD",k;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));var gn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function fT(e){return e>=55296&&e<=57343}function bj(e){return e>=56320&&e<=57343}function vj(e,t){return(e-55296)*1024+9216+t}function pT(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function mT(e){return e>=64976&&e<=65007||Dpe.has(e)}c();var K;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(K||(K={}));var Ppe=65536,hT=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ppe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){let{line:a,col:n,offset:o}=this,i=n+r,s=o+r;return{code:t,startLine:a,endLine:a,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if(bj(r))return this.pos++,this._addGap(),vj(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(K.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let a=0;a<t.length;a++)if((this.html.charCodeAt(this.pos+a)|32)!==t.charCodeAt(a))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;let a=this.html.charCodeAt(r);return a===k.CARRIAGE_RETURN?k.LINE_FEED:a}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,fT(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){pT(t)?this._err(K.controlCharacterInInputStream):mT(t)&&this._err(K.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var Lu={};nn(Lu,{TokenType:()=>Ct,getTokenAttr:()=>B0});c();var Ct;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ct||(Ct={}));function B0(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}c();c();var gT=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));c();var xj=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));c();var tR,Upe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),rR=(tR=String.fromCodePoint)!==null&&tR!==void 0?tR:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function aR(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Upe.get(e))!==null&&t!==void 0?t:e}var Aa;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Aa||(Aa={}));var zpe=32,Nu;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Nu||(Nu={}));function nR(e){return e>=Aa.ZERO&&e<=Aa.NINE}function Fpe(e){return e>=Aa.UPPER_A&&e<=Aa.UPPER_F||e>=Aa.LOWER_A&&e<=Aa.LOWER_F}function Bpe(e){return e>=Aa.UPPER_A&&e<=Aa.UPPER_Z||e>=Aa.LOWER_A&&e<=Aa.LOWER_Z||nR(e)}function $pe(e){return e===Aa.EQUALS||Bpe(e)}var Ca;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ca||(Ca={}));var as;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(as||(as={}));var $0=class{constructor(t,r,a){this.decodeTree=t,this.emitCodePoint=r,this.errors=a,this.state=Ca.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=as.Strict}startEntity(t){this.decodeMode=t,this.state=Ca.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Ca.EntityStart:return t.charCodeAt(r)===Aa.NUM?(this.state=Ca.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Ca.NamedEntity,this.stateNamedEntity(t,r));case Ca.NumericStart:return this.stateNumericStart(t,r);case Ca.NumericDecimal:return this.stateNumericDecimal(t,r);case Ca.NumericHex:return this.stateNumericHex(t,r);case Ca.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|zpe)===Aa.LOWER_X?(this.state=Ca.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Ca.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,a,n){if(r!==a){let o=a-r;this.result=this.result*Math.pow(n,o)+parseInt(t.substr(r,o),n),this.consumed+=o}}stateNumericHex(t,r){let a=r;for(;r<t.length;){let n=t.charCodeAt(r);if(nR(n)||Fpe(n))r+=1;else return this.addToNumericResult(t,a,r,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,a,r,16),-1}stateNumericDecimal(t,r){let a=r;for(;r<t.length;){let n=t.charCodeAt(r);if(nR(n))r+=1;else return this.addToNumericResult(t,a,r,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,a,r,10),-1}emitNumericEntity(t,r){var a;if(this.consumed<=r)return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Aa.SEMI)this.consumed+=1;else if(this.decodeMode===as.Strict)return 0;return this.emitCodePoint(aR(this.result),this.consumed),this.errors&&(t!==Aa.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:a}=this,n=a[this.treeIndex],o=(n&Nu.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let i=t.charCodeAt(r);if(this.treeIndex=jpe(a,n,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===as.Attribute&&(o===0||$pe(i))?0:this.emitNotTerminatedNamedEntity();if(n=a[this.treeIndex],o=(n&Nu.VALUE_LENGTH)>>14,o!==0){if(i===Aa.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==as.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:a}=this,n=(a[r]&Nu.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,a){let{decodeTree:n}=this;return this.emitCodePoint(r===1?n[t]&~Nu.VALUE_LENGTH:n[t+1],a),r===3&&this.emitCodePoint(n[t+2],a),a}end(){var t;switch(this.state){case Ca.NamedEntity:return this.result!==0&&(this.decodeMode!==as.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ca.NumericDecimal:return this.emitNumericEntity(0,2);case Ca.NumericHex:return this.emitNumericEntity(0,3);case Ca.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ca.EntityStart:return 0}}};function wj(e){let t="",r=new $0(e,a=>t+=rR(a));return function(n,o){let i=0,s=0;for(;(s=n.indexOf("&",s))>=0;){t+=n.slice(i,s),r.startEntity(o);let u=r.write(n,s+1);if(u<0){i=s+r.end();break}i=s+u,s=u===0?i+1:i}let l=t+n.slice(i);return t="",l}}function jpe(e,t,r,a){let n=(t&Nu.BRANCH_LENGTH)>>7,o=t&Nu.JUMP_TABLE;if(n===0)return o!==0&&a===o?r:-1;if(o){let l=a-o;return l<0||l>=n?-1:e[r+l]-1}let i=r,s=i+n-1;for(;i<=s;){let l=i+s>>>1,u=e[l];if(u<a)i=l+1;else if(u>a)s=l-1;else return e[l+n]}return-1}var Pmt=wj(gT),Umt=wj(xj);var j0={};nn(j0,{ATTRS:()=>ns,DOCUMENT_MODE:()=>Ja,NS:()=>le,NUMBERED_HEADERS:()=>Jp,SPECIAL_ELEMENTS:()=>oR,TAG_ID:()=>y,TAG_NAMES:()=>G,getTagID:()=>Ru,hasUnescapedText:()=>Tj});c();var le;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(le||(le={}));var ns;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ns||(ns={}));var Ja;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ja||(Ja={}));var G;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(G||(G={}));var y;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(y||(y={}));var Hpe=new Map([[G.A,y.A],[G.ADDRESS,y.ADDRESS],[G.ANNOTATION_XML,y.ANNOTATION_XML],[G.APPLET,y.APPLET],[G.AREA,y.AREA],[G.ARTICLE,y.ARTICLE],[G.ASIDE,y.ASIDE],[G.B,y.B],[G.BASE,y.BASE],[G.BASEFONT,y.BASEFONT],[G.BGSOUND,y.BGSOUND],[G.BIG,y.BIG],[G.BLOCKQUOTE,y.BLOCKQUOTE],[G.BODY,y.BODY],[G.BR,y.BR],[G.BUTTON,y.BUTTON],[G.CAPTION,y.CAPTION],[G.CENTER,y.CENTER],[G.CODE,y.CODE],[G.COL,y.COL],[G.COLGROUP,y.COLGROUP],[G.DD,y.DD],[G.DESC,y.DESC],[G.DETAILS,y.DETAILS],[G.DIALOG,y.DIALOG],[G.DIR,y.DIR],[G.DIV,y.DIV],[G.DL,y.DL],[G.DT,y.DT],[G.EM,y.EM],[G.EMBED,y.EMBED],[G.FIELDSET,y.FIELDSET],[G.FIGCAPTION,y.FIGCAPTION],[G.FIGURE,y.FIGURE],[G.FONT,y.FONT],[G.FOOTER,y.FOOTER],[G.FOREIGN_OBJECT,y.FOREIGN_OBJECT],[G.FORM,y.FORM],[G.FRAME,y.FRAME],[G.FRAMESET,y.FRAMESET],[G.H1,y.H1],[G.H2,y.H2],[G.H3,y.H3],[G.H4,y.H4],[G.H5,y.H5],[G.H6,y.H6],[G.HEAD,y.HEAD],[G.HEADER,y.HEADER],[G.HGROUP,y.HGROUP],[G.HR,y.HR],[G.HTML,y.HTML],[G.I,y.I],[G.IMG,y.IMG],[G.IMAGE,y.IMAGE],[G.INPUT,y.INPUT],[G.IFRAME,y.IFRAME],[G.KEYGEN,y.KEYGEN],[G.LABEL,y.LABEL],[G.LI,y.LI],[G.LINK,y.LINK],[G.LISTING,y.LISTING],[G.MAIN,y.MAIN],[G.MALIGNMARK,y.MALIGNMARK],[G.MARQUEE,y.MARQUEE],[G.MATH,y.MATH],[G.MENU,y.MENU],[G.META,y.META],[G.MGLYPH,y.MGLYPH],[G.MI,y.MI],[G.MO,y.MO],[G.MN,y.MN],[G.MS,y.MS],[G.MTEXT,y.MTEXT],[G.NAV,y.NAV],[G.NOBR,y.NOBR],[G.NOFRAMES,y.NOFRAMES],[G.NOEMBED,y.NOEMBED],[G.NOSCRIPT,y.NOSCRIPT],[G.OBJECT,y.OBJECT],[G.OL,y.OL],[G.OPTGROUP,y.OPTGROUP],[G.OPTION,y.OPTION],[G.P,y.P],[G.PARAM,y.PARAM],[G.PLAINTEXT,y.PLAINTEXT],[G.PRE,y.PRE],[G.RB,y.RB],[G.RP,y.RP],[G.RT,y.RT],[G.RTC,y.RTC],[G.RUBY,y.RUBY],[G.S,y.S],[G.SCRIPT,y.SCRIPT],[G.SEARCH,y.SEARCH],[G.SECTION,y.SECTION],[G.SELECT,y.SELECT],[G.SOURCE,y.SOURCE],[G.SMALL,y.SMALL],[G.SPAN,y.SPAN],[G.STRIKE,y.STRIKE],[G.STRONG,y.STRONG],[G.STYLE,y.STYLE],[G.SUB,y.SUB],[G.SUMMARY,y.SUMMARY],[G.SUP,y.SUP],[G.TABLE,y.TABLE],[G.TBODY,y.TBODY],[G.TEMPLATE,y.TEMPLATE],[G.TEXTAREA,y.TEXTAREA],[G.TFOOT,y.TFOOT],[G.TD,y.TD],[G.TH,y.TH],[G.THEAD,y.THEAD],[G.TITLE,y.TITLE],[G.TR,y.TR],[G.TRACK,y.TRACK],[G.TT,y.TT],[G.U,y.U],[G.UL,y.UL],[G.SVG,y.SVG],[G.VAR,y.VAR],[G.WBR,y.WBR],[G.XMP,y.XMP]]);function Ru(e){var t;return(t=Hpe.get(e))!==null&&t!==void 0?t:y.UNKNOWN}var pe=y,oR={[le.HTML]:new Set([pe.ADDRESS,pe.APPLET,pe.AREA,pe.ARTICLE,pe.ASIDE,pe.BASE,pe.BASEFONT,pe.BGSOUND,pe.BLOCKQUOTE,pe.BODY,pe.BR,pe.BUTTON,pe.CAPTION,pe.CENTER,pe.COL,pe.COLGROUP,pe.DD,pe.DETAILS,pe.DIR,pe.DIV,pe.DL,pe.DT,pe.EMBED,pe.FIELDSET,pe.FIGCAPTION,pe.FIGURE,pe.FOOTER,pe.FORM,pe.FRAME,pe.FRAMESET,pe.H1,pe.H2,pe.H3,pe.H4,pe.H5,pe.H6,pe.HEAD,pe.HEADER,pe.HGROUP,pe.HR,pe.HTML,pe.IFRAME,pe.IMG,pe.INPUT,pe.LI,pe.LINK,pe.LISTING,pe.MAIN,pe.MARQUEE,pe.MENU,pe.META,pe.NAV,pe.NOEMBED,pe.NOFRAMES,pe.NOSCRIPT,pe.OBJECT,pe.OL,pe.P,pe.PARAM,pe.PLAINTEXT,pe.PRE,pe.SCRIPT,pe.SECTION,pe.SELECT,pe.SOURCE,pe.STYLE,pe.SUMMARY,pe.TABLE,pe.TBODY,pe.TD,pe.TEMPLATE,pe.TEXTAREA,pe.TFOOT,pe.TH,pe.THEAD,pe.TITLE,pe.TR,pe.TRACK,pe.UL,pe.WBR,pe.XMP]),[le.MATHML]:new Set([pe.MI,pe.MO,pe.MN,pe.MS,pe.MTEXT,pe.ANNOTATION_XML]),[le.SVG]:new Set([pe.TITLE,pe.FOREIGN_OBJECT,pe.DESC]),[le.XLINK]:new Set,[le.XML]:new Set,[le.XMLNS]:new Set},Jp=new Set([pe.H1,pe.H2,pe.H3,pe.H4,pe.H5,pe.H6]),Vpe=new Set([G.STYLE,G.SCRIPT,G.XMP,G.IFRAME,G.NOEMBED,G.NOFRAMES,G.PLAINTEXT]);function Tj(e,t){return Vpe.has(e)||t&&e===G.NOSCRIPT}var L;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(L||(L={}));var kr={DATA:L.DATA,RCDATA:L.RCDATA,RAWTEXT:L.RAWTEXT,SCRIPT_DATA:L.SCRIPT_DATA,PLAINTEXT:L.PLAINTEXT,CDATA_SECTION:L.CDATA_SECTION};function qpe(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function H0(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function Gpe(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function Ou(e){return Gpe(e)||H0(e)}function Ej(e){return Ou(e)||qpe(e)}function yT(e){return e+32}function Ij(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function Sj(e){return Ij(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function Zpe(e){return e===k.NULL?K.nullCharacterReference:e>1114111?K.characterReferenceOutsideUnicodeRange:fT(e)?K.surrogateCharacterReference:mT(e)?K.noncharacterCharacterReference:pT(e)||e===k.CARRIAGE_RETURN?K.controlCharacterReference:null}var V0=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=L.DATA,this.returnState=L.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new hT(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new $0(gT,(a,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(a)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(K.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(K.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{let n=Zpe(a);n&&this._err(n,1)}}:void 0)}_err(t,r=0){var a,n;(n=(a=this.handler).onParseError)===null||n===void 0||n.call(a,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,r,a){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||a?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ct.START_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ct.END_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ct.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ct.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let a=this.currentToken;if(B0(a,this.currentAttr.name)===null){if(a.attrs.push(this.currentAttr),a.location&&this.currentLocation){let n=(t=(r=a.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(K.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let t=this.currentToken;this.prepareToken(t),t.tagID=Ru(t.tagName),t.type===Ct.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(K.endTagWithAttributes),t.selfClosing&&this._err(K.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ct.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ct.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ct.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ct.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){let r=Ij(t)?Ct.WHITESPACE_CHARACTER:t===k.NULL?Ct.NULL_CHARACTER:Ct.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ct.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=L.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?as.Attribute:as.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===L.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case L.DATA:{this._stateData(t);break}case L.RCDATA:{this._stateRcdata(t);break}case L.RAWTEXT:{this._stateRawtext(t);break}case L.SCRIPT_DATA:{this._stateScriptData(t);break}case L.PLAINTEXT:{this._statePlaintext(t);break}case L.TAG_OPEN:{this._stateTagOpen(t);break}case L.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case L.TAG_NAME:{this._stateTagName(t);break}case L.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case L.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case L.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case L.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case L.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case L.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case L.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case L.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case L.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case L.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case L.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case L.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case L.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case L.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case L.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case L.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case L.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case L.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case L.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case L.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case L.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case L.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case L.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case L.BOGUS_COMMENT:{this._stateBogusComment(t);break}case L.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case L.COMMENT_START:{this._stateCommentStart(t);break}case L.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case L.COMMENT:{this._stateComment(t);break}case L.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case L.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case L.COMMENT_END:{this._stateCommentEnd(t);break}case L.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case L.DOCTYPE:{this._stateDoctype(t);break}case L.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case L.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case L.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case L.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case L.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case L.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case L.CDATA_SECTION:{this._stateCdataSection(t);break}case L.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case L.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case L.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case L.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(K.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=L.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(fr);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(fr);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(fr);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(fr);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ou(t))this._createStartTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=L.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=L.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(K.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(K.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=L.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ou(t))this._createEndTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(K.missingEndTagName),this.state=L.DATA;break}case k.EOF:{this._err(K.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.tagName+=fr;break}case k.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(H0(t)?yT(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=L.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ou(t)?(this.state=L.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=L.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=L.SELF_CLOSING_START_TAG,!1;case k.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=L.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===k.SOLIDUS?this.state=L.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ou(t)?(this.state=L.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case k.SOLIDUS:{this.state=L.SCRIPT_DATA_END_TAG_OPEN;break}case k.EXCLAMATION_MARK:{this.state=L.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=L.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ou(t)?(this.state=L.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===k.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(fr);break}case k.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(fr);break}case k.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(fr);break}case k.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ou(t)?(this._emitChars("<"),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ou(t)?(this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(gn.SCRIPT,!1)&&Sj(this.preprocessor.peek(gn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<gn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(fr);break}case k.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(fr);break}case k.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(fr);break}case k.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.SOLIDUS?(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(gn.SCRIPT,!1)&&Sj(this.preprocessor.peek(gn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<gn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(K.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=L.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(K.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.name+=fr;break}default:this.currentAttr.name+=String.fromCodePoint(H0(t)?yT(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=L.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=L.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(K.missingAttributeValue),this.state=L.DATA,this.emitCurrentTagToken();break}default:this.state=L.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.value+=fr;break}case k.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.value+=fr;break}case k.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.value+=fr;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(K.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=L.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this._err(K.missingWhitespaceBetweenAttributes),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this._err(K.unexpectedSolidusInTag),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.data+=fr;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(gn.DASH_DASH,!0)?(this._createCommentToken(gn.DASH_DASH.length+1),this.state=L.COMMENT_START):this._consumeSequenceIfMatch(gn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(gn.DOCTYPE.length+1),this.state=L.DOCTYPE):this._consumeSequenceIfMatch(gn.CDATA_START,!0)?this.inForeignNode?this.state=L.CDATA_SECTION:(this._err(K.cdataInHtmlContent),this._createCommentToken(gn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=L.BOGUS_COMMENT):this._ensureHibernation()||(this._err(K.incorrectlyOpenedComment),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(K.abruptClosingOfEmptyComment),this.state=L.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(K.abruptClosingOfEmptyComment),this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(K.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{r.data+="<",this.state=L.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.data+=fr;break}case k.EOF:{this._err(K.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{r.data+="!",this.state=L.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=L.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=L.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(K.nestedComment),this.state=L.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case k.EOF:{this._err(K.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case k.EXCLAMATION_MARK:{this.state=L.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{r.data+="-";break}case k.EOF:{this._err(K.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{r.data+="--!",this.state=L.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(K.incorrectlyClosedComment),this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(K.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=L.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(K.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.missingWhitespaceBeforeDoctypeName),this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(H0(t))this._createDoctypeToken(String.fromCharCode(yT(t))),this.state=L.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(K.unexpectedNullCharacter),this._createDoctypeToken(fr),this.state=L.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(K.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(K.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=L.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.name+=fr;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(H0(t)?yT(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(gn.PUBLIC,!1)?this.state=L.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(gn.SYSTEM,!1)?this.state=L.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(K.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(K.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(K.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(K.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(K.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.publicId+=fr;break}case k.GREATER_THAN_SIGN:{this._err(K.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.publicId+=fr;break}case k.GREATER_THAN_SIGN:{this._err(K.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.QUOTATION_MARK:{this._err(K.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(K.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(K.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(K.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(K.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(K.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.systemId+=fr;break}case k.GREATER_THAN_SIGN:{this._err(K.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(K.unexpectedNullCharacter),r.systemId+=fr;break}case k.GREATER_THAN_SIGN:{this._err(K.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(K.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(K.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.NULL:{this._err(K.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=L.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(K.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=L.CDATA_SECTION_END:(this._emitChars("]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA;break}case k.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ej(this.preprocessor.peek(1))?L.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ej(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(K.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};c();var Aj=new Set([y.DD,y.DT,y.LI,y.OPTGROUP,y.OPTION,y.P,y.RB,y.RP,y.RT,y.RTC]),_j=new Set([...Aj,y.CAPTION,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]),bT=new Set([y.APPLET,y.CAPTION,y.HTML,y.MARQUEE,y.OBJECT,y.TABLE,y.TD,y.TEMPLATE,y.TH]),Wpe=new Set([...bT,y.OL,y.UL]),Ype=new Set([...bT,y.BUTTON]),kj=new Set([y.ANNOTATION_XML,y.MI,y.MN,y.MO,y.MS,y.MTEXT]),Cj=new Set([y.DESC,y.FOREIGN_OBJECT,y.TITLE]),Kpe=new Set([y.TR,y.TEMPLATE,y.HTML]),Xpe=new Set([y.TBODY,y.TFOOT,y.THEAD,y.TEMPLATE,y.HTML]),Jpe=new Set([y.TABLE,y.TEMPLATE,y.HTML]),Qpe=new Set([y.TD,y.TH]),vT=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,a){this.treeAdapter=r,this.handler=a,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=y.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===le.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let a=this._indexOf(t);this.items[a]=r,a===this.stackTop&&(this.current=r)}insertAfter(t,r,a){let n=this._indexOf(t)+1;this.items.splice(n,0,r),this.tagIDs.splice(n,0,a),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==le.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){let a=this._indexOfTagNames(t,r);this.shortenToLength(a<0?0:a)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Jp,le.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Qpe,le.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let a=this.stackTop;a>=0;a--)if(t.has(this.tagIDs[a])&&this.treeAdapter.getNamespaceURI(this.items[a])===r)return a;return-1}clearBackTo(t,r){let a=this._indexOfTagNames(t,r);this.shortenToLength(a+1)}clearBackToTableContext(){this.clearBackTo(Jpe,le.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Xpe,le.HTML)}clearBackToTableRowContext(){this.clearBackTo(Kpe,le.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===y.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===y.HTML}hasInDynamicScope(t,r){for(let a=this.stackTop;a>=0;a--){let n=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case le.HTML:{if(n===t)return!0;if(r.has(n))return!1;break}case le.SVG:{if(Cj.has(n))return!1;break}case le.MATHML:{if(kj.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,bT)}hasInListItemScope(t){return this.hasInDynamicScope(t,Wpe)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ype)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case le.HTML:{if(Jp.has(r))return!0;if(bT.has(r))return!1;break}case le.SVG:{if(Cj.has(r))return!1;break}case le.MATHML:{if(kj.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===le.HTML)switch(this.tagIDs[r]){case t:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===le.HTML)switch(this.tagIDs[t]){case y.TBODY:case y.THEAD:case y.TFOOT:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===le.HTML)switch(this.tagIDs[r]){case t:return!0;case y.OPTION:case y.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Aj.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;_j.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&_j.has(this.currentTagId);)this.pop()}};c();var bi;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(bi||(bi={}));var Lj={type:bi.Marker},xT=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let a=[],n=r.length,o=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){let l=this.entries[s];if(l.type===bi.Marker)break;let{element:u}=l;if(this.treeAdapter.getTagName(u)===o&&this.treeAdapter.getNamespaceURI(u)===i){let d=this.treeAdapter.getAttrList(u);d.length===n&&a.push({idx:s,attrs:d})}}return a}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),a=this._getNoahArkConditionCandidates(t,r);if(a.length<3)return;let n=new Map(r.map(i=>[i.name,i.value])),o=0;for(let i=0;i<a.length;i++){let s=a[i];s.attrs.every(l=>n.get(l.name)===l.value)&&(o+=1,o>=3&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Lj)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:bi.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let a=this.entries.indexOf(this.bookmark);this.entries.splice(a,0,{type:bi.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(Lj);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(a=>a.type===bi.Marker||this.treeAdapter.getTagName(a.element)===t);return r&&r.type===bi.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===bi.Element&&r.element===t)}};c();var vi={createDocument(){return{nodeName:"#document",mode:Ja.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let a=e.childNodes.indexOf(r);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,a){let n=e.childNodes.find(o=>o.nodeName==="#documentType");if(n)n.name=t,n.publicId=r,n.systemId=a;else{let o={nodeName:"#documentType",name:t,publicId:r,systemId:a,parentNode:null};vi.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(vi.isTextNode(r)){r.value+=t;return}}vi.appendChild(e,vi.createTextNode(t))},insertTextBefore(e,t,r){let a=e.childNodes[e.childNodes.indexOf(r)-1];a&&vi.isTextNode(a)?a.value+=t:vi.insertBefore(e,vi.createTextNode(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(a=>a.name));for(let a=0;a<t.length;a++)r.has(t[a].name)||e.attrs.push(t[a])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};c();var Rj="html",eme="about:legacy-compat",tme="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Oj=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],rme=[...Oj,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ame=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Dj=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],nme=[...Dj,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Nj(e,t){return t.some(r=>e.startsWith(r))}function Mj(e){return e.name===Rj&&e.publicId===null&&(e.systemId===null||e.systemId===eme)}function Pj(e){if(e.name!==Rj)return Ja.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===tme)return Ja.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),ame.has(r))return Ja.QUIRKS;let a=t===null?rme:Oj;if(Nj(r,a))return Ja.QUIRKS;if(a=t===null?Dj:nme,Nj(r,a))return Ja.LIMITED_QUIRKS}return Ja.NO_QUIRKS}c();var Uj={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ime="definitionurl",sme="definitionURL",lme=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ume=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:le.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:le.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:le.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:le.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:le.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:le.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:le.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:le.XML}],["xml:space",{prefix:"xml",name:"space",namespace:le.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:le.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:le.XMLNS}]]),cme=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),dme=new Set([y.B,y.BIG,y.BLOCKQUOTE,y.BODY,y.BR,y.CENTER,y.CODE,y.DD,y.DIV,y.DL,y.DT,y.EM,y.EMBED,y.H1,y.H2,y.H3,y.H4,y.H5,y.H6,y.HEAD,y.HR,y.I,y.IMG,y.LI,y.LISTING,y.MENU,y.META,y.NOBR,y.OL,y.P,y.PRE,y.RUBY,y.S,y.SMALL,y.SPAN,y.STRONG,y.STRIKE,y.SUB,y.SUP,y.TABLE,y.TT,y.U,y.UL,y.VAR]);function zj(e){let t=e.tagID;return t===y.FONT&&e.attrs.some(({name:a})=>a===ns.COLOR||a===ns.SIZE||a===ns.FACE)||dme.has(t)}function iR(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===ime){e.attrs[t].name=sme;break}}function sR(e){for(let t=0;t<e.attrs.length;t++){let r=lme.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function wT(e){for(let t=0;t<e.attrs.length;t++){let r=ume.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function Fj(e){let t=cme.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ru(e.tagName))}function fme(e,t){return t===le.MATHML&&(e===y.MI||e===y.MO||e===y.MN||e===y.MS||e===y.MTEXT)}function pme(e,t,r){if(t===le.MATHML&&e===y.ANNOTATION_XML){for(let a=0;a<r.length;a++)if(r[a].name===ns.ENCODING){let n=r[a].value.toLowerCase();return n===Uj.TEXT_HTML||n===Uj.APPLICATION_XML}}return t===le.SVG&&(e===y.FOREIGN_OBJECT||e===y.DESC||e===y.TITLE)}function Bj(e,t,r,a){return(!a||a===le.HTML)&&pme(e,t,r)||(!a||a===le.MATHML)&&fme(e,t)}var mme="hidden",hme=8,gme=3,P;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(P||(P={}));var yme={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},qj=new Set([y.TABLE,y.TBODY,y.TFOOT,y.THEAD,y.TR]),jj={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vi,onParseError:null},_d=class{constructor(t,r,a=null,n=null){this.fragmentContext=a,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=P.INITIAL,this.originalInsertionMode=P.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...jj,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new V0(this.options,this),this.activeFormattingElements=new xT(this.treeAdapter),this.fragmentContextID=a?Ru(this.treeAdapter.getTagName(a)):y.UNKNOWN,this._setContextModes(a??this.document,this.fragmentContextID),this.openElements=new vT(this.document,this.treeAdapter,this)}static parse(t,r){let a=new this(r);return a.tokenizer.write(t,!0),a.document}static getFragmentParser(t,r){let a={...jj,...r};t??(t=a.treeAdapter.createElement(G.TEMPLATE,le.HTML,[]));let n=a.treeAdapter.createElement("documentmock",le.HTML,[]),o=new this(a,n,t);return o.fragmentContextID===y.TEMPLATE&&o.tmplInsertionModeStack.unshift(P.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,a){var n;if(!this.onParseError)return;let o=(n=t.location)!==null&&n!==void 0?n:yme,i={code:r,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:a?o.startLine:o.endLine,endCol:a?o.startCol:o.endCol,endOffset:a?o.startOffset:o.endOffset};this.onParseError(i)}onItemPush(t,r,a){var n,o;(o=(n=this.treeAdapter).onItemPush)===null||o===void 0||o.call(n,t),a&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var a,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(a=this.treeAdapter).onItemPop)===null||n===void 0||n.call(a,t,this.openElements.current),r){let o,i;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,i=this.fragmentContextID):{current:o,currentTagId:i}=this.openElements,this._setContextModes(o,i)}}_setContextModes(t,r){let a=t===this.document||this.treeAdapter.getNamespaceURI(t)===le.HTML;this.currentNotInHTML=!a,this.tokenizer.inForeignNode=!a&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,le.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=P.TEXT}switchToPlaintextParsing(){this.insertionMode=P.TEXT,this.originalInsertionMode=P.IN_BODY,this.tokenizer.state=kr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===G.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==le.HTML))switch(this.fragmentContextID){case y.TITLE:case y.TEXTAREA:{this.tokenizer.state=kr.RCDATA;break}case y.STYLE:case y.XMP:case y.IFRAME:case y.NOEMBED:case y.NOFRAMES:case y.NOSCRIPT:{this.tokenizer.state=kr.RAWTEXT;break}case y.SCRIPT:{this.tokenizer.state=kr.SCRIPT_DATA;break}case y.PLAINTEXT:{this.tokenizer.state=kr.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",a=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,a,n),t.location){let i=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));i&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let a=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,a)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let a=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(a,t)}}_appendElement(t,r){let a=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(a,t.location)}_insertElement(t,r){let a=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID)}_insertFakeElement(t,r){let a=this.treeAdapter.createElement(t,le.HTML,[]);this._attachElementToTree(a,null),this.openElements.push(a,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,le.HTML,t.attrs),a=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,a),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(G.HTML,le.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,y.HTML)}_appendCommentNode(t,r){let a=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,a),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_insertCharacters(t){let r,a;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:a}=this._findFosterParentingLocation(),a?this.treeAdapter.insertTextBefore(r,t.chars,a):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let n=this.treeAdapter.getChildNodes(r),o=a?n.lastIndexOf(a):n.length,i=n[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,r){for(let a=this.treeAdapter.getFirstChild(t);a;a=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(a),this.treeAdapter.appendChild(r,a)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let a=r.location,n=this.treeAdapter.getTagName(t),o=r.type===Ct.END_TAG&&n===r.tagName?{endTag:{...a},endLine:a.endLine,endCol:a.endCol,endOffset:a.endOffset}:{endLine:a.startLine,endCol:a.startCol,endOffset:a.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,a;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,a=this.fragmentContextID):{current:r,currentTagId:a}=this.openElements,t.tagID===y.SVG&&this.treeAdapter.getTagName(r)===G.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===le.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===y.MGLYPH||t.tagID===y.MALIGNMARK)&&!this._isIntegrationPoint(a,r,le.HTML)}_processToken(t){switch(t.type){case Ct.CHARACTER:{this.onCharacter(t);break}case Ct.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ct.COMMENT:{this.onComment(t);break}case Ct.DOCTYPE:{this.onDoctype(t);break}case Ct.START_TAG:{this._processStartTag(t);break}case Ct.END_TAG:{this.onEndTag(t);break}case Ct.EOF:{this.onEof(t);break}case Ct.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,a){let n=this.treeAdapter.getNamespaceURI(r),o=this.treeAdapter.getAttrList(r);return Bj(t,n,o,a)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(n=>n.type===bi.Marker||this.openElements.contains(n.element)),a=r<0?t-1:r-1;for(let n=a;n>=0;n--){let o=this.activeFormattingElements.entries[n];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=P.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(y.P),this.openElements.popUntilTagNamePopped(y.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case y.TR:{this.insertionMode=P.IN_ROW;return}case y.TBODY:case y.THEAD:case y.TFOOT:{this.insertionMode=P.IN_TABLE_BODY;return}case y.CAPTION:{this.insertionMode=P.IN_CAPTION;return}case y.COLGROUP:{this.insertionMode=P.IN_COLUMN_GROUP;return}case y.TABLE:{this.insertionMode=P.IN_TABLE;return}case y.BODY:{this.insertionMode=P.IN_BODY;return}case y.FRAMESET:{this.insertionMode=P.IN_FRAMESET;return}case y.SELECT:{this._resetInsertionModeForSelect(t);return}case y.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case y.HTML:{this.insertionMode=this.headElement?P.AFTER_HEAD:P.BEFORE_HEAD;return}case y.TD:case y.TH:{if(t>0){this.insertionMode=P.IN_CELL;return}break}case y.HEAD:{if(t>0){this.insertionMode=P.IN_HEAD;return}break}}this.insertionMode=P.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let a=this.openElements.tagIDs[r];if(a===y.TEMPLATE)break;if(a===y.TABLE){this.insertionMode=P.IN_SELECT_IN_TABLE;return}}this.insertionMode=P.IN_SELECT}_isElementCausesFosterParenting(t){return qj.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case y.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===le.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case y.TABLE:{let a=this.treeAdapter.getParentNode(r);return a?{parent:a,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let a=this.treeAdapter.getNamespaceURI(t);return oR[a].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Zhe(this,t);return}switch(this.insertionMode){case P.INITIAL:{q0(this,t);break}case P.BEFORE_HTML:{Z0(this,t);break}case P.BEFORE_HEAD:{W0(this,t);break}case P.IN_HEAD:{Y0(this,t);break}case P.IN_HEAD_NO_SCRIPT:{K0(this,t);break}case P.AFTER_HEAD:{X0(this,t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:{Zj(this,t);break}case P.TEXT:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{lR(this,t);break}case P.IN_TABLE_TEXT:{Qj(this,t);break}case P.IN_COLUMN_GROUP:{ET(this,t);break}case P.AFTER_BODY:{ST(this,t);break}case P.AFTER_AFTER_BODY:{TT(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ghe(this,t);return}switch(this.insertionMode){case P.INITIAL:{q0(this,t);break}case P.BEFORE_HTML:{Z0(this,t);break}case P.BEFORE_HEAD:{W0(this,t);break}case P.IN_HEAD:{Y0(this,t);break}case P.IN_HEAD_NO_SCRIPT:{K0(this,t);break}case P.AFTER_HEAD:{X0(this,t);break}case P.TEXT:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{lR(this,t);break}case P.IN_COLUMN_GROUP:{ET(this,t);break}case P.AFTER_BODY:{ST(this,t);break}case P.AFTER_AFTER_BODY:{TT(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){uR(this,t);return}switch(this.insertionMode){case P.INITIAL:case P.BEFORE_HTML:case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_TEMPLATE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{uR(this,t);break}case P.IN_TABLE_TEXT:{G0(this,t);break}case P.AFTER_BODY:{Sme(this,t);break}case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{Ime(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case P.INITIAL:{_me(this,t);break}case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:{this._err(t,K.misplacedDoctype);break}case P.IN_TABLE_TEXT:{G0(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,K.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Whe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{q0(this,t);break}case P.BEFORE_HTML:{kme(this,t);break}case P.BEFORE_HEAD:{Ame(this,t);break}case P.IN_HEAD:{xi(this,t);break}case P.IN_HEAD_NO_SCRIPT:{Rme(this,t);break}case P.AFTER_HEAD:{Dme(this,t);break}case P.IN_BODY:{Qa(this,t);break}case P.IN_TABLE:{Qp(this,t);break}case P.IN_TABLE_TEXT:{G0(this,t);break}case P.IN_CAPTION:{Lhe(this,t);break}case P.IN_COLUMN_GROUP:{pR(this,t);break}case P.IN_TABLE_BODY:{kT(this,t);break}case P.IN_ROW:{CT(this,t);break}case P.IN_CELL:{Ohe(this,t);break}case P.IN_SELECT:{rH(this,t);break}case P.IN_SELECT_IN_TABLE:{Mhe(this,t);break}case P.IN_TEMPLATE:{Uhe(this,t);break}case P.AFTER_BODY:{Fhe(this,t);break}case P.IN_FRAMESET:{Bhe(this,t);break}case P.AFTER_FRAMESET:{jhe(this,t);break}case P.AFTER_AFTER_BODY:{Vhe(this,t);break}case P.AFTER_AFTER_FRAMESET:{qhe(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Yhe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{q0(this,t);break}case P.BEFORE_HTML:{Cme(this,t);break}case P.BEFORE_HEAD:{Lme(this,t);break}case P.IN_HEAD:{Nme(this,t);break}case P.IN_HEAD_NO_SCRIPT:{Ome(this,t);break}case P.AFTER_HEAD:{Mme(this,t);break}case P.IN_BODY:{_T(this,t);break}case P.TEXT:{xhe(this,t);break}case P.IN_TABLE:{J0(this,t);break}case P.IN_TABLE_TEXT:{G0(this,t);break}case P.IN_CAPTION:{Nhe(this,t);break}case P.IN_COLUMN_GROUP:{Rhe(this,t);break}case P.IN_TABLE_BODY:{cR(this,t);break}case P.IN_ROW:{tH(this,t);break}case P.IN_CELL:{Dhe(this,t);break}case P.IN_SELECT:{aH(this,t);break}case P.IN_SELECT_IN_TABLE:{Phe(this,t);break}case P.IN_TEMPLATE:{zhe(this,t);break}case P.AFTER_BODY:{oH(this,t);break}case P.IN_FRAMESET:{$he(this,t);break}case P.AFTER_FRAMESET:{Hhe(this,t);break}case P.AFTER_AFTER_BODY:{TT(this,t);break}default:}}onEof(t){switch(this.insertionMode){case P.INITIAL:{q0(this,t);break}case P.BEFORE_HTML:{Z0(this,t);break}case P.BEFORE_HEAD:{W0(this,t);break}case P.IN_HEAD:{Y0(this,t);break}case P.IN_HEAD_NO_SCRIPT:{K0(this,t);break}case P.AFTER_HEAD:{X0(this,t);break}case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{Xj(this,t);break}case P.TEXT:{whe(this,t);break}case P.IN_TABLE_TEXT:{G0(this,t);break}case P.IN_TEMPLATE:{nH(this,t);break}case P.AFTER_BODY:case P.IN_FRAMESET:case P.AFTER_FRAMESET:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{fR(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.TEXT:case P.IN_COLUMN_GROUP:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{this._insertCharacters(t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:case P.AFTER_BODY:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{Gj(this,t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{lR(this,t);break}case P.IN_TABLE_TEXT:{Jj(this,t);break}default:}}};function bme(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Kj(e,t),r}function vme(e,t){let r=null,a=e.openElements.stackTop;for(;a>=0;a--){let n=e.openElements.items[a];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[a])&&(r=n)}return r||(e.openElements.shortenToLength(a<0?0:a),e.activeFormattingElements.removeEntry(t)),r}function xme(e,t,r){let a=t,n=e.openElements.getCommonAncestor(t);for(let o=0,i=n;i!==r;o++,i=n){n=e.openElements.getCommonAncestor(i);let s=e.activeFormattingElements.getElementEntry(i),l=s&&o>=gme;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(i)):(i=wme(e,s),a===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(i,a),a=i)}return a}function wme(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function Tme(e,t,r){let a=e.treeAdapter.getTagName(t),n=Ru(a);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{let o=e.treeAdapter.getNamespaceURI(t);n===y.TEMPLATE&&o===le.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Eme(e,t,r){let a=e.treeAdapter.getNamespaceURI(r.element),{token:n}=r,o=e.treeAdapter.createElement(n.tagName,a,n.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o,n.tagID)}function dR(e,t){for(let r=0;r<hme;r++){let a=bme(e,t);if(!a)break;let n=vme(e,a);if(!n)break;e.activeFormattingElements.bookmark=a;let o=xme(e,n,a.element),i=e.openElements.getCommonAncestor(a.element);e.treeAdapter.detachNode(o),i&&Tme(e,i,o),Eme(e,n,a)}}function uR(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Sme(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Ime(e,t){e._appendCommentNode(t,e.document)}function fR(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let a=e.openElements.stackTop;a>=r;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let a=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(a);if(n&&!n.endTag&&(e._setEndLocation(a,t),e.openElements.stackTop>=1)){let o=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(o);i&&!i.endTag&&e._setEndLocation(o,t)}}}}function _me(e,t){e._setDocumentType(t);let r=t.forceQuirks?Ja.QUIRKS:Pj(t);Mj(t)||e._err(t,K.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=P.BEFORE_HTML}function q0(e,t){e._err(t,K.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ja.QUIRKS),e.insertionMode=P.BEFORE_HTML,e._processToken(t)}function kme(e,t){t.tagID===y.HTML?(e._insertElement(t,le.HTML),e.insertionMode=P.BEFORE_HEAD):Z0(e,t)}function Cme(e,t){let r=t.tagID;(r===y.HTML||r===y.HEAD||r===y.BODY||r===y.BR)&&Z0(e,t)}function Z0(e,t){e._insertFakeRootElement(),e.insertionMode=P.BEFORE_HEAD,e._processToken(t)}function Ame(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.HEAD:{e._insertElement(t,le.HTML),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD;break}default:W0(e,t)}}function Lme(e,t){let r=t.tagID;r===y.HEAD||r===y.BODY||r===y.HTML||r===y.BR?W0(e,t):e._err(t,K.endTagWithoutMatchingOpenElement)}function W0(e,t){e._insertFakeElement(G.HEAD,y.HEAD),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD,e._processToken(t)}function xi(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.TITLE:{e._switchToTextParsing(t,kr.RCDATA);break}case y.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,kr.RAWTEXT):(e._insertElement(t,le.HTML),e.insertionMode=P.IN_HEAD_NO_SCRIPT);break}case y.NOFRAMES:case y.STYLE:{e._switchToTextParsing(t,kr.RAWTEXT);break}case y.SCRIPT:{e._switchToTextParsing(t,kr.SCRIPT_DATA);break}case y.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=P.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(P.IN_TEMPLATE);break}case y.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Y0(e,t)}}function Nme(e,t){switch(t.tagID){case y.HEAD:{e.openElements.pop(),e.insertionMode=P.AFTER_HEAD;break}case y.BODY:case y.BR:case y.HTML:{Y0(e,t);break}case y.TEMPLATE:{kd(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function kd(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==y.TEMPLATE&&e._err(t,K.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,K.endTagWithoutMatchingOpenElement)}function Y0(e,t){e.openElements.pop(),e.insertionMode=P.AFTER_HEAD,e._processToken(t)}function Rme(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.BASEFONT:case y.BGSOUND:case y.HEAD:case y.LINK:case y.META:case y.NOFRAMES:case y.STYLE:{xi(e,t);break}case y.NOSCRIPT:{e._err(t,K.nestedNoscriptInHead);break}default:K0(e,t)}}function Ome(e,t){switch(t.tagID){case y.NOSCRIPT:{e.openElements.pop(),e.insertionMode=P.IN_HEAD;break}case y.BR:{K0(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function K0(e,t){let r=t.type===Ct.EOF?K.openElementsLeftAfterEof:K.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=P.IN_HEAD,e._processToken(t)}function Dme(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.BODY:{e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=P.IN_BODY;break}case y.FRAMESET:{e._insertElement(t,le.HTML),e.insertionMode=P.IN_FRAMESET;break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{e._err(t,K.abandonedHeadElementChild),e.openElements.push(e.headElement,y.HEAD),xi(e,t),e.openElements.remove(e.headElement);break}case y.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:X0(e,t)}}function Mme(e,t){switch(t.tagID){case y.BODY:case y.HTML:case y.BR:{X0(e,t);break}case y.TEMPLATE:{kd(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function X0(e,t){e._insertFakeElement(G.BODY,y.BODY),e.insertionMode=P.IN_BODY,IT(e,t)}function IT(e,t){switch(t.type){case Ct.CHARACTER:{Zj(e,t);break}case Ct.WHITESPACE_CHARACTER:{Gj(e,t);break}case Ct.COMMENT:{uR(e,t);break}case Ct.START_TAG:{Qa(e,t);break}case Ct.END_TAG:{_T(e,t);break}case Ct.EOF:{Xj(e,t);break}default:}}function Gj(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Zj(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Pme(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ume(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function zme(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,le.HTML),e.insertionMode=P.IN_FRAMESET)}function Fme(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML)}function Bme(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),Jp.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,le.HTML)}function $me(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function jme(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),r||(e.formElement=e.openElements.current))}function Hme(e,t){e.framesetOk=!1;let r=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){let n=e.openElements.tagIDs[a];if(r===y.LI&&n===y.LI||(r===y.DD||r===y.DT)&&(n===y.DD||n===y.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==y.ADDRESS&&n!==y.DIV&&n!==y.P&&e._isSpecialElement(e.openElements.items[a],n))break}e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML)}function Vme(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.tokenizer.state=kr.PLAINTEXT}function qme(e,t){e.openElements.hasInScope(y.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=!1}function Gme(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(G.A);r&&(dR(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Zme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Wme(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(y.NOBR)&&(dR(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Yme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Kme(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ja.QUIRKS&&e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=P.IN_TABLE}function Wj(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yj(e){let t=B0(e,ns.TYPE);return t!=null&&t.toLowerCase()===mme}function Xme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),Yj(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Jme(e,t){e._appendElement(t,le.HTML),t.ackSelfClosing=!0}function Qme(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._appendElement(t,le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ehe(e,t){t.tagName=G.IMG,t.tagID=y.IMG,Wj(e,t)}function the(e,t){e._insertElement(t,le.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=P.TEXT}function rhe(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kr.RAWTEXT)}function ahe(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kr.RAWTEXT)}function Hj(e,t){e._switchToTextParsing(t,kr.RAWTEXT)}function nhe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===P.IN_TABLE||e.insertionMode===P.IN_CAPTION||e.insertionMode===P.IN_TABLE_BODY||e.insertionMode===P.IN_ROW||e.insertionMode===P.IN_CELL?P.IN_SELECT_IN_TABLE:P.IN_SELECT}function ohe(e,t){e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML)}function ihe(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,le.HTML)}function she(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(y.RTC),e._insertElement(t,le.HTML)}function lhe(e,t){e._reconstructActiveFormattingElements(),iR(t),wT(t),t.selfClosing?e._appendElement(t,le.MATHML):e._insertElement(t,le.MATHML),t.ackSelfClosing=!0}function uhe(e,t){e._reconstructActiveFormattingElements(),sR(t),wT(t),t.selfClosing?e._appendElement(t,le.SVG):e._insertElement(t,le.SVG),t.ackSelfClosing=!0}function Vj(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML)}function Qa(e,t){switch(t.tagID){case y.I:case y.S:case y.B:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.SMALL:case y.STRIKE:case y.STRONG:{Zme(e,t);break}case y.A:{Gme(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{Bme(e,t);break}case y.P:case y.DL:case y.OL:case y.UL:case y.DIV:case y.DIR:case y.NAV:case y.MAIN:case y.MENU:case y.ASIDE:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.DETAILS:case y.ADDRESS:case y.ARTICLE:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{Fme(e,t);break}case y.LI:case y.DD:case y.DT:{Hme(e,t);break}case y.BR:case y.IMG:case y.WBR:case y.AREA:case y.EMBED:case y.KEYGEN:{Wj(e,t);break}case y.HR:{Qme(e,t);break}case y.RB:case y.RTC:{ihe(e,t);break}case y.RT:case y.RP:{she(e,t);break}case y.PRE:case y.LISTING:{$me(e,t);break}case y.XMP:{rhe(e,t);break}case y.SVG:{uhe(e,t);break}case y.HTML:{Pme(e,t);break}case y.BASE:case y.LINK:case y.META:case y.STYLE:case y.TITLE:case y.SCRIPT:case y.BGSOUND:case y.BASEFONT:case y.TEMPLATE:{xi(e,t);break}case y.BODY:{Ume(e,t);break}case y.FORM:{jme(e,t);break}case y.NOBR:{Wme(e,t);break}case y.MATH:{lhe(e,t);break}case y.TABLE:{Kme(e,t);break}case y.INPUT:{Xme(e,t);break}case y.PARAM:case y.TRACK:case y.SOURCE:{Jme(e,t);break}case y.IMAGE:{ehe(e,t);break}case y.BUTTON:{qme(e,t);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{Yme(e,t);break}case y.IFRAME:{ahe(e,t);break}case y.SELECT:{nhe(e,t);break}case y.OPTION:case y.OPTGROUP:{ohe(e,t);break}case y.NOEMBED:case y.NOFRAMES:{Hj(e,t);break}case y.FRAMESET:{zme(e,t);break}case y.TEXTAREA:{the(e,t);break}case y.NOSCRIPT:{e.options.scriptingEnabled?Hj(e,t):Vj(e,t);break}case y.PLAINTEXT:{Vme(e,t);break}case y.COL:case y.TH:case y.TD:case y.TR:case y.HEAD:case y.FRAME:case y.TBODY:case y.TFOOT:case y.THEAD:case y.CAPTION:case y.COLGROUP:break;default:Vj(e,t)}}function che(e,t){if(e.openElements.hasInScope(y.BODY)&&(e.insertionMode=P.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function dhe(e,t){e.openElements.hasInScope(y.BODY)&&(e.insertionMode=P.AFTER_BODY,oH(e,t))}function fhe(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function phe(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(y.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(y.FORM):r&&e.openElements.remove(r))}function mhe(e){e.openElements.hasInButtonScope(y.P)||e._insertFakeElement(G.P,y.P),e._closePElement()}function hhe(e){e.openElements.hasInListItemScope(y.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(y.LI),e.openElements.popUntilTagNamePopped(y.LI))}function ghe(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function yhe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function bhe(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function vhe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(G.BR,y.BR),e.openElements.pop(),e.framesetOk=!1}function Kj(e,t){let r=t.tagName,a=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){let o=e.openElements.items[n],i=e.openElements.tagIDs[n];if(a===i&&(a!==y.UNKNOWN||e.treeAdapter.getTagName(o)===r)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(o,i))break}}function _T(e,t){switch(t.tagID){case y.A:case y.B:case y.I:case y.S:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.NOBR:case y.SMALL:case y.STRIKE:case y.STRONG:{dR(e,t);break}case y.P:{mhe(e);break}case y.DL:case y.UL:case y.OL:case y.DIR:case y.DIV:case y.NAV:case y.PRE:case y.MAIN:case y.MENU:case y.ASIDE:case y.BUTTON:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.ADDRESS:case y.ARTICLE:case y.DETAILS:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.LISTING:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{fhe(e,t);break}case y.LI:{hhe(e);break}case y.DD:case y.DT:{ghe(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{yhe(e);break}case y.BR:{vhe(e);break}case y.BODY:{che(e,t);break}case y.HTML:{dhe(e,t);break}case y.FORM:{phe(e);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{bhe(e,t);break}case y.TEMPLATE:{kd(e,t);break}default:Kj(e,t)}}function Xj(e,t){e.tmplInsertionModeStack.length>0?nH(e,t):fR(e,t)}function xhe(e,t){var r;t.tagID===y.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function whe(e,t){e._err(t,K.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function lR(e,t){if(qj.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P.IN_TABLE_TEXT,t.type){case Ct.CHARACTER:{Qj(e,t);break}case Ct.WHITESPACE_CHARACTER:{Jj(e,t);break}}else Q0(e,t)}function The(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,le.HTML),e.insertionMode=P.IN_CAPTION}function Ehe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=P.IN_COLUMN_GROUP}function She(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.COLGROUP,y.COLGROUP),e.insertionMode=P.IN_COLUMN_GROUP,pR(e,t)}function Ihe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=P.IN_TABLE_BODY}function _he(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.TBODY,y.TBODY),e.insertionMode=P.IN_TABLE_BODY,kT(e,t)}function khe(e,t){e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Che(e,t){Yj(t)?e._appendElement(t,le.HTML):Q0(e,t),t.ackSelfClosing=!0}function Ahe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,le.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Qp(e,t){switch(t.tagID){case y.TD:case y.TH:case y.TR:{_he(e,t);break}case y.STYLE:case y.SCRIPT:case y.TEMPLATE:{xi(e,t);break}case y.COL:{She(e,t);break}case y.FORM:{Ahe(e,t);break}case y.TABLE:{khe(e,t);break}case y.TBODY:case y.TFOOT:case y.THEAD:{Ihe(e,t);break}case y.INPUT:{Che(e,t);break}case y.CAPTION:{The(e,t);break}case y.COLGROUP:{Ehe(e,t);break}default:Q0(e,t)}}function J0(e,t){switch(t.tagID){case y.TABLE:{e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode());break}case y.TEMPLATE:{kd(e,t);break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:Q0(e,t)}}function Q0(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,IT(e,t),e.fosterParentingEnabled=r}function Jj(e,t){e.pendingCharacterTokens.push(t)}function Qj(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function G0(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Q0(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var eH=new Set([y.CAPTION,y.COL,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]);function Lhe(e,t){let r=t.tagID;eH.has(r)?e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_TABLE,Qp(e,t)):Qa(e,t)}function Nhe(e,t){let r=t.tagID;switch(r){case y.CAPTION:case y.TABLE:{e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_TABLE,r===y.TABLE&&J0(e,t));break}case y.BODY:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:_T(e,t)}}function pR(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.COL:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.TEMPLATE:{xi(e,t);break}default:ET(e,t)}}function Rhe(e,t){switch(t.tagID){case y.COLGROUP:{e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=P.IN_TABLE);break}case y.TEMPLATE:{kd(e,t);break}case y.COL:break;default:ET(e,t)}}function ET(e,t){e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=P.IN_TABLE,e._processToken(t))}function kT(e,t){switch(t.tagID){case y.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,le.HTML),e.insertionMode=P.IN_ROW;break}case y.TH:case y.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(G.TR,y.TR),e.insertionMode=P.IN_ROW,CT(e,t);break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE,Qp(e,t));break}default:Qp(e,t)}}function cR(e,t){let r=t.tagID;switch(t.tagID){case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE);break}case y.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE,J0(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:case y.TR:break;default:J0(e,t)}}function CT(e,t){switch(t.tagID){case y.TH:case y.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,le.HTML),e.insertionMode=P.IN_CELL,e.activeFormattingElements.insertMarker();break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,kT(e,t));break}default:Qp(e,t)}}function tH(e,t){switch(t.tagID){case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY);break}case y.TABLE:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,cR(e,t));break}case y.TBODY:case y.TFOOT:case y.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(y.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,cR(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:break;default:J0(e,t)}}function Ohe(e,t){let r=t.tagID;eH.has(r)?(e.openElements.hasInTableScope(y.TD)||e.openElements.hasInTableScope(y.TH))&&(e._closeTableCell(),CT(e,t)):Qa(e,t)}function Dhe(e,t){let r=t.tagID;switch(r){case y.TD:case y.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_ROW);break}case y.TABLE:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),tH(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:break;default:_T(e,t)}}function rH(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.OPTGROUP:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.HR:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.INPUT:case y.KEYGEN:case y.TEXTAREA:case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),t.tagID!==y.SELECT&&e._processStartTag(t));break}case y.SCRIPT:case y.TEMPLATE:{xi(e,t);break}default:}}function aH(e,t){switch(t.tagID){case y.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===y.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===y.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop();break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop();break}case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode());break}case y.TEMPLATE:{kd(e,t);break}default:}}function Mhe(e,t){let r=t.tagID;r===y.CAPTION||r===y.TABLE||r===y.TBODY||r===y.TFOOT||r===y.THEAD||r===y.TR||r===y.TD||r===y.TH?(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e._processStartTag(t)):rH(e,t)}function Phe(e,t){let r=t.tagID;r===y.CAPTION||r===y.TABLE||r===y.TBODY||r===y.TFOOT||r===y.THEAD||r===y.TR||r===y.TD||r===y.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e.onEndTag(t)):aH(e,t)}function Uhe(e,t){switch(t.tagID){case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{xi(e,t);break}case y.CAPTION:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.tmplInsertionModeStack[0]=P.IN_TABLE,e.insertionMode=P.IN_TABLE,Qp(e,t);break}case y.COL:{e.tmplInsertionModeStack[0]=P.IN_COLUMN_GROUP,e.insertionMode=P.IN_COLUMN_GROUP,pR(e,t);break}case y.TR:{e.tmplInsertionModeStack[0]=P.IN_TABLE_BODY,e.insertionMode=P.IN_TABLE_BODY,kT(e,t);break}case y.TD:case y.TH:{e.tmplInsertionModeStack[0]=P.IN_ROW,e.insertionMode=P.IN_ROW,CT(e,t);break}default:e.tmplInsertionModeStack[0]=P.IN_BODY,e.insertionMode=P.IN_BODY,Qa(e,t)}}function zhe(e,t){t.tagID===y.TEMPLATE&&kd(e,t)}function nH(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):fR(e,t)}function Fhe(e,t){t.tagID===y.HTML?Qa(e,t):ST(e,t)}function oH(e,t){var r;if(t.tagID===y.HTML){if(e.fragmentContext||(e.insertionMode=P.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===y.HTML){e._setEndLocation(e.openElements.items[0],t);let a=e.openElements.items[1];a&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(a))===null||r===void 0)&&r.endTag)&&e._setEndLocation(a,t)}}else ST(e,t)}function ST(e,t){e.insertionMode=P.IN_BODY,IT(e,t)}function Bhe(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.FRAMESET:{e._insertElement(t,le.HTML);break}case y.FRAME:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.NOFRAMES:{xi(e,t);break}default:}}function $he(e,t){t.tagID===y.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==y.FRAMESET&&(e.insertionMode=P.AFTER_FRAMESET))}function jhe(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.NOFRAMES:{xi(e,t);break}default:}}function Hhe(e,t){t.tagID===y.HTML&&(e.insertionMode=P.AFTER_AFTER_FRAMESET)}function Vhe(e,t){t.tagID===y.HTML?Qa(e,t):TT(e,t)}function TT(e,t){e.insertionMode=P.IN_BODY,IT(e,t)}function qhe(e,t){switch(t.tagID){case y.HTML:{Qa(e,t);break}case y.NOFRAMES:{xi(e,t);break}default:}}function Ghe(e,t){t.chars=fr,e._insertCharacters(t)}function Zhe(e,t){e._insertCharacters(t),e.framesetOk=!1}function iH(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==le.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Whe(e,t){if(zj(t))iH(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(r);a===le.MATHML?iR(t):a===le.SVG&&(Fj(t),sR(t)),wT(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}function Yhe(e,t){if(t.tagID===y.P||t.tagID===y.BR){iH(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let a=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(a)===le.HTML){e._endTagOutsideForeignContent(t);break}let n=e.treeAdapter.getTagName(a);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(r);break}}}c();c();var Khe=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),yht=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function mR(e,t){return function(a){let n,o=0,i="";for(;n=e.exec(a);)o!==n.index&&(i+=a.substring(o,n.index)),i+=t.get(n[0].charCodeAt(0)),o=n.index+1;return i+a.substring(o)}}var bht=mR(/[&<>'"]/g,Khe),Xhe=mR(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Jhe=mR(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var Sht=new Set([G.AREA,G.BASE,G.BASEFONT,G.BGSOUND,G.BR,G.COL,G.EMBED,G.FRAME,G.HR,G.IMG,G.INPUT,G.KEYGEN,G.LINK,G.META,G.PARAM,G.SOURCE,G.TRACK,G.WBR]);var Qhe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ege=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),sH={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function AT(e,t){let r=cge(e),a=dT("type",{handlers:{root:tge,element:rge,text:age,comment:uH,doctype:nge,raw:ige},unknown:sge}),n={parser:r?new _d(sH):_d.getFragmentParser(void 0,sH),handle(s){a(s,n)},stitches:!1,options:t||{}};a(e,n),em(n,Dn());let o=r?n.parser.document:n.parser.getFragment(),i=jN(o,{file:n.options.file});return n.stitches&&tl(i,"comment",function(s,l,u){let d=s;if(d.value.stitch&&u&&l!==void 0){let f=u.children;return f[l]=d.value.stitch,l}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function lH(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function tge(e,t){lH(e.children,t)}function rge(e,t){lge(e,t),lH(e.children,t),uge(e,t)}function age(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let r={type:Lu.TokenType.CHARACTER,chars:e.value,location:ey(e)};em(t,Dn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function nge(e,t){let r={type:Lu.TokenType.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ey(e)};em(t,Dn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function oge(e,t){t.stitches=!0;let r=dge(e);if("children"in e&&"children"in r){let a=AT({type:"root",children:e.children},t.options);r.children=a.children}uH({type:"comment",value:{stitch:r}},t)}function uH(e,t){let r=e.value,a={type:Lu.TokenType.COMMENT,data:r,location:ey(e)};em(t,Dn(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function ige(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,cH(t,Dn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Qhe,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function sge(e,t){let r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))oge(r,t);else{let a="";throw ege.has(r.type)&&(a=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+a)}}function em(e,t){cH(e,t);let r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=kr.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function cH(e,t){if(t&&t.offset!==void 0){let r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function lge(e,t){let r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kr.PLAINTEXT)return;em(t,Dn(e));let a=t.parser.openElements.current,n="namespaceURI"in a?a.namespaceURI:rs.html;n===rs.html&&r==="svg"&&(n=rs.svg);let o=QN({...e,children:[]},{space:n===rs.svg?"svg":"html"}),i={type:Lu.TokenType.START_TAG,tagName:r,tagID:j0.getTagID(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:ey(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function uge(e,t){let r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&yj.includes(r)||t.parser.tokenizer.state===kr.PLAINTEXT)return;em(t,hd(e));let a={type:Lu.TokenType.END_TAG,tagName:r,tagID:j0.getTagID(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ey(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kr.RCDATA||t.parser.tokenizer.state===kr.RAWTEXT||t.parser.tokenizer.state===kr.SCRIPT_DATA)&&(t.parser.tokenizer.state=kr.DATA)}function cge(e){let t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ey(e){let t=Dn(e)||{line:void 0,column:void 0,offset:void 0},r=hd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function dge(e){return"children"in e?el({...e,children:[]}):el(e)}function LT(e){return function(t,r){return AT(t,{...e,file:r})}}c();c();c();c();c();c();c();function hR(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,n=r.indexOf(t);for(;n!==-1;)a++,n=r.indexOf(t,n+t.length);return a}c();c();c();function ty(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function gR(e,t,r){let n=Cu((r||{}).ignore||[]),o=fge(t),i=-1;for(;++i<o.length;)M0(e,"text",s);function s(u,d){let f=-1,p;for(;++f<d.length;){let m=d[f],g=p?p.children:void 0;if(n(m,g?g.indexOf(m):void 0,p))return;p=m}if(p)return l(u,d)}function l(u,d){let f=d[d.length-1],p=o[i][0],m=o[i][1],g=0,w=f.children.indexOf(u),b=!1,v=[];p.lastIndex=0;let T=p.exec(u.value);for(;T;){let E=T.index,I={index:T.index,input:T.input,stack:[...d,u]},_=m(...T,I);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?p.lastIndex=E+1:(g!==E&&v.push({type:"text",value:u.value.slice(g,E)}),Array.isArray(_)?v.push(..._):_&&v.push(_),g=E+T[0].length,b=!0),!p.global)break;T=p.exec(u.value)}return b?(g<u.value.length&&v.push({type:"text",value:u.value.slice(g)}),f.children.splice(w,1,...v)):v=[u],w+v.length}}function fge(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],a=-1;for(;++a<r.length;){let n=r[a];t.push([pge(n[0]),mge(n[1])])}return t}function pge(e){return typeof e=="string"?new RegExp(ty(e),"g"):e}function mge(e){return typeof e=="function"?e:function(){return e}}var yR="phrasing",bR=["autolink","link","image","label"];function xR(){return{transforms:[xge],enter:{literalAutolink:hge,literalAutolinkEmail:vR,literalAutolinkHttp:vR,literalAutolinkWww:vR},exit:{literalAutolink:vge,literalAutolinkEmail:bge,literalAutolinkHttp:gge,literalAutolinkWww:yge}}}function wR(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:yR,notInConstruct:bR},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:yR,notInConstruct:bR},{character:":",before:"[ps]",after:"\\/",inConstruct:yR,notInConstruct:bR}]}}function hge(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function vR(e){this.config.enter.autolinkProtocol.call(this,e)}function gge(e){this.config.exit.autolinkProtocol.call(this,e)}function yge(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 bge(e){this.config.exit.autolinkEmail.call(this,e)}function vge(e){this.exit(e)}function xge(e){gR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wge],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Tge]],{ignore:["link","linkReference"]})}function wge(e,t,r,a,n){let o="";if(!dH(n)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!Ege(r)))return!1;let i=Sge(r+a);if(!i[0])return!1;let s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function Tge(e,t,r,a){return!dH(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Ege(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 Sge(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")"),n=hR(e,"("),o=hR(e,")");for(;a!==-1&&n>o;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),o++;return[e,r]}function dH(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||es(r)||bd(r))&&(!t||r!==47)}c();c();fH.peek=Oge;function Ige(){this.buffer()}function _ge(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function kge(){this.buffer()}function Cge(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Age(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ya(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Lge(e){this.exit(e)}function Nge(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ya(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Rge(e){this.exit(e)}function Oge(){return"["}function fH(e,t,r,a){let n=r.createTracker(a),o=n.move("[^"),i=r.enter("footnoteReference"),s=r.enter("reference");return o+=n.move(r.safe(r.associationId(e),{after:"]",before:o})),s(),i(),o+=n.move("]"),o}function TR(){return{enter:{gfmFootnoteCallString:Ige,gfmFootnoteCall:_ge,gfmFootnoteDefinitionLabelString:kge,gfmFootnoteDefinition:Cge},exit:{gfmFootnoteCallString:Age,gfmFootnoteCall:Lge,gfmFootnoteDefinitionLabelString:Nge,gfmFootnoteDefinition:Rge}}}function ER(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:fH},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,n,o,i){let s=o.createTracker(i),l=s.move("[^"),u=o.enter("footnoteDefinition"),d=o.enter("label");return l+=s.move(o.safe(o.associationId(a),{before:l,after:"]"})),d(),l+=s.move("]:"),a.children&&a.children.length>0&&(s.shift(4),l+=s.move((t?`
|
|
73
|
+
`:" ")+o.indentLines(o.containerFlow(a,s.current()),t?pH:Dge))),u(),l}}function Dge(e,t,r){return t===0?e:pH(e,t,r)}function pH(e,t,r){return(r?"":" ")+e}c();c();var Mge=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mH.peek=zge;function SR(){return{canContainEols:["delete"],enter:{strikethrough:Pge},exit:{strikethrough:Uge}}}function IR(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Mge}],handlers:{delete:mH}}}function Pge(e){this.enter({type:"delete",children:[]},e)}function Uge(e){this.exit(e)}function mH(e,t,r,a){let n=r.createTracker(a),o=r.enter("strikethrough"),i=n.move("~~");return i+=r.containerPhrasing(e,{...n.current(),before:i,after:"~"}),i+=n.move("~~"),o(),i}function zge(){return"~"}c();c();c();function Fge(e){return e.length}function gH(e,t){let r=t||{},a=(r.align||[]).concat(),n=r.stringLength||Fge,o=[],i=[],s=[],l=[],u=0,d=-1;for(;++d<e.length;){let x=[],w=[],b=-1;for(e[d].length>u&&(u=e[d].length);++b<e[d].length;){let v=Bge(e[d][b]);if(r.alignDelimiters!==!1){let T=n(v);w[b]=T,(l[b]===void 0||T>l[b])&&(l[b]=T)}x.push(v)}i[d]=x,s[d]=w}let f=-1;if(typeof a=="object"&&"length"in a)for(;++f<u;)o[f]=hH(a[f]);else{let x=hH(a);for(;++f<u;)o[f]=x}f=-1;let p=[],m=[];for(;++f<u;){let x=o[f],w="",b="";x===99?(w=":",b=":"):x===108?w=":":x===114&&(b=":");let v=r.alignDelimiters===!1?1:Math.max(1,l[f]-w.length-b.length),T=w+"-".repeat(v)+b;r.alignDelimiters!==!1&&(v=w.length+v+b.length,v>l[f]&&(l[f]=v),m[f]=v),p[f]=T}i.splice(1,0,p),s.splice(1,0,m),d=-1;let g=[];for(;++d<i.length;){let x=i[d],w=s[d];f=-1;let b=[];for(;++f<u;){let v=x[f]||"",T="",E="";if(r.alignDelimiters!==!1){let I=l[f]-(w[f]||0),_=o[f];_===114?T=" ".repeat(I):_===99?I%2?(T=" ".repeat(I/2+.5),E=" ".repeat(I/2-.5)):(T=" ".repeat(I/2),E=T):E=" ".repeat(I)}r.delimiterStart!==!1&&!f&&b.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&v==="")&&(r.delimiterStart!==!1||f)&&b.push(" "),r.alignDelimiters!==!1&&b.push(T),b.push(v),r.alignDelimiters!==!1&&b.push(E),r.padding!==!1&&b.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&b.push("|")}g.push(r.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return g.join(`
|
|
74
|
+
`)}function Bge(e){return e==null?"":String(e)}function hH(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}c();c();c();function yH(e,t,r,a){let n=r.enter("blockquote"),o=r.createTracker(a);o.move("> "),o.shift(2);let i=r.indentLines(r.containerFlow(e,o.current()),$ge);return n(),i}function $ge(e,t,r){return">"+(r?"":" ")+e}c();c();function vH(e,t){return bH(e,t.inConstruct,!0)&&!bH(e,t.notInConstruct,!1)}function bH(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function _R(e,t,r,a){let n=-1;for(;++n<r.unsafe.length;)if(r.unsafe[n].character===`
|
|
75
|
+
`&&vH(r.stack,r.unsafe[n]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
76
|
+
`}c();c();function xH(e,t){let r=String(e),a=r.indexOf(t),n=a,o=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===n?++o>i&&(i=o):o=1,n=a+t.length,a=r.indexOf(t,n);return i}c();function wH(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))}c();function TH(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 EH(e,t,r,a){let n=TH(r),o=e.value||"",i=n==="`"?"GraveAccent":"Tilde";if(wH(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(o,jge);return f(),p}let s=r.createTracker(a),l=n.repeat(Math.max(xH(o,n)+1,3)),u=r.enter("codeFenced"),d=s.move(l);if(e.lang){let f=r.enter(`codeFencedLang${i}`);d+=s.move(r.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),f()}if(e.lang&&e.meta){let f=r.enter(`codeFencedMeta${i}`);d+=s.move(" "),d+=s.move(r.safe(e.meta,{before:d,after:`
|
|
77
|
+
`,encode:["`"],...s.current()})),f()}return d+=s.move(`
|
|
78
|
+
`),o&&(d+=s.move(o+`
|
|
79
|
+
`)),d+=s.move(l),u(),d}function jge(e,t,r){return(r?"":" ")+e}c();c();function tm(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 SH(e,t,r,a){let n=tm(r),o=n==='"'?"Quote":"Apostrophe",i=r.enter("definition"),s=r.enter("label"),l=r.createTracker(a),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
80
|
+
`,...l.current()}))),s(),e.title&&(s=r.enter(`title${o}`),u+=l.move(" "+n),u+=l.move(r.safe(e.title,{before:u,after:n,...l.current()})),u+=l.move(n),s()),i(),u}c();c();function IH(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}c();function Du(e){return"&#x"+e.toString(16).toUpperCase()+";"}c();function rm(e,t,r){let a=Qs(e),n=Qs(t);return a===void 0?n===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kR.peek=Hge;function kR(e,t,r,a){let n=IH(r),o=r.enter("emphasis"),i=r.createTracker(a),s=i.move(n),l=i.move(r.containerPhrasing(e,{after:n,before:s,...i.current()})),u=l.charCodeAt(0),d=rm(a.before.charCodeAt(a.before.length-1),u,n);d.inside&&(l=Du(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=rm(a.after.charCodeAt(0),f,n);p.inside&&(l=l.slice(0,-1)+Du(f));let m=i.move(n);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},s+l+m}function Hge(e,t,r){return r.options.emphasis||"*"}c();c();function _H(e,t){let r=!1;return tl(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,Td}),!!((!e.depth||e.depth<3)&&gd(e)&&(t.options.setext||r))}function kH(e,t,r,a){let n=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(a);if(_H(e,r)){let d=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...o.current(),before:`
|
|
81
|
+
`,after:`
|
|
82
|
+
`});return f(),d(),p+`
|
|
83
|
+
`+(n===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
84
|
+
`))+1))}let i="#".repeat(n),s=r.enter("headingAtx"),l=r.enter("phrasing");o.move(i+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
85
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=Du(u.charCodeAt(0))+u.slice(1)),u=u?i+" "+u:i,r.options.closeAtx&&(u+=" "+i),l(),s(),u}c();CR.peek=Vge;function CR(e){return e.value||""}function Vge(){return"<"}c();AR.peek=qge;function AR(e,t,r,a){let n=tm(r),o=n==='"'?"Quote":"Apostrophe",i=r.enter("image"),s=r.enter("label"),l=r.createTracker(a),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${o}`),u+=l.move(" "+n),u+=l.move(r.safe(e.title,{before:u,after:n,...l.current()})),u+=l.move(n),s()),u+=l.move(")"),i(),u}function qge(){return"!"}c();LR.peek=Gge;function LR(e,t,r,a){let n=e.referenceType,o=r.enter("imageReference"),i=r.enter("label"),s=r.createTracker(a),l=s.move("!["),u=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),i();let d=r.stack;r.stack=[],i=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return i(),r.stack=d,o(),n==="full"||!u||u!==f?l+=s.move(f+"]"):n==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Gge(){return"!"}c();NR.peek=Zge;function NR(e,t,r){let a=e.value||"",n="`",o=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o<r.unsafe.length;){let i=r.unsafe[o],s=r.compilePattern(i),l;if(i.atBreak)for(;l=s.exec(a);){let u=l.index;a.charCodeAt(u)===10&&a.charCodeAt(u-1)===13&&u--,a=a.slice(0,u)+" "+a.slice(l.index+1)}}return n+a+n}function Zge(){return"`"}c();c();function RR(e,t){let r=gd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}OR.peek=Wge;function OR(e,t,r,a){let n=tm(r),o=n==='"'?"Quote":"Apostrophe",i=r.createTracker(a),s,l;if(RR(e,r)){let d=r.stack;r.stack=[],s=r.enter("autolink");let f=i.move("<");return f+=i.move(r.containerPhrasing(e,{before:f,after:">",...i.current()})),f+=i.move(">"),s(),r.stack=d,f}s=r.enter("link"),l=r.enter("label");let u=i.move("[");return u+=i.move(r.containerPhrasing(e,{before:u,after:"](",...i.current()})),u+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=i.move("<"),u+=i.move(r.safe(e.url,{before:u,after:">",...i.current()})),u+=i.move(">")):(l=r.enter("destinationRaw"),u+=i.move(r.safe(e.url,{before:u,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=r.enter(`title${o}`),u+=i.move(" "+n),u+=i.move(r.safe(e.title,{before:u,after:n,...i.current()})),u+=i.move(n),l()),u+=i.move(")"),s(),u}function Wge(e,t,r){return RR(e,r)?"<":"["}c();DR.peek=Yge;function DR(e,t,r,a){let n=e.referenceType,o=r.enter("linkReference"),i=r.enter("label"),s=r.createTracker(a),l=s.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),i();let d=r.stack;r.stack=[],i=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return i(),r.stack=d,o(),n==="full"||!u||u!==f?l+=s.move(f+"]"):n==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Yge(){return"["}c();c();function am(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}c();function CH(e){let t=am(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}c();function AH(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}c();function NT(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 LH(e,t,r,a){let n=r.enter("list"),o=r.bulletCurrent,i=e.ordered?AH(r):am(r),s=e.ordered?i==="."?")":".":CH(r),l=t&&r.bulletLastUsed?i===r.bulletLastUsed:!1;if(!e.ordered){let d=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),NT(r)===i&&d){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(i=s),r.bulletCurrent=i;let u=r.containerFlow(e,a);return r.bulletLastUsed=i,r.bulletCurrent=o,n(),u}c();c();function NH(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 RH(e,t,r,a){let n=NH(r),o=r.bulletCurrent||am(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let i=o.length+1;(n==="tab"||n==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let s=r.createTracker(a);s.move(o+" ".repeat(i-o.length)),s.shift(i);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),d);return l(),u;function d(f,p,m){return p?(m?"":" ".repeat(i))+f:(m?o:o+" ".repeat(i-o.length))+f}}c();function OH(e,t,r,a){let n=r.enter("paragraph"),o=r.enter("phrasing"),i=r.containerPhrasing(e,a);return o(),n(),i}c();c();c();var MR=Cu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function DH(e,t,r,a){return(e.children.some(function(i){return MR(i)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}c();c();function MH(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}PR.peek=Kge;function PR(e,t,r,a){let n=MH(r),o=r.enter("strong"),i=r.createTracker(a),s=i.move(n+n),l=i.move(r.containerPhrasing(e,{after:n,before:s,...i.current()})),u=l.charCodeAt(0),d=rm(a.before.charCodeAt(a.before.length-1),u,n);d.inside&&(l=Du(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=rm(a.after.charCodeAt(0),f,n);p.inside&&(l=l.slice(0,-1)+Du(f));let m=i.move(n+n);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},s+l+m}function Kge(e,t,r){return r.options.strong||"*"}c();function PH(e,t,r,a){return r.safe(e.value,a)}c();c();function UH(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 zH(e,t,r){let a=(NT(r)+(r.options.ruleSpaces?" ":"")).repeat(UH(r));return r.options.ruleSpaces?a.slice(0,-1):a}var ry={blockquote:yH,break:_R,code:EH,definition:SH,emphasis:kR,hardBreak:_R,heading:kH,html:CR,image:AR,imageReference:LR,inlineCode:NR,link:OR,linkReference:DR,list:LH,listItem:RH,paragraph:OH,root:DH,strong:PR,text:PH,thematicBreak:zH};function zR(){return{enter:{table:Xge,tableData:FH,tableHeader:FH,tableRow:Qge},exit:{codeText:e0e,table:Jge,tableData:UR,tableHeader:UR,tableRow:UR}}}function Xge(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function Jge(e){this.exit(e),this.data.inTable=void 0}function Qge(e){this.enter({type:"tableRow",children:[]},e)}function UR(e){this.exit(e)}function FH(e){this.enter({type:"tableCell",children:[]},e)}function e0e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,t0e));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function t0e(e,t){return t==="|"?t:e}function FR(e){let t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
86
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:i,tableCell:l,tableRow:s}};function i(m,g,x,w){return u(d(m,x,w),m.align)}function s(m,g,x,w){let b=f(m,x,w),v=u([b]);return v.slice(0,v.indexOf(`
|
|
87
|
+
`))}function l(m,g,x,w){let b=x.enter("tableCell"),v=x.enter("phrasing"),T=x.containerPhrasing(m,{...w,before:o,after:o});return v(),b(),T}function u(m,g){return gH(m,{align:g,alignDelimiters:a,padding:r,stringLength:n})}function d(m,g,x){let w=m.children,b=-1,v=[],T=g.enter("table");for(;++b<w.length;)v[b]=f(w[b],g,x);return T(),v}function f(m,g,x){let w=m.children,b=-1,v=[],T=g.enter("tableRow");for(;++b<w.length;)v[b]=l(w[b],m,g,x);return T(),v}function p(m,g,x){let w=ry.inlineCode(m,g,x);return x.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}c();c();function BR(){return{exit:{taskListCheckValueChecked:BH,taskListCheckValueUnchecked:BH,paragraph:r0e}}}function $R(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:a0e}}}function BH(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function r0e(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let a=r.children[0];if(a&&a.type==="text"){let n=t.children,o=-1,i;for(;++o<n.length;){let s=n[o];if(s.type==="paragraph"){i=s;break}}i===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function a0e(e,t,r,a){let n=e.children[0],o=typeof e.checked=="boolean"&&n&&n.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",s=r.createTracker(a);o&&s.move(i);let l=ry.listItem(e,t,r,{...a,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+i}}function jR(){return[xR(),TR(),SR(),zR(),BR()]}function HR(e){return{extensions:[wR(),ER(e),IR(),FR(e),$R()]}}c();c();c();var n0e={tokenize:u0e,partial:!0},$H={tokenize:c0e,partial:!0},jH={tokenize:d0e,partial:!0},HH={tokenize:f0e,partial:!0},o0e={tokenize:p0e,partial:!0},VH={name:"wwwAutolink",tokenize:s0e,previous:GH},qH={name:"protocolAutolink",tokenize:l0e,previous:ZH},al={name:"emailAutolink",tokenize:i0e,previous:WH},os={};function qR(){return{text:os}}var Cd=48;for(;Cd<123;)os[Cd]=al,Cd++,Cd===58?Cd=65:Cd===91&&(Cd=97);os[43]=al;os[45]=al;os[46]=al;os[95]=al;os[72]=[al,qH];os[104]=[al,qH];os[87]=[al,VH];os[119]=[al,VH];function i0e(e,t,r){let a=this,n,o;return i;function i(f){return!VR(f)||!WH.call(a,a.previous)||GR(a.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return VR(f)?(e.consume(f),s):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(o0e,d,u)(f):f===45||f===95||jr(f)?(o=!0,e.consume(f),l):d(f)}function u(f){return e.consume(f),n=!0,l}function d(f){return o&&n&&ba(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function s0e(e,t,r){let a=this;return n;function n(i){return i!==87&&i!==119||!GH.call(a,a.previous)||GR(a.events)?r(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(n0e,e.attempt($H,e.attempt(jH,o),r),r)(i))}function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function l0e(e,t,r){let a=this,n="",o=!1;return i;function i(f){return(f===72||f===104)&&ZH.call(a,a.previous)&&!GR(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),n+=String.fromCodePoint(f),e.consume(f),s):r(f)}function s(f){if(ba(f)&&n.length<5)return n+=String.fromCodePoint(f),e.consume(f),s;if(f===58){let p=n.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),o?u:(o=!0,l)):r(f)}function u(f){return f===null||yd(f)||St(f)||es(f)||bd(f)?r(f):e.attempt($H,e.attempt(jH,d),r)(f)}function d(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function u0e(e,t,r){let a=0;return n;function n(i){return(i===87||i===119)&&a<3?(a++,e.consume(i),n):i===46&&a===3?(e.consume(i),o):r(i)}function o(i){return i===null?r(i):t(i)}}function c0e(e,t,r){let a,n,o;return i;function i(u){return u===46||u===95?e.check(HH,l,s)(u):u===null||St(u)||es(u)||u!==45&&bd(u)?l(u):(o=!0,e.consume(u),i)}function s(u){return u===95?a=!0:(n=a,a=void 0),e.consume(u),i}function l(u){return n||a||!o?r(u):t(u)}}function d0e(e,t){let r=0,a=0;return n;function n(i){return i===40?(r++,e.consume(i),n):i===41&&a<r?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(HH,t,o)(i):i===null||St(i)||es(i)?t(i):(e.consume(i),n)}function o(i){return i===41&&a++,e.consume(i),n}}function f0e(e,t,r){return a;function a(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),a):s===38?(e.consume(s),o):s===93?(e.consume(s),n):s===60||s===null||St(s)||es(s)?t(s):r(s)}function n(s){return s===null||s===40||s===91||St(s)||es(s)?t(s):a(s)}function o(s){return ba(s)?i(s):r(s)}function i(s){return s===59?(e.consume(s),a):ba(s)?(e.consume(s),i):r(s)}}function p0e(e,t,r){return a;function a(o){return e.consume(o),n}function n(o){return jr(o)?r(o):t(o)}}function GH(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||St(e)}function ZH(e){return!ba(e)}function WH(e){return!(e===47||VR(e))}function VR(e){return e===43||e===45||e===46||e===95||jr(e)}function GR(e){let t=e.length,r=!1;for(;t--;){let a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}c();c();var m0e={tokenize:w0e,partial:!0};function ZR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:b0e,continuation:{tokenize:v0e},exit:x0e}},text:{91:{name:"gfmFootnoteCall",tokenize:y0e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:h0e,resolveTo:g0e}}}}function h0e(e,t,r){let a=this,n=a.events.length,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),i;for(;n--;){let l=a.events[n][1];if(l.type==="labelImage"){i=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!i||!i._balanced)return r(l);let u=Ya(a.sliceSerialize({start:i.end,end:a.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function g0e(e,t){let r=e.length,a;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){a=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+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)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...l),e}function y0e(e,t,r){let a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),o=0,i;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(o>999||f===93&&!i||f===null||f===91||St(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return n.includes(Ya(a.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return St(f)||(i=!0),o++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function b0e(e,t,r){let a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),o,i=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):r(g)}function d(g){if(i>999||g===93&&!s||g===null||g===91||St(g))return r(g);if(g===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=Ya(a.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return St(g)||(s=!0),i++,e.consume(g),g===92?f:d}function f(g){return g===91||g===92||g===93?(e.consume(g),i++,d):d(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),n.includes(o)||n.push(o),je(e,m,"gfmFootnoteDefinitionWhitespace")):r(g)}function m(g){return t(g)}}function v0e(e,t,r){return e.check(ts,t,e.attempt(m0e,t,r))}function x0e(e){e.exit("gfmFootnoteDefinition")}function w0e(e,t,r){let a=this;return je(e,n,"gfmFootnoteDefinitionIndent",5);function n(o){let i=a.events[a.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(o):r(o)}}c();c();function WR(e){let r=(e||{}).singleTilde,a={name:"strikethrough",tokenize:o,resolveAll:n};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function n(i,s){let l=-1;for(;++l<i.length;)if(i[l][0]==="enter"&&i[l][1].type==="strikethroughSequenceTemporary"&&i[l][1]._close){let u=l;for(;u--;)if(i[u][0]==="exit"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._open&&i[l][1].end.offset-i[l][1].start.offset===i[u][1].end.offset-i[u][1].start.offset){i[l][1].type="strikethroughSequence",i[u][1].type="strikethroughSequence";let d={type:"strikethrough",start:Object.assign({},i[u][1].start),end:Object.assign({},i[l][1].end)},f={type:"strikethroughText",start:Object.assign({},i[u][1].end),end:Object.assign({},i[l][1].start)},p=[["enter",d,s],["enter",i[u][1],s],["exit",i[u][1],s],["enter",f,s]],m=s.parser.constructs.insideSpan.null;m&&Xr(p,p.length,0,_u(m,i.slice(u+1,l),s)),Xr(p,p.length,0,[["exit",f,s],["enter",i[l][1],s],["exit",i[l][1],s],["exit",d,s]]),Xr(i,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<i.length;)i[l][1].type==="strikethroughSequenceTemporary"&&(i[l][1].type="data");return i}function o(i,s,l){let u=this.previous,d=this.events,f=0;return p;function p(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(i.enter("strikethroughSequenceTemporary"),m(g))}function m(g){let x=Qs(u);if(g===126)return f>1?l(g):(i.consume(g),f++,m);if(f<2&&!r)return l(g);let w=i.exit("strikethroughSequenceTemporary"),b=Qs(g);return w._open=!b||b===2&&!!x,w._close=!x||x===2&&!!b,s(g)}}}c();c();c();var RT=class{constructor(){this.map=[]}add(t,r,a){T0e(this,t,r,a)}consume(t){if(this.map.sort(function(o,i){return o[0]-i[0]}),this.map.length===0)return;let r=this.map.length,a=[];for(;r>0;)r-=1,a.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];a.push(t.slice()),t.length=0;let n=a.pop();for(;n;){for(let o of n)t.push(o);n=a.pop()}this.map.length=0}};function T0e(e,t,r,a){let n=0;if(!(r===0&&a.length===0)){for(;n<e.map.length;){if(e.map[n][0]===t){e.map[n][1]+=r,e.map[n][2].push(...a);return}n+=1}e.map.push([t,r,a])}}c();function YH(e,t){let r=!1,a=[];for(;t<e.length;){let n=e[t];if(r){if(n[0]==="enter")n[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(n[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=a.length-1;a[o]=a[o]==="left"?"center":"right"}}else if(n[1].type==="tableDelimiterRow")break}else n[0]==="enter"&&n[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return a}function YR(){return{flow:{null:{name:"table",tokenize:E0e,resolveAll:S0e}}}}function E0e(e,t,r){let a=this,n=0,o=0,i;return s;function s(R){let ne=a.events.length-1;for(;ne>-1;){let $=a.events[ne][1].type;if($==="lineEnding"||$==="linePrefix")ne--;else break}let z=ne>-1?a.events[ne][1].type:null,D=z==="tableHead"||z==="tableRow"?_:l;return D===_&&a.parser.lazy[a.now().line]?r(R):D(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(i=!0,o+=1),d(R)}function d(R){return R===null?r(R):Ne(R)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),m):r(R):qe(R)?je(e,d,"whitespace")(R):(o+=1,i&&(i=!1,n+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),i=!0,d):(e.enter("data"),f(R)))}function f(R){return R===null||R===124||St(R)?(e.exit("data"),d(R)):(e.consume(R),R===92?p:f)}function p(R){return R===92||R===124?(e.consume(R),f):f(R)}function m(R){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(R):(e.enter("tableDelimiterRow"),i=!1,qe(R)?je(e,g,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):g(R))}function g(R){return R===45||R===58?w(R):R===124?(i=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),x):I(R)}function x(R){return qe(R)?je(e,w,"whitespace")(R):w(R)}function w(R){return R===58?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),b):R===45?(o+=1,b(R)):R===null||Ne(R)?E(R):I(R)}function b(R){return R===45?(e.enter("tableDelimiterFiller"),v(R)):I(R)}function v(R){return R===45?(e.consume(R),v):R===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(R))}function T(R){return qe(R)?je(e,E,"whitespace")(R):E(R)}function E(R){return R===124?g(R):R===null||Ne(R)?!i||n!==o?I(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):I(R)}function I(R){return r(R)}function _(R){return e.enter("tableRow"),A(R)}function A(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),A):R===null||Ne(R)?(e.exit("tableRow"),t(R)):qe(R)?je(e,A,"whitespace")(R):(e.enter("data"),N(R))}function N(R){return R===null||R===124||St(R)?(e.exit("data"),A(R)):(e.consume(R),R===92?F:N)}function F(R){return R===92||R===124?(e.consume(R),N):N(R)}}function S0e(e,t){let r=-1,a=!0,n=0,o=[0,0,0,0],i=[0,0,0,0],s=!1,l=0,u,d,f,p=new RT;for(;++r<e.length;){let m=e[r],g=m[1];m[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(KH(p,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(r,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(a=!0,f=void 0,o=[0,0,0,0],i=[0,r+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(r,0,[["enter",d,t]])),n=g.type==="tableDelimiterRow"?2:d?3:1):n&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(a=!1,i[2]===0&&(o[1]!==0&&(i[0]=i[1],f=OT(p,t,o,n,void 0,f),o=[0,0,0,0]),i[2]=r)):g.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(i[0]=i[1],f=OT(p,t,o,n,void 0,f)),o=i,i=[o[1],r,0,0])):g.type==="tableHead"?(s=!0,l=r):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=r,o[1]!==0?(i[0]=i[1],f=OT(p,t,o,n,r,f)):i[1]!==0&&(f=OT(p,t,i,n,r,f)),n=0):n&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(i[3]=r)}for(l!==0&&KH(p,t,l,u,d),p.consume(t.events),r=-1;++r<t.events.length;){let m=t.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=YH(t.events,r))}return e}function OT(e,t,r,a,n,o){let i=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(o.end=Object.assign({},nm(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=nm(t.events,r[1]);if(o={type:i,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){let u=nm(t.events,r[2]),d=nm(t.events,r[3]),f={type:s,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(r[2],0,[["enter",f,t]]),a!==2){let p=t.events[r[2]],m=t.events[r[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let g=r[2]+1,x=r[3]-r[2]-1;e.add(g,x,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return n!==void 0&&(o.end=Object.assign({},nm(t.events,n)),e.add(n,0,[["exit",o,t]]),o=void 0),o}function KH(e,t,r,a,n){let o=[],i=nm(t.events,r);n&&(n.end=Object.assign({},i),o.push(["exit",n,t])),a.end=Object.assign({},i),o.push(["exit",a,t]),e.add(r+1,0,o)}function nm(e,t){let r=e[t],a=r[0]==="enter"?"start":"end";return r[1][a]}c();c();var I0e={name:"tasklistCheck",tokenize:_0e};function KR(){return{text:{91:I0e}}}function _0e(e,t,r){let a=this;return n;function n(l){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return St(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),i):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),i):r(l)}function i(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(l)}function s(l){return Ne(l)?t(l):qe(l)?e.check({tokenize:k0e},t,r)(l):r(l)}}function k0e(e,t,r){return je(e,a,"whitespace");function a(n){return n===null?r(n):t(n)}}function XH(e){return Uw([qR(),ZR(),WR(e),YR(),KR()])}var C0e={};function DT(e){let t=this,r=e||C0e,a=t.data(),n=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),i=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);n.push(XH(r)),o.push(jR()),i.push(HR(r))}var $t=O(ae()),A0e=({code:e})=>{let[t,r]=(0,nl.useState)(!1),a=async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)}catch(n){console.error("Failed to copy code:",n)}};return(0,$t.jsx)(se.button,{onClick:a,className:"p-1.5 rounded-lg transition-colors hover:bg-gray-200 dark:hover:bg-white/10",whileTap:{scale:.95},children:(0,$t.jsx)(Vt,{mode:"wait",children:t?(0,$t.jsx)(se.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},transition:{duration:.15},children:(0,$t.jsx)(Kn,{className:"w-4 h-4 text-green-500 dark:text-green-400"})},"check"):(0,$t.jsx)(se.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},transition:{duration:.15},children:(0,$t.jsx)(_c,{className:"w-4 h-4 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white"})},"copy")})})};function L0e({children:e,className:t,components:r,chunkSize:a=3e3,enableChunking:n=!0,variant:o="default",animated:i,onAnimateComplete:s}){let[l,u]=(0,nl.useState)(1),d=(0,nl.useMemo)(()=>{if(!n)return[e||""];let w=e||"",b=[],v=0;for(;v<w.length;)b.push(w.slice(v,v+a)),v+=a;return b},[e,a,n]),f=d.slice(0,l).join(""),p=l<d.length,m=()=>{p&&u(w=>w+1)},g=(0,nl.useMemo)(()=>({code({className:w,children:b,...v}){let T=/language-(\w+)/.exec(w||""),E=T?T[1]:"",I=String(b).replace(/\n$/,"");return w?(0,$t.jsxs)("div",{className:"my-4 rounded-xl overflow-hidden border bg-gray-50 border-[#FF8800]/20 dark:bg-[#1e1e1e] dark:border-white/10",children:[(0,$t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-gray-200 border-[#FF8800]/10 dark:bg-black/20 dark:border-white/5",children:[(0,$t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-600 dark:text-gray-400",children:E||"code"}),(0,$t.jsx)(A0e,{code:I})]}),(0,$t.jsx)("div",{className:"overflow-x-auto",children:(0,$t.jsx)("pre",{className:"p-4 m-0",children:(0,$t.jsx)("code",{className:"text-sm font-mono block text-gray-900 dark:text-gray-100",children:I})})})]}):(0,$t.jsx)("code",{className:"py-0.5 px-1.5 rounded font-mono text-xs bg-gray-100 text-gray-700 dark:bg-purple-500/20 dark:text-purple-200",...v,children:b})},pre:({children:w})=>(0,$t.jsx)("div",{className:"w-full",children:w}),img:({src:w,alt:b})=>(0,$t.jsx)(se.img,{src:w,alt:b||"",className:"rounded-lg max-w-full h-auto my-4",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},loading:"lazy"}),a:({href:w,children:b})=>(0,$t.jsx)("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"transition-colors text-[#FF8800] hover:text-[#E67A00] dark:text-[#FFB347] dark:hover:text-[#FFC870]",children:b}),table:({children:w})=>(0,$t.jsx)("div",{className:"my-4 overflow-x-auto rounded-lg border border-[#FF8800]/20 dark:border-white/10",children:(0,$t.jsx)("table",{className:"min-w-full divide-y divide-[#FF8800]/20 dark:divide-white/10",children:w})}),th:({children:w})=>(0,$t.jsx)("th",{className:"px-4 py-2 text-left text-xs font-semibold uppercase tracking-wider bg-gray-100 text-black dark:bg-white/5 dark:text-white",children:w}),td:({children:w})=>(0,$t.jsx)("td",{className:"px-4 py-2 text-sm border-t text-gray-700 border-[#FF8800]/10 dark:text-white/90 dark:border-white/5",children:w}),blockquote:({children:w})=>(0,$t.jsx)("blockquote",{className:"border-l-4 pl-4 py-2 my-4 italic border-[#FF8800] bg-gray-100 text-gray-700 dark:border-[#FFB347] dark:bg-white/5 dark:text-white/90",children:w}),hr:()=>(0,$t.jsx)("hr",{className:"my-6 border-t border-[#FF8800]/20 dark:border-white/10"})}),[]),x=(0,nl.useMemo)(()=>({...g,...r}),[g,r]);return e?(0,$t.jsxs)("div",{className:"w-full px-2",children:[(0,$t.jsx)(MN,{className:mU("prose prose-sm","text-sm break-words prose-p:leading-relaxed prose-pre:p-0","prose-code:before:hidden prose-code:after:hidden","prose-hr:my-2","max-w-full","text-black dark:text-white","prose-p:text-black dark:prose-p:text-white","prose-li:text-black dark:prose-li:text-white","prose-strong:text-black dark:prose-strong:text-white","prose-em:text-black dark:prose-em:text-white","prose-strong:font-bold","prose-headings:text-black dark:prose-headings:text-white","prose-a:no-underline hover:prose-a:underline","prose-p:my-1 prose-p:leading-normal","prose-ul:mt-0 prose-ul:mb-2 prose-ul:list-disc prose-ul:pl-5","prose-ol:mt-0 prose-ol:mb-2 prose-ol:list-decimal prose-ol:pl-5","prose-li:my-0 prose-li:py-1","prose-headings:mt-4 prose-headings:pt-1 prose-headings:mb-1 prose-headings:leading-tight","prose-h1:text-xl prose-h2:text-lg prose-h3:text-base","prose-blockquote:py-1 prose-blockquote:px-4 prose-blockquote:my-1","prose-table:my-2",o==="compact"&&"prose-p:my-0.5 prose-headings:mt-2 prose-headings:mb-1 prose-ul:my-0.5 prose-ol:my-0.5",t),components:x,remarkPlugins:[DT],rehypePlugins:[LT],children:f}),(0,$t.jsx)(Vt,{children:n&&p&&(0,$t.jsx)(se.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex justify-center mt-4",children:(0,$t.jsxs)(se.button,{onClick:m,className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium text-sm border transition-all text-white bg-[#FF8800] border-[#E67A00] dark:bg-[#FFB347] dark:border-[#FFB347]/30",whileHover:{opacity:.9},whileTap:{scale:.98},children:[(0,$t.jsx)("span",{children:"Mostrar m\xE1s"}),(0,$t.jsx)(gr,{className:"w-4 h-4"})]})})})]}):null}var JH=(0,nl.memo)(L0e);JH.displayName="Markdown";var MT=JH;var is=O(ae());function N0e(){let[e,t]=(0,Jr.useState)([]),[r,a]=(0,Jr.useState)(""),n=(0,Jr.useRef)(null),o=(0,Jr.useRef)(0),i=(0,Jr.useRef)(0),s=(0,Jr.useRef)(!1),l=(0,Jr.useCallback)(d=>{d&&t(f=>[...f,d])},[]),u=(0,Jr.useCallback)(()=>{t([]),a(""),i.current=0,n.current&&cancelAnimationFrame(n.current),n.current=null,o.current=0,s.current=!1},[]);return(0,Jr.useEffect)(()=>{if(s.current)return;let d=25,f=e.join("");if(i.current>=f.length){a(f);return}s.current=!0;let p=m=>{i.current<f.length?(m-o.current>d&&(i.current++,a(f.slice(0,i.current)),o.current=m),n.current=requestAnimationFrame(p)):s.current=!1};return n.current=requestAnimationFrame(p),()=>{n.current&&cancelAnimationFrame(n.current),s.current=!1}},[e]),{stream:r,addPart:l,reset:u}}var XR=(0,Jr.memo)(({text:e,animate:t=!1})=>{let r=(0,Jr.useRef)(""),{stream:a,addPart:n,reset:o}=N0e();return(0,Jr.useEffect)(()=>{if(!e||!t){!t&&a&&o();return}if(r.current!==e){let s=e.slice(r.current.length);s&&n(s),r.current=e}},[e,t,n,o,a]),(0,is.jsx)(MT,{enableChunking:!1,children:t?a||e||"":e})});XR.displayName="StreamingMessage";var QH=(0,Jr.memo)(({phase:e,text:t,kind:r})=>(0,is.jsxs)(se.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},className:u7(e),children:[(0,is.jsx)("div",{className:"relative w-4 h-4",children:e==="loading"?(0,is.jsx)(Qh,{className:Nw("loading")}):e==="error"?(0,is.jsx)(Xl,{className:Nw("error")}):(0,is.jsx)(Kn,{className:Nw("complete")})}),(0,is.jsx)("span",{className:c7(e),children:t})]}));QH.displayName="ToolEvent";var R0e=(0,Jr.memo)(({kind:e,loadingText:t,completeText:r,errorText:a,finalPhase:n="complete"})=>{let[o,i]=(0,Jr.useState)("loading");return(0,Jr.useEffect)(()=>{i("loading");let l=setTimeout(()=>{i(n==="error"?"error":"complete")},1500);return()=>clearTimeout(l)},[]),(0,is.jsx)(QH,{phase:o,text:o==="loading"?t:o==="error"&&a||r,kind:e})});R0e.displayName="ProgressiveToolEvent";c();var eV=O(ae()),O0e=()=>(0,eV.jsx)(se.div,{className:"w-2 h-2 bg-white ml-2 rounded-full",animate:{scale:[1,1.2,1],opacity:[.4,1,.4]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut"}}),JR=O0e;c();c();c();var PT=O(re());var Ae=O(ae()),D0e=e=>{let{query:t,answer:r,results:a=[],images:n=[],variant:o="compact",status:i="complete",onClose:s,onExpand:l,channel:u,...d}=e,f=t,p=r,m=a,g=n,x=d.text||d.result;if(x&&typeof x=="string")try{let F=JSON.parse(x);F.success&&F.data&&(f=f||F.data.query,p=p||F.data.answer,m=m.length>0?m:F.data.results||[],g=g.length>0?g:F.data.images||[])}catch(F){console.warn("[WebSearch] Failed to parse tool output:",F)}let w=o==="sidebar",[b,v]=(0,PT.useState)(w);(0,PT.useEffect)(()=>{w&&v(!0)},[w]);let T=Array.isArray(g)?g.map(F=>{if(F){if(typeof F=="string")return F;if(typeof F=="object"&&"url"in F&&typeof F.url=="string")return F.url}}).filter(Boolean):[],E=T.length>0,I=E?T.slice(0,4):[],_=o==="sidebar",A=o==="compact",N=()=>{A&&l?l({query:f,answer:p,results:m,images:g}):v(F=>!F)};if(A){let F=i==="loading",R=i==="complete",ne=i==="error";return u==="agent_builder"?(0,Ae.jsx)("div",{className:"w-auto inline-block",children:(0,Ae.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-2 rounded-xl bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700",children:[F&&(0,Ae.jsx)(ht,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 animate-spin"}),R&&(0,Ae.jsx)(ln,{className:"w-4 h-4 text-green-600 dark:text-green-400"}),ne&&(0,Ae.jsx)(Zl,{className:"w-4 h-4 text-red-600 dark:text-red-400"}),(0,Ae.jsxs)("span",{className:"text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[F&&"Searching Web",R&&"Web Search",ne&&"Search Failed"]}),R&&l&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("span",{className:"text-neutral-400 dark:text-neutral-500",children:"\xB7"}),(0,Ae.jsxs)("button",{type:"button",onClick:N,className:"inline-flex items-center gap-0.5 text-xs text-orange-600 dark:text-orange-400 hover:text-orange-700 dark:hover:text-orange-300 transition-colors",children:["View",(0,Ae.jsx)(Zh,{className:"w-3 h-3"})]})]})]})}):(0,Ae.jsx)("div",{className:"w-full max-w-2xl",children:(0,Ae.jsxs)("div",{className:"rounded-xl border border-neutral-200 dark:border-neutral-700 bg-white dark:bg-neutral-800 overflow-hidden",children:[(0,Ae.jsxs)("button",{type:"button",onClick:()=>v(!b),className:"w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-700 transition-colors",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[F&&(0,Ae.jsx)(ht,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 animate-spin"}),R&&(0,Ae.jsx)(ln,{className:"w-4 h-4 text-green-600 dark:text-green-400"}),ne&&(0,Ae.jsx)(_o,{className:"w-4 h-4 text-red-600 dark:text-red-400"}),(0,Ae.jsxs)(mn,{className:"text-neutral-900 dark:text-neutral-100",children:[F&&"Searching Web...",R&&"Web Search",ne&&"Search Failed"]}),f&&(0,Ae.jsx)(Ro,{className:"text-xs truncate max-w-xs",children:f})]}),(0,Ae.jsx)(se.div,{animate:{rotate:b?180:0},transition:{duration:.2},children:(0,Ae.jsx)(gr,{className:"w-4 h-4 text-neutral-700 dark:text-neutral-300"})})]}),(0,Ae.jsx)(Vt,{children:b&&(0,Ae.jsx)(se.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"border-t border-neutral-200 dark:border-neutral-700 overflow-hidden",children:(0,Ae.jsxs)("div",{className:"p-4 space-y-3",children:[p&&(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(mn,{className:"mb-2 text-neutral-700 dark:text-neutral-300",children:"Summary"}),(0,Ae.jsx)(Ro,{className:"whitespace-pre-wrap break-words leading-relaxed",children:p})]}),E&&(0,Ae.jsx)("div",{className:"grid grid-cols-4 gap-2",children:I.map((D,$)=>(0,Ae.jsx)("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-700",children:(0,Ae.jsx)("img",{src:D,alt:f||"Web search image",className:"h-20 w-full object-cover",loading:"lazy"})},`${D}-${$}`))}),m.length>0&&(0,Ae.jsx)("div",{className:"space-y-2",children:m.map((D,$)=>(0,Ae.jsxs)("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-700 p-3",children:[D.title&&(0,Ae.jsx)(mn,{className:"mb-1 text-neutral-900 dark:text-neutral-100",children:D.title}),D.url&&(0,Ae.jsxs)("a",{href:D.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400 hover:opacity-70 mb-2",children:[(0,Ae.jsx)(Gl,{className:"w-3 h-3"}),"View source"]}),(D.snippet||D.content)&&(0,Ae.jsx)(Ro,{className:"text-xs line-clamp-2",children:D.snippet||D.content})]},`${D.url||"result"}-${$}`))})]})})})]})})}return(0,Ae.jsxs)("div",{className:"w-full h-full bg-white dark:bg-neutral-900 rounded-tl-2xl flex flex-col",children:[(0,Ae.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 border-b border-neutral-200 dark:border-neutral-700 flex-shrink-0",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[(0,Ae.jsx)(Zl,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 flex-shrink-0"}),(0,Ae.jsxs)("div",{className:"flex flex-col gap-0.5 flex-1 min-w-0",children:[(0,Ae.jsx)(mn,{className:"text-neutral-900 dark:text-neutral-100",children:"Web Search"}),f&&(0,Ae.jsx)(Ro,{className:"truncate text-xs",children:f})]})]}),s&&(0,Ae.jsx)("button",{type:"button",className:"flex-shrink-0 p-1.5 rounded-lg text-neutral-600 dark:text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors",onClick:s,children:(0,Ae.jsx)(Is,{className:"w-4 h-4"})})]}),(0,Ae.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,Ae.jsxs)("div",{className:"p-4 space-y-4",children:[i==="loading"&&(0,Ae.jsxs)("div",{className:"flex items-center gap-3 px-3 py-2",children:[(0,Ae.jsx)(ht,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 animate-spin"}),(0,Ae.jsx)(Ro,{children:"Getting results..."})]}),i==="complete"&&p&&(0,Ae.jsxs)("div",{className:"rounded-xl border border-neutral-200 dark:border-neutral-700 p-4",children:[(0,Ae.jsx)(mn,{className:"mb-2 text-neutral-700 dark:text-neutral-300 font-semibold",children:"Summary"}),(0,Ae.jsx)(Ro,{className:"whitespace-pre-wrap break-words leading-relaxed",children:p})]}),i==="complete"&&E&&(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(mn,{className:"mb-2 text-neutral-700 dark:text-neutral-300 font-semibold",children:"Images"}),(0,Ae.jsx)("div",{className:"grid grid-cols-4 gap-2",children:I.map((F,R)=>(0,Ae.jsx)("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-700 hover:border-blue-400 dark:hover:border-blue-500 transition-colors",children:(0,Ae.jsx)("img",{src:F,alt:f||"Web search image",className:"h-20 w-full object-cover",loading:"lazy"})},`${F}-${R}`))})]}),i==="complete"&&m.length>0&&(0,Ae.jsxs)("div",{children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Ae.jsx)(mn,{className:"text-neutral-700 dark:text-neutral-300 font-semibold",children:"Sources"}),(0,Ae.jsx)("span",{className:"text-xs px-2 py-0.5 rounded-full bg-neutral-200 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300",children:m.length})]}),(0,Ae.jsx)("div",{className:"space-y-2",children:m.map((F,R)=>(0,Ae.jsxs)("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-700 p-3 hover:border-blue-400 dark:hover:border-blue-500 transition-colors",children:[(0,Ae.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-2",children:[(0,Ae.jsxs)("div",{className:"flex-1 min-w-0",children:[F.title&&(0,Ae.jsx)(mn,{className:"leading-snug mb-1 text-neutral-900 dark:text-neutral-100",children:F.title}),F.url&&(0,Ae.jsxs)("a",{href:F.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400 hover:opacity-70 transition-opacity",children:[(0,Ae.jsx)(Gl,{className:"w-3 h-3"}),"View source"]})]}),(0,Ae.jsxs)("span",{className:"text-xs flex-shrink-0 text-neutral-500 dark:text-neutral-400",children:["#",R+1]})]}),(F.snippet||F.content)&&(0,Ae.jsx)(Ro,{className:"text-xs leading-relaxed",children:F.snippet||F.content})]},`${F.url||"result"}-${R}`))})]})]})})]})},UT=D0e;c();var Pn=O(re());c();var ay=O(re()),en=({status:e,hadLoadingPhase:t,minDisplayTime:r=300})=>{let[a,n]=(0,ay.useState)(e),[o]=(0,ay.useState)(()=>Date.now());return(0,ay.useEffect)(()=>{if(e==="loading"){n("loading");return}if(!t){n(e);return}let i=Date.now()-o,s=Math.max(0,r-i);if(s>0){let l=setTimeout(()=>{n(e)},s);return()=>clearTimeout(l)}else n(e)},[e,t,o,r]),{displayStatus:a}};var Qr=O(ae()),M0e=({text:e,speed:t=25})=>{let[r,a]=(0,Pn.useState)(""),n=(0,Pn.useRef)(0),o=(0,Pn.useRef)(""),i=e||"";(0,Pn.useEffect)(()=>{i.length<o.current.length?(a(""),n.current=0,o.current=i):i.length>o.current.length&&(o.current=i);let l=setInterval(()=>{n.current<i.length?(a(i.slice(0,n.current+1)),n.current++):clearInterval(l)},t);return()=>clearInterval(l)},[i,t]);let s=n.current<i.length;return(0,Qr.jsxs)("span",{children:[r,s&&(0,Qr.jsx)(se.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:"inline-block w-0.5 h-4 bg-white/60 ml-0.5"})]})},P0e=({thought:e,text:t,thoughts:r,isStreaming:a=!1,status:n="complete",hadLoadingPhase:o=!1,onTransitionComplete:i,durationMs:s})=>{let[l,u]=(0,Pn.useState)(!1),d=(0,Pn.useRef)(Date.now()),[f,p]=(0,Pn.useState)(0),m=(0,Pn.useRef)(!1),g=e||t||"",x=!a&&g?"complete":n,{displayStatus:w}=en({status:x,hadLoadingPhase:a?o:!1,onTransitionComplete:i,minLoadingTime:500});(0,Pn.useEffect)(()=>{if(s!==void 0&&w==="complete"){p(s);return}if(!m.current&&(w==="loading"||o)&&(d.current=Date.now(),m.current=!0),w==="loading"){let T=setInterval(()=>{p(Date.now()-d.current)},100);return()=>clearInterval(T)}else if(w==="complete"&&m.current){let T=Date.now()-d.current;p(Math.max(T,500))}},[w,o,s]);let b=(0,Pn.useMemo)(()=>!Array.isArray(r)||r.length===0?[]:Array.from(new Set(r.filter(Boolean))),[r]),v=(f/1e3).toFixed(1);return(0,Qr.jsx)("div",{className:"w-auto",children:(0,Qr.jsxs)(se.div,{initial:!1,className:"group inline-block",children:[(0,Qr.jsxs)(se.div,{className:"inline-flex items-center gap-2 px-2 py-1 cursor-pointer",onClick:()=>u(!l),whileTap:{scale:.995},transition:{duration:.15},children:[w==="loading"?(0,Qr.jsx)(ht,{className:"w-4 h-4 text-purple-600 dark:text-purple-400 animate-spin"}):(0,Qr.jsx)(se.div,{animate:{rotate:l?180:0},transition:{duration:.2,ease:"easeOut"},children:(0,Qr.jsx)(gr,{className:"w-4 h-4 text-neutral-700 dark:text-neutral-300"})}),(0,Qr.jsxs)(mn,{children:["Thought for ",v,"s"]})]}),(0,Qr.jsx)(Vt,{initial:!1,children:l&&(0,Qr.jsx)(se.div,{initial:{opacity:0,height:0},animate:{opacity:.7,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3,ease:[.04,.62,.23,.98]},className:"border-l border-neutral-300 dark:border-neutral-600 pl-3 ml-[.95rem]",children:(0,Qr.jsxs)("div",{className:"py-2",children:[(0,Qr.jsx)(Ro,{className:"whitespace-pre-wrap break-words leading-relaxed",children:a?(0,Qr.jsx)(M0e,{text:g,speed:15}):g}),b.length>0&&(0,Qr.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,Qr.jsx)(mn,{className:"text-neutral-600 dark:text-neutral-400",children:"Previous thoughts"}),(0,Qr.jsx)("ul",{className:"space-y-1.5",children:b.map((T,E)=>(0,Qr.jsx)("li",{className:"pl-2",children:(0,Qr.jsx)(Ro,{children:T})},`${E}-${T.slice(0,12)}`))})]})]})})})]})})},QR=P0e;c();var om=O(re());var wt=O(ae()),U0e=({code:e,stdout:t=[],stderr:r=[],plots:a=[],status:n,error:o,executionTime:i,isStreaming:s=!1})=>{let[l,u]=(0,om.useState)(!0),[d,f]=(0,om.useState)([]),[p,m]=(0,om.useState)([]);(0,om.useEffect)(()=>{if(!s){f(t),m(r);return}if(t.length>d.length){let v=setTimeout(()=>{f(t.slice(0,d.length+1))},50);return()=>clearTimeout(v)}if(r.length>p.length){let v=setTimeout(()=>{m(r.slice(0,p.length+1))},50);return()=>clearTimeout(v)}},[t,r,d.length,p.length,s]);let g=()=>{switch(n){case"loading":return(0,wt.jsx)("div",{className:"w-4 h-4 border-2 border-orange-500 border-t-transparent rounded-full animate-spin"});case"executing":return(0,wt.jsxs)("svg",{className:"w-4 h-4 text-orange-500 animate-pulse",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]});case"complete":return(0,wt.jsx)("svg",{className:"w-4 h-4 text-green-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})});case"error":return(0,wt.jsx)("svg",{className:"w-4 h-4 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})})}},x=()=>{switch(n){case"loading":return"Iniciando sandbox...";case"executing":return"Ejecutando c\xF3digo Python...";case"complete":return`Ejecuci\xF3n completada${i?` en ${(i/1e3).toFixed(2)}s`:""}`;case"error":return"Error en ejecuci\xF3n"}},w=()=>{switch(n){case"loading":case"executing":return"border-orange-500/40";case"complete":return"border-green-500/40";case"error":return"border-red-500/40"}},b=()=>{switch(n){case"loading":case"executing":return"bg-orange-500/10";case"complete":return"bg-green-500/10";case"error":return"bg-red-500/10"}};return(0,wt.jsxs)(se.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`my-2 rounded-xl border ${w()} ${b()} overflow-hidden`,children:[(0,wt.jsxs)(se.button,{onClick:()=>u(!l),className:"w-full flex items-center justify-between px-4 py-3 transition-colors bg-black/5 dark:bg-white/5 hover:bg-black/10 dark:hover:bg-white/10",whileHover:{opacity:.9},whileTap:{scale:.99},children:[(0,wt.jsxs)("div",{className:"flex items-center gap-3",children:[g(),(0,wt.jsxs)("div",{className:"flex flex-col items-start",children:[(0,wt.jsx)("span",{className:"text-sm font-medium text-black dark:text-white",children:"\u{1F40D} Code Interpreter"}),(0,wt.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:x()})]})]}),(0,wt.jsx)("svg",{className:`w-5 h-5 transition-transform text-gray-600 dark:text-gray-400 ${l?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,wt.jsx)(Vt,{children:l&&(0,wt.jsx)(se.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:(0,wt.jsxs)("div",{className:"px-4 pb-4 space-y-3",children:[e&&(0,wt.jsxs)("div",{className:"space-y-1",children:[(0,wt.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-gray-600 dark:text-gray-400",children:"C\xF3digo Python"}),(0,wt.jsx)("div",{className:"rounded-lg p-3 border bg-black/5 dark:bg-black/40 border-[#FFB347]/20 dark:border-white/10",children:(0,wt.jsx)("pre",{className:"text-sm whitespace-pre-wrap font-mono overflow-x-auto text-black dark:text-gray-300",children:e})})]}),d.length>0&&(0,wt.jsxs)("div",{className:"space-y-1",children:[(0,wt.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-gray-600 dark:text-gray-400",children:"Salida"}),(0,wt.jsx)("div",{className:"rounded-lg p-3 border bg-green-500/10 dark:bg-black/40 border-green-500/30 dark:border-green-500/20",children:d.map((v,T)=>(0,wt.jsx)(se.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.1},className:"text-sm font-mono text-green-700 dark:text-green-300",children:v},T))})]}),(p.length>0||o)&&(0,wt.jsxs)("div",{className:"space-y-1",children:[(0,wt.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-red-600 dark:text-red-400",children:"Errores"}),(0,wt.jsxs)("div",{className:"rounded-lg p-3 border bg-red-500/10 dark:bg-black/40 border-red-500/30 dark:border-red-500/20",children:[o&&(0,wt.jsx)("div",{className:"text-sm font-mono mb-2 text-red-600 dark:text-red-300",children:o}),p.map((v,T)=>(0,wt.jsx)(se.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.1},className:"text-sm font-mono text-red-600 dark:text-red-300",children:v},T))]})]}),a.length>0&&(0,wt.jsxs)("div",{className:"space-y-1",children:[(0,wt.jsxs)("div",{className:"text-xs font-medium uppercase tracking-wide text-gray-600 dark:text-gray-400",children:["Visualizaciones (",a.length,")"]}),(0,wt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:a.map((v,T)=>(0,wt.jsx)(se.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,delay:T*.1},className:"rounded-lg border overflow-hidden border-[#FFB347]/20 dark:border-white/10 bg-white dark:bg-white",children:(0,wt.jsx)("img",{src:v,alt:`Plot ${T+1}`,className:"w-full h-auto"})},T))})]})]})})})]})},tV=U0e;c();var Ad=O(re());var Ba=O(ae());function zT({status:e="loading",text:t,result:r,args:a,avatarUrl:n,agentName:o,isStreaming:i=!1,hadLoadingPhase:s=!1,onTransitionComplete:l}){let[u,d]=(0,Ad.useState)(!1),f=(0,Ad.useRef)(Date.now()),[p,m]=(0,Ad.useState)(0),g=n||r?.data?.avatarUrl||r?.avatarUrl||r?.url||r?.image_url,x=o||r?.data?.agentName||r?.agentName||a?.agentName||a?.name,w=g?"complete":e==="in_progress"?"loading":e,b=s,{displayStatus:v}=en({status:w,hadLoadingPhase:b,onTransitionComplete:l,minLoadingTime:500});return(0,Ad.useEffect)(()=>{if(v==="loading"){f.current=Date.now();let T=setInterval(()=>{m(Date.now()-f.current)},100);return()=>clearInterval(T)}else v==="complete"&&m(Date.now()-f.current)},[v]),v==="error"?(0,Ba.jsxs)(se.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"my-2 flex items-center gap-2 px-3 py-2 rounded-lg bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-800/30",children:[(0,Ba.jsx)(ql,{className:"w-4 h-4 text-red-600 dark:text-red-400 flex-shrink-0"}),(0,Ba.jsx)("span",{className:"text-sm text-red-600 dark:text-red-400",children:t||"No se pudo generar el avatar"})]}):v==="loading"||!g&&(e==="loading"||e==="in_progress")?(0,Ba.jsxs)(se.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"my-2 ml-3 flex items-center justify-between gap-3 px-3 py-2 rounded-lg bg-[#FFB347]/5 dark:bg-[#FFB347]/5 border border-[#FFB347]/30 dark:border-[#FFB347]/30",children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,Ba.jsx)(ko,{className:"w-4 h-4 text-[#FFB347] dark:text-[#FFB347]"})}),(0,Ba.jsx)("span",{className:"text-sm font-medium text-[#FF6B35] dark:text-[#FFB347]",children:t||"Generando avatar..."})]}),(0,Ba.jsxs)("span",{className:"text-xs text-[#FFB347] dark:text-[#FFB347]",children:[(p/1e3).toFixed(1),"s"]})]}):g?(0,Ba.jsxs)(se.div,{className:"relative w-28 h-28 rounded-2xl overflow-hidden border-2 border-[#FFB347]/40 dark:border-[#FFB347]/40 my-2 ml-3",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{type:"spring",stiffness:200},children:[(0,Ba.jsx)(Vt,{children:!u&&(0,Ba.jsx)(se.div,{initial:{opacity:1},exit:{opacity:0},className:"absolute inset-0 flex items-center justify-center bg-[#FFB347]/10 dark:bg-[#FFB347]/10",children:(0,Ba.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,Ba.jsx)(ht,{className:"w-8 h-8 text-[#FFB347] dark:text-[#FFB347]"})})})}),(0,Ba.jsx)(se.img,{src:g,alt:x?`Avatar de ${x}`:"Avatar profesional",className:"w-full h-full object-cover",onLoad:()=>d(!0),initial:{opacity:0},animate:{opacity:u?1:0},transition:{duration:.3}})]}):null}c();var Ld=O(re());var Mr=O(ae()),z0e=({query:e,text:t,results:r,args:a,result:n,isStreaming:o=!1,status:i="complete",hadLoadingPhase:s=!1,onTransitionComplete:l})=>{let[u,d]=(0,Ld.useState)(!1),f=(0,Ld.useRef)(Date.now()),[p,m]=(0,Ld.useState)(0),g=e||t||a?.query||"Knowledge base search",x=r||n?.results||[],w=!o&&g?"complete":i,b=o?s:!1,{displayStatus:v}=en({status:w,hadLoadingPhase:b,onTransitionComplete:l,minLoadingTime:500});return(0,Ld.useEffect)(()=>{if(v==="loading"){f.current=Date.now();let T=setInterval(()=>{m(Date.now()-f.current)},100);return()=>clearInterval(T)}else v==="complete"&&m(Date.now()-f.current)},[v]),(0,Mr.jsx)("div",{className:"w-full",children:(0,Mr.jsxs)(se.div,{initial:!1,className:"group",children:[(0,Mr.jsxs)(se.div,{className:"flex cursor-pointer list-none items-center justify-between gap-3 px-2 pt-2 pb-1 text-sm font-medium w-full text-gray-600 dark:text-gray-400",onClick:()=>d(!u),whileTap:{scale:.995},transition:{duration:.15},children:[(0,Mr.jsxs)("div",{className:"flex items-center gap-2",children:[v==="loading"?(0,Mr.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,Mr.jsx)(ht,{className:"w-3 h-3 text-blue-600 dark:text-blue-400"})}):(0,Mr.jsx)(se.div,{animate:{rotate:u?180:0},transition:{duration:.2,ease:"easeOut"},children:(0,Mr.jsx)(gr,{className:"w-3 h-3 text-blue-600 dark:text-blue-400"})}),(0,Mr.jsx)(Yh,{className:"w-3.5 h-3.5 text-blue-600 dark:text-blue-400"}),(0,Mr.jsx)("span",{className:"text-md font-semibold text-gray-700 dark:text-gray-400",children:"Knowledge Base Search"})]}),(0,Mr.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-500 dark:text-gray-500",children:[x.length>0&&(0,Mr.jsxs)("span",{className:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 px-2 py-0.5 rounded-full",children:[x.length," results"]}),(0,Mr.jsxs)("span",{children:[(p/1e3).toFixed(1),"s"]})]})]}),(0,Mr.jsx)(Vt,{initial:!1,children:u&&(0,Mr.jsx)(se.div,{initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0,borderTopWidth:0}},transition:{duration:.3,ease:[.04,.62,.23,.98]},className:"overflow-hidden border-l ml-3.5 border-blue-500/30 dark:border-blue-500/30",children:(0,Mr.jsxs)(se.div,{className:"px-4 py-3 text-sm",variants:{open:{opacity:1,y:0},collapsed:{opacity:0,y:-10}},transition:{delay:.1},children:[(0,Mr.jsxs)("p",{className:"text-xs text-gray-600 dark:text-gray-400 mb-2",children:[(0,Mr.jsx)("span",{className:"font-medium",children:"Query:"})," ",g]}),x.length>0&&(0,Mr.jsx)("div",{className:"space-y-2",children:x.map((T,E)=>(0,Mr.jsx)(se.div,{className:"rounded-md px-3 py-2 bg-blue-50/50 dark:bg-blue-900/10 border border-blue-200/50 dark:border-blue-800/50",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.1+E*.05},children:(0,Mr.jsx)("p",{className:"text-xs text-gray-700 dark:text-gray-300",children:T.content||T.text||JSON.stringify(T)})},E))})]})})})]})})},rV=z0e;c();var Nd=O(re());var Pr=O(ae()),F0e=({url:e,method:t,text:r,args:a,result:n,isStreaming:o=!1,status:i="complete",hadLoadingPhase:s=!1,onTransitionComplete:l})=>{let[u,d]=(0,Nd.useState)(!1),f=(0,Nd.useRef)(Date.now()),[p,m]=(0,Nd.useState)(0),g=e||a?.url||r||"API Request",x=t||a?.method||"GET",w=!o&&g?"complete":i,b=o?s:!1,{displayStatus:v}=en({status:w,hadLoadingPhase:b,onTransitionComplete:l,minLoadingTime:500});(0,Nd.useEffect)(()=>{if(v==="loading"){f.current=Date.now();let I=setInterval(()=>{m(Date.now()-f.current)},100);return()=>clearInterval(I)}else v==="complete"&&m(Date.now()-f.current)},[v]);let T=n?.statusCode||n?.status,E=n?.data||n?.body;return(0,Pr.jsx)("div",{className:"w-full",children:(0,Pr.jsxs)(se.div,{initial:!1,className:"group",children:[(0,Pr.jsxs)(se.div,{className:"flex cursor-pointer list-none items-center justify-between gap-3 px-2 pt-2 pb-1 text-sm font-medium w-full text-gray-600 dark:text-gray-400",onClick:()=>d(!u),whileTap:{scale:.995},transition:{duration:.15},children:[(0,Pr.jsxs)("div",{className:"flex items-center gap-2",children:[v==="loading"?(0,Pr.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,Pr.jsx)(ht,{className:"w-3 h-3 text-green-600 dark:text-green-400"})}):(0,Pr.jsx)(se.div,{animate:{rotate:u?180:0},transition:{duration:.2,ease:"easeOut"},children:(0,Pr.jsx)(gr,{className:"w-3 h-3 text-green-600 dark:text-green-400"})}),(0,Pr.jsx)(Zl,{className:"w-3.5 h-3.5 text-green-600 dark:text-green-400"}),(0,Pr.jsx)("span",{className:"text-md font-semibold text-gray-700 dark:text-gray-400",children:"API Request"})]}),(0,Pr.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-500 dark:text-gray-500",children:[(0,Pr.jsx)("span",{className:"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300 px-2 py-0.5 rounded-full font-mono",children:x}),T&&(0,Pr.jsx)("span",{className:`px-2 py-0.5 rounded-full font-mono ${T>=200&&T<300?"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300":"bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300"}`,children:T}),(0,Pr.jsxs)("span",{children:[(p/1e3).toFixed(1),"s"]})]})]}),(0,Pr.jsx)(Vt,{initial:!1,children:u&&(0,Pr.jsx)(se.div,{initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0,borderTopWidth:0}},transition:{duration:.3,ease:[.04,.62,.23,.98]},className:"overflow-hidden border-l ml-3.5 border-green-500/30 dark:border-green-500/30",children:(0,Pr.jsxs)(se.div,{className:"px-4 py-3 text-sm",variants:{open:{opacity:1,y:0},collapsed:{opacity:0,y:-10}},transition:{delay:.1},children:[(0,Pr.jsxs)("p",{className:"text-xs text-gray-600 dark:text-gray-400 mb-2 break-all",children:[(0,Pr.jsx)("span",{className:"font-medium",children:"URL:"})," ",g]}),E&&(0,Pr.jsx)(se.div,{className:"rounded-md px-3 py-2 bg-green-50/50 dark:bg-green-900/10 border border-green-200/50 dark:border-green-800/50",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},children:(0,Pr.jsx)("pre",{className:"text-xs text-gray-700 dark:text-gray-300 whitespace-pre-wrap overflow-auto max-h-48",children:typeof E=="string"?E:JSON.stringify(E,null,2)})})]})})})]})})},aV=F0e;c();var Rd=O(re());var sr=O(ae()),B0e=({name:e,email:t,phone:r,text:a,args:n,result:o,isStreaming:i=!1,status:s="complete",hadLoadingPhase:l=!1,onTransitionComplete:u})=>{let[d,f]=(0,Rd.useState)(!1),p=(0,Rd.useRef)(Date.now()),[m,g]=(0,Rd.useState)(0),x=e||n?.name||o?.name||"Lead",w=t||n?.email||o?.email,b=r||n?.phone||o?.phone,v=i?s:"complete",T=i?l:!1,{displayStatus:E}=en({status:v,hadLoadingPhase:T,onTransitionComplete:u,minLoadingTime:500});return(0,Rd.useEffect)(()=>{if(E==="loading"){p.current=Date.now();let I=setInterval(()=>{g(Date.now()-p.current)},100);return()=>clearInterval(I)}else E==="complete"&&g(Date.now()-p.current)},[E]),(0,sr.jsx)("div",{className:"w-full",children:(0,sr.jsxs)(se.div,{initial:!1,className:"group",children:[(0,sr.jsxs)(se.div,{className:"flex cursor-pointer list-none items-center justify-between gap-3 px-2 pt-2 pb-1 text-sm font-medium w-full text-gray-600 dark:text-gray-400",onClick:()=>f(!d),whileTap:{scale:.995},transition:{duration:.15},children:[(0,sr.jsxs)("div",{className:"flex items-center gap-2",children:[E==="loading"?(0,sr.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,sr.jsx)(ht,{className:"w-3 h-3 text-amber-600 dark:text-amber-400"})}):(0,sr.jsx)(se.div,{animate:{rotate:d?180:0},transition:{duration:.2,ease:"easeOut"},children:(0,sr.jsx)(gr,{className:"w-3 h-3 text-amber-600 dark:text-amber-400"})}),(0,sr.jsx)(og,{className:"w-3.5 h-3.5 text-amber-600 dark:text-amber-400"}),(0,sr.jsx)("span",{className:"text-md font-semibold text-gray-700 dark:text-gray-400",children:"Lead Captured"})]}),(0,sr.jsx)("div",{className:"flex items-center gap-2 text-xs text-gray-500 dark:text-gray-500",children:(0,sr.jsxs)("span",{children:[(m/1e3).toFixed(1),"s"]})})]}),(0,sr.jsx)(Vt,{initial:!1,children:d&&(0,sr.jsx)(se.div,{initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0,borderTopWidth:0}},transition:{duration:.3,ease:[.04,.62,.23,.98]},className:"overflow-hidden border-l ml-3.5 border-amber-500/30 dark:border-amber-500/30",children:(0,sr.jsx)(se.div,{className:"px-4 py-3 text-sm",variants:{open:{opacity:1,y:0},collapsed:{opacity:0,y:-10}},transition:{delay:.1},children:(0,sr.jsxs)("div",{className:"space-y-2",children:[x&&(0,sr.jsxs)(se.div,{className:"flex items-center gap-2",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.1},children:[(0,sr.jsx)("span",{className:"text-xs font-medium text-gray-600 dark:text-gray-400 min-w-[60px]",children:"Name:"}),(0,sr.jsx)("span",{className:"text-xs text-gray-700 dark:text-gray-300",children:x})]}),w&&(0,sr.jsxs)(se.div,{className:"flex items-center gap-2",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.15},children:[(0,sr.jsx)("span",{className:"text-xs font-medium text-gray-600 dark:text-gray-400 min-w-[60px]",children:"Email:"}),(0,sr.jsx)("span",{className:"text-xs text-gray-700 dark:text-gray-300",children:w})]}),b&&(0,sr.jsxs)(se.div,{className:"flex items-center gap-2",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.2},children:[(0,sr.jsx)("span",{className:"text-xs font-medium text-gray-600 dark:text-gray-400 min-w-[60px]",children:"Phone:"}),(0,sr.jsx)("span",{className:"text-xs text-gray-700 dark:text-gray-300",children:b})]})]})})})})]})})},nV=B0e;c();var im=O(re());var wi=O(ae()),$0e=({text:e,args:t,result:r,isStreaming:a=!1,status:n="complete",hadLoadingPhase:o=!1,onTransitionComplete:i})=>{let s=(0,im.useRef)(Date.now()),[l,u]=(0,im.useState)(0),d=a?n:"complete",f=a?o:!1,{displayStatus:p}=en({status:d,hadLoadingPhase:f,onTransitionComplete:i,minLoadingTime:500});return(0,im.useEffect)(()=>{if(p==="loading"){s.current=Date.now();let m=setInterval(()=>{u(Date.now()-s.current)},100);return()=>clearInterval(m)}else p==="complete"&&u(Date.now()-s.current)},[p]),(0,wi.jsxs)(se.div,{className:"ml-4 flex items-center gap-3 w-fit px-4 py-2.5 text-sm rounded-lg border bg-green-50 border-green-200 dark:bg-green-900/10 dark:border-green-800/50",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:[(0,wi.jsx)("span",{className:"flex items-center justify-center w-5 h-5",children:p==="loading"?(0,wi.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,wi.jsx)(ht,{className:"w-4 h-4 text-green-600 dark:text-green-400"})}):(0,wi.jsx)(se.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:10},children:(0,wi.jsx)(ln,{className:"w-5 h-5 text-green-600 dark:text-green-400"})})}),(0,wi.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,wi.jsx)("span",{className:"font-semibold text-green-700 dark:text-green-300",children:"Conversation Marked as Resolved"}),(0,wi.jsxs)("span",{className:"text-xs text-green-600 dark:text-green-400",children:[(l/1e3).toFixed(1),"s"]})]})]})},oV=$0e;c();var sm=O(re());var Po=O(ae()),j0e=({reason:e,text:t,args:r,result:a,isStreaming:n=!1,status:o="complete",hadLoadingPhase:i=!1,onTransitionComplete:s})=>{let l=(0,sm.useRef)(Date.now()),[u,d]=(0,sm.useState)(0),f=e||r?.reason||t||"Customer requested human assistance",p=n?o:"complete",m=n?i:!1,{displayStatus:g}=en({status:p,hadLoadingPhase:m,onTransitionComplete:s,minLoadingTime:500});return(0,sm.useEffect)(()=>{if(g==="loading"){l.current=Date.now();let x=setInterval(()=>{d(Date.now()-l.current)},100);return()=>clearInterval(x)}else g==="complete"&&d(Date.now()-l.current)},[g]),(0,Po.jsxs)(se.div,{className:"ml-4 flex items-start gap-3 w-fit max-w-md px-4 py-3 text-sm rounded-lg border bg-pink-50 border-pink-200 dark:bg-pink-900/10 dark:border-pink-800/50",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:[(0,Po.jsx)("span",{className:"flex items-center justify-center w-5 h-5 mt-0.5",children:g==="loading"?(0,Po.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,Po.jsx)(ht,{className:"w-4 h-4 text-pink-600 dark:text-pink-400"})}):(0,Po.jsx)(se.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:10},children:(0,Po.jsx)(Vl,{className:"w-5 h-5 text-pink-600 dark:text-pink-400"})})}),(0,Po.jsxs)("div",{className:"flex flex-col gap-1.5 flex-1",children:[(0,Po.jsx)("span",{className:"font-semibold text-pink-700 dark:text-pink-300",children:"Human Agent Requested"}),(0,Po.jsx)("p",{className:"text-xs text-pink-600 dark:text-pink-400 leading-relaxed",children:f}),(0,Po.jsxs)("span",{className:"text-xs text-pink-600/70 dark:text-pink-400/70 mt-1",children:[(u/1e3).toFixed(1),"s"]})]})]})},iV=j0e;c();var Od=O(re());var tr=O(ae()),H0e=(e,t)=>{let r=e.split(".").pop()?.toLowerCase(),a=t?.toLowerCase()||"";return a.includes("image")||["jpg","jpeg","png","gif","svg","webp"].includes(r||"")?(0,tr.jsx)(Ss,{className:"w-4 h-4"}):a.includes("video")||["mp4","avi","mov","wmv","webm"].includes(r||"")?(0,tr.jsx)(Jh,{className:"w-4 h-4"}):a.includes("audio")||["mp3","wav","ogg","flac"].includes(r||"")?(0,tr.jsx)(tg,{className:"w-4 h-4"}):(0,tr.jsx)(Fi,{className:"w-4 h-4"})},V0e=e=>e?e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`:"",q0e=({files:e,text:t,args:r,result:a,isStreaming:n=!1,status:o="complete",hadLoadingPhase:i=!1,onTransitionComplete:s})=>{let[l,u]=(0,Od.useState)(!1),d=(0,Od.useRef)(Date.now()),[f,p]=(0,Od.useState)(0),m=e||r?.files||a?.files||[],g=n?o:"complete",x=n?i:!1,{displayStatus:w}=en({status:g,hadLoadingPhase:x,onTransitionComplete:s,minLoadingTime:500});return(0,Od.useEffect)(()=>{if(w==="loading"){d.current=Date.now();let b=setInterval(()=>{p(Date.now()-d.current)},100);return()=>clearInterval(b)}else w==="complete"&&p(Date.now()-d.current)},[w]),(0,tr.jsx)("div",{className:"w-full",children:(0,tr.jsxs)(se.div,{initial:!1,className:"group",children:[(0,tr.jsxs)(se.div,{className:"flex cursor-pointer list-none items-center justify-between gap-3 px-2 pt-2 pb-1 text-sm font-medium w-full text-gray-600 dark:text-gray-400",onClick:()=>u(!l),whileTap:{scale:.995},transition:{duration:.15},children:[(0,tr.jsxs)("div",{className:"flex items-center gap-2",children:[w==="loading"?(0,tr.jsx)(se.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:(0,tr.jsx)(ht,{className:"w-3 h-3 text-purple-600 dark:text-purple-400"})}):(0,tr.jsx)(se.div,{animate:{rotate:l?180:0},transition:{duration:.2,ease:"easeOut"},children:(0,tr.jsx)(gr,{className:"w-3 h-3 text-purple-600 dark:text-purple-400"})}),(0,tr.jsx)(kc,{className:"w-3.5 h-3.5 text-purple-600 dark:text-purple-400"}),(0,tr.jsx)("span",{className:"text-md font-semibold text-gray-700 dark:text-gray-400",children:"Files Sent"})]}),(0,tr.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-500 dark:text-gray-500",children:[m.length>0&&(0,tr.jsxs)("span",{className:"bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-300 px-2 py-0.5 rounded-full",children:[m.length," ",m.length===1?"file":"files"]}),(0,tr.jsxs)("span",{children:[(f/1e3).toFixed(1),"s"]})]})]}),(0,tr.jsx)(Vt,{initial:!1,children:l&&(0,tr.jsx)(se.div,{initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0,borderTopWidth:0}},transition:{duration:.3,ease:[.04,.62,.23,.98]},className:"overflow-hidden border-l ml-3.5 border-purple-500/30 dark:border-purple-500/30",children:(0,tr.jsx)(se.div,{className:"px-4 py-3 text-sm",variants:{open:{opacity:1,y:0},collapsed:{opacity:0,y:-10}},transition:{delay:.1},children:m.length>0&&(0,tr.jsx)("div",{className:"space-y-2",children:m.map((b,v)=>(0,tr.jsxs)(se.a,{href:b.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 rounded-md px-3 py-2 bg-purple-50/50 dark:bg-purple-900/10 border border-purple-200/50 dark:border-purple-800/50 hover:bg-purple-100/50 dark:hover:bg-purple-900/20 transition-colors",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.1+v*.05},whileHover:{x:2},children:[(0,tr.jsx)("span",{className:"text-purple-600 dark:text-purple-400",children:H0e(b.name,b.type)}),(0,tr.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,tr.jsx)("p",{className:"text-xs text-gray-700 dark:text-gray-300 truncate",children:b.name}),b.size&&(0,tr.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-500",children:V0e(b.size)})]})]},v))})})})})]})})},sV=q0e;c();var Dd=O(ae()),G0e=({status:e})=>{let t=e==="loading",r=e==="complete",a=e==="error";return(0,Dd.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-2 rounded-xl bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700",children:[t&&(0,Dd.jsx)(ht,{className:"w-4 h-4 text-orange-600 dark:text-orange-400 animate-spin"}),r&&(0,Dd.jsx)(ln,{className:"w-4 h-4 text-green-600 dark:text-green-400"}),a&&(0,Dd.jsx)(_o,{className:"w-4 h-4 text-red-600 dark:text-red-400"}),(0,Dd.jsxs)("span",{className:"text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[t&&"Creating Agent",r&&"Agent Created",a&&"Creation Failed"]})]})},lV=G0e;c();var Md=O(ae()),Z0e=({status:e})=>{let t=e==="loading",r=e==="complete",a=e==="error";return(0,Md.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-2 rounded-xl bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700",children:[t&&(0,Md.jsx)(ht,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 animate-spin"}),r&&(0,Md.jsx)(ln,{className:"w-4 h-4 text-green-600 dark:text-green-400"}),a&&(0,Md.jsx)(_o,{className:"w-4 h-4 text-red-600 dark:text-red-400"}),(0,Md.jsxs)("span",{className:"text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[t&&"Updating Agent",r&&"Agent Updated",a&&"Update Failed"]})]})},uV=Z0e;var FT={web_search:{name:"web_search",displayName:"Web Search",component:UT,ui:{loading:"Buscando en la web...",complete:"B\xFAsqueda completada",error:"Error en la b\xFAsqueda"},metadata:{category:"research",icon:"\u{1F50D}",color:"#3B82F6"}},scrape_webpage:{name:"scrape_webpage",displayName:"Scrape Webpage",component:UT,ui:{loading:"Extrayendo informaci\xF3n de la p\xE1gina...",complete:"P\xE1gina procesada",error:"Error al extraer la p\xE1gina"},metadata:{category:"research",icon:"\u{1F310}",color:"#10B981"}},deep_search:{name:"deep_search",displayName:"Deep Search",component:UT,ui:{loading:"Realizando b\xFAsqueda profunda...",complete:"B\xFAsqueda profunda completada",error:"Error en b\xFAsqueda profunda"},metadata:{category:"research",icon:"\u{1F52C}",color:"#8B5CF6"}},create_agent:{name:"create_agent",displayName:"Create Agent",component:lV,ui:{loading:"Creando agente...",complete:"Agente creado exitosamente",error:"Error al crear agente"},metadata:{category:"builder",icon:"\u{1F916}",color:"#F59E0B"}},update_agent:{name:"update_agent",displayName:"Update Agent",component:uV,ui:{loading:"Actualizando agente...",complete:"Agente actualizado exitosamente",error:"Error al actualizar agente"},metadata:{category:"builder",icon:"\u2699\uFE0F",color:"#06B6D4"}},think:{name:"think",displayName:"Thinking",component:QR,ui:{loading:"Pensando...",complete:"Pensamiento completado",error:"Error al procesar pensamiento"},metadata:{category:"reasoning",icon:"\u{1F4AD}",color:"#EC4899"}},advanced_reasoning:{name:"advanced_reasoning",displayName:"Advanced Reasoning",component:QR,ui:{loading:"Razonamiento avanzado...",complete:"Razonamiento completado",error:"Error en razonamiento"},metadata:{category:"reasoning",icon:"\u{1F9E0}",color:"#8B5CF6"}},code_interpreter:{name:"code_interpreter",displayName:"Code Interpreter",component:tV,ui:{loading:"Ejecutando c\xF3digo...",complete:"C\xF3digo ejecutado",error:"Error en ejecuci\xF3n"},metadata:{category:"code",icon:"\u{1F4BB}",color:"#10B981"}},generate_avatar:{name:"generate_avatar",displayName:"Generate Avatar",component:zT,ui:{loading:"Generando avatar...",complete:"Avatar generado",error:"Error al generar avatar"},metadata:{category:"media",icon:"\u{1F3A8}",color:"#F59E0B"}},generate_image:{name:"generate_image",displayName:"Generate Image",component:zT,ui:{loading:"Generando imagen...",complete:"Imagen generada",error:"Error al generar imagen"},metadata:{category:"media",icon:"\u{1F5BC}\uFE0F",color:"#EC4899"}},datastore_query:{name:"datastore_query",displayName:"Search Knowledge Base",component:rV,ui:{loading:"Buscando en la base de conocimiento...",complete:"B\xFAsqueda completada",error:"Error al buscar en la base de conocimiento"},metadata:{category:"research",icon:"\u{1F4DA}",color:"#3B82F6"}},http_request:{name:"http_request",displayName:"API Request",component:aV,ui:{loading:"Realizando petici\xF3n HTTP...",complete:"Petici\xF3n completada",error:"Error en petici\xF3n HTTP"},metadata:{category:"research",icon:"\u{1F310}",color:"#10B981"}},capture_lead:{name:"capture_lead",displayName:"Capture Lead",component:nV,ui:{loading:"Capturando lead...",complete:"Lead capturado exitosamente",error:"Error al capturar lead"},metadata:{category:"research",icon:"\u{1F464}",color:"#F59E0B"}},mark_resolved:{name:"mark_resolved",displayName:"Mark Resolved",component:oV,ui:{loading:"Marcando como resuelto...",complete:"Conversaci\xF3n marcada como resuelta",error:"Error al marcar como resuelto"},metadata:{category:"research",icon:"\u2705",color:"#10B981"}},request_human:{name:"request_human",displayName:"Request Human Agent",component:iV,ui:{loading:"Solicitando agente humano...",complete:"Agente humano solicitado",error:"Error al solicitar agente humano"},metadata:{category:"research",icon:"\u{1F64B}",color:"#EC4899"}},send_files:{name:"send_files",displayName:"Send Files",component:sV,ui:{loading:"Enviando archivos...",complete:"Archivos enviados",error:"Error al enviar archivos"},metadata:{category:"research",icon:"\u{1F4CE}",color:"#8B5CF6"}}},BT=e=>FT[e],cV=e=>{let t=FT[e];return t?.ui?t.ui:{loading:"Procesando...",complete:"Completado",error:"Error"}};var W0e=e=>e?.tool_name?e.tool_name:e?.toolName?e.toolName:e?.data?.tool_name?e.data.tool_name:e?.data?.toolName?e.data.toolName:e?.name?e.name:e?.data?.name?e.data.name:(e?.type==="tool-call"||e?.type==="tool-result")&&e?.name?e.name:"unknown",Y0e=new Set(["tool-call-start","tool-call-delta","tool-input-start","tool-input-delta","tool-input-available","tool-call"]),K0e=new Set(["tool-call-finish","tool-result","tool-output-available"]),dV=new Set(["error","failed","failure"]),X0e=e=>e?.toolCallId||e?.tool_call_id||e?.tool_callId||e?.data?.toolCallId||e?.data?.tool_call_id||e?.data?.id,J0e=e=>{let t=e?.status||e?.data?.status||e?.data?.tool_status||e?.result?.status||"";return typeof t=="string"?t.toLowerCase():""},$T=e=>{if(!e)return null;let t=W0e(e),r=cV(t),a=J0e(e),n=X0e(e);if(e.type==="data-tool-timing")return{phase:"complete",kind:t,config:r,callId:n,raw:e};if(e.type==="data-tool-output"){let o;return a==="loading"?o="loading":dV.has(a)?o="error":o="complete",{phase:o,kind:t,config:r,callId:n,raw:e}}return K0e.has(e.type)?{phase:dV.has(a)?"error":"complete",kind:t,config:r,callId:n,raw:e}:Y0e.has(e.type)?{phase:"loading",kind:t,config:r,callId:n,raw:e}:null};c();var nO=O(fV()),mV=O(pV());nO.default.extend(mV.default);var lm=nO.default;c();var jT=O(re());var Uo=O(ae()),oO=(0,jT.memo)(({isUser:e,children:t,channel:r="default",showAvatar:a=!1,agentName:n="Horneross",agentIconUrl:o})=>{let[i,s]=jT.default.useState(!1),u=(p=>p==="agent_builder"?"agent_builder":p==="dashboard"?"dashboard":p==="website"?"website":"default")(r),d=e?"user":"assistant";return(u==="dashboard"||u==="website")&&!e&&a?(0,Uo.jsx)("div",{className:UL(d,u),children:(0,Uo.jsxs)("div",{className:"flex flex-col w-full gap-2",children:[(0,Uo.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Uo.jsx)("div",{className:"w-5 h-5 flex items-center justify-center rounded-full flex-shrink-0 overflow-hidden bg-[#E5E5E5] dark:bg-[#404040]",children:o&&!i?(0,Uo.jsx)("img",{src:o,alt:n,className:"w-full h-full object-cover",onError:()=>s(!0)}):(0,Uo.jsx)("span",{className:"text-xs font-semibold uppercase text-black dark:text-white",children:n?.[0]||"H"})}),(0,Uo.jsx)("span",{className:"text-sm font-semibold font-medium text-black dark:text-[#D4D4D4]",children:n})]}),(0,Uo.jsx)("div",{className:zL(d,u),children:t})]})}):(0,Uo.jsx)("div",{className:UL(d,u),children:(0,Uo.jsx)("div",{className:zL(d,u),children:t})})});oO.displayName="Wrapper";c();var yV=O(re());c();var um=O(re());var Mu=O(ae()),Q0e=({text:e,className:t})=>{let[r,a]=(0,um.useState)(!1),n=(0,um.useRef)(),o=(0,um.useCallback)(async()=>{try{clearTimeout(n.current),await navigator.clipboard.writeText(e),a(!0),n.current=setTimeout(()=>{a(!1)},2e3)}catch(i){console.error("[CopyButton] Error copying:",i)}},[e]);return(0,Mu.jsxs)(pi,{children:[(0,Mu.jsx)(mi,{asChild:!0,children:(0,Mu.jsx)(Br,{type:"button",variant:"ghost",size:"icon-sm",onClick:o,className:nt("h-6 w-6 !bg-transparent cursor-pointer","text-black dark:text-white","hover:bg-black/20 dark:hover:bg-white/5",r&&"text-green-600 dark:text-green-400",t),children:r?(0,Mu.jsx)(Kn,{className:"w-3 h-3"}):(0,Mu.jsx)(_c,{className:"w-3 h-3"})})}),(0,Mu.jsx)(hi,{children:r?"\xA1Copiado!":"Copiar mensaje"})]})},hV=Q0e;c();var Pd=O(re());var yn=O(ae()),eye=({messageId:e,eval:t,handleEvalAnswer:r})=>{let[a,n]=(0,Pd.useState)(t??null),[o,i]=(0,Pd.useState)(!1);(0,Pd.useEffect)(()=>{n(t??null)},[t]);let s=(0,Pd.useCallback)(async l=>{if(o||!r||l===a)return;let u=a;i(!0),n(l);try{await r({messageId:e,value:l})}catch(d){throw n(u),d}finally{i(!1)}},[o,r,e,a]);return(0,yn.jsxs)(yn.Fragment,{children:[(0,yn.jsxs)(pi,{children:[(0,yn.jsx)(mi,{asChild:!0,children:(0,yn.jsx)(Br,{type:"button",variant:"ghost",size:"icon-sm",onClick:async l=>{l.stopPropagation(),await s("good")},disabled:o,className:nt("h-6 w-6 !bg-transparent cursor-pointer","hover:bg-black/20 dark:hover:bg-white/5",a==="good"?"text-green-600 dark:text-green-400":"text-black dark:text-white"),children:(0,yn.jsx)(ng,{className:"w-3 h-3"})})}),(0,yn.jsx)(hi,{children:a==="good"?"Evaluado como bueno":"Marcar como buena respuesta"})]}),(0,yn.jsxs)(pi,{children:[(0,yn.jsx)(mi,{asChild:!0,children:(0,yn.jsx)(Br,{type:"button",variant:"ghost",size:"icon-sm",onClick:async l=>{l.stopPropagation(),await s("bad")},disabled:o,className:nt("h-6 w-6 !bg-transparent cursor-pointer","hover:bg-black/20 dark:hover:bg-white/5",a==="bad"?"text-red-600 dark:text-red-400":"text-black dark:text-white"),children:(0,yn.jsx)(ag,{className:"w-3 h-3"})})}),(0,yn.jsx)(hi,{children:a==="bad"?"Evaluado como malo":"Marcar como mala respuesta"})]})]})},gV=eye;var cm=O(ae()),iO=(0,yV.memo)(({messageId:e,messagePlainText:t,messageEval:r,onEvalAnswer:a,showCopy:n=!0,showEval:o=!0})=>{let i=n&&t,s=o&&e&&a;return!i&&!s?null:(0,cm.jsx)("div",{className:"flex justify-start mt-2",children:(0,cm.jsxs)("div",{className:"inline-flex items-center gap-0.5 rounded-lg px-0.5 py-0.5 bg-transparent",children:[i&&(0,cm.jsx)(hV,{text:t}),s&&(0,cm.jsx)(gV,{messageId:e,eval:r,handleEvalAnswer:a})]})})});iO.displayName="Actions";c();var bV=O(re()),vV=O(ae()),sO=(0,bV.memo)(({time:e,align:t="left"})=>(0,vV.jsx)("span",{className:`mt-1 text-[11px] text-gray-400 self-end ${t==="right"?"text-right":""}`,children:e}));sO.displayName="Timestamp";c();var xV=O(re()),HT=O(ae()),lO=(0,xV.memo)(({dateLabel:e,agentName:t="Horneross Agent"})=>(0,HT.jsx)("div",{className:"inline-flex items-center justify-center self-center mt-4 mb-4 select-none",children:(0,HT.jsxs)("span",{className:"text-xs leading-4 font-semibold text-gray-600 dark:text-gray-400",children:[e," \u30FB ",t]})}));lO.displayName="DateDivider";c();var wV=e=>e?.parts?.length?e.parts.filter(t=>t?.type==="text"&&typeof t?.text=="string").map(t=>t.text).join(`
|
|
88
|
+
`).trim():"";c();var TV=e=>{let t=lm(e),r=lm();return t.isSame(r,"day")?"Today":t.isSame(r.subtract(1,"day"),"day")?"Yesterday":t.format("dddd, MMM D")},EV=e=>lm(e).format("HH:mm");c();var Ud=O(re());var oo=O(ae()),tye=500,SV=({toolName:e,status:t="complete",args:r={},output:a,text:n,error:o,...i})=>{let[s,l]=(0,Ud.useState)(t),u=(0,Ud.useRef)(null),d=(0,Ud.useRef)(null);(0,Ud.useEffect)(()=>{if(t==="loading"&&s!=="loading"){u.current=Date.now(),l("loading");return}if(t==="complete"&&s==="loading"){let g=u.current?Date.now()-u.current:0,x=Math.max(0,tye-g);x>0?d.current=setTimeout(()=>{l("complete"),u.current=null},x):(l("complete"),u.current=null);return}if(t==="error"){l("error"),u.current=null;return}if(t==="complete"&&s!=="loading"){l("complete");return}return()=>{d.current&&clearTimeout(d.current)}},[t,s]);let f=BT(e);if(!f)return console.warn(`[ToolRenderer] Tool not registered: ${e}`),(0,oo.jsx)(rye,{toolName:e,status:s,text:n,error:o});let p={status:s,toolName:f.displayName||e,text:n,error:o,args:r,output:a,...i},m=f.component;return(0,oo.jsx)(Vt,{mode:"wait",children:(0,oo.jsx)(se.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.3,ease:[.4,0,.2,1]},children:(0,oo.jsx)(m,{...p})},`${e}-${s}`)})},rye=({toolName:e,status:t,text:r,error:a})=>{let n=()=>{switch(t){case"loading":return"bg-blue-50 border-blue-200 text-blue-700 dark:bg-blue-900/20 dark:border-blue-800 dark:text-blue-300";case"error":return"bg-red-50 border-red-200 text-red-700 dark:bg-red-900/20 dark:border-red-800 dark:text-red-300";default:return"bg-gray-50 border-gray-200 text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-300"}};return(0,oo.jsxs)(se.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:`ml-4 w-fit max-w-md rounded-lg border px-3 py-2 text-xs ${n()}`,children:[(0,oo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oo.jsxs)("span",{className:"font-medium",children:["\u26A0\uFE0F ",e]}),t==="loading"&&(0,oo.jsx)("span",{className:"text-[10px]",children:"(Loading...)"})]}),r&&(0,oo.jsx)("div",{className:"mt-1 text-[10px]",children:r}),a&&(0,oo.jsxs)("div",{className:"mt-1 text-[10px] text-red-600 dark:text-red-400",children:["Error: ",a]}),(0,oo.jsx)("div",{className:"mt-2 text-[9px] opacity-50",children:"Tool not registered in TOOL_REGISTRY"})]})};c();function IV(e,t,r,a){let n=new Map,o=new Map,i=new Map,s=-1;return e.forEach((l,u)=>{let d=$T(l);if(!d)return;let{kind:f,phase:p,callId:m,raw:g}=d,x=o.get(f);x||(x=m?`${f}-${m}`:`${f}-${t}-${u}`,o.set(f,x),i.set(f,u));let w=n.get(f);if(w||(w={key:x,finalState:"loading",hadLoadingPhase:!1,data:{},parts:[]},n.set(f,w)),w.parts.push(l),!w.data.toolName){let b=g?.data?.display_name||g?.display_name||g?.data?.name||g?.name||g?.tool_name,v=FT[f]?.displayName;w.data.toolName=b||v||f}if(p==="loading"){w.hadLoadingPhase=!0,w.finalState="loading";let b=g?.data||g||{};if(typeof b=="object"&&b!==null){let T=new Set(["tool_name","status","phase","type"]);Object.keys(b).forEach(E=>{!T.has(E)&&b[E]!==void 0&&(w.data[E]=b[E])})}let v=g?.data?.text||g?.text||g?.message;v&&(w.data.text=v)}else if(p==="complete"){w.finalState="complete",w.hadLoadingPhase||(w.hadLoadingPhase=!0);let b=g?.data||g||{};if(typeof b=="object"&&b!==null){let I=new Set(["tool_name","status","phase","type"]);Object.keys(b).forEach(_=>{!I.has(_)&&b[_]!==void 0&&(w.data[_]=b[_])}),b.data&&typeof b.data=="object"&&(w.data.result=b)}let v=g?.data?.text||g?.text||g?.message;if(v&&(w.data.text=v),f==="think"){let I=g?.data?.arguments?.thought||g?.arguments?.thought||g?.data?.arguments?.input||g?.arguments?.input;if(I&&!w.data.text&&(w.data.text=I),w.data.text&&typeof w.data.text=="string")try{let _=w.data.text.trim();if(_.startsWith("{")||_.startsWith("[")){let A=JSON.parse(_),N=A?.data?.thought||A?.data?.input||A?.data?.formatted||A?.thought||A?.input||A?.formatted||Array.isArray(A?.data?.allThoughts)&&A.data.allThoughts[0]||Array.isArray(A?.allThoughts)&&A.allThoughts[0];N&&typeof N=="string"&&(w.data.text=N)}}catch(_){console.warn("[parseToolEvents] Failed to parse think JSON:",_)}}let T=g?.data?.result||g?.result||g?.output;T&&(w.data.result=T);let E=g?.data?.arguments||g?.arguments||g?.input||g?.args;E&&(w.data.args=E)}else if(p==="error"){w.finalState="error";let b=g?.data?.error||g?.error||g?.message||"Unknown error";w.data.error=typeof b=="string"?b:JSON.stringify(b)}if(a.has(f)&&s===-1){let b=i.get(f),v=`${t}-${b}`;r.get(v)||(s=b)}}),{toolStates:n,firstBlockingIndex:s}}var Tt=O(ae()),_V=(0,Ur.memo)(({text:e,animate:t,onComplete:r,channel:a})=>{let n=(0,Ur.useRef)(!1);(0,Ur.useEffect)(()=>{if(!t){n.current||(n.current=!0,r?.());return}let l=e.length*25,u=setTimeout(()=>{n.current||(n.current=!0,r?.())},l+100);return()=>clearTimeout(u)},[e,t,r]);let i=(s=>s==="agent_builder"?"agent_builder":s==="dashboard"?"dashboard":"default")(a);return(0,Tt.jsx)("div",{className:ML("assistant",i),children:(0,Tt.jsx)("div",{className:PL(i),children:(0,Tt.jsx)(XR,{text:e,animate:!!t})})})});_V.displayName="StreamingTextWithCallback";var kV=(0,Ur.memo)(({messages:e,isStreaming:t,onComponentComplete:r,channel:a,agentName:n,agentIconUrl:o,onTypingStateChange:i,onEvalAnswer:s,onWebSearchExpand:l,onMessageSubmit:u,brandingLogo:d})=>{let p=(ne=>ne==="agent_builder"?"agent_builder":ne==="dashboard"?"dashboard":"default")(a),[m,g]=(0,Ur.useState)(!1),[x,w]=(0,Ur.useState)(new Set),[b,v]=(0,Ur.useState)(new Set),T=(0,Ur.useRef)(null),E=(0,Ur.useRef)(!0),[I,_]=(0,Ur.useState)(new Map),A=(ne,z)=>{let D=`${ne}-${z}`;_($=>{let H=new Map($);return H.set(D,!0),H})};(0,Ur.useEffect)(()=>{let ne=e?.length||0,z=new Set(e?.map(D=>D.id).filter(Boolean)||[]);if(E.current&&ne>0&&!t){v(z),E.current=!1;return}if(t&&!m&&(g(!0),T.current&&clearTimeout(T.current)),t&&m){let D=new Set;z.forEach($=>{b.has($)||D.add($)}),D.size>0&&w(D)}return!t&&m&&(T.current=setTimeout(()=>{g(!1),w(new Set),v(z)},4e3)),()=>{T.current&&clearTimeout(T.current)}},[t,e?.length,m,b]),(0,Ur.useEffect)(()=>{i?.(m)},[m,i]),(0,Ur.useEffect)(()=>()=>{i?.(!1)},[i]);let N=(0,Ur.useMemo)(()=>(e||[]).filter(ne=>!!(ne.parts&&ne.parts.length>0)),[e]),F=(0,Ur.useMemo)(()=>{let ne=N||[];for(let z=ne.length-1;z>=0;z--)if(ne[z].role==="user")return z;return-1},[N]),R=(0,Ur.useMemo)(()=>{let ne=N||[],z=new Set;for(let D=0;D<ne.length;D++){let $=ne[D],H=ne[D-1];$.role==="assistant"&&(D===0||H?.role==="user")&&z.add(D)}return z},[N]);return(0,Tt.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(()=>{let ne=null;return N.map((z,D)=>{let $=z.role==="user",H=!$&&D>F,V=z.id&&x.has(z.id),Q=m&&H&&V,te=R.has(D),Ee=te&&p==="agent_builder",C=!$&&(D===N.length-1||D+1<N.length&&N[D+1].role==="user"),_e=(a==="dashboard"||a==="agent_builder")&&!$,He=_e&&C,M=_e?wV(z):"",Ye=z.createdAt?new Date(z.createdAt):null,ut=Ye?lm(Ye).format("YYYY-MM-DD"):null,yt=!!(ut&&ut!==ne),ze=yt&&Ye?TV(Ye):null,Oe=Ye?EV(Ye):null;return ut&&(ne=ut),(0,Tt.jsxs)(Ur.default.Fragment,{children:[yt&&ze&&(0,Tt.jsx)(lO,{dateLabel:ze,agentName:n}),(0,Tt.jsx)(se.div,{className:"flex flex-col gap-1",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.2},layout:!1,children:(0,Tt.jsx)(oO,{isUser:$,channel:a,showAvatar:te,agentName:n,agentIconUrl:o,children:(0,Tt.jsxs)("div",{className:"flex flex-col w-full",children:[Ee&&d&&(0,Tt.jsx)("div",{className:"flex justify-start mb-2",children:d}),(()=>{let ct=!$&&t&&H&&(!z.parts||z.parts.length===0||!z.parts.some(We=>We.type==="text"||We.type==="data-tool-output"))?[{type:"pulsing-dot-placeholder"},...z.parts||[]]:z.parts||[],Xe=new Set,Pt=IV(ct,z.id||`msg-${D}`,I,Xe),{toolStates:Ve,firstBlockingIndex:bt}=Pt,zt=new Set;return ct.map((We,mr)=>{if(We.type==="pulsing-dot-placeholder")return(0,Tt.jsx)("div",{className:"py-1",children:(0,Tt.jsx)(JR,{})},"pulsing-placeholder");if(We.type==="step-start")return null;let U=$T(We);if(U){let{kind:j}=U,W=BT(j);if(W&&Ve.has(j)){let X=Ve.get(j);if(zt.has(X.key))return null;zt.add(X.key);let ie=W.component;if(j==="create_agent"||j==="update_agent")return(0,Tt.jsx)("div",{className:"w-auto",children:(0,Tt.jsx)(ie,{status:X.finalState,arguments:X.data.arguments||X.data.args,result:X.data.result||X.data.text,error:X.data.error,hadLoadingPhase:X.hadLoadingPhase,isStreaming:m})},X.key);let Re={status:X.finalState,hadLoadingPhase:X.hadLoadingPhase,isStreaming:m,channel:a,onExpand:l,...X.data};return(0,Tt.jsx)(ie,{...Re},X.key)}let ye=U.raw,fe=ye?.data??ye??{},de=fe?.arguments??fe?.input??fe?.args??{},ce=fe?.result??fe?.output??fe,Se=U.phase==="error"?"error":U.phase==="complete"?"complete":"loading",Z=U.callId?`${j}-${U.callId}`:`${j}-${mr}`;return(0,Tt.jsx)(SV,{toolName:j,status:Se,args:de,output:U.phase==="complete"?ce:void 0,text:U.phase==="loading"?U.config.loading:void 0,error:U.phase==="error"?fe?.error||U.config.error:void 0},Z)}if(We.type==="file"){let j=We.url,W=We.filename||We.name||"file",ye=We.mediaType||We.mimeType||"application/octet-stream",fe=We.size||0;if(!j)return null;let de=ye.startsWith("image/"),ce=ye.startsWith("video/"),Se=ye.startsWith("audio/");return(0,Tt.jsxs)("div",{className:"my-2",children:[de&&(0,Tt.jsx)("img",{src:j,alt:W,className:"max-w-xs rounded-xl border border-white/10",style:{maxHeight:"300px",objectFit:"contain"}}),ce&&(0,Tt.jsx)("video",{src:j,controls:!0,className:"max-w-md rounded-xl",style:{maxHeight:"400px"}}),Se&&(0,Tt.jsx)("audio",{src:j,controls:!0,className:"w-full max-w-md"}),!de&&!ce&&!Se&&(0,Tt.jsxs)("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 rounded-lg border border-white/10 transition-colors",children:[(0,Tt.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Tt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})}),(0,Tt.jsxs)("div",{className:"flex flex-col",children:[(0,Tt.jsx)("span",{className:"text-sm font-medium",children:W}),fe>0&&(0,Tt.jsxs)("span",{className:"text-xs text-gray-400",children:[(fe/1024/1024).toFixed(2)," MB"]})]})]})]},mr)}if(We.type==="text"){let j=We?.text||"";if(!j)return null;if($)return(0,Tt.jsx)("div",{className:ML("user",p),children:(0,Tt.jsx)("div",{className:PL(p),children:(0,Tt.jsx)(MT,{enableChunking:!1,children:j})})},mr);let W=m&&V;return(0,Tt.jsx)(_V,{text:j,animate:!!W,channel:a,onComplete:()=>{W&&V&&mr===0&&r?.(z.id||`msg-${Date.now()}`)}},mr)}return null})})(),(0,Tt.jsxs)("div",{className:`ml-2 flex flex-row gap-1 ${$?"justify-end":"justify-between"}`,children:[Oe&&$&&(0,Tt.jsx)(sO,{time:Oe,align:"right"}),_e&&(0,Tt.jsx)(iO,{messageId:z.id,messagePlainText:M,messageEval:z.eval,onEvalAnswer:s,showCopy:!!M,showEval:He})]})]})})},z.id||`msg-${D}`)]},z.id||`msg-${D}`)})})(),t&&N.length>0&&N[N.length-1]?.role==="user"&&p==="agent_builder"&&d&&(0,Tt.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,Tt.jsx)("div",{className:"flex justify-start",children:d}),(0,Tt.jsx)("div",{className:"flex justify-start",children:(0,Tt.jsx)(JR,{})})]})]})});kV.displayName="MessageContent";var CV=kV;c();var VT=O(re());function AV(e){let t=(0,VT.useRef)(new Map);return{allMessages:(0,VT.useMemo)(()=>{let a=t.current;return e.map((n,o)=>{let i=typeof n.id=="string"&&n.id.trim().length>0?n.id:`msg-${o}-${Date.now()}`,s=a.get(i);if(!s){let l=n?.createdAt||n?.timestamp,u=l?new Date(l):new Date;s=Number.isNaN(u.getTime())?new Date:u,a.set(i,s)}return{...n,id:i,createdAt:s}})},[e])}}c();var Pu=O(re());function LV(e,t,r={}){let a=r.initialVisible||40,n=r.loadMoreIncrement||20,[o,i]=(0,Pu.useState)(a),[s,l]=(0,Pu.useState)(!1),u=(0,Pu.useRef)(!1);(0,Pu.useEffect)(()=>{let m=Math.min(a,e);i(m),u.current=!1},[t,a]),(0,Pu.useEffect)(()=>{i(m=>{let g=Math.min(a,e),x=Math.min(e,Math.max(m,g));return x===m?m:x})},[e,a]);let d=Math.max(0,e-o),f=d>0;return{totalMessagesLoaded:o,isLoadingMore:s,hiddenLocalCount:d,hasHiddenLocalMessages:f,loadMore:async m=>{if(s)return;l(!0),await new Promise(x=>setTimeout(x,100));let g=e-o;if(g>0){let x=g<=n?e:o+n;i(x),l(!1);return}if(m){try{await Promise.resolve(m()),i(x=>x+n)}finally{l(!1)}return}l(!1)},initialScrollAppliedRef:u}}c();var Ti=O(re());function NV(e,t){let[r,a]=(0,Ti.useState)(!1),n=(0,Ti.useRef)(void 0),o=(0,Ti.useRef)(!1),i=(0,Ti.useCallback)((s=!0)=>{let l=e.current;l&&(l.scrollTo({top:l.scrollHeight,behavior:s?"smooth":"auto"}),a(!1))},[e]);return(0,Ti.useEffect)(()=>{if(!t.isStreaming)return;let s=setInterval(()=>i(!1),300);return()=>clearInterval(s)},[t.isStreaming,i]),(0,Ti.useLayoutEffect)(()=>{if(t.conversationId!==n.current&&(n.current=t.conversationId,o.current=!1),t.displayMessagesLength===0||t.shouldMaintainScroll||o.current)return;let l=()=>{let u=e.current;u&&(u.scrollTop=u.scrollHeight)};requestAnimationFrame(()=>{l(),a(!1),o.current=!0,[32,120,240].forEach(d=>{setTimeout(l,d)})})},[t.conversationId,t.displayMessagesLength,t.shouldMaintainScroll,e]),{showScrollToBottom:r,setShowScrollToBottom:a,scrollToBottom:i,initialScrollAppliedRef:o}}c();var qT=O(re());function RV(e,t){let{onNearTop:r,onNearBottom:a,topThreshold:n=100,bottomThreshold:o=100,enabled:i=!0}=t,s=(0,qT.useCallback)(()=>{let l=e.current;if(!l||!i)return;let u=l.scrollTop<n,d=l.scrollHeight-l.scrollTop-l.clientHeight<o;u&&r&&r(),d&&a&&a()},[e,i,n,o,r,a]);return(0,qT.useEffect)(()=>{let l=e.current;if(!(!l||!i))return l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)},[s,e,i]),{handleScroll:s}}c();var GT=O(re());function OV(e,t,r,a,n){let[o,i]=(0,GT.useState)(!1);(0,GT.useEffect)(()=>{e&&!o?i(!0):!e&&o&&!t&&i(!1)},[e,o,t]);let s=r?.[r.length-1]?.role;return{showAgentTyping:o,setShowAgentTyping:i,shouldShowTypingIndicator:(n||n===void 0)&&(a||!!o&&!a&&!e&&s==="user")}}c();var zd=O(re());function DV(e){let[t,r]=(0,zd.useState)([]),[a,n]=(0,zd.useState)(!1),o=(0,zd.useCallback)(async l=>{if(!e||l.length===0)return r(l),l;try{r(l.map((p,m)=>Object.assign({},p,{_uploading:!0,_tempId:`temp-${m}`,name:p.name,type:p.type,size:p.size}))),n(!0);let u=new FormData;l.forEach(p=>u.append("file",p));let d=await fetch(`/api/upload-attachment?conversationId=${e}`,{method:"POST",body:u});if(!d.ok)throw new Error("Upload failed");let{files:f}=await d.json();return r(f),n(!1),f}catch{return r(l.map(d=>Object.assign({},d,{_error:!0,name:d.name,type:d.type,size:d.size}))),n(!1),[]}},[e]),i=(0,zd.useCallback)(l=>{r(u=>u.filter((d,f)=>f!==l))},[]),s=(0,zd.useCallback)(()=>{r([])},[]);return{files:t,setFiles:r,isUploadingFiles:a,uploadFiles:o,removeFile:i,clearFiles:s}}c();c();c();c();function uO(e,t=1,r={}){let{indent:a=" ",includeEmptyLines:n=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof a!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof a}\``);if(t===0)return e;let o=n?/^/gm:/^(?!\s*$)/gm;return e.replace(o,a.repeat(t))}c();var cO=O(MV(),1);var PV=/\s+at.*[(\s](.*)\)?/,aye=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,nye=typeof cO.default.homedir>"u"?"":cO.default.homedir().replace(/\\/g,"/");function dO(e,{pretty:t=!1,basePath:r}={}){let a=r&&new RegExp(`(at | \\()${ty(r.replace(/\\/g,"/"))}`,"g");if(typeof e=="string")return e.replace(/\\/g,"/").split(`
|
|
89
|
+
`).filter(n=>{let o=n.match(PV);if(o===null||!o[1])return!0;let i=o[1];return i.includes(".app/Contents/Resources/electron.asar")||i.includes(".app/Contents/Resources/default_app.asar")||i.includes("node_modules/electron/dist/resources/electron.asar")||i.includes("node_modules/electron/dist/resources/default_app.asar")?!1:!aye.test(i)}).filter(n=>n.trim()!=="").map(n=>(a&&(n=n.replace(a,"$1")),t&&(n=n.replace(PV,(o,i)=>o.replace(i,i.replace(nye,"~")))),n)).join(`
|
|
90
|
+
`)}var oye=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),ny=class extends Error{#e;name="AggregateError";constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);t=t.map(a=>a instanceof Error?a:a!==null&&typeof a=="object"?Object.assign(new Error(a.message),a):new Error(a));let r=t.map(a=>typeof a.stack=="string"&&a.stack.length>0?oye(dO(a.stack)):String(a)).join(`
|
|
91
|
+
`);r=`
|
|
92
|
+
`+uO(r,4),super(r),this.#e=t}get errors(){return this.#e.slice()}};var fO=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}},UV=e=>globalThis.DOMException===void 0?new fO(e):new DOMException(e),zV=e=>{let t=e.reason===void 0?UV("This operation was aborted."):e.reason;return t instanceof Error?t:UV(t)};async function pO(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:a=!0,signal:n}={}){return new Promise((o,i)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);let s=[],l=[],u=new Map,d=!1,f=!1,p=!1,m=0,g=0,x=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),w=v=>{d=!0,f=!0,i(v)};n&&(n.aborted&&w(zV(n)),n.addEventListener("abort",()=>{w(zV(n))}));let b=async()=>{if(f)return;let v=await x.next(),T=g;if(g++,v.done){if(p=!0,m===0&&!f){if(!a&&l.length>0){w(new ny(l));return}if(f=!0,u.size===0){o(s);return}let E=[];for(let[I,_]of s.entries())u.get(I)!==FV&&E.push(_);o(E)}return}m++,(async()=>{try{let E=await v.value;if(f)return;let I=await t(E,T);I===FV&&u.set(T,I),s[T]=I,m--,await b()}catch(E){if(a)w(E);else{l.push(E),m--;try{await b()}catch(I){w(I)}}}})()};(async()=>{for(let v=0;v<r;v++){try{await b()}catch(T){w(T);break}if(p||d)break}})()})}var FV=Symbol("skip");var io=O(re());function iye(e={}){let[t,r]=io.default.useState(!1),[a,n]=(0,io.useState)(!1),[o,i]=(0,io.useState)([]),s=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",l=lv(()=>`${s??""}/api/generate-upload-links`,Bh("POST")),u=(0,io.useCallback)(async g=>{let x=[];try{r(!0);let w=await l.trigger(g.map(b=>({case:b.case,fileName:b?.fileName||b.file.name,mimeType:b.file.type,agentId:b.agentId,formId:b.formId,conversationId:b.conversationId})))||[];w.length>0&&await pO(w,async({signedUrl:b},v)=>Sc.put(b,g[v].file,{headers:{"Content-Type":g[v]?.file?.type}}),{concurrency:w.length}),r(!1),x=w.map(b=>b.fileUrl)}catch(w){console.error(w)}finally{return r(!1),x}},[l.trigger]),d=(0,io.useCallback)(async g=>{let w=Array.from(g).filter(v=>!o.find(T=>T.name===v.name));if(w.find(v=>v.size>1e7))return alert("File size is limited to 10MB");{let v=[...o,...w];await e?.changeCallback?.(v),i(v)}},[e?.changeCallback,o]),f=(0,io.useCallback)(g=>{g.preventDefault(),n(!0)},[]),p=(0,io.useCallback)(g=>{g.preventDefault(),n(!1)},[]),m=(0,io.useCallback)(g=>{g.preventDefault(),n(!1),g.dataTransfer.files&&g.dataTransfer.files.length>0&&(d(g.dataTransfer.files),g.dataTransfer.clearData())},[d]);return(0,io.useEffect)(()=>(e?.ref?.current&&(e?.ref?.current.addEventListener("dragover",f),e?.ref?.current.addEventListener("dragleave",p),e?.ref?.current.addEventListener("drop",m)),()=>{e?.ref?.current&&(e?.ref?.current.removeEventListener("dragover",f),e?.ref?.current.removeEventListener("dragleave",p),e?.ref?.current.removeEventListener("drop",m))})),e?.ref?.current,{generateLinkMutation:l,upload:u,isUploading:t,isDragOver:a}}var mO=iye;c();c();var Ii=O(re(),1);c();c();c();var BV="vercel.ai.error",sye=Symbol.for(BV),$V,lye=class jV extends Error{constructor({name:t,message:r,cause:a}){super(r),this[$V]=!0,this.name=t,this.cause=a}static isInstance(t){return jV.hasMarker(t,BV)}static hasMarker(t,r){let a=Symbol.for(r);return t!=null&&typeof t=="object"&&a in t&&typeof t[a]=="boolean"&&t[a]===!0}};$V=sye;var zo=lye,uye="AI_APICallError",cye=`vercel.ai.error.${uye}`,dye=Symbol.for(cye),fye;fye=dye;var pye="AI_EmptyResponseBodyError",mye=`vercel.ai.error.${pye}`,hye=Symbol.for(mye),gye;gye=hye;function HV(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var VV="AI_InvalidArgumentError",qV=`vercel.ai.error.${VV}`,yye=Symbol.for(qV),GV,ZT=class extends zo{constructor({message:e,cause:t,argument:r}){super({name:VV,message:e,cause:t}),this[GV]=!0,this.argument=r}static isInstance(e){return zo.hasMarker(e,qV)}};GV=yye;var bye="AI_InvalidPromptError",vye=`vercel.ai.error.${bye}`,xye=Symbol.for(vye),wye;wye=xye;var Tye="AI_InvalidResponseDataError",Eye=`vercel.ai.error.${Tye}`,Sye=Symbol.for(Eye),Iye;Iye=Sye;var ZV="AI_JSONParseError",WV=`vercel.ai.error.${ZV}`,_ye=Symbol.for(WV),YV,dm=class extends zo{constructor({text:e,cause:t}){super({name:ZV,message:`JSON parsing failed: Text: ${e}.
|
|
93
|
+
Error message: ${HV(t)}`,cause:t}),this[YV]=!0,this.text=e}static isInstance(e){return zo.hasMarker(e,WV)}};YV=_ye;var kye="AI_LoadAPIKeyError",Cye=`vercel.ai.error.${kye}`,Aye=Symbol.for(Cye),Lye;Lye=Aye;var Nye="AI_LoadSettingError",Rye=`vercel.ai.error.${Nye}`,Oye=Symbol.for(Rye),Dye;Dye=Oye;var Mye="AI_NoContentGeneratedError",Pye=`vercel.ai.error.${Mye}`,Uye=Symbol.for(Pye),zye;zye=Uye;var Fye="AI_NoSuchModelError",Bye=`vercel.ai.error.${Fye}`,$ye=Symbol.for(Bye),jye;jye=$ye;var Hye="AI_TooManyEmbeddingValuesForCallError",Vye=`vercel.ai.error.${Hye}`,qye=Symbol.for(Vye),Gye;Gye=qye;var KV="AI_TypeValidationError",XV=`vercel.ai.error.${KV}`,Zye=Symbol.for(XV),JV,Wye=class hO extends zo{constructor({value:t,cause:r}){super({name:KV,message:`Type validation failed: Value: ${JSON.stringify(t)}.
|
|
94
|
+
Error message: ${HV(r)}`,cause:r}),this[JV]=!0,this.value=t}static isInstance(t){return zo.hasMarker(t,XV)}static wrap({value:t,cause:r}){return hO.isInstance(r)&&r.value===t?r:new hO({value:t,cause:r})}};JV=Zye;var so=Wye,Yye="AI_UnsupportedFunctionalityError",Kye=`vercel.ai.error.${Yye}`,Xye=Symbol.for(Kye),Jye;Jye=Xye;c();c();var WT=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function gO(e){}function QV(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=gO,onError:r=gO,onRetry:a=gO,onComment:n}=e,o="",i=!0,s,l="",u="";function d(x){let w=i?x.replace(/^\xEF\xBB\xBF/,""):x,[b,v]=Qye(`${o}${w}`);for(let T of b)f(T);o=v,i=!1}function f(x){if(x===""){m();return}if(x.startsWith(":")){n&&n(x.slice(x.startsWith(": ")?2:1));return}let w=x.indexOf(":");if(w!==-1){let b=x.slice(0,w),v=x[w+1]===" "?2:1,T=x.slice(w+v);p(b,T,x);return}p(x,"",x)}function p(x,w,b){switch(x){case"event":u=w;break;case"data":l=`${l}${w}
|
|
95
|
+
`;break;case"id":s=w.includes("\0")?void 0:w;break;case"retry":/^\d+$/.test(w)?a(parseInt(w,10)):r(new WT(`Invalid \`retry\` value: "${w}"`,{type:"invalid-retry",value:w,line:b}));break;default:r(new WT(`Unknown field "${x.length>20?`${x.slice(0,20)}\u2026`:x}"`,{type:"unknown-field",field:x,value:w,line:b}));break}}function m(){l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(`
|
|
96
|
+
`)?l.slice(0,-1):l}),s=void 0,l="",u=""}function g(x={}){o&&x.consume&&f(o),i=!0,s=void 0,l="",u="",o=""}return{feed:d,reset:g}}function Qye(e){let t=[],r="",a=0;for(;a<e.length;){let n=e.indexOf("\r",a),o=e.indexOf(`
|
|
97
|
+
`,a),i=-1;if(n!==-1&&o!==-1?i=Math.min(n,o):n!==-1?n===e.length-1?i=-1:i=n:o!==-1&&(i=o),i===-1){r=e.slice(a);break}else{let s=e.slice(a,i);t.push(s),a=i+1,e[a-1]==="\r"&&e[a]===`
|
|
98
|
+
`&&a++}}return[t,r]}var fm=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:a}={}){let n;super({start(o){n=QV({onEvent:i=>{o.enqueue(i)},onError(i){t==="terminate"?o.error(i):typeof t=="function"&&t(i)},onRetry:r,onComment:a})},transform(o){n.feed(o)}})}};c();c();c();var tq=Symbol("Let zodToJsonSchema decide on which parser to use");var eq={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},rq=e=>typeof e=="string"?{...eq,name:e}:{...eq,...e};c();var aq=e=>{let t=rq(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([a,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,a],jsonSchema:void 0}]))}};c();function yO(e,t,r,a){a?.errorMessages&&r&&(e.errorMessage={...e.errorMessage,[t]:r})}function Ot(e,t,r,a,n){e[t]=r,yO(e,t,a,n)}c();var YT=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};c();c();c();function Cr(e){if(e.target!=="openAi")return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?YT(t,e.currentPath):t.join("/")}}c();function nq(e,t){let r={type:"array"};return e.type?._def&&e.type?._def?.typeName!==et.ZodAny&&(r.items=Je(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&Ot(r,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&Ot(r,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(Ot(r,"minItems",e.exactLength.value,e.exactLength.message,t),Ot(r,"maxItems",e.exactLength.value,e.exactLength.message,t)),r}c();function oq(e,t){let r={type:"integer",format:"int64"};if(!e.checks)return r;for(let a of e.checks)switch(a.kind){case"min":t.target==="jsonSchema7"?a.inclusive?Ot(r,"minimum",a.value,a.message,t):Ot(r,"exclusiveMinimum",a.value,a.message,t):(a.inclusive||(r.exclusiveMinimum=!0),Ot(r,"minimum",a.value,a.message,t));break;case"max":t.target==="jsonSchema7"?a.inclusive?Ot(r,"maximum",a.value,a.message,t):Ot(r,"exclusiveMaximum",a.value,a.message,t):(a.inclusive||(r.exclusiveMaximum=!0),Ot(r,"maximum",a.value,a.message,t));break;case"multipleOf":Ot(r,"multipleOf",a.value,a.message,t);break}return r}c();function iq(){return{type:"boolean"}}c();function KT(e,t){return Je(e.type._def,t)}c();var sq=(e,t)=>Je(e.innerType._def,t);c();function bO(e,t,r){let a=r??t.dateStrategy;if(Array.isArray(a))return{anyOf:a.map((n,o)=>bO(e,t,n))};switch(a){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ebe(e,t)}}var ebe=(e,t)=>{let r={type:"integer",format:"unix-time"};if(t.target==="openApi3")return r;for(let a of e.checks)switch(a.kind){case"min":Ot(r,"minimum",a.value,a.message,t);break;case"max":Ot(r,"maximum",a.value,a.message,t);break}return r};c();function lq(e,t){return{...Je(e.innerType._def,t),default:e.defaultValue()}}c();function uq(e,t){return t.effectStrategy==="input"?Je(e.schema._def,t):Cr(t)}c();function cq(e){return{type:"string",enum:Array.from(e.values)}}c();var tbe=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function dq(e,t){let r=[Je(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Je(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),a=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,n=[];return r.forEach(o=>{if(tbe(o))n.push(...o.allOf),o.unevaluatedProperties===void 0&&(a=void 0);else{let i=o;if("additionalProperties"in o&&o.additionalProperties===!1){let{additionalProperties:s,...l}=o;i=l}else a=void 0;n.push(i)}}),n.length?{allOf:n,...a}:void 0}c();function fq(e,t){let r=typeof e.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[e.value]}:{type:r==="bigint"?"integer":r,const:e.value}}c();c();c();var vO,Ei={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:()=>(vO===void 0&&(vO=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),vO),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 XT(e,t){let r={type:"string"};if(e.checks)for(let a of e.checks)switch(a.kind){case"min":Ot(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value,a.message,t);break;case"max":Ot(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value,a.message,t);break;case"email":switch(t.emailStrategy){case"format:email":Si(r,"email",a.message,t);break;case"format:idn-email":Si(r,"idn-email",a.message,t);break;case"pattern:zod":bn(r,Ei.email,a.message,t);break}break;case"url":Si(r,"uri",a.message,t);break;case"uuid":Si(r,"uuid",a.message,t);break;case"regex":bn(r,a.regex,a.message,t);break;case"cuid":bn(r,Ei.cuid,a.message,t);break;case"cuid2":bn(r,Ei.cuid2,a.message,t);break;case"startsWith":bn(r,RegExp(`^${xO(a.value,t)}`),a.message,t);break;case"endsWith":bn(r,RegExp(`${xO(a.value,t)}$`),a.message,t);break;case"datetime":Si(r,"date-time",a.message,t);break;case"date":Si(r,"date",a.message,t);break;case"time":Si(r,"time",a.message,t);break;case"duration":Si(r,"duration",a.message,t);break;case"length":Ot(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value,a.message,t),Ot(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value,a.message,t);break;case"includes":{bn(r,RegExp(xO(a.value,t)),a.message,t);break}case"ip":{a.version!=="v6"&&Si(r,"ipv4",a.message,t),a.version!=="v4"&&Si(r,"ipv6",a.message,t);break}case"base64url":bn(r,Ei.base64url,a.message,t);break;case"jwt":bn(r,Ei.jwt,a.message,t);break;case"cidr":{a.version!=="v6"&&bn(r,Ei.ipv4Cidr,a.message,t),a.version!=="v4"&&bn(r,Ei.ipv6Cidr,a.message,t);break}case"emoji":bn(r,Ei.emoji(),a.message,t);break;case"ulid":{bn(r,Ei.ulid,a.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{Si(r,"binary",a.message,t);break}case"contentEncoding:base64":{Ot(r,"contentEncoding","base64",a.message,t);break}case"pattern:zod":{bn(r,Ei.base64,a.message,t);break}}break}case"nanoid":bn(r,Ei.nanoid,a.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function xO(e,t){return t.patternStrategy==="escape"?abe(e):e}var rbe=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function abe(e){let t="";for(let r=0;r<e.length;r++)rbe.has(e[r])||(t+="\\"),t+=e[r];return t}function Si(e,t,r,a){e.format||e.anyOf?.some(n=>n.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&a.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...r&&a.errorMessages&&{errorMessage:{format:r}}})):Ot(e,"format",t,r,a)}function bn(e,t,r,a){e.pattern||e.allOf?.some(n=>n.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&a.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:pq(t,a),...r&&a.errorMessages&&{errorMessage:{pattern:r}}})):Ot(e,"pattern",pq(t,a),r,a)}function pq(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},a=r.i?e.source.toLowerCase():e.source,n="",o=!1,i=!1,s=!1;for(let l=0;l<a.length;l++){if(o){n+=a[l],o=!1;continue}if(r.i){if(i){if(a[l].match(/[a-z]/)){s?(n+=a[l],n+=`${a[l-2]}-${a[l]}`.toUpperCase(),s=!1):a[l+1]==="-"&&a[l+2]?.match(/[a-z]/)?(n+=a[l],s=!0):n+=`${a[l]}${a[l].toUpperCase()}`;continue}}else if(a[l].match(/[a-z]/)){n+=`[${a[l]}${a[l].toUpperCase()}]`;continue}}if(r.m){if(a[l]==="^"){n+=`(^|(?<=[\r
|
|
99
|
+
]))`;continue}else if(a[l]==="$"){n+=`($|(?=[\r
|
|
100
|
+
]))`;continue}}if(r.s&&a[l]==="."){n+=i?`${a[l]}\r
|
|
101
|
+
`:`[${a[l]}\r
|
|
102
|
+
]`;continue}n+=a[l],a[l]==="\\"?o=!0:i&&a[l]==="]"?i=!1:!i&&a[l]==="["&&(i=!0)}try{new RegExp(n)}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 n}function JT(e,t){if(t.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),t.target==="openApi3"&&e.keyType?._def.typeName===et.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((a,n)=>({...a,[n]:Je(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",n]})??Cr(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let r={type:"object",additionalProperties:Je(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if(t.target==="openApi3")return r;if(e.keyType?._def.typeName===et.ZodString&&e.keyType._def.checks?.length){let{type:a,...n}=XT(e.keyType._def,t);return{...r,propertyNames:n}}else{if(e.keyType?._def.typeName===et.ZodEnum)return{...r,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===et.ZodBranded&&e.keyType._def.type._def.typeName===et.ZodString&&e.keyType._def.type._def.checks?.length){let{type:a,...n}=KT(e.keyType._def,t);return{...r,propertyNames:n}}}return r}function mq(e,t){if(t.mapStrategy==="record")return JT(e,t);let r=Je(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Cr(t),a=Je(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Cr(t);return{type:"array",maxItems:125,items:{type:"array",items:[r,a],minItems:2,maxItems:2}}}c();function hq(e){let t=e.values,a=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),n=Array.from(new Set(a.map(o=>typeof o)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:a}}c();function gq(e){return e.target==="openAi"?void 0:{not:Cr({...e,currentPath:[...e.currentPath,"not"]})}}c();function yq(e){return e.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}c();c();var oy={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function vq(e,t){if(t.target==="openApi3")return bq(e,t);let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(a=>a._def.typeName in oy&&(!a._def.checks||!a._def.checks.length))){let a=r.reduce((n,o)=>{let i=oy[o._def.typeName];return i&&!n.includes(i)?[...n,i]:n},[]);return{type:a.length>1?a:a[0]}}else if(r.every(a=>a._def.typeName==="ZodLiteral"&&!a.description)){let a=r.reduce((n,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...n,i];case"bigint":return[...n,"integer"];case"object":if(o._def.value===null)return[...n,"null"];case"symbol":case"undefined":case"function":default:return n}},[]);if(a.length===r.length){let n=a.filter((o,i,s)=>s.indexOf(o)===i);return{type:n.length>1?n:n[0],enum:r.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(r.every(a=>a._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((a,n)=>[...a,...n._def.values.filter(o=>!a.includes(o))],[])};return bq(e,t)}var bq=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((a,n)=>Je(a._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(a=>!!a&&(!t.strictUnions||typeof a=="object"&&Object.keys(a).length>0));return r.length?{anyOf:r}:void 0};function xq(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target==="openApi3"?{type:oy[e.innerType._def.typeName],nullable:!0}:{type:[oy[e.innerType._def.typeName],"null"]};if(t.target==="openApi3"){let a=Je(e.innerType._def,{...t,currentPath:[...t.currentPath]});return a&&"$ref"in a?{allOf:[a],nullable:!0}:a&&{...a,nullable:!0}}let r=Je(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}c();function wq(e,t){let r={type:"number"};if(!e.checks)return r;for(let a of e.checks)switch(a.kind){case"int":r.type="integer",yO(r,"type",a.message,t);break;case"min":t.target==="jsonSchema7"?a.inclusive?Ot(r,"minimum",a.value,a.message,t):Ot(r,"exclusiveMinimum",a.value,a.message,t):(a.inclusive||(r.exclusiveMinimum=!0),Ot(r,"minimum",a.value,a.message,t));break;case"max":t.target==="jsonSchema7"?a.inclusive?Ot(r,"maximum",a.value,a.message,t):Ot(r,"exclusiveMaximum",a.value,a.message,t):(a.inclusive||(r.exclusiveMaximum=!0),Ot(r,"maximum",a.value,a.message,t));break;case"multipleOf":Ot(r,"multipleOf",a.value,a.message,t);break}return r}c();function Tq(e,t){let r=t.target==="openAi",a={type:"object",properties:{}},n=[],o=e.shape();for(let s in o){let l=o[s];if(l===void 0||l._def===void 0)continue;let u=obe(l);u&&r&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let d=Je(l._def,{...t,currentPath:[...t.currentPath,"properties",s],propertyPath:[...t.currentPath,"properties",s]});d!==void 0&&(a.properties[s]=d,u||n.push(s))}n.length&&(a.required=n);let i=nbe(e,t);return i!==void 0&&(a.additionalProperties=i),a}function nbe(e,t){if(e.catchall._def.typeName!=="ZodNever")return Je(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 obe(e){try{return e.isOptional()}catch{return!0}}c();var Eq=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return Je(e.innerType._def,t);let r=Je(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:Cr(t)},r]}:Cr(t)};c();var Sq=(e,t)=>{if(t.pipeStrategy==="input")return Je(e.in._def,t);if(t.pipeStrategy==="output")return Je(e.out._def,t);let r=Je(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),a=Je(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,a].filter(n=>n!==void 0)}};c();function Iq(e,t){return Je(e.type._def,t)}c();function _q(e,t){let a={type:"array",uniqueItems:!0,items:Je(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&Ot(a,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&Ot(a,"maxItems",e.maxSize.value,e.maxSize.message,t),a}c();function kq(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,a)=>Je(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[]),additionalItems:Je(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,a)=>Je(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[])}}c();function Cq(e){return{not:Cr(e)}}c();function Aq(e){return Cr(e)}c();var Lq=(e,t)=>Je(e.innerType._def,t);var Nq=(e,t,r)=>{switch(t){case et.ZodString:return XT(e,r);case et.ZodNumber:return wq(e,r);case et.ZodObject:return Tq(e,r);case et.ZodBigInt:return oq(e,r);case et.ZodBoolean:return iq();case et.ZodDate:return bO(e,r);case et.ZodUndefined:return Cq(r);case et.ZodNull:return yq(r);case et.ZodArray:return nq(e,r);case et.ZodUnion:case et.ZodDiscriminatedUnion:return vq(e,r);case et.ZodIntersection:return dq(e,r);case et.ZodTuple:return kq(e,r);case et.ZodRecord:return JT(e,r);case et.ZodLiteral:return fq(e,r);case et.ZodEnum:return cq(e);case et.ZodNativeEnum:return hq(e);case et.ZodNullable:return xq(e,r);case et.ZodOptional:return Eq(e,r);case et.ZodMap:return mq(e,r);case et.ZodSet:return _q(e,r);case et.ZodLazy:return()=>e.getter()._def;case et.ZodPromise:return Iq(e,r);case et.ZodNaN:case et.ZodNever:return gq(r);case et.ZodEffects:return uq(e,r);case et.ZodAny:return Cr(r);case et.ZodUnknown:return Aq(r);case et.ZodDefault:return lq(e,r);case et.ZodBranded:return KT(e,r);case et.ZodReadonly:return Lq(e,r);case et.ZodCatch:return sq(e,r);case et.ZodPipeline:return Sq(e,r);case et.ZodFunction:case et.ZodVoid:case et.ZodSymbol:return;default:return(a=>{})(t)}};function Je(e,t,r=!1){let a=t.seen.get(e);if(t.override){let s=t.override?.(e,t,a,r);if(s!==tq)return s}if(a&&!r){let s=ibe(a,t);if(s!==void 0)return s}let n={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,n);let o=Nq(e,e.typeName,t),i=typeof o=="function"?Je(o(),t):o;if(i&&sbe(e,t,i),t.postProcess){let s=t.postProcess(i,e,t);return n.jsonSchema=i,s}return n.jsonSchema=i,i}var ibe=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:YT(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,a)=>t.currentPath[a]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),Cr(t)):t.$refStrategy==="seen"?Cr(t):void 0}},sbe=(e,t,r)=>(e.description&&(r.description=e.description,t.markdownDescription&&(r.markdownDescription=e.description)),r);c();c();var Rq=(e,t)=>{let r=aq(t),a=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((l,[u,d])=>({...l,[u]:Je(d._def,{...r,currentPath:[...r.basePath,r.definitionPath,u]},!0)??Cr(r)}),{}):void 0,n=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=Je(e._def,n===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,n]},!1)??Cr(r),i=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;i!==void 0&&(o.title=i),r.flags.hasReferencedOpenAiAnyType&&(a||(a={}),a[r.openAiAnyTypeName]||(a[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}));let s=n===void 0?a?{...o,[r.definitionPath]:a}:o:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,n].join("/"),[r.definitionPath]:{...a,[n]:o}};return r.target==="jsonSchema7"?s.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(s.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in s||"oneOf"in s||"allOf"in s||"type"in s&&Array.isArray(s.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),s};var Oq=Rq;var ol=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{let n=()=>{let o=r.length,i=new Array(t);for(let s=0;s<t;s++)i[s]=r[Math.random()*o|0];return i.join("")};if(e==null)return n;if(r.includes(a))throw new ZT({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${r}".`});return()=>`${e}${a}${n()}`},Dq=ol();var lbe=/"__proto__"\s*:/,ube=/"constructor"\s*:/;function cbe(e){let t=JSON.parse(e);return t===null||typeof t!="object"||lbe.test(e)===!1&&ube.test(e)===!1?t:dbe(t)}function dbe(e){let t=[e];for(;t.length;){let r=t;t=[];for(let a of r){if(Object.prototype.hasOwnProperty.call(a,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in a){let o=a[n];o&&typeof o=="object"&&t.push(o)}}}return e}function fbe(e){let{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{return cbe(e)}finally{Error.stackTraceLimit=t}}var QT=Symbol.for("vercel.ai.validator");function pbe(e){return{[QT]:!0,validate:e}}function mbe(e){return typeof e=="object"&&e!==null&&QT in e&&e[QT]===!0&&"validate"in e}function hbe(e){return mbe(e)?e:gbe(e)}function gbe(e){return pbe(async t=>{let r=await e["~standard"].validate(t);return r.issues==null?{success:!0,value:r.value}:{success:!1,error:new so({value:t,cause:r.issues})}})}async function TO({value:e,schema:t}){let r=await eE({value:e,schema:t});if(!r.success)throw so.wrap({value:e,cause:r.error});return r.value}async function eE({value:e,schema:t}){let r=hbe(t);try{if(r.validate==null)return{success:!0,value:e,rawValue:e};let a=await r.validate(e);return a.success?{success:!0,value:a.value,rawValue:e}:{success:!1,error:so.wrap({value:e,cause:a.error}),rawValue:e}}catch(a){return{success:!1,error:so.wrap({value:e,cause:a}),rawValue:e}}}async function pm({text:e,schema:t}){try{let r=fbe(e);return t==null?{success:!0,value:r,rawValue:r}:await eE({value:r,schema:t})}catch(r){return{success:!1,error:dm.isInstance(r)?r:new dm({text:e,cause:r}),rawValue:void 0}}}function Mq({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new fm).pipeThrough(new TransformStream({async transform({data:r},a){r!=="[DONE]"&&a.enqueue(await pm({text:r,schema:t}))}}))}async function Fd(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}function ybe(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1;return EO(Oq(e,{$refStrategy:a?"root":"none",target:"jsonSchema7"}),{validate:async n=>{let o=await e.safeParseAsync(n);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function bbe(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1,n=Pc(e,{target:"draft-7",io:"output",reused:a?"ref":"inline"});return EO(n,{validate:async o=>{let i=await Uc(e,o);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function vbe(e){return"_zod"in e}function xbe(e,t){return vbe(e)?bbe(e,t):ybe(e,t)}var wO=Symbol.for("vercel.ai.schema");function EO(e,{validate:t}={}){return{[wO]:!0,_type:void 0,[QT]:!0,jsonSchema:e,validate:t}}function wbe(e){return typeof e=="object"&&e!==null&&wO in e&&e[wO]===!0&&"jsonSchema"in e&&"validate"in e}function Pq(e){return e==null?EO({properties:{},additionalProperties:!1}):wbe(e)?e:xbe(e)}var{btoa:T_t,atob:E_t}=globalThis;var Tbe=Object.defineProperty,Ebe=(e,t)=>{for(var r in t)Tbe(e,r,{get:t[r],enumerable:!0})},Sbe="AI_NoOutputSpecifiedError",Ibe=`vercel.ai.error.${Sbe}`,_be=Symbol.for(Ibe),kbe;kbe=_be;var Cbe="AI_InvalidArgumentError",Abe=`vercel.ai.error.${Cbe}`,Lbe=Symbol.for(Abe),Nbe;Nbe=Lbe;var Rbe="AI_InvalidStreamPartError",Obe=`vercel.ai.error.${Rbe}`,Dbe=Symbol.for(Obe),Mbe;Mbe=Dbe;var Pbe="AI_InvalidToolInputError",Ube=`vercel.ai.error.${Pbe}`,zbe=Symbol.for(Ube),Fbe;Fbe=zbe;var Bbe="AI_MCPClientError",$be=`vercel.ai.error.${Bbe}`,jbe=Symbol.for($be),Hbe;Hbe=jbe;var Vbe="AI_NoImageGeneratedError",qbe=`vercel.ai.error.${Vbe}`,Gbe=Symbol.for(qbe),Zbe;Zbe=Gbe;var Fq="AI_NoObjectGeneratedError",Bq=`vercel.ai.error.${Fq}`,Wbe=Symbol.for(Bq),$q,Uq=class extends zo{constructor({message:e="No object generated.",cause:t,text:r,response:a,usage:n,finishReason:o}){super({name:Fq,message:e,cause:t}),this[$q]=!0,this.text=r,this.response=a,this.usage=n,this.finishReason=o}static isInstance(e){return zo.hasMarker(e,Bq)}};$q=Wbe;var Ybe="AI_NoOutputGeneratedError",Kbe=`vercel.ai.error.${Ybe}`,Xbe=Symbol.for(Kbe),Jbe;Jbe=Xbe;var Qbe="AI_NoSuchToolError",eve=`vercel.ai.error.${Qbe}`,tve=Symbol.for(eve),rve;rve=tve;var ave="AI_ToolCallRepairError",nve=`vercel.ai.error.${ave}`,ove=Symbol.for(nve),ive;ive=ove;var sve="AI_InvalidDataContentError",lve=`vercel.ai.error.${sve}`,uve=Symbol.for(lve),cve;cve=uve;var dve="AI_InvalidMessageRoleError",fve=`vercel.ai.error.${dve}`,pve=Symbol.for(fve),mve;mve=pve;var hve="AI_MessageConversionError",gve=`vercel.ai.error.${hve}`,yve=Symbol.for(gve),bve;bve=yve;var vve="AI_DownloadError",xve=`vercel.ai.error.${vve}`,wve=Symbol.for(xve),Tve;Tve=wve;var Eve="AI_RetryError",Sve=`vercel.ai.error.${Eve}`,Ive=Symbol.for(Sve),_ve;_ve=Ive;var jq=S.union([S.string(),S.instanceof(Uint8Array),S.instanceof(ArrayBuffer),S.custom(e=>{var t,r;return(r=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?r:!1},{message:"Must be a Buffer"})]);var sy=S.lazy(()=>S.union([S.null(),S.string(),S.number(),S.boolean(),S.record(S.string(),sy),S.array(sy)])),Bt=S.record(S.string(),S.record(S.string(),sy)),Hq=S.object({type:S.literal("text"),text:S.string(),providerOptions:Bt.optional()}),kve=S.object({type:S.literal("image"),image:S.union([jq,S.instanceof(URL)]),mediaType:S.string().optional(),providerOptions:Bt.optional()}),Vq=S.object({type:S.literal("file"),data:S.union([jq,S.instanceof(URL)]),filename:S.string().optional(),mediaType:S.string(),providerOptions:Bt.optional()}),Cve=S.object({type:S.literal("reasoning"),text:S.string(),providerOptions:Bt.optional()}),Ave=S.object({type:S.literal("tool-call"),toolCallId:S.string(),toolName:S.string(),input:S.unknown(),providerOptions:Bt.optional(),providerExecuted:S.boolean().optional()}),Lve=S.discriminatedUnion("type",[S.object({type:S.literal("text"),value:S.string()}),S.object({type:S.literal("json"),value:sy}),S.object({type:S.literal("error-text"),value:S.string()}),S.object({type:S.literal("error-json"),value:sy}),S.object({type:S.literal("content"),value:S.array(S.union([S.object({type:S.literal("text"),text:S.string()}),S.object({type:S.literal("media"),data:S.string(),mediaType:S.string()})]))})]),qq=S.object({type:S.literal("tool-result"),toolCallId:S.string(),toolName:S.string(),output:Lve,providerOptions:Bt.optional()}),Nve=S.object({role:S.literal("system"),content:S.string(),providerOptions:Bt.optional()});var Rve=S.object({role:S.literal("user"),content:S.union([S.string(),S.array(S.union([Hq,kve,Vq]))]),providerOptions:Bt.optional()});var Ove=S.object({role:S.literal("assistant"),content:S.union([S.string(),S.array(S.union([Hq,Vq,Cve,Ave,qq]))]),providerOptions:Bt.optional()});var Dve=S.object({role:S.literal("tool"),content:S.array(qq),providerOptions:Bt.optional()});var U_t=S.union([Nve,Rve,Ove,Dve]);var z_t=ol({prefix:"aitxt",size:24});var B_t=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
103
|
+
|
|
104
|
+
`)},flush(e){e.enqueue(`data: [DONE]
|
|
105
|
+
|
|
106
|
+
`)}})}};var Mve=S.union([S.strictObject({type:S.literal("text-start"),id:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("text-delta"),id:S.string(),delta:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("text-end"),id:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("error"),errorText:S.string()}),S.strictObject({type:S.literal("tool-input-start"),toolCallId:S.string(),toolName:S.string(),providerExecuted:S.boolean().optional(),dynamic:S.boolean().optional()}),S.strictObject({type:S.literal("tool-input-delta"),toolCallId:S.string(),inputTextDelta:S.string()}),S.strictObject({type:S.literal("tool-input-available"),toolCallId:S.string(),toolName:S.string(),input:S.unknown(),providerExecuted:S.boolean().optional(),providerMetadata:Bt.optional(),dynamic:S.boolean().optional()}),S.strictObject({type:S.literal("tool-input-error"),toolCallId:S.string(),toolName:S.string(),input:S.unknown(),providerExecuted:S.boolean().optional(),providerMetadata:Bt.optional(),dynamic:S.boolean().optional(),errorText:S.string()}),S.strictObject({type:S.literal("tool-output-available"),toolCallId:S.string(),output:S.unknown(),providerExecuted:S.boolean().optional(),dynamic:S.boolean().optional(),preliminary:S.boolean().optional()}),S.strictObject({type:S.literal("tool-output-error"),toolCallId:S.string(),errorText:S.string(),providerExecuted:S.boolean().optional(),dynamic:S.boolean().optional()}),S.strictObject({type:S.literal("reasoning"),text:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("reasoning-start"),id:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("reasoning-delta"),id:S.string(),delta:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("reasoning-end"),id:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("reasoning-part-finish")}),S.strictObject({type:S.literal("source-url"),sourceId:S.string(),url:S.string(),title:S.string().optional(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("source-document"),sourceId:S.string(),mediaType:S.string(),title:S.string(),filename:S.string().optional(),providerMetadata:Bt.optional()}),S.strictObject({type:S.literal("file"),url:S.string(),mediaType:S.string(),providerMetadata:Bt.optional()}),S.strictObject({type:S.string().startsWith("data-"),id:S.string().optional(),data:S.unknown(),transient:S.boolean().optional()}),S.strictObject({type:S.literal("start-step")}),S.strictObject({type:S.literal("finish-step")}),S.strictObject({type:S.literal("start"),messageId:S.string().optional(),messageMetadata:S.unknown().optional()}),S.strictObject({type:S.literal("finish"),messageMetadata:S.unknown().optional()}),S.strictObject({type:S.literal("abort")}),S.strictObject({type:S.literal("message-metadata"),messageMetadata:S.unknown()})]);function Pve(e){return e.type.startsWith("data-")}function Gq(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let r={...e};for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let n=t[a];if(n===void 0)continue;let o=a in e?e[a]:void 0,i=n!==null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp),s=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&s?r[a]=Gq(o,n):r[a]=n}return r}function Uve(e){let t=["ROOT"],r=-1,a=null;function n(l,u,d){switch(l){case'"':{r=u,t.pop(),t.push(d),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=u,a=u,t.pop(),t.push(d),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(d),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":{r=u,t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"{":{r=u,t.pop(),t.push(d),t.push("INSIDE_OBJECT_START");break}case"[":{r=u,t.pop(),t.push(d),t.push("INSIDE_ARRAY_START");break}}}function o(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=u,t.pop();break}}}function i(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=u,t.pop();break}}}for(let l=0;l<e.length;l++){let u=e[l];switch(t[t.length-1]){case"ROOT":n(u,l,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=l,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(u){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{n(u,l,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,l);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),r=l;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=l}break}case"INSIDE_ARRAY_START":{switch(u){case"]":{r=l,t.pop();break}default:{r=l,n(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=l,t.pop();break}default:{r=l;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{n(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=l;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":{r=l;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let f=e.substring(a,l+1);!"false".startsWith(f)&&!"true".startsWith(f)&&!"null".startsWith(f)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,l):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l)):r=l;break}}}let s=e.slice(0,r+1);for(let l=t.length-1;l>=0;l--)switch(t[l]){case"INSIDE_STRING":{s+='"';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":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{let d=e.substring(a,e.length);"true".startsWith(d)?s+="true".slice(d.length):"false".startsWith(d)?s+="false".slice(d.length):"null".startsWith(d)&&(s+="null".slice(d.length))}}return s}async function Zq(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await pm({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await pm({text:Uve(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function iy(e){return e.type.startsWith("tool-")}function zq(e){return e.type.split("-").slice(1).join("-")}function zve({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Fve({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:a,onError:n,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(s,l){await a(async({state:u,write:d})=>{var f,p,m,g;function x(E){let _=u.message.parts.filter(iy).find(A=>A.toolCallId===E);if(_==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return _}function w(E){let _=u.message.parts.filter(A=>A.type==="dynamic-tool").find(A=>A.toolCallId===E);if(_==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return _}function b(E){var I;let _=u.message.parts.find(F=>iy(F)&&F.toolCallId===E.toolCallId),A=E,N=_;_!=null?(_.state=E.state,N.input=A.input,N.output=A.output,N.errorText=A.errorText,N.rawInput=A.rawInput,N.preliminary=A.preliminary,N.providerExecuted=(I=A.providerExecuted)!=null?I:_.providerExecuted,A.providerMetadata!=null&&_.state==="input-available"&&(_.callProviderMetadata=A.providerMetadata)):u.message.parts.push({type:`tool-${E.toolName}`,toolCallId:E.toolCallId,state:E.state,input:A.input,output:A.output,rawInput:A.rawInput,errorText:A.errorText,providerExecuted:A.providerExecuted,preliminary:A.preliminary,...A.providerMetadata!=null?{callProviderMetadata:A.providerMetadata}:{}})}function v(E){var I;let _=u.message.parts.find(F=>F.type==="dynamic-tool"&&F.toolCallId===E.toolCallId),A=E,N=_;_!=null?(_.state=E.state,N.toolName=E.toolName,N.input=A.input,N.output=A.output,N.errorText=A.errorText,N.rawInput=(I=A.rawInput)!=null?I:N.rawInput,N.preliminary=A.preliminary,A.providerMetadata!=null&&_.state==="input-available"&&(_.callProviderMetadata=A.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:E.toolName,toolCallId:E.toolCallId,state:E.state,input:A.input,output:A.output,errorText:A.errorText,preliminary:A.preliminary,...A.providerMetadata!=null?{callProviderMetadata:A.providerMetadata}:{}})}async function T(E){if(E!=null){let I=u.message.metadata!=null?Gq(u.message.metadata,E):E;t!=null&&await TO({value:I,schema:t}),u.message.metadata=I}}switch(s.type){case"text-start":{let E={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=E,u.message.parts.push(E),d();break}case"text-delta":{let E=u.activeTextParts[s.id];E.text+=s.delta,E.providerMetadata=(f=s.providerMetadata)!=null?f:E.providerMetadata,d();break}case"text-end":{let E=u.activeTextParts[s.id];E.state="done",E.providerMetadata=(p=s.providerMetadata)!=null?p:E.providerMetadata,delete u.activeTextParts[s.id],d();break}case"reasoning-start":{let E={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=E,u.message.parts.push(E),d();break}case"reasoning-delta":{let E=u.activeReasoningParts[s.id];E.text+=s.delta,E.providerMetadata=(m=s.providerMetadata)!=null?m:E.providerMetadata,d();break}case"reasoning-end":{let E=u.activeReasoningParts[s.id];E.providerMetadata=(g=s.providerMetadata)!=null?g:E.providerMetadata,E.state="done",delete u.activeReasoningParts[s.id],d();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url}),d();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),d();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),d();break}case"tool-input-start":{let E=u.message.parts.filter(iy);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:E.length,dynamic:s.dynamic},s.dynamic?v({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted}),d();break}case"tool-input-delta":{let E=u.partialToolCalls[s.toolCallId];E.text+=s.inputTextDelta;let{value:I}=await Zq(E.text);E.dynamic?v({toolCallId:s.toolCallId,toolName:E.toolName,state:"input-streaming",input:I}):b({toolCallId:s.toolCallId,toolName:E.toolName,state:"input-streaming",input:I}),d();break}case"tool-input-available":{s.dynamic?v({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),d(),o&&!s.providerExecuted&&await o({toolCall:s});break}case"tool-input-error":{s.dynamic?v({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),d();break}case"tool-output-available":{if(s.dynamic){let E=w(s.toolCallId);v({toolCallId:s.toolCallId,toolName:E.toolName,state:"output-available",input:E.input,output:s.output,preliminary:s.preliminary})}else{let E=x(s.toolCallId);b({toolCallId:s.toolCallId,toolName:zq(E),state:"output-available",input:E.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary})}d();break}case"tool-output-error":{if(s.dynamic){let E=w(s.toolCallId);v({toolCallId:s.toolCallId,toolName:E.toolName,state:"output-error",input:E.input,errorText:s.errorText})}else{let E=x(s.toolCallId);b({toolCallId:s.toolCallId,toolName:zq(E),state:"output-error",input:E.input,rawInput:E.rawInput,errorText:s.errorText})}d();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await T(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&d();break}case"finish":{await T(s.messageMetadata),s.messageMetadata!=null&&d();break}case"message-metadata":{await T(s.messageMetadata),s.messageMetadata!=null&&d();break}case"error":{n?.(new Error(s.errorText));break}default:if(Pve(s)){r?.[s.type]!=null&&await TO({value:s.data,schema:r[s.type]});let E=s;if(E.transient){i?.(E);break}let I=E.id!=null?u.message.parts.find(_=>E.type===_.type&&E.id===_.id):void 0;I!=null?I.data=E.data:u.message.parts.push(E),i?.(E),d()}}l.enqueue(s)})}}))}async function Bve({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:a}=await r.read();if(a)break}}catch(a){t?.(a)}finally{r.releaseLock()}}var V_t=ol({prefix:"aitxt",size:24});var G_t=ol({prefix:"aiobj",size:24});var $ve=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,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(a){r(a)}}),this.processQueue()})}};var W_t=ol({prefix:"aiobj",size:24});var jve={};Ebe(jve,{object:()=>Vve,text:()=>Hve});var Hve=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),Vve=({schema:e})=>{let t=Pq(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:r}){let a=await Zq(r);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:a.value};default:{let n=a.state;throw new Error(`Unsupported parse state: ${n}`)}}},async parseOutput({text:r},a){let n=await pm({text:r});if(!n.success)throw new Uq({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});let o=await eE({value:n.value,schema:t});if(!o.success)throw new Uq({message:"No object generated: response did not match schema.",cause:o.error,text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});return o.value}}};var qve="AI_NoSuchProviderError",Gve=`vercel.ai.error.${qve}`,Zve=Symbol.for(Gve),Wve;Wve=Zve;var Yve=S.looseObject({name:S.string(),version:S.string()}),SO=S.looseObject({_meta:S.optional(S.object({}).loose())}),ly=SO,Kve=S.object({method:S.string(),params:S.optional(SO)}),Xve=S.looseObject({experimental:S.optional(S.object({}).loose()),logging:S.optional(S.object({}).loose()),prompts:S.optional(S.looseObject({listChanged:S.optional(S.boolean())})),resources:S.optional(S.looseObject({subscribe:S.optional(S.boolean()),listChanged:S.optional(S.boolean())})),tools:S.optional(S.looseObject({listChanged:S.optional(S.boolean())}))}),J_t=ly.extend({protocolVersion:S.string(),capabilities:Xve,serverInfo:Yve,instructions:S.optional(S.string())}),Jve=ly.extend({nextCursor:S.optional(S.string())}),Qve=S.object({name:S.string(),description:S.optional(S.string()),inputSchema:S.object({type:S.literal("object"),properties:S.optional(S.object({}).loose())}).loose()}).loose(),Q_t=Jve.extend({tools:S.array(Qve)}),exe=S.object({type:S.literal("text"),text:S.string()}).loose(),txe=S.object({type:S.literal("image"),data:S.base64(),mimeType:S.string()}).loose(),Wq=S.object({uri:S.string(),mimeType:S.optional(S.string())}).loose(),rxe=Wq.extend({text:S.string()}),axe=Wq.extend({blob:S.base64()}),nxe=S.object({type:S.literal("resource"),resource:S.union([rxe,axe])}).loose(),ekt=ly.extend({content:S.array(S.union([exe,txe,nxe])),isError:S.boolean().default(!1).optional()}).or(ly.extend({toolResult:S.unknown()})),tE="2.0",oxe=S.object({jsonrpc:S.literal(tE),id:S.union([S.string(),S.number().int()])}).merge(Kve).strict(),ixe=S.object({jsonrpc:S.literal(tE),id:S.union([S.string(),S.number().int()]),result:ly}).strict(),sxe=S.object({jsonrpc:S.literal(tE),id:S.union([S.string(),S.number().int()]),error:S.object({code:S.number().int(),message:S.string(),data:S.optional(S.unknown())})}).strict(),lxe=S.object({jsonrpc:S.literal(tE)}).merge(S.object({method:S.string(),params:S.optional(SO)})).strict(),tkt=S.union([oxe,lxe,ixe,sxe]);async function uxe(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:r,type:a}=t,n=await new Promise((o,i)=>{let s=new FileReader;s.onload=l=>{var u;o((u=l.target)==null?void 0:u.result)},s.onerror=l=>i(l),s.readAsDataURL(t)});return{type:"file",mediaType:a,filename:r,url:n}}))}var cxe=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:a,fetch:n,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=r,this.body=a,this.fetch=n,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var r,a,n,o,i;let s=await Fd(this.body),l=await Fd(this.headers),u=await Fd(this.credentials),d=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:{...l,...t.headers},credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),f=(a=d?.api)!=null?a:this.api,p=d?.headers!==void 0?d.headers:{...l,...t.headers},m=d?.body!==void 0?d.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},g=(n=d?.credentials)!=null?n:u,w=await((o=this.fetch)!=null?o:globalThis.fetch)(f,{method:"POST",headers:{"Content-Type":"application/json",...p},body:JSON.stringify(m),credentials:g,signal:e});if(!w.ok)throw new Error((i=await w.text())!=null?i:"Failed to fetch the chat response.");if(!w.body)throw new Error("The response body is empty.");return this.processResponseStream(w.body)}async reconnectToStream(e){var t,r,a,n,o;let i=await Fd(this.body),s=await Fd(this.headers),l=await Fd(this.credentials),u=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:{...s,...e.headers},credentials:l,requestMetadata:e.metadata})),d=(r=u?.api)!=null?r:`${this.api}/${e.chatId}/stream`,f=u?.headers!==void 0?u.headers:{...s,...e.headers},p=(a=u?.credentials)!=null?a:l,g=await((n=this.fetch)!=null?n:globalThis.fetch)(d,{method:"GET",headers:f,credentials:p});if(g.status===204)return null;if(!g.ok)throw new Error((o=await g.text())!=null?o:"Failed to fetch the chat response.");if(!g.body)throw new Error("The response body is empty.");return this.processResponseStream(g.body)}},dxe=class extends cxe{constructor(e={}){super(e)}processResponseStream(e){return Mq({stream:e,schema:Mve}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}},Yq=class{constructor({generateId:e=Dq,id:t=e(),transport:r=new dxe,messageMetadataSchema:a,dataPartSchemas:n,state:o,onError:i,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:d}){this.activeResponse=void 0,this.jobExecutor=new $ve,this.sendMessage=async(f,p)=>{var m,g,x,w;if(f==null){await this.makeRequest({trigger:"submit-message",messageId:(m=this.lastMessage)==null?void 0:m.id,...p});return}let b;if("text"in f||"files"in f?b={parts:[...Array.isArray(f.files)?f.files:await uxe(f.files),..."text"in f&&f.text!=null?[{type:"text",text:f.text}]:[]]}:b=f,f.messageId!=null){let v=this.state.messages.findIndex(T=>T.id===f.messageId);if(v===-1)throw new Error(`message with id ${f.messageId} not found`);if(this.state.messages[v].role!=="user")throw new Error(`message with id ${f.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,v+1),this.state.replaceMessage(v,{...b,id:f.messageId,role:(g=b.role)!=null?g:"user",metadata:f.metadata})}else this.state.pushMessage({...b,id:(x=b.id)!=null?x:this.generateId(),role:(w=b.role)!=null?w:"user",metadata:f.metadata});await this.makeRequest({trigger:"submit-message",messageId:f.messageId,...p})},this.regenerate=async({messageId:f,...p}={})=>{let m=f==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===f);if(m===-1)throw new Error(`message ${f} not found`);this.state.messages=this.state.messages.slice(0,this.messages[m].role==="assistant"?m:m+1),await this.makeRequest({trigger:"regenerate-message",messageId:f,...p})},this.resumeStream=async(f={})=>{await this.makeRequest({trigger:"resume-stream",...f})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolResult=async({tool:f,toolCallId:p,output:m})=>this.jobExecutor.run(async()=>{var g,x;let w=this.state.messages,b=w[w.length-1];this.state.replaceMessage(w.length-1,{...b,parts:b.parts.map(v=>iy(v)&&v.toolCallId===p?{...v,state:"output-available",output:m}:v)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(v=>iy(v)&&v.toolCallId===p?{...v,state:"output-available",output:m,errorText:void 0}:v)),this.status!=="streaming"&&this.status!=="submitted"&&((g=this.sendAutomaticallyWhen)!=null&&g.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(x=this.lastMessage)==null?void 0:x.id})}),this.stop=async()=>{var f;this.status!=="streaming"&&this.status!=="submitted"||(f=this.activeResponse)!=null&&f.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=a,this.dataPartSchemas=n,this.state=o,this.onError=i,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=d}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 makeRequest({trigger:e,metadata:t,headers:r,body:a,messageId:n}){var o,i,s;this.setStatus({status:"submitted",error:void 0});let l=this.lastMessage;try{let u={state:zve({lastMessage:this.state.snapshot(l),messageId:this.generateId()}),abortController:new AbortController};this.activeResponse=u;let d;if(e==="resume-stream"){let p=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:a});if(p==null){this.setStatus({status:"ready"});return}d=p}else d=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:u.abortController.signal,metadata:t,headers:r,body:a,trigger:e,messageId:n});let f=p=>this.jobExecutor.run(()=>p({state:u.state,write:()=>{var m;this.setStatus({status:"streaming"}),u.state.message.id===((m=this.lastMessage)==null?void 0:m.id)?this.state.replaceMessage(this.state.messages.length-1,u.state.message):this.state.pushMessage(u.state.message)}}));await Bve({stream:Fve({stream:d,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:f,onError:p=>{throw p}}),onError:p=>{throw p}}),(o=this.onFinish)==null||o.call(this,{message:u.state.message}),this.setStatus({status:"ready"})}catch(u){if(u.name==="AbortError")return this.setStatus({status:"ready"}),null;this.onError&&u instanceof Error&&this.onError(u),this.setStatus({status:"error",error:u})}finally{this.activeResponse=void 0}(i=this.sendAutomaticallyWhen)!=null&&i.call(this,{messages:this.state.messages})&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:r,body:a})}};var fxe=S.object({type:S.literal("text"),text:S.string(),state:S.enum(["streaming","done"]).optional(),providerMetadata:Bt.optional()}),pxe=S.object({type:S.literal("reasoning"),text:S.string(),state:S.enum(["streaming","done"]).optional(),providerMetadata:Bt.optional()}),mxe=S.object({type:S.literal("source-url"),sourceId:S.string(),url:S.string(),title:S.string().optional(),providerMetadata:Bt.optional()}),hxe=S.object({type:S.literal("source-document"),sourceId:S.string(),mediaType:S.string(),title:S.string(),filename:S.string().optional(),providerMetadata:Bt.optional()}),gxe=S.object({type:S.literal("file"),mediaType:S.string(),filename:S.string().optional(),url:S.string(),providerMetadata:Bt.optional()}),yxe=S.object({type:S.literal("step-start")}),bxe=S.object({type:S.string().startsWith("data-"),id:S.string().optional(),data:S.unknown()}),vxe=[S.object({type:S.literal("dynamic-tool"),toolName:S.string(),toolCallId:S.string(),state:S.literal("input-streaming"),input:S.unknown().optional(),output:S.never().optional(),errorText:S.never().optional()}),S.object({type:S.literal("dynamic-tool"),toolName:S.string(),toolCallId:S.string(),state:S.literal("input-available"),input:S.unknown(),output:S.never().optional(),errorText:S.never().optional(),callProviderMetadata:Bt.optional()}),S.object({type:S.literal("dynamic-tool"),toolName:S.string(),toolCallId:S.string(),state:S.literal("output-available"),input:S.unknown(),output:S.unknown(),errorText:S.never().optional(),callProviderMetadata:Bt.optional(),preliminary:S.boolean().optional()}),S.object({type:S.literal("dynamic-tool"),toolName:S.string(),toolCallId:S.string(),state:S.literal("output-error"),input:S.unknown(),output:S.never().optional(),errorText:S.string(),callProviderMetadata:Bt.optional()})],xxe=[S.object({type:S.string().startsWith("tool-"),toolCallId:S.string(),state:S.literal("input-streaming"),input:S.unknown().optional(),output:S.never().optional(),errorText:S.never().optional()}),S.object({type:S.string().startsWith("tool-"),toolCallId:S.string(),state:S.literal("input-available"),input:S.unknown(),output:S.never().optional(),errorText:S.never().optional(),callProviderMetadata:Bt.optional()}),S.object({type:S.string().startsWith("tool-"),toolCallId:S.string(),state:S.literal("output-available"),input:S.unknown(),output:S.unknown(),errorText:S.never().optional(),callProviderMetadata:Bt.optional(),preliminary:S.boolean().optional()}),S.object({type:S.string().startsWith("tool-"),toolCallId:S.string(),state:S.literal("output-error"),input:S.unknown(),output:S.never().optional(),errorText:S.string(),callProviderMetadata:Bt.optional()})],ikt=S.object({id:S.string(),role:S.enum(["system","user","assistant"]),metadata:S.unknown().optional(),parts:S.array(S.union([fxe,pxe,mxe,hxe,gxe,yxe,bxe,...vxe,...xxe]))});var nG=O(Xq(),1);var fy=O(re(),1);var nE=O(re(),1);var aG=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Tr=(e,t,r)=>(aG(e,t,"read from private field"),r?r.call(e):t.get(e)),ls=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Uu=(e,t,r,a)=>(aG(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r);function Nxe(e,t){return t!=null?(0,nG.default)(e,t):e}var Fo,rE,aE,uy,cy,dy,hm,_O,kO,Rxe=class{constructor(e=[]){ls(this,Fo,void 0),ls(this,rE,"ready"),ls(this,aE,void 0),ls(this,uy,new Set),ls(this,cy,new Set),ls(this,dy,new Set),this.pushMessage=t=>{Uu(this,Fo,Tr(this,Fo).concat(t)),Tr(this,hm).call(this)},this.popMessage=()=>{Uu(this,Fo,Tr(this,Fo).slice(0,-1)),Tr(this,hm).call(this)},this.replaceMessage=(t,r)=>{Uu(this,Fo,[...Tr(this,Fo).slice(0,t),this.snapshot(r),...Tr(this,Fo).slice(t+1)]),Tr(this,hm).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let a=r?Nxe(t,r):t;return Tr(this,uy).add(a),()=>{Tr(this,uy).delete(a)}},this["~registerStatusCallback"]=t=>(Tr(this,cy).add(t),()=>{Tr(this,cy).delete(t)}),this["~registerErrorCallback"]=t=>(Tr(this,dy).add(t),()=>{Tr(this,dy).delete(t)}),ls(this,hm,()=>{Tr(this,uy).forEach(t=>t())}),ls(this,_O,()=>{Tr(this,cy).forEach(t=>t())}),ls(this,kO,()=>{Tr(this,dy).forEach(t=>t())}),Uu(this,Fo,e)}get status(){return Tr(this,rE)}set status(e){Uu(this,rE,e),Tr(this,_O).call(this)}get error(){return Tr(this,aE)}set error(e){Uu(this,aE,e),Tr(this,kO).call(this)}get messages(){return Tr(this,Fo)}set messages(e){Uu(this,Fo,[...e]),Tr(this,hm).call(this)}};Fo=new WeakMap;rE=new WeakMap;aE=new WeakMap;uy=new WeakMap;cy=new WeakMap;dy=new WeakMap;hm=new WeakMap;_O=new WeakMap;kO=new WeakMap;var gm,rG=class extends Yq{constructor({messages:e,...t}){let r=new Rxe(e);super({...t,state:r}),ls(this,gm,void 0),this["~registerMessagesCallback"]=(a,n)=>Tr(this,gm)["~registerMessagesCallback"](a,n),this["~registerStatusCallback"]=a=>Tr(this,gm)["~registerStatusCallback"](a),this["~registerErrorCallback"]=a=>Tr(this,gm)["~registerErrorCallback"](a),Uu(this,gm,r)}};gm=new WeakMap;function oG({experimental_throttle:e,resume:t=!1,...r}={}){let a=(0,Ii.useRef)("chat"in r?r.chat:new rG(r));("chat"in r&&r.chat!==a.current||"id"in r&&a.current.id!==r.id)&&(a.current="chat"in r?r.chat:new rG(r));let o="id"in r?r.id:null,i=(0,Ii.useCallback)(f=>a.current["~registerMessagesCallback"](f,e),[e,o]),s=(0,Ii.useSyncExternalStore)(i,()=>a.current.messages,()=>a.current.messages),l=(0,Ii.useSyncExternalStore)(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),u=(0,Ii.useSyncExternalStore)(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),d=(0,Ii.useCallback)(f=>{typeof f=="function"&&(f=f(a.current.messages)),a.current.messages=f},[a]);return(0,Ii.useEffect)(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:s,setMessages:d,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:u,resumeStream:a.current.resumeStream,status:l,addToolResult:a.current.addToolResult}}c();c();c();c();c();c();var At;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let i of n)o[i]=i;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),i={};for(let s of o)i[s]=n[s];return e.objectValues(i)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(i);return o},e.find=(n,o)=>{for(let i of n)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function a(n,o=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=a,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(At||(At={}));var iG;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(iG||(iG={}));var De=At.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),il=e=>{switch(typeof e){case"undefined":return De.undefined;case"string":return De.string;case"number":return Number.isNaN(e)?De.nan:De.number;case"boolean":return De.boolean;case"function":return De.function;case"bigint":return De.bigint;case"symbol":return De.symbol;case"object":return Array.isArray(e)?De.array:e===null?De.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?De.promise:typeof Map<"u"&&e instanceof Map?De.map:typeof Set<"u"&&e instanceof Set?De.set:typeof Date<"u"&&e instanceof Date?De.date:De.object;default:return De.unknown}};var me=At.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 lo=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(o){return o.message},a={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)a._errors.push(r(i));else{let s=a,l=0;for(;l<i.path.length;){let u=i.path[l];l===i.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(r(i))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return n(this),a}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,At.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},a=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];r[o]=r[o]||[],r[o].push(t(n))}else a.push(t(n));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}};lo.create=e=>new lo(e);var Oxe=(e,t)=>{let r;switch(e.code){case me.invalid_type:e.received===De.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case me.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,At.jsonStringifyReplacer)}`;break;case me.unrecognized_keys:r=`Unrecognized key(s) in object: ${At.joinValues(e.keys,", ")}`;break;case me.invalid_union:r="Invalid input";break;case me.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${At.joinValues(e.options)}`;break;case me.invalid_enum_value:r=`Invalid enum value. Expected ${At.joinValues(e.options)}, received '${e.received}'`;break;case me.invalid_arguments:r="Invalid function arguments";break;case me.invalid_return_type:r="Invalid function return type";break;case me.invalid_date:r="Invalid date";break;case me.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:At.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case me.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case me.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case me.custom:r="Invalid input";break;case me.invalid_intersection_types:r="Intersection results could not be merged";break;case me.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case me.not_finite:r="Number must be finite";break;default:r=t.defaultError,At.assertNever(e)}return{message:r}},zu=Oxe;var Dxe=zu;function py(){return Dxe}c();var oE=e=>{let{data:t,path:r,errorMaps:a,issueData:n}=e,o=[...r,...n.path||[]],i={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let s="",l=a.filter(u=>!!u).slice().reverse();for(let u of l)s=u(i,{data:t,defaultError:s}).message;return{...n,path:o,message:s}};function Le(e,t){let r=py(),a=oE({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===zu?void 0:zu].filter(n=>!!n)});e.common.issues.push(a)}var tn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let a=[];for(let n of r){if(n.status==="aborted")return Qe;n.status==="dirty"&&t.dirty(),a.push(n.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,r){let a=[];for(let n of r){let o=await n.key,i=await n.value;a.push({key:o,value:i})}return e.mergeObjectSync(t,a)}static mergeObjectSync(t,r){let a={};for(let n of r){let{key:o,value:i}=n;if(o.status==="aborted"||i.status==="aborted")return Qe;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(a[o.value]=i.value)}return{status:t.value,value:a}}},Qe=Object.freeze({status:"aborted"}),ym=e=>({status:"dirty",value:e}),vn=e=>({status:"valid",value:e}),CO=e=>e.status==="aborted",AO=e=>e.status==="dirty",Bd=e=>e.status==="valid",my=e=>typeof Promise<"u"&&e instanceof Promise;c();c();var Ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Ue||(Ue={}));var Bo=class{constructor(t,r,a,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=a,this._key=n}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}},sG=(e,t)=>{if(Bd(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 r=new lo(e.common.issues);return this._error=r,this._error}}};function pt(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:n}=e;if(t&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(i,s)=>{let{message:l}=e;return i.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??a??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:n}}var Et=class{get description(){return this._def.description}_getType(t){return il(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:il(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new tn,ctx:{common:t.parent.common,data:t.data,parsedType:il(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(my(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let a=this.safeParse(t,r);if(a.success)return a.data;throw a.error}safeParse(t,r){let a={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:il(t)},n=this._parseSync({data:t,path:a.path,parent:a});return sG(a,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:il(t)};if(!this["~standard"].async)try{let a=this._parseSync({data:t,path:[],parent:r});return Bd(a)?{value:a.value}:{issues:r.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>Bd(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){let a=await this.safeParseAsync(t,r);if(a.success)return a.data;throw a.error}async safeParseAsync(t,r){let a={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:il(t)},n=this._parse({data:t,path:a.path,parent:a}),o=await(my(n)?n:Promise.resolve(n));return sG(a,o)}refine(t,r){let a=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let i=t(n),s=()=>o.addIssue({code:me.custom,...a(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(t,r){return this._refinement((a,n)=>t(a)?!0:(n.addIssue(typeof r=="function"?r(a,n):r),!1))}_refinement(t){return new ki({schema:this,typeName:be.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:r=>this["~validate"](r)}}optional(){return _i.create(this,this._def)}nullable(){return ul.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Bu.create(this)}promise(){return $d.create(this,this._def)}or(t){return Tm.create([this,t],this._def)}and(t){return Em.create(this,t,this._def)}transform(t){return new ki({...pt(this._def),schema:this,typeName:be.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Cm({...pt(this._def),innerType:this,defaultValue:r,typeName:be.ZodDefault})}brand(){return new iE({typeName:be.ZodBranded,type:this,...pt(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Am({...pt(this._def),innerType:this,catchValue:r,typeName:be.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return sE.create(this,t)}readonly(){return Lm.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Mxe=/^c[^\s-]{8,}$/i,Pxe=/^[0-9a-z]+$/,Uxe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zxe=/^[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,Fxe=/^[a-z0-9_-]{21}$/i,Bxe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$xe=/^[-+]?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)?)??$/,jxe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hxe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",LO,Vxe=/^(?:(?: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])$/,qxe=/^(?:(?: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])$/,Gxe=/^(([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]))$/,Zxe=/^(([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])$/,Wxe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Yxe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,lG="((\\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])))",Kxe=new RegExp(`^${lG}$`);function uG(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function Xxe(e){return new RegExp(`^${uG(e)}$`)}function Jxe(e){let t=`${lG}T${uG(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Qxe(e,t){return!!((t==="v4"||!t)&&Vxe.test(e)||(t==="v6"||!t)&&Gxe.test(e))}function e1e(e,t){if(!Bxe.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let a=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(a));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function t1e(e,t){return!!((t==="v4"||!t)&&qxe.test(e)||(t==="v6"||!t)&&Zxe.test(e))}var vm=class e extends Et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==De.string){let o=this._getOrReturnCtx(t);return Le(o,{code:me.invalid_type,expected:De.string,received:o.parsedType}),Qe}let a=new tn,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),Le(n,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),Le(n,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,s=t.data.length<o.value;(i||s)&&(n=this._getOrReturnCtx(t,n),i?Le(n,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&Le(n,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),a.dirty())}else if(o.kind==="email")jxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"email",code:me.invalid_string,message:o.message}),a.dirty());else if(o.kind==="emoji")LO||(LO=new RegExp(Hxe,"u")),LO.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"emoji",code:me.invalid_string,message:o.message}),a.dirty());else if(o.kind==="uuid")zxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"uuid",code:me.invalid_string,message:o.message}),a.dirty());else if(o.kind==="nanoid")Fxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"nanoid",code:me.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid")Mxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"cuid",code:me.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid2")Pxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"cuid2",code:me.invalid_string,message:o.message}),a.dirty());else if(o.kind==="ulid")Uxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"ulid",code:me.invalid_string,message:o.message}),a.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),Le(n,{validation:"url",code:me.invalid_string,message:o.message}),a.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"regex",code:me.invalid_string,message:o.message}),a.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),Le(n,{code:me.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),a.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)||(n=this._getOrReturnCtx(t,n),Le(n,{code:me.invalid_string,validation:{startsWith:o.value},message:o.message}),a.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),Le(n,{code:me.invalid_string,validation:{endsWith:o.value},message:o.message}),a.dirty()):o.kind==="datetime"?Jxe(o).test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{code:me.invalid_string,validation:"datetime",message:o.message}),a.dirty()):o.kind==="date"?Kxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{code:me.invalid_string,validation:"date",message:o.message}),a.dirty()):o.kind==="time"?Xxe(o).test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{code:me.invalid_string,validation:"time",message:o.message}),a.dirty()):o.kind==="duration"?$xe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"duration",code:me.invalid_string,message:o.message}),a.dirty()):o.kind==="ip"?Qxe(t.data,o.version)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"ip",code:me.invalid_string,message:o.message}),a.dirty()):o.kind==="jwt"?e1e(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"jwt",code:me.invalid_string,message:o.message}),a.dirty()):o.kind==="cidr"?t1e(t.data,o.version)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"cidr",code:me.invalid_string,message:o.message}),a.dirty()):o.kind==="base64"?Wxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"base64",code:me.invalid_string,message:o.message}),a.dirty()):o.kind==="base64url"?Yxe.test(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{validation:"base64url",code:me.invalid_string,message:o.message}),a.dirty()):At.assertNever(o);return{status:a.value,value:t.data}}_regex(t,r,a){return this.refinement(n=>t.test(n),{validation:r,code:me.invalid_string,...Ue.errToObj(a)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ue.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ue.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ue.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ue.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,...Ue.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,...Ue.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Ue.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Ue.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Ue.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Ue.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Ue.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Ue.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Ue.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Ue.errToObj(r)})}nonempty(t){return this.min(1,Ue.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 r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};vm.create=e=>new vm({checks:[],typeName:be.ZodString,coerce:e?.coerce??!1,...pt(e)});function r1e(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,n=r>a?r:a,o=Number.parseInt(e.toFixed(n).replace(".","")),i=Number.parseInt(t.toFixed(n).replace(".",""));return o%i/10**n}var hy=class e extends Et{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)!==De.number){let o=this._getOrReturnCtx(t);return Le(o,{code:me.invalid_type,expected:De.number,received:o.parsedType}),Qe}let a,n=new tn;for(let o of this._def.checks)o.kind==="int"?At.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:me.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),Le(a,{code:me.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),Le(a,{code:me.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?r1e(t.data,o.value)!==0&&(a=this._getOrReturnCtx(t,a),Le(a,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:me.not_finite,message:o.message}),n.dirty()):At.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ue.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ue.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ue.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ue.toString(r))}setLimit(t,r,a,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Ue.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ue.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ue.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ue.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&At.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(r)&&Number.isFinite(t)}};hy.create=e=>new hy({checks:[],typeName:be.ZodNumber,coerce:e?.coerce||!1,...pt(e)});var gy=class e extends Et{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)!==De.bigint)return this._getInvalidInput(t);let a,n=new tn;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),Le(a,{code:me.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),Le(a,{code:me.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),Le(a,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):At.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return Le(r,{code:me.invalid_type,expected:De.bigint,received:r.parsedType}),Qe}gte(t,r){return this.setLimit("min",t,!0,Ue.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ue.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ue.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ue.toString(r))}setLimit(t,r,a,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Ue.toString(n)}]})}_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:Ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ue.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ue.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};gy.create=e=>new gy({checks:[],typeName:be.ZodBigInt,coerce:e?.coerce??!1,...pt(e)});var yy=class extends Et{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==De.boolean){let a=this._getOrReturnCtx(t);return Le(a,{code:me.invalid_type,expected:De.boolean,received:a.parsedType}),Qe}return vn(t.data)}};yy.create=e=>new yy({typeName:be.ZodBoolean,coerce:e?.coerce||!1,...pt(e)});var by=class e extends Et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==De.date){let o=this._getOrReturnCtx(t);return Le(o,{code:me.invalid_type,expected:De.date,received:o.parsedType}),Qe}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return Le(o,{code:me.invalid_date}),Qe}let a=new tn,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),Le(n,{code:me.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),a.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),Le(n,{code:me.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),a.dirty()):At.assertNever(o);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Ue.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Ue.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};by.create=e=>new by({checks:[],coerce:e?.coerce||!1,typeName:be.ZodDate,...pt(e)});var vy=class extends Et{_parse(t){if(this._getType(t)!==De.symbol){let a=this._getOrReturnCtx(t);return Le(a,{code:me.invalid_type,expected:De.symbol,received:a.parsedType}),Qe}return vn(t.data)}};vy.create=e=>new vy({typeName:be.ZodSymbol,...pt(e)});var xm=class extends Et{_parse(t){if(this._getType(t)!==De.undefined){let a=this._getOrReturnCtx(t);return Le(a,{code:me.invalid_type,expected:De.undefined,received:a.parsedType}),Qe}return vn(t.data)}};xm.create=e=>new xm({typeName:be.ZodUndefined,...pt(e)});var wm=class extends Et{_parse(t){if(this._getType(t)!==De.null){let a=this._getOrReturnCtx(t);return Le(a,{code:me.invalid_type,expected:De.null,received:a.parsedType}),Qe}return vn(t.data)}};wm.create=e=>new wm({typeName:be.ZodNull,...pt(e)});var xy=class extends Et{constructor(){super(...arguments),this._any=!0}_parse(t){return vn(t.data)}};xy.create=e=>new xy({typeName:be.ZodAny,...pt(e)});var Fu=class extends Et{constructor(){super(...arguments),this._unknown=!0}_parse(t){return vn(t.data)}};Fu.create=e=>new Fu({typeName:be.ZodUnknown,...pt(e)});var us=class extends Et{_parse(t){let r=this._getOrReturnCtx(t);return Le(r,{code:me.invalid_type,expected:De.never,received:r.parsedType}),Qe}};us.create=e=>new us({typeName:be.ZodNever,...pt(e)});var wy=class extends Et{_parse(t){if(this._getType(t)!==De.undefined){let a=this._getOrReturnCtx(t);return Le(a,{code:me.invalid_type,expected:De.void,received:a.parsedType}),Qe}return vn(t.data)}};wy.create=e=>new wy({typeName:be.ZodVoid,...pt(e)});var Bu=class e extends Et{_parse(t){let{ctx:r,status:a}=this._processInputParams(t),n=this._def;if(r.parsedType!==De.array)return Le(r,{code:me.invalid_type,expected:De.array,received:r.parsedType}),Qe;if(n.exactLength!==null){let i=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(i||s)&&(Le(r,{code:i?me.too_big:me.too_small,minimum:s?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),a.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(Le(r,{code:me.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),a.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(Le(r,{code:me.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((i,s)=>n.type._parseAsync(new Bo(r,i,r.path,s)))).then(i=>tn.mergeArray(a,i));let o=[...r.data].map((i,s)=>n.type._parseSync(new Bo(r,i,r.path,s)));return tn.mergeArray(a,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Ue.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Ue.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Ue.toString(r)}})}nonempty(t){return this.min(1,t)}};Bu.create=(e,t)=>new Bu({type:e,minLength:null,maxLength:null,exactLength:null,typeName:be.ZodArray,...pt(t)});function bm(e){if(e instanceof uo){let t={};for(let r in e.shape){let a=e.shape[r];t[r]=_i.create(bm(a))}return new uo({...e._def,shape:()=>t})}else return e instanceof Bu?new Bu({...e._def,type:bm(e.element)}):e instanceof _i?_i.create(bm(e.unwrap())):e instanceof ul?ul.create(bm(e.unwrap())):e instanceof ll?ll.create(e.items.map(t=>bm(t))):e}var uo=class e extends Et{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(),r=At.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==De.object){let u=this._getOrReturnCtx(t);return Le(u,{code:me.invalid_type,expected:De.object,received:u.parsedType}),Qe}let{status:a,ctx:n}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof us&&this._def.unknownKeys==="strip"))for(let u in n.data)i.includes(u)||s.push(u);let l=[];for(let u of i){let d=o[u],f=n.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new Bo(n,f,n.path,u)),alwaysSet:u in n.data})}if(this._def.catchall instanceof us){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:n.data[d]}});else if(u==="strict")s.length>0&&(Le(n,{code:me.unrecognized_keys,keys:s}),a.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of s){let f=n.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new Bo(n,f,n.path,d)),alwaysSet:d in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of l){let f=await d.key,p=await d.value;u.push({key:f,value:p,alwaysSet:d.alwaysSet})}return u}).then(u=>tn.mergeObjectSync(a,u)):tn.mergeObjectSync(a,l)}get shape(){return this._def.shape()}strict(t){return Ue.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,a)=>{let n=this._def.errorMap?.(r,a).message??a.defaultError;return r.code==="unrecognized_keys"?{message:Ue.errToObj(t).message??n}:{message:n}}}:{}})}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:be.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let a of At.objectKeys(t))t[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let a of At.objectKeys(this.shape))t[a]||(r[a]=this.shape[a]);return new e({...this._def,shape:()=>r})}deepPartial(){return bm(this)}partial(t){let r={};for(let a of At.objectKeys(this.shape)){let n=this.shape[a];t&&!t[a]?r[a]=n:r[a]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let a of At.objectKeys(this.shape))if(t&&!t[a])r[a]=this.shape[a];else{let o=this.shape[a];for(;o instanceof _i;)o=o._def.innerType;r[a]=o}return new e({...this._def,shape:()=>r})}keyof(){return cG(At.objectKeys(this.shape))}};uo.create=(e,t)=>new uo({shape:()=>e,unknownKeys:"strip",catchall:us.create(),typeName:be.ZodObject,...pt(t)});uo.strictCreate=(e,t)=>new uo({shape:()=>e,unknownKeys:"strict",catchall:us.create(),typeName:be.ZodObject,...pt(t)});uo.lazycreate=(e,t)=>new uo({shape:e,unknownKeys:"strip",catchall:us.create(),typeName:be.ZodObject,...pt(t)});var Tm=class extends Et{_parse(t){let{ctx:r}=this._processInputParams(t),a=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let i=o.map(s=>new lo(s.ctx.common.issues));return Le(r,{code:me.invalid_union,unionErrors:i}),Qe}if(r.common.async)return Promise.all(a.map(async o=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(n);{let o,i=[];for(let l of a){let u={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(l=>new lo(l));return Le(r,{code:me.invalid_union,unionErrors:s}),Qe}}get options(){return this._def.options}};Tm.create=(e,t)=>new Tm({options:e,typeName:be.ZodUnion,...pt(t)});var sl=e=>e instanceof Sm?sl(e.schema):e instanceof ki?sl(e.innerType()):e instanceof Im?[e.value]:e instanceof _m?e.options:e instanceof km?At.objectValues(e.enum):e instanceof Cm?sl(e._def.innerType):e instanceof xm?[void 0]:e instanceof wm?[null]:e instanceof _i?[void 0,...sl(e.unwrap())]:e instanceof ul?[null,...sl(e.unwrap())]:e instanceof iE||e instanceof Lm?sl(e.unwrap()):e instanceof Am?sl(e._def.innerType):[],NO=class e extends Et{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==De.object)return Le(r,{code:me.invalid_type,expected:De.object,received:r.parsedType}),Qe;let a=this.discriminator,n=r.data[a],o=this.optionsMap.get(n);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(Le(r,{code:me.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),Qe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,a){let n=new Map;for(let o of r){let i=sl(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 s of i){if(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,o)}}return new e({typeName:be.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...pt(a)})}};function RO(e,t){let r=il(e),a=il(t);if(e===t)return{valid:!0,data:e};if(r===De.object&&a===De.object){let n=At.objectKeys(t),o=At.objectKeys(e).filter(s=>n.indexOf(s)!==-1),i={...e,...t};for(let s of o){let l=RO(e[s],t[s]);if(!l.valid)return{valid:!1};i[s]=l.data}return{valid:!0,data:i}}else if(r===De.array&&a===De.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let i=e[o],s=t[o],l=RO(i,s);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===De.date&&a===De.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Em=class extends Et{_parse(t){let{status:r,ctx:a}=this._processInputParams(t),n=(o,i)=>{if(CO(o)||CO(i))return Qe;let s=RO(o.value,i.value);return s.valid?((AO(o)||AO(i))&&r.dirty(),{status:r.value,value:s.data}):(Le(a,{code:me.invalid_intersection_types}),Qe)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([o,i])=>n(o,i)):n(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}};Em.create=(e,t,r)=>new Em({left:e,right:t,typeName:be.ZodIntersection,...pt(r)});var ll=class e extends Et{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==De.array)return Le(a,{code:me.invalid_type,expected:De.array,received:a.parsedType}),Qe;if(a.data.length<this._def.items.length)return Le(a,{code:me.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Qe;!this._def.rest&&a.data.length>this._def.items.length&&(Le(a,{code:me.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...a.data].map((i,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new Bo(a,i,a.path,s)):null}).filter(i=>!!i);return a.common.async?Promise.all(o).then(i=>tn.mergeArray(r,i)):tn.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ll.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ll({items:e,typeName:be.ZodTuple,rest:null,...pt(t)})};var OO=class e extends Et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==De.object)return Le(a,{code:me.invalid_type,expected:De.object,received:a.parsedType}),Qe;let n=[],o=this._def.keyType,i=this._def.valueType;for(let s in a.data)n.push({key:o._parse(new Bo(a,s,a.path,s)),value:i._parse(new Bo(a,a.data[s],a.path,s)),alwaysSet:s in a.data});return a.common.async?tn.mergeObjectAsync(r,n):tn.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,a){return r instanceof Et?new e({keyType:t,valueType:r,typeName:be.ZodRecord,...pt(a)}):new e({keyType:vm.create(),valueType:t,typeName:be.ZodRecord,...pt(r)})}},Ty=class extends Et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==De.map)return Le(a,{code:me.invalid_type,expected:De.map,received:a.parsedType}),Qe;let n=this._def.keyType,o=this._def.valueType,i=[...a.data.entries()].map(([s,l],u)=>({key:n._parse(new Bo(a,s,a.path,[u,"key"])),value:o._parse(new Bo(a,l,a.path,[u,"value"]))}));if(a.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of i){let u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return Qe;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(u.value,d.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let l of i){let u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return Qe;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(u.value,d.value)}return{status:r.value,value:s}}}};Ty.create=(e,t,r)=>new Ty({valueType:t,keyType:e,typeName:be.ZodMap,...pt(r)});var Ey=class e extends Et{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==De.set)return Le(a,{code:me.invalid_type,expected:De.set,received:a.parsedType}),Qe;let n=this._def;n.minSize!==null&&a.data.size<n.minSize.value&&(Le(a,{code:me.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&a.data.size>n.maxSize.value&&(Le(a,{code:me.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function i(l){let u=new Set;for(let d of l){if(d.status==="aborted")return Qe;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}let s=[...a.data.values()].map((l,u)=>o._parse(new Bo(a,l,a.path,u)));return a.common.async?Promise.all(s).then(l=>i(l)):i(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:Ue.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Ue.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Ey.create=(e,t)=>new Ey({valueType:e,minSize:null,maxSize:null,typeName:be.ZodSet,...pt(t)});var DO=class e extends Et{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==De.function)return Le(r,{code:me.invalid_type,expected:De.function,received:r.parsedType}),Qe;function a(s,l){return oE({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,py(),zu].filter(u=>!!u),issueData:{code:me.invalid_arguments,argumentsError:l}})}function n(s,l){return oE({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,py(),zu].filter(u=>!!u),issueData:{code:me.invalid_return_type,returnTypeError:l}})}let o={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof $d){let s=this;return vn(async function(...l){let u=new lo([]),d=await s._def.args.parseAsync(l,o).catch(m=>{throw u.addIssue(a(l,m)),u}),f=await Reflect.apply(i,this,d);return await s._def.returns._def.type.parseAsync(f,o).catch(m=>{throw u.addIssue(n(f,m)),u})})}else{let s=this;return vn(function(...l){let u=s._def.args.safeParse(l,o);if(!u.success)throw new lo([a(l,u.error)]);let d=Reflect.apply(i,this,u.data),f=s._def.returns.safeParse(d,o);if(!f.success)throw new lo([n(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ll.create(t).rest(Fu.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,r,a){return new e({args:t||ll.create([]).rest(Fu.create()),returns:r||Fu.create(),typeName:be.ZodFunction,...pt(a)})}},Sm=class extends Et{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Sm.create=(e,t)=>new Sm({getter:e,typeName:be.ZodLazy,...pt(t)});var Im=class extends Et{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return Le(r,{received:r.data,code:me.invalid_literal,expected:this._def.value}),Qe}return{status:"valid",value:t.data}}get value(){return this._def.value}};Im.create=(e,t)=>new Im({value:e,typeName:be.ZodLiteral,...pt(t)});function cG(e,t){return new _m({values:e,typeName:be.ZodEnum,...pt(t)})}var _m=class e extends Et{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),a=this._def.values;return Le(r,{expected:At.joinValues(a),received:r.parsedType,code:me.invalid_type}),Qe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),a=this._def.values;return Le(r,{received:r.data,code:me.invalid_enum_value,options:a}),Qe}return vn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(a=>!t.includes(a)),{...this._def,...r})}};_m.create=cG;var km=class extends Et{_parse(t){let r=At.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==De.string&&a.parsedType!==De.number){let n=At.objectValues(r);return Le(a,{expected:At.joinValues(n),received:a.parsedType,code:me.invalid_type}),Qe}if(this._cache||(this._cache=new Set(At.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=At.objectValues(r);return Le(a,{received:a.data,code:me.invalid_enum_value,options:n}),Qe}return vn(t.data)}get enum(){return this._def.values}};km.create=(e,t)=>new km({values:e,typeName:be.ZodNativeEnum,...pt(t)});var $d=class extends Et{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==De.promise&&r.common.async===!1)return Le(r,{code:me.invalid_type,expected:De.promise,received:r.parsedType}),Qe;let a=r.parsedType===De.promise?r.data:Promise.resolve(r.data);return vn(a.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};$d.create=(e,t)=>new $d({type:e,typeName:be.ZodPromise,...pt(t)});var ki=class extends Et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:a}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:i=>{Le(a,i),i.fatal?r.abort():r.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let i=n.transform(a.data,o);if(a.common.async)return Promise.resolve(i).then(async s=>{if(r.value==="aborted")return Qe;let l=await this._def.schema._parseAsync({data:s,path:a.path,parent:a});return l.status==="aborted"?Qe:l.status==="dirty"?ym(l.value):r.value==="dirty"?ym(l.value):l});{if(r.value==="aborted")return Qe;let s=this._def.schema._parseSync({data:i,path:a.path,parent:a});return s.status==="aborted"?Qe:s.status==="dirty"?ym(s.value):r.value==="dirty"?ym(s.value):s}}if(n.type==="refinement"){let i=s=>{let l=n.refinement(s,o);if(a.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(a.common.async===!1){let s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Qe:(s.status==="dirty"&&r.dirty(),i(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(s=>s.status==="aborted"?Qe:(s.status==="dirty"&&r.dirty(),i(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(a.common.async===!1){let i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Bd(i))return Qe;let s=n.transform(i.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(i=>Bd(i)?Promise.resolve(n.transform(i.value,o)).then(s=>({status:r.value,value:s})):Qe);At.assertNever(n)}};ki.create=(e,t,r)=>new ki({schema:e,typeName:be.ZodEffects,effect:t,...pt(r)});ki.createWithPreprocess=(e,t,r)=>new ki({schema:t,effect:{type:"preprocess",transform:e},typeName:be.ZodEffects,...pt(r)});var _i=class extends Et{_parse(t){return this._getType(t)===De.undefined?vn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};_i.create=(e,t)=>new _i({innerType:e,typeName:be.ZodOptional,...pt(t)});var ul=class extends Et{_parse(t){return this._getType(t)===De.null?vn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ul.create=(e,t)=>new ul({innerType:e,typeName:be.ZodNullable,...pt(t)});var Cm=class extends Et{_parse(t){let{ctx:r}=this._processInputParams(t),a=r.data;return r.parsedType===De.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Cm.create=(e,t)=>new Cm({innerType:e,typeName:be.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...pt(t)});var Am=class extends Et{_parse(t){let{ctx:r}=this._processInputParams(t),a={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return my(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new lo(a.common.issues)},input:a.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new lo(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}};Am.create=(e,t)=>new Am({innerType:e,typeName:be.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...pt(t)});var Sy=class extends Et{_parse(t){if(this._getType(t)!==De.nan){let a=this._getOrReturnCtx(t);return Le(a,{code:me.invalid_type,expected:De.nan,received:a.parsedType}),Qe}return{status:"valid",value:t.data}}};Sy.create=e=>new Sy({typeName:be.ZodNaN,...pt(e)});var Ykt=Symbol("zod_brand"),iE=class extends Et{_parse(t){let{ctx:r}=this._processInputParams(t),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}},sE=class e extends Et{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Qe:o.status==="dirty"?(r.dirty(),ym(o.value)):this._def.out._parseAsync({data:o.value,path:a.path,parent:a})})();{let n=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return n.status==="aborted"?Qe:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:a.path,parent:a})}}static create(t,r){return new e({in:t,out:r,typeName:be.ZodPipeline})}},Lm=class extends Et{_parse(t){let r=this._def.innerType._parse(t),a=n=>(Bd(n)&&(n.value=Object.freeze(n.value)),n);return my(r)?r.then(n=>a(n)):a(r)}unwrap(){return this._def.innerType}};Lm.create=(e,t)=>new Lm({innerType:e,typeName:be.ZodReadonly,...pt(t)});var Kkt={object:uo.lazycreate},be;(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"})(be||(be={}));var Xkt=vm.create,Jkt=hy.create,Qkt=Sy.create,eCt=gy.create,tCt=yy.create,rCt=by.create,aCt=vy.create,nCt=xm.create,oCt=wm.create,iCt=xy.create,sCt=Fu.create,lCt=us.create,uCt=wy.create,cCt=Bu.create,dCt=uo.create,fCt=uo.strictCreate,pCt=Tm.create,mCt=NO.create,hCt=Em.create,gCt=ll.create,yCt=OO.create,bCt=Ty.create,vCt=Ey.create,xCt=DO.create,wCt=Sm.create,TCt=Im.create,ECt=_m.create,SCt=km.create,ICt=$d.create,_Ct=ki.create,kCt=_i.create,CCt=ul.create,ACt=ki.createWithPreprocess,LCt=sE.create;var cl=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{let n=()=>{let o=r.length,i=new Array(t);for(let s=0;s<t;s++)i[s]=r[Math.random()*o|0];return i.join("")};if(e==null)return n;if(r.includes(a))throw new ZT({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${r}".`});return()=>`${e}${a}${n()}`},DCt=cl();function FO(e=globalThis){var t,r,a;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(a=(r=e.process)==null?void 0:r.versions)!=null&&a.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function a1e(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>r!=null))}function Iy(e,...t){let r=a1e(e??{}),a=new Headers(r),n=a.get("user-agent")||"";return a.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(a)}var n1e=/"__proto__"\s*:/,o1e=/"constructor"\s*:/;function i1e(e){let t=JSON.parse(e);return t===null||typeof t!="object"||n1e.test(e)===!1&&o1e.test(e)===!1?t:s1e(t)}function s1e(e){let t=[e];for(;t.length;){let r=t;t=[];for(let a of r){if(Object.prototype.hasOwnProperty.call(a,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in a){let o=a[n];o&&typeof o=="object"&&t.push(o)}}}return e}function l1e(e){let{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{return i1e(e)}finally{Error.stackTraceLimit=t}}var lE=Symbol.for("vercel.ai.validator");function u1e(e){return{[lE]:!0,validate:e}}function c1e(e){return typeof e=="object"&&e!==null&&lE in e&&e[lE]===!0&&"validate"in e}function uE(e){let t;return()=>(t==null&&(t=e()),t)}function d1e(e){return c1e(e)?e:typeof e=="function"?e():f1e(e)}function f1e(e){return u1e(async t=>{let r=await e["~standard"].validate(t);return r.issues==null?{success:!0,value:r.value}:{success:!1,error:new so({value:t,cause:r.issues})}})}async function BO({value:e,schema:t}){let r=d1e(t);try{if(r.validate==null)return{success:!0,value:e,rawValue:e};let a=await r.validate(e);return a.success?{success:!0,value:a.value,rawValue:e}:{success:!1,error:so.wrap({value:e,cause:a.error}),rawValue:e}}catch(a){return{success:!1,error:so.wrap({value:e,cause:a}),rawValue:e}}}async function Nm({text:e,schema:t}){try{let r=l1e(e);return t==null?{success:!0,value:r,rawValue:r}:await BO({value:r,schema:t})}catch(r){return{success:!1,error:dm.isInstance(r)?r:new dm({text:e,cause:r}),rawValue:void 0}}}function pG({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new fm).pipeThrough(new TransformStream({async transform({data:r},a){r!=="[DONE]"&&a.enqueue(await Nm({text:r,schema:t}))}}))}async function jd(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var p1e=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")},m1e=Symbol("Let zodToJsonSchema decide on which parser to use"),dG={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"},h1e=e=>typeof e=="string"?{...dG,name:e}:{...dG,...e};function co(){return{}}function g1e(e,t){var r,a,n;let o={type:"array"};return(r=e.type)!=null&&r._def&&((n=(a=e.type)==null?void 0:a._def)==null?void 0:n.typeName)!==be.ZodAny&&(o.items=Kt(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 y1e(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function b1e(){return{type:"boolean"}}function mG(e,t){return Kt(e.type._def,t)}var v1e=(e,t)=>Kt(e.innerType._def,t);function hG(e,t,r){let a=r??t.dateStrategy;if(Array.isArray(a))return{anyOf:a.map((n,o)=>hG(e,t,n))};switch(a){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return x1e(e)}}var x1e=e=>{let t={type:"integer",format:"unix-time"};for(let r of e.checks)switch(r.kind){case"min":t.minimum=r.value;break;case"max":t.maximum=r.value;break}return t};function w1e(e,t){return{...Kt(e.innerType._def,t),default:e.defaultValue()}}function T1e(e,t){return t.effectStrategy==="input"?Kt(e.schema._def,t):co()}function E1e(e){return{type:"string",enum:Array.from(e.values)}}var S1e=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function I1e(e,t){let r=[Kt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Kt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),a=[];return r.forEach(n=>{if(S1e(n))a.push(...n.allOf);else{let o=n;if("additionalProperties"in n&&n.additionalProperties===!1){let{additionalProperties:i,...s}=n;o=s}a.push(o)}}),a.length?{allOf:a}:void 0}function _1e(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 MO=void 0,Ci={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:()=>(MO===void 0&&(MO=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),MO),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 gG(e,t){let r={type:"string"};if(e.checks)for(let a of e.checks)switch(a.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":Ai(r,"email",a.message,t);break;case"format:idn-email":Ai(r,"idn-email",a.message,t);break;case"pattern:zod":xn(r,Ci.email,a.message,t);break}break;case"url":Ai(r,"uri",a.message,t);break;case"uuid":Ai(r,"uuid",a.message,t);break;case"regex":xn(r,a.regex,a.message,t);break;case"cuid":xn(r,Ci.cuid,a.message,t);break;case"cuid2":xn(r,Ci.cuid2,a.message,t);break;case"startsWith":xn(r,RegExp(`^${PO(a.value,t)}`),a.message,t);break;case"endsWith":xn(r,RegExp(`${PO(a.value,t)}$`),a.message,t);break;case"datetime":Ai(r,"date-time",a.message,t);break;case"date":Ai(r,"date",a.message,t);break;case"time":Ai(r,"time",a.message,t);break;case"duration":Ai(r,"duration",a.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value;break;case"includes":{xn(r,RegExp(PO(a.value,t)),a.message,t);break}case"ip":{a.version!=="v6"&&Ai(r,"ipv4",a.message,t),a.version!=="v4"&&Ai(r,"ipv6",a.message,t);break}case"base64url":xn(r,Ci.base64url,a.message,t);break;case"jwt":xn(r,Ci.jwt,a.message,t);break;case"cidr":{a.version!=="v6"&&xn(r,Ci.ipv4Cidr,a.message,t),a.version!=="v4"&&xn(r,Ci.ipv6Cidr,a.message,t);break}case"emoji":xn(r,Ci.emoji(),a.message,t);break;case"ulid":{xn(r,Ci.ulid,a.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{Ai(r,"binary",a.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{xn(r,Ci.base64,a.message,t);break}}break}case"nanoid":xn(r,Ci.nanoid,a.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function PO(e,t){return t.patternStrategy==="escape"?C1e(e):e}var k1e=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function C1e(e){let t="";for(let r=0;r<e.length;r++)k1e.has(e[r])||(t+="\\"),t+=e[r];return t}function Ai(e,t,r,a){var n;e.format||(n=e.anyOf)!=null&&n.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&a.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function xn(e,t,r,a){var n;e.pattern||(n=e.allOf)!=null&&n.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:fG(t,a),...r&&a.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=fG(t,a)}function fG(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let a={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=a.i?e.source.toLowerCase():e.source,o="",i=!1,s=!1,l=!1;for(let u=0;u<n.length;u++){if(i){o+=n[u],i=!1;continue}if(a.i){if(s){if(n[u].match(/[a-z]/)){l?(o+=n[u],o+=`${n[u-2]}-${n[u]}`.toUpperCase(),l=!1):n[u+1]==="-"&&((r=n[u+2])!=null&&r.match(/[a-z]/))?(o+=n[u],l=!0):o+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){o+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(a.m){if(n[u]==="^"){o+=`(^|(?<=[\r
|
|
107
|
+
]))`;continue}else if(n[u]==="$"){o+=`($|(?=[\r
|
|
108
|
+
]))`;continue}}if(a.s&&n[u]==="."){o+=s?`${n[u]}\r
|
|
109
|
+
`:`[${n[u]}\r
|
|
110
|
+
]`;continue}o+=n[u],n[u]==="\\"?i=!0:s&&n[u]==="]"?s=!1:!s&&n[u]==="["&&(s=!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 yG(e,t){var r,a,n,o,i,s;let l={type:"object",additionalProperties:(r=Kt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((a=e.keyType)==null?void 0:a._def.typeName)===be.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:u,...d}=gG(e.keyType._def,t);return{...l,propertyNames:d}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===be.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===be.ZodBranded&&e.keyType._def.type._def.typeName===be.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:u,...d}=mG(e.keyType._def,t);return{...l,propertyNames:d}}}return l}function A1e(e,t){if(t.mapStrategy==="record")return yG(e,t);let r=Kt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||co(),a=Kt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||co();return{type:"array",maxItems:125,items:{type:"array",items:[r,a],minItems:2,maxItems:2}}}function L1e(e){let t=e.values,a=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),n=Array.from(new Set(a.map(o=>typeof o)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:a}}function N1e(){return{not:co()}}function R1e(){return{type:"null"}}var UO={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function O1e(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(a=>a._def.typeName in UO&&(!a._def.checks||!a._def.checks.length))){let a=r.reduce((n,o)=>{let i=UO[o._def.typeName];return i&&!n.includes(i)?[...n,i]:n},[]);return{type:a.length>1?a:a[0]}}else if(r.every(a=>a._def.typeName==="ZodLiteral"&&!a.description)){let a=r.reduce((n,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...n,i];case"bigint":return[...n,"integer"];case"object":if(o._def.value===null)return[...n,"null"];case"symbol":case"undefined":case"function":default:return n}},[]);if(a.length===r.length){let n=a.filter((o,i,s)=>s.indexOf(o)===i);return{type:n.length>1?n:n[0],enum:r.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(r.every(a=>a._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((a,n)=>[...a,...n._def.values.filter(o=>!a.includes(o))],[])};return D1e(e,t)}var D1e=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((a,n)=>Kt(a._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(a=>!!a&&(!t.strictUnions||typeof a=="object"&&Object.keys(a).length>0));return r.length?{anyOf:r}:void 0};function M1e(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[UO[e.innerType._def.typeName],"null"]};let r=Kt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function P1e(e){let t={type:"number"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function U1e(e,t){let r={type:"object",properties:{}},a=[],n=e.shape();for(let i in n){let s=n[i];if(s===void 0||s._def===void 0)continue;let l=F1e(s),u=Kt(s._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});u!==void 0&&(r.properties[i]=u,l||a.push(i))}a.length&&(r.required=a);let o=z1e(e,t);return o!==void 0&&(r.additionalProperties=o),r}function z1e(e,t){if(e.catchall._def.typeName!=="ZodNever")return Kt(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 F1e(e){try{return e.isOptional()}catch{return!0}}var B1e=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return Kt(e.innerType._def,t);let a=Kt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return a?{anyOf:[{not:co()},a]}:co()},$1e=(e,t)=>{if(t.pipeStrategy==="input")return Kt(e.in._def,t);if(t.pipeStrategy==="output")return Kt(e.out._def,t);let r=Kt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),a=Kt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,a].filter(n=>n!==void 0)}};function j1e(e,t){return Kt(e.type._def,t)}function H1e(e,t){let a={type:"array",uniqueItems:!0,items:Kt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(a.minItems=e.minSize.value),e.maxSize&&(a.maxItems=e.maxSize.value),a}function V1e(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,a)=>Kt(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[]),additionalItems:Kt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,a)=>Kt(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[])}}function q1e(){return{not:co()}}function G1e(){return co()}var Z1e=(e,t)=>Kt(e.innerType._def,t),W1e=(e,t,r)=>{switch(t){case be.ZodString:return gG(e,r);case be.ZodNumber:return P1e(e);case be.ZodObject:return U1e(e,r);case be.ZodBigInt:return y1e(e);case be.ZodBoolean:return b1e();case be.ZodDate:return hG(e,r);case be.ZodUndefined:return q1e();case be.ZodNull:return R1e();case be.ZodArray:return g1e(e,r);case be.ZodUnion:case be.ZodDiscriminatedUnion:return O1e(e,r);case be.ZodIntersection:return I1e(e,r);case be.ZodTuple:return V1e(e,r);case be.ZodRecord:return yG(e,r);case be.ZodLiteral:return _1e(e);case be.ZodEnum:return E1e(e);case be.ZodNativeEnum:return L1e(e);case be.ZodNullable:return M1e(e,r);case be.ZodOptional:return B1e(e,r);case be.ZodMap:return A1e(e,r);case be.ZodSet:return H1e(e,r);case be.ZodLazy:return()=>e.getter()._def;case be.ZodPromise:return j1e(e,r);case be.ZodNaN:case be.ZodNever:return N1e();case be.ZodEffects:return T1e(e,r);case be.ZodAny:return co();case be.ZodUnknown:return G1e();case be.ZodDefault:return w1e(e,r);case be.ZodBranded:return mG(e,r);case be.ZodReadonly:return Z1e(e,r);case be.ZodCatch:return v1e(e,r);case be.ZodPipeline:return $1e(e,r);case be.ZodFunction:case be.ZodVoid:case be.ZodSymbol:return;default:return(a=>{})(t)}};function Kt(e,t,r=!1){var a;let n=t.seen.get(e);if(t.override){let l=(a=t.override)==null?void 0:a.call(t,e,t,n,r);if(l!==m1e)return l}if(n&&!r){let l=Y1e(n,t);if(l!==void 0)return l}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=W1e(e,e.typeName,t),s=typeof i=="function"?Kt(i(),t):i;if(s&&K1e(e,t,s),t.postProcess){let l=t.postProcess(s,e,t);return o.jsonSchema=s,l}return o.jsonSchema=s,s}var Y1e=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:p1e(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,a)=>t.currentPath[a]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),co()):t.$refStrategy==="seen"?co():void 0}},K1e=(e,t,r)=>(e.description&&(r.description=e.description),r),X1e=e=>{let t=h1e(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([a,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,a],jsonSchema:void 0}]))}},J1e=(e,t)=>{var r;let a=X1e(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[d,f])=>{var p;return{...u,[d]:(p=Kt(f._def,{...a,currentPath:[...a.basePath,a.definitionPath,d]},!0))!=null?p:co()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(r=Kt(e._def,o===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,o]},!1))!=null?r:co(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(i.title=s);let l=o===void 0?n?{...i,[a.definitionPath]:n}:i:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,o].join("/"),[a.definitionPath]:{...n,[o]:i}};return l.$schema="http://json-schema.org/draft-07/schema#",l},Q1e=J1e;function ewe(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1;return $O(()=>Q1e(e,{$refStrategy:a?"root":"none"}),{validate:async n=>{let o=await e.safeParseAsync(n);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function twe(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1;return $O(()=>Pc(e,{target:"draft-7",io:"output",reused:a?"ref":"inline"}),{validate:async n=>{let o=await Uc(e,n);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function rwe(e){return"_zod"in e}function _y(e,t){return rwe(e)?twe(e,t):ewe(e,t)}var zO=Symbol.for("vercel.ai.schema");function $O(e,{validate:t}={}){return{[zO]:!0,_type:void 0,[lE]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function awe(e){return typeof e=="object"&&e!==null&&zO in e&&e[zO]===!0&&"jsonSchema"in e&&"validate"in e}function bG(e){return e==null?$O({properties:{},additionalProperties:!1}):awe(e)?e:typeof e=="function"?e():_y(e)}var{btoa:jCt,atob:HCt}=globalThis;var nwe=Object.defineProperty,owe=(e,t)=>{for(var r in t)nwe(e,r,{get:t[r],enumerable:!0})},iwe="AI_NoOutputSpecifiedError",swe=`vercel.ai.error.${iwe}`,lwe=Symbol.for(swe),uwe;uwe=lwe;var cwe="AI_InvalidArgumentError",dwe=`vercel.ai.error.${cwe}`,fwe=Symbol.for(dwe),pwe;pwe=fwe;var mwe="AI_InvalidStreamPartError",hwe=`vercel.ai.error.${mwe}`,gwe=Symbol.for(hwe),ywe;ywe=gwe;var bwe="AI_InvalidToolInputError",vwe=`vercel.ai.error.${bwe}`,xwe=Symbol.for(vwe),wwe;wwe=xwe;var Twe="AI_MCPClientError",Ewe=`vercel.ai.error.${Twe}`,Swe=Symbol.for(Ewe),Iwe;Iwe=Swe;var _we="AI_NoImageGeneratedError",kwe=`vercel.ai.error.${_we}`,Cwe=Symbol.for(kwe),Awe;Awe=Cwe;var wG="AI_NoObjectGeneratedError",TG=`vercel.ai.error.${wG}`,Lwe=Symbol.for(TG),EG,vG=class extends zo{constructor({message:e="No object generated.",cause:t,text:r,response:a,usage:n,finishReason:o}){super({name:wG,message:e,cause:t}),this[EG]=!0,this.text=r,this.response=a,this.usage=n,this.finishReason=o}static isInstance(e){return zo.hasMarker(e,TG)}};EG=Lwe;var Nwe="AI_NoOutputGeneratedError",Rwe=`vercel.ai.error.${Nwe}`,Owe=Symbol.for(Rwe),Dwe;Dwe=Owe;var Mwe="AI_NoSuchToolError",Pwe=`vercel.ai.error.${Mwe}`,Uwe=Symbol.for(Pwe),zwe;zwe=Uwe;var Fwe="AI_ToolCallRepairError",Bwe=`vercel.ai.error.${Fwe}`,$we=Symbol.for(Bwe),jwe;jwe=$we;var Hwe="AI_InvalidDataContentError",Vwe=`vercel.ai.error.${Hwe}`,qwe=Symbol.for(Vwe),Gwe;Gwe=qwe;var Zwe="AI_InvalidMessageRoleError",Wwe=`vercel.ai.error.${Zwe}`,Ywe=Symbol.for(Wwe),Kwe;Kwe=Ywe;var Xwe="AI_MessageConversionError",Jwe=`vercel.ai.error.${Xwe}`,Qwe=Symbol.for(Jwe),eTe;eTe=Qwe;var tTe="AI_DownloadError",rTe=`vercel.ai.error.${tTe}`,aTe=Symbol.for(rTe),nTe;nTe=aTe;var oTe="AI_RetryError",iTe=`vercel.ai.error.${oTe}`,sTe=Symbol.for(iTe),lTe;lTe=sTe;var xG="5.0.65";var SG=Zt([J(),Bc(Uint8Array),Bc(ArrayBuffer),Vg(e=>{var t,r;return(r=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?r:!1},{message:"Must be a Buffer"})]);var ky=Dx(()=>Zt([Nx(),J(),Os(),kt(),zc(J(),ky),Pa(ky)])),Dt=zc(J(),zc(J(),ky)),IG=Pe({type:Ce("text"),text:J(),providerOptions:Dt.optional()}),uTe=Pe({type:Ce("image"),image:Zt([SG,Bc(URL)]),mediaType:J().optional(),providerOptions:Dt.optional()}),_G=Pe({type:Ce("file"),data:Zt([SG,Bc(URL)]),filename:J().optional(),mediaType:J(),providerOptions:Dt.optional()}),cTe=Pe({type:Ce("reasoning"),text:J(),providerOptions:Dt.optional()}),dTe=Pe({type:Ce("tool-call"),toolCallId:J(),toolName:J(),input:Ut(),providerOptions:Dt.optional(),providerExecuted:kt().optional()}),fTe=YA("type",[Pe({type:Ce("text"),value:J()}),Pe({type:Ce("json"),value:ky}),Pe({type:Ce("error-text"),value:J()}),Pe({type:Ce("error-json"),value:ky}),Pe({type:Ce("content"),value:Pa(Zt([Pe({type:Ce("text"),text:J()}),Pe({type:Ce("media"),data:J(),mediaType:J()})]))})]),kG=Pe({type:Ce("tool-result"),toolCallId:J(),toolName:J(),output:fTe,providerOptions:Dt.optional()}),pTe=Pe({role:Ce("system"),content:J(),providerOptions:Dt.optional()});var mTe=Pe({role:Ce("user"),content:Zt([J(),Pa(Zt([IG,uTe,_G]))]),providerOptions:Dt.optional()});var hTe=Pe({role:Ce("assistant"),content:Zt([J(),Pa(Zt([IG,_G,cTe,dTe,kG]))]),providerOptions:Dt.optional()});var gTe=Pe({role:Ce("tool"),content:Pa(kG),providerOptions:Dt.optional()});var QCt=Zt([pTe,mTe,hTe,gTe]);var eAt=cl({prefix:"aitxt",size:24});var rAt=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
111
|
+
|
|
112
|
+
`)},flush(e){e.enqueue(`data: [DONE]
|
|
113
|
+
|
|
114
|
+
`)}})}};var yTe=uE(()=>_y(Zt([br({type:Ce("text-start"),id:J(),providerMetadata:Dt.optional()}),br({type:Ce("text-delta"),id:J(),delta:J(),providerMetadata:Dt.optional()}),br({type:Ce("text-end"),id:J(),providerMetadata:Dt.optional()}),br({type:Ce("error"),errorText:J()}),br({type:Ce("tool-input-start"),toolCallId:J(),toolName:J(),providerExecuted:kt().optional(),dynamic:kt().optional()}),br({type:Ce("tool-input-delta"),toolCallId:J(),inputTextDelta:J()}),br({type:Ce("tool-input-available"),toolCallId:J(),toolName:J(),input:Ut(),providerExecuted:kt().optional(),providerMetadata:Dt.optional(),dynamic:kt().optional()}),br({type:Ce("tool-input-error"),toolCallId:J(),toolName:J(),input:Ut(),providerExecuted:kt().optional(),providerMetadata:Dt.optional(),dynamic:kt().optional(),errorText:J()}),br({type:Ce("tool-output-available"),toolCallId:J(),output:Ut(),providerExecuted:kt().optional(),dynamic:kt().optional(),preliminary:kt().optional()}),br({type:Ce("tool-output-error"),toolCallId:J(),errorText:J(),providerExecuted:kt().optional(),dynamic:kt().optional()}),br({type:Ce("reasoning-start"),id:J(),providerMetadata:Dt.optional()}),br({type:Ce("reasoning-delta"),id:J(),delta:J(),providerMetadata:Dt.optional()}),br({type:Ce("reasoning-end"),id:J(),providerMetadata:Dt.optional()}),br({type:Ce("source-url"),sourceId:J(),url:J(),title:J().optional(),providerMetadata:Dt.optional()}),br({type:Ce("source-document"),sourceId:J(),mediaType:J(),title:J(),filename:J().optional(),providerMetadata:Dt.optional()}),br({type:Ce("file"),url:J(),mediaType:J(),providerMetadata:Dt.optional()}),br({type:Vg(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:J().optional(),data:Ut(),transient:kt().optional()}),br({type:Ce("start-step")}),br({type:Ce("finish-step")}),br({type:Ce("start"),messageId:J().optional(),messageMetadata:Ut().optional()}),br({type:Ce("finish"),messageMetadata:Ut().optional()}),br({type:Ce("abort")}),br({type:Ce("message-metadata"),messageMetadata:Ut()})])));function bTe(e){let t=["ROOT"],r=-1,a=null;function n(l,u,d){switch(l){case'"':{r=u,t.pop(),t.push(d),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=u,a=u,t.pop(),t.push(d),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(d),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":{r=u,t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"{":{r=u,t.pop(),t.push(d),t.push("INSIDE_OBJECT_START");break}case"[":{r=u,t.pop(),t.push(d),t.push("INSIDE_ARRAY_START");break}}}function o(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=u,t.pop();break}}}function i(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=u,t.pop();break}}}for(let l=0;l<e.length;l++){let u=e[l];switch(t[t.length-1]){case"ROOT":n(u,l,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=l,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(u){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{n(u,l,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,l);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),r=l;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=l}break}case"INSIDE_ARRAY_START":{switch(u){case"]":{r=l,t.pop();break}default:{r=l,n(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=l,t.pop();break}default:{r=l;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{n(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=l;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":{r=l;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let f=e.substring(a,l+1);!"false".startsWith(f)&&!"true".startsWith(f)&&!"null".startsWith(f)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,l):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l)):r=l;break}}}let s=e.slice(0,r+1);for(let l=t.length-1;l>=0;l--)switch(t[l]){case"INSIDE_STRING":{s+='"';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":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{let d=e.substring(a,e.length);"true".startsWith(d)?s+="true".slice(d.length):"false".startsWith(d)?s+="false".slice(d.length):"null".startsWith(d)&&(s+="null".slice(d.length))}}return s}async function vTe(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Nm({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Nm({text:bTe(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var oAt=cl({prefix:"aitxt",size:24});var sAt=cl({prefix:"aiobj",size:24});var uAt=cl({prefix:"aiobj",size:24});var xTe={};owe(xTe,{object:()=>TTe,text:()=>wTe});var wTe=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),TTe=({schema:e})=>{let t=bG(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:r}){let a=await vTe(r);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:a.value};default:{let n=a.state;throw new Error(`Unsupported parse state: ${n}`)}}},async parseOutput({text:r},a){let n=await Nm({text:r});if(!n.success)throw new vG({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});let o=await BO({value:n.value,schema:t});if(!o.success)throw new vG({message:"No object generated: response did not match schema.",cause:o.error,text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});return o.value}}};var ETe="AI_NoSuchProviderError",STe=`vercel.ai.error.${ETe}`,ITe=Symbol.for(STe),_Te;_Te=ITe;var kTe=tu({name:J(),version:J()}),jO=tu({_meta:_r(Pe({}).loose())}),Cy=jO,CTe=Pe({method:J(),params:_r(jO)}),ATe=tu({experimental:_r(Pe({}).loose()),logging:_r(Pe({}).loose()),prompts:_r(tu({listChanged:_r(kt())})),resources:_r(tu({subscribe:_r(kt()),listChanged:_r(kt())})),tools:_r(tu({listChanged:_r(kt())}))}),dAt=Cy.extend({protocolVersion:J(),capabilities:ATe,serverInfo:kTe,instructions:_r(J())}),LTe=Cy.extend({nextCursor:_r(J())}),NTe=Pe({name:J(),description:_r(J()),inputSchema:Pe({type:Ce("object"),properties:_r(Pe({}).loose())}).loose()}).loose(),fAt=LTe.extend({tools:Pa(NTe)}),RTe=Pe({type:Ce("text"),text:J()}).loose(),OTe=Pe({type:Ce("image"),data:Lx(),mimeType:J()}).loose(),CG=Pe({uri:J(),mimeType:_r(J())}).loose(),DTe=CG.extend({text:J()}),MTe=CG.extend({blob:Lx()}),PTe=Pe({type:Ce("resource"),resource:Zt([DTe,MTe])}).loose(),pAt=Cy.extend({content:Pa(Zt([RTe,OTe,PTe])),isError:kt().default(!1).optional()}).or(Cy.extend({toolResult:Ut()})),cE="2.0",UTe=Pe({jsonrpc:Ce(cE),id:Zt([J(),Os().int()])}).merge(CTe).strict(),zTe=Pe({jsonrpc:Ce(cE),id:Zt([J(),Os().int()]),result:Cy}).strict(),FTe=Pe({jsonrpc:Ce(cE),id:Zt([J(),Os().int()]),error:Pe({code:Os().int(),message:J(),data:_r(Ut())})}).strict(),BTe=Pe({jsonrpc:Ce(cE)}).merge(Pe({method:J(),params:_r(jO)})).strict(),mAt=Zt([UTe,BTe,zTe,FTe]);var $Te=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:a,fetch:n,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=r,this.body=a,this.fetch=n,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var r,a,n,o,i;let s=await jd(this.body),l=await jd(this.headers),u=await jd(this.credentials),d=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:{...l,...t.headers},credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),f=(a=d?.api)!=null?a:this.api,p=d?.headers!==void 0?d.headers:{...l,...t.headers},m=d?.body!==void 0?d.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},g=(n=d?.credentials)!=null?n:u,w=await((o=this.fetch)!=null?o:globalThis.fetch)(f,{method:"POST",headers:Iy({"Content-Type":"application/json",...p},`ai-sdk/${xG}`,FO()),body:JSON.stringify(m),credentials:g,signal:e});if(!w.ok)throw new Error((i=await w.text())!=null?i:"Failed to fetch the chat response.");if(!w.body)throw new Error("The response body is empty.");return this.processResponseStream(w.body)}async reconnectToStream(e){var t,r,a,n,o;let i=await jd(this.body),s=await jd(this.headers),l=await jd(this.credentials),u=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:{...s,...e.headers},credentials:l,requestMetadata:e.metadata})),d=(r=u?.api)!=null?r:`${this.api}/${e.chatId}/stream`,f=u?.headers!==void 0?u.headers:{...s,...e.headers},p=(a=u?.credentials)!=null?a:l,g=await((n=this.fetch)!=null?n:globalThis.fetch)(d,{method:"GET",headers:Iy(f,`ai-sdk/${xG}`,FO()),credentials:p});if(g.status===204)return null;if(!g.ok)throw new Error((o=await g.text())!=null?o:"Failed to fetch the chat response.");if(!g.body)throw new Error("The response body is empty.");return this.processResponseStream(g.body)}},AG=class extends $Te{constructor(e={}){super(e)}processResponseStream(e){return pG({stream:e,schema:yTe}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}};var bAt=uE(()=>_y(Pa(Pe({id:J(),role:Fc(["system","user","assistant"]),metadata:Ut().optional(),parts:Pa(Zt([Pe({type:Ce("text"),text:J(),state:Fc(["streaming","done"]).optional(),providerMetadata:Dt.optional()}),Pe({type:Ce("reasoning"),text:J(),state:Fc(["streaming","done"]).optional(),providerMetadata:Dt.optional()}),Pe({type:Ce("source-url"),sourceId:J(),url:J(),title:J().optional(),providerMetadata:Dt.optional()}),Pe({type:Ce("source-document"),sourceId:J(),mediaType:J(),title:J(),filename:J().optional(),providerMetadata:Dt.optional()}),Pe({type:Ce("file"),mediaType:J(),filename:J().optional(),url:J(),providerMetadata:Dt.optional()}),Pe({type:Ce("step-start")}),Pe({type:J().startsWith("data-"),id:J().optional(),data:Ut()}),Pe({type:Ce("dynamic-tool"),toolName:J(),toolCallId:J(),state:Ce("input-streaming"),input:Ut().optional(),output:cr().optional(),errorText:cr().optional()}),Pe({type:Ce("dynamic-tool"),toolName:J(),toolCallId:J(),state:Ce("input-available"),input:Ut(),output:cr().optional(),errorText:cr().optional(),callProviderMetadata:Dt.optional()}),Pe({type:Ce("dynamic-tool"),toolName:J(),toolCallId:J(),state:Ce("output-available"),input:Ut(),output:Ut(),errorText:cr().optional(),callProviderMetadata:Dt.optional(),preliminary:kt().optional()}),Pe({type:Ce("dynamic-tool"),toolName:J(),toolCallId:J(),state:Ce("output-error"),input:Ut(),output:cr().optional(),errorText:J(),callProviderMetadata:Dt.optional()}),Pe({type:J().startsWith("tool-"),toolCallId:J(),state:Ce("input-streaming"),providerExecuted:kt().optional(),input:Ut().optional(),output:cr().optional(),errorText:cr().optional(),approval:cr().optional()}),Pe({type:J().startsWith("tool-"),toolCallId:J(),state:Ce("input-available"),providerExecuted:kt().optional(),input:Ut(),output:cr().optional(),errorText:cr().optional(),callProviderMetadata:Dt.optional(),approval:cr().optional()}),Pe({type:J().startsWith("tool-"),toolCallId:J(),state:Ce("approval-requested"),input:Ut(),providerExecuted:kt().optional(),output:cr().optional(),errorText:cr().optional(),callProviderMetadata:Dt.optional(),approval:Pe({id:J(),approved:cr().optional(),reason:cr().optional()})}),Pe({type:J().startsWith("tool-"),toolCallId:J(),state:Ce("approval-responded"),input:Ut(),providerExecuted:kt().optional(),output:cr().optional(),errorText:cr().optional(),callProviderMetadata:Dt.optional(),approval:Pe({id:J(),approved:kt(),reason:J().optional()})}),Pe({type:J().startsWith("tool-"),toolCallId:J(),state:Ce("output-available"),providerExecuted:kt().optional(),input:Ut(),output:Ut(),errorText:cr().optional(),callProviderMetadata:Dt.optional(),preliminary:kt().optional(),approval:Pe({id:J(),approved:Ce(!0),reason:J().optional()}).optional()}),Pe({type:J().startsWith("tool-"),toolCallId:J(),state:Ce("output-error"),providerExecuted:kt().optional(),input:Ut(),output:cr().optional(),errorText:J(),callProviderMetadata:Dt.optional(),approval:Pe({id:J(),approved:Ce(!0),reason:J().optional()}).optional()}),Pe({type:J().startsWith("tool-"),toolCallId:J(),state:Ce("output-denied"),providerExecuted:kt().optional(),input:Ut(),output:cr().optional(),errorText:cr().optional(),callProviderMetadata:Dt.optional(),approval:Pe({id:J(),approved:Ce(!1),reason:J().optional()})})]))}))));var XO=O(_h()),qt=O(re());c();var ZO=O(re(),1),MG=O(re(),1),fl=O(re(),1);c();var jTe={data:""},HTe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||jTe;var VTe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,qTe=/\/\*[^]*?\*\/| +/g,LG=/\n+/g,$u=(e,t)=>{let r="",a="",n="";for(let o in e){let i=e[o];o[0]=="@"?o[1]=="i"?r=o+" "+i+";":a+=o[1]=="f"?$u(i,o):o+"{"+$u(i,o[1]=="k"?"":t)+"}":typeof i=="object"?a+=$u(i,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):i!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=$u.p?$u.p(o,i):o+":"+i+";")}return r+(t&&n?t+"{"+n+"}":n)+a},dl={},NG=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+NG(e[r]);return t}return e},GTe=(e,t,r,a,n)=>{let o=NG(e),i=dl[o]||(dl[o]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(o));if(!dl[i]){let l=o!==e?e:(u=>{let d,f,p=[{}];for(;d=VTe.exec(u.replace(qTe,""));)d[4]?p.shift():d[3]?(f=d[3].replace(LG," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][d[1]]=d[2].replace(LG," ").trim();return p[0]})(e);dl[i]=$u(n?{["@keyframes "+i]:l}:l,r?"":"."+i)}let s=r&&dl.g?dl.g:null;return r&&(dl.g=dl[i]),((l,u,d,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(dl[i],t,a,s),i},ZTe=(e,t,r)=>e.reduce((a,n,o)=>{let i=t[o];if(i&&i.call){let s=i(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;i=l?"."+l:s&&typeof s=="object"?s.props?"":$u(s,""):s===!1?"":s}return a+n+(i??"")},"");function Ay(e){let t=this||{},r=e.call?e(t.p):e;return GTe(r.unshift?r.raw?ZTe(r,[].slice.call(arguments,1),t.p):r.reduce((a,n)=>Object.assign(a,n&&n.call?n(t.p):n),{}):r,HTe(t.target),t.g,t.o,t.k)}var RG,HO,VO,IAt=Ay.bind({g:1}),Un=Ay.bind({k:1});function OG(e,t,r,a){$u.p=t,RG=e,HO=r,VO=a}function fo(e,t){let r=this||{};return function(){let a=arguments;function n(o,i){let s=Object.assign({},o),l=s.className||n.className;r.p=Object.assign({theme:HO&&HO()},s),r.o=/ *go\d+/.test(l),s.className=Ay.apply(r,a)+(l?" "+l:""),t&&(s.ref=i);let u=e;return e[0]&&(u=s.as||e,delete s.as),VO&&u[0]&&VO(s),RG(u,s)}return t?t(n):n}}var Hd=O(re(),1);var YO=O(re(),1),WTe=e=>typeof e=="function",GO=(e,t)=>WTe(e)?e(t):e,YTe=(()=>{let e=0;return()=>(++e).toString()})(),KTe=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),XTe=20,DG=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,XTe)};case 1:return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:r}=t;return DG(e,{type:e.toasts.find(o=>o.id===r.id)?1:0,toast:r});case 3:let{toastId:a}=t;return{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let n=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+n}))}}},JTe=[],qO={toasts:[],pausedAt:void 0},WO=e=>{qO=DG(qO,e),JTe.forEach(t=>{t(qO)})};var QTe=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:r?.id||YTe()}),Ly=e=>(t,r)=>{let a=QTe(t,e,r);return WO({type:2,toast:a}),a.id},po=(e,t)=>Ly("blank")(e,t);po.error=Ly("error");po.success=Ly("success");po.loading=Ly("loading");po.custom=Ly("custom");po.dismiss=e=>{WO({type:3,toastId:e})};po.remove=e=>WO({type:4,toastId:e});po.promise=(e,t,r)=>{let a=po.loading(t.loading,{...r,...r?.loading});return typeof e=="function"&&(e=e()),e.then(n=>{let o=t.success?GO(t.success,n):void 0;return o?po.success(o,{id:a,...r,...r?.success}):po.dismiss(a),n}).catch(n=>{let o=t.error?GO(t.error,n):void 0;o?po.error(o,{id:a,...r,...r?.error}):po.dismiss(a)}),e};var eEe=Un`
|
|
115
|
+
from {
|
|
116
|
+
transform: scale(0) rotate(45deg);
|
|
117
|
+
opacity: 0;
|
|
118
|
+
}
|
|
119
|
+
to {
|
|
120
|
+
transform: scale(1) rotate(45deg);
|
|
121
|
+
opacity: 1;
|
|
122
|
+
}`,tEe=Un`
|
|
123
|
+
from {
|
|
124
|
+
transform: scale(0);
|
|
125
|
+
opacity: 0;
|
|
126
|
+
}
|
|
127
|
+
to {
|
|
128
|
+
transform: scale(1);
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}`,rEe=Un`
|
|
131
|
+
from {
|
|
132
|
+
transform: scale(0) rotate(90deg);
|
|
133
|
+
opacity: 0;
|
|
134
|
+
}
|
|
135
|
+
to {
|
|
136
|
+
transform: scale(1) rotate(90deg);
|
|
137
|
+
opacity: 1;
|
|
138
|
+
}`,aEe=fo("div")`
|
|
139
|
+
width: 20px;
|
|
140
|
+
opacity: 0;
|
|
141
|
+
height: 20px;
|
|
142
|
+
border-radius: 10px;
|
|
143
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
144
|
+
position: relative;
|
|
145
|
+
transform: rotate(45deg);
|
|
146
|
+
|
|
147
|
+
animation: ${eEe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
148
|
+
forwards;
|
|
149
|
+
animation-delay: 100ms;
|
|
150
|
+
|
|
151
|
+
&:after,
|
|
152
|
+
&:before {
|
|
153
|
+
content: '';
|
|
154
|
+
animation: ${tEe} 0.15s ease-out forwards;
|
|
155
|
+
animation-delay: 150ms;
|
|
156
|
+
position: absolute;
|
|
157
|
+
border-radius: 3px;
|
|
158
|
+
opacity: 0;
|
|
159
|
+
background: ${e=>e.secondary||"#fff"};
|
|
160
|
+
bottom: 9px;
|
|
161
|
+
left: 4px;
|
|
162
|
+
height: 2px;
|
|
163
|
+
width: 12px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:before {
|
|
167
|
+
animation: ${rEe} 0.15s ease-out forwards;
|
|
168
|
+
animation-delay: 180ms;
|
|
169
|
+
transform: rotate(90deg);
|
|
170
|
+
}
|
|
171
|
+
`,nEe=Un`
|
|
172
|
+
from {
|
|
173
|
+
transform: rotate(0deg);
|
|
174
|
+
}
|
|
175
|
+
to {
|
|
176
|
+
transform: rotate(360deg);
|
|
177
|
+
}
|
|
178
|
+
`,oEe=fo("div")`
|
|
179
|
+
width: 12px;
|
|
180
|
+
height: 12px;
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
border: 2px solid;
|
|
183
|
+
border-radius: 100%;
|
|
184
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
185
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
186
|
+
animation: ${nEe} 1s linear infinite;
|
|
187
|
+
`,iEe=Un`
|
|
188
|
+
from {
|
|
189
|
+
transform: scale(0) rotate(45deg);
|
|
190
|
+
opacity: 0;
|
|
191
|
+
}
|
|
192
|
+
to {
|
|
193
|
+
transform: scale(1) rotate(45deg);
|
|
194
|
+
opacity: 1;
|
|
195
|
+
}`,sEe=Un`
|
|
196
|
+
0% {
|
|
197
|
+
height: 0;
|
|
198
|
+
width: 0;
|
|
199
|
+
opacity: 0;
|
|
200
|
+
}
|
|
201
|
+
40% {
|
|
202
|
+
height: 0;
|
|
203
|
+
width: 6px;
|
|
204
|
+
opacity: 1;
|
|
205
|
+
}
|
|
206
|
+
100% {
|
|
207
|
+
opacity: 1;
|
|
208
|
+
height: 10px;
|
|
209
|
+
}`,lEe=fo("div")`
|
|
210
|
+
width: 20px;
|
|
211
|
+
opacity: 0;
|
|
212
|
+
height: 20px;
|
|
213
|
+
border-radius: 10px;
|
|
214
|
+
background: ${e=>e.primary||"#61d345"};
|
|
215
|
+
position: relative;
|
|
216
|
+
transform: rotate(45deg);
|
|
217
|
+
|
|
218
|
+
animation: ${iEe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
219
|
+
forwards;
|
|
220
|
+
animation-delay: 100ms;
|
|
221
|
+
&:after {
|
|
222
|
+
content: '';
|
|
223
|
+
box-sizing: border-box;
|
|
224
|
+
animation: ${sEe} 0.2s ease-out forwards;
|
|
225
|
+
opacity: 0;
|
|
226
|
+
animation-delay: 200ms;
|
|
227
|
+
position: absolute;
|
|
228
|
+
border-right: 2px solid;
|
|
229
|
+
border-bottom: 2px solid;
|
|
230
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
231
|
+
bottom: 6px;
|
|
232
|
+
left: 6px;
|
|
233
|
+
height: 10px;
|
|
234
|
+
width: 6px;
|
|
235
|
+
}
|
|
236
|
+
`,uEe=fo("div")`
|
|
237
|
+
position: absolute;
|
|
238
|
+
`,cEe=fo("div")`
|
|
239
|
+
position: relative;
|
|
240
|
+
display: flex;
|
|
241
|
+
justify-content: center;
|
|
242
|
+
align-items: center;
|
|
243
|
+
min-width: 20px;
|
|
244
|
+
min-height: 20px;
|
|
245
|
+
`,dEe=Un`
|
|
246
|
+
from {
|
|
247
|
+
transform: scale(0.6);
|
|
248
|
+
opacity: 0.4;
|
|
249
|
+
}
|
|
250
|
+
to {
|
|
251
|
+
transform: scale(1);
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}`,fEe=fo("div")`
|
|
254
|
+
position: relative;
|
|
255
|
+
transform: scale(0.6);
|
|
256
|
+
opacity: 0.4;
|
|
257
|
+
min-width: 20px;
|
|
258
|
+
animation: ${dEe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
259
|
+
forwards;
|
|
260
|
+
`,pEe=({toast:e})=>{let{icon:t,type:r,iconTheme:a}=e;return t!==void 0?typeof t=="string"?Hd.createElement(fEe,null,t):t:r==="blank"?null:Hd.createElement(cEe,null,Hd.createElement(oEe,{...a}),r!=="loading"&&Hd.createElement(uEe,null,r==="error"?Hd.createElement(aEe,{...a}):Hd.createElement(lEe,{...a})))},mEe=e=>`
|
|
261
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
262
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
263
|
+
`,hEe=e=>`
|
|
264
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
265
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
266
|
+
`,gEe="0%{opacity:0;} 100%{opacity:1;}",yEe="0%{opacity:1;} 100%{opacity:0;}",bEe=fo("div")`
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
background: #fff;
|
|
270
|
+
color: #363636;
|
|
271
|
+
line-height: 1.3;
|
|
272
|
+
will-change: transform;
|
|
273
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
274
|
+
max-width: 350px;
|
|
275
|
+
pointer-events: auto;
|
|
276
|
+
padding: 8px 10px;
|
|
277
|
+
border-radius: 8px;
|
|
278
|
+
`,vEe=fo("div")`
|
|
279
|
+
display: flex;
|
|
280
|
+
justify-content: center;
|
|
281
|
+
margin: 4px 10px;
|
|
282
|
+
color: inherit;
|
|
283
|
+
flex: 1 1 auto;
|
|
284
|
+
white-space: pre-line;
|
|
285
|
+
`,xEe=(e,t)=>{let r=e.includes("top")?1:-1,[a,n]=KTe()?[gEe,yEe]:[mEe(r),hEe(r)];return{animation:t?`${Un(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Un(n)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},OAt=fl.memo(({toast:e,position:t,style:r,children:a})=>{let n=e.height?xEe(e.position||t||"top-center",e.visible):{opacity:0},o=fl.createElement(pEe,{toast:e}),i=fl.createElement(vEe,{...e.ariaProps},GO(e.message,e));return fl.createElement(bEe,{className:e.className,style:{...n,...r,...e.style}},typeof a=="function"?a({icon:o,message:i}):fl.createElement(fl.Fragment,null,o,i))});OG(YO.createElement);var MAt=Ay`
|
|
286
|
+
z-index: 9999;
|
|
287
|
+
> * {
|
|
288
|
+
pointer-events: auto;
|
|
289
|
+
}
|
|
290
|
+
`;var KO=po;var zG=O(ae()),PG=(0,qt.createContext)(null),wEe={messages:[],status:"ready",error:void 0,sendMessage:async()=>{},setMessages:()=>{},addToolResult:async()=>{},stop:()=>{},regenerate:()=>{},startNewChat:async()=>{},chatId:"",agentContext:null,isHistoryLoading:!0};function UG({children:e,agentId:t,conversationId:r,channel:a="dashboard",selectedModel:n,selectedAgent:o,onAgentChange:i,availableAgents:s,visitorId:l,onChangeConversationId:u,onHistoryLoaded:d}){let f=(0,qt.useRef)(!1),p=(0,qt.useRef)(!1),[m,g]=(0,qt.useState)(!0),[x,w]=(0,qt.useState)(null),[b,v]=(0,qt.useState)(void 0),T=a==="agent_builder",[E,I]=(0,qt.useState)(()=>r||(0,XO.default)()),_=o?.id||t;(0,qt.useEffect)(()=>{!_&&a==="agent_builder"?console.error("[useAgentChat] \u274C selectedAgentId is undefined for agent_builder!",{selectedAgent:o,agentId:t,channel:a}):_&&console.log("[useAgentChat] \u2705 Using agentId:",_,"for channel:",a)},[_,o,t,a]);let A=(0,qt.useRef)(n),N=(0,qt.useRef)(d),F=(0,qt.useRef)(b);(0,qt.useEffect)(()=>{A.current=n,N.current=d,F.current=b},[n,d,b]);let R=async C=>{let _e=C||(0,XO.default)();I(_e),u&&u(_e),f.current=!1,g(!0)},ne=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",z=`${ne}/api/v2/agent/${_}/chat`,D=(0,qt.useMemo)(()=>new AG({api:z,prepareSendMessagesRequest:({messages:C,id:_e})=>{let He=C[C.length-1],M=He?.parts||[],ut=M.find(Xe=>Xe.type==="text")?.text||"",yt=l||"";if(!yt)try{typeof window<"u"&&(yt=window.localStorage?.getItem("visitorId")??"")}catch{}let ze=M.filter(Xe=>Xe.type==="file").map(Xe=>({url:Xe.url,name:Xe.filename,mimeType:Xe.mediaType,size:Xe.size})),Oe=He?.attachmentsForAI??[],Ke=x?.currentVersion?.modelName,ct=A.current||Ke||"gpt_4o";return{body:{streaming:!0,query:ut,conversationId:_e,channel:a,selectedModel:ct,attachments:ze,attachmentsForAI:Oe,visitorId:yt||void 0}}}}),[z,a,x?.currentVersion?.modelName,n]),$=(0,qt.useCallback)(async({toolCall:C})=>{},[]),H=oG({id:E,transport:D,onToolCall:$,onError:({message:C})=>{console.error(`\u274C [AgentChat/${a}] Error:`,C),KO.error(C)},experimental_throttle:500}),V=(0,qt.useRef)(H.status);(0,qt.useEffect)(()=>{let C=V.current==="streaming"||V.current==="submitted",_e=H.status==="ready";p.current=H.status==="streaming"||H.status==="submitted",C&&_e&&T&&(g(!0),f.current=!1),V.current=H.status},[H.status,T]),(0,qt.useEffect)(()=>{if(l&&typeof window<"u")try{window.localStorage?.setItem("visitorId",l)}catch{}},[l]);let Q=(0,qt.useRef)(!1);(0,qt.useEffect)(()=>{let C=()=>{document.visibilityState==="hidden"&&(Q.current=!0)};return document.addEventListener("visibilitychange",C),()=>document.removeEventListener("visibilitychange",C)},[]),(0,qt.useEffect)(()=>{f.current=!1,p.current=!1,H.setMessages([]),w(null),g(!0)},[E,a]),(0,qt.useEffect)(()=>{let C=!1,_e;g(!0);let He=setTimeout(()=>{if(!C){if(p.current){C||g(!1);return}if(Q.current&&f.current){Q.current=!1,C||g(!1);return}_e=setTimeout(()=>{C||g(!1)},5e3),(async()=>{try{if(!E){C||(w(null),g(!1),clearTimeout(_e));return}let M=`${ne}/api/v2/conversations/${encodeURIComponent(E)}/messages?limit=100`,Ye=await fetch(M);if(!Ye.ok){console.error(`\u274C [AgentChat/${a}] History failed:`,Ye.status),C||(g(!1),clearTimeout(_e));return}let ut=await Ye.json(),yt=ut.messages.filter(ze=>ze.role!=="system").map(ze=>{let Oe=[];try{let Ke=JSON.parse(ze.content);if(Ke&&Array.isArray(Ke.parts)){Oe=Ke.parts;let ct=Ke.role||ze.role;return{id:ze.id,role:ct,parts:Oe,createdAt:new Date(ze.createdAt)}}}catch{}return{id:ze.id,role:ze.role,parts:[{type:"text",text:ze.content}],createdAt:new Date(ze.createdAt)}});if(!C&&Array.isArray(yt)){let ze=H.messages.length>0,Oe=yt.length>0,Ke=ut.conversation?.agent??null;if(!f.current){if(Oe){let Xe=Ke?.currentVersion?.interfaceConfig?.initialMessage;if(Xe&&Xe.trim()&&(a==="dashboard"||a==="website")){let Ve=Ke?.name||"Asistente Virtual",bt=Xe.replace(/@Agent/g,Ve),zt={id:`welcome-${E}`,role:"assistant",parts:[{type:"text",text:bt}],createdAt:new Date(0)};H.setMessages([zt,...yt])}else H.setMessages(yt)}else if(!ze){let Xe=Ke?.currentVersion?.interfaceConfig?.initialMessage;if(Xe&&Xe.trim()&&(a==="dashboard"||a==="website")){let Ve=Ke?.name||"Asistente Virtual",bt=Xe.replace(/@Agent/g,Ve);H.setMessages([{id:`welcome-${E}`,role:"assistant",parts:[{type:"text",text:bt}],createdAt:new Date}])}else H.setMessages([])}f.current=!0}}if(!C){let ze=ut.conversation?.agent??null;if(w(ze),!T){let Oe=ut.conversation?.metadata?.selectedModel||ze?.currentVersion?.modelName;Oe&&v(Oe)}g(!1),clearTimeout(_e),N.current&&N.current({selectedModel:T?ut.conversation?.metadata?.selectedModel:ut.conversation?.metadata?.selectedModel||ze?.currentVersion?.modelName,agent:ze})}}catch(M){console.error(`\u274C [AgentChat/${a}] History error:`,M),C||(w(null),g(!1),clearTimeout(_e))}})()}},500);return()=>{C=!0,clearTimeout(_e),clearTimeout(He)}},[E,t,a,T]);let te=(0,qt.useCallback)(async C=>a==="agent_builder"&&!_?(console.error("[useAgentChat] \u274C Cannot send message: selectedAgentId is undefined for agent_builder"),KO.error("Por favor selecciona un agente antes de enviar un mensaje"),Promise.reject(new Error("No agent selected for agent_builder"))):H.sendMessage(C),[H.sendMessage,a,_]),Ee={messages:H.messages,status:H.status,error:H.error,sendMessage:te,setMessages:H.setMessages,addToolResult:H.addToolResult,stop:H.stop,regenerate:H.regenerate,startNewChat:R,chatId:E,agentContext:x,isHistoryLoading:m,interfaceConfig:x?.currentVersion?.interfaceConfig,selectedAgent:o,onAgentChange:i,availableAgents:s};return(0,zG.jsx)(PG.Provider,{value:Ee,children:e})}function dE(){let e=(0,qt.useContext)(PG);return e||wEe}var Ze=O(ae()),TEe=S.object({query:S.string().optional()});function EEe({messages:e,onSubmit:t,messageTemplates:r,readOnly:a,disableWatermark:n,customBrandingName:o,customBrandingUrl:i,agentIconUrl:s,agentName:l,isLoadingConversation:u,emptyComponent:d,handleEvalAnswer:f,renderBottom:p,userImgUrl:m,isAiEnabled:g,isStreaming:x,conversationAttachments:w,actions:b,channel:v,selectedModel:T,onModelChange:E,availableModels:I,onWebSearchExpand:_,hasMoreMessages:A,handleLoadMoreMessages:N,conversationId:F,interfaceConfig:R,brandingLogo:ne}){let z=(0,rn.useRef)(null),D=(0,rn.useRef)(null),$=(0,rn.useRef)(null),H=(0,rn.useRef)(!1),[V,Q]=(0,rn.useState)(!1),[te,Ee]=(0,rn.useState)([]),[C,_e]=(0,rn.useState)(!1),[He,M]=(0,rn.useState)(!1),[Ye,ut]=(0,rn.useState)(null),yt=dE(),{allMessages:ze}=AV(e),Oe=LV(ze.length,F),Ke=rn.default.useMemo(()=>{if(ze.length===0)return[];let ce=Math.max(0,ze.length-Oe.totalMessagesLoaded);return ze.slice(ce)},[ze,Oe.totalMessagesLoaded]),ct=NV(D,{isStreaming:x,conversationId:F,displayMessagesLength:Ke.length,shouldMaintainScroll:H.current}),Xe=OV(x,V,Ke,C,g),Pt=DV(F),{isDragOver:Ve}=mO({ref:z,changeCallback:Pt.uploadFiles}),bt=Oe.hasHiddenLocalMessages||!!(A&&N),zt=!!(A&&N);RV(D,{enabled:!Oe.isLoadingMore&&Oe.initialScrollAppliedRef.current,onNearTop:()=>{bt&&U()},onNearBottom:()=>{ct.setShowScrollToBottom(!1)}});let We=s5({resolver:c5(TEe),defaultValues:{}}),mr=We.watch("query")||"",U=(0,rn.useCallback)(async()=>{if(Oe.isLoadingMore)return;let ce=D.current;if(ce&&($.current={scrollTop:ce.scrollTop,scrollHeight:ce.scrollHeight},H.current=!0),await Oe.loadMore(zt?N:void 0),H.current&&$.current&&ce){let{scrollHeight:Se,scrollTop:Z}=$.current,X=ce.scrollHeight-Se;X!==0&&(ce.scrollTop=Z+X),H.current=!1,$.current=null}},[Oe,zt,N]),j=async({query:ce})=>{if(!(V||Pt.isUploadingFiles)&&!(!ce&&Pt.files.length===0&&te.length===0))try{Q(!0),(g||g===void 0)&&(Xe.setShowAgentTyping(!0),ct.scrollToBottom()),We.reset();let Se=Pt.files,Z=te;Pt.clearFiles(),Ee([]),await t({query:ce||"",files:Se,attachmentsForAI:Z})}catch(Se){console.error("[ChatView] submit error:",Se)}finally{Q(!1),Xe.setShowAgentTyping(!1)}},W=async ce=>{let Se=ce.find(Z=>(Z.type||"").startsWith("audio/"));if(Se){let Z=await a2(Se);We.setValue("query",Z,{shouldValidate:!0,shouldDirty:!0});return}await Pt.uploadFiles(ce)},ye=async()=>{try{let ce=await navigator.mediaDevices.getUserMedia({audio:!0}),Se=new MediaRecorder(ce,{mimeType:"audio/webm; codecs=opus"}),Z=[];Se.ondataavailable=X=>{X.data.size>0&&Z.push(X.data)},Se.onstop=async()=>{let X=new Blob(Z,{type:"audio/webm"});if(X.size>0){let ie=new File([X],`record-${Date.now()}.webm`,{type:"audio/webm"});try{let Re=await a2(X);setTimeout(()=>{Xe.setShowAgentTyping(!0),ct.scrollToBottom()},300),Q(!0),We.reset(),await t({query:Re,files:[ie],attachmentsForAI:te}),Pt.clearFiles(),Ee([])}catch(Re){console.error("[ChatView] Recording transcription error:",Re)}finally{Q(!1),Xe.setShowAgentTyping(!1)}}M(!1)},ut(Se),Se.start(),M(!0)}catch(ce){console.error("[ChatView] Microphone access error:",ce)}},fe=()=>{Ye&&Ye.stop()},de=(0,rn.useCallback)(ce=>{_e(ce)},[]);return(0,Ze.jsxs)("div",{ref:z,className:"horneross-chatbox flex flex-col gap-0 w-full h-full relative",children:[Ve&&(0,Ze.jsx)("div",{className:"absolute pointer-events-none top-0 left-0 w-full h-full z-[2] flex justify-center items-center p-4 backdrop-blur-md bg-gradient-to-br from-orange-500/40 via-orange-600/30 to-orange-500/40 dark:from-orange-500/30 dark:via-orange-600/20 dark:to-orange-500/40",children:(0,Ze.jsxs)("div",{className:"flex flex-col justify-center items-center gap-3",children:[(0,Ze.jsx)("div",{className:"p-4 bg-orange-100 dark:bg-orange-500/20 rounded-xl border border-orange-300 dark:border-orange-500/30",children:(0,Ze.jsx)(Ss,{className:"w-12 h-12 text-orange-600 dark:text-orange-300"})}),(0,Ze.jsx)("label",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Suelte los archivos aqu\xED"}),(0,Ze.jsx)("p",{className:"text-sm text-orange-700 dark:text-orange-200/70",children:"Todos los formatos son compatibles"})]})}),typeof g=="boolean"&&!g&&Ke?.length>0&&(0,Ze.jsxs)("div",{className:"absolute left-1/2 -translate-x-1/2 top-2 z-10 px-3 py-1 bg-red-100 dark:bg-red-500/20 border border-red-300 dark:border-red-500 rounded-full text-sm text-red-700 dark:text-red-400 flex items-center gap-2",children:[(0,Ze.jsx)(Es,{className:"w-4 h-4"}),"Apagado"]}),(0,Ze.jsx)("div",{ref:D,className:"w-full flex-1 overflow-y-auto pb-4 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-rounded-full scrollbar-thumb-orange-400 dark:scrollbar-thumb-orange-500 hover:scrollbar-thumb-orange-500 dark:hover:scrollbar-thumb-orange-600 transition-all duration-300 ease-in-out",style:{scrollbarWidth:"thin",scrollbarColor:"rgba(251, 146, 60, 0.4) transparent"},children:(0,Ze.jsx)("div",{className:"max-w-3xl mx-auto px-4 w-full",children:(0,Ze.jsxs)("div",{className:"flex flex-col gap-2",children:[Oe.isLoadingMore&&(0,Ze.jsx)("div",{className:"flex justify-center py-3 sticky top-0 backdrop-blur-sm z-10",children:(0,Ze.jsxs)("div",{className:"flex items-center gap-2.5 bg-orange-50 dark:bg-orange-500/10 border border-orange-200 dark:border-orange-500/30 px-4 py-2 rounded-full shadow-sm",children:[(0,Ze.jsxs)("div",{className:"relative w-4 h-4",children:[(0,Ze.jsx)("div",{className:"absolute inset-0 border-2 border-orange-200 dark:border-orange-500/20 rounded-full"}),(0,Ze.jsx)("div",{className:"absolute inset-0 border-2 border-orange-600 dark:border-orange-400 border-t-transparent rounded-full animate-spin"})]}),(0,Ze.jsx)("span",{className:"text-sm font-medium text-orange-900 dark:text-orange-200",children:"Cargando mensajes..."})]})}),bt&&!Oe.isLoadingMore&&(0,Ze.jsx)("div",{className:"flex justify-center py-2",children:(0,Ze.jsxs)("button",{onClick:U,className:"flex items-center gap-2 px-4 py-2 bg-orange-600 hover:bg-orange-700 dark:bg-orange-500 dark:hover:bg-orange-600 text-white rounded-full transition-all text-sm font-medium shadow-sm hover:shadow-md active:scale-95",children:[(0,Ze.jsx)(gr,{className:"w-4 h-4 rotate-180"}),Oe.hasHiddenLocalMessages?Oe.hiddenLocalCount<=20?`Cargar todos los mensajes (${Oe.hiddenLocalCount})`:"Cargar 20 mensajes anteriores":"Cargar mensajes anteriores"]})}),u&&Ke?.length<=0&&(0,Ze.jsx)("div",{className:"flex flex-col gap-3",children:Array(1).fill(0).map((ce,Se)=>(0,Ze.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,Ze.jsx)("div",{className:"w-[34px] h-[34px] bg-gray-200 dark:bg-gray-700 rounded-full animate-pulse"}),(0,Ze.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,Ze.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-[97%]"}),(0,Ze.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-[92%]"}),(0,Ze.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-[95%]"})]})]},Se))}),Ke?.length<=0&&!u&&d,(0,Ze.jsx)(CV,{messages:Ke,isStreaming:x||!1,agentIconUrl:s,agentName:l,userImgUrl:m,channel:v,onTypingStateChange:de,onEvalAnswer:f,onWebSearchExpand:_,onMessageSubmit:ce=>j({query:ce}),brandingLogo:ne}),g&&!x&&!V&&Ke[Ke.length-1]?.role==="assistant"&&b,!g&&Pt.files?.length>0&&V&&Xe.showAgentTyping&&(0,Ze.jsx)(kU,{})]})})}),!a&&(0,Ze.jsx)(RL,{visible:Xe.shouldShowTypingIndicator,channel:v}),!a&&ct.showScrollToBottom&&(0,Ze.jsx)("div",{className:"absolute bottom-36 left-0 right-0 w-full flex justify-center pointer-events-none",children:(0,Ze.jsx)("button",{className:"flex items-center justify-center w-10 h-10 rounded-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 transition-all shadow-lg pointer-events-auto",onClick:()=>ct.scrollToBottom(),"aria-label":"Scroll to bottom",children:(0,Ze.jsx)(gr,{className:"w-5 h-5 flex-shrink-0"})})}),!a&&(0,Ze.jsx)("div",{className:"w-full flex-shrink-0",children:(0,Ze.jsxs)("div",{className:`max-w-3xl mx-auto w-full flex flex-col pb-2 ${v==="agent_builder"?"px-3 sm:px-4 md:px-6":"px-3 sm:px-4"}`,children:[(()=>{let ce=R?.messageTemplates||r||[];return!Ke.some(X=>X.role==="user")&&ce.length>0?(0,Ze.jsx)(i7,{starters:ce,onStarterClick:X=>j({query:X}),disabled:V,primaryColor:R?.primaryColor}):null})(),g&&w&&w?.length>0&&(0,Ze.jsx)("div",{className:"mr-auto mb-1",children:(0,Ze.jsxs)("select",{multiple:!0,className:`max-w-full truncate font-bold text-xs p-2 rounded border ${te?.length>0?"bg-yellow-100 border-yellow-400 text-yellow-800 dark:bg-yellow-500/20 dark:border-yellow-500 dark:text-yellow-400":"bg-gray-100 border-gray-300 text-gray-700 dark:bg-gray-700 dark:border-gray-600 dark:text-gray-300"} focus:outline-none focus:ring-2 focus:ring-orange-500`,onChange:ce=>{let Se=Array.from(ce.target.selectedOptions,Z=>Z.value);Ee(Se)},children:[(0,Ze.jsx)("option",{disabled:!0,children:"Usar archivo subido"}),w.map(ce=>(0,Ze.jsx)("option",{value:ce.id,children:ce.name},ce.id))]})}),Pt.files?.length>0&&(0,Ze.jsx)("div",{className:"flex flex-col gap-2 mb-2 px-1",children:(0,Ze.jsx)("div",{className:"flex flex-row flex-wrap gap-2",children:Pt.files.map((ce,Se)=>(0,Ze.jsx)(DL,{file:ce,onRemove:()=>Pt.removeFile(Se),disabled:V},`${ce.name}-${Se}`))})}),(0,Ze.jsx)(S0,{value:mr,onChange:ce=>We.setValue("query",ce,{shouldDirty:!0,shouldValidate:!0}),onSubmit:()=>We.handleSubmit(j)(),hasAttachments:Pt.files.length>0&&!Pt.isUploadingFiles,selectedAgent:yt.selectedAgent,onAgentChange:yt.onAgentChange,availableAgents:yt.availableAgents||[{id:"current-agent",name:l||"agent",description:"Agente actual",avatarUrl:s,type:"agent"}],onFileUpload:W,onRecordAudio:ye,onStopRecording:fe,isRecording:He,isLoading:V||Pt.isUploadingFiles||v==="agent_builder"&&!yt.selectedAgent,placeholder:v==="agent_builder"&&!yt.selectedAgent?"Selecciona un agente para comenzar...":"Entrena al agente proporcionando instrucciones y archivos",channel:v,selectedModel:T,onModelChange:E,availableModels:I,agentName:l,agentIconUrl:s}),(0,Ze.jsxs)("div",{children:[(0,Ze.jsx)("div",{className:"relative flex items-center justify-between w-full max-w-full overflow-x-auto scrollbar-none",children:p}),!n&&(0,Ze.jsx)("div",{className:"mt-1",children:(0,Ze.jsx)(fU,{customBrandingName:o,customBrandingUrl:i})})]})]})})]})}var Ny=EEe;c();c();var kEe=O(_h()),fE=O(re());c();c();c();c();c();c();var JO=O(re());var B2t=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com";c();var FG=O(re()),_Ee=e=>(0,FG.useReducer)((r,a)=>({...r,...a}),{...e}),QO=_Ee;var oLt=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",pE=(0,fE.createContext)({});var Ry=O(ae()),eD="/logo-green.png",BG={theme:"light",primaryColor:"#000000",isBgTransparent:!1,initialMessages:[],initialMessage:""};function CEe(e){let[t,r]=(0,mo.useState)(e.initConfig||BG),[a,n]=(0,mo.useState)(!1),{query:o}=_v({id:e.agentId}),i=o.data,s=dE();(0,mo.useEffect)(()=>{e.initConfig&&r(e.initConfig)},[e.initConfig]);let l=i?.organization?.subscriptions?.[0],u=!!l,d=t?.customBrandingName?.trim()||void 0,f=t?.customBrandingUrl?.trim()||void 0,p=!!d||!!f,m=u&&OP(l?.plan)&&(!!t?.hidePoweredBy||!!t?.isBrandingDisabled&&!p);(0,mo.useEffect)(()=>{if(o.data){e?.onAgentLoaded?.(o.data);let T=o?.data?.currentVersion?.interfaceConfig;r({...BG,...T,...e.initConfig,displayName:T?.displayName||e.initConfig?.displayName||i?.name})}},[o.data,e,i?.name]);let g=!!a||!!e.contact?.email||!!e.contact?.phoneNumber,x=i?.tools?.find(T=>T?.type==="lead_capture")?.config,w={createNewConversation:s.startNewChat,history:s.messages||[],isLoadingConversation:s.isHistoryLoading},b=e.children?mo.default.createElement(e.children,{agentId:e.agentId,chatBoxProps:{messages:s.messages,conversationId:s.chatId,isStreaming:s.status==="streaming"||s.status==="submitted",onSubmit:async({query:T,files:E,attachmentsForAI:I})=>{let _=(T||"").trim(),A=E||[];if(!(!_&&A.length===0&&I?.length===0))try{await s.sendMessage({role:"user",parts:[{type:"text",text:_},...A.map(N=>({type:"file",url:N.url,filename:N.name,mediaType:N.mimeType,size:N.size}))],attachments:A,attachmentsForAI:I||[]})}catch(N){console.error("[ChatBoxLoader] Error enviando mensaje con archivos:",N)}},isLoadingConversation:s.isHistoryLoading,handleAbort:s.stop,channel:"website",autoFocus:!0,withFileUpload:!0,withSources:!!i?.includeSources,agentIconUrl:i?.iconUrl||eD,agentName:i?.name,messageTemplates:t.messageTemplates,interfaceConfig:t,disableWatermark:m,customBrandingName:d,customBrandingUrl:f,readOnly:x?.isRequired&&!g},interfaceConfig:t,agentIconUrl:i?.iconUrl||eD,contact:e.contact,context:e.context,isOpen:e.isOpen}):(0,Ry.jsx)(Ny,{messages:s.messages,conversationId:s.chatId,isStreaming:s.status==="streaming"||s.status==="submitted",onSubmit:async({query:T,files:E,attachmentsForAI:I})=>{let _=(T||"").trim(),A=E||[];if(!(!_&&A.length===0&&I?.length===0))try{await s.sendMessage({role:"user",parts:[{type:"text",text:_},...A.map(N=>({type:"file",url:N.url,filename:N.name,mediaType:N.mimeType,size:N.size}))],attachments:A,attachmentsForAI:I||[]})}catch(N){console.error("[ChatBoxLoader] Error enviando mensaje con archivos:",N)}},isLoadingConversation:s.isHistoryLoading,handleAbort:s.stop,channel:"website",autoFocus:!0,withFileUpload:!0,withSources:!!i?.includeSources,agentIconUrl:i?.iconUrl||eD,agentName:i?.name,messageTemplates:t.messageTemplates,interfaceConfig:t,disableWatermark:m,customBrandingName:d,customBrandingUrl:f,readOnly:x?.isRequired&&!g}),v=(0,Ry.jsx)(pE.Provider,{value:w,children:b});return e.layout?e.layout({children:v}):v}function AEe(e){let[t,r]=(0,mo.useState)(e.agentId),[a,n]=(0,mo.useState)(()=>{if(e.initialConversationId)return e.initialConversationId;try{return localStorage.getItem(`iFrameConversationId-${e.agentId}`)||(0,mE.default)()}catch{return(0,mE.default)()}});return(0,mo.useEffect)(()=>{if(!(typeof window>"u")&&!e.visitorId)try{let o=localStorage.getItem("visitorId");o||(o=(0,mE.default)(),localStorage.setItem("visitorId",o),console.log("[ChatBoxLoader] Generated new visitorId:",o))}catch(o){console.warn("[ChatBoxLoader] Could not access localStorage:",o)}},[e.visitorId]),(0,mo.useEffect)(()=>{if(a&&t){try{localStorage.setItem(`iFrameConversationId-${t}`,a)}catch{}e.onConversationIdChange&&e.onConversationIdChange(a)}},[a,t,e]),(0,mo.useEffect)(()=>{if(!(typeof window>"u"||t))try{let o=window?.location?.href?.match?.(/agents\/([a-zA-Z0-9]+)/)?.[1];o&&r(o)}catch(o){console.error(o)}},[t]),!t||!a?null:(0,Ry.jsx)(UG,{agentId:t,conversationId:a,channel:"website",visitorId:e.visitorId,onChangeConversationId:o=>{n(o),e.onConversationIdChange&&e.onConversationIdChange(o)},children:(0,Ry.jsx)(CEe,{...e,agentId:t,conversationId:a})})}var hE=AEe;c();c();var gE=O(re());c();var $o=O(re(),1);c();var $G=O(tG(),1);function jG(){return(0,$G.useSyncExternalStore)(LEe,()=>!0,()=>!1)}function LEe(){return()=>{}}var Oy=O(ae(),1),tD="Avatar",[NEe,TLt]=Bp(tD),[REe,VG]=NEe(tD),qG=$o.forwardRef((e,t)=>{let{__scopeAvatar:r,...a}=e,[n,o]=$o.useState("idle");return(0,Oy.jsx)(REe,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:o,children:(0,Oy.jsx)(Ia.span,{...a,ref:t})})});qG.displayName=tD;var GG="AvatarImage",ZG=$o.forwardRef((e,t)=>{let{__scopeAvatar:r,src:a,onLoadingStatusChange:n=()=>{},...o}=e,i=VG(GG,r),s=OEe(a,o),l=Gs(u=>{n(u),i.onImageLoadingStatusChange(u)});return _a(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?(0,Oy.jsx)(Ia.img,{...o,ref:t,src:a}):null});ZG.displayName=GG;var WG="AvatarFallback",YG=$o.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:a,...n}=e,o=VG(WG,r),[i,s]=$o.useState(a===void 0);return $o.useEffect(()=>{if(a!==void 0){let l=window.setTimeout(()=>s(!0),a);return()=>window.clearTimeout(l)}},[a]),i&&o.imageLoadingStatus!=="loaded"?(0,Oy.jsx)(Ia.span,{...n,ref:t}):null});YG.displayName=WG;function HG(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function OEe(e,{referrerPolicy:t,crossOrigin:r}){let a=jG(),n=$o.useRef(null),o=a?(n.current||(n.current=new window.Image),n.current):null,[i,s]=$o.useState(()=>HG(o,e));return _a(()=>{s(HG(o,e))},[o,e]),_a(()=>{let l=f=>()=>{s(f)};if(!o)return;let u=l("loaded"),d=l("error");return o.addEventListener("load",u),o.addEventListener("error",d),t&&(o.referrerPolicy=t),typeof r=="string"&&(o.crossOrigin=r),()=>{o.removeEventListener("load",u),o.removeEventListener("error",d)}},[o,r,t]),i}var rD=qG,aD=ZG,nD=YG;var yE=O(ae()),ju=gE.forwardRef(({className:e,...t},r)=>(0,yE.jsx)(rD,{ref:r,className:nt("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ju.displayName=rD.displayName;var Hu=gE.forwardRef(({className:e,...t},r)=>(0,yE.jsx)(aD,{ref:r,className:nt("aspect-square h-full w-full",e),...t}));Hu.displayName=aD.displayName;var Rm=gE.forwardRef(({className:e,...t},r)=>(0,yE.jsx)(nD,{ref:r,className:nt("flex h-full w-full items-center justify-center rounded-full bg-neutral-100 dark:bg-neutral-900 text-neutral-950 dark:text-neutral-50",e),...t}));Rm.displayName=nD.displayName;c();var Vd=O(re());var qd=O(ae()),oD=Vd.forwardRef(({className:e,...t},r)=>(0,qd.jsx)("div",{ref:r,className:nt("rounded-xl border bg-card text-card-foreground dark:bg-card dark:border-border",e),...t}));oD.displayName="Card";var MEe=Vd.forwardRef(({className:e,...t},r)=>(0,qd.jsx)("div",{ref:r,className:nt("flex flex-col space-y-1.5 p-6",e),...t}));MEe.displayName="CardHeader";var PEe=Vd.forwardRef(({className:e,...t},r)=>(0,qd.jsx)("div",{ref:r,className:nt("font-semibold leading-none tracking-tight",e),...t}));PEe.displayName="CardTitle";var UEe=Vd.forwardRef(({className:e,...t},r)=>(0,qd.jsx)("div",{ref:r,className:nt("text-sm text-muted-foreground",e),...t}));UEe.displayName="CardDescription";var zEe=Vd.forwardRef(({className:e,...t},r)=>(0,qd.jsx)("div",{ref:r,className:nt("p-6 pt-0",e),...t}));zEe.displayName="CardContent";var FEe=Vd.forwardRef(({className:e,...t},r)=>(0,qd.jsx)("div",{ref:r,className:nt("flex items-center p-6 pt-0",e),...t}));FEe.displayName="CardFooter";var La=O(re());c();c();var BEe=(e,t,r)=>{let a=e.charAt(0)==="#"?e.substring(1,7):e,n=parseInt(a.substring(0,2),16),o=parseInt(a.substring(2,4),16),i=parseInt(a.substring(4,6),16),l=[n/255,o/255,i/255].map(d=>d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4));return .2126*l[0]+.7152*l[1]+.0722*l[2]>.179?r:t},KG=BEe;var Vu=O(re());c();function va(...e){return Ux(jc(e))}c();var Vr=O(ae());function $Ee({agentIconUrl:e,agentName:t="Assistant",agentDescription:r,starters:a=[],onStarterClick:n,disabled:o=!1,primaryColor:i="#FF8800",helpLinks:s=[]}){let u=(d=>{let f=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(d);return f?`${parseInt(f[1],16)}, ${parseInt(f[2],16)}, ${parseInt(f[3],16)}`:"255, 136, 0"})(i);return(0,Vr.jsxs)(se.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex flex-col items-center justify-center h-full px-6 py-12",children:[(0,Vr.jsxs)("div",{className:"flex flex-col items-center gap-5 mb-10",children:[(0,Vr.jsx)(se.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.1,type:"spring",stiffness:200},children:(0,Vr.jsxs)(ju,{className:"w-24 h-24 bg-[#E5E5E5] dark:bg-[#404040] border-2 border-gray-200 dark:border-white/10",children:[(0,Vr.jsx)(Hu,{src:e}),(0,Vr.jsx)(Rm,{className:"text-3xl font-semibold uppercase text-black dark:text-white",children:t?.[0]||"H"})]})}),(0,Vr.jsxs)(se.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2},className:"flex flex-col items-center gap-3",children:[(0,Vr.jsx)("h2",{className:"text-xl font-semibold text-black dark:text-white text-center",children:t}),r&&(0,Vr.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400 text-center max-w-sm leading-relaxed",children:r})]})]}),a.length>0&&(0,Vr.jsxs)(se.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3},className:"w-full flex flex-col gap-2",children:[(0,Vr.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-1",children:"Conversation starters"}),(0,Vr.jsx)("div",{className:"flex flex-col gap-2",children:a.map((d,f)=>(0,Vr.jsx)(se.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.35+f*.05},whileHover:o?{}:{opacity:.9},whileTap:o?{}:{scale:.98},children:(0,Vr.jsx)(Br,{variant:"outline",size:"sm",onClick:()=>n?.(d),disabled:o,className:"w-full text-left text-black dark:text-gray-300 hover:text-black dark:hover:text-white justify-start",style:{backgroundColor:`rgba(${u}, 0.1)`,borderColor:`rgba(${u}, 0.2)`},onMouseEnter:p=>{o||(p.currentTarget.style.backgroundColor=`rgba(${u}, 0.2)`,p.currentTarget.style.borderColor=`rgba(${u}, 0.4)`)},onMouseLeave:p=>{o||(p.currentTarget.style.backgroundColor=`rgba(${u}, 0.1)`,p.currentTarget.style.borderColor=`rgba(${u}, 0.2)`)},children:d})},f))})]}),s.length>0&&(0,Vr.jsxs)(se.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5},className:"w-full flex flex-col gap-2 mt-4",children:[(0,Vr.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-1",children:"Recursos \xFAtiles"}),(0,Vr.jsx)("div",{className:"flex flex-col gap-2",children:s.map((d,f)=>(0,Vr.jsxs)(se.a,{href:d.url,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.55+f*.05},whileHover:{opacity:.8},className:"flex items-center gap-2 text-sm text-gray-700 dark:text-gray-300 hover:text-black dark:hover:text-white transition-colors",children:[(0,Vr.jsx)(Gl,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,Vr.jsx)("span",{children:d.label})]},f))})]})]})}var XG=$Ee;var pl=O(ae()),jEe=({agentId:e,layout:t,interfaceConfig:r,layoutClassName:a,containerClassName:n,chatBoxProps:o,isLoadingAgent:i,agentIconUrl:s})=>{let[l,u]=(0,Vu.useState)("light");(0,Vu.useEffect)(()=>{let m=()=>{let x=document.documentElement.classList.contains("dark");u(x?"dark":"light")};m();let g=new MutationObserver(m);return g.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>g.disconnect()},[]);let d=t||Vu.default.Fragment,f=r?.primaryColor||"#ffffff",p=(0,Vu.useMemo)(()=>KG(f,"#ffffff","#000000"),[f]);return i?(0,pl.jsx)("div",{className:va("w-full h-full flex justify-center items-center bg-white dark:bg-[#171717]",n),children:(0,pl.jsx)(ht,{className:"h-5 w-5 animate-spin text-gray-600 dark:text-gray-400"})}):(0,pl.jsx)(d,{...t?{className:va(l,a),agentId:e,config:r,agentIconUrl:s}:{},children:(0,pl.jsxs)("div",{className:va("flex flex-1 flex-col relative w-full h-full min-h-0 overflow-hidden max-h-full box-border",!r?.isBgTransparent&&l==="light"&&"bg-white",!r?.isBgTransparent&&l==="dark"&&"bg-[#171717]",r?.isBgTransparent&&"bg-transparent",!t&&`${l} ${a}`,n),style:{"--message-human-bg":f,"--message-human-text":p},children:[(0,pl.jsx)("style",{children:`
|
|
291
|
+
.message-human {
|
|
292
|
+
background-color: var(--message-human-bg) !important;
|
|
293
|
+
}
|
|
294
|
+
.message-human * {
|
|
295
|
+
color: var(--message-human-text) !important;
|
|
296
|
+
}
|
|
297
|
+
.horneross-chatbox {
|
|
298
|
+
height: 100%;
|
|
299
|
+
min-height: 0;
|
|
300
|
+
}
|
|
301
|
+
`}),(0,pl.jsx)(Ny,{...o,...s?{agentIconUrl:s}:{},emptyComponent:(0,pl.jsx)(XG,{agentIconUrl:s,agentName:r?.displayName,agentDescription:r?.description,starters:r?.messageTemplates||[],onStarterClick:m=>{o?.onSubmit&&o.onSubmit({query:m})},primaryColor:r?.primaryColor})})]})})},JG=jEe;c();var qu=O(re());var cs=O(ae()),QG=(0,qu.memo)(({messages:e,delay:t=1e3,shouldAnimate:r=!0})=>{let[a,n]=(0,qu.useState)(0),[o,i]=(0,qu.useState)({});(0,qu.useEffect)(()=>{if(!r){n(e.length);return}if(e.length===0){n(0);return}n(0);let l=setTimeout(()=>{n(1)},500);return()=>clearTimeout(l)},[e,r]),(0,qu.useEffect)(()=>{if(!r||a>=e.length)return;let l=setTimeout(()=>{n(u=>Math.min(u+1,e.length))},t);return()=>clearTimeout(l)},[a,e.length,t,r]);let s=l=>{i(u=>({...u,[l]:!0}))};return(0,cs.jsx)(Xf,{spacing:2,className:"p-2",children:(0,cs.jsx)(Vt,{children:e.slice(0,a).map((l,u)=>(0,cs.jsx)(se.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:(0,cs.jsxs)(Xf,{direction:"row",spacing:2,align:"start",children:[l.iconUrl&&(0,cs.jsx)(ju,{className:"size-8 mt-1 bg-[#E5E5E5] dark:bg-[#404040]",children:o[u]?(0,cs.jsx)("span",{className:"text-xs font-semibold uppercase text-black dark:text-white",children:l.from==="agent"?"A":l.from?.[0]?.toUpperCase()||"H"}):(0,cs.jsx)(Hu,{src:l.iconUrl,alt:"Agent avatar",onError:()=>s(u)})}),(0,cs.jsx)("div",{className:nt("rounded-2xl px-4 py-3 max-w-[80%] text-sm",l.from==="agent"?"bg-white dark:bg-[#161618] text-black dark:text-white border border-gray-200 dark:border-transparent":"bg-primary text-white"),children:l.message})]})},u))})})});QG.displayName="InitialMessagesRenderer";var eZ=QG;c();var tZ=O(re()),Om=se(tZ.default.forwardRef(function({children:t},r){return t?.({ref:r})}));c();var rZ=O(re());var iD=O(ae()),HEe=e=>{let t=(0,rZ.useContext)(pE);if(!t||!t.history)return null;let{createNewConversation:r,history:a}=t,{className:n,alwaysShow:o,...i}=e;return!o&&(!Array.isArray(a)||a.length<2)?null:(0,iD.jsx)("button",{onClick:()=>r(),className:va("p-1.5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors rounded-md flex items-center justify-center",n),title:"Nuevo Chat",...i,children:(0,iD.jsx)(Yl,{className:"w-3.5 h-3.5",strokeWidth:2.5})})},bE=HEe;var ke=O(ae()),VEe={theme:"light",primaryColor:"#000000",position:"left",initialMessages:[]},CNt=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",qEe=e=>{let[t,r]=(0,La.useState)(!1),a=(0,La.useRef)(null);return(0,La.useEffect)(()=>{let n=o=>{a.current&&!a.current.contains(o.target)&&r(!1)};if(t)return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[t]),(0,La.useEffect)(()=>{if(t&&!e.isLoadingConversations&&(e.conversations?.length||0)===0){let n=e.visitorId||null;if(!n&&typeof window<"u"&&(n=localStorage.getItem("visitorId")),console.log("[Bubble] Attempting to load conversations:",{showConversations:t,visitorId:n,agentId:e.agentId,hasVisitorId:!!n,hasAgentId:!!e.agentId,usingCustomVisitorId:!!e.visitorId}),!n||!e.agentId){console.warn("[Bubble] Missing visitorId or agentId, skipping conversations load");return}e.onUpdateConversations?.({isLoadingConversations:!0});let i=`${typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"http://localhost:3000"}/api/v2/agent/${e.agentId}/conversations?visitorId=${n}`;console.log("[Bubble] Fetching conversations from:",i),fetch(i).then(s=>(console.log("[Bubble] Fetch response status:",s.status),s.json())).then(s=>{console.log("[Bubble] Conversations loaded:",s),e.onUpdateConversations?.({conversations:s.conversations||[],isLoadingConversations:!1})}).catch(s=>{console.error("[Bubble] Failed to load conversations:",s),e.onUpdateConversations?.({conversations:[],isLoadingConversations:!1})})}},[t,e.isLoadingConversations,e.conversations?.length,e.agentId,e.onUpdateConversations]),(0,ke.jsxs)("div",{className:"relative flex flex-col w-full h-full max-h-full overflow-visible",children:[(0,ke.jsx)("div",{className:"sticky top-0 w-full z-10 bg-white dark:bg-[#171717]",children:(0,ke.jsxs)("div",{className:"flex flex-row px-2.5 py-2 items-center gap-2",children:[(0,ke.jsxs)(ju,{className:"h-9 w-9 bg-[#E5E5E5] dark:bg-[#404040] flex-shrink-0",children:[(0,ke.jsx)(Hu,{src:e?.imageUrl,className:"object-cover"}),(0,ke.jsx)(Rm,{className:"text-sm font-semibold uppercase text-black dark:text-white",children:e.config?.displayName?.[0]||"H"})]}),(0,ke.jsxs)("div",{ref:a,className:"relative",children:[(0,ke.jsxs)("button",{onClick:n=>{n.stopPropagation(),r(!t)},className:"flex items-center gap-1 text-left",children:[(0,ke.jsx)("h3",{className:"text-xs font-semibold text-black dark:text-white truncate max-w-[200px]",children:e.config?.displayName||"Assistant"}),(0,ke.jsx)(gr,{className:va("h-3.5 w-3.5 text-gray-600 dark:text-gray-300 flex-shrink-0 transition-transform duration-200",t&&"rotate-180"),strokeWidth:2.5})]}),(0,ke.jsx)(Vt,{children:t&&(0,ke.jsx)(Om,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},children:({ref:n})=>{let o=e.conversations||[],i=o.length>0;if(e.isLoadingConversations||!1)return(0,ke.jsx)("div",{ref:n,className:"absolute left-0 top-full mt-1 w-64 bg-white dark:bg-[#1a1a1a] border border-gray-200 dark:border-white/10 rounded-lg shadow-lg overflow-hidden z-50",children:(0,ke.jsx)("div",{className:"p-4 text-center",children:(0,ke.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Cargando conversaciones..."})})});if(!i)return(0,ke.jsx)("div",{ref:n,className:"absolute left-0 top-full mt-1 w-64 bg-white dark:bg-[#1a1a1a] border border-gray-200 dark:border-white/10 rounded-lg shadow-lg overflow-hidden z-50",children:(0,ke.jsx)("div",{className:"p-4 text-center",children:(0,ke.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"No hay conversaciones previas"})})});let l=new Date,u=new Date(l.getFullYear(),l.getMonth(),l.getDate()),d=new Date(u);d.setDate(d.getDate()-1);let f=new Date(u);f.setDate(f.getDate()-7);let p={today:o.filter(m=>new Date(m.updatedAt)>=u),yesterday:o.filter(m=>{let g=new Date(m.updatedAt);return g>=d&&g<u}),thisWeek:o.filter(m=>{let g=new Date(m.updatedAt);return g>=f&&g<d}),older:o.filter(m=>new Date(m.updatedAt)<f)};return(0,ke.jsx)("div",{ref:n,className:"absolute left-0 top-full mt-1 w-64 bg-white dark:bg-[#1a1a1a] border border-gray-200 dark:border-white/10 rounded-lg shadow-lg overflow-hidden z-50",children:(0,ke.jsxs)("div",{className:"max-h-64 overflow-y-auto",children:[p.today.length>0&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{className:"px-3 py-2",children:(0,ke.jsx)("p",{className:"text-[10px] font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Hoy"})}),(0,ke.jsx)("div",{className:"py-1",children:p.today.map(m=>(0,ke.jsx)("button",{className:"w-full px-3 py-2 text-left text-xs hover:bg-gray-100 dark:hover:bg-white/5 transition-colors",children:(0,ke.jsx)("p",{className:"text-gray-900 dark:text-white truncate",children:m.title||"Nueva conversaci\xF3n"})},m.id))})]}),p.yesterday.length>0&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{className:"px-3 py-2",children:(0,ke.jsx)("p",{className:"text-[10px] font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Ayer"})}),(0,ke.jsx)("div",{className:"py-1",children:p.yesterday.map(m=>(0,ke.jsx)("button",{className:"w-full px-3 py-2 text-left text-xs hover:bg-gray-100 dark:hover:bg-white/5 transition-colors",children:(0,ke.jsx)("p",{className:"text-gray-900 dark:text-white truncate",children:m.title||"Nueva conversaci\xF3n"})},m.id))})]}),p.thisWeek.length>0&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{className:"px-3 py-2",children:(0,ke.jsx)("p",{className:"text-[10px] font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Esta semana"})}),(0,ke.jsx)("div",{className:"py-1",children:p.thisWeek.map(m=>(0,ke.jsx)("button",{className:"w-full px-3 py-2 text-left text-xs hover:bg-gray-100 dark:hover:bg-white/5 transition-colors",children:(0,ke.jsx)("p",{className:"text-gray-900 dark:text-white truncate",children:m.title||"Nueva conversaci\xF3n"})},m.id))})]}),p.older.length>0&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{className:"px-3 py-2",children:(0,ke.jsx)("p",{className:"text-[10px] font-semibold uppercase text-gray-500 dark:text-gray-400",children:"M\xE1s antiguas"})}),(0,ke.jsx)("div",{className:"py-1",children:p.older.map(m=>(0,ke.jsx)("button",{className:"w-full px-3 py-2 text-left text-xs hover:bg-gray-100 dark:hover:bg-white/5 transition-colors",children:(0,ke.jsx)("p",{className:"text-gray-900 dark:text-white truncate",children:m.title||"Nueva conversaci\xF3n"})},m.id))})]})]})})}})})]}),(0,ke.jsx)("div",{className:"flex-1 min-w-0"}),(0,ke.jsxs)("div",{className:"flex flex-row items-center gap-1",children:[(0,ke.jsx)(bE,{alwaysShow:!0}),e.handleClose&&(0,ke.jsx)("button",{onClick:e.handleClose,className:"p-1.5 hover:bg-gray-100 dark:hover:bg-white/5 rounded-md text-gray-700 dark:text-gray-300 transition-colors flex items-center justify-center",title:"Minimizar",children:(0,ke.jsx)(Of,{className:"h-3.5 w-3.5",strokeWidth:2.5})})]})]})}),(0,ke.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden relative",children:e.children})]})},GEe=({...e})=>{let t=e.interfaceConfig||VEe,r=e?.interfaceConfig?.iconUrl||e?.agentIconUrl||"/images/chatbubble-default-icon.png",a=(0,La.useRef)(null),[n,o]=QO({isOpen:!!e.isOpen,hasOpenOnce:!1,showInitialMessage:!1,visitorEmail:"",showLeadFormAfterMessageId:"",conversations:[],isLoadingConversations:!1});(0,La.useEffect)(()=>{o({isOpen:!!e.isOpen})},[e.isOpen]);let i=(0,La.useMemo)(()=>(t.initialMessages||[]).map(p=>p?.trim?.()).filter(p=>!!p),[t?.initialMessages]);(0,La.useEffect)(()=>{let f=null;return i?.length>0&&!t?.isInitMessagePopupDisabled&&(f=setTimeout(()=>{o({showInitialMessage:!0})},5e3)),()=>{f&&clearTimeout(f)}},[i?.length,t?.isInitMessagePopupDisabled]);let s=(0,La.useCallback)(()=>{o({isOpen:!1})},[]),l=(0,La.useMemo)(()=>(0,ke.jsxs)(ju,{className:"w-full h-full bg-transparent",style:t?.bubbleIconStyle,children:[(0,ke.jsx)(Hu,{src:r}),(0,ke.jsx)(Rm,{className:"text-sm font-semibold uppercase",children:t?.displayName?.[0]||"H"})]}),[r,t?.bubbleIconStyle,t?.displayName]),u=(0,La.useCallback)(f=>{o(f)},[o]),d=La.default.useMemo(()=>f=>(0,ke.jsx)(qEe,{...f,handleClose:s,imageUrl:r,config:t,agentId:e.agentId,conversations:n.conversations,isLoadingConversations:n.isLoadingConversations,onUpdateConversations:u,visitorId:e.visitorId}),[t,r,s,e.agentId,n.conversations,n.isLoadingConversations,u,e.visitorId]);return e?.isLoadingAgent?null:(0,ke.jsxs)(ke.Fragment,{children:[i?.length>0&&n.showInitialMessage&&!n.hasOpenOnce&&(0,ke.jsxs)("div",{ref:a,className:va("horneross-init-messages fixed bottom-[100px] flex flex-col gap-2 max-w-[90%] sm:max-w-[500px]",t?.position==="left"&&"left-5",t?.position==="right"&&"right-5"),style:{zIndex:9999999999-1},children:[(0,ke.jsx)(Br,{variant:"outline",size:"sm",className:va("absolute z-[2] -top-2 p-1 min-w-0 h-auto rounded-full -translate-y-full","bg-white dark:bg-[#171717]","border-gray-300 dark:border-white/20","hover:bg-gray-100 dark:hover:bg-white/10","text-black dark:text-white",t?.position==="left"&&"right-0",t?.position==="right"&&"right-0"),onClick:()=>o({showInitialMessage:!1}),children:(0,ke.jsx)(Is,{className:"h-3 w-3"})}),(0,ke.jsx)(eZ,{messages:i.map(f=>({iconUrl:r,from:"agent",message:f,approvals:[]}))})]}),(0,ke.jsxs)("div",{className:va("horneross-widget fixed overflow-visible h-[40px] bottom-3",t?.position==="left"&&"left-3",t?.position==="right"&&"right-3"),style:{zIndex:9999999999},children:[(0,ke.jsx)(Om,{initial:{opacity:0,scale:.8},animate:{opacity:n.isOpen?1:0,scale:n.isOpen?1:.8},exit:{opacity:0,scale:.8},transition:{duration:.3,ease:[.4,0,.2,1]},children:({ref:f})=>(0,ke.jsx)(oD,{ref:f,className:va("absolute bottom-[52px] flex-col box-border p-0 gap-0 z-[1] rounded-[2rem] overflow-hidden","border border-gray-300 dark:border-white/20","bg-white dark:bg-[#171717]",n.isOpen?"flex":"hidden",!n.isOpen&&"pointer-events-none",t?.position==="left"&&"left-0",t?.position==="right"&&"right-0","w-[380px] h-[560px] max-h-[560px]","max-[640px]:w-screen max-[640px]:h-screen max-[640px]:max-h-screen max-[640px]:max-w-screen max-[640px]:fixed max-[640px]:left-0 max-[640px]:top-0 max-[640px]:bottom-0 max-[640px]:right-0 max-[640px]:rounded-none max-[640px]:border-0"),children:(0,ke.jsx)("div",{className:"relative flex flex-col h-full w-full flex-1 p-0 overflow-hidden",children:(0,ke.jsx)(JG,{...e,chatBoxProps:{...e.chatBoxProps,isOpen:n.isOpen},agentIconUrl:r,interfaceConfig:t,layout:d})})})}),(0,ke.jsx)(Om,{initial:"visible",animate:"visible",variants:{visible:{y:0,opacity:1,scale:1,transition:{when:"beforeChildren",staggerChildren:.3}},hidden:{y:100,opacity:0,scale:.8,transition:{when:"afterChildren"}}},children:({ref:f})=>(0,ke.jsx)(Br,{ref:f,variant:"default",className:va("horneross-launcher w-[40px] h-[40px] rounded-full p-0 overflow-hidden","transition-all duration-300 ease-out","hover:opacity-90","active:scale-95"),style:{backgroundColor:t?.primaryColor||"#000000",...t?.bubbleButtonStyle},onClick:()=>o({isOpen:!n.isOpen,...n.isOpen?{}:{hasOpenOnce:!0}}),children:(0,ke.jsxs)(Vt,{mode:"wait",children:[n.isOpen&&(0,ke.jsx)(Om,{initial:{rotate:-180,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:180,opacity:0},transition:{duration:.3},children:({ref:p})=>(0,ke.jsx)(Of,{ref:p,className:"h-4 w-4"})},"close-icon"),!n.isOpen&&(0,ke.jsx)(Om,{initial:{rotate:180,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:-180,opacity:0},transition:{duration:.3},children:({ref:p})=>(0,ke.jsx)("div",{ref:p,className:"w-full h-full",children:l})},"bubble-icon")]})})})]})]})},nZ=GEe;c();var vc=O(re()),RX=O(NX());var Dl=O(ae()),v_e={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email","visitor-id":"visitorId"},x_e=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",w_e=({children:e,container:t})=>((0,vc.useEffect)(()=>{let r=()=>{document.documentElement.classList.contains("dark")?t.classList.add("dark"):t.classList.remove("dark")};r();let a=new MutationObserver(r);return a.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>a.disconnect()},[t]),(0,Dl.jsx)(Dl.Fragment,{children:e})),T_e=({name:e,widget:t,type:r})=>class extends HTMLElement{cssProvider=x_e+`/dist/${r}/index.css`;root;shadowRootElement;instanceId;setIsOpen;isOpen;onEnd;destroy(){this.innerHTML="",this.instanceId&&(window[this.instanceId]=null)}constructor(n){super(),this.instanceId=n?.instanceId,this.onEnd=n?.onEnd;let o=this.attachShadow({mode:"open"}),i=document.createElement("link");i.setAttribute("rel","preconnect"),i.setAttribute("href","https://fonts.googleapis.com");let s=document.createElement("link");s.setAttribute("rel","preconnect"),s.setAttribute("href","https://fonts.gstatic.com"),s.setAttribute("crossorigin","");let l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("href","https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");let u=document.createElement("link");u.setAttribute("rel","stylesheet"),u.setAttribute("type","text/css"),u.setAttribute("href",this.cssProvider),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="light",o.appendChild(i),o.appendChild(s),o.appendChild(l),o.appendChild(u),o.appendChild(this.shadowRootElement),this.root=(0,RX.createRoot)(this.shadowRootElement)}open(){this.setIsOpen?.(!0)}close(){this.setIsOpen?.(!1)}toggle(){this.setIsOpen?.(!this.isOpen)}createNewConversation(){this.dispatchEvent(new Event("CREATE_NEW_CONVERSATION",{bubbles:!0,composed:!0}))}updateConfig(n){n&&this.setAttribute("interface",JSON.stringify(n)),this.root.render((0,Dl.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}Component=n=>{let[o,i]=(0,vc.useState)(!1);this.setIsOpen=i,this.isOpen=o;let s=Object.entries(v_e).reduce((f,[p,m])=>{let g=this.getAttribute(p);return g&&p!=="visitor-id"&&(f[m]=g),f},{}),l=this.getAttribute("visitor-id")||void 0,u=this.getAttribute("context"),d={};try{d=JSON.parse(this.getAttribute("interface"))}catch{}return(0,Dl.jsx)(vc.StrictMode,{children:(0,Dl.jsx)(w_e,{container:this.shadowRootElement,children:(0,Dl.jsx)("div",{className:"bg-transparent",children:vc.default.createElement(t,{...n,isOpen:o,onEnd:this.onEnd,initConfig:d,context:u,agentId:this.getAttribute("agent-id")||"",formId:this.getAttribute("form-id")||"",contact:s,visitorId:l,styles:this.getAttribute("styles")?JSON.parse(this.getAttribute("styles")):{},onAgentLoaded:f=>{let p=f?.interfaceConfig?.customCSS;if(p){let m=document.createElement("style");m.innerHTML=p,this.shadowRootElement.appendChild(m)}}})})})})};connectedCallback(){this.root.render((0,Dl.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}},ZS=T_e;var PX=O(ae()),OX="horneross-chatbox-bubble",DX=ZS({type:"chatbox",widget:e=>(0,PX.jsx)(hE,{...e,className:va("horneross-widget",e.className),children:nZ}),name:OX});customElements.define(OX,DX);var MX=DX;var E_e=async e=>{if(typeof window<"u"&&!window?.ChatboxBubble){let t=document?.currentScript?.src,r=document?.currentScript?.id,a=e.agentId||r;!a&&t&&(a=new URL(t).searchParams.get("agentId")||r||e.agentId),Mb(e);let n=new MX({instanceId:"ChatBoxBubble"});Pb({element:n,...e}),window.ChatboxBubble=n,document?.body?.prepend(n)}return window?.ChatboxBubble},UX=E_e;c();c();c();var Qo=O(ae()),S_e="https://app.horneross.com/images/chatbubble-default-horneross.svg",I_e=e=>{let{query:t}=_v({id:e.agentId});return(0,Qo.jsxs)("div",{className:va("relative w-full h-full flex flex-col",e.className),children:[(0,Qo.jsx)("div",{className:"flex-shrink-0 px-2 pt-2 pb-2",children:(0,Qo.jsxs)("div",{className:"px-2 py-1 flex items-center border border-gray-700 max-w-[700px] mx-auto bg-[#161618] rounded-lg",children:[(0,Qo.jsx)("div",{className:"w-8 h-8 mr-2 rounded-full border border-gray-600 flex items-center justify-center overflow-hidden",children:t?.data?.iconUrl?(0,Qo.jsx)("img",{src:t?.data?.iconUrl||S_e,alt:"Agent",className:"w-full h-full object-cover"}):(0,Qo.jsx)(Es,{className:"w-4 h-4 text-gray-400"})}),(0,Qo.jsx)("h3",{className:"text-white font-medium text-lg font-['Bricolage_Grotesque']",children:e?.config?.displayName||t?.data?.name}),(0,Qo.jsx)("div",{className:"ml-auto flex items-center",children:(0,Qo.jsx)(bE,{variant:"plain"})})]})}),(0,Qo.jsx)("div",{className:"flex-1 flex flex-col min-h-0",children:e.children})]})},zX=I_e;var FX=O(ae()),pf="horneross-chatbox-standard",__e=ZS({type:"chatbox",widget:e=>(0,FX.jsx)(hE,{layout:zX,...e,className:va("horneross-widget",e.className)}),name:pf}),F4=__e;var k_e=e=>{customElements.get(pf)||customElements.define(pf,F4),Mb(e);let t="ChatBoxStandard_"+(e.id||""),r=new F4({instanceId:t}),a=e.id?document.querySelector(`${pf}[id="${e.id}"]`):document.querySelector(pf);if(!a)throw new Error(`<${pf}> element${`${e.id?` with ID ${e.id}`:""}`} not found.`);if(!window[t]){let n={...e.styles,...Array.from(a.style).reduce((o,i)=>(o[i]=a?.style.getPropertyValue(i),o),{})};Pb({element:r,...e,styles:n}),window[t]=r,a.replaceWith(r)}return window[t]},BX=k_e;var C_e={initBubble:UX,initStandard:BX},CRt=C_e;export{CRt as default};
|
|
302
|
+
/*! Bundled license information:
|
|
303
|
+
|
|
304
|
+
react/cjs/react.production.js:
|
|
305
|
+
(**
|
|
306
|
+
* @license React
|
|
307
|
+
* react.production.js
|
|
308
|
+
*
|
|
309
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
310
|
+
*
|
|
311
|
+
* This source code is licensed under the MIT license found in the
|
|
312
|
+
* LICENSE file in the root directory of this source tree.
|
|
313
|
+
*)
|
|
314
|
+
|
|
315
|
+
@prisma/client/runtime/index-browser.js:
|
|
316
|
+
(*! Bundled license information:
|
|
317
|
+
|
|
318
|
+
decimal.js/decimal.mjs:
|
|
319
|
+
(*!
|
|
320
|
+
* decimal.js v10.4.3
|
|
321
|
+
* An arbitrary-precision Decimal type for JavaScript.
|
|
322
|
+
* https://github.com/MikeMcl/decimal.js
|
|
323
|
+
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
324
|
+
* MIT Licence
|
|
325
|
+
*)
|
|
326
|
+
*)
|
|
327
|
+
|
|
328
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
329
|
+
(**
|
|
330
|
+
* @license React
|
|
331
|
+
* use-sync-external-store-shim.production.js
|
|
332
|
+
*
|
|
333
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
334
|
+
*
|
|
335
|
+
* This source code is licensed under the MIT license found in the
|
|
336
|
+
* LICENSE file in the root directory of this source tree.
|
|
337
|
+
*)
|
|
338
|
+
|
|
339
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
340
|
+
(**
|
|
341
|
+
* @license React
|
|
342
|
+
* react-jsx-runtime.production.js
|
|
343
|
+
*
|
|
344
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
345
|
+
*
|
|
346
|
+
* This source code is licensed under the MIT license found in the
|
|
347
|
+
* LICENSE file in the root directory of this source tree.
|
|
348
|
+
*)
|
|
349
|
+
|
|
350
|
+
react-dom/cjs/react-dom.production.js:
|
|
351
|
+
(**
|
|
352
|
+
* @license React
|
|
353
|
+
* react-dom.production.js
|
|
354
|
+
*
|
|
355
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
356
|
+
*
|
|
357
|
+
* This source code is licensed under the MIT license found in the
|
|
358
|
+
* LICENSE file in the root directory of this source tree.
|
|
359
|
+
*)
|
|
360
|
+
|
|
361
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
362
|
+
(**
|
|
363
|
+
* @license React
|
|
364
|
+
* use-sync-external-store-shim.production.js
|
|
365
|
+
*
|
|
366
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
367
|
+
*
|
|
368
|
+
* This source code is licensed under the MIT license found in the
|
|
369
|
+
* LICENSE file in the root directory of this source tree.
|
|
370
|
+
*)
|
|
371
|
+
|
|
372
|
+
scheduler/cjs/scheduler.production.js:
|
|
373
|
+
(**
|
|
374
|
+
* @license React
|
|
375
|
+
* scheduler.production.js
|
|
376
|
+
*
|
|
377
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
378
|
+
*
|
|
379
|
+
* This source code is licensed under the MIT license found in the
|
|
380
|
+
* LICENSE file in the root directory of this source tree.
|
|
381
|
+
*)
|
|
382
|
+
|
|
383
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
384
|
+
(**
|
|
385
|
+
* @license React
|
|
386
|
+
* react-dom-client.production.js
|
|
387
|
+
*
|
|
388
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
389
|
+
*
|
|
390
|
+
* This source code is licensed under the MIT license found in the
|
|
391
|
+
* LICENSE file in the root directory of this source tree.
|
|
392
|
+
*)
|
|
393
|
+
|
|
394
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
395
|
+
(**
|
|
396
|
+
* @license lucide-react v0.525.0 - ISC
|
|
397
|
+
*
|
|
398
|
+
* This source code is licensed under the ISC license.
|
|
399
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
400
|
+
*)
|
|
401
|
+
|
|
402
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
403
|
+
(**
|
|
404
|
+
* @license lucide-react v0.525.0 - ISC
|
|
405
|
+
*
|
|
406
|
+
* This source code is licensed under the ISC license.
|
|
407
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
408
|
+
*)
|
|
409
|
+
|
|
410
|
+
lucide-react/dist/esm/Icon.js:
|
|
411
|
+
(**
|
|
412
|
+
* @license lucide-react v0.525.0 - ISC
|
|
413
|
+
*
|
|
414
|
+
* This source code is licensed under the ISC license.
|
|
415
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
416
|
+
*)
|
|
417
|
+
|
|
418
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
419
|
+
(**
|
|
420
|
+
* @license lucide-react v0.525.0 - ISC
|
|
421
|
+
*
|
|
422
|
+
* This source code is licensed under the ISC license.
|
|
423
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
424
|
+
*)
|
|
425
|
+
|
|
426
|
+
lucide-react/dist/esm/icons/arrow-right-left.js:
|
|
427
|
+
(**
|
|
428
|
+
* @license lucide-react v0.525.0 - ISC
|
|
429
|
+
*
|
|
430
|
+
* This source code is licensed under the ISC license.
|
|
431
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
432
|
+
*)
|
|
433
|
+
|
|
434
|
+
lucide-react/dist/esm/icons/arrow-up-right.js:
|
|
435
|
+
(**
|
|
436
|
+
* @license lucide-react v0.525.0 - ISC
|
|
437
|
+
*
|
|
438
|
+
* This source code is licensed under the ISC license.
|
|
439
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
440
|
+
*)
|
|
441
|
+
|
|
442
|
+
lucide-react/dist/esm/icons/bot.js:
|
|
443
|
+
(**
|
|
444
|
+
* @license lucide-react v0.525.0 - ISC
|
|
445
|
+
*
|
|
446
|
+
* This source code is licensed under the ISC license.
|
|
447
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
448
|
+
*)
|
|
449
|
+
|
|
450
|
+
lucide-react/dist/esm/icons/brain.js:
|
|
451
|
+
(**
|
|
452
|
+
* @license lucide-react v0.525.0 - ISC
|
|
453
|
+
*
|
|
454
|
+
* This source code is licensed under the ISC license.
|
|
455
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
456
|
+
*)
|
|
457
|
+
|
|
458
|
+
lucide-react/dist/esm/icons/chart-column.js:
|
|
459
|
+
(**
|
|
460
|
+
* @license lucide-react v0.525.0 - ISC
|
|
461
|
+
*
|
|
462
|
+
* This source code is licensed under the ISC license.
|
|
463
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
464
|
+
*)
|
|
465
|
+
|
|
466
|
+
lucide-react/dist/esm/icons/check.js:
|
|
467
|
+
(**
|
|
468
|
+
* @license lucide-react v0.525.0 - ISC
|
|
469
|
+
*
|
|
470
|
+
* This source code is licensed under the ISC license.
|
|
471
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
472
|
+
*)
|
|
473
|
+
|
|
474
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
475
|
+
(**
|
|
476
|
+
* @license lucide-react v0.525.0 - ISC
|
|
477
|
+
*
|
|
478
|
+
* This source code is licensed under the ISC license.
|
|
479
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
480
|
+
*)
|
|
481
|
+
|
|
482
|
+
lucide-react/dist/esm/icons/circle-alert.js:
|
|
483
|
+
(**
|
|
484
|
+
* @license lucide-react v0.525.0 - ISC
|
|
485
|
+
*
|
|
486
|
+
* This source code is licensed under the ISC license.
|
|
487
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
488
|
+
*)
|
|
489
|
+
|
|
490
|
+
lucide-react/dist/esm/icons/circle-check.js:
|
|
491
|
+
(**
|
|
492
|
+
* @license lucide-react v0.525.0 - ISC
|
|
493
|
+
*
|
|
494
|
+
* This source code is licensed under the ISC license.
|
|
495
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
496
|
+
*)
|
|
497
|
+
|
|
498
|
+
lucide-react/dist/esm/icons/circle-user.js:
|
|
499
|
+
(**
|
|
500
|
+
* @license lucide-react v0.525.0 - ISC
|
|
501
|
+
*
|
|
502
|
+
* This source code is licensed under the ISC license.
|
|
503
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
+
*)
|
|
505
|
+
|
|
506
|
+
lucide-react/dist/esm/icons/circle-x.js:
|
|
507
|
+
(**
|
|
508
|
+
* @license lucide-react v0.525.0 - ISC
|
|
509
|
+
*
|
|
510
|
+
* This source code is licensed under the ISC license.
|
|
511
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
512
|
+
*)
|
|
513
|
+
|
|
514
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
515
|
+
(**
|
|
516
|
+
* @license lucide-react v0.525.0 - ISC
|
|
517
|
+
*
|
|
518
|
+
* This source code is licensed under the ISC license.
|
|
519
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
520
|
+
*)
|
|
521
|
+
|
|
522
|
+
lucide-react/dist/esm/icons/cpu.js:
|
|
523
|
+
(**
|
|
524
|
+
* @license lucide-react v0.525.0 - ISC
|
|
525
|
+
*
|
|
526
|
+
* This source code is licensed under the ISC license.
|
|
527
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
528
|
+
*)
|
|
529
|
+
|
|
530
|
+
lucide-react/dist/esm/icons/database.js:
|
|
531
|
+
(**
|
|
532
|
+
* @license lucide-react v0.525.0 - ISC
|
|
533
|
+
*
|
|
534
|
+
* This source code is licensed under the ISC license.
|
|
535
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
536
|
+
*)
|
|
537
|
+
|
|
538
|
+
lucide-react/dist/esm/icons/external-link.js:
|
|
539
|
+
(**
|
|
540
|
+
* @license lucide-react v0.525.0 - ISC
|
|
541
|
+
*
|
|
542
|
+
* This source code is licensed under the ISC license.
|
|
543
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
544
|
+
*)
|
|
545
|
+
|
|
546
|
+
lucide-react/dist/esm/icons/file-code.js:
|
|
547
|
+
(**
|
|
548
|
+
* @license lucide-react v0.525.0 - ISC
|
|
549
|
+
*
|
|
550
|
+
* This source code is licensed under the ISC license.
|
|
551
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
552
|
+
*)
|
|
553
|
+
|
|
554
|
+
lucide-react/dist/esm/icons/file-spreadsheet.js:
|
|
555
|
+
(**
|
|
556
|
+
* @license lucide-react v0.525.0 - ISC
|
|
557
|
+
*
|
|
558
|
+
* This source code is licensed under the ISC license.
|
|
559
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
560
|
+
*)
|
|
561
|
+
|
|
562
|
+
lucide-react/dist/esm/icons/file-text.js:
|
|
563
|
+
(**
|
|
564
|
+
* @license lucide-react v0.525.0 - ISC
|
|
565
|
+
*
|
|
566
|
+
* This source code is licensed under the ISC license.
|
|
567
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
568
|
+
*)
|
|
569
|
+
|
|
570
|
+
lucide-react/dist/esm/icons/file.js:
|
|
571
|
+
(**
|
|
572
|
+
* @license lucide-react v0.525.0 - ISC
|
|
573
|
+
*
|
|
574
|
+
* This source code is licensed under the ISC license.
|
|
575
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
576
|
+
*)
|
|
577
|
+
|
|
578
|
+
lucide-react/dist/esm/icons/film.js:
|
|
579
|
+
(**
|
|
580
|
+
* @license lucide-react v0.525.0 - ISC
|
|
581
|
+
*
|
|
582
|
+
* This source code is licensed under the ISC license.
|
|
583
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
584
|
+
*)
|
|
585
|
+
|
|
586
|
+
lucide-react/dist/esm/icons/globe.js:
|
|
587
|
+
(**
|
|
588
|
+
* @license lucide-react v0.525.0 - ISC
|
|
589
|
+
*
|
|
590
|
+
* This source code is licensed under the ISC license.
|
|
591
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
592
|
+
*)
|
|
593
|
+
|
|
594
|
+
lucide-react/dist/esm/icons/image.js:
|
|
595
|
+
(**
|
|
596
|
+
* @license lucide-react v0.525.0 - ISC
|
|
597
|
+
*
|
|
598
|
+
* This source code is licensed under the ISC license.
|
|
599
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
600
|
+
*)
|
|
601
|
+
|
|
602
|
+
lucide-react/dist/esm/icons/loader-circle.js:
|
|
603
|
+
(**
|
|
604
|
+
* @license lucide-react v0.525.0 - ISC
|
|
605
|
+
*
|
|
606
|
+
* This source code is licensed under the ISC license.
|
|
607
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
608
|
+
*)
|
|
609
|
+
|
|
610
|
+
lucide-react/dist/esm/icons/loader.js:
|
|
611
|
+
(**
|
|
612
|
+
* @license lucide-react v0.525.0 - ISC
|
|
613
|
+
*
|
|
614
|
+
* This source code is licensed under the ISC license.
|
|
615
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
616
|
+
*)
|
|
617
|
+
|
|
618
|
+
lucide-react/dist/esm/icons/mic.js:
|
|
619
|
+
(**
|
|
620
|
+
* @license lucide-react v0.525.0 - ISC
|
|
621
|
+
*
|
|
622
|
+
* This source code is licensed under the ISC license.
|
|
623
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
624
|
+
*)
|
|
625
|
+
|
|
626
|
+
lucide-react/dist/esm/icons/minus.js:
|
|
627
|
+
(**
|
|
628
|
+
* @license lucide-react v0.525.0 - ISC
|
|
629
|
+
*
|
|
630
|
+
* This source code is licensed under the ISC license.
|
|
631
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
632
|
+
*)
|
|
633
|
+
|
|
634
|
+
lucide-react/dist/esm/icons/music.js:
|
|
635
|
+
(**
|
|
636
|
+
* @license lucide-react v0.525.0 - ISC
|
|
637
|
+
*
|
|
638
|
+
* This source code is licensed under the ISC license.
|
|
639
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
640
|
+
*)
|
|
641
|
+
|
|
642
|
+
lucide-react/dist/esm/icons/paperclip.js:
|
|
643
|
+
(**
|
|
644
|
+
* @license lucide-react v0.525.0 - ISC
|
|
645
|
+
*
|
|
646
|
+
* This source code is licensed under the ISC license.
|
|
647
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
648
|
+
*)
|
|
649
|
+
|
|
650
|
+
lucide-react/dist/esm/icons/search.js:
|
|
651
|
+
(**
|
|
652
|
+
* @license lucide-react v0.525.0 - ISC
|
|
653
|
+
*
|
|
654
|
+
* This source code is licensed under the ISC license.
|
|
655
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
656
|
+
*)
|
|
657
|
+
|
|
658
|
+
lucide-react/dist/esm/icons/sliders-vertical.js:
|
|
659
|
+
(**
|
|
660
|
+
* @license lucide-react v0.525.0 - ISC
|
|
661
|
+
*
|
|
662
|
+
* This source code is licensed under the ISC license.
|
|
663
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
664
|
+
*)
|
|
665
|
+
|
|
666
|
+
lucide-react/dist/esm/icons/sparkles.js:
|
|
667
|
+
(**
|
|
668
|
+
* @license lucide-react v0.525.0 - ISC
|
|
669
|
+
*
|
|
670
|
+
* This source code is licensed under the ISC license.
|
|
671
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
672
|
+
*)
|
|
673
|
+
|
|
674
|
+
lucide-react/dist/esm/icons/square-arrow-out-up-right.js:
|
|
675
|
+
(**
|
|
676
|
+
* @license lucide-react v0.525.0 - ISC
|
|
677
|
+
*
|
|
678
|
+
* This source code is licensed under the ISC license.
|
|
679
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
680
|
+
*)
|
|
681
|
+
|
|
682
|
+
lucide-react/dist/esm/icons/square-check-big.js:
|
|
683
|
+
(**
|
|
684
|
+
* @license lucide-react v0.525.0 - ISC
|
|
685
|
+
*
|
|
686
|
+
* This source code is licensed under the ISC license.
|
|
687
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
688
|
+
*)
|
|
689
|
+
|
|
690
|
+
lucide-react/dist/esm/icons/square.js:
|
|
691
|
+
(**
|
|
692
|
+
* @license lucide-react v0.525.0 - ISC
|
|
693
|
+
*
|
|
694
|
+
* This source code is licensed under the ISC license.
|
|
695
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
696
|
+
*)
|
|
697
|
+
|
|
698
|
+
lucide-react/dist/esm/icons/thumbs-down.js:
|
|
699
|
+
(**
|
|
700
|
+
* @license lucide-react v0.525.0 - ISC
|
|
701
|
+
*
|
|
702
|
+
* This source code is licensed under the ISC license.
|
|
703
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
704
|
+
*)
|
|
705
|
+
|
|
706
|
+
lucide-react/dist/esm/icons/thumbs-up.js:
|
|
707
|
+
(**
|
|
708
|
+
* @license lucide-react v0.525.0 - ISC
|
|
709
|
+
*
|
|
710
|
+
* This source code is licensed under the ISC license.
|
|
711
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
712
|
+
*)
|
|
713
|
+
|
|
714
|
+
lucide-react/dist/esm/icons/triangle-alert.js:
|
|
715
|
+
(**
|
|
716
|
+
* @license lucide-react v0.525.0 - ISC
|
|
717
|
+
*
|
|
718
|
+
* This source code is licensed under the ISC license.
|
|
719
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
720
|
+
*)
|
|
721
|
+
|
|
722
|
+
lucide-react/dist/esm/icons/user-plus.js:
|
|
723
|
+
(**
|
|
724
|
+
* @license lucide-react v0.525.0 - ISC
|
|
725
|
+
*
|
|
726
|
+
* This source code is licensed under the ISC license.
|
|
727
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
728
|
+
*)
|
|
729
|
+
|
|
730
|
+
lucide-react/dist/esm/icons/user.js:
|
|
731
|
+
(**
|
|
732
|
+
* @license lucide-react v0.525.0 - ISC
|
|
733
|
+
*
|
|
734
|
+
* This source code is licensed under the ISC license.
|
|
735
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
736
|
+
*)
|
|
737
|
+
|
|
738
|
+
lucide-react/dist/esm/icons/x.js:
|
|
739
|
+
(**
|
|
740
|
+
* @license lucide-react v0.525.0 - ISC
|
|
741
|
+
*
|
|
742
|
+
* This source code is licensed under the ISC license.
|
|
743
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
744
|
+
*)
|
|
745
|
+
|
|
746
|
+
lucide-react/dist/esm/icons/zap.js:
|
|
747
|
+
(**
|
|
748
|
+
* @license lucide-react v0.525.0 - ISC
|
|
749
|
+
*
|
|
750
|
+
* This source code is licensed under the ISC license.
|
|
751
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
752
|
+
*)
|
|
753
|
+
|
|
754
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
755
|
+
(**
|
|
756
|
+
* @license lucide-react v0.525.0 - ISC
|
|
757
|
+
*
|
|
758
|
+
* This source code is licensed under the ISC license.
|
|
759
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
760
|
+
*)
|
|
761
|
+
*/
|