PageSourceSearch

https://shawnhook.com/assets/index-C7Hto5Ul.js

js shawnhook.com collected 2026-10-06 13:58:24 UTC 532,303 bytes, 13 lines download raw bytes

vendor: 5,556 bytes, line 1
1function Y2(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Xv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var md={exports:{}},xo={},gd={exports:{}},Me={};var bg;function J2(){if(bg)return Me;bg=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function x(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function T(D,U,Ce){this.props=D,this.context=U,this.refs=S,this.updater=Ce||w}T.prototype.isReactComponent={},T.prototype.setState=function(D,U){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,U,"setState")},T.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function A(){}A.prototype=T.prototype;function R(D,U,Ce){this.props=D,this.context=U,this.refs=S,this.updater=Ce||w}var I=R.prototype=new A;I.constructor=R,_(I,T.prototype),I.isPureReactComponent=!0;var F=Array.isArray,L=Object.prototype.hasOwnProperty,K={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function J(D,U,Ce){var Ae,je={},Ie=null,Le=null;if(U!=null)for(Ae in U.ref!==void 0&&(Le=U.ref),U.key!==void 0&&(Ie=""+U.key),U)L.call(U,Ae)&&!X.hasOwnProperty(Ae)&&(je[Ae]=U[Ae]);var Ve=arguments.length-2;if(Ve===1)je.children=Ce;else if(1<Ve){for(var Ke=Array(Ve),wt=0;wt<Ve;wt++)Ke[wt]=arguments[wt+2];je.children=Ke}if(D&&D.defaultProps)for(Ae in Ve=D.defaultProps,Ve)je[Ae]===void 0&&(je[Ae]=Ve[Ae]);return{$$typeof:t,type:D,key:Ie,ref:Le,props:je,_owner:K.current}}function ve(D,U){return{$$typeof:t,type:D.type,key:U,ref:D.ref,props:D.props,_owner:D._owner}}function ce(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function Ee(D){var U={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(Ce){return U[Ce]})}var q=/\/+/g;function ae(D,U){return typeof D=="object"&&D!==null&&D.key!=null?Ee(""+D.key):U.toString(36)}function Z(D,U,Ce,Ae,je){var Ie=typeof D;(Ie==="undefined"||Ie==="boolean")&&(D=null);var Le=!1;if(D===null)Le=!0;else switch(Ie){case"string":case"number":Le=!0;break;case"object":switch(D.$$typeof){case t:case e:Le=!0}}if(Le)return Le=D,je=je(Le),D=Ae===""?"."+ae(Le,0):Ae,F(je)?(Ce="",D!=null&&(Ce=D.replace(q,"$&/")+"/"),Z(je,U,Ce,"",function(wt){return wt})):je!=null&&(ce(je)&&(je=ve(je,Ce+(!je.key||Le&&Le.key===je.key?"":(""+je.key).replace(q,"$&/")+"/")+D)),U.push(je)),1;if(Le=0,Ae=Ae===""?".":Ae+":",F(D))for(var Ve=0;Ve<D.length;Ve++){Ie=D[Ve];var Ke=Ae+ae(Ie,Ve);Le+=Z(Ie,U,Ce,Ke,je)}else if(Ke=x(D),typeof Ke=="function")for(D=Ke.call(D),Ve=0;!(Ie=D.next()).done;)Ie=Ie.value,Ke=Ae+ae(Ie,Ve++),Le+=Z(Ie,U,Ce,Ke,je);else if(Ie==="object")throw U=String(D),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Le}function we(D,U,Ce){if(D==null)return D;var Ae=[],je=0;return Z(D,Ae,"","",function(Ie){return U.call(Ce,Ie,je++)}),Ae}function me(D){if(D._status===-1){var U=D._result;U=U(),U.then(function(Ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=Ce)},function(Ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=Ce)}),D._status===-1&&(D._status=0,D._result=U)}if(D._status===1)return D._result.default;throw D._result}var se={current:null},B={transition:null},ne={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:B,ReactCurrentOwner:K};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Me.Children={map:we,forEach:function(D,U,Ce){we(D,function(){U.apply(this,arguments)},Ce)},count:function(D){var U=0;return we(D,function(){U++}),U},toArray:function(D){return we(D,function(U){return U})||[]},only:function(D){if(!ce(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Me.Component=T,Me.Fragment=n,Me.Profiler=o,Me.PureComponent=R,Me.StrictMode=i,Me.Suspense=h,Me.__SECRET_INT
vendor: 5,104 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,Me.act=Y,Me.cloneElement=function(D,U,Ce){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var Ae=_({},D.props),je=D.key,Ie=D.ref,Le=D._owner;if(U!=null){if(U.ref!==void 0&&(Ie=U.ref,Le=K.current),U.key!==void 0&&(je=""+U.key),D.type&&D.type.defaultProps)var Ve=D.type.defaultProps;for(Ke in U)L.call(U,Ke)&&!X.hasOwnProperty(Ke)&&(Ae[Ke]=U[Ke]===void 0&&Ve!==void 0?Ve[Ke]:U[Ke])}var Ke=arguments.length-2;if(Ke===1)Ae.children=Ce;else if(1<Ke){Ve=Array(Ke);for(var wt=0;wt<Ke;wt++)Ve[wt]=arguments[wt+2];Ae.children=Ve}return{$$typeof:t,type:D.type,key:je,ref:Ie,props:Ae,_owner:Le}},Me.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:l,_context:D},D.Consumer=D},Me.createElement=J,Me.createFactory=function(D){var U=J.bind(null,D);return U.type=D,U},Me.createRef=function(){return{current:null}},Me.forwardRef=function(D){return{$$typeof:d,render:D}},Me.isValidElement=ce,Me.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:me}},Me.memo=function(D,U){return{$$typeof:p,type:D,compare:U===void 0?null:U}},Me.startTransition=function(D){var U=B.transition;B.transition={};try{D()}finally{B.transition=U}},Me.unstable_act=Y,Me.useCallback=function(D,U){return se.current.useCallback(D,U)},Me.useContext=function(D){return se.current.useContext(D)},Me.useDebugValue=function(){},Me.useDeferredValue=function(D){return se.current.useDeferredValue(D)},Me.useEffect=function(D,U){return se.current.useEffect(D,U)},Me.useId=function(){return se.current.useId()},Me.useImperativeHandle=function(D,U,Ce){return se.current.useImperativeHandle(D,U,Ce)},Me.useInsertionEffect=function(D,U){return se.current.useInsertionEffect(D,U)},Me.useLayoutEffect=function(D,U){return se.current.useLayoutEffect(D,U)},Me.useMemo=function(D,U){return se.current.useMemo(D,U)},Me.useReducer=function(D,U,Ce){return se.current.useReducer(D,U,Ce)},Me.useRef=function(D){return se.current.useRef(D)},Me.useState=function(D){return se.current.useState(D)},Me.useSyncExternalStore=function(D,U,Ce){return se.current.useSyncExternalStore(D,U,Ce)},Me.useTransition=function(){return se.current.useTransition()},Me.version="18.3.1",Me}var Tg;function cu(){return Tg||(Tg=1,gd.exports=J2()),gd.exports}var Pg;function eb(){if(Pg)return xo;Pg=1;var t=cu(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,p){var g,y={},x=null,w=null;p!==void 0&&(x=""+p),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(w=h.ref);for(g in h)i.call(h,g)&&!l.hasOwnProperty(g)&&(y[g]=h[g]);if(d&&d.defaultProps)for(g in h=d.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:e,type:d,key:x,ref:w,props:y,_owner:o.current}}return xo.Fragment=n,xo.jsx=u,xo.jsxs=u,xo}var Cg;function tb(){return Cg||(Cg=1,md.exports=eb()),md.exports}var b=tb(),Cl={},yd={exports:{}},Gt={},vd={exports:{}},xd={};var _g;function nb(){return _g||(_g=1,(function(t){function e(B,ne){var Y=B.length;B.push(ne);e:for(;0<Y;){var D=Y-1>>>1,U=B[D];if(0<o(U,ne))B[D]=ne,B[Y]=U,Y=D;else break e}}function n(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var ne=B[0],Y=B.pop();if(Y!==ne){B[0]=Y;e:for(var D=0,U=B.length,Ce=U>>>1;D<Ce;){var Ae=2*(D+1)-1,je=B[Ae],Ie=Ae+1,Le=B[Ie];if(0>o(je,Y))Ie<U&&0>o(Le,je)?(B[D]=Le,B[Ie]=Y,D=Ie):(B[D]=je,B[Ae]=Y,D=Ae);else if(Ie<U&&0>o(Le,Y))B[D]=Le,B[Ie]=Y,D=Ie;else break e}}return ne}function o(B,ne){var Y=B.sortIndex-ne.sortIndex;return Y!==0?Y:B.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var h=[],p=[],g=1,y=null,x=3,w=!1,_=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(B){for(var ne=n(p);ne!==null;){if(ne.callback===null)i(p);else if(ne.startTime<=B)i(p),ne.sortIndex=ne.expirationTime,e(h,ne);else break;ne=n(p)}}function F(B){if(S=!1,I(B),!_)if(n(h)!==null)_=!0,me(L);else{var ne=n(p);ne!==null&&se(F,ne.startTime-B)}}function L(B,ne){_=!1,S&&(S=!1,A(J),J=-1),w=!0;var Y=x;try{for(I(ne),y=n(h);y!==null&&(!(y.expirationTime>ne)||B&&!Ee());){var D=y.callback;if(typeof D=="function"){y.callback=null,x=y.priorityLevel;var U=D(y.expirationTime<=ne);ne=t.unstable_now(),typeof U=="function"?y.callback=U:y===n(h)&&i(h),I(ne)}else i(h);y=n(h)}if(y!==null)var Ce=!0;else{var Ae=n(p);Ae!==null&&se(F,Ae.startTime-ne),Ce=!1}return Ce}finally{y=null,x=Y,w=!1}}var K=!1,X=null,J=-1,ve=5,ce=-1;function Ee(){return!(t.unstable_now()-ce<ve)}
vendor: 48,757 bytes, lines 1-6
1function q(){if(X!==null){var B=t.unstable_now();ce=B;var ne=!0;try{ne=X(!0,B)}finally{ne?ae():(K=!1,X=null)}}else K=!1}var ae;if(typeof R=="function")ae=function(){R(q)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,we=Z.port2;Z.port1.onmessage=q,ae=function(){we.postMessage(null)}}else ae=function(){T(q,0)};function me(B){X=B,K||(K=!0,ae())}function se(B,ne){J=T(function(){B(t.unstable_now())},ne)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_continueExecution=function(){_||w||(_=!0,me(L))},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ve=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return n(h)},t.unstable_next=function(B){switch(x){case 1:case 2:case 3:var ne=3;break;default:ne=x}var Y=x;x=ne;try{return B()}finally{x=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(B,ne){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Y=x;x=B;try{return ne()}finally{x=Y}},t.unstable_scheduleCallback=function(B,ne,Y){var D=t.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?D+Y:D):Y=D,B){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=Y+U,B={id:g++,callback:ne,priorityLevel:B,startTime:Y,expirationTime:U,sortIndex:-1},Y>D?(B.sortIndex=Y,e(p,B),n(h)===null&&B===n(p)&&(S?(A(J),J=-1):S=!0,se(F,Y-D))):(B.sortIndex=U,e(h,B),_||w||(_=!0,me(L))),B},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(B){var ne=x;return function(){var Y=x;x=ne;try{return B.apply(this,arguments)}finally{x=Y}}}})(xd)),xd}var Eg;function rb(){return Eg||(Eg=1,vd.exports=nb()),vd.exports}var kg;function sb(){if(kg)return Gt;kg=1;var t=cu(),e=rb();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,o={};function l(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(o[r]=s,r=0;r<s.length;r++)i.add(s[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},y={};function x(r){return h.call(y,r)?!0:h.call(g,r)?!1:p.test(r)?y[r]=!0:(g[r]=!0,!1)}function w(r,s,a,c){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function _(r,s,a,c){if(s===null||typeof s>"u"||w(r,s,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function S(r,s,a,c,f,m,v){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=f,this.mustUseProperty=a,this.propertyName=r,this.type=s,this.sanitizeURL=m,this.removeEmptyString=v}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){T[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];T[s]=new S(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){T[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){T[r]=new S(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){T[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){T[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){T[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){T[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){T[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function R(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var s=r.replace(A,R);T[s]=new S(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(A,R);T[s]=new S(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(A,R);T[s]=new S(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){T[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),T.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){T[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function I(r,s,a,c){var f=T.hasOwnProperty(s)?T[s]:null;(f!==null?f.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(_(s,a,f,c)&&(a=null),c||f===null?x(s)&&(a===null?r.removeAttribute(s):r.setAttribute(s,""+a)):f.mustUseProperty?r[f.propertyName]=a===null?f.type===3?!1:"":a:(s=f.attributeName,c=f.attributeNamespace,a===null?r.removeAttribute(s):(f=f.type,a=f===3||f===4&&a===!0?"":""+a,c?r.setAttributeNS(c,s,a):r.setAttribute(s,a))))}var F=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),K=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),Ee=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),we=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),B=Symbol.iterator;function ne(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var Y=Object.assign,D;function U(r){if(D===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);D=s&&s[1]||""}return`
2`+D+r}var Ce=!1;function Ae(r,s){if(!r||Ce)return"";Ce=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(V){var c=V}Reflect.construct(r,[],s)}else{try{s.call()}catch(V){c=V}r.call(s.prototype)}else{try{throw Error()}catch(V){c=V}r()}}catch(V){if(V&&c&&typeof V.stack=="string"){for(var f=V.stack.split(`
3`),m=c.stack.split(`
4`),v=f.length-1,C=m.length-1;1<=v&&0<=C&&f[v]!==m[C];)C--;for(;1<=v&&0<=C;v--,C--)if(f[v]!==m[C]){if(v!==1||C!==1)do if(v--,C--,0>C||f[v]!==m[C]){var k=`
5`+f[v].replace(" at new "," at ");return r.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",r.displayName)),k}while(1<=v&&0<=C);break}}}finally{Ce=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?U(r):""}function je(r){switch(r.tag){case 5:return U(r.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return r=Ae(r.type,!1),r;case 11:return r=Ae(r.type.render,!1),r;case 1:return r=Ae(r.type,!0),r;default:return""}}function Ie(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case X:return"Fragment";case K:return"Portal";case ve:return"Profiler";case J:return"StrictMode";case ae:return"Suspense";case Z:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Ee:return(r.displayName||"Context")+".Consumer";case ce:return(r._context.displayName||"Context")+".Provider";case q:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case we:return s=r.displayName||null,s!==null?s:Ie(r.type)||"Memo";case me:s=r._payload,r=r._init;try{return Ie(r(s))}catch{}}return null}function Le(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ie(s);case 8:return s===J?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ve(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ke(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function wt(r){var s=Ke(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),c=""+r[s];if(!r.hasOwnProperty(s)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var f=a.get,m=a.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return f.call(this)},set:function(v){c=""+v,m.call(this,v)}}),Object.defineProperty(r,s,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(v){c=""+v},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function zn(r){r._valueTracker||(r._valueTracker=wt(r))}function ks(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return r&&(c=Ke(r)?r.checked?"true":"false":r.value),r=c,r!==a?(s.setValue(r),!0):!1}function hn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Ai(r,s){var a=s.checked;return Y({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function Ni(r,s){var a=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;a=Ve(s.value!=null?s.value:a),r._wrapperState={initialChecked:c,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Ri(r,s){s=s.checked,s!=null&&I(r,"checked",s,!1)}function Di(r,s){Ri(r,s);var a=Ve(s.value),c=s.type;if(a!=null)c==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?ga(r,s.type,a):s.hasOwnProperty("defaultValue")&&ga(r,s.type,Ve(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function ma(r,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,a||s===r.value||(r.value=s),r.defaultValue=s}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function ga(r,s,a){(s!=="number"||hn(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var Sr=Array.isArray;function E(r,s,a,c){if(r=r.options,s){s={};for(var f=0;f<a.length;f++)s["$"+a[f]]=!0;for(a=0;a<r.length;a++)f=s.hasOwnProperty("$"+r[a].value),r[a].selected!==f&&(r[a].selected=f),f&&c&&(r[a].defaultSelected=!0)}else{for(a=""+Ve(a),s=null,f=0;f<r.length;f++){if(r[f].value===a){r[f].selected=!0,c&&(r[f].defaultSelected=!0);return}s!==null||r[f].disabled||(s=r[f])}s!==null&&(s.selected=!0)}}function M(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function z(r,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(n(92));if(Sr(a)){if(1<a.length)throw Error(n(93));a=a[0]}s=a}s==null&&(s=""),a=s}r._wrapperState={initialValue:Ve(a)}}function oe(r,s){var a=Ve(s.value),c=Ve(s.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),s.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),c!=null&&(r.defaultValue=""+c)}function re(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function ee(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xe(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?ee(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Fe,$e=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,a,c,f){MSApp.execUnsafeLocalFunction(function(){return r(s,a,c,f)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(Fe=Fe||document.createElement("div"),Fe.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Fe.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function ft(r,s){if(s){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=s;return}}r.textContent=s}var Jt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bn=["Webkit","ms","Moz","O"];Object.keys(Jt).forEach(function(r){Bn.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Jt[s]=Jt[r]})});function ya(r,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||Jt.hasOwnProperty(r)&&Jt[r]?(""+s).trim():s+"px"}function As(r,s){r=r.style;for(var a in s)if(s.hasOwnProperty(a)){var c=a.indexOf("--")===0,f=ya(a,s[a],c);a==="float"&&(a="cssFloat"),c?r.setProperty(a,f):r[a]=f}}var Oi=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mi(r,s){if(s){if(Oi[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Ns(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){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 Ii=null;function Rs(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ru=null,Ds=null,Os=null;function Fh(r){if(r=ro(r)){if(typeof Ru!="function")throw Error(n(280));var s=r.stateNode;s&&(s=za(s),Ru(r.stateNode,r.type,s))}}function zh(r){Ds?Os?Os.push(r):Os=[r]:Ds=r}function Bh(){if(Ds){var r=Ds,s=Os;if(Os=Ds=null,Fh(r),s)for(r=0;r<s.length;r++)Fh(s[r])}}function Uh(r,s){return r(s)}function $h(){}var Du=!1;function Wh(r,s,a){if(Du)return r(s,a);Du=!0;try{return Uh(r,s,a)}finally{Du=!1,(Ds!==null||Os!==null)&&($h(),Bh())}}function ji(r,s){var a=r.stateNode;if(a===null)return null;var c=za(a);if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var Ou=!1;if(d)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){Ou=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{Ou=!1}function sS(r,s,a,c,f,m,v,C,k){var V=Array.prototype.slice.call(arguments,3);try{s.apply(a,V)}catch(H){this.onError(H)}}var Li=!1,va=null,xa=!1,Mu=null,iS={onError:function(r){Li=!0,va=r}};function oS(r,s,a,c,f,m,v,C,k){Li=!1,va=null,sS.apply(iS,arguments)}function aS(r,s,a,c,f,m,v,C,k){if(oS.apply(this,arguments),Li){if(Li){var V=va;Li=!1,va=null}else throw Error(n(198));xa||(xa=!0,Mu=V)}}function ts(r){var s=r,a=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(a=s.return),r=s.return;while(r)}return s.tag===3?a:null}function Hh(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function Kh(r){if(ts(r)!==r)throw Error(n(188))}function lS(r){var s=r.alternate;if(!s){if(s=ts(r),s===null)throw Error(n(188));return s!==r?null:r}for(var a=r,c=s;;){var f=a.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){a=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===a)return Kh(f),r;if(m===c)return Kh(f),s;m=m.sibling}throw Error(n(188))}if(a.return!==c.return)a=f,c=m;else{for(var v=!1,C=f.child;C;){if(C===a){v=!0,a=f,c=m;break}if(C===c){v=!0,c=f,a=m;break}C=C.sibling}if(!v){for(C=m.child;C;){if(C===a){v=!0,a=m,c=f;break}if(C===c){v=!0,c=m,a=f;break}C=C.sibling}if(!v)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:s}function qh(r){return r=lS(r),r!==null?Qh(r):null}function Qh(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=Qh(r);if(s!==null)return s;r=r.sibling}return null}var Zh=e.unstable_scheduleCallback,Gh=e.unstable_cancelCallback,uS=e.unstable_shouldYield,cS=e.unstable_requestPaint,ht=e.unstable_now,dS=e.unstable_getCurrentPriorityLevel,Iu=e.unstable_ImmediatePriority,Xh=e.unstable_UserBlockingPriority,wa=e.unstable_NormalPriority,fS=e.unstable_LowPriority,Yh=e.unstable_IdlePriority,Sa=null,Un=null;function hS(r){if(Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot(Sa,r,void 0,(r.current.flags&128)===128)}catch{}}var bn=Math.clz32?Math.clz32:gS,pS=Math.log,mS=Math.LN2;function gS(r){return r>>>=0,r===0?32:31-(pS(r)/mS|0)|0}var ba=64,Ta=4194304;function Fi(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Pa(r,s){var a=r.pendingLanes;if(a===0)return 0;var c=0,f=r.suspendedLanes,m=r.pingedLanes,v=a&268435455;if(v!==0){var C=v&~f;C!==0?c=Fi(C):(m&=v,m!==0&&(c=Fi(m)))}else v=a&~f,v!==0?c=Fi(v):m!==0&&(c=Fi(m));if(c===0)return 0;if(s!==0&&s!==c&&(s&f)===0&&(f=c&-c,m=s&-s,f>=m||f===16&&(m&4194240)!==0))return s;if((c&4)!==0&&(c|=a&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=c;0<s;)a=31-bn(s),f=1<<a,c|=r[a],s&=~f;return c}function yS(r,s){switch(r){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vS(r,s){for(var a=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes;0<m;){var v=31-bn(m),C=1<<v,k=f[v];k===-1?((C&a)===0||(C&c)!==0)&&(f[v]=yS(C,s)):k<=s&&(r.expiredLanes|=C),m&=~C}}function ju(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Jh(){var r=ba;return ba<<=1,(ba&4194240)===0&&(ba=64),r}function Vu(r){for(var s=[],a=0;31>a;a++)s.push(r);return s}function zi(r,s,a){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-bn(s),r[s]=a}function xS(r,s){var a=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<a;){var f=31-bn(a),m=1<<f;s[f]=0,c[f]=-1,r[f]=-1,a&=~m}}function Lu(r,s){var a=r.entangledLanes|=s;for(r=r.entanglements;a;){var c=31-bn(a),f=1<<c;f&s|r[c]&s&&(r[c]|=s),a&=~f}}var qe=0;function ep(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var tp,Fu,np,rp,sp,zu=!1,Ca=[],br=null,Tr=null,Pr=null,Bi=new Map,Ui=new Map,Cr=[],wS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ip(r,s){switch(r){case"focusin":case"focusout":br=null;break;case"dragenter":case"dragleave":Tr=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":Bi.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(s.pointerId)}}function $i(r,s,a,c,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},s!==null&&(s=ro(s),s!==null&&Fu(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),r)}function SS(r,s,a,c,f){switch(s){case"focusin":return br=$i(br,r,s,a,c,f),!0;case"dragenter":return Tr=$i(Tr,r,s,a,c,f),!0;case"mouseover":return Pr=$i(Pr,r,s,a,c,f),!0;case"pointerover":var m=f.pointerId;return Bi.set(m,$i(Bi.get(m)||null,r,s,a,c,f)),!0;case"gotpointercapture":return m=f.pointerId,Ui.set(m,$i(Ui.get(m)||null,r,s,a,c,f)),!0}return!1}function op(r){var s=ns(r.target);if(s!==null){var a=ts(s);if(a!==null){if(s=a.tag,s===13){if(s=Hh(a),s!==null){r.blockedOn=s,sp(r.priority,function(){np(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function _a(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var a=Uu(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var c=new a.constructor(a.type,a);Ii=c,a.target.dispatchEvent(c),Ii=null}else return s=ro(a),s!==null&&Fu(s),r.blockedOn=a,!1;s.shift()}return!0}function ap(r,s,a){_a(r)&&a.delete(s)}function bS(){zu=!1,br!==null&&_a(br)&&(br=null),Tr!==null&&_a(Tr)&&(Tr=null),Pr!==null&&_a(Pr)&&(Pr=null),Bi.forEach(ap),Ui.forEach(ap)}function Wi(r,s){r.blockedOn===s&&(r.blockedOn=null,zu||(zu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bS)))}function Hi(r){function s(f){return Wi(f,r)}if(0<Ca.length){Wi(Ca[0],r);for(var a=1;a<Ca.length;a++){var c=Ca[a];c.blockedOn===r&&(c.blockedOn=null)}}for(br!==null&&Wi(br,r),Tr!==null&&Wi(Tr,r),Pr!==null&&Wi(Pr,r),Bi.forEach(s),Ui.forEach(s),a=0;a<Cr.length;a++)c=Cr[a],c.blockedOn===r&&(c.blockedOn=null);for(;0<Cr.length&&(a=Cr[0],a.blockedOn===null);)op(a),a.blockedOn===null&&Cr.shift()}var Ms=F.ReactCurrentBatchConfig,Ea=!0;function TS(r,s,a,c){var f=qe,m=Ms.transition;Ms.transition=null;try{qe=1,Bu(r,s,a,c)}finally{qe=f,Ms.transition=m}}function PS(r,s,a,c){var f=qe,m=Ms.transition;Ms.transition=null;try{qe=4,Bu(r,s,a,c)}finally{qe=f,Ms.transition=m}}function Bu(r,s,a,c){if(Ea){var f=Uu(r,s,a,c);if(f===null)ic(r,s,c,ka,a),ip(r,c);else if(SS(f,r,s,a,c))c.stopPropagation();else if(ip(r,c),s&4&&-1<wS.indexOf(r)){for(;f!==null;){var m=ro(f);if(m!==null&&tp(m),m=Uu(r,s,a,c),m===null&&ic(r,s,c,ka,a),m===f)break;f=m}f!==null&&c.stopPropagation()}else ic(r,s,c,null,a)}}var ka=null;function Uu(r,s,a,c){if(ka=null,r=Rs(c),r=ns(r),r!==null)if(s=ts(r),s===null)r=null;else if(a=s.tag,a===13){if(r=Hh(s),r!==null)return r;r=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return ka=r,null}function lp(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(dS()){case Iu:return 1;case Xh:return 4;case wa:case fS:return 16;case Yh:return 536870912;default:return 16}default:return 16}}var _r=null,$u=null,Aa=null;function up(){if(Aa)return Aa;var r,s=$u,a=s.length,c,f="value"in _r?_r.value:_r.textContent,m=f.length;for(r=0;r<a&&s[r]===f[r];r++);var v=a-r;for(c=1;c<=v&&s[a-c]===f[m-c];c++);return Aa=f.slice(r,1<c?1-c:void 0)}function Na(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Ra(){return!0}function cp(){return!1}function en(r){function s(a,c,f,m,v){this._reactName=a,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var C in r)r.hasOwnProperty(C)&&(a=r[C],this[C]=a?a(m):m[C]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ra:cp,this.isPropagationStopped=cp,this}return Y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ra)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ra)},persist:function(){},isPersistent:Ra}),s}var Is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=en(Is),Ki=Y({},Is,{view:0,detail:0}),CS=en(Ki),Hu,Ku,qi,Da=Y({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==qi&&(qi&&r.type==="mousemove"?(Hu=r.screenX-qi.screenX,Ku=r.screenY-qi.screenY):Ku=Hu=0,qi=r),Hu)},movementY:function(r){return"movementY"in r?r.movementY:Ku}}),dp=en(Da),_S=Y({},Da,{dataTransfer:0}),ES=en(_S),kS=Y({},Ki,{relatedTarget:0}),qu=en(kS),AS=Y({},Is,{animationName:0,elapsedTime:0,pseudoElement:0}),NS=en(AS),RS=Y({},Is,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),DS=en(RS),OS=Y({},Is,{data:0}),fp=en(OS),MS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IS={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"},jS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VS(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=jS[r])?!!s[r]:!1}function Qu(){return VS}var LS=Y({},Ki,{key:function(r){if(r.key){var s=MS[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Na(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?IS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(r){return r.type==="keypress"?Na(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Na(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),FS=en(LS),zS=Y({},Da,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hp=en(zS),BS=Y({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),US=en(BS),$S=Y({},Is,{propertyName:0,elapsedTime:0,pseudoElement:0}),WS=en($S),HS=Y({},Da,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),KS=en(HS),qS=[9,13,27,32],Zu=d&&"CompositionEvent"in window,Qi=null;d&&"documentMode"in document&&(Qi=document.documentMode);var QS=d&&"TextEvent"in window&&!Qi,pp=d&&(!Zu||Qi&&8<Qi&&11>=Qi),mp=" ",gp=!1;function yp(r,s){switch(r){case"keyup":return qS.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var js=!1;function ZS(r,s){switch(r){case"compositionend":return vp(s);case"keypress":return s.which!==32?null:(gp=!0,mp);case"textInput":return r=s.data,r===mp&&gp?null:r;default:return null}}function GS(r,s){if(js)return r==="compositionend"||!Zu&&yp(r,s)?(r=up(),Aa=$u=_r=null,js=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return pp&&s.locale!=="ko"?null:s.data;default:return null}}var XS={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 xp(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!XS[r.type]:s==="textarea"}function wp(r,s,a,c){zh(c),s=Va(s,"onChange"),0<s.length&&(a=new Wu("onChange","change",null,a,c),r.push({event:a,listeners:s}))}var Zi=null,Gi=null;function YS(r){Lp(r,0)}function Oa(r){var s=Bs(r);if(ks(s))return r}function JS(r,s){if(r==="change")return s}var Sp=!1;if(d){var Gu;if(d){var Xu="oninput"in document;if(!Xu){var bp=document.createElement("div");bp.setAttribute("oninput","return;"),Xu=typeof bp.oninput=="function"}Gu=Xu}else Gu=!1;Sp=Gu&&(!document.documentMode||9<document.documentMode)}function Tp(){Zi&&(Zi.detachEvent("onpropertychange",Pp),Gi=Zi=null)}function Pp(r){if(r.propertyName==="value"&&Oa(Gi)){var s=[];wp(s,Gi,r,Rs(r)),Wh(YS,s)}}function e2(r,s,a){r==="focusin"?(Tp(),Zi=s,Gi=a,Zi.attachEvent("onpropertychange",Pp)):r==="focusout"&&Tp()}function t2(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Oa(Gi)}function n2(r,s){if(r==="click")return Oa(s)}function r2(r,s){if(r==="input"||r==="change")return Oa(s)}function s2(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var Tn=typeof Object.is=="function"?Object.is:s2;function Xi(r,s){if(Tn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var a=Object.keys(r),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var f=a[c];if(!h.call(s,f)||!Tn(r[f],s[f]))return!1}return!0}function Cp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function _p(r,s){var a=Cp(r);r=0;for(var c;a;){if(a.nodeType===3){if(c=r+a.textContent.length,r<=s&&c>=s)return{node:a,offset:s-r};r=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Cp(a)}}function Ep(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?Ep(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function kp(){for(var r=window,s=hn();s instanceof r.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)r=s.contentWindow;else break;s=hn(r.document)}return s}function Yu(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function i2(r){var s=kp(),a=r.focusedElem,c=r.selectionRange;if(s!==a&&a&&a.ownerDocument&&Ep(a.ownerDocument.documentElement,a)){if(c!==null&&Yu(a)){if(s=c.start,r=c.end,r===void 0&&(r=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(r,a.value.length);else if(r=(s=a.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var f=a.textContent.length,m=Math.min(c.start,f);c=c.end===void 0?m:Math.min(c.end,f),!r.extend&&m>c&&(f=c,c=m,m=f),f=_p(a,m);var v=_p(a,c);f&&v&&(r.rangeCount!==1||r.anchorNode!==f.node||r.anchorOffset!==f.offset||r.focusNode!==v.node||r.focusOffset!==v.offset)&&(s=s.createRange(),s.setStart(f.node,f.offset),r.removeAllRanges(),m>c?(r.addRange(s),r.extend(v.node,v.offset)):(s.setEnd(v.node,v.offset),r.addRange(s)))}}for(s=[],r=a;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)r=s[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var o2=d&&"documentMode"in document&&11>=document.documentMode,Vs=null,Ju=null,Yi=null,ec=!1;function Ap(r,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ec||Vs==null||Vs!==hn(c)||(c=Vs,"selectionStart"in c&&Yu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Yi&&Xi(Yi,c)||(Yi=c,c=Va(Ju,"onSelect"),0<c.length&&(s=new Wu("onSelect","select",null,s,a),r.push({event:s,listeners:c}),s.target=Vs)))}function Ma(r,s){var a={};return a[r.toLowerCase()]=s.toLowerCase(),a["Webkit"+r]="webkit"+s,a["Moz"+r]="moz"+s,a}var Ls={animationend:Ma("Animation","AnimationEnd"),animationiteration:Ma("Animation","AnimationIteration"),animationstart:Ma("Animation","AnimationStart"),transitionend:Ma("Transition","TransitionEnd")},tc={},Np={};d&&(Np=document.createElement("div").style,"AnimationEvent"in window||(delete Ls.animationend.animation,delete Ls.animationiteration.animation,delete Ls.animationstart.animation),"TransitionEvent"in window||delete Ls.transitionend.transition);function Ia(r){if(tc[r])return tc[r];if(!Ls[r])return r;var s=Ls[r],a;for(a in s)if(s.hasOwnProperty(a)&&a in Np)return tc[r]=s[a];return r}var Rp=Ia("animationend"),Dp=Ia("animationiteration"),Op=Ia("animationstart"),Mp=Ia("transitionend"),Ip=new Map,jp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Er(r,s){Ip.set(r,s),l(s,[r])}for(var nc=0;nc<jp.length;nc++){var rc=jp[nc],a2=rc.toLowerCase(),l2=rc[0].toUpperCase()+rc.slice(1);Er(a2,"on"+l2)}Er(Rp,"onAnimationEnd"),Er(Dp,"onAnimationIteration"),Er(Op,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(Mp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),u2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ji));function Vp(r,s,a){var c=r.type||"unknown-event";r.currentTarget=a,aS(c,s,void 0,r),r.currentTarget=null}function Lp(r,s){s=(s&4)!==0;for(var a=0;a<r.length;a++){var c=r[a],f=c.event;c=c.listeners;e:{var m=void 0;if(s)for(var v=c.length-1;0<=v;v--){var C=c[v],k=C.instance,V=C.currentTarget;if(C=C.listener,k!==m&&f.isPropagationStopped())break e;Vp(f,C,V),m=k}else for(v=0;v<c.length;v++){if(C=c[v],k=C.instance,V=C.currentTarget,C=C.listener,k!==m&&f.isPropagationStopped())break e;Vp(f,C,V),m=k}}}if(xa)throw r=Mu,xa=!1,Mu=null,r}function Ye(r,s){var a=s[dc];a===void 0&&(a=s[dc]=new Set);var c=r+"__bubble";a.has(c)||(Fp(s,r,2,!1),a.add(c))}function sc(r,s,a){var c=0;s&&(c|=4),Fp(a,r,c,s)}var ja="_reactListening"+Math.random().toString(36).slice(2);function eo(r){if(!r[ja]){r[ja]=!0,i.forEach(function(a){a!=="selectionchange"&&(u2.has(a)||sc(a,!1,r),sc(a,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[ja]||(s[ja]=!0,sc("selectionchange",!1,s))}}function Fp(r,s,a,c){switch(lp(s)){case 1:var f=TS;break;case 4:f=PS;break;default:f=Bu}a=f.bind(null,s,a,r),f=void 0,!Ou||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),c?f!==void 0?r.addEventListener(s,a,{capture:!0,passive:f}):r.addEventListener(s,a,!0):f!==void 0?r.addEventListener(s,a,{passive:f}):r.addEventListener(s,a,!1)}function ic(r,s,a,c,f){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var v=c.tag;if(v===3||v===4){var C=c.stateNode.containerInfo;if(C===f||C.nodeType===8&&C.parentNode===f)break;if(v===4)for(v=c.return;v!==null;){var k=v.tag;if((k===3||k===4)&&(k=v.stateNode.containerInfo,k===f||k.nodeType===8&&k.parentNode===f))return;v=v.return}for(;C!==null;){if(v=ns(C),v===null)return;if(k=v.tag,k===5||k===6){c=m=v;continue e}C=C.parentNode}}c=c.return}Wh(function(){var V=m,H=Rs(a),Q=[];e:{var $=Ip.get(r);if($!==void 0){var le=Wu,fe=r;switch(r){case"keypress":if(Na(a)===0)break e;case"keydown":case"keyup":le=FS;break;case"focusin":fe="focus",le=qu;break;case"focusout":fe="blur",le=qu;break;case"beforeblur":case"afterblur":le=qu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=dp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=ES;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=US;break;case Rp:case Dp:case Op:le=NS;break;case Mp:le=WS;break;case"scroll":le=CS;break;case"wheel":le=KS;break;case"copy":case"cut":case"paste":le=DS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=hp}var pe=(s&4)!==0,pt=!pe&&r==="scroll",O=pe?$!==null?$+"Capture":null:$;pe=[];for(var N=V,j;N!==null;){j=N;var te=j.stateNode;if(j.tag===5&&te!==null&&(j=te,O!==null&&(te=ji(N,O),te!=null&&pe.push(to(N,te,j)))),pt)break;N=N.return}0<pe.length&&($=new le($,fe,null,a,H),Q.push({event:$,listeners:pe}))}}if((s&7)===0){e:{if($=r==="mouseover"||r==="pointerover",le=r==="mouseout"||r==="pointerout",$&&a!==Ii&&(fe=a.relatedTarget||a.fromElement)&&(ns(fe)||fe[rr]))break e;if((le||$)&&($=H.window===H?H:($=H.ownerDocument)?$.defaultView||$.parentWindow:window,le?(fe=a.relatedTarget||a.toElement,le=V,fe=fe?ns(fe):null,fe!==null&&(pt=ts(fe),fe!==pt||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(le=null,fe=V),le!==fe)){if(pe=dp,te="onMouseLeave",O="onMouseEnter",N="mouse",(r==="pointerout"||r==="pointerover")&&(pe=hp,te="onPointerLeave",O="onPointerEnter",N="pointer"),pt=le==null?$:Bs(le),j=fe==null?$:Bs(fe),$=new pe(te,N+"leave",le,a,H),$.target=pt,$.relatedTarget=j,te=null,ns(H)===V&&(pe=new pe(O,N+"enter",fe,a,H),pe.target=j,pe.relatedTarget=pt,te=pe),pt=te,le&&fe)t:{for(pe=le,O=fe,N=0,j=pe;j;j=Fs(j))N++;for(j=0,te=O;te;te=Fs(te))j++;for(;0<N-j;)pe=Fs(pe),N--;for(;0<j-N;)O=Fs(O),j--;for(;N--;){if(pe===O||O!==null&&pe===O.alternate)break t;pe=Fs(pe),O=Fs(O)}pe=null}else pe=null;le!==null&&zp(Q,$,le,pe,!1),fe!==null&&pt!==null&&zp(Q,pt,fe,pe,!0)}}e:{if($=V?Bs(V):window,le=$.nodeName&&$.nodeName.toLowerCase(),le==="select"||le==="input"&&$.type==="file")var ge=JS;else if(xp($))if(Sp)ge=r2;else{ge=t2;var Se=e2}else(le=$.nodeName)&&le.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(ge=n2);if(ge&&(ge=ge(r,V))){wp(Q,ge,a,H);break e}Se&&Se(r,$,V),r==="focusout"&&(Se=$._wrapperState)&&Se.controlled&&$.type==="number"&&ga($,"number",$.value)}switch(Se=V?Bs(V):window,r){case"focusin":(xp(Se)||Se.contentEditable==="true")&&(Vs=Se,Ju=V,Yi=null);break;case"focusout":Yi=Ju=Vs=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,Ap(Q,a,H);break;case"selectionchange":if(o2)break;case"keydown":case"keyup":Ap(Q,a,H)}var be;if(Zu)e:{switch(r){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else js?yp(r,a)&&(ke="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(pp&&a.locale!=="ko"&&(js||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&js&&(be=up()):(_r=H,$u="value"in _r?_r.value:_r.textContent,js=!0)),Se=Va(V,ke),0<Se.length&&(ke=new fp(ke,r,null,a,H),Q.push({event:ke,listeners:Se}),be?ke.data=be:(be=vp(a),be!==null&&(ke.data=be)))),(be=QS?ZS(r,a):GS(r,a))&&(V=Va(V,"onBeforeInput"),0<V.length&&(H=new fp("onBeforeInput","beforeinput",null,a,H),Q.push({event:H,listeners:V}),H.data=be))}Lp(Q,s)})}function to(r,s,a){return{instance:r,listener:s,currentTarget:a}}function Va(r,s){for(var a=s+"Capture",c=[];r!==null;){var f=r,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=ji(r,a),m!=null&&c.unshift(to(r,m,f)),m=ji(r,s),m!=null&&c.push(to(r,m,f))),r=r.return}return c}function Fs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function zp(r,s,a,c,f){for(var m=s._reactName,v=[];a!==null&&a!==c;){var C=a,k=C.alternate,V=C.stateNode;if(k!==null&&k===c)break;C.tag===5&&V!==null&&(C=V,f?(k=ji(a,m),k!=null&&v.unshift(to(a,k,C))):f||(k=ji(a,m),k!=null&&v.push(to(a,k,C)))),a=a.return}v.length!==0&&r.push({event:s,listeners:v})}var c2=/\r\n?/g,d2=/\u0000|\uFFFD/g;function Bp(r){return(typeof r=="string"?r:""+r).replace(c2,`
6`).replace(d2,"")}function La(r,s,a){if(s=Bp(s),Bp(r)!==s&&a)throw Error(n(425))}function Fa(){}var oc=null,ac=null;function lc(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var uc=typeof setTimeout=="function"?setTimeout:void 0,f2=typeof clearTimeout=="function"?clearTimeout:void 0,Up=typeof Promise=="function"?Promise:void 0,h2=typeof queueMicrotask=="function"?queueMicrotask:typeof Up<"u"?function(r){return Up.resolve(null).then(r).catch(p2)}:uc;function p2(r){setTimeout(function(){throw r})}function cc(r,s){var a=s,c=0;do{var f=a.nextSibling;if(r.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(c===0){r.removeChild(f),Hi(s);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=f}while(a);Hi(s)}function kr(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function $p(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return r;s--}else a==="/$"&&s++}r=r.previousSibling}return null}var zs=Math.random().toString(36).slice(2),$n="__reactFiber$"+zs,no="__reactProps$"+zs,rr="__reactContainer$"+zs,dc="__reactEvents$"+zs,m2="__reactListeners$"+zs,g2="__reactHandles$"+zs;function ns(r){var s=r[$n];if(s)return s;for(var a=r.parentNode;a;){if(s=a[rr]||a[$n]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(r=$p(r);r!==null;){if(a=r[$n])return a;r=$p(r)}return s}r=a,a=r.parentNode}return null}function ro(r){return r=r[$n]||r[rr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Bs(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function za(r){return r[no]||null}var fc=[],Us=-1;function Ar(r){return{current:r}}function Je(r){0>Us||(r.current=fc[Us],fc[Us]=null,Us--)}function Xe(r,s){Us++,fc[Us]=r.current,r.current=s}var Nr={},Mt=Ar(Nr),Ht=Ar(!1),rs=Nr;function $s(r,s){var a=r.type.contextTypes;if(!a)return Nr;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var f={},m;
vendor: 22,707 bytes, line 6
6for(m in a)f[m]=s[m];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=f),f}function Kt(r){return r=r.childContextTypes,r!=null}function Ba(){Je(Ht),Je(Mt)}function Wp(r,s,a){if(Mt.current!==Nr)throw Error(n(168));Xe(Mt,s),Xe(Ht,a)}function Hp(r,s,a){var c=r.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var f in c)if(!(f in s))throw Error(n(108,Le(r)||"Unknown",f));return Y({},a,c)}function Ua(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Nr,rs=Mt.current,Xe(Mt,r),Xe(Ht,Ht.current),!0}function Kp(r,s,a){var c=r.stateNode;if(!c)throw Error(n(169));a?(r=Hp(r,s,rs),c.__reactInternalMemoizedMergedChildContext=r,Je(Ht),Je(Mt),Xe(Mt,r)):Je(Ht),Xe(Ht,a)}var sr=null,$a=!1,hc=!1;function qp(r){sr===null?sr=[r]:sr.push(r)}function y2(r){$a=!0,qp(r)}function Rr(){if(!hc&&sr!==null){hc=!0;var r=0,s=qe;try{var a=sr;for(qe=1;r<a.length;r++){var c=a[r];do c=c(!0);while(c!==null)}sr=null,$a=!1}catch(f){throw sr!==null&&(sr=sr.slice(r+1)),Zh(Iu,Rr),f}finally{qe=s,hc=!1}}return null}var Ws=[],Hs=0,Wa=null,Ha=0,pn=[],mn=0,ss=null,ir=1,or="";function is(r,s){Ws[Hs++]=Ha,Ws[Hs++]=Wa,Wa=r,Ha=s}function Qp(r,s,a){pn[mn++]=ir,pn[mn++]=or,pn[mn++]=ss,ss=r;var c=ir;r=or;var f=32-bn(c)-1;c&=~(1<<f),a+=1;var m=32-bn(s)+f;if(30<m){var v=f-f%5;m=(c&(1<<v)-1).toString(32),c>>=v,f-=v,ir=1<<32-bn(s)+f|a<<f|c,or=m+r}else ir=1<<m|a<<f|c,or=r}function pc(r){r.return!==null&&(is(r,1),Qp(r,1,0))}function mc(r){for(;r===Wa;)Wa=Ws[--Hs],Ws[Hs]=null,Ha=Ws[--Hs],Ws[Hs]=null;for(;r===ss;)ss=pn[--mn],pn[mn]=null,or=pn[--mn],pn[mn]=null,ir=pn[--mn],pn[mn]=null}var tn=null,nn=null,nt=!1,Pn=null;function Zp(r,s){var a=xn(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=r,s=r.deletions,s===null?(r.deletions=[a],r.flags|=16):s.push(a)}function Gp(r,s){switch(r.tag){case 5:var a=r.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,tn=r,nn=kr(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,tn=r,nn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=ss!==null?{id:ir,overflow:or}:null,r.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=xn(18,null,null,0),a.stateNode=s,a.return=r,r.child=a,tn=r,nn=null,!0):!1;default:return!1}}function gc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function yc(r){if(nt){var s=nn;if(s){var a=s;if(!Gp(r,s)){if(gc(r))throw Error(n(418));s=kr(a.nextSibling);var c=tn;s&&Gp(r,s)?Zp(c,a):(r.flags=r.flags&-4097|2,nt=!1,tn=r)}}else{if(gc(r))throw Error(n(418));r.flags=r.flags&-4097|2,nt=!1,tn=r}}}function Xp(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;tn=r}function Ka(r){if(r!==tn)return!1;if(!nt)return Xp(r),nt=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!lc(r.type,r.memoizedProps)),s&&(s=nn)){if(gc(r))throw Yp(),Error(n(418));for(;s;)Zp(r,s),s=kr(s.nextSibling)}if(Xp(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(s===0){nn=kr(r.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}r=r.nextSibling}nn=null}}else nn=tn?kr(r.stateNode.nextSibling):null;return!0}function Yp(){for(var r=nn;r;)r=kr(r.nextSibling)}function Ks(){nn=tn=null,nt=!1}function vc(r){Pn===null?Pn=[r]:Pn.push(r)}var v2=F.ReactCurrentBatchConfig;function so(r,s,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var c=a.stateNode}if(!c)throw Error(n(147,r));var f=c,m=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===m?s.ref:(s=function(v){var C=f.refs;v===null?delete C[m]:C[m]=v},s._stringRef=m,s)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function qa(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function Jp(r){var s=r._init;return s(r._payload)}function em(r){function s(O,N){if(r){var j=O.deletions;j===null?(O.deletions=[N],O.flags|=16):j.push(N)}}function a(O,N){if(!r)return null;for(;N!==null;)s(O,N),N=N.sibling;return null}function c(O,N){for(O=new Map;N!==null;)N.key!==null?O.set(N.key,N):O.set(N.index,N),N=N.sibling;return O}function f(O,N){return O=Fr(O,N),O.index=0,O.sibling=null,O}function m(O,N,j){return O.index=j,r?(j=O.alternate,j!==null?(j=j.index,j<N?(O.flags|=2,N):j):(O.flags|=2,N)):(O.flags|=1048576,N)}function v(O){return r&&O.alternate===null&&(O.flags|=2),O}function C(O,N,j,te){return N===null||N.tag!==6?(N=ud(j,O.mode,te),N.return=O,N):(N=f(N,j),N.return=O,N)}function k(O,N,j,te){var ge=j.type;return ge===X?H(O,N,j.props.children,te,j.key):N!==null&&(N.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===me&&Jp(ge)===N.type)?(te=f(N,j.props),te.ref=so(O,N,j),te.return=O,te):(te=yl(j.type,j.key,j.props,null,O.mode,te),te.ref=so(O,N,j),te.return=O,te)}function V(O,N,j,te){return N===null||N.tag!==4||N.stateNode.containerInfo!==j.containerInfo||N.stateNode.implementation!==j.implementation?(N=cd(j,O.mode,te),N.return=O,N):(N=f(N,j.children||[]),N.return=O,N)}function H(O,N,j,te,ge){return N===null||N.tag!==7?(N=hs(j,O.mode,te,ge),N.return=O,N):(N=f(N,j),N.return=O,N)}function Q(O,N,j){if(typeof N=="string"&&N!==""||typeof N=="number")return N=ud(""+N,O.mode,j),N.return=O,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case L:return j=yl(N.type,N.key,N.props,null,O.mode,j),j.ref=so(O,null,N),j.return=O,j;case K:return N=cd(N,O.mode,j),N.return=O,N;case me:var te=N._init;return Q(O,te(N._payload),j)}if(Sr(N)||ne(N))return N=hs(N,O.mode,j,null),N.return=O,N;qa(O,N)}return null}function $(O,N,j,te){var ge=N!==null?N.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return ge!==null?null:C(O,N,""+j,te);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case L:return j.key===ge?k(O,N,j,te):null;case K:return j.key===ge?V(O,N,j,te):null;case me:return ge=j._init,$(O,N,ge(j._payload),te)}if(Sr(j)||ne(j))return ge!==null?null:H(O,N,j,te,null);qa(O,j)}return null}function le(O,N,j,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return O=O.get(j)||null,C(N,O,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case L:return O=O.get(te.key===null?j:te.key)||null,k(N,O,te,ge);case K:return O=O.get(te.key===null?j:te.key)||null,V(N,O,te,ge);case me:var Se=te._init;return le(O,N,j,Se(te._payload),ge)}if(Sr(te)||ne(te))return O=O.get(j)||null,H(N,O,te,ge,null);qa(N,te)}return null}function fe(O,N,j,te){for(var ge=null,Se=null,be=N,ke=N=0,Et=null;be!==null&&ke<j.length;ke++){be.index>ke?(Et=be,be=null):Et=be.sibling;var We=$(O,be,j[ke],te);if(We===null){be===null&&(be=Et);break}r&&be&&We.alternate===null&&s(O,be),N=m(We,N,ke),Se===null?ge=We:Se.sibling=We,Se=We,be=Et}if(ke===j.length)return a(O,be),nt&&is(O,ke),ge;if(be===null){for(;ke<j.length;ke++)be=Q(O,j[ke],te),be!==null&&(N=m(be,N,ke),Se===null?ge=be:Se.sibling=be,Se=be);return nt&&is(O,ke),ge}for(be=c(O,be);ke<j.length;ke++)Et=le(be,O,ke,j[ke],te),Et!==null&&(r&&Et.alternate!==null&&be.delete(Et.key===null?ke:Et.key),N=m(Et,N,ke),Se===null?ge=Et:Se.sibling=Et,Se=Et);return r&&be.forEach(function(zr){return s(O,zr)}),nt&&is(O,ke),ge}function pe(O,N,j,te){var ge=ne(j);if(typeof ge!="function")throw Error(n(150));if(j=ge.call(j),j==null)throw Error(n(151));for(var Se=ge=null,be=N,ke=N=0,Et=null,We=j.next();be!==null&&!We.done;ke++,We=j.next()){be.index>ke?(Et=be,be=null):Et=be.sibling;var zr=$(O,be,We.value,te);if(zr===null){be===null&&(be=Et);break}r&&be&&zr.alternate===null&&s(O,be),N=m(zr,N,ke),Se===null?ge=zr:Se.sibling=zr,Se=zr,be=Et}if(We.done)return a(O,be),nt&&is(O,ke),ge;if(be===null){for(;!We.done;ke++,We=j.next())We=Q(O,We.value,te),We!==null&&(N=m(We,N,ke),Se===null?ge=We:Se.sibling=We,Se=We);return nt&&is(O,ke),ge}for(be=c(O,be);!We.done;ke++,We=j.next())We=le(be,O,ke,We.value,te),We!==null&&(r&&We.alternate!==null&&be.delete(We.key===null?ke:We.key),N=m(We,N,ke),Se===null?ge=We:Se.sibling=We,Se=We);return r&&be.forEach(function(X2){return s(O,X2)}),nt&&is(O,ke),ge}function pt(O,N,j,te){if(typeof j=="object"&&j!==null&&j.type===X&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case L:e:{for(var ge=j.key,Se=N;Se!==null;){if(Se.key===ge){if(ge=j.type,ge===X){if(Se.tag===7){a(O,Se.sibling),N=f(Se,j.props.children),N.return=O,O=N;break e}}else if(Se.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===me&&Jp(ge)===Se.type){a(O,Se.sibling),N=f(Se,j.props),N.ref=so(O,Se,j),N.return=O,O=N;break e}a(O,Se);break}else s(O,Se);Se=Se.sibling}j.type===X?(N=hs(j.props.children,O.mode,te,j.key),N.return=O,O=N):(te=yl(j.type,j.key,j.props,null,O.mode,te),te.ref=so(O,N,j),te.return=O,O=te)}return v(O);case K:e:{for(Se=j.key;N!==null;){if(N.key===Se)if(N.tag===4&&N.stateNode.containerInfo===j.containerInfo&&N.stateNode.implementation===j.implementation){a(O,N.sibling),N=f(N,j.children||[]),N.return=O,O=N;break e}else{a(O,N);break}else s(O,N);N=N.sibling}N=cd(j,O.mode,te),N.return=O,O=N}return v(O);case me:return Se=j._init,pt(O,N,Se(j._payload),te)}if(Sr(j))return fe(O,N,j,te);if(ne(j))return pe(O,N,j,te);qa(O,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,N!==null&&N.tag===6?(a(O,N.sibling),N=f(N,j),N.return=O,O=N):(a(O,N),N=ud(j,O.mode,te),N.return=O,O=N),v(O)):a(O,N)}return pt}var qs=em(!0),tm=em(!1),Qa=Ar(null),Za=null,Qs=null,xc=null;function wc(){xc=Qs=Za=null}function Sc(r){var s=Qa.current;Je(Qa),r._currentValue=s}function bc(r,s,a){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===a)break;r=r.return}}function Zs(r,s){Za=r,xc=Qs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(qt=!0),r.firstContext=null)}function gn(r){var s=r._currentValue;if(xc!==r)if(r={context:r,memoizedValue:s,next:null},Qs===null){if(Za===null)throw Error(n(308));Qs=r,Za.dependencies={lanes:0,firstContext:r}}else Qs=Qs.next=r;return s}var os=null;function Tc(r){os===null?os=[r]:os.push(r)}function nm(r,s,a,c){var f=s.interleaved;return f===null?(a.next=a,Tc(s)):(a.next=f.next,f.next=a),s.interleaved=a,ar(r,c)}function ar(r,s){r.lanes|=s;var a=r.alternate;for(a!==null&&(a.lanes|=s),a=r,r=r.return;r!==null;)r.childLanes|=s,a=r.alternate,a!==null&&(a.childLanes|=s),a=r,r=r.return;return a.tag===3?a.stateNode:null}var Dr=!1;function Pc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rm(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function lr(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function Or(r,s,a){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Be&2)!==0){var f=c.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s,ar(r,a)}return f=c.interleaved,f===null?(s.next=s,Tc(c)):(s.next=f.next,f.next=s),c.interleaved=s,ar(r,a)}function Ga(r,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var c=s.lanes;c&=r.pendingLanes,a|=c,s.lanes=a,Lu(r,a)}}function sm(r,s){var a=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var f=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var v={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?f=m=v:m=m.next=v,a=a.next}while(a!==null);m===null?f=m=s:m=m.next=s}else f=m=s;a={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:c.shared,effects:c.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=s:r.next=s,a.lastBaseUpdate=s}function Xa(r,s,a,c){var f=r.updateQueue;Dr=!1;var m=f.firstBaseUpdate,v=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var k=C,V=k.next;k.next=null,v===null?m=V:v.next=V,v=k;var H=r.alternate;H!==null&&(H=H.updateQueue,C=H.lastBaseUpdate,C!==v&&(C===null?H.firstBaseUpdate=V:C.next=V,H.lastBaseUpdate=k))}if(m!==null){var Q=f.baseState;v=0,H=V=k=null,C=m;do{var $=C.lane,le=C.eventTime;if((c&$)===$){H!==null&&(H=H.next={eventTime:le,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var fe=r,pe=C;switch($=s,le=a,pe.tag){case 1:if(fe=pe.payload,typeof fe=="function"){Q=fe.call(le,Q,$);break e}Q=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=pe.payload,$=typeof fe=="function"?fe.call(le,Q,$):fe,$==null)break e;Q=Y({},Q,$);break e;case 2:Dr=!0}}C.callback!==null&&C.lane!==0&&(r.flags|=64,$=f.effects,$===null?f.effects=[C]:$.push(C))}else le={eventTime:le,lane:$,tag:C.tag,payload:C.payload,callback:C.callback,next:null},H===null?(V=H=le,k=Q):H=H.next=le,v|=$;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;$=C,C=$.next,$.next=null,f.lastBaseUpdate=$,f.shared.pending=null}}while(!0);if(H===null&&(k=Q),f.baseState=k,f.firstBaseUpdate=V,f.lastBaseUpdate=H,s=f.shared.interleaved,s!==null){f=s;do v|=f.lane,f=f.next;while(f!==s)}else m===null&&(f.shared.lanes=0);us|=v,r.lanes=v,r.memoizedState=Q}}function im(r,s,a){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var c=r[s],f=c.callback;if(f!==null){if(c.callback=null,c=a,typeof f!="function")throw Error(n(191,f));f.call(c)}}}var io={},Wn=Ar(io),oo=Ar(io),ao=Ar(io);function as(r){if(r===io)throw Error(n(174));return r}function Cc(r,s){switch(Xe(ao,s),Xe(oo,r),Xe(Wn,io),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:xe(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=xe(s,r)}Je(Wn),Xe(Wn,s)}function Gs(){Je(Wn),Je(oo),Je(ao)}function om(r){as(ao.current);var s=as(Wn.current),a=xe(s,r.type);s!==a&&(Xe(oo,r),Xe(Wn,a))}function _c(r){oo.current===r&&(Je(Wn),Je(oo))}var rt=Ar(0);function Ya(r){for(var s=r;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ec=[];function kc(){for(var r=0;r<Ec.length;r++)Ec[r]._workInProgressVersionPrimary=null;Ec.length=0}var Ja=F.ReactCurrentDispatcher,Ac=F.ReactCurrentBatchConfig,ls=0,st=null,St=null,Ct=null,el=!1,lo=!1,uo=0,x2=0;function It(){throw Error(n(321))}function Nc(r,s){if(s===null)return!1;for(var a=0;a<s.length&&a<r.length;a++)if(!Tn(r[a],s[a]))return!1;return!0}function Rc(r,s,a,c,f,m){if(ls=m,st=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Ja.current=r===null||r.memoizedState===null?T2:P2,r=a(c,f),lo){m=0;do{if(lo=!1,uo=0,25<=m)throw Error(n(301));m+=1,Ct=St=null,s.updateQueue=null,Ja.current=C2,r=a(c,f)}while(lo)}if(Ja.current=rl,s=St!==null&&St.next!==null,ls=0,Ct=St=st=null,el=!1,s)throw Error(n(300));return r}function Dc(){var r=uo!==0;return uo=0,r}function Hn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?st.memoizedState=Ct=r:Ct=Ct.next=r,Ct}function yn(){if(St===null){var r=st.alternate;r=r!==null?r.memoizedState:null}else r=St.next;var s=Ct===null?st.memoizedState:Ct.next;if(s!==null)Ct=s,St=r;else{if(r===null)throw Error(n(310));St=r,r={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},Ct===null?st.memoizedState=Ct=r:Ct=Ct.next=r}return Ct}function co(r,s){return typeof s=="function"?s(r):s}function Oc(r){var s=yn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=St,f=c.baseQueue,m=a.pending;if(m!==null){if(f!==null){var v=f.next;f.next=m.next,m.next=v}c.baseQueue=f=m,a.pending=null}if(f!==null){m=f.next,c=c.baseState;var C=v=null,k=null,V=m;do{var H=V.lane;if((ls&H)===H)k!==null&&(k=k.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),c=V.hasEagerState?V.eagerState:r(c,V.action);else{var Q={lane:H,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};k===null?(C=k=Q,v=c):k=k.next=Q,st.lanes|=H,us|=H}V=V.next}while(V!==null&&V!==m);k===null?v=c:k.next=C,Tn(c,s.memoizedState)||(qt=!0),s.memoizedState=c,s.baseState=v,s.baseQueue=k,a.lastRenderedState=c}if(r=a.interleaved,r!==null){f=r;do m=f.lane,st.lanes|=m,us|=m,f=f.next;while(f!==r)}else f===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function Mc(r){var s=yn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=a.dispatch,f=a.pending,m=s.memoizedState;if(f!==null){a.pending=null;var v=f=f.next;do m=r(m,v.action),v=v.next;while(v!==f);Tn(m,s.memoizedState)||(qt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),a.lastRenderedState=m}return[m,c]}function am(){}function lm(r,s){var a=st,c=yn(),f=s(),m=!Tn(c.memoizedState,f);if(m&&(c.memoizedState=f,qt=!0),c=c.queue,Ic(dm.bind(null,a,c,r),[r]),c.getSnapshot!==s||m||Ct!==null&&Ct.memoizedState.tag&1){if(a.flags|=2048,fo(9,cm.bind(null,a,c,f,s),void 0,null),_t===null)throw Error(n(349));(ls&30)!==0||um(a,s,f)}return f}function um(r,s,a){r.flags|=16384,r={getSnapshot:s,value:a},s=st.updateQueue,s===null?(s={lastEffect:null,stores:null},st.updateQueue=s,s.stores=[r]):(a=s.stores,a===null?s.stores=[r]:a.push(r))}function cm(r,s,a,c){s.value=a,s.getSnapshot=c,fm(s)&&hm(r)}function dm(r,s,a){return a(function(){fm(s)&&hm(r)})}function fm(r){var s=r.getSnapshot;r=r.value;try{var a=s();return!Tn(r,a)}catch{return!0}}function hm(r){var s=ar(r,1);s!==null&&kn(s,r,1,-1)}function pm(r){var s=Hn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:co,lastRenderedState:r},s.queue=r,r=r.dispatch=b2.bind(null,st,r),[s.memoizedState,r]}function fo(r,s,a,c){return r={tag:r,create:s,destroy:a,deps:c,next:null},s=st.updateQueue,s===null?(s={lastEffect:null,stores:null},st.updateQueue=s,s.lastEffect=r.next=r):(a=s.lastEffect,a===null?s.lastEffect=r.next=r:(c=a.next,a.next=r,r.next=c,s.lastEffect=r)),r}function mm(){return yn().memoizedState}function tl(r,s,a,c){var f=Hn();st.flags|=r,f.memoizedState=fo(1|s,a,void 0,c===void 0?null:c)}function nl(r,s,a,c){var f=yn();c=c===void 0?null:c;var m=void 0;if(St!==null){var v=St.memoizedState;if(m=v.destroy,c!==null&&Nc(c,v.deps)){f.memoizedState=fo(s,a,m,c);return}}st.flags|=r,f.memoizedState=fo(1|s,a,m,c)}function gm(r,s){return tl(8390656,8,r,s)}function Ic(r,s){return nl(2048,8,r,s)}function ym(r,s){return nl(4,2,r,s)}function vm(r,s){return nl(4,4,r,s)}function xm(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function wm(r,s,a){return a=a!=null?a.concat([r]):null,nl(4,4,xm.bind(null,s,r),a)}function jc(){}function Sm(r,s){var a=yn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&Nc(s,c[1])?c[0]:(a.memoizedState=[r,s],r)}function bm(r,s){var a=yn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&Nc(s,c[1])?c[0]:(r=r(),a.memoizedState=[r,s],r)}function Tm(r,s,a){return(ls&21)===0?(r.baseState&&(r.baseState=!1,qt=!0),r.memoizedState=a):(Tn(a,s)||(a=Jh(),st.lanes|=a,us|=a,r.baseState=!0),s)}function w2(r,s){var a=qe;qe=a!==0&&4>a?a:4,r(!0);var c=Ac.transition;Ac.transition={};try{r(!1),s()}finally{qe=a,Ac.transition=c}}function Pm(){return yn().memoizedState}function S2(r,s,a){var c=Vr(r);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},Cm(r))_m(s,a);else if(a=nm(r,s,a,c),a!==null){var f=Ut();kn(a,r,c,f),Em(a,s,c)}}function b2(r,s,a){var c=Vr(r),f={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cm(r))_m(s,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var v=s.lastRenderedState,C=m(v,a);if(f.hasEagerState=!0,f.eagerState=C,Tn(C,v)){var k=s.interleaved;k===null?(f.next=f,Tc(s)):(f.next=k.next,k.next=f),s.interleaved=f;return}}catch{}a=nm(r,s,f,c),a!==null&&(f=Ut(),kn(a,r,c,f),Em(a,s,c))}}function Cm(r){var s=r.alternate;return r===st||s!==null&&s===st}function _m(r,s){lo=el=!0;var a=r.pending;a===null?s.next=s:(s.next=a.next,a.next=s),r.pending=s}function Em(r,s,a){if((a&4194240)!==0){var c=s.lanes;c&=r.pendingLanes,a|=c,s.lanes=a,Lu(r,a)}}var rl={readContext:gn,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},T2={readContext:gn,useCallback:function(r,s){return Hn().memoizedState=[r,s===void 0?null:s],r},useContext:gn,useEffect:gm,useImperativeHandle:function(r,s,a){return a=a!=null?a.concat([r]):null,tl(4194308,4,xm.bind(null,s,r),a)},useLayoutEffect:function(r,s){return tl(4194308,4,r,s)},useInsertionEffect:function(r,s){return tl(4,2,r,s)},useMemo:function(r,s){var a=Hn();return s=s===void 0?null:s,r=r(),a.memoizedState=[r,s],r},useReducer:function(r,s,a){var c=Hn();return s=a!==void 0?a(s):s,c.memoizedState=c.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},c.queue=r,r=r.dispatch=S2.bind(null,st,r),[c.memoizedState,r]},useRef:function(r){var s=Hn();return r={current:r},s.memoizedState=r},useState:pm,useDebugValue:jc,useDeferredValue:function(r){return Hn().memoizedState=r},useTransition:function(){var r=pm(!1),s=r[0];return r=w2.bind(null,r[1]),Hn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,a){var c=st,f=Hn();if(nt){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),_t===null)throw Error(n(349));(ls&30)!==0||um(c,s,a)}f.memoizedState=a;var m={value:a,getSnapshot:s};return f.queue=m,gm(dm.bind(null,c,m,r),[r]),c.flags|=2048,fo(9,cm.bind(null,c,m,a,s),void 0,null),a},useId:function(){var r=Hn(),s=_t.identifierPrefix;if(nt){var a=or,c=ir;a=(c&~(1<<32-bn(c)-1)).toString(32)+a,s=":"+s+"R"+a,a=uo++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=x2++,s=":"+s+"r"+a.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},P2={readContext:gn,useCallback:Sm,useContext:gn,useEffect:Ic,useImperativeHandle:wm,useInsertionEffect:ym,useLayoutEffect:vm,useMemo:bm,useReducer:Oc,useRef
vendor: 4,177 bytes, lines 6-8
6:mm,useState:function(){return Oc(co)},useDebugValue:jc,useDeferredValue:function(r){var s=yn();return Tm(s,St.memoizedState,r)},useTransition:function(){var r=Oc(co)[0],s=yn().memoizedState;return[r,s]},useMutableSource:am,useSyncExternalStore:lm,useId:Pm,unstable_isNewReconciler:!1},C2={readContext:gn,useCallback:Sm,useContext:gn,useEffect:Ic,useImperativeHandle:wm,useInsertionEffect:ym,useLayoutEffect:vm,useMemo:bm,useReducer:Mc,useRef:mm,useState:function(){return Mc(co)},useDebugValue:jc,useDeferredValue:function(r){var s=yn();return St===null?s.memoizedState=r:Tm(s,St.memoizedState,r)},useTransition:function(){var r=Mc(co)[0],s=yn().memoizedState;return[r,s]},useMutableSource:am,useSyncExternalStore:lm,useId:Pm,unstable_isNewReconciler:!1};function Cn(r,s){if(r&&r.defaultProps){s=Y({},s),r=r.defaultProps;for(var a in r)s[a]===void 0&&(s[a]=r[a]);return s}return s}function Vc(r,s,a,c){s=r.memoizedState,a=a(c,s),a=a==null?s:Y({},s,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var sl={isMounted:function(r){return(r=r._reactInternals)?ts(r)===r:!1},enqueueSetState:function(r,s,a){r=r._reactInternals;var c=Ut(),f=Vr(r),m=lr(c,f);m.payload=s,a!=null&&(m.callback=a),s=Or(r,m,f),s!==null&&(kn(s,r,f,c),Ga(s,r,f))},enqueueReplaceState:function(r,s,a){r=r._reactInternals;var c=Ut(),f=Vr(r),m=lr(c,f);m.tag=1,m.payload=s,a!=null&&(m.callback=a),s=Or(r,m,f),s!==null&&(kn(s,r,f,c),Ga(s,r,f))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var a=Ut(),c=Vr(r),f=lr(a,c);f.tag=2,s!=null&&(f.callback=s),s=Or(r,f,c),s!==null&&(kn(s,r,c,a),Ga(s,r,c))}};function km(r,s,a,c,f,m,v){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,v):s.prototype&&s.prototype.isPureReactComponent?!Xi(a,c)||!Xi(f,m):!0}function Am(r,s,a){var c=!1,f=Nr,m=s.contextType;return typeof m=="object"&&m!==null?m=gn(m):(f=Kt(s)?rs:Mt.current,c=s.contextTypes,m=(c=c!=null)?$s(r,f):Nr),s=new s(a,m),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=sl,r.stateNode=s,s._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=f,r.__reactInternalMemoizedMaskedChildContext=m),s}function Nm(r,s,a,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==r&&sl.enqueueReplaceState(s,s.state,null)}function Lc(r,s,a,c){var f=r.stateNode;f.props=a,f.state=r.memoizedState,f.refs={},Pc(r);var m=s.contextType;typeof m=="object"&&m!==null?f.context=gn(m):(m=Kt(s)?rs:Mt.current,f.context=$s(r,m)),f.state=r.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(Vc(r,s,m,a),f.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(s=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),s!==f.state&&sl.enqueueReplaceState(f,f.state,null),Xa(r,a,f,c),f.state=r.memoizedState),typeof f.componentDidMount=="function"&&(r.flags|=4194308)}function Xs(r,s){try{var a="",c=s;do a+=je(c),c=c.return;while(c);var f=a}catch(m){f=`
7Error generating stack: `+m.message+`
8`+m.stack}return{value:r,source:s,stack:f,digest:null}}function Fc(r,s,a){return{value:r,source:null,stack:a??null,digest:s??null}}function zc(r,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var _2=typeof WeakMap=="function"?WeakMap:Map;function Rm(r,s,a){a=lr(-1,a),a.tag=3,a.payload={element:null};var c=s.value;return a.callback=function(){dl||(dl=!0,td=c),zc(r,s)},a}function Dm(r,s,a){a=lr(-1,a),a.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var f=s.value;a.payload=function(){return c(f)},a.callback=function(){zc(r,s)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){zc(r,s),typeof c!="function"&&(Ir===null?Ir=new Set([this]):Ir.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})}),a}
vendor: 10,825 bytes, line 8
8function Om(r,s,a){var c=r.pingCache;if(c===null){c=r.pingCache=new _2;var f=new Set;c.set(s,f)}else f=c.get(s),f===void 0&&(f=new Set,c.set(s,f));f.has(a)||(f.add(a),r=z2.bind(null,r,s,a),s.then(r,r))}function Mm(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Im(r,s,a,c,f){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=lr(-1,1),s.tag=2,Or(a,s,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=f,r)}var E2=F.ReactCurrentOwner,qt=!1;function Bt(r,s,a,c){s.child=r===null?tm(s,null,a,c):qs(s,r.child,a,c)}function jm(r,s,a,c,f){a=a.render;var m=s.ref;return Zs(s,f),c=Rc(r,s,a,c,m,f),a=Dc(),r!==null&&!qt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,ur(r,s,f)):(nt&&a&&pc(s),s.flags|=1,Bt(r,s,c,f),s.child)}function Vm(r,s,a,c,f){if(r===null){var m=a.type;return typeof m=="function"&&!ld(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=m,Lm(r,s,m,c,f)):(r=yl(a.type,null,c,s,s.mode,f),r.ref=s.ref,r.return=s,s.child=r)}if(m=r.child,(r.lanes&f)===0){var v=m.memoizedProps;if(a=a.compare,a=a!==null?a:Xi,a(v,c)&&r.ref===s.ref)return ur(r,s,f)}return s.flags|=1,r=Fr(m,c),r.ref=s.ref,r.return=s,s.child=r}function Lm(r,s,a,c,f){if(r!==null){var m=r.memoizedProps;if(Xi(m,c)&&r.ref===s.ref)if(qt=!1,s.pendingProps=c=m,(r.lanes&f)!==0)(r.flags&131072)!==0&&(qt=!0);else return s.lanes=r.lanes,ur(r,s,f)}return Bc(r,s,a,c,f)}function Fm(r,s,a){var c=s.pendingProps,f=c.children,m=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Js,rn),rn|=a;else{if((a&1073741824)===0)return r=m!==null?m.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Xe(Js,rn),rn|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:a,Xe(Js,rn),rn|=c}else m!==null?(c=m.baseLanes|a,s.memoizedState=null):c=a,Xe(Js,rn),rn|=c;return Bt(r,s,f,a),s.child}function zm(r,s){var a=s.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(s.flags|=512,s.flags|=2097152)}function Bc(r,s,a,c,f){var m=Kt(a)?rs:Mt.current;return m=$s(s,m),Zs(s,f),a=Rc(r,s,a,c,m,f),c=Dc(),r!==null&&!qt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,ur(r,s,f)):(nt&&c&&pc(s),s.flags|=1,Bt(r,s,a,f),s.child)}function Bm(r,s,a,c,f){if(Kt(a)){var m=!0;Ua(s)}else m=!1;if(Zs(s,f),s.stateNode===null)ol(r,s),Am(s,a,c),Lc(s,a,c,f),c=!0;else if(r===null){var v=s.stateNode,C=s.memoizedProps;v.props=C;var k=v.context,V=a.contextType;typeof V=="object"&&V!==null?V=gn(V):(V=Kt(a)?rs:Mt.current,V=$s(s,V));var H=a.getDerivedStateFromProps,Q=typeof H=="function"||typeof v.getSnapshotBeforeUpdate=="function";Q||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C!==c||k!==V)&&Nm(s,v,c,V),Dr=!1;var $=s.memoizedState;v.state=$,Xa(s,c,v,f),k=s.memoizedState,C!==c||$!==k||Ht.current||Dr?(typeof H=="function"&&(Vc(s,a,H,c),k=s.memoizedState),(C=Dr||km(s,a,C,c,$,k,V))?(Q||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(s.flags|=4194308)):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=k),v.props=c,v.state=k,v.context=V,c=C):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{v=s.stateNode,rm(r,s),C=s.memoizedProps,V=s.type===s.elementType?C:Cn(s.type,C),v.props=V,Q=s.pendingProps,$=v.context,k=a.contextType,typeof k=="object"&&k!==null?k=gn(k):(k=Kt(a)?rs:Mt.current,k=$s(s,k));var le=a.getDerivedStateFromProps;(H=typeof le=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C!==Q||$!==k)&&Nm(s,v,c,k),Dr=!1,$=s.memoizedState,v.state=$,Xa(s,c,v,f);var fe=s.memoizedState;C!==Q||$!==fe||Ht.current||Dr?(typeof le=="function"&&(Vc(s,a,le,c),fe=s.memoizedState),(V=Dr||km(s,a,V,c,$,fe,k)||!1)?(H||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(c,fe,k),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(c,fe,k)),typeof v.componentDidUpdate=="function"&&(s.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof v.componentDidUpdate!="function"||C===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=fe),v.props=c,v.state=fe,v.context=k,c=V):(typeof v.componentDidUpdate!="function"||C===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),c=!1)}return Uc(r,s,a,c,m,f)}function Uc(r,s,a,c,f,m){zm(r,s);var v=(s.flags&128)!==0;if(!c&&!v)return f&&Kp(s,a,!1),ur(r,s,m);c=s.stateNode,E2.current=s;var C=v&&typeof a.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,r!==null&&v?(s.child=qs(s,r.child,null,m),s.child=qs(s,null,C,m)):Bt(r,s,C,m),s.memoizedState=c.state,f&&Kp(s,a,!0),s.child}function Um(r){var s=r.stateNode;s.pendingContext?Wp(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Wp(r,s.context,!1),Cc(r,s.containerInfo)}function $m(r,s,a,c,f){return Ks(),vc(f),s.flags|=256,Bt(r,s,a,c),s.child}var $c={dehydrated:null,treeContext:null,retryLane:0};function Wc(r){return{baseLanes:r,cachePool:null,transitions:null}}function Wm(r,s,a){var c=s.pendingProps,f=rt.current,m=!1,v=(s.flags&128)!==0,C;if((C=v)||(C=r!==null&&r.memoizedState===null?!1:(f&2)!==0),C?(m=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(f|=1),Xe(rt,f&1),r===null)return yc(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(v=c.children,r=c.fallback,m?(c=s.mode,m=s.child,v={mode:"hidden",children:v},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=v):m=vl(v,c,0,null),r=hs(r,c,a,null),m.return=s,r.return=s,m.sibling=r,s.child=m,s.child.memoizedState=Wc(a),s.memoizedState=$c,r):Hc(s,v));if(f=r.memoizedState,f!==null&&(C=f.dehydrated,C!==null))return k2(r,s,v,c,C,f,a);if(m){m=c.fallback,v=s.mode,f=r.child,C=f.sibling;var k={mode:"hidden",children:c.children};return(v&1)===0&&s.child!==f?(c=s.child,c.childLanes=0,c.pendingProps=k,s.deletions=null):(c=Fr(f,k),c.subtreeFlags=f.subtreeFlags&14680064),C!==null?m=Fr(C,m):(m=hs(m,v,a,null),m.flags|=2),m.return=s,c.return=s,c.sibling=m,s.child=c,c=m,m=s.child,v=r.child.memoizedState,v=v===null?Wc(a):{baseLanes:v.baseLanes|a,cachePool:null,transitions:v.transitions},m.memoizedState=v,m.childLanes=r.childLanes&~a,s.memoizedState=$c,c}return m=r.child,r=m.sibling,c=Fr(m,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=a),c.return=s,c.sibling=null,r!==null&&(a=s.deletions,a===null?(s.deletions=[r],s.flags|=16):a.push(r)),s.child=c,s.memoizedState=null,c}function Hc(r,s){return s=vl({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function il(r,s,a,c){return c!==null&&vc(c),qs(s,r.child,null,a),r=Hc(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function k2(r,s,a,c,f,m,v){if(a)return s.flags&256?(s.flags&=-257,c=Fc(Error(n(422))),il(r,s,v,c)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(m=c.fallback,f=s.mode,c=vl({mode:"visible",children:c.children},f,0,null),m=hs(m,f,v,null),m.flags|=2,c.return=s,m.return=s,c.sibling=m,s.child=c,(s.mode&1)!==0&&qs(s,r.child,null,v),s.child.memoizedState=Wc(v),s.memoizedState=$c,m);if((s.mode&1)===0)return il(r,s,v,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var C=c.dgst;return c=C,m=Error(n(419)),c=Fc(m,c,void 0),il(r,s,v,c)}if(C=(v&r.childLanes)!==0,qt||C){if(c=_t,c!==null){switch(v&-v){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(c.suspendedLanes|v))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,ar(r,f),kn(c,r,f,-1))}return ad(),c=Fc(Error(n(421))),il(r,s,v,c)}return f.data==="$?"?(s.flags|=128,s.child=r.child,s=B2.bind(null,r),f._reactRetry=s,null):(r=m.treeContext,nn=kr(f.nextSibling),tn=s,nt=!0,Pn=null,r!==null&&(pn[mn++]=ir,pn[mn++]=or,pn[mn++]=ss,ir=r.id,or=r.overflow,ss=s),s=Hc(s,c.children),s.flags|=4096,s)}function Hm(r,s,a){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),bc(r.return,s,a)}function Kc(r,s,a,c,f){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:f}:(m.isBackwards=s,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=a,m.tailMode=f)}function Km(r,s,a){var c=s.pendingProps,f=c.revealOrder,m=c.tail;if(Bt(r,s,c.children,a),c=rt.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hm(r,a,s);else if(r.tag===19)Hm(r,a,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Xe(rt,c),(s.mode&1)===0)s.memoizedState=null;else switch(f){case"forwards":for(a=s.child,f=null;a!==null;)r=a.alternate,r!==null&&Ya(r)===null&&(f=a),a=a.sibling;a=f,a===null?(f=s.child,s.child=null):(f=a.sibling,a.sibling=null),Kc(s,!1,f,a,m);break;case"backwards":for(a=null,f=s.child,s.child=null;f!==null;){if(r=f.alternate,r!==null&&Ya(r)===null){s.child=f;break}r=f.sibling,f.sibling=a,a=f,f=r}Kc(s,!0,a,null,m);break;case"together":Kc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ol(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function ur(r,s,a){if(r!==null&&(s.dependencies=r.dependencies),us|=s.lanes,(a&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,a=Fr(r,r.pendingProps),s.child=a,a.return=s;r.sibling!==null;)r=r.sibling,a=a.sibling=Fr(r,r.pendingProps),a.return=s;a.sibling=null}return s.child}function A2(r,s,a){switch(s.tag){case 3:Um(s),Ks();break;case 5:om(s);break;case 1:Kt(s.type)&&Ua(s);break;case 4:Cc(s,s.stateNode.containerInfo);break;
vendor: 5,112 bytes, line 8
8case 10:var c=s.type._context,f=s.memoizedProps.value;Xe(Qa,c._currentValue),c._currentValue=f;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Xe(rt,rt.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?Wm(r,s,a):(Xe(rt,rt.current&1),r=ur(r,s,a),r!==null?r.sibling:null);Xe(rt,rt.current&1);break;case 19:if(c=(a&s.childLanes)!==0,(r.flags&128)!==0){if(c)return Km(r,s,a);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Xe(rt,rt.current),c)break;return null;case 22:case 23:return s.lanes=0,Fm(r,s,a)}return ur(r,s,a)}var qm,qc,Qm,Zm;qm=function(r,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},qc=function(){},Qm=function(r,s,a,c){var f=r.memoizedProps;if(f!==c){r=s.stateNode,as(Wn.current);var m=null;switch(a){case"input":f=Ai(r,f),c=Ai(r,c),m=[];break;case"select":f=Y({},f,{value:void 0}),c=Y({},c,{value:void 0}),m=[];break;case"textarea":f=M(r,f),c=M(r,c),m=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Fa)}Mi(a,c);var v;a=null;for(V in f)if(!c.hasOwnProperty(V)&&f.hasOwnProperty(V)&&f[V]!=null)if(V==="style"){var C=f[V];for(v in C)C.hasOwnProperty(v)&&(a||(a={}),a[v]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(o.hasOwnProperty(V)?m||(m=[]):(m=m||[]).push(V,null));for(V in c){var k=c[V];if(C=f?.[V],c.hasOwnProperty(V)&&k!==C&&(k!=null||C!=null))if(V==="style")if(C){for(v in C)!C.hasOwnProperty(v)||k&&k.hasOwnProperty(v)||(a||(a={}),a[v]="");for(v in k)k.hasOwnProperty(v)&&C[v]!==k[v]&&(a||(a={}),a[v]=k[v])}else a||(m||(m=[]),m.push(V,a)),a=k;else V==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,C=C?C.__html:void 0,k!=null&&C!==k&&(m=m||[]).push(V,k)):V==="children"?typeof k!="string"&&typeof k!="number"||(m=m||[]).push(V,""+k):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(o.hasOwnProperty(V)?(k!=null&&V==="onScroll"&&Ye("scroll",r),m||C===k||(m=[])):(m=m||[]).push(V,k))}a&&(m=m||[]).push("style",a);var V=m;(s.updateQueue=V)&&(s.flags|=4)}},Zm=function(r,s,a,c){a!==c&&(s.flags|=4)};function ho(r,s){if(!nt)switch(r.tailMode){case"hidden":s=r.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function jt(r){var s=r.alternate!==null&&r.alternate.child===r.child,a=0,c=0;if(s)for(var f=r.child;f!==null;)a|=f.lanes|f.childLanes,c|=f.subtreeFlags&14680064,c|=f.flags&14680064,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)a|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=c,r.childLanes=a,s}function N2(r,s,a){var c=s.pendingProps;switch(mc(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(s),null;case 1:return Kt(s.type)&&Ba(),jt(s),null;case 3:return c=s.stateNode,Gs(),Je(Ht),Je(Mt),kc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Ka(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Pn!==null&&(sd(Pn),Pn=null))),qc(r,s),jt(s),null;case 5:_c(s);var f=as(ao.current);if(a=s.type,r!==null&&s.stateNode!=null)Qm(r,s,a,c,f),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return jt(s),null}if(r=as(Wn.current),Ka(s)){c=s.stateNode,a=s.type;var m=s.memoizedProps;switch(c[$n]=s,c[no]=m,r=(s.mode&1)!==0,a){case"dialog":Ye("cancel",c),Ye("close",c);break;case"iframe":case"object":case"embed":Ye("load",c);break;case"video":case"audio":for(f=0;f<Ji.length;f++)Ye(Ji[f],c);break;case"source":Ye("error",c);break;case"img":case"image":case"link":Ye("error",c),Ye("load",c);break;case"details":Ye("toggle",c);break;case"input":Ni(c,m),Ye("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Ye("invalid",c);break;case"textarea":z(c,m),Ye("invalid",c)}Mi(a,m),f=null;for(var v in m)if(m.hasOwnProperty(v)){var C=m[v];v==="children"?typeof C=="string"?c.textContent!==C&&(m.suppressHydrationWarning!==!0&&La(c.textContent,C,r),f=["children",C]):typeof C=="number"&&c.textContent!==""+C&&(m.suppressHydrationWarning!==!0&&La(c.textContent,C,r),f=["children",""+C]):o.hasOwnProperty(v)&&C!=null&&v==="onScroll"&&Ye("scroll",c)}switch(a){case"input":zn(c),ma(c,m,!0);break;case"textarea":zn(c),re(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Fa)}c=f,s.updateQueue=c,c!==null&&(s.flags|=4)}else{v=f.nodeType===9?f:f.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=ee(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=v.createElement("div"),r.innerHTML="<script><\/script>
8",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=v.createElement(a,{is:c.is}):(r=v.createElement(a),a==="select"&&(v=r,c.multiple?v.multiple=!0:c.size&&(v.size=c.size))):r=v.createElementNS(r,a),r[$n]=s,r[no]=c,qm(r,s,!1,!1),s.stateNode=r;e:{switch(v=Ns(a,c),a){case"dialog":Ye("cancel",r),Ye("close",r),f=c;break;case"iframe":case"object":case"embed":Ye("load",r),f=c;break;case"video":case"audio":for(f=0;f<Ji.length;f++)Ye(Ji[f],r);f=c;break;case"source":Ye("error",r),f=c;break;case"img":case"image":case"link":Ye("error",r),Ye("load",r),f=c;break;case"details":Ye("toggle",r),f=c;break;case"input":Ni(r,c),f=Ai(r,c),Ye("invalid",r);break;case"option":f=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},f=Y({},c,{value:void 0}),Ye("invalid",r);break;case"textarea":z(r,c),f=M(r,c),Ye("invalid",r);break;default:f=c}Mi(a,f),C=f;for(m in C)if(C.hasOwnProperty(m)){var k=C[m];m==="style"?As(r,k):m==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&$e(r,k)):m==="children"?typeof k=="string"?(a!=="textarea"||k!=="")&&ft(r,k):typeof k=="number"&&ft(r,""+k):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(o.hasOwnProperty(m)?k!=null&&m==="onScroll"&&Ye("scroll",r):k!=null&&I(r,m,k,v))}switch(a){case"input":zn(r),ma(r,c,!1);break;case"textarea":zn(r),re(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Ve(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?E(r,!!c.multiple,m,!1):c.defaultValue!=null&&E(r,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(r.onclick=Fa)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return jt(s),null;case 6:if(r&&s.stateNode!=null)Zm(r,s,r.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(a=as(ao.current),as(Wn.current),Ka(s)){if(c=s.stateNode,a=s.memoizedProps,c[$n]=s,(m=c.nodeValue!==a)&&(r=tn,r!==null))switch(r.tag){case 3:La(c.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&La(c.nodeValue,a,(r.mode&1)!==0)}m&&(s.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[$n]=s,s.stateNode=c}return jt(s),null;case 13:if(Je(rt),c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(nt&&nn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Yp(),Ks(),s.flags|=98560,m=!1;else if(m=Ka(s),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[$n]=s}else Ks(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;jt(s),m=!1}else Pn!==null&&(sd(Pn),Pn=null),m=!0;if(!m)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(rt.current&1)!==0?bt===0&&(bt=3):ad())),s.updateQueue!==null&&(s.flags|=4),jt(s),null);case 4:return Gs(),qc(r,s),r===null&&eo(s.stateNode.containerInfo),jt(s),null;case 10:return Sc(s.type._context),jt(s),null;case 17:return Kt(s.type)&&Ba(),jt(s),null;case 19:if(Je(rt),m=s.memoizedState,m===null)return jt(s),null;if(c=(s.flags&128)!==0,v=m.rendering,v===null)if(c)ho(m,!1);else{if(bt!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(v=Ya(r),v!==null){for(s.flags|=128,ho(m,!1),c=v.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=a,a=s.child;a!==null;)m=a,r=c,m.flags&=14680066,v=m.alternate,v===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=v.childLanes,m.lanes=v.lanes,m.child=v.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=v.memoizedProps,m.memoizedState=v.memoizedState,m.updateQueue=v.updateQueue,m.type=v.type,r=v.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Xe(rt,rt.current&1|2),s.child}r=r.sibling}m.tail!==null&&ht()>ei&&(s.flags|=128,c=!0,ho(m,!1),s.lanes=4194304)}else{if(!c)if(r=Ya(v),r!==null){if(s.flags|=128,c=!0,a=r.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),ho(m,!0),m.tail===null&&m.tailMode==="hidden"&&!v.alternate&&!nt)return jt(s),null}else 2*ht()-m.renderingStartTime>ei&&a!==1073741824&&(s.flags|=128,c=!0,ho(m,!1),s.lanes=4194304);m.isBackwards?(v.sibling=s.child,s.child=v):(a=m.last,a!==null?a.sibling=v:s.child=v,m.last=v)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=ht(),s.sibling=null,a=rt.current,Xe(rt,c?a&1|2:a&1),s):(jt(s),null);case 22:case 23:return od(),c=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(rn&1073741824)!==0&&(jt(s),s.subtreeFlags&6&&(s.flags|=8192)):jt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function R2(r,s){switch(mc(s),s.tag){case 1:return Kt(s.type)&&Ba(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Gs(),Je(Ht),Je(Mt),kc(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return _c(s),null;case 13:if(Je(rt),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Ks()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return Je(rt),null;case 4:return Gs(),null;case 10:return Sc(s.type._context),null;case 22:case 23:return od(),null;case 24:return null;default:return null}}var al=!1,Vt=!1,D2=typeof WeakSet=="function"?WeakSet:Set,de=null;function Ys(r,s){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){ut(r,s,c)}else a.current=null}function Qc(r,s,a){try{a()}catch(c){ut(r,s,c)}}var Gm=!1;function O2(r,s){if(oc=Ea,r=kp(),Yu(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();
vendor: 4,206 bytes, line 8
8if(c&&c.rangeCount!==0){a=c.anchorNode;var f=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var v=0,C=-1,k=-1,V=0,H=0,Q=r,$=null;t:for(;;){for(var le;Q!==a||f!==0&&Q.nodeType!==3||(C=v+f),Q!==m||c!==0&&Q.nodeType!==3||(k=v+c),Q.nodeType===3&&(v+=Q.nodeValue.length),(le=Q.firstChild)!==null;)$=Q,Q=le;for(;;){if(Q===r)break t;if($===a&&++V===f&&(C=v),$===m&&++H===c&&(k=v),(le=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=le}a=C===-1||k===-1?null:{start:C,end:k}}else a=null}a=a||{start:0,end:0}}else a=null;for(ac={focusedElem:r,selectionRange:a},Ea=!1,de=s;de!==null;)if(s=de,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,de=r;else for(;de!==null;){s=de;try{var fe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var pe=fe.memoizedProps,pt=fe.memoizedState,O=s.stateNode,N=O.getSnapshotBeforeUpdate(s.elementType===s.type?pe:Cn(s.type,pe),pt);O.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var j=s.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(te){ut(s,s.return,te)}if(r=s.sibling,r!==null){r.return=s.return,de=r;break}de=s.return}return fe=Gm,Gm=!1,fe}function po(r,s,a){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&r)===r){var m=f.destroy;f.destroy=void 0,m!==void 0&&Qc(s,a,m)}f=f.next}while(f!==c)}}function ll(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&r)===r){var c=a.create;a.destroy=c()}a=a.next}while(a!==s)}}function Zc(r){var s=r.ref;if(s!==null){var a=r.stateNode;r.tag,r=a,typeof s=="function"?s(r):s.current=r}}function Xm(r){var s=r.alternate;s!==null&&(r.alternate=null,Xm(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[$n],delete s[no],delete s[dc],delete s[m2],delete s[g2])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Ym(r){return r.tag===5||r.tag===3||r.tag===4}function Jm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Ym(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Gc(r,s,a){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(r,s):a.insertBefore(r,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(r,a)):(s=a,s.appendChild(r)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=Fa));else if(c!==4&&(r=r.child,r!==null))for(Gc(r,s,a),r=r.sibling;r!==null;)Gc(r,s,a),r=r.sibling}function Xc(r,s,a){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?a.insertBefore(r,s):a.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Xc(r,s,a),r=r.sibling;r!==null;)Xc(r,s,a),r=r.sibling}var At=null,_n=!1;function Mr(r,s,a){for(a=a.child;a!==null;)eg(r,s,a),a=a.sibling}function eg(r,s,a){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(Sa,a)}catch{}switch(a.tag){case 5:Vt||Ys(a,s);case 6:var c=At,f=_n;At=null,Mr(r,s,a),At=c,_n=f,At!==null&&(_n?(r=At,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):At.removeChild(a.stateNode));break;case 18:At!==null&&(_n?(r=At,a=a.stateNode,r.nodeType===8?cc(r.parentNode,a):r.nodeType===1&&cc(r,a),Hi(r)):cc(At,a.stateNode));break;case 4:c=At,f=_n,At=a.stateNode.containerInfo,_n=!0,Mr(r,s,a),At=c,_n=f;break;case 0:case 11:case 14:case 15:if(!Vt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var m=f,v=m.destroy;m=m.tag,v!==void 0&&((m&2)!==0||(m&4)!==0)&&Qc(a,s,v),f=f.next}while(f!==c)}Mr(r,s,a);break;case 1:if(!Vt&&(Ys(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(C){ut(a,s,C)}Mr(r,s,a);break;case 21:Mr(r,s,a);break;case 22:a.mode&1?(Vt=(c=Vt)||a.memoizedState!==null,Mr(r,s,a),Vt=c):Mr(r,s,a);break;
vendor: 13,540 bytes, line 8
8default:Mr(r,s,a)}}function tg(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new D2),s.forEach(function(c){var f=U2.bind(null,r,c);a.has(c)||(a.add(c),c.then(f,f))})}}function En(r,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var f=a[c];try{var m=r,v=s,C=v;e:for(;C!==null;){switch(C.tag){case 5:At=C.stateNode,_n=!1;break e;case 3:At=C.stateNode.containerInfo,_n=!0;break e;case 4:At=C.stateNode.containerInfo,_n=!0;break e}C=C.return}if(At===null)throw Error(n(160));eg(m,v,f),At=null,_n=!1;var k=f.alternate;k!==null&&(k.return=null),f.return=null}catch(V){ut(f,s,V)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)ng(s,r),s=s.sibling}function ng(r,s){var a=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(En(s,r),Kn(r),c&4){try{po(3,r,r.return),ll(3,r)}catch(pe){ut(r,r.return,pe)}try{po(5,r,r.return)}catch(pe){ut(r,r.return,pe)}}break;case 1:En(s,r),Kn(r),c&512&&a!==null&&Ys(a,a.return);break;case 5:if(En(s,r),Kn(r),c&512&&a!==null&&Ys(a,a.return),r.flags&32){var f=r.stateNode;try{ft(f,"")}catch(pe){ut(r,r.return,pe)}}if(c&4&&(f=r.stateNode,f!=null)){var m=r.memoizedProps,v=a!==null?a.memoizedProps:m,C=r.type,k=r.updateQueue;if(r.updateQueue=null,k!==null)try{C==="input"&&m.type==="radio"&&m.name!=null&&Ri(f,m),Ns(C,v);var V=Ns(C,m);for(v=0;v<k.length;v+=2){var H=k[v],Q=k[v+1];H==="style"?As(f,Q):H==="dangerouslySetInnerHTML"?$e(f,Q):H==="children"?ft(f,Q):I(f,H,Q,V)}switch(C){case"input":Di(f,m);break;case"textarea":oe(f,m);break;case"select":var $=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var le=m.value;le!=null?E(f,!!m.multiple,le,!1):$!==!!m.multiple&&(m.defaultValue!=null?E(f,!!m.multiple,m.defaultValue,!0):E(f,!!m.multiple,m.multiple?[]:"",!1))}f[no]=m}catch(pe){ut(r,r.return,pe)}}break;case 6:if(En(s,r),Kn(r),c&4){if(r.stateNode===null)throw Error(n(162));f=r.stateNode,m=r.memoizedProps;try{f.nodeValue=m}catch(pe){ut(r,r.return,pe)}}break;case 3:if(En(s,r),Kn(r),c&4&&a!==null&&a.memoizedState.isDehydrated)try{Hi(s.containerInfo)}catch(pe){ut(r,r.return,pe)}break;case 4:En(s,r),Kn(r);break;case 13:En(s,r),Kn(r),f=r.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(ed=ht())),c&4&&tg(r);break;case 22:if(H=a!==null&&a.memoizedState!==null,r.mode&1?(Vt=(V=Vt)||H,En(s,r),Vt=V):En(s,r),Kn(r),c&8192){if(V=r.memoizedState!==null,(r.stateNode.isHidden=V)&&!H&&(r.mode&1)!==0)for(de=r,H=r.child;H!==null;){for(Q=de=H;de!==null;){switch($=de,le=$.child,$.tag){case 0:case 11:case 14:case 15:po(4,$,$.return);break;case 1:Ys($,$.return);var fe=$.stateNode;if(typeof fe.componentWillUnmount=="function"){c=$,a=$.return;try{s=c,fe.props=s.memoizedProps,fe.state=s.memoizedState,fe.componentWillUnmount()}catch(pe){ut(c,a,pe)}}break;case 5:Ys($,$.return);break;case 22:if($.memoizedState!==null){ig(Q);continue}}le!==null?(le.return=$,de=le):ig(Q)}H=H.sibling}e:for(H=null,Q=r;;){if(Q.tag===5){if(H===null){H=Q;try{f=Q.stateNode,V?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(C=Q.stateNode,k=Q.memoizedProps.style,v=k!=null&&k.hasOwnProperty("display")?k.display:null,C.style.display=ya("display",v))}catch(pe){ut(r,r.return,pe)}}}else if(Q.tag===6){if(H===null)try{Q.stateNode.nodeValue=V?"":Q.memoizedProps}catch(pe){ut(r,r.return,pe)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===r)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===r)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===r)break e;H===Q&&(H=null),Q=Q.return}H===Q&&(H=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:En(s,r),Kn(r),c&4&&tg(r);break;case 21:break;default:En(s,r),Kn(r)}}function Kn(r){var s=r.flags;if(s&2){try{e:{for(var a=r.return;a!==null;){if(Ym(a)){var c=a;break e}a=a.return}throw Error(n(160))}switch(c.tag){case 5:var f=c.stateNode;c.flags&32&&(ft(f,""),c.flags&=-33);var m=Jm(r);Xc(r,m,f);break;case 3:case 4:var v=c.stateNode.containerInfo,C=Jm(r);Gc(r,C,v);break;default:throw Error(n(161))}}catch(k){ut(r,r.return,k)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function M2(r,s,a){de=r,rg(r)}function rg(r,s,a){for(var c=(r.mode&1)!==0;de!==null;){var f=de,m=f.child;if(f.tag===22&&c){var v=f.memoizedState!==null||al;if(!v){var C=f.alternate,k=C!==null&&C.memoizedState!==null||Vt;C=al;var V=Vt;if(al=v,(Vt=k)&&!V)for(de=f;de!==null;)v=de,k=v.child,v.tag===22&&v.memoizedState!==null?og(f):k!==null?(k.return=v,de=k):og(f);for(;m!==null;)de=m,rg(m),m=m.sibling;de=f,al=C,Vt=V}sg(r)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,de=m):sg(r)}}function sg(r){for(;de!==null;){var s=de;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Vt||ll(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Vt)if(a===null)c.componentDidMount();else{var f=s.elementType===s.type?a.memoizedProps:Cn(s.type,a.memoizedProps);c.componentDidUpdate(f,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&im(s,m,c);break;case 3:var v=s.updateQueue;if(v!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}im(s,v,a)}break;case 5:var C=s.stateNode;if(a===null&&s.flags&4){a=C;var k=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&a.focus();break;case"img":k.src&&(a.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var V=s.alternate;if(V!==null){var H=V.memoizedState;if(H!==null){var Q=H.dehydrated;Q!==null&&Hi(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Vt||s.flags&512&&Zc(s)}catch($){ut(s,s.return,$)}}if(s===r){de=null;break}if(a=s.sibling,a!==null){a.return=s.return,de=a;break}de=s.return}}function ig(r){for(;de!==null;){var s=de;if(s===r){de=null;break}var a=s.sibling;if(a!==null){a.return=s.return,de=a;break}de=s.return}}function og(r){for(;de!==null;){var s=de;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{ll(4,s)}catch(k){ut(s,a,k)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var f=s.return;try{c.componentDidMount()}catch(k){ut(s,f,k)}}var m=s.return;try{Zc(s)}catch(k){ut(s,m,k)}break;case 5:var v=s.return;try{Zc(s)}catch(k){ut(s,v,k)}}}catch(k){ut(s,s.return,k)}if(s===r){de=null;break}var C=s.sibling;if(C!==null){C.return=s.return,de=C;break}de=s.return}}var I2=Math.ceil,ul=F.ReactCurrentDispatcher,Yc=F.ReactCurrentOwner,vn=F.ReactCurrentBatchConfig,Be=0,_t=null,yt=null,Nt=0,rn=0,Js=Ar(0),bt=0,mo=null,us=0,cl=0,Jc=0,go=null,Qt=null,ed=0,ei=1/0,cr=null,dl=!1,td=null,Ir=null,fl=!1,jr=null,hl=0,yo=0,nd=null,pl=-1,ml=0;function Ut(){return(Be&6)!==0?ht():pl!==-1?pl:pl=ht()}function Vr(r){return(r.mode&1)===0?1:(Be&2)!==0&&Nt!==0?Nt&-Nt:v2.transition!==null?(ml===0&&(ml=Jh()),ml):(r=qe,r!==0||(r=window.event,r=r===void 0?16:lp(r.type)),r)}function kn(r,s,a,c){if(50<yo)throw yo=0,nd=null,Error(n(185));zi(r,a,c),((Be&2)===0||r!==_t)&&(r===_t&&((Be&2)===0&&(cl|=a),bt===4&&Lr(r,Nt)),Zt(r,c),a===1&&Be===0&&(s.mode&1)===0&&(ei=ht()+500,$a&&Rr()))}function Zt(r,s){var a=r.callbackNode;vS(r,s);var c=Pa(r,r===_t?Nt:0);if(c===0)a!==null&&Gh(a),r.callbackNode=null,r.callbackPriority=0;else if(s=c&-c,r.callbackPriority!==s){if(a!=null&&Gh(a),s===1)r.tag===0?y2(lg.bind(null,r)):qp(lg.bind(null,r)),h2(function(){(Be&6)===0&&Rr()}),a=null;else{switch(ep(c)){case 1:a=Iu;break;case 4:a=Xh;break;case 16:a=wa;break;case 536870912:a=Yh;break;default:a=wa}a=gg(a,ag.bind(null,r))}r.callbackPriority=s,r.callbackNode=a}}function ag(r,s){if(pl=-1,ml=0,(Be&6)!==0)throw Error(n(327));var a=r.callbackNode;if(ti()&&r.callbackNode!==a)return null;var c=Pa(r,r===_t?Nt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||s)s=gl(r,c);else{s=c;var f=Be;Be|=2;var m=cg();(_t!==r||Nt!==s)&&(cr=null,ei=ht()+500,ds(r,s));do try{L2();break}catch(C){ug(r,C)}while(!0);wc(),ul.current=m,Be=f,yt!==null?s=0:(_t=null,Nt=0,s=bt)}if(s!==0){if(s===2&&(f=ju(r),f!==0&&(c=f,s=rd(r,f))),s===1)throw a=mo,ds(r,0),Lr(r,c),Zt(r,ht()),a;if(s===6)Lr(r,c);else{if(f=r.current.alternate,(c&30)===0&&!j2(f)&&(s=gl(r,c),s===2&&(m=ju(r),m!==0&&(c=m,s=rd(r,m))),s===1))throw a=mo,ds(r,0),Lr(r,c),Zt(r,ht()),a;switch(r.finishedWork=f,r.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:fs(r,Qt,cr);break;case 3:if(Lr(r,c),(c&130023424)===c&&(s=ed+500-ht(),10<s)){if(Pa(r,0)!==0)break;if(f=r.suspendedLanes,(f&c)!==c){Ut(),r.pingedLanes|=r.suspendedLanes&f;break}r.timeoutHandle=uc(fs.bind(null,r,Qt,cr),s);break}fs(r,Qt,cr);break;case 4:if(Lr(r,c),(c&4194240)===c)break;for(s=r.eventTimes,f=-1;0<c;){var v=31-bn(c);m=1<<v,v=s[v],v>f&&(f=v),c&=~m}if(c=f,c=ht()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*I2(c/1960))-c,10<c){r.timeoutHandle=uc(fs.bind(null,r,Qt,cr),c);break}fs(r,Qt,cr);break;case 5:fs(r,Qt,cr);break;default:throw Error(n(329))}}}return Zt(r,ht()),r.callbackNode===a?ag.bind(null,r):null}function rd(r,s){var a=go;return r.current.memoizedState.isDehydrated&&(ds(r,s).flags|=256),r=gl(r,s),r!==2&&(s=Qt,Qt=a,s!==null&&sd(s)),r}function sd(r){Qt===null?Qt=r:Qt.push.apply(Qt,r)}function j2(r){for(var s=r;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var f=a[c],m=f.getSnapshot;f=f.value;try{if(!Tn(m(),f))return!1}catch{return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Lr(r,s){for(s&=~Jc,s&=~cl,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var a=31-bn(s),c=1<<a;r[a]=-1,s&=~c}}function lg(r){if((Be&6)!==0)throw Error(n(327));ti();var s=Pa(r,0);if((s&1)===0)return Zt(r,ht()),null;var a=gl(r,s);if(r.tag!==0&&a===2){var c=ju(r);c!==0&&(s=c,a=rd(r,c))}if(a===1)throw a=mo,ds(r,0),Lr(r,s),Zt(r,ht()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,fs(r,Qt,cr),Zt(r,ht()),null}function id(r,s){var a=Be;Be|=1;try{return r(s)}finally{Be=a,Be===0&&(ei=ht()+500,$a&&Rr())}}function cs(r){jr!==null&&jr.tag===0&&(Be&6)===0&&ti();var s=Be;Be|=1;var a=vn.transition,c=qe;try{if(vn.transition=null,qe=1,r)return r()}finally{qe=c,vn.transition=a,Be=s,(Be&6)===0&&Rr()}}function od(){rn=Js.current,Je(Js)}function ds(r,s){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,f2(a)),yt!==null)for(a=yt.return;a!==null;){var c=a;switch(mc(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ba();break;case 3:Gs(),Je(Ht),Je(Mt),kc();break;case 5:_c(c);break;case 4:Gs();break;case 13:Je(rt);break;case 19:Je(rt);break;case 10:Sc(c.type._context);break;case 22:case 23:od()}a=a.return}if(_t=r,yt=r=Fr(r.current,null),Nt=rn=s,bt=0,mo=null,Jc=cl=us=0,Qt=go=null,os!==null){for(s=0;s<os.length;s++)if(a=os[s],c=a.interleaved,c!==null){a.interleaved=null;var f=c.next,m=a.pending;if(m!==null){var v=m.next;m.next=f,c.next=v}a.pending=c}os=null}return r}function ug(r,s){do{var a=yt;try{if(wc(),Ja.current=rl,el){for(var c=st.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}el=!1}if(ls=0,Ct=St=st=null,lo=!1,uo=0,Yc.current=null,a===null||a.return===null){bt=1,mo=s,yt=null;break}e:{var m=r,v=a.return,C=a,k=s;if(s=Nt,C.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var V=k,H=C,Q=H.tag;if((H.mode&1)===0&&(Q===0||Q===11||Q===15)){var $=H.alternate;$?(H.updateQueue=$.updateQueue,H.memoizedState=$.memoizedState,H.lanes=$.lanes):(H.updateQueue=null,H.memoizedState=null)}var le=Mm(v);if(le!==null){le.flags&=-257,Im(le,v,C,m,s),le.mode&1&&Om(m,V,s),s=le,k=V;var fe=s.updateQueue;if(fe===null){var pe=new Set;pe.add(k),s.updateQueue=pe}else fe.add(k);break e}else{if((s&1)===0){Om(m,V,s),ad();break e}k=Error(n(426))}}else if(nt&&C.mode&1){var pt=Mm(v);if(pt!==null){(pt.flags&65536)===0&&(pt.flags|=256),Im(pt,v,C,m,s),vc(Xs(k,C));break e}}m=k=Xs(k,C),bt!==4&&(bt=2),go===null?go=[m]:go.push(m),m=v;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var O=Rm(m,k,s);sm(m,O);break e;case 1:C=k;var N=m.type,j=m.stateNode;if((m.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(Ir===null||!Ir.has(j)))){m.flags|=65536,s&=-s,m.lanes|=s;var te=Dm(m,C,s);sm(m,te);break e}}m=m.return}while(m!==null)}fg(a)}catch(ge){s=ge,yt===a&&a!==null&&(yt=a=a.return);continue}break}while(!0)}function cg(){var r=ul.current;return ul.current=rl,r===null?rl:r}function ad(){(bt===0||bt===3||bt===2)&&(bt=4),_t===null||(us&268435455)===0&&(cl&268435455)===0||Lr(_t,Nt)}function gl(r,s){var a=Be;Be|=2;var c=cg();(_t!==r||Nt!==s)&&(cr=null,ds(r,s));do try{V2();break}catch(f){ug(r,f)}while(!0);if(wc(),Be=a,ul.current=c,yt!==null)throw Error(n(261));return _t=null,Nt=0,bt}function V2(){for(;yt!==null;)dg(yt)}function L2(){for(;yt!==null&&!uS();)dg(yt)}function dg(r){var s=mg(r.alternate,r,rn);r.memoizedProps=r.pendingProps,s===null?fg(r):yt=s,Yc.current=null}function fg(r){var s=r;do{var a=s.alternate;if(r=s.return,(s.flags&32768)===0){if(a=N2(a,s,rn),a!==null){yt=a;return}}else{if(a=R2(a,s),a!==null){a.flags&=32767,yt=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{bt=6,yt=null;return}}if(s=s.sibling,s!==null){yt=s;return}yt=s=r}while(s!==null);bt===0&&(bt=5)}function fs(r,s,a){var c=qe,f=vn.transition;
vendor: 4,250 bytes, line 8
8try{vn.transition=null,qe=1,F2(r,s,a,c)}finally{vn.transition=f,qe=c}return null}function F2(r,s,a,c){do ti();while(jr!==null);if((Be&6)!==0)throw Error(n(327));a=r.finishedWork;var f=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=a.lanes|a.childLanes;if(xS(r,m),r===_t&&(yt=_t=null,Nt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||fl||(fl=!0,gg(wa,function(){return ti(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=vn.transition,vn.transition=null;var v=qe;qe=1;var C=Be;Be|=4,Yc.current=null,O2(r,a),ng(a,r),i2(ac),Ea=!!oc,ac=oc=null,r.current=a,M2(a),cS(),Be=C,qe=v,vn.transition=m}else r.current=a;if(fl&&(fl=!1,jr=r,hl=f),m=r.pendingLanes,m===0&&(Ir=null),hS(a.stateNode),Zt(r,ht()),s!==null)for(c=r.onRecoverableError,a=0;a<s.length;a++)f=s[a],c(f.value,{componentStack:f.stack,digest:f.digest});if(dl)throw dl=!1,r=td,td=null,r;return(hl&1)!==0&&r.tag!==0&&ti(),m=r.pendingLanes,(m&1)!==0?r===nd?yo++:(yo=0,nd=r):yo=0,Rr(),null}function ti(){if(jr!==null){var r=ep(hl),s=vn.transition,a=qe;try{if(vn.transition=null,qe=16>r?16:r,jr===null)var c=!1;else{if(r=jr,jr=null,hl=0,(Be&6)!==0)throw Error(n(331));var f=Be;for(Be|=4,de=r.current;de!==null;){var m=de,v=m.child;if((de.flags&16)!==0){var C=m.deletions;if(C!==null){for(var k=0;k<C.length;k++){var V=C[k];for(de=V;de!==null;){var H=de;switch(H.tag){case 0:case 11:case 15:po(8,H,m)}var Q=H.child;if(Q!==null)Q.return=H,de=Q;else for(;de!==null;){H=de;var $=H.sibling,le=H.return;if(Xm(H),H===V){de=null;break}if($!==null){$.return=le,de=$;break}de=le}}}var fe=m.alternate;if(fe!==null){var pe=fe.child;if(pe!==null){fe.child=null;do{var pt=pe.sibling;pe.sibling=null,pe=pt}while(pe!==null)}}de=m}}if((m.subtreeFlags&2064)!==0&&v!==null)v.return=m,de=v;else e:for(;de!==null;){if(m=de,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:po(9,m,m.return)}var O=m.sibling;if(O!==null){O.return=m.return,de=O;break e}de=m.return}}var N=r.current;for(de=N;de!==null;){v=de;var j=v.child;if((v.subtreeFlags&2064)!==0&&j!==null)j.return=v,de=j;else e:for(v=N;de!==null;){if(C=de,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:ll(9,C)}}catch(ge){ut(C,C.return,ge)}if(C===v){de=null;break e}var te=C.sibling;if(te!==null){te.return=C.return,de=te;break e}de=C.return}}if(Be=f,Rr(),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(Sa,r)}catch{}c=!0}return c}finally{qe=a,vn.transition=s}}return!1}function hg(r,s,a){s=Xs(a,s),s=Rm(r,s,1),r=Or(r,s,1),s=Ut(),r!==null&&(zi(r,1,s),Zt(r,s))}function ut(r,s,a){if(r.tag===3)hg(r,r,a);else for(;s!==null;){if(s.tag===3){hg(s,r,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ir===null||!Ir.has(c))){r=Xs(a,r),r=Dm(s,r,1),s=Or(s,r,1),r=Ut(),s!==null&&(zi(s,1,r),Zt(s,r));break}}s=s.return}}function z2(r,s,a){var c=r.pingCache;c!==null&&c.delete(s),s=Ut(),r.pingedLanes|=r.suspendedLanes&a,_t===r&&(Nt&a)===a&&(bt===4||bt===3&&(Nt&130023424)===Nt&&500>ht()-ed?ds(r,0):Jc|=a),Zt(r,s)}function pg(r,s){s===0&&((r.mode&1)===0?s=1:(s=Ta,Ta<<=1,(Ta&130023424)===0&&(Ta=4194304)));var a=Ut();r=ar(r,s),r!==null&&(zi(r,s,a),Zt(r,a))}function B2(r){var s=r.memoizedState,a=0;s!==null&&(a=s.retryLane),pg(r,a)}function U2(r,s){var a=0;switch(r.tag){case 13:var c=r.stateNode,f=r.memoizedState;f!==null&&(a=f.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),pg(r,a)}var mg;mg=function(r,s,a){if(r!==null)if(r.memoizedProps!==s.pendingProps||Ht.current)qt=!0;else{if((r.lanes&a)===0&&(s.flags&128)===0)return qt=!1,A2(r,s,a);qt=(r.flags&131072)!==0}else qt=!1,nt&&(s.flags&1048576)!==0&&Qp(s,Ha,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;ol(r,s),r=s.pendingProps;var f=$s(s,Mt.current);Zs(s,a),f=Rc(null,s,c,r,f,a);var m=Dc();return s.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Kt(c)?(m=!0,Ua(s)):m=!1,s.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Pc(s),f.updater=sl,s.stateNode=f,f._reactInternals=s,Lc(s,c,r,a),s=Uc(null,
vendor: 5,153 bytes, line 8
8s,c,!0,m,a)):(s.tag=0,nt&&m&&pc(s),Bt(null,s,f,a),s=s.child),s;case 16:c=s.elementType;e:{switch(ol(r,s),r=s.pendingProps,f=c._init,c=f(c._payload),s.type=c,f=s.tag=W2(c),r=Cn(c,r),f){case 0:s=Bc(null,s,c,r,a);break e;case 1:s=Bm(null,s,c,r,a);break e;case 11:s=jm(null,s,c,r,a);break e;case 14:s=Vm(null,s,c,Cn(c.type,r),a);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:Cn(c,f),Bc(r,s,c,f,a);case 1:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:Cn(c,f),Bm(r,s,c,f,a);case 3:e:{if(Um(s),r===null)throw Error(n(387));c=s.pendingProps,m=s.memoizedState,f=m.element,rm(r,s),Xa(s,c,null,a);var v=s.memoizedState;if(c=v.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){f=Xs(Error(n(423)),s),s=$m(r,s,c,a,f);break e}else if(c!==f){f=Xs(Error(n(424)),s),s=$m(r,s,c,a,f);break e}else for(nn=kr(s.stateNode.containerInfo.firstChild),tn=s,nt=!0,Pn=null,a=tm(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ks(),c===f){s=ur(r,s,a);break e}Bt(r,s,c,a)}s=s.child}return s;case 5:return om(s),r===null&&yc(s),c=s.type,f=s.pendingProps,m=r!==null?r.memoizedProps:null,v=f.children,lc(c,f)?v=null:m!==null&&lc(c,m)&&(s.flags|=32),zm(r,s),Bt(r,s,v,a),s.child;case 6:return r===null&&yc(s),null;case 13:return Wm(r,s,a);case 4:return Cc(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=qs(s,null,c,a):Bt(r,s,c,a),s.child;case 11:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:Cn(c,f),jm(r,s,c,f,a);case 7:return Bt(r,s,s.pendingProps,a),s.child;case 8:return Bt(r,s,s.pendingProps.children,a),s.child;case 12:return Bt(r,s,s.pendingProps.children,a),s.child;case 10:e:{if(c=s.type._context,f=s.pendingProps,m=s.memoizedProps,v=f.value,Xe(Qa,c._currentValue),c._currentValue=v,m!==null)if(Tn(m.value,v)){if(m.children===f.children&&!Ht.current){s=ur(r,s,a);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var C=m.dependencies;if(C!==null){v=m.child;for(var k=C.firstContext;k!==null;){if(k.context===c){if(m.tag===1){k=lr(-1,a&-a),k.tag=2;var V=m.updateQueue;if(V!==null){V=V.shared;var H=V.pending;H===null?k.next=k:(k.next=H.next,H.next=k),V.pending=k}}m.lanes|=a,k=m.alternate,k!==null&&(k.lanes|=a),bc(m.return,a,s),C.lanes|=a;break}k=k.next}}else if(m.tag===10)v=m.type===s.type?null:m.child;else if(m.tag===18){if(v=m.return,v===null)throw Error(n(341));v.lanes|=a,C=v.alternate,C!==null&&(C.lanes|=a),bc(v,a,s),v=m.sibling}else v=m.child;if(v!==null)v.return=m;else for(v=m;v!==null;){if(v===s){v=null;break}if(m=v.sibling,m!==null){m.return=v.return,v=m;break}v=v.return}m=v}Bt(r,s,f.children,a),s=s.child}return s;case 9:return f=s.type,c=s.pendingProps.children,Zs(s,a),f=gn(f),c=c(f),s.flags|=1,Bt(r,s,c,a),s.child;case 14:return c=s.type,f=Cn(c,s.pendingProps),f=Cn(c.type,f),Vm(r,s,c,f,a);case 15:return Lm(r,s,s.type,s.pendingProps,a);case 17:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:Cn(c,f),ol(r,s),s.tag=1,Kt(c)?(r=!0,Ua(s)):r=!1,Zs(s,a),Am(s,c,f),Lc(s,c,f,a),Uc(null,s,c,!0,r,a);case 19:return Km(r,s,a);case 22:return Fm(r,s,a)}throw Error(n(156,s.tag))};function gg(r,s){return Zh(r,s)}function $2(r,s,a,c){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xn(r,s,a,c){return new $2(r,s,a,c)}function ld(r){return r=r.prototype,!(!r||!r.isReactComponent)}function W2(r){if(typeof r=="function")return ld(r)?1:0;if(r!=null){if(r=r.$$typeof,r===q)return 11;if(r===we)return 14}return 2}function Fr(r,s){var a=r.alternate;return a===null?(a=xn(r.tag,s,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=s,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,s=r.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function yl(r,s,a,c,f,m){var v=2;if(c=r,typeof r=="function")ld(r)&&(v=1);else if(typeof r=="string")v=5;else e:switch(r){case X:return hs(a.children,f,m,s);case J:v=8,f|=8;break;case ve:return r=xn(12,a,s,f|2),r.elementType=ve,r.lanes=m,r;case ae:return r=xn(13,a,s,f),r.elementType=ae,r.lanes=m,r;case Z:return r=xn(19,a,s,f),r.elementType=Z,r.lanes=m,r;case se:return vl(a,f,m,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ce:v=10;break e;case Ee:v=9;break e;case q:v=11;break e;case we:v=14;break e;case me:v=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=xn(v,a,s,f),s.elementType=r,s.type=c,s.lanes=m,s}function hs(r,s,a,c){return r=xn(7,r,c,s),r.lanes=a,r}
vendor: 4,522 bytes, line 8
8function vl(r,s,a,c){return r=xn(22,r,c,s),r.elementType=se,r.lanes=a,r.stateNode={isHidden:!1},r}function ud(r,s,a){return r=xn(6,r,null,s),r.lanes=a,r}function cd(r,s,a){return s=xn(4,r.children!==null?r.children:[],r.key,s),s.lanes=a,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function H2(r,s,a,c,f){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vu(0),this.expirationTimes=Vu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vu(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function dd(r,s,a,c,f,m,v,C,k){return r=new H2(r,s,a,C,k),s===1?(s=1,m===!0&&(s|=8)):s=0,m=xn(3,null,null,s),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(m),r}function K2(r,s,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K,key:c==null?null:""+c,children:r,containerInfo:s,implementation:a}}function yg(r){if(!r)return Nr;r=r._reactInternals;e:{if(ts(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Kt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(Kt(a))return Hp(r,a,s)}return s}function vg(r,s,a,c,f,m,v,C,k){return r=dd(a,c,!0,r,f,m,v,C,k),r.context=yg(null),a=r.current,c=Ut(),f=Vr(a),m=lr(c,f),m.callback=s??null,Or(a,m,f),r.current.lanes=f,zi(r,f,c),Zt(r,c),r}function xl(r,s,a,c){var f=s.current,m=Ut(),v=Vr(f);return a=yg(a),s.context===null?s.context=a:s.pendingContext=a,s=lr(m,v),s.payload={element:r},c=c===void 0?null:c,c!==null&&(s.callback=c),r=Or(f,s,v),r!==null&&(kn(r,f,v,m),Ga(r,f,v)),v}function wl(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function xg(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<s?a:s}}function fd(r,s){xg(r,s),(r=r.alternate)&&xg(r,s)}function q2(){return null}var wg=typeof reportError=="function"?reportError:function(r){console.error(r)};function hd(r){this._internalRoot=r}Sl.prototype.render=hd.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));xl(r,s,null,null)},Sl.prototype.unmount=hd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;cs(function(){xl(null,r,null,null)}),s[rr]=null}};function Sl(r){this._internalRoot=r}Sl.prototype.unstable_scheduleHydration=function(r){if(r){var s=rp();r={blockedOn:null,target:r,priority:s};for(var a=0;a<Cr.length&&s!==0&&s<Cr[a].priority;a++);Cr.splice(a,0,r),a===0&&op(r)}};function pd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function bl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Sg(){}function Q2(r,s,a,c,f){if(f){if(typeof c=="function"){var m=c;c=function(){var V=wl(v);m.call(V)}}var v=vg(s,c,r,0,null,!1,!1,"",Sg);return r._reactRootContainer=v,r[rr]=v.current,eo(r.nodeType===8?r.parentNode:r),cs(),v}for(;f=r.lastChild;)r.removeChild(f);if(typeof c=="function"){var C=c;c=function(){var V=wl(k);C.call(V)}}var k=dd(r,0,!1,null,null,!1,!1,"",Sg);return r._reactRootContainer=k,r[rr]=k.current,eo(r.nodeType===8?r.parentNode:r),cs(function(){xl(s,k,a,c)}),k}function Tl(r,s,a,c,f){var m=a._reactRootContainer;if(m){var v=m;if(typeof f=="function"){var C=f;f=function(){var k=wl(v);C.call(k)}}xl(s,v,r,f)}else v=Q2(a,s,r,f,c);return wl(v)}tp=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var a=Fi(s.pendingLanes);a!==0&&(Lu(s,a|1),Zt(s,ht()),(Be&6)===0&&(ei=ht()+500,Rr()))}break;case 13:cs(function(){var c=ar(r,1);if(c!==null){var f=Ut();kn(c,r,1,f)}}),fd(r,1)}},Fu=function(r){if(r.tag===13){var s=ar(r,134217728);if(s!==null){var a=Ut();kn(s,r,134217728,a)}fd(r,134217728)}},np=function(r){if(r.tag===13){var s=Vr(r),a=ar(r,s);if(a!==null){var c=Ut();kn(a,r,s,c)}fd(r,s)}},rp=function(){return qe},sp=function(r,s){var a=qe;try{return qe=r,s()}finally{qe=a}},Ru=function(r,s,a){switch(s){case"input":if(Di(r,a),s=a.name,a.t
vendor: 1,297 bytes, line 8
8ype==="radio"&&s!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==r&&c.form===r.form){var f=za(c);if(!f)throw Error(n(90));ks(c),Di(c,f)}}}break;case"textarea":oe(r,a);break;case"select":s=a.value,s!=null&&E(r,!!a.multiple,s,!1)}},Uh=id,$h=cs;var Z2={usingClientEntryPoint:!1,Events:[ro,Bs,za,zh,Bh,id]},vo={findFiberByHostInstance:ns,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G2={bundleType:vo.bundleType,version:vo.version,rendererPackageName:vo.rendererPackageName,rendererConfig:vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=qh(r),r===null?null:r.stateNode},findFiberByHostInstance:vo.findFiberByHostInstance||q2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pl=__REACT_DEVTOOLS_GLOBAL_HOOK__;
8if(!Pl.isDisabled&&Pl.supportsFiber)try{Sa=Pl.inject(G2),Un=Pl}catch{}}return Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z2,Gt.createPortal=function(r,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pd(s))throw Error(n(200));return K2(r,s,null,a)},Gt.createRoot=function(r,s){if(!pd(r))throw Error(n(299));var a=!1,c="",f=wg;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(f=s.onRecoverableError)),s=dd(r,1,!1,null,null,a,!1,c,f),r[rr]=s.current,eo(r.nodeType===8?r.parentNode:r),new hd(s)},Gt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=qh(s),r=r===null?null:r.stateNode,r},Gt.flushSync=function(r){return cs(r)},Gt.hydrate=function(r,s,a){if(!bl(s))throw Error(n(200));return Tl(null,r,s,!0,a)},Gt.hydrateRoot=function(r,s,a){if(!pd(r))throw Error(n(405));var c=a!=null&&a.hydratedSources||null,f=!1,m="",v=wg;if(a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),s=vg(s,null,r,1,a??null,f,!1,m,v),r[rr]=s.current,eo(r),c)for(r=0;r<c.length;r++)a=c[r],f=a._getVersion,f=f(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,f]:s.mutableSourceEagerHydrationData.push(a,f);return new Sl(s)},Gt.render=function(r,s,a){if(!bl(s))throw Error(n(200));return Tl(null,r,s,!1,a)},Gt.unmountComponentAtNode=function(r){if(!bl(r))throw Error(n(40));return r._reactRootContainer?(cs(function(){Tl(null,null,r,!1,function(){r._reactRootContainer=null,r[rr]=null})}),!0):!1},Gt.unstable_batchedUpdates=id,Gt.unstable_renderSubtreeIntoContainer=function(r,s,a,c){if(!bl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Tl(r,s,a,!1,c)},Gt.version="18.3.1-next-f1338f8080-20240426",Gt}var Ag;function Yv(){if(Ag)return yd.exports;Ag=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),yd.exports=sb(),yd.exports}var Ng;function ib(){if(Ng)return Cl;Ng=1;var t=Yv();return Cl.createRoot=t.createRoot,Cl.hydrateRoot=t.hydrateRoot,Cl}var ob=ib();function ab(t,e){if(t instanceof RegExp)return{keys:!1,pattern:t};var n,i,o,l,u=[],d="",h=t.split("/");for(h[0]||h.shift();o=h.shift();)n=o[0],n==="*"?(u.push(n),d+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(i=o.indexOf("?",1),l=o.indexOf(".",1),u.push(o.substring(1,~i?i:~l?l:o.length)),d+=~i&&!~l?"(?:/([^/]+?))?":"/([^/]+?)",~l&&(d+=(~i?"?":"")+"\\"+o.substring(l))):d+="/"+o;return{keys:u,pattern:new RegExp("^"+d+(e?"(?=$|/)":"/?$"),"i")}}var P=cu();const He=Xv(P),lb=Y2({__proto__:null,default:He},[P]);var wd={exports:{}},Sd={};var Rg;function ub(){if(Rg)return Sd;Rg=1;var t=cu();function e(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var n=typeof Object.is=="function"?Object.is:e,i=t.useState,o=t.useEffect,l=t.useLayoutEffect,u=t.useDebugValue;function d(y,x){var w=x(),_=i({inst:{value:w,getSnapshot:x}}),S=_[0].inst,T=_[1];return l(function(){S.value=w,S.getSnapshot=x,h(S)&&T({inst:S})},[y,w,x]),o(function(){return h(S)&&T({inst:S}),y(function(){h(S)&&T({inst:S})})},[y]),u(w),w}function h(y){var x=y.getSnapshot;y=y.value;try{var w=x();return!n(y,w)}catch{return!0}}function p(y,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return Sd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Sd}var Dg;function cb(){return Dg||(Dg=1,wd.exports=ub()),wd.exports}var db=cb();const fb=lb.useInsertionEffect,hb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pb=hb?P.useLayoutEffect:P.useEffect,mb=fb||pb,Jv=t=>{const e=P.useRef([t,(...n)=>e[0](...n)]).current;return mb(()=>{e[0]=t}),e[1]},gb="popstate",Df="pushState",Of="replaceState",yb="hashchange",Og=[gb,Df,Of,yb],vb=t=>{for(const e of Og)addEventListener(e,t);return()=>{for(const e of Og)removeEventListener(e,t)}},e0=(t,e)=>db.useSyncExternalStore(vb,t,e),xb=()=>location.search,wb=({ssrSearch:t=""}={})=>e0(xb,()=>t),Mg=()=>location.pathname,Sb=({ssrPath:t}={})=>e0(Mg,t?()=>t:Mg),bb=(t,{replace:e=!1,state:n=null}={})=>history[e?Of:Df](n,"",t),Tb=(t={})=>[Sb(t),bb],Ig=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ig]>"u"){for(const t of[Df,Of]){const e=history[t];history[t]=function(){const n=e.apply(this,arguments),i=new Event(t);return i.arguments=arguments,dispatchEvent(i),n}}Object.defineProperty(window,Ig,{value:!0})}const Pb=(t,e)=>e.toLowerCase().indexOf(t.toLowerCase())?"~"+e:e.slice(t.length)||"/",t0=(t="")=>t==="/"?"":t,Cb=(t,e)=>t[0]==="~"?t.slice(1):t0(e)+t,_b=(t="",e)=>Pb(jg(t0(t)),jg(e)),jg=t=>{try{return decodeURI(t)}catch{return t}},n0={hook:Tb,searchHook:wb,parser:ab,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:t=>t},r0=P.createContext(n0),du=()=>P.useContext(r0),s0={},i0=P.createContext(s0),Eb=()=>P.useContext(i0),Mf=t=>{const[e,n]=t.hook(t);return[_b(t.base,e),Jv((i,o)=>n(Cb(i,t.base),o))]},o0=(t,e,n,i)=>{const{pattern:o,keys:l}=e instanceof RegExp?{keys:!1,pattern:e}:t(e||"*",i),u=o.exec(n)||[],[d,...h]=u;return d!==void 0?[!0,(()=>{const p=l!==!1?Object.fromEntries(l.map((y,x)=>[y,h[x]])):u.groups;let g={...h};return p&&Object.assign(g,p),g})(),...i?[d]:[]]:[!1,null]},kb=({children:t,...e})=>{const n=du(),i=e.hook?n0:n;let o=i;const[l,u]=e.ssrPath?.split("?")??[];u&&(e.ssrSearch=u,e.ssrPath=l),e.hrefs=e.hrefs??e.hook?.hrefs;let d=P.useRef({}),h=d.current,p=h;
8for(let g in i){const y=g==="base"?i[g]+(e[g]||""):e[g]||i[g];h===p&&y!==p[g]&&(d.current=p={...p}),p[g]=y,y!==i[g]&&(o=p)}return P.createElement(r0.Provider,{value:o,children:t})},Vg=({children:t,component:e},n)=>e?P.createElement(e,{params:n}):typeof t=="function"?t(n):t,Ab=t=>{let e=P.useRef(s0),n=e.current;for(const i in t)t[i]!==n[i]&&(n=t);return Object.keys(t).length===0&&(n=t),e.current=n},Lg=({path:t,nest:e,match:n,...i})=>{const o=du(),[l]=Mf(o),[u,d,h]=n??o0(o.parser,t,l,e),p=Ab({...Eb(),...d});if(!u)return null;const g=h?P.createElement(kb,{base:h},Vg(i,p)):Vg(i,p);return P.createElement(i0.Provider,{value:p,children:g})};P.forwardRef((t,e)=>{const n=du(),[i,o]=Mf(n),{to:l="",href:u=l,onClick:d,asChild:h,children:p,className:g,replace:y,state:x,...w}=t,_=Jv(T=>{T.ctrlKey||T.metaKey||T.altKey||T.shiftKey||T.button!==0||(d?.(T),T.defaultPrevented||(T.preventDefault(),o(u,t)))}),S=n.hrefs(u[0]==="~"?u.slice(1):n.base+u,n);return h&&P.isValidElement(p)?P.cloneElement(p,{onClick:_,href:S}):P.createElement("a",{...w,onClick:_,href:S,className:g?.call?g(i===u):g,children:p,ref:e})});const a0=t=>Array.isArray(t)?t.flatMap(e=>a0(e&&e.type===P.Fragment?e.props.children:e)):[t],Nb=({children:t,location:e})=>{const n=du(),[i]=Mf(n);for(const o of a0(t)){let l=0;if(P.isValidElement(o)&&(l=o0(n.parser,o.props.path,e||i,o.props.nest))[0])return P.cloneElement(o,{match:l})}return null};var sa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fu=typeof window>"u"||"Deno"in globalThis;function Nn(){}function Rb(t,e){return typeof t=="function"?t(e):t}function Db(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ob(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Fg(t,e){return typeof t=="function"?t(e):t}function Mb(t,e){return typeof t=="function"?t(e):t}function zg(t,e){const{type:n="all",exact:i,fetchStatus:o,predicate:l,queryKey:u,stale:d}=t;if(u){if(i){if(e.queryHash!==If(u,e.options))return!1}else if(!jo(e.queryKey,u))return!1}if(n!=="all"){const h=e.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||o&&o!==e.state.fetchStatus||l&&!l(e))}function Bg(t,e){const{exact:n,status:i,predicate:o,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Ss(e.options.mutationKey)!==Ss(l))return!1}else if(!jo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||o&&!o(e))}function If(t,e){return(e?.queryKeyHashFn||Ss)(t)}function Ss(t){return JSON.stringify(t,(e,n)=>qd(n)?Object.keys(n).sort().reduce((i,o)=>(i[o]=n[o],i),{}):n)}function jo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!jo(t[n],e[n])):!1}function l0(t,e){if(t===e)return t;const n=Ug(t)&&Ug(e);if(n||qd(t)&&qd(e)){const i=n?t:Object.keys(t),o=i.length,l=n?e:Object.keys(e),u=l.length,d=n?[]:{};let h=0;for(let p=0;p<u;p++){const g=n?p:l[p];(!n&&i.includes(g)||n)&&t[g]===void 0&&e[g]===void 0?(d[g]=void 0,h++):(d[g]=l0(t[g],e[g]),d[g]===t[g]&&t[g]!==void 0&&h++)}return o===u&&h===o?t:d}return e}function Ib(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Ug(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function qd(t){if(!$g(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!$g(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function $g(t){return Object.prototype.toString.call(t)==="[object Object]"}function jb(t){return new Promise(e=>{setTimeout(e,t)})}function Vb(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?l0(t,e):e}function Lb(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function Fb(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var jf=Symbol();function u0(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===jf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var zb=class extends sa{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!fu&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 18,245 bytes, line 8
8this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},c0=new zb,Bb=class extends sa{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!fu&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},Fl=new Bb;function Ub(){let t,e;const n=new Promise((o,l)=>{t=o,e=l});n.status="pending",n.catch(()=>{});function i(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},n.reject=o=>{i({status:"rejected",reason:o}),e(o)},n}function $b(t){return Math.min(1e3*2**t,3e4)}function d0(t){return(t??"online")==="online"?Fl.isOnline():!0}var f0=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function bd(t){return t instanceof f0}function h0(t){let e=!1,n=0,i=!1,o;const l=Ub(),u=S=>{i||(x(new f0(S)),t.abort?.())},d=()=>{e=!0},h=()=>{e=!1},p=()=>c0.isFocused()&&(t.networkMode==="always"||Fl.isOnline())&&t.canRun(),g=()=>d0(t.networkMode)&&t.canRun(),y=S=>{i||(i=!0,t.onSuccess?.(S),o?.(),l.resolve(S))},x=S=>{i||(i=!0,t.onError?.(S),o?.(),l.reject(S))},w=()=>new Promise(S=>{o=T=>{(i||p())&&S(T)},t.onPause?.()}).then(()=>{o=void 0,i||t.onContinue?.()}),_=()=>{if(i)return;let S;const T=n===0?t.initialPromise:void 0;try{S=T??t.fn()}catch(A){S=Promise.reject(A)}Promise.resolve(S).then(y).catch(A=>{if(i)return;const R=t.retry??(fu?0:3),I=t.retryDelay??$b,F=typeof I=="function"?I(n,A):I,L=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,A);if(e||!L){x(A);return}n++,t.onFail?.(n,A),jb(F).then(()=>p()?void 0:w()).then(()=>{e?x(A):_()})})};return{promise:l,cancel:u,continue:()=>(o?.(),l),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?_():w().then(_),l)}}function Wb(){let t=[],e=0,n=d=>{d()},i=d=>{d()},o=d=>setTimeout(d,0);const l=d=>{e?t.push(d):o(()=>{n(d)})},u=()=>{const d=t;t=[],d.length&&o(()=>{i(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||u()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{o=d}}}var Ot=Wb(),p0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Db(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(fu?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},Hb=class extends p0{#e;#t;#n;#r;#o;#s;constructor(t){super(),this.#s=!1,this.#o=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#n=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=qb(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){this.options={...this.#o,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=Vb(this.state.data,t,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#i({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(Nn).catch(Nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>Mb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Ob(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(t,e){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const d=u0(this.options,e),h={queryKey:this.queryKey,meta:this.meta};return i(h),this.#s=!1,this.options.persister?this.options.persister(d,h,this):d(h)},l={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const u=d=>{bd(d)&&d.silent||this.#i({type:"error",error:d}),bd(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#r=h0({initialPromise:e?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(h){u(h);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,h)=>{this.#i({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#r.start()}#i(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Kb(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return bd(i)&&i.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Ot.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Kb(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:d0(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function qb(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Qb=class extends sa{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const i=e.queryKey,o=e.queryHash??If(i,e);let l=this.get(o);return l||(l=new Hb({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>zg(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>zg(t,n)):e}notify(t){Ot.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zb=class extends p0{#e;#t;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#e=[],this.state=t.state||m0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){this.#n=h0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#r({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const e=this.state.status==="pending",n=!this.#n.canStart();try{if(!e){this.#r({type:"pending",variables:t,isPaused:n}),await this.#t.config.onMutate?.(t,this);const o=await this.options.onMutate?.(t);o!==this.state.context&&this.#r({type:"pending",context:o,variables:t,isPaused:n})}const i=await this.#n.start();return await this.#t.config.onSuccess?.(i,t,this.state.context,this),await this.options.onSuccess?.(i,t,this.state.context),await this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,t,this.state.context),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#t.config.onError?.(i,t,this.state.context,this),await this.options.onError?.(i,t,this.state.context),await this.#t.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,t,this.state.context),i}finally{this.#r({type:"error",error:i})}}finally{this.#t.runNext(this)}}#r(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Ot.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(t)}),this.#t.notify({mutation:this,type:"updated",action:t})})}};function m0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gb=class extends sa{constructor(t={}){super(),this.config=t,this.#e=new Map,this.#t=Date.now()}#e;#t;build(t,e,n){const i=new Zb({mutationCache:this,mutationId:++this.#t,options:t.defaultMutationOptions(e),state:n});return this.add(i),i}add(t){const e=_l(t),n=this.#e.get(e)??[];n.push(t),this.#e.set(e,n),this.notify({type:"added",mutation:t})}remove(t){const e=_l(t);if(this.#e.has(e)){const n=this.#e.get(e)?.filter(i=>i!==t);n&&(n.length===0?this.#e.delete(e):this.#e.set(e,n))}this.notify({type:"removed",mutation:t})}canRun(t){const e=this.#e.get(_l(t))?.find(n=>n.state.status==="pending");return!e||e===t}runNext(t){return this.#e.get(_l(t))?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve()}clear(){Ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...this.#e.values()].flat()}find(t){const e={exact:!0,...t};return this.getAll().find(n=>Bg(e,n))}findAll(t={}){return this.getAll().filter(e=>Bg(t,e))}notify(t){Ot.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Ot.batch(()=>Promise.all(t.map(e=>e.continue().catch(Nn))))}};function _l(t){return t.options.scope?.id??String(t.mutationId)}function Wg(t){return{onFetch:(e,n)=>{const i=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,l=e.state.data?.pages||[],u=e.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let g=!1;const y=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},x=u0(e.options,e.fetchOptions),w=async(_,S,T)=>{if(g)return Promise.reject();if(S==null&&_.pages.length)return Promise.resolve(_);const A={queryKey:e.queryKey,pageParam:S,direction:T?"backward":"forward",meta:e.options.meta};y(A);const R=await x(A),{maxPages:I}=e.options,F=T?Fb:Lb;return{pages:F(_.pages,R,I),pageParams:F(_.pageParams,S,I)}};if(o&&l.length){const _=o==="backward",S=_?Xb:Hg,T={pages:l,pageParams:u},A=S(i,T);d=await w(T,A,_)}else{const _=t??l.length;do{const S=h===0?u[0]??i.initialPageParam:Hg(i,d);if(h>0&&S==null)break;d=await w(d,S),h++}while(h<_)}return d};e.options.persister?e.fetchFn=()=>e.options.persister?.(p,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=p}}}function Hg(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function Xb(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var Yb=class{#e;#t;#n;#r;#o;#s;#i;#a;constructor(t={}){this.#e=t.queryCache||new Qb,this.#t=t.mutationCache||new Gb,this.#n=t.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=c0.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Fl.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#a?.(),this.#a=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const n=this.defaultQueryOptions(t),i=this.#e.build(this,n);return t.revalidateIfStale&&i.isStaleByTime(Fg(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),l=this.#e.get(i.queryHash)?.state.data,u=Rb(e,l);if(u!==void 0)return this.#e.build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return Ot.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Ot.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e,i={type:"active",...t};return Ot.batch(()=>(n.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries(i,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=Ot.batch(()=>this.#e.findAll(t).map(o=>o.cancel(n)));return Promise.all(i).then(Nn).catch(Nn)}invalidateQueries(t={},e={}){return Ot.batch(()=>{if(this.#e.findAll(t).forEach(i=>{i.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:e?.cancelRefetch??!0},i=Ot.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(Nn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Nn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(Fg(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Nn).catch(Nn)}fetchInfiniteQuery(t){return t.behavior=Wg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Nn).catch(Nn)}ensureInfiniteQueryData(t){return t.behavior=Wg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Fl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(Ss(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()];let n={};return e.forEach(i=>
8{jo(t,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(t,e){this.#o.set(Ss(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#o.values()];let n={};return e.forEach(i=>{jo(t,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=If(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===jf&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Jb=class extends sa{#e;#t=void 0;#n;#r;constructor(e,n){super(),this.#e=e,this.setOptions(n),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const n=this.options;this.options=this.#e.defaultMutationOptions(e),Ib(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ss(n.mutationKey)!==Ss(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#s()}mutate(e,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#o(){const e=this.#n?.state??m0();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){Ot.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,i=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,n,i),this.#r.onSettled?.(e.data,null,n,i)):e?.type==="error"&&(this.#r.onError?.(e.error,n,i),this.#r.onSettled?.(void 0,e.error,n,i))}this.listeners.forEach(n=>{n(this.#t)})})}},g0=P.createContext(void 0),eT=t=>{const e=P.useContext(g0);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},tT=({client:t,children:e})=>(P.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),b.jsx(g0.Provider,{value:t,children:e}));function nT(t,e){return typeof t=="function"?t(...e):!!t}function rT(){}function y0(t,e){const n=eT(),[i]=P.useState(()=>new Jb(n,t));P.useEffect(()=>{i.setOptions(t)},[i,t]);const o=P.useSyncExternalStore(P.useCallback(u=>i.subscribe(Ot.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=P.useCallback((u,d)=>{i.mutate(u,d).catch(rT)},[i]);if(o.error&&nT(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}async function sT(t){if(!t.ok){const e=await t.text()||t.statusText;throw new Error(`${t.status}: ${e}`)}}const iT=({on401:t})=>async({queryKey:e})=>{const n=await fetch(e.join("/"),{credentials:"include"});return await sT(n),await n.json()},oT=new Yb({defaultOptions:{queries:{queryFn:iT({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),aT=1,lT=1e6;let Td=0;function uT(){return Td=(Td+1)%Number.MAX_SAFE_INTEGER,Td.toString()}const Pd=new Map,Kg=t=>{if(Pd.has(t))return;const e=setTimeout(()=>{Pd.delete(t),Ao({type:"REMOVE_TOAST",toastId:t})},lT);Pd.set(t,e)},cT=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,aT)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;return n?Kg(n):t.toasts.forEach(i=>{Kg(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Ol=[];let Ml={toasts:[]};
8function Ao(t){Ml=cT(Ml,t),Ol.forEach(e=>{e(Ml)})}function dT({...t}){const e=uT(),n=o=>Ao({type:"UPDATE_TOAST",toast:{...o,id:e}}),i=()=>Ao({type:"DISMISS_TOAST",toastId:e});return Ao({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:o=>{o||i()}}}),{id:e,dismiss:i,update:n}}function Vf(){const[t,e]=P.useState(Ml);return P.useEffect(()=>(Ol.push(e),()=>{const n=Ol.indexOf(e);n>-1&&Ol.splice(n,1)}),[t]),{...t,toast:dT,dismiss:n=>Ao({type:"DISMISS_TOAST",toastId:n})}}var hu=Yv();const fT=Xv(hu);function Pt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t?.(o),n===!1||!o.defaultPrevented)return e?.(o)}}function qg(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function v0(...t){return e=>{let n=!1;const i=t.map(o=>{const l=qg(o,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<i.length;o++){const l=i[o];typeof l=="function"?l():qg(t[o],null)}}}}function jn(...t){return P.useCallback(v0(...t),t)}function pu(t,e=[]){let n=[];function i(l,u){const d=P.createContext(u),h=n.length;n=[...n,u];const p=y=>{const{scope:x,children:w,..._}=y,S=x?.[t]?.[h]||d,T=P.useMemo(()=>_,Object.values(_));return b.jsx(S.Provider,{value:T,children:w})};p.displayName=l+"Provider";function g(y,x){const w=x?.[t]?.[h]||d,_=P.useContext(w);if(_)return _;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[p,g]}const o=()=>{const l=n.map(u=>P.createContext(u));return function(d){const h=d?.[t]||l;return P.useMemo(()=>({[`__scope${t}`]:{...d,[t]:h}}),[d,h])}};return o.scopeName=t,[i,hT(o,...e)]}function hT(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const u=i.reduce((d,{useScope:h,scopeName:p})=>{const y=h(l)[`__scope${p}`];return{...d,...y}},{});return P.useMemo(()=>({[`__scope${e.scopeName}`]:u}),[u])}};return n.scopeName=e.scopeName,n}function Qd(t){const e=pT(t),n=P.forwardRef((i,o)=>{const{children:l,...u}=i,d=P.Children.toArray(l),h=d.find(gT);if(h){const p=h.props.children,g=d.map(y=>y===h?P.Children.count(p)>1?P.Children.only(null):P.isValidElement(p)?p.props.children:null:y);return b.jsx(e,{...u,ref:o,children:P.isValidElement(p)?P.cloneElement(p,void 0,g):null})}return b.jsx(e,{...u,ref:o,children:l})});return n.displayName=`${t}.Slot`,n}function pT(t){const e=P.forwardRef((n,i)=>{const{children:o,...l}=n;if(P.isValidElement(o)){const u=vT(o),d=yT(l,o.props);return o.type!==P.Fragment&&(d.ref=i?v0(i,u):u),P.cloneElement(o,d)}return P.Children.count(o)>1?P.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var x0=Symbol("radix.slottable");function mT(t){const e=({children:n})=>b.jsx(b.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=x0,e}function gT(t){return P.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===x0}function yT(t,e){const n={...e};for(const i in e){const o=t[i],l=e[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...d)=>{l(...d),o(...d)}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...t,...n}}function vT(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function xT(t){const e=t+"CollectionProvider",[n,i]=pu(e),[o,l]=n(e,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:T,children:A}=S,R=He.useRef(null),I=He.useRef(new Map).current;return b.jsx(o,{scope:T,itemMap:I,collectionRef:R,children:A})};u.displayName=e;const d=t+"CollectionSlot",h=Qd(d),p=He.forwardRef((S,T)=>{const{scope:A,children:R}=S,I=l(d,A),F=jn(T,I.collectionRef);return b.jsx(h,{ref:F,children:R})});p.displayName=d;const g=t+"CollectionItemSlot",y="data-radix-collection-item",x=Qd(g),w=He.forwardRef((S,T)=>{const{scope:A,children:R,...I}=S,F=He.useRef(null),L=jn(T,F),K=l(g,A);return He.useEffect(()=>(K.itemMap.set(F,{ref:F,...I}),()=>{K.itemMap.delete(F)})),b.jsx(x,{[y]:"",ref:L,children:R})});w.displayName=g;function _(S){const T=l(t+"CollectionConsumer",S);return He.useCallback(()=>{const R=T.collectionRef.current;if(!R)return[];const I=Array.from(R.querySelectorAll(`[${y}]`));return Array.from(T.itemMap.values()).sort((K,X)=>I.indexOf(K.ref.current)-I.indexOf(X.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:u,Slot:p,ItemSlot:w},_,i]}var wT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Yt=wT.reduce((t,e)=>
vendor: 5,088 bytes, line 8
8{const n=Qd(`Primitive.${e}`),i=P.forwardRef((o,l)=>{const{asChild:u,...d}=o,h=u?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(h,{...d,ref:l})});return i.displayName=`Primitive.${e}`,{...t,[e]:i}},{});function w0(t,e){t&&hu.flushSync(()=>t.dispatchEvent(e))}function Yn(t){const e=P.useRef(t);return P.useEffect(()=>{e.current=t}),P.useMemo(()=>(...n)=>e.current?.(...n),[])}function ST(t,e=globalThis?.document){const n=Yn(t);P.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[n,e])}var bT="DismissableLayer",Zd="dismissableLayer.update",TT="dismissableLayer.pointerDownOutside",PT="dismissableLayer.focusOutside",Qg,S0=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lf=P.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...h}=t,p=P.useContext(S0),[g,y]=P.useState(null),x=g?.ownerDocument??globalThis?.document,[,w]=P.useState({}),_=jn(e,X=>y(X)),S=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=S.indexOf(T),R=g?S.indexOf(g):-1,I=p.layersWithOutsidePointerEventsDisabled.size>0,F=R>=A,L=_T(X=>{const J=X.target,ve=[...p.branches].some(ce=>ce.contains(J));!F||ve||(o?.(X),u?.(X),X.defaultPrevented||d?.())},x),K=ET(X=>{const J=X.target;[...p.branches].some(ce=>ce.contains(J))||(l?.(X),u?.(X),X.defaultPrevented||d?.())},x);return ST(X=>{R===p.layers.size-1&&(i?.(X),!X.defaultPrevented&&d&&(X.preventDefault(),d()))},x),P.useEffect(()=>{if(g)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Qg=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),Zg(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Qg)}},[g,x,n,p]),P.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),Zg())},[g,p]),P.useEffect(()=>{const X=()=>w({});return document.addEventListener(Zd,X),()=>document.removeEventListener(Zd,X)},[]),b.jsx(Yt.div,{...h,ref:_,style:{pointerEvents:I?F?"auto":"none":void 0,...t.style},onFocusCapture:Pt(t.onFocusCapture,K.onFocusCapture),onBlurCapture:Pt(t.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Pt(t.onPointerDownCapture,L.onPointerDownCapture)})});Lf.displayName=bT;var CT="DismissableLayerBranch",b0=P.forwardRef((t,e)=>{const n=P.useContext(S0),i=P.useRef(null),o=jn(e,i);return P.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),b.jsx(Yt.div,{...t,ref:o})});b0.displayName=CT;function _T(t,e=globalThis?.document){const n=Yn(t),i=P.useRef(!1),o=P.useRef(()=>{});return P.useEffect(()=>{const l=d=>{if(d.target&&!i.current){let h=function(){T0(TT,n,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=h,e.addEventListener("click",o.current,{once:!0})):h()}else e.removeEventListener("click",o.current);i.current=!1},u=window.setTimeout(()=>{e.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),e.removeEventListener("pointerdown",l),e.removeEventListener("click",o.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}function ET(t,e=globalThis?.document){const n=Yn(t),i=P.useRef(!1);return P.useEffect(()=>{const o=l=>{l.target&&!i.current&&T0(PT,n,{originalEvent:l},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Zg(){const t=new CustomEvent(Zd);document.dispatchEvent(t)}function T0(t,e,n,{discrete:i}){const o=n.originalEvent.target,l=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),i?w0(o,l):o.dispatchEvent(l)}var kT=Lf,AT=b0,bs=globalThis?.document?P.useLayoutEffect:()=>{},NT="Portal",P0=P.forwardRef((t,e)=>{const{container:n,...i}=t,[o,l]=P.useState(!1);bs(()=>l(!0),[]);const u=n||o&&globalThis?.document?.body;return u?fT.createPortal(b.jsx(Yt.div,{...i,ref:e}),u):null});P0.displayName=NT;function RT(t,e){return P.useReducer((n,i)=>e[n][i]??n,t)}var Ff=t=>{const{present:e,children:n}=t,i=DT(e),o=typeof n=="function"?n({present:i.isPresent}):P.Children.only(n),l=jn(i.ref,OT(o));return typeof n=="function"||i.isPresent?P.cloneElement(o,{ref:l}):null};Ff.displayName="Presence";function DT(t){const[e,n]=P.useState(),i=P.useRef({}),o=P.useRef(t),l=P.useRef("none"),u=t?"mounted":"unmounted",[d,h]=RT(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const p=El(i.current);l.current=d==="mounted"?p:"none"},[d]),bs(()=>{const p=i.current,g=o.current;if(g!==t){const x=l.current,w=El(p);t?h("MOUNT"):w==="none"||p?.display==="none"?h("UNMOUNT"):h(g&&x!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,h]),bs(()=>
8{if(e){let p;const g=e.ownerDocument.defaultView??window,y=w=>{const S=El(i.current).includes(w.animationName);if(w.target===e&&S&&(h("ANIMATION_END"),!o.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",p=g.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},x=w=>{w.target===e&&(l.current=El(i.current))};return e.addEventListener("animationstart",x),e.addEventListener("animationcancel",y),e.addEventListener("animationend",y),()=>{g.clearTimeout(p),e.removeEventListener("animationstart",x),e.removeEventListener("animationcancel",y),e.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[e,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:P.useCallback(p=>{p&&(i.current=getComputedStyle(p)),n(p)},[])}}function El(t){return t?.animationName||"none"}function OT(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function MT({prop:t,defaultProp:e,onChange:n=()=>{}}){const[i,o]=IT({defaultProp:e,onChange:n}),l=t!==void 0,u=l?t:i,d=Yn(n),h=P.useCallback(p=>{if(l){const y=typeof p=="function"?p(t):p;y!==t&&d(y)}else o(p)},[l,t,o,d]);return[u,h]}function IT({defaultProp:t,onChange:e}){const n=P.useState(t),[i]=n,o=P.useRef(i),l=Yn(e);return P.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}var jT="VisuallyHidden",mu=P.forwardRef((t,e)=>b.jsx(Yt.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));mu.displayName=jT;var VT=mu,zf="ToastProvider",[Bf,LT,FT]=xT("Toast"),[C0]=pu("Toast",[FT]),[zT,gu]=C0(zf),_0=t=>{const{__scopeToast:e,label:n="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:l=50,children:u}=t,[d,h]=P.useState(null),[p,g]=P.useState(0),y=P.useRef(!1),x=P.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${zf}\`. Expected non-empty \`string\`.`),b.jsx(Bf.Provider,{scope:e,children:b.jsx(zT,{scope:e,label:n,duration:i,swipeDirection:o,swipeThreshold:l,toastCount:p,viewport:d,onViewportChange:h,onToastAdd:P.useCallback(()=>g(w=>w+1),[]),onToastRemove:P.useCallback(()=>g(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:x,children:u})})};_0.displayName=zf;var E0="ToastViewport",BT=["F8"],Gd="toast.viewportPause",Xd="toast.viewportResume",k0=P.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:i=BT,label:o="Notifications ({hotkey})",...l}=t,u=gu(E0,n),d=LT(n),h=P.useRef(null),p=P.useRef(null),g=P.useRef(null),y=P.useRef(null),x=jn(e,y,u.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=u.toastCount>0;P.useEffect(()=>{const T=A=>{i.length!==0&&i.every(I=>A[I]||A.code===I)&&y.current?.focus()};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[i]),P.useEffect(()=>{const T=h.current,A=y.current;if(_&&T&&A){const R=()=>{if(!u.isClosePausedRef.current){const K=new CustomEvent(Gd);A.dispatchEvent(K),u.isClosePausedRef.current=!0}},I=()=>{if(u.isClosePausedRef.current){const K=new CustomEvent(Xd);A.dispatchEvent(K),u.isClosePausedRef.current=!1}},F=K=>{!T.contains(K.relatedTarget)&&I()},L=()=>{T.contains(document.activeElement)||I()};return T.addEventListener("focusin",R),T.addEventListener("focusout",F),T.addEventListener("pointermove",R),T.addEventListener("pointerleave",L),window.addEventListener("blur",R),window.addEventListener("focus",I),()=>{T.removeEventListener("focusin",R),T.removeEventListener("focusout",F),T.removeEventListener("pointermove",R),T.removeEventListener("pointerleave",L),window.removeEventListener("blur",R),window.removeEventListener("focus",I)}}},[_,u.isClosePausedRef]);const S=P.useCallback(({tabbingDirection:T})=>{const R=d().map(I=>{const F=I.ref.current,L=[F,...eP(F)];return T==="forwards"?L:L.reverse()});return(T==="forwards"?R.reverse():R).flat()},[d]);return P.useEffect(()=>{const T=y.current;if(T){const A=R=>{const I=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!I){const L=document.activeElement,K=R.shiftKey;if(R.target===T&&K){p.current?.focus();return}const ve=S({tabbingDirection:K?"backwards":"forwards"}),ce=ve.findIndex(Ee=>Ee===L);Cd(ve.slice(ce+1))?R.preventDefault():K?p.current?.focus():g.current?.focus()}};return T.addEventListener("keydown",A),()=>T.removeEventListener("keydown",A)}},[d,S]),b.jsxs(AT,{ref:h,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&b.jsx(Yd,{ref:p,onFocusFromOutsideViewport:()=>{const T=S({tabbingDirection:"forwards"});Cd(T)}}),b.jsx(Bf.Slot,{scope:n,children:b.jsx(Yt.ol,{tabIndex:-1,...l,ref:x})}),_&&b.jsx(Yd,{ref:g,onFocusFromOutsideViewport:()=>{const T=S({tabbingDirection:"backwards"});Cd(T)}})]})});k0.displayName=E0;var A0="ToastFocusProxy",Yd=P.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i,...o}=t,l=gu(A0,n);return b.jsx(mu,{"aria-hidden":!0,tabIndex:0,...o,ref:e,style:{position:"fixed"},onFocus:u=>{const d=u.relatedTarget;!l.viewport?.contains(d)&&i()}})});Yd.displayName=A0;var yu="Toast",UT="toast.swipeStart",$T="toast.swipeMove",WT="toast.swipeCancel",HT
8="toast.swipeEnd",N0=P.forwardRef((t,e)=>{const{forceMount:n,open:i,defaultOpen:o,onOpenChange:l,...u}=t,[d=!0,h]=MT({prop:i,defaultProp:o,onChange:l});return b.jsx(Ff,{present:n||d,children:b.jsx(QT,{open:d,...u,ref:e,onClose:()=>h(!1),onPause:Yn(t.onPause),onResume:Yn(t.onResume),onSwipeStart:Pt(t.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Pt(t.onSwipeMove,p=>{const{x:g,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${g}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:Pt(t.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Pt(t.onSwipeEnd,p=>{const{x:g,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${g}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});N0.displayName=yu;var[KT,qT]=C0(yu,{onClose(){}}),QT=P.forwardRef((t,e)=>{const{__scopeToast:n,type:i="foreground",duration:o,open:l,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:x,onSwipeEnd:w,..._}=t,S=gu(yu,n),[T,A]=P.useState(null),R=jn(e,Z=>A(Z)),I=P.useRef(null),F=P.useRef(null),L=o||S.duration,K=P.useRef(0),X=P.useRef(L),J=P.useRef(0),{onToastAdd:ve,onToastRemove:ce}=S,Ee=Yn(()=>{T?.contains(document.activeElement)&&S.viewport?.focus(),u()}),q=P.useCallback(Z=>{!Z||Z===1/0||(window.clearTimeout(J.current),K.current=new Date().getTime(),J.current=window.setTimeout(Ee,Z))},[Ee]);P.useEffect(()=>{const Z=S.viewport;if(Z){const we=()=>{q(X.current),p?.()},me=()=>{const se=new Date().getTime()-K.current;X.current=X.current-se,window.clearTimeout(J.current),h?.()};return Z.addEventListener(Gd,me),Z.addEventListener(Xd,we),()=>{Z.removeEventListener(Gd,me),Z.removeEventListener(Xd,we)}}},[S.viewport,L,h,p,q]),P.useEffect(()=>{l&&!S.isClosePausedRef.current&&q(L)},[l,L,S.isClosePausedRef,q]),P.useEffect(()=>(ve(),()=>ce()),[ve,ce]);const ae=P.useMemo(()=>T?V0(T):null,[T]);return S.viewport?b.jsxs(b.Fragment,{children:[ae&&b.jsx(ZT,{__scopeToast:n,role:"status","aria-live":i==="foreground"?"assertive":"polite","aria-atomic":!0,children:ae}),b.jsx(KT,{scope:n,onClose:Ee,children:hu.createPortal(b.jsx(Bf.ItemSlot,{scope:n,children:b.jsx(kT,{asChild:!0,onEscapeKeyDown:Pt(d,()=>{S.isFocusedToastEscapeKeyDownRef.current||Ee(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(Yt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":S.swipeDirection,..._,ref:R,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Pt(t.onKeyDown,Z=>{Z.key==="Escape"&&(d?.(Z.nativeEvent),Z.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,Ee()))}),onPointerDown:Pt(t.onPointerDown,Z=>{Z.button===0&&(I.current={x:Z.clientX,y:Z.clientY})}),onPointerMove:Pt(t.onPointerMove,Z=>{if(!I.current)return;const we=Z.clientX-I.current.x,me=Z.clientY-I.current.y,se=!!F.current,B=["left","right"].includes(S.swipeDirection),ne=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,Y=B?ne(0,we):0,D=B?0:ne(0,me),U=Z.pointerType==="touch"?10:2,Ce={x:Y,y:D},Ae={originalEvent:Z,delta:Ce};se?(F.current=Ce,kl($T,y,Ae,{discrete:!1})):Gg(Ce,S.swipeDirection,U)?(F.current=Ce,kl(UT,g,Ae,{discrete:!1}),Z.target.setPointerCapture(Z.pointerId)):(Math.abs(we)>U||Math.abs(me)>U)&&(I.current=null)}),onPointerUp:Pt(t.onPointerUp,Z=>{const we=F.current,me=Z.target;if(me.hasPointerCapture(Z.pointerId)&&me.releasePointerCapture(Z.pointerId),F.current=null,I.current=null,we){const se=Z.currentTarget,B={originalEvent:Z,delta:we};Gg(we,S.swipeDirection,S.swipeThreshold)?kl(HT,w,B,{discrete:!0}):kl(WT,x,B,{discrete:!0}),se.addEventListener("click",ne=>ne.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),ZT=t=>{const{__scopeToast:e,children:n,...i}=t,o=gu(yu,e),[l,u]=P.useState(!1),[d,h]=P.useState(!1);return YT(()=>u(!0)),P.useEffect(()=>{const p=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(p)},[]),d?null:b.jsx(P0,{asChild:!0,children:b.jsx(mu,{...i,children:l&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},GT="ToastTitle",R0=P.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t;return b.jsx(Yt.div,{...i,ref:e})});R0.displayName=GT;var XT="ToastDescription",D0=P.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t;return b.jsx(Yt.div,{...i,ref:e})});D0.displayName=XT;var O0="ToastAction",M0=P.forwardRef((t,e)=>{const{altText:n,...i}=t;return n.trim()?b.jsx(j0,{altText:n,asChild:!0,children:b.jsx(Uf,{...i,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${O0}\`. Expected non-empty \`string\`.`),null)});M0.displayName=O0;var I0="ToastClose",Uf=P.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t,o=qT(I0,n);return b.jsx(j0,{asChild:!0,children:b.jsx(Yt.button,{type:"button",...i,ref:e,onClick:Pt(t.onClick,o.onClose)})})});Uf.displayName=I0;var j0=P.forwardRef((t,e)=>{const{__scopeToast:n,altText:i,...o}=t;return b.jsx(Yt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:e})});function V0(t){const e=[];
8return Array.from(t.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&e.push(i.textContent),JT(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",l=i.dataset.radixToastAnnounceExclude==="";if(!o)if(l){const u=i.dataset.radixToastAnnounceAlt;u&&e.push(u)}else e.push(...V0(i))}}),e}function kl(t,e,n,{discrete:i}){const o=n.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),i?w0(o,l):o.dispatchEvent(l)}var Gg=(t,e,n=0)=>{const i=Math.abs(t.x),o=Math.abs(t.y),l=i>o;return e==="left"||e==="right"?l&&i>n:!l&&o>n};function YT(t=()=>{}){const e=Yn(t);bs(()=>{let n=0,i=0;return n=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(i)}},[e])}function JT(t){return t.nodeType===t.ELEMENT_NODE}function eP(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Cd(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var tP=_0,L0=k0,F0=N0,z0=R0,B0=D0,U0=M0,$0=Uf;function W0(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=W0(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function H0(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=W0(t))&&(i&&(i+=" "),i+=e);return i}const Xg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Yg=H0,nP=(t,e)=>n=>{var i;if(e?.variants==null)return Yg(t,n?.class,n?.className);const{variants:o,defaultVariants:l}=e,u=Object.keys(o).map(p=>{const g=n?.[p],y=l?.[p];if(g===null)return null;const x=Xg(g)||Xg(y);return o[p][x]}),d=n&&Object.entries(n).reduce((p,g)=>{let[y,x]=g;return x===void 0||(p[y]=x),p},{}),h=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((p,g)=>{let{class:y,className:x,...w}=g;return Object.entries(w).every(_=>{let[S,T]=_;return Array.isArray(T)?T.includes({...l,...d}[S]):{...l,...d}[S]===T})?[...p,y,x]:p},[]);return Yg(t,u,h,n?.class,n?.className)};const rP=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K0=(...t)=>t.filter((e,n,i)=>!!e&&i.indexOf(e)===n).join(" ");var sP={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"};const iP=P.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...d},h)=>P.createElement("svg",{ref:h,...sP,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:K0("lucide",o),...d},[...u.map(([p,g])=>P.createElement(p,g)),...Array.isArray(l)?l:[l]]));const ia=(t,e)=>{const n=P.forwardRef(({className:i,...o},l)=>P.createElement(iP,{ref:l,iconNode:e,className:K0(`lucide-${rP(t)}`,i),...o}));return n.displayName=`${t}`,n};const oP=ia("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const aP=ia("CircleAlert",[["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"}]]);const q0=ia("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const Q0=ia("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const lP=ia("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),$f="-",uP=t=>{const e=dP(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{const d=u.split($f);return d[0]===""&&d.length!==1&&d.shift(),Z0(d,e)||cP(u)},getConflictingClassGroupIds:(u,d)=>{const h=n[u]||[];return d&&i[u]?[...h,...i[u]]:h}}},Z0=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],i=e.nextPart.get(n),o=i?Z0(t.slice(1),i):void 0;if(o)return o;if(e.validators.length===0)return;const l=t.join($f);return e.validators.find(({validator:u})=>u(l))?.classGroupId},Jg=/^\[(.+)\]$/,cP=t=>{if(Jg.test(t)){const e=Jg.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},dP=t=>{const{theme:e,prefix:n}=t,i={nextPart:new Map,validators:[]};
vendor: 5,128 bytes, line 8
8return hP(Object.entries(t.classGroups),n).forEach(([l,u])=>{Jd(u,i,l,e)}),i},Jd=(t,e,n,i)=>{t.forEach(o=>{if(typeof o=="string"){const l=o===""?e:ey(e,o);l.classGroupId=n;return}if(typeof o=="function"){if(fP(o)){Jd(o(i),e,n,i);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,u])=>{Jd(u,ey(e,l),n,i)})})},ey=(t,e)=>{let n=t;return e.split($f).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},fP=t=>t.isThemeGetter,hP=(t,e)=>e?t.map(([n,i])=>{const o=i.map(l=>typeof l=="string"?e+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([u,d])=>[e+u,d])):l);return[n,o]}):t,pP=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const o=(l,u)=>{n.set(l,u),e++,e>t&&(e=0,i=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return o(l,u),u},set(l,u){n.has(l)?n.set(l,u):o(l,u)}}},G0="!",mP=t=>{const{separator:e,experimentalParseClassName:n}=t,i=e.length===1,o=e[0],l=e.length,u=d=>{const h=[];let p=0,g=0,y;for(let T=0;T<d.length;T++){let A=d[T];if(p===0){if(A===o&&(i||d.slice(T,T+l)===e)){h.push(d.slice(g,T)),g=T+l;continue}if(A==="/"){y=T;continue}}A==="["?p++:A==="]"&&p--}const x=h.length===0?d:d.substring(g),w=x.startsWith(G0),_=w?x.substring(1):x,S=y&&y>g?y-g:void 0;return{modifiers:h,hasImportantModifier:w,baseClassName:_,maybePostfixModifierPosition:S}};return n?d=>n({className:d,parseClassName:u}):u},gP=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(i=>{i[0]==="["?(e.push(...n.sort(),i),n=[]):n.push(i)}),e.push(...n.sort()),e},yP=t=>({cache:pP(t.cacheSize),parseClassName:mP(t),...uP(t)}),vP=/\s+/,xP=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o}=e,l=[],u=t.trim().split(vP);let d="";for(let h=u.length-1;h>=0;h-=1){const p=u[h],{modifiers:g,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:w}=n(p);let _=!!w,S=i(_?x.substring(0,w):x);if(!S){if(!_){d=p+(d.length>0?" "+d:d);continue}if(S=i(x),!S){d=p+(d.length>0?" "+d:d);continue}_=!1}const T=gP(g).join(":"),A=y?T+G0:T,R=A+S;if(l.includes(R))continue;l.push(R);const I=o(S,_);for(let F=0;F<I.length;++F){const L=I[F];l.push(A+L)}d=p+(d.length>0?" "+d:d)}return d};function wP(){let t=0,e,n,i="";for(;t<arguments.length;)(e=arguments[t++])&&(n=X0(e))&&(i&&(i+=" "),i+=n);return i}const X0=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=X0(t[i]))&&(n&&(n+=" "),n+=e);return n};function SP(t,...e){let n,i,o,l=u;function u(h){const p=e.reduce((g,y)=>y(g),t());return n=yP(p),i=n.cache.get,o=n.cache.set,l=d,d(h)}function d(h){const p=i(h);if(p)return p;const g=xP(h,n);return o(h,g),g}return function(){return l(wP.apply(null,arguments))}}const et=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Y0=/^\[(?:([a-z-]+):)?(.+)\]$/i,bP=/^\d+\/\d+$/,TP=new Set(["px","full","screen"]),PP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CP=/\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$/,_P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,EP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dr=t=>di(t)||TP.has(t)||bP.test(t),Br=t=>Pi(t,"length",jP),di=t=>!!t&&!Number.isNaN(Number(t)),_d=t=>Pi(t,"number",di),wo=t=>!!t&&Number.isInteger(Number(t)),AP=t=>t.endsWith("%")&&di(t.slice(0,-1)),Re=t=>Y0.test(t),Ur=t=>PP.test(t),NP=new Set(["length","size","percentage"]),RP=t=>Pi(t,NP,J0),DP=t=>Pi(t,"position",J0),OP=new Set(["image","url"]),MP=t=>Pi(t,OP,LP),IP=t=>Pi(t,"",VP),So=()=>!0,Pi=(t,e,n)=>{const i=Y0.exec(t);return i?i[1]?typeof e=="string"?i[1]===e:e.has(i[1]):n(i[2]):!1},jP=t=>CP.test(t)&&!_P.test(t),J0=()=>!1,VP=t=>EP.test(t),LP=t=>kP.test(t),FP=()=>{const t=et("colors"),e=et("spacing"),n=et("blur"),i=et("brightness"),o=et("borderColor"),l=et("borderRadius"),u=et("borderSpacing"),d=et("borderWidth"),h=et("contrast"),p=et("grayscale"),g=et("hueRotate"),y=et("invert"),x=et("gap"),w=et("gradientColorStops"),_=et("gradientColorStopPositions"),S=et("inset"),T=et("margin"),A=et("opacity"),R=et("padding"),I=et("saturate"),F=et("scale"),L=et("sepia"),K=et("skew"),X=et("space"),J=et("translate"),ve=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",Re,e],q=()=>[Re,e],ae=()=>["",dr,Br],Z=()=>["auto",di,Re],we=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],me=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],ne=()=>["","0",Re],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[di,Re];return{cacheSize:500,separator:":",theme:{colors:[So],spacing:[dr,Br],blur:["none","",Ur,Re],brightness:D(),borderColor:[t],borderRadius:["n
8one","","full",Ur,Re],borderSpacing:q(),borderWidth:ae(),contrast:D(),grayscale:ne(),hueRotate:D(),invert:ne(),gap:q(),gradientColorStops:[t],gradientColorStopPositions:[AP,Br],inset:Ee(),margin:Ee(),opacity:D(),padding:q(),saturate:D(),scale:D(),sepia:ne(),skew:D(),space:q(),translate:q()},classGroups:{aspect:[{aspect:["auto","square","video",Re]}],container:["container"],columns:[{columns:[Ur]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:[...we(),Re]}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:ve()}],"overscroll-x":[{"overscroll-x":ve()}],"overscroll-y":[{"overscroll-y":ve()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wo,Re]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Re]}],grow:[{grow:ne()}],shrink:[{shrink:ne()}],order:[{order:["first","last","none",wo,Re]}],"grid-cols":[{"grid-cols":[So]}],"col-start-end":[{col:["auto",{span:["full",wo,Re]},Re]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[So]}],"row-start-end":[{row:["auto",{span:[wo,Re]},Re]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Re]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Re,e]}],"min-w":[{"min-w":[Re,e,"min","max","fit"]}],"max-w":[{"max-w":[Re,e,"none","full","min","max","fit","prose",{screen:[Ur]},Ur]}],h:[{h:[Re,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Re,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Re,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Re,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ur,Br]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_d]}],"font-family":[{font:[So]}],"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",Re]}],"line-clamp":[{"line-clamp":["none",di,_d]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dr,Re]}],"list-image":[{"list-image":["none",Re]}],"list-style-type":[{list:["none","disc","decimal",Re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dr,Br]}],"underline-offset":[{"underline-offset":["auto",dr,Re]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re]}],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",Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...we(),DP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",RP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},MP]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[_]}
vendor: 5,186 bytes, line 8
8],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...me(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:me()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...me()]}],"outline-offset":[{"outline-offset":[dr,Re]}],"outline-w":[{outline:[dr,Br]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[dr,Br]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ur,IP]}],"shadow-color":[{shadow:[So]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Ur,Re]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[I]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Re]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",Re]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",Re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[wo,Re]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[K]}],"skew-y":[{"skew-y":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Re]}],accent:[{accent:["auto",t]}],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",Re]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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"]}
8],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",Re]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[dr,Br,_d]}],stroke:[{stroke:[t,"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"]}}},zP=SP(FP);function fn(...t){return zP(H0(t))}const BP=tP,e1=P.forwardRef(({className:t,...e},n)=>b.jsx(L0,{ref:n,className:fn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));e1.displayName=L0.displayName;const UP=nP("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),t1=P.forwardRef(({className:t,variant:e,...n},i)=>b.jsx(F0,{ref:i,className:fn(UP({variant:e}),t),...n}));t1.displayName=F0.displayName;const $P=P.forwardRef(({className:t,...e},n)=>b.jsx(U0,{ref:n,className:fn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));$P.displayName=U0.displayName;const n1=P.forwardRef(({className:t,...e},n)=>b.jsx($0,{ref:n,className:fn("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 6,018 bytes, line 8
8/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:b.jsx(lP,{className:"h-4 w-4"})}));n1.displayName=$0.displayName;const r1=P.forwardRef(({className:t,...e},n)=>b.jsx(z0,{ref:n,className:fn("text-sm font-semibold",t),...e}));r1.displayName=z0.displayName;const s1=P.forwardRef(({className:t,...e},n)=>b.jsx(B0,{ref:n,className:fn("text-sm opacity-90",t),...e}));s1.displayName=B0.displayName;function WP(){const{toasts:t}=Vf();return b.jsxs(BP,{children:[t.map(function({id:e,title:n,description:i,action:o,...l}){return b.jsxs(t1,{...l,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(r1,{children:n}),i&&b.jsx(s1,{children:i})]}),o,b.jsx(n1,{})]},e)}),b.jsx(e1,{})]})}const HP=["top","right","bottom","left"],Hr=Math.min,sn=Math.max,zl=Math.round,Al=Math.floor,Qn=t=>({x:t,y:t}),KP={left:"right",right:"left",bottom:"top",top:"bottom"},qP={start:"end",end:"start"};function ef(t,e,n){return sn(t,Hr(e,n))}function yr(t,e){return typeof t=="function"?t(e):t}function vr(t){return t.split("-")[0]}function Ci(t){return t.split("-")[1]}function Wf(t){return t==="x"?"y":"x"}function Hf(t){return t==="y"?"height":"width"}function Kr(t){return["top","bottom"].includes(vr(t))?"y":"x"}function Kf(t){return Wf(Kr(t))}function QP(t,e,n){n===void 0&&(n=!1);const i=Ci(t),o=Kf(t),l=Hf(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(u=Bl(u)),[u,Bl(u)]}function ZP(t){const e=Bl(t);return[tf(t),e,tf(e)]}function tf(t){return t.replace(/start|end/g,e=>qP[e])}function GP(t,e,n){const i=["left","right"],o=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?l:u;default:return[]}}function XP(t,e,n,i){const o=Ci(t);let l=GP(vr(t),n==="start",i);return o&&(l=l.map(u=>u+"-"+o),e&&(l=l.concat(l.map(tf)))),l}function Bl(t){return t.replace(/left|right|bottom|top/g,e=>KP[e])}function YP(t){return{top:0,right:0,bottom:0,left:0,...t}}function i1(t){return typeof t!="number"?YP(t):{top:t,right:t,bottom:t,left:t}}function Ul(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function ty(t,e,n){let{reference:i,floating:o}=t;const l=Kr(e),u=Kf(e),d=Hf(u),h=vr(e),p=l==="y",g=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,x=i[d]/2-o[d]/2;let w;switch(h){case"top":w={x:g,y:i.y-o.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y};break;case"left":w={x:i.x-o.width,y};break;default:w={x:i.x,y:i.y}}switch(Ci(e)){case"start":w[u]-=x*(n&&p?-1:1);break;case"end":w[u]+=x*(n&&p?-1:1);break}return w}const JP=async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:u}=n,d=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(e));let p=await u.getElementRects({reference:t,floating:e,strategy:o}),{x:g,y}=ty(p,i,h),x=i,w={},_=0;for(let S=0;S<d.length;S++){const{name:T,fn:A}=d[S],{x:R,y:I,data:F,reset:L}=await A({x:g,y,initialPlacement:i,placement:x,strategy:o,middlewareData:w,rects:p,platform:u,elements:{reference:t,floating:e}});g=R??g,y=I??y,w={...w,[T]:{...w[T],...F}},L&&_<=50&&(_++,typeof L=="object"&&(L.placement&&(x=L.placement),L.rects&&(p=L.rects===!0?await u.getElementRects({reference:t,floating:e,strategy:o}):L.rects),{x:g,y}=ty(p,x,h)),S=-1)}return{x:g,y,placement:x,strategy:o,middlewareData:w}};async function Vo(t,e){var n;e===void 0&&(e={});const{x:i,y:o,platform:l,rects:u,elements:d,strategy:h}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:x=!1,padding:w=0}=yr(e,t),_=i1(w),T=d[x?y==="floating"?"reference":"floating":y],A=Ul(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(T)))==null||n?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),R=y==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),F=await(l.isElement==null?void 0:l.isElement(I))?await(l.getScale==null?void 0:l.getScale(I))||{x:1,y:1}:{x:1,y:1},L=Ul(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:I,strategy:h}):R);return{top:(A.top-L.top+_.top)/F.y,bottom:(L.bottom-A.bottom+_.bottom)/F.y,left:(A.left-L.left+_.left)/F.x,right:(L.right-A.right+_.right)/F.x}}const eC=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:l,platform:u,elements:d,middlewareData:h}=e,{element:p,padding:g=0}=yr(t,e)||{};if(p==null)return{};const y=i1(g),x={x:n,y:i},w=Kf(o),_=Hf(w),S=await u.getDimensions(p),T=w==="y",A=T?"top":"left",R=T?"bottom":"right",I=T?"clientHeight":"clientWidth",F=l.reference[_]+l.reference[w]-x[w]-l.floating[_],L=x[w]-l.reference[w],K=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let X=K?K[I]:0;(!X||!await(u.isElement==null?void 0:u.isElement(K)))&&(X=d.floating[I]||l.floating[_]);const J=F/2-L/2,ve=X/2-S[_]/2-1,ce=Hr(y[A],ve),Ee=Hr(y[R],ve),q=ce,ae=X-S[_]-Ee,Z=X/2-S[_]/2+J,we=ef(q,Z,ae),me=!h.arrow&&Ci(o)!=null&&Z!==we&&l.reference[_]/2-(Z<q?ce:Ee)-S[_]/2<0,se=me?Z<q?Z-q:Z-ae:0;return{[w]:x[w]+se,data:{[w]:we,centerOffset:Z-we-se,...me&&{alignmentOffset:se}},reset:me}}}),tC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:l,rects:u,initialPlacement:d,platform:h,elements:p}=e,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:S=!0,...T}=yr(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};
vendor: 4,308 bytes, line 8
8const A=vr(o),R=Kr(d),I=vr(d)===d,F=await(h.isRTL==null?void 0:h.isRTL(p.floating)),L=x||(I||!S?[Bl(d)]:ZP(d)),K=_!=="none";!x&&K&&L.push(...XP(d,S,_,F));const X=[d,...L],J=await Vo(e,T),ve=[];let ce=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&ve.push(J[A]),y){const Z=QP(o,u,F);ve.push(J[Z[0]],J[Z[1]])}if(ce=[...ce,{placement:o,overflows:ve}],!ve.every(Z=>Z<=0)){var Ee,q;const Z=(((Ee=l.flip)==null?void 0:Ee.index)||0)+1,we=X[Z];if(we)return{data:{index:Z,overflows:ce},reset:{placement:we}};let me=(q=ce.filter(se=>se.overflows[0]<=0).sort((se,B)=>se.overflows[1]-B.overflows[1])[0])==null?void 0:q.placement;if(!me)switch(w){case"bestFit":{var ae;const se=(ae=ce.filter(B=>{if(K){const ne=Kr(B.placement);return ne===R||ne==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ne=>ne>0).reduce((ne,Y)=>ne+Y,0)]).sort((B,ne)=>B[1]-ne[1])[0])==null?void 0:ae[0];se&&(me=se);break}case"initialPlacement":me=d;break}if(o!==me)return{reset:{placement:me}}}return{}}}};function ny(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ry(t){return HP.some(e=>t[e]>=0)}const nC=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...o}=yr(t,e);switch(i){case"referenceHidden":{const l=await Vo(e,{...o,elementContext:"reference"}),u=ny(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:ry(u)}}}case"escaped":{const l=await Vo(e,{...o,altBoundary:!0}),u=ny(l,n.floating);return{data:{escapedOffsets:u,escaped:ry(u)}}}default:return{}}}}};async function rC(t,e){const{placement:n,platform:i,elements:o}=t,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=vr(n),d=Ci(n),h=Kr(n)==="y",p=["left","top"].includes(u)?-1:1,g=l&&h?-1:1,y=yr(e,t);let{mainAxis:x,crossAxis:w,alignmentAxis:_}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof _=="number"&&(w=d==="end"?_*-1:_),h?{x:w*g,y:x*p}:{x:x*p,y:w*g}}const sC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:l,placement:u,middlewareData:d}=e,h=await rC(e,t);return u===((n=d.offset)==null?void 0:n.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:u}}}}},iC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:T=>{let{x:A,y:R}=T;return{x:A,y:R}}},...h}=yr(t,e),p={x:n,y:i},g=await Vo(e,h),y=Kr(vr(o)),x=Wf(y);let w=p[x],_=p[y];if(l){const T=x==="y"?"top":"left",A=x==="y"?"bottom":"right",R=w+g[T],I=w-g[A];w=ef(R,w,I)}if(u){const T=y==="y"?"top":"left",A=y==="y"?"bottom":"right",R=_+g[T],I=_-g[A];_=ef(R,_,I)}const S=d.fn({...e,[x]:w,[y]:_});return{...S,data:{x:S.x-n,y:S.y-i,enabled:{[x]:l,[y]:u}}}}}},oC=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:o,rects:l,middlewareData:u}=e,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=yr(t,e),g={x:n,y:i},y=Kr(o),x=Wf(y);let w=g[x],_=g[y];const S=yr(d,e),T=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const I=x==="y"?"height":"width",F=l.reference[x]-l.floating[I]+T.mainAxis,L=l.reference[x]+l.reference[I]-T.mainAxis;w<F?w=F:w>L&&(w=L)}if(p){var A,R;const I=x==="y"?"width":"height",F=["top","left"].includes(vr(o)),L=l.reference[y]-l.floating[I]+(F&&((A=u.offset)==null?void 0:A[y])||0)+(F?0:T.crossAxis),K=l.reference[y]+l.reference[I]+(F?0:((R=u.offset)==null?void 0:R[y])||0)-(F?T.crossAxis:0);_<L?_=L:_>K&&(_=K)}return{[x]:w,[y]:_}}}},aC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:l,platform:u,elements:d}=e,{apply:h=()=>{},...p}=yr(t,e),g=await Vo(e,p),y=vr(o),x=Ci(o),w=Kr(o)==="y",{width:_,height:S}=l.floating;let T,A;y==="top"||y==="bottom"?(T=y,A=x===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(A=y,T=x==="end"?"top":"bottom");const R=S-g.top-g.bottom,I=_-g.left-g.right,F=Hr(S-g[T],R),L=Hr(_-g[A],I),K=!e.middlewareData.shift;let X=F,J=L;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(J=I),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(X=R),K&&!x){const ce=sn(g.left,0),Ee=sn(g.right,0),q=sn(g.to
vendor: 9,866 bytes, line 8
8p,0),ae=sn(g.bottom,0);w?J=_-2*(ce!==0||Ee!==0?ce+Ee:sn(g.left,g.right)):X=S-2*(q!==0||ae!==0?q+ae:sn(g.top,g.bottom))}await h({...e,availableWidth:J,availableHeight:X});const ve=await u.getDimensions(d.floating);return _!==ve.width||S!==ve.height?{reset:{rects:!0}}:{}}}};function vu(){return typeof window<"u"}function _i(t){return o1(t)?(t.nodeName||"").toLowerCase():"#document"}function ln(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function nr(t){var e;return(e=(o1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function o1(t){return vu()?t instanceof Node||t instanceof ln(t).Node:!1}function Vn(t){return vu()?t instanceof Element||t instanceof ln(t).Element:!1}function Jn(t){return vu()?t instanceof HTMLElement||t instanceof ln(t).HTMLElement:!1}function sy(t){return!vu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ln(t).ShadowRoot}function oa(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=Ln(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function lC(t){return["table","td","th"].includes(_i(t))}function xu(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function qf(t){const e=Qf(),n=Vn(t)?Ln(t):t;return["transform","translate","scale","rotate","perspective"].some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function uC(t){let e=qr(t);for(;Jn(e)&&!gi(e);){if(qf(e))return e;if(xu(e))return null;e=qr(e)}return null}function Qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gi(t){return["html","body","#document"].includes(_i(t))}function Ln(t){return ln(t).getComputedStyle(t)}function wu(t){return Vn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function qr(t){if(_i(t)==="html")return t;const e=t.assignedSlot||t.parentNode||sy(t)&&t.host||nr(t);return sy(e)?e.host:e}function a1(t){const e=qr(t);return gi(e)?t.ownerDocument?t.ownerDocument.body:t.body:Jn(e)&&oa(e)?e:a1(e)}function Lo(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=a1(t),l=o===((i=t.ownerDocument)==null?void 0:i.body),u=ln(o);if(l){const d=nf(u);return e.concat(u,u.visualViewport||[],oa(o)?o:[],d&&n?Lo(d):[])}return e.concat(o,Lo(o,[],n))}function nf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function l1(t){const e=Ln(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=Jn(t),l=o?t.offsetWidth:n,u=o?t.offsetHeight:i,d=zl(n)!==l||zl(i)!==u;return d&&(n=l,i=u),{width:n,height:i,$:d}}function Zf(t){return Vn(t)?t:t.contextElement}function fi(t){const e=Zf(t);if(!Jn(e))return Qn(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:l}=l1(e);let u=(l?zl(n.width):n.width)/i,d=(l?zl(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const cC=Qn(0);function u1(t){const e=ln(t);return!Qf()||!e.visualViewport?cC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==ln(t)?!1:e}function Ts(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),l=Zf(t);let u=Qn(1);e&&(i?Vn(i)&&(u=fi(i)):u=fi(t));const d=dC(l,n,i)?u1(l):Qn(0);let h=(o.left+d.x)/u.x,p=(o.top+d.y)/u.y,g=o.width/u.x,y=o.height/u.y;if(l){const x=ln(l),w=i&&Vn(i)?ln(i):i;let _=x,S=nf(_);for(;S&&i&&w!==_;){const T=fi(S),A=S.getBoundingClientRect(),R=Ln(S),I=A.left+(S.clientLeft+parseFloat(R.paddingLeft))*T.x,F=A.top+(S.clientTop+parseFloat(R.paddingTop))*T.y;h*=T.x,p*=T.y,g*=T.x,y*=T.y,h+=I,p+=F,_=ln(S),S=nf(_)}}return Ul({width:g,height:y,x:h,y:p})}function Gf(t,e){const n=wu(t).scrollLeft;return e?e.left+n:Ts(nr(t)).left+n}function c1(t,e,n){n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Gf(t,i)),l=i.top+e.scrollTop;return{x:o,y:l}}function fC(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const l=o==="fixed",u=nr(i),d=e?xu(e.floating):!1;if(i===u||d&&l)return n;let h={scrollLeft:0,scrollTop:0},p=Qn(1);const g=Qn(0),y=Jn(i);if((y||!y&&!l)&&((_i(i)!=="body"||oa(u))&&(h=wu(i)),Jn(i))){const w=Ts(i);p=fi(i),g.x=w.x+i.clientLeft,g.y=w.y+i.clientTop}const x=u&&!y&&!l?c1(u,h,!0):Qn(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-h.scrollLeft*p.x+g.x+x.x,y:n.y*p.y-h.scrollTop*p.y+g.y+x.y}}function hC(t){return Array.from(t.getClientRects())}function pC(t){const e=nr(t),n=wu(t),i=t.ownerDocument.body,o=sn(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=sn(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+Gf(t);const d=-n.scrollTop;return Ln(i).direction==="rtl"&&(u+=sn(e.clientWidth,i.clientWidth)-o),{width:o,height:l,x:u,y:d}}function mC(t,e){const n=ln(t),i=nr(t),o=n.visualViewport;let l=i.clientWidth,u=i.clientHeight,d=0,h=0;if(o){l=o.width,u=o.height;const p=Qf();(!p||p&&e==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:l,height:u,x:d,y:h}}function gC(t,e){const n=Ts(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,l=Jn(t)?fi(t):Qn(1),u=t.clientWidth*l.x,d=t.clientHeight*l.y,h=o*l.x,p=i*l.y;return{width:u,height:d,x:h,y:p}}function iy(t,e,n){let i;if(e==="viewport")i=mC(t,n);else if(e==="document")i=pC(nr(t));else if(Vn(e))i=gC(e,n);else{const o=u1(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Ul(i)}function d1(t,e){const n=qr(t);return n===e||!Vn(n)||gi(n)?!1:Ln(n).position==="fixed"||d1(n,e)}function yC(t,e){const n=e.get(t);if(n)return n;let i=Lo(t,[],!1).filter(d=>Vn(d)&&_i(d)!=="body"),o=null;const l=Ln(t).position==="fixed";let u=l?qr(t):t;for(;Vn(u)&&!gi(u);){const d=Ln(u),h=qf(u);!h&&d.position==="fixed"&&(o=null),(l?!h&&!o:!h&&d.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||oa(u)&&!h&&d1(t,u))?i=i.filter(g=>g!==u):o=d,u=qr(u)}return e.set(t,i),i}function vC(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const u=[...n==="clippingAncestors"?xu(e)?[]:yC(e,this._c):[].concat(n),i],d=u[0],h=u.reduce((p,g)=>{const y=iy(e,g,o);return p.top=sn(y.top,p.top),p.right=Hr(y.right,p.right),p.bottom=Hr(y.bottom,p.bottom),p.left=sn(y.left,p.left),p},iy(e,d,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function xC(t){const{width:e,height:n}=l1(t);return{width:e,height:n}}function wC(t,e,n){const i=Jn(e),o=nr(e),l=n==="fixed",u=Ts(t,!0,l,e);let d={scrollLeft:0,scrollTop:0};const h=Qn(0);if(i||!i&&!l)if((_i(e)!=="body"||oa(o))&&(d=wu(e)),i){const x=Ts(e,!0,l,e);h.x=x.x+e.clientLeft,h.y=x.y+e.clientTop}else o&&(h.x=Gf(o));const p=o&&!i&&!l?c1(o,d):Qn(0),g=u.left+d.scrollLeft-h.x-p.x,y=u.top+d.scrollTop-h.y-p.y;return{x:g,y,width:u.width,height:u.height}}function Ed(t){return Ln(t).position==="static"}function oy(t,e){if(!Jn(t)||Ln(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return nr(t)===n&&(n=n.ownerDocument.body),n}function f1(t,e){const n=ln(t);if(xu(t))return n;if(!Jn(t)){let o=qr(t);for(;o&&!gi(o);){if(Vn(o)&&!Ed(o))return o;o=qr(o)}return n}let i=oy(t,e);for(;i&&lC(i)&&Ed(i);)i=oy(i,e);return i&&gi(i)&&Ed(i)&&!qf(i)?n:i||uC(t)||n}const SC=async function(t){const e=this.getOffsetParent||f1,n=this.getDimensions,i=await n(t.floating);return{reference:wC(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function bC(t){return Ln(t).direction==="rtl"}const TC={convertOffsetParentRelativeRectToViewportRelativeRect:fC,getDocumentElement:nr,getClippingRect:vC,getOffsetParent:f1,getElementRects:SC,getClientRects:hC,getDimensions:xC,getScale:fi,isElement:Vn,isRTL:bC};function h1(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function PC(t,e){let n=null,i;const o=nr(t);function l(){var d;clearTimeout(i),(d=n)==null||d.disconnect(),n=null}function u(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const p=t.getBoundingClientRect(),{left:g,top:y,width:x,height:w}=p;if(d||e(),!x||!w)return;const _=Al(y),S=Al(o.clientWidth-(g+x)),T=Al(o.clientHeight-(y+w)),A=Al(g),I={rootMargin:-_+"px "+-S+"px "+-T+"px "+-A+"px",threshold:sn(0,Hr(1,h))||1};let F=!0;function L(K){const X=K[0].intersectionRatio;if(X!==h){if(!F)return u();X?u(!1,X):i=setTimeout(()=>{u(!1,1e-7)},1e3)}X===1&&!h1(p,t.getBoundingClientRect())&&u(),F=!1}try{n=new IntersectionObserver(L,{...I,root:o.ownerDocument})}catch{n=new IntersectionObserver(L,I)}n.observe(t)}return u(!0),l}function CC(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,p=Zf(t),g=o||l?[...p?Lo(p):[],...Lo(e)]:[];g.forEach(A=>{o&&A.addEventListener("scroll",n,{passive:!0}),l&&A.addEventListener("resize",n)});const y=p&&d?PC(p,n):null;let x=-1,w=null;u&&(w=new ResizeObserver(A=>{let[R]=A;R&&R.target===p&&w&&(w.unobserve(e),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var I;(I=w)==null||I.observe(e)})),n()}),p&&!h&&w.observe(p),w.observe(e));let _,S=h?Ts(t):null;h&&T();function T(){const A=Ts(t);S&&!h1(S,A)&&n(),S=A,_=requestAnimationFrame(T)}return n(),()=>{var A;g.forEach(R=>{o&&R.removeEventListener("scroll",n),l&&R.removeEventListener("resize",n)}),y?.(),(A=w)==null||A.disconnect(),w=null,h&&cancelAnimationFrame(_)}}const _C=sC,EC=iC,kC=tC,AC=aC,NC=nC,ay=eC,RC=oC,DC=(t,e,n)=>{const i=new Map,o={platform:TC,...n},l={...o.platform,_c:i};return JP(t,e,{...o,platform:l})};var Il=typeof document<"u"?P.useLayoutEffect:P.useEffect;function $l(t,e){if(t===e)return!0;
vendor: 5,167 bytes, line 8
8if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,i,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;i--!==0;)if(!$l(t[i],e[i]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){const l=o[i];if(!(l==="_owner"&&t.$$typeof)&&!$l(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}function p1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function ly(t,e){const n=p1(t);return Math.round(e*n)/n}function kd(t){const e=P.useRef(t);return Il(()=>{e.current=t}),e}function OC(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:h,open:p}=t,[g,y]=P.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[x,w]=P.useState(i);$l(x,i)||w(i);const[_,S]=P.useState(null),[T,A]=P.useState(null),R=P.useCallback(B=>{B!==K.current&&(K.current=B,S(B))},[]),I=P.useCallback(B=>{B!==X.current&&(X.current=B,A(B))},[]),F=l||_,L=u||T,K=P.useRef(null),X=P.useRef(null),J=P.useRef(g),ve=h!=null,ce=kd(h),Ee=kd(o),q=kd(p),ae=P.useCallback(()=>{if(!K.current||!X.current)return;const B={placement:e,strategy:n,middleware:x};Ee.current&&(B.platform=Ee.current),DC(K.current,X.current,B).then(ne=>{const Y={...ne,isPositioned:q.current!==!1};Z.current&&!$l(J.current,Y)&&(J.current=Y,hu.flushSync(()=>{y(Y)}))})},[x,e,n,Ee,q]);Il(()=>{p===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,y(B=>({...B,isPositioned:!1})))},[p]);const Z=P.useRef(!1);Il(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Il(()=>{if(F&&(K.current=F),L&&(X.current=L),F&&L){if(ce.current)return ce.current(F,L,ae);ae()}},[F,L,ae,ce,ve]);const we=P.useMemo(()=>({reference:K,floating:X,setReference:R,setFloating:I}),[R,I]),me=P.useMemo(()=>({reference:F,floating:L}),[F,L]),se=P.useMemo(()=>{const B={position:n,left:0,top:0};if(!me.floating)return B;const ne=ly(me.floating,g.x),Y=ly(me.floating,g.y);return d?{...B,transform:"translate("+ne+"px, "+Y+"px)",...p1(me.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:Y}},[n,d,me.floating,g.x,g.y]);return P.useMemo(()=>({...g,update:ae,refs:we,elements:me,floatingStyles:se}),[g,ae,we,me,se])}const MC=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:i,padding:o}=typeof t=="function"?t(n):t;return i&&e(i)?i.current!=null?ay({element:i.current,padding:o}).fn(n):{}:i?ay({element:i,padding:o}).fn(n):{}}}},IC=(t,e)=>({..._C(t),options:[t,e]}),jC=(t,e)=>({...EC(t),options:[t,e]}),VC=(t,e)=>({...RC(t),options:[t,e]}),LC=(t,e)=>({...kC(t),options:[t,e]}),FC=(t,e)=>({...AC(t),options:[t,e]}),zC=(t,e)=>({...NC(t),options:[t,e]}),BC=(t,e)=>({...MC(t),options:[t,e]});var UC="Arrow",m1=P.forwardRef((t,e)=>{const{children:n,width:i=10,height:o=5,...l}=t;return b.jsx(Yt.svg,{...l,ref:e,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});m1.displayName=UC;var $C=m1;function WC(t){const[e,n]=P.useState(void 0);return bs(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let u,d;if("borderBoxSize"in l){const h=l.borderBoxSize,p=Array.isArray(h)?h[0]:h;u=p.inlineSize,d=p.blockSize}else u=t.offsetWidth,d=t.offsetHeight;n({width:u,height:d})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else n(void 0)},[t]),e}var g1="Popper",[y1,v1]=pu(g1),[jR,x1]=y1(g1),w1="PopperAnchor",S1=P.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:i,...o}=t,l=x1(w1,n),u=P.useRef(null),d=jn(e,u);return P.useEffect(()=>{l.onAnchorChange(i?.current||u.current)}),i?null:b.jsx(Yt.div,{...o,ref:d})});S1.displayName=w1;var Xf="PopperContent",[HC,KC]=y1(Xf),b1=P.forwardRef((t,e)=>{const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:l="center",alignOffset:u=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:w="optimized",onPlaced:_,...S}=t,T=x1(Xf,n),[A,R]=P.useState(null),I=jn(e,Le=>R(Le)),[F,L]=P.useState(null),K=WC(F),X=K?.width??0,J=K?.height??0,ve=i+(l!=="center"?"-"+l:""),ce=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},Ee=Array.isArray(p)?p:[p],q=Ee.length>0,ae={padding:ce,boundary:Ee.filter(QC),altBoundary:q},{refs:Z,floatingStyles:we,placement:me,isPositioned:se,middlewareData:B}=OC({strategy:"fixed",placement:ve,whileElementsMounted:(...Le)=>CC(...Le,{animationFrame:w==="always"}),elements:{reference:T.anchor},middleware:[IC({mainAxis:o+J,alignmentAxis:u}),h&&jC({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?VC():void 0,...ae}),h&&LC({...ae}),FC({...ae,apply:({elements:Le,rects:Ve,availableWidth:Ke,availableHeight:wt})=>{const{width:zn,height:ks}=Ve.reference,hn=Le.floating.style;hn.setProperty("--radix-popper-available-width",`${Ke}px`),hn.setProperty("--radix-popper-available-height",`${wt}
8px`),hn.setProperty("--radix-popper-anchor-width",`${zn}px`),hn.setProperty("--radix-popper-anchor-height",`${ks}px`)}}),F&&BC({element:F,padding:d}),ZC({arrowWidth:X,arrowHeight:J}),x&&zC({strategy:"referenceHidden",...ae})]}),[ne,Y]=C1(me),D=Yn(_);bs(()=>{se&&D?.()},[se,D]);const U=B.arrow?.x,Ce=B.arrow?.y,Ae=B.arrow?.centerOffset!==0,[je,Ie]=P.useState();return bs(()=>{A&&Ie(window.getComputedStyle(A).zIndex)},[A]),b.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...we,transform:se?we.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:b.jsx(HC,{scope:n,placedSide:ne,onArrowChange:L,arrowX:U,arrowY:Ce,shouldHideArrow:Ae,children:b.jsx(Yt.div,{"data-side":ne,"data-align":Y,...S,ref:I,style:{...S.style,animation:se?void 0:"none"}})})})});b1.displayName=Xf;var T1="PopperArrow",qC={top:"bottom",right:"left",bottom:"top",left:"right"},P1=P.forwardRef(function(e,n){const{__scopePopper:i,...o}=e,l=KC(T1,i),u=qC[l.placedSide];return b.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:b.jsx($C,{...o,ref:n,style:{...o.style,display:"block"}})})});P1.displayName=T1;function QC(t){return t!==null}var ZC=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:i,middlewareData:o}=e,u=o.arrow?.centerOffset!==0,d=u?0:t.arrowWidth,h=u?0:t.arrowHeight,[p,g]=C1(n),y={start:"0%",center:"50%",end:"100%"}[g],x=(o.arrow?.x??0)+d/2,w=(o.arrow?.y??0)+h/2;let _="",S="";return p==="bottom"?(_=u?y:`${x}px`,S=`${-h}px`):p==="top"?(_=u?y:`${x}px`,S=`${i.floating.height+h}px`):p==="right"?(_=`${-h}px`,S=u?y:`${w}px`):p==="left"&&(_=`${i.floating.width+h}px`,S=u?y:`${w}px`),{data:{x:_,y:S}}}});function C1(t){const[e,n="center"]=t.split("-");return[e,n]}var GC=S1,XC=b1,YC=P1,[Su]=pu("Tooltip",[v1]),Yf=v1(),_1="TooltipProvider",JC=700,uy="tooltip.open",[e_,E1]=Su(_1),k1=t=>{const{__scopeTooltip:e,delayDuration:n=JC,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:l}=t,u=P.useRef(!0),d=P.useRef(!1),h=P.useRef(0);return P.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),b.jsx(e_,{scope:e,isOpenDelayedRef:u,delayDuration:n,onOpen:P.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:P.useCallback(p=>{d.current=p},[]),disableHoverableContent:o,children:l})};k1.displayName=_1;var A1="Tooltip",[VR,bu]=Su(A1),rf="TooltipTrigger",t_=P.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,o=bu(rf,n),l=E1(rf,n),u=Yf(n),d=P.useRef(null),h=jn(e,d,o.onTriggerChange),p=P.useRef(!1),g=P.useRef(!1),y=P.useCallback(()=>p.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),b.jsx(GC,{asChild:!0,...u,children:b.jsx(Yt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:h,onPointerMove:Pt(t.onPointerMove,x=>{x.pointerType!=="touch"&&!g.current&&!l.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:Pt(t.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:Pt(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Pt(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:Pt(t.onBlur,o.onClose),onClick:Pt(t.onClick,o.onClose)})})});t_.displayName=rf;var n_="TooltipPortal",[LR,r_]=Su(n_,{forceMount:void 0}),yi="TooltipContent",N1=P.forwardRef((t,e)=>{const n=r_(yi,t.__scopeTooltip),{forceMount:i=n.forceMount,side:o="top",...l}=t,u=bu(yi,t.__scopeTooltip);return b.jsx(Ff,{present:i||u.open,children:u.disableHoverableContent?b.jsx(R1,{side:o,...l,ref:e}):b.jsx(s_,{side:o,...l,ref:e})})}),s_=P.forwardRef((t,e)=>{const n=bu(yi,t.__scopeTooltip),i=E1(yi,t.__scopeTooltip),o=P.useRef(null),l=jn(e,o),[u,d]=P.useState(null),{trigger:h,onClose:p}=n,g=o.current,{onPointerInTransitChange:y}=i,x=P.useCallback(()=>{d(null),y(!1)},[y]),w=P.useCallback((_,S)=>{const T=_.currentTarget,A={x:_.clientX,y:_.clientY},R=u_(A,T.getBoundingClientRect()),I=c_(A,R),F=d_(S.getBoundingClientRect()),L=h_([...I,...F]);d(L),y(!0)},[y]);return P.useEffect(()=>()=>x(),[x]),P.useEffect(()=>{if(h&&g){const _=T=>w(T,g),S=T=>w(T,h);return h.addEventListener("pointerleave",_),g.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",_),g.removeEventListener("pointerleave",S)}}},[h,g,w,x]),P.useEffect(()=>{if(u){const _=S=>{const T=S.target,A={x:S.clientX,y:S.clientY},R=h?.contains(T)||g?.contains(T),I=!f_(A,u);R?x():I&&(x(),p())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}
vendor: 4,185 bytes, line 8
8},[h,g,u,p,x]),b.jsx(R1,{...t,ref:l})}),[i_,o_]=Su(A1,{isInside:!1}),a_=mT("TooltipContent"),R1=P.forwardRef((t,e)=>{const{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:u,...d}=t,h=bu(yi,n),p=Yf(n),{onClose:g}=h;return P.useEffect(()=>(document.addEventListener(uy,g),()=>document.removeEventListener(uy,g)),[g]),P.useEffect(()=>{if(h.trigger){const y=x=>{x.target?.contains(h.trigger)&&g()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,g]),b.jsx(Lf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:y=>y.preventDefault(),onDismiss:g,children:b.jsxs(XC,{"data-state":h.stateAttribute,...p,...d,ref:e,style:{...d.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:[b.jsx(a_,{children:i}),b.jsx(i_,{scope:n,isInside:!0,children:b.jsx(VT,{id:h.contentId,role:"tooltip",children:o||i})})]})})});N1.displayName=yi;var D1="TooltipArrow",l_=P.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,o=Yf(n);return o_(D1,n).isInside?null:b.jsx(YC,{...o,...i,ref:e})});l_.displayName=D1;function u_(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),l=Math.abs(e.left-t.x);switch(Math.min(n,i,o,l)){case l:return"left";case o:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function c_(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return i}function d_(t){const{top:e,right:n,bottom:i,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:i},{x:o,y:i}]}function f_(t,e){const{x:n,y:i}=t;let o=!1;for(let l=0,u=e.length-1;l<e.length;u=l++){const d=e[l].x,h=e[l].y,p=e[u].x,g=e[u].y;h>i!=g>i&&n<(p-d)*(i-h)/(g-h)+d&&(o=!o)}return o}function h_(t){const e=t.slice();return e.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),p_(e)}function p_(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const o=t[i];for(;e.length>=2;){const l=e[e.length-1],u=e[e.length-2];if((l.x-u.x)*(o.y-u.y)>=(l.y-u.y)*(o.x-u.x))e.pop();else break}e.push(o)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const o=t[i];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(o.y-u.y)>=(l.y-u.y)*(o.x-u.x))n.pop();else break}n.push(o)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var m_=k1,O1=N1;const g_=m_,y_=P.forwardRef(({className:t,sideOffset:e=4,...n},i)=>b.jsx(O1,{ref:i,sideOffset:e,className:fn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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 origin-[--radix-tooltip-content-transform-origin]",t),...n}));y_.displayName=O1.displayName;const M1=P.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:fn("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",t),...e}));M1.displayName="Card";const v_=P.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:fn("flex flex-col space-y-1.5 p-6",t),...e}));v_.displayName="CardHeader";const x_=P.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:fn("text-2xl font-semibold leading-none tracking-tight",t),...e}));x_.displayName="CardTitle";const w_=P.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:fn("text-sm text-muted-foreground",t),...e}));
vendor: 17,265 bytes, line 8
8w_.displayName="CardDescription";const I1=P.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:fn("p-6 pt-0",t),...e}));I1.displayName="CardContent";const S_=P.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:fn("flex items-center p-6 pt-0",t),...e}));S_.displayName="CardFooter";function b_(){return b.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:b.jsx(M1,{className:"w-full max-w-md mx-4",children:b.jsxs(I1,{className:"pt-6",children:[b.jsxs("div",{className:"flex mb-4 gap-2",children:[b.jsx(aP,{className:"h-8 w-8 text-red-500"}),b.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),b.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}const j1=P.createContext({});function V1(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Jf=P.createContext(null),L1=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function T_(t=!0){const e=P.useContext(Jf);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,l=P.useId();P.useEffect(()=>{t&&o(l)},[t]);const u=P.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const eh=typeof window<"u",F1=eh?P.useLayoutEffect:P.useEffect,un=t=>t;let z1=un;function th(t){let e;return()=>(e===void 0&&(e=t()),e)}const vi=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},mr=t=>t*1e3,gr=t=>t/1e3,P_={useManualTiming:!1};function C_(t){let e=new Set,n=new Set,i=!1,o=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(h.schedule(p),t()),p(u)}const h={schedule:(p,g=!1,y=!1)=>{const w=y&&i?e:n;return g&&l.add(p),w.has(p)||w.add(p),p},cancel:p=>{n.delete(p),l.delete(p)},process:p=>{if(u=p,i){o=!0;return}i=!0,[e,n]=[n,e],e.forEach(d),e.clear(),i=!1,o&&(o=!1,h.process(p))}};return h}const Nl=["read","resolveKeyframes","update","preRender","render","postRender"],__=40;function B1(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Nl.reduce((A,R)=>(A[R]=C_(l),A),{}),{read:d,resolveKeyframes:h,update:p,preRender:g,render:y,postRender:x}=u,w=()=>{const A=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(A-o.timestamp,__),1),o.timestamp=A,o.isProcessing=!0,d.process(o),h.process(o),p.process(o),g.process(o),y.process(o),x.process(o),o.isProcessing=!1,n&&e&&(i=!1,t(w))},_=()=>{n=!0,i=!0,o.isProcessing||t(w)};return{schedule:Nl.reduce((A,R)=>{const I=u[R];return A[R]=(F,L=!1,K=!1)=>(n||_(),I.schedule(F,L,K)),A},{}),cancel:A=>{for(let R=0;R<Nl.length;R++)u[Nl[R]].cancel(A)},state:o,steps:u}}const{schedule:tt,cancel:Qr,state:Dt,steps:Ad}=B1(typeof requestAnimationFrame<"u"?requestAnimationFrame:un,!0),U1=P.createContext({strict:!1}),cy={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"]},xi={};for(const t in cy)xi[t]={isEnabled:e=>cy[t].some(n=>!!e[n])};function E_(t){for(const e in t)xi[e]={...xi[e],...t[e]}}const k_=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 Wl(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||k_.has(t)}let $1=t=>!Wl(t);function A_(t){t&&($1=e=>e.startsWith("on")?!Wl(e):t(e))}try{A_(require("@emotion/is-prop-valid").default)}catch{}function N_(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||($1(o)||n===!0&&Wl(o)||!e&&!Wl(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}function R_(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,o)=>o==="create"?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}const Tu=P.createContext({});function Fo(t){return typeof t=="string"||Array.isArray(t)}function Pu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const nh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rh=["initial",...nh];function Cu(t){return Pu(t.animate)||rh.some(e=>Fo(t[e]))}function W1(t){return!!(Cu(t)||t.variants)}function D_(t,e){if(Cu(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Fo(n)?n:void 0,animate:Fo(i)?i:void 0}}return t.inherit!==!1?e:{}}function O_(t){const{initial:e,animate:n}=D_(t,P.useContext(Tu));return P.useMemo(()=>({initial:e,animate:n}),[dy(e),dy(n)])}function dy(t){return Array.isArray(t)?t.join(" "):t}const M_=Symbol.for("motionComponentSymbol");function ii(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function I_(t,e,n){return P.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):ii(n)&&(n.current=i))},[e])}const sh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),j_="framerAppearId",H1="data-"+sh(j_),{schedule:ih}=B1(queueMicrotask,!1),K1=P.createContext({});function V_(t,e,n,i,o){var l,u;const{visualElement:d}=P.useContext(Tu),h=P.useContext(U1),p=P.useContext(Jf),g=P.useContext(L1).reducedMotion,y=P.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(t,{visualState:e,parent:d,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const x=y.current,w=P.useContext(K1);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&L_(y.current,n,o,w);const _=P.useRef(!1);P.useInsertionEffect(()=>{x&&_.current&&x.update(n,p)});const S=n[H1],T=P.useRef(!!S&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,S))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,S)));return F1(()=>{x&&(_.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),ih.render(x.render),T.current&&x.animationState&&x.animationState.animateChanges())}),P.useEffect(()=>{x&&(!T.current&&x.animationState&&x.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)===null||A===void 0||A.call(window,S)}),T.current=!1))}),x}function L_(t,e,n,i){const{layoutId:o,layout:l,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:q1(t.parent)),t.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!u||d&&ii(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:p})}function q1(t){if(t)return t.options.allowProjection!==!1?t.projection:q1(t.parent)}function F_({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:o}){var l,u;t&&E_(t);function d(p,g){let y;const x={...P.useContext(L1),...p,layoutId:z_(p)},{isStatic:w}=x,_=O_(p),S=i(p,w);if(!w&&eh){B_();const T=U_(x);y=T.MeasureLayout,_.visualElement=V_(o,S,x,e,T.ProjectionNode)}return b.jsxs(Tu.Provider,{value:_,children:[y&&_.visualElement?b.jsx(y,{visualElement:_.visualElement,...x}):null,n(o,p,I_(S,_.visualElement,g),S,w,_.visualElement)]})}d.displayName=`motion.${typeof o=="string"?o:`create(${(u=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&u!==void 0?u:""})`}`;const h=P.forwardRef(d);return h[M_]=o,h}function z_({layoutId:t}){const e=P.useContext(j1).id;return e&&t!==void 0?e+"-"+t:t}function B_(t,e){P.useContext(U1).strict}function U_(t){const{drag:e,layout:n}=xi;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const $_=["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 oh(t){return typeof t!="string"||t.includes("-")?!1:!!($_.indexOf(t)>-1||/[A-Z]/u.test(t))}function fy(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ah(t,e,n,i){if(typeof e=="function"){const[o,l]=fy(i);e=e(n!==void 0?n:t.custom,o,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,l]=fy(i);e=e(n!==void 0?n:t.custom,o,l)}return e}const sf=t=>Array.isArray(t),W_=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),H_=t=>sf(t)?t[t.length-1]||0:t,Ft=t=>!!(t&&t.getVelocity);function jl(t){const e=Ft(t)?t.get():t;return W_(e)?e.toValue():e}function K_({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,o,l){const u={latestValues:q_(i,o,l,t),renderState:e()};return n&&(u.onMount=d=>n({props:i,current:d,...u}),u.onUpdate=d=>n(d)),u}const Q1=t=>(e,n)=>{const i=P.useContext(Tu),o=P.useContext(Jf),l=()=>K_(t,e,i,o);return n?l():V1(l)};function q_(t,e,n,i){const o={},l=i(t,{});for(const x in l)o[x]=jl(l[x]);let{initial:u,animate:d}=t;const h=Cu(t),p=W1(t);e&&p&&!h&&t.inherit!==!1&&(u===void 0&&(u=e.initial),d===void 0&&(d=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?d:u;if(y&&typeof y!="boolean"&&!Pu(y)){const x=Array.isArray(y)?y:[y];for(let w=0;w<x.length;w++){const _=ah(t,x[w]);if(_){const{transitionEnd:S,transition:T,...A}=_;for(const R in A){let I=A[R];if(Array.isArray(I)){const F=g?I.length-1:0;I=I[F]}I!==null&&(o[R]=I)}for(const R in S)o[R]=S[R]}}}return o}const Ei=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Es=new Set(Ei),Z1=t=>e=>typeof e=="string"&&e.startsWith(t),G1=Z1("--"),Q_=Z1("var(--"),lh=t=>Q_(t)?Z_.test(t.split("/*")[0].trim()):!1,Z_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,X1=(t,e)=>e&&typeof t=="number"?e.transform(t):t,xr=(t,e,n)=>n>e?e:n<t?t:n,ki={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},zo={...ki,transform:t=>xr(0,1,t)},Rl={...ki,default:1},aa=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),$r=aa("deg"),Zn=aa("%"),Te=aa("px"),G_=aa("vh"),X_=aa("vw"),hy={...Zn,parse:t=>Zn.parse(t)/100,transform:t=>Zn.transform(t*100)},Y_={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te},J_={rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:Rl,scaleX:Rl,scaleY:Rl,scaleZ:Rl,skew:$r,skewX:$r,skewY:$r,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:zo,originX:hy,originY:hy,originZ:Te},py={...ki,transform:Math.round},uh={...Y_,...J_,zIndex:py,size:Te,fillOpacity:zo,strokeOpacity:zo,numOctaves:py},e4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t4=Ei.length;function n4(t,e,n){let i="",o=!0;for(let l=0;l<t4;l++){const u=Ei[l],d=t[u];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(u.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||n){const p=X1(d,uh[u]);if(!h){o=!1;const g=e4[u]||u;i+=`${g}(${p}) `}n&&(e[u]=p)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}function ch(t,e,n){const{style:i,vars:o,transformOrigin:l}=t;let u=!1,d=!1;for(const h in e){const p=e[h];if(Es.has(h)){u=!0;continue}else if(G1(h)){o[h]=p;continue}else{const g=X1(p,uh[h]);h.startsWith("origin")?(d=!0,l[h]=g):i[h]=g}}if(e.transform||(u||n?i.transform=n4(e,t.transform,n):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:g=0}=l;i.transformOrigin=`${h} ${p} ${g}`}}const r4={offset:"stroke-dashoffset",array:"stroke-dasharray"},s4={offset:"strokeDashoffset",array:"strokeDasharray"};function i4(t,e,n=1,i=0,o=!0){t.pathLength=1;const l=o?r4:s4;t[l.offset]=Te.transform(-i);const u=Te.transform(e),d=Te.transform(n);t[l.array]=`${u} ${d}`}function my(t,e,n){return typeof t=="string"?t:Te.transform(e+n*t)}function o4(t,e,n){const i=my(e,t.x,t.width),o=my(n,t.y,t.height);return`${i} ${o}`}function dh(t,{attrX:e,attrY:n,attrScale:i,originX:o,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:h=0,...p},g,y){if(ch(t,p,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:x,style:w,dimensions:_}=t;x.transform&&(_&&(w.transform=x.transform),delete x.transform),_&&(o!==void 0||l!==void 0||w.transform)&&(w.transformOrigin=o4(_,o!==void 0?o:.5,l!==void 0?l:.5)),e!==void 0&&(x.x=e),n!==void 0&&(x.y=n),i!==void 0&&(x.scale=i),u!==void 0&&i4(x,u,d,h,!1)}const fh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Y1=()=>({...fh(),attrs:{}}),hh=t=>typeof t=="string"&&t.toLowerCase()==="svg";function J1(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const l in n)t.style.setProperty(l,n[l])}const ex=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 tx(t,e,n,i){J1(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(ex.has(o)?o:sh(o),e.attrs[o])}const Hl={};function a4(t){Object.assign(Hl,t)}function nx(t,{layout:e,layoutId:n}){return Es.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Hl[t]||t==="opacity")}function ph(t,e,n){var i;const{style:o}=t,l={};for(const u in o)(Ft(o[u])||e.style&&Ft(e.style[u])||nx(u,t)||((i=n?.getValue(u))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[u]=o[u]);return l}function rx(t,e,n){const i=ph(t,e,n);for(const o in t)if(Ft(t[o])||Ft(e[o])){const l=Ei.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[l]=t[o]}return i}function l4(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const gy=["x","y","width","height","cx","cy","r"],u4={useVisualState:Q1({scrapeMotionValuesFromProps:rx,createRenderState:Y1,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:o})=>{if(!n)return;let l=!!t.drag;if(!l){for(const d in o)if(Es.has(d)){l=!0;break}}if(!l)return;let u=!e;if(e)for(let d=0;d<gy.length;d++){const h=gy[d];t[h]!==e[h]&&(u=!0)}u&&tt.read(()=>{l4(n,i),tt.render(()=>{dh(i,o,hh(n.tagName),t.transformTemplate),tx(n,i)})})}})},c4={useVisualState:Q1({scrapeMotionValuesFromProps:ph,createRenderState:fh})};function sx(t,e,n){for(const i in e)!Ft(e[i])&&!nx(i,n)&&(t[i]=e[i])}function d4({transformTemplate:t},e){return P.useMemo(()=>{const n=fh();return ch(n,e,t),Object.assign({},n.vars,n.style)},[e])}function f4(t,e){const n=t.style||{},i={};return sx(i,n,t),Object.assign(i,d4(t,e)),i}function h4(t,e){const n={},i=f4(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function p4(t,e,n,i){const o=P.useMemo(()=>{const l=Y1();return dh(l,e,hh(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};sx(l,t.style,t),o.style={...l,...o.style}}return o}function m4(t=!1){return(n,i,o,{latestValues:l},u)=>{const h=(oh(n)?p4:h4)(i,l,u,n),p=N_(i,typeof n=="string",t),g=n!==P.Fragment?{...p,...h,ref:o}:{},{children:y}=i,x=P.useMemo(()=>Ft(y)?y.get():y,[y]);return P.createElement(n,{...g,children:x})}}function g4(t,e){return function(i,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...oh(i)?u4:c4,preloadedFeatures:t,useRender:m4(o),createVisualElement:e,Component:i};return F_(u)}}function ix(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function _u(t,e,n){const i=t.getProps();return ah(i,e,n!==void 0?n:i.custom,t)}const y4=th(()=>window.ScrollTimeline!==void 0);class v4{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(o=>{if(y4()&&o.attachTimeline)return o.attachTimeline(e);if(typeof n=="function")return n(o)});return()=>
8{i.forEach((o,l)=>{o&&o(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class x4 extends v4{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function mh(t,e){return t?t[e]||t.default||t:void 0}const of=2e4;function ox(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<of;)e+=n,i=t.next(e);return e>=of?1/0:e}function gh(t){return typeof t=="function"}function yy(t,e){t.timeline=e,t.onfinish=null}const yh=t=>Array.isArray(t)&&typeof t[0]=="number",w4={linearEasing:void 0};function S4(t,e){const n=th(t);return()=>{var i;return(i=w4[e])!==null&&i!==void 0?i:n()}}const Kl=S4(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 11,848 bytes, line 8
8,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ax=(t,e,n=10)=>{let i="";const o=Math.max(Math.round(e/n),2);for(let l=0;l<o;l++)i+=t(vi(0,o-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function lx(t){return!!(typeof t=="function"&&Kl()||!t||typeof t=="string"&&(t in af||Kl())||yh(t)||Array.isArray(t)&&t.every(lx))}const Po=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,af={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Po([0,.65,.55,1]),circOut:Po([.55,0,1,.45]),backIn:Po([.31,.01,.66,-.59]),backOut:Po([.33,1.53,.69,.99])};function ux(t,e){if(t)return typeof t=="function"&&Kl()?ax(t,e):yh(t)?Po(t):Array.isArray(t)?t.map(n=>ux(n,e)||af.easeOut):af[t]}const An={x:!1,y:!1};function cx(){return An.x||An.y}function b4(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let o=document;const l=(i=void 0)!==null&&i!==void 0?i:o.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function dx(t,e){const n=b4(t),i=new AbortController,o={passive:!0,...e,signal:i.signal};return[n,o,()=>i.abort()]}function vy(t){return e=>{e.pointerType==="touch"||cx()||t(e)}}function T4(t,e,n={}){const[i,o,l]=dx(t,n),u=vy(d=>{const{target:h}=d,p=e(d);if(typeof p!="function"||!h)return;const g=vy(y=>{p(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,o)});return i.forEach(d=>{d.addEventListener("pointerenter",u,o)}),l}const fx=(t,e)=>e?t===e?!0:fx(t,e.parentElement):!1,vh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,P4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function C4(t){return P4.has(t.tagName)||t.tabIndex!==-1}const Co=new WeakSet;function xy(t){return e=>{e.key==="Enter"&&t(e)}}function Nd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const _4=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=xy(()=>{if(Co.has(n))return;Nd(n,"down");const o=xy(()=>{Nd(n,"up")}),l=()=>Nd(n,"cancel");n.addEventListener("keyup",o,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function wy(t){return vh(t)&&!cx()}function E4(t,e,n={}){const[i,o,l]=dx(t,n),u=d=>{const h=d.currentTarget;if(!wy(d)||Co.has(h))return;Co.add(h);const p=e(d),g=(w,_)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),!(!wy(w)||!Co.has(h))&&(Co.delete(h),typeof p=="function"&&p(w,{success:_}))},y=w=>{g(w,n.useGlobalTarget||fx(h,w.target))},x=w=>{g(w,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",x,o)};return i.forEach(d=>{!C4(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,o),d.addEventListener("focus",p=>_4(p,o),o)}),l}function k4(t){return t==="x"||t==="y"?An[t]?null:(An[t]=!0,()=>{An[t]=!1}):An.x||An.y?null:(An.x=An.y=!0,()=>{An.x=An.y=!1})}const hx=new Set(["width","height","top","left","right","bottom",...Ei]);let Vl;function A4(){Vl=void 0}const Gn={now:()=>(Vl===void 0&&Gn.set(Dt.isProcessing||P_.useManualTiming?Dt.timestamp:performance.now()),Vl),set:t=>{Vl=t,queueMicrotask(A4)}};function xh(t,e){t.indexOf(e)===-1&&t.push(e)}function wh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Sh{constructor(){this.subscriptions=[]}add(e){return xh(this.subscriptions,e),()=>wh(this.subscriptions,e)}notify(e,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let l=0;l<o;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function px(t,e){return e?t*(1e3/e):0}const Sy=30,N4=t=>!isNaN(parseFloat(t));class R4{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,o=!0)=>{const l=Gn.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Gn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=N4(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sh);const i=this.events[e].add(n);return e==="change"?()=>{i(),tt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Gn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Sy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Sy);return px(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 Bo(t,e){return new R4(t,e)}function D4(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Bo(n))}function bh(t,e){const n=_u(t,e);let{transitionEnd:i={},transition:o={},...l}=n||{};l={...l,...i};for(const u in l){const d=H_(l[u]);D4(t,u,d)}}function O4(t){return!!(Ft(t)&&t.add)}function lf(t,e){const n=t.getValue("willChange");if(O4(n))return n.add(e)}function mx(t){return t.props[H1]}const gx=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,M4=1e-7,I4=12;function j4(t,e,n,i,o){let l,u,d=0;do u=e+(n-e)/2,l=gx(u,i,o)-t,l>0?n=u:e=u;while(Math.abs(l)>M4&&++d<I4);return u}function la(t,e,n,i){if(t===e&&n===i)return un;const o=l=>j4(l,0,1,t,n);return l=>l===0||l===1?l:gx(o(l),e,i)}const yx=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vx=t=>e=>1-t(1-e),xx=la(.33,1.53,.69,.99),Th=vx(xx),wx=yx(Th),Sx=t=>(t*=2)<1?.5*Th(t):.5*(2-Math.pow(2,-10*(t-1))),Ph=t=>1-Math.sin(Math.acos(t)),bx=vx(Ph),Tx=yx(Ph),Px=t=>/^0[^.\s]+$/u.test(t);function V4(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Px(t):!0}const No=t=>Math.round(t*1e5)/1e5,Ch=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function L4(t){return t==null}const F4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_h=(t,e)=>n=>!!(typeof n=="string"&&F4.test(n)&&n.startsWith(t)||e&&!L4(n)&&Object.prototype.hasOwnProperty.call(n,e)),Cx=(t,e,n)=>i=>{if(typeof i!="string")return i;const[o,l,u,d]=i.match(Ch);return{[t]:parseFloat(o),[e]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},z4=t=>xr(0,255,t),Rd={...ki,transform:t=>Math.round(z4(t))},ys={test:_h("rgb","red"),parse:Cx("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Rd.transform(t)+", "+Rd.transform(e)+", "+Rd.transform(n)+", "+No(zo.transform(i))+")"};function B4(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const uf={test:_h("#"),parse:B4,transform:ys.transform},oi={test:_h("hsl","hue"),parse:Cx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Zn.transform(No(e))+", "+Zn.transform(No(n))+", "+No(zo.transform(i))+")"},Lt={test:t=>ys.test(t)||uf.test(t)||oi.test(t),parse:t=>ys.test(t)?ys.parse(t):oi.test(t)?oi.parse(t):uf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ys.transform(t):oi.transform(t)},U4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $4(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ch))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(U4))===null||n===void 0?void 0:n.length)||0)>0}const _x="number",Ex="color",W4="var",H4="var(",by="${}",K4=/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 Uo(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[];let l=0;const d=e.replace(K4,h=>(Lt.test(h)?(i.color.push(l),o.push(Ex),n.push(Lt.parse(h))):h.startsWith(H4)?(i.var.push(l),o.push(W4),n.push(h)):(i.number.push(l),o.push(_x),n.push(parseFloat(h))),++l,by)).split(by);return{values:n,split:d,indexes:i,types:o}}function kx(t){return Uo(t).values}function Ax(t){const{split:e,types:n}=Uo(t),i=e.length;return o=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],o[u]!==void 0){const d=n[u];d===_x?l+=No(o[u]):d===Ex?l+=Lt.transform(o[u]):l+=o[u]}return l}}const q4=t=>typeof t=="number"?0:t;function Q4(t){const e=kx(t);return Ax(t)(e.map(q4))}const Zr={test:$4,parse:kx,createTransformer:Ax,getAnimatableNone:Q4},Z4=new Set(["brightness","contrast","saturate","opacity"]);function G4(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Ch)||[];if(!i)return t;const o=n.replace(i,"");let l=Z4.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+o+")"}const X4=/\b([a-z-]*)\(.*?\)/gu,cf={...Zr,getAnimatableNone:t=>{const e=t.match(X4);return e?e.map(G4).join(" "):t}},Y4={...uh,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:cf,WebkitFilter:cf},Eh=t=>Y4[t];function Nx(t,e){let n=Eh(t);return n!==cf&&(n=Zr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const J4=new Set(["auto","none","0"]);function e3(t,e,n){let i=0,o;for(;i<t.length&&!o;){const l=t[i];typeof l=="string"&&!J4.has(l)&&Uo(l).values.length&&(o=t[i]),i++}if(o&&n)for(const l of e)t[l]=Nx(n,o)}const Ty=t=>t===ki||t===Te,Py=(t,e)=>parseFloat(t.split(", ")[e]),Cy=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/u);if(o)return Py(o[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?Py(l[1],t):0}},t3=new Set(["x","y","z"]),n3=Ei.filter(t=>!t3.has(t));function r3(t){const e=[];return n3.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const wi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Cy(4,13),y:Cy(5,14)};wi.translateX=wi.x;wi.translateY=wi.y;const xs=new Set;let df=!1,ff=!1;function Rx(){if(ff){const t=Array.from(xs).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>
vendor: 7,823 bytes, line 8
8{const o=r3(i);o.length&&(n.set(i,o),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const o=n.get(i);o&&o.forEach(([l,u])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ff=!1,df=!1,xs.forEach(t=>t.complete()),xs.clear()}function Dx(){xs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ff=!0)})}function s3(){Dx(),Rx()}class kh{constructor(e,n,i,o,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=o,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xs.add(this),df||(df=!0,tt.read(Dx),tt.resolveKeyframes(Rx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:o}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const u=o?.get(),d=e[e.length-1];if(u!==void 0)e[0]=u;else if(i&&n){const h=i.readValue(n,d);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=d),o&&u===void 0&&o.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),xs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ox=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),i3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o3(t){const e=i3.exec(t);if(!e)return[,];const[,n,i,o]=e;return[`--${n??i}`,o]}function Mx(t,e,n=1){const[i,o]=o3(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return Ox(u)?parseFloat(u):u}return lh(o)?Mx(o,e,n+1):o}const Ix=t=>e=>e.test(t),a3={test:t=>t==="auto",parse:t=>t},jx=[ki,Te,Zn,$r,X_,G_,a3],_y=t=>jx.find(Ix(t));class Vx extends kh{constructor(e,n,i,o,l){super(e,n,i,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let p=e[h];if(typeof p=="string"&&(p=p.trim(),lh(p))){const g=Mx(p,n.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!hx.has(i)||e.length!==2)return;const[o,l]=e,u=_y(o),d=_y(l);if(u!==d)if(Ty(u)&&Ty(d))for(let h=0;h<e.length;h++){const p=e[h];typeof p=="string"&&(e[h]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let o=0;o<e.length;o++)V4(e[o])&&i.push(o);i.length&&e3(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wi[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&e.getValue(i,o).jump(o,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=o.length-1,d=o[u];o[u]=wi[i](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const Ey=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Zr.test(t)||t==="0")&&!t.startsWith("url("));function l3(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function u3(t,e,n,i){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=Ey(o,e),d=Ey(l,e);return!u||!d?!1:l3(t)||(n==="spring"||gh(n))&&i}const c3=t=>t!==null;function Eu(t,{repeat:e,repeatType:n="loop"},i){const o=t.filter(c3),l=e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||i===void 0?o[l]:i}const d3=40;class Lx{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:u="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Gn.now(),this.options={autoplay:e,delay:n,type:i,repeat:o,repeatDelay:l,repeatType:u,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>d3?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&s3(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Gn.now(),this.hasAttemptedResolve=!0;const{name:i,type:o,velocity:l,delay:u,onComplete:d,onUpdate:h,isGenerator:p}=this.options;if(!p&&!u3(e,i,o,l))if(u)this.options.duration=0;else{h&&h(Eu(e,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,n);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...g},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const lt=(t,e,n)=>t+(e-t)*n;function Dd(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function f3({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,l=0,u=0;if(!e)o=l=u=n;else{const d=n<.5?n*(1+e):n+e-n*e,h=2*n-d;o=Dd(h,d,t+1/3),l=Dd(h,d,t),u=Dd(h,d,t-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function ql(t,e){return n=>n>0?e:t}const Od=(t,e,n)=>{const i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},h3=[uf,ys,oi],p3=t=>h3.find(e=>e.test(t));function ky(t){const e=p3(t);if(!e)return!1;let n=e.parse(t);return e===oi&&(n=f3(n)),n}const Ay=(t,e)=>{const n=ky(t),i=ky(e);if(!n||!i)return ql(t,e);const o={...n};return l=>(o.red=Od(n.red,i.red,l),o.green=Od(n.green,i.green,l),o.blue=Od(n.blue,i.blue,l),o.alpha=lt(n.alpha,i.alpha,l),ys.transform(o))},m3=(t,e)=>n=>e(t(n)),ua=(...t)=>t.reduce(m3),hf=new Set(["none","hidden"]);function g3(t,e){return hf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function y3(t,e){return n=>lt(t,e,n)}function Ah(t){return typeof t=="number"?y3:typeof t=="string"?lh(t)?ql:Lt.test(t)?Ay:w3:Array.isArray(t)?Fx:typeof t=="object"?Lt.test(t)?Ay:v3:ql}function Fx(t,e){const n=[...t],i=n.length,o=t.map((l,u)=>Ah(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=o[u](l);return n}}function v3(t,e){const n={...t,...e},i={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(i[o]=Ah(t[o])(t[o],e[o]));return o=>{for(const l in i)n[l]=i[l](o);return n}}function x3(t,e){var n;const i=[],o={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const u=e.types[l],d=t.indexes[u][o[u]],h=(n=t.values[d])!==null&&n!==void 0?n:0;i[l]=h,o[u]++}return i}const w3=(t,e)=>{const n=Zr.createTransformer(e),i=Uo(t),o=Uo(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?hf.has(t)&&!o.values.length||hf.has(e)&&!i.values.length?g3(t,e):ua(Fx(x3(i,o),o.values),n):ql(t,e)};function zx(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?lt(t,e,n):Ah(t)(t,e)}const S3=5;function Bx(t,e,n){const i=Math.max(e-S3,0);return px(n-t(i),e-i)}const ct={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},Md=.001;function b3({duration:t=ct.duration,bounce:e=ct.bounce,velocity:n=ct.velocity,mass:i=ct.mass}){let o,l,u=1-e;u=xr(ct.minDamping,ct.maxDamping,u),t=xr(ct.minDuration,ct.maxDuration,gr(t)),u<1?(o=p=>
vendor: 61,819 bytes, line 8
8{const g=p*u,y=g*t,x=g-n,w=pf(p,u),_=Math.exp(-y);return Md-x/w*_},l=p=>{const y=p*u*t,x=y*n+n,w=Math.pow(u,2)*Math.pow(p,2)*t,_=Math.exp(-y),S=pf(Math.pow(p,2),u);return(-o(p)+Md>0?-1:1)*((x-w)*_)/S}):(o=p=>{const g=Math.exp(-p*t),y=(p-n)*t+1;return-Md+g*y},l=p=>{const g=Math.exp(-p*t),y=(n-p)*(t*t);return g*y});const d=5/t,h=P3(o,l,d);if(t=mr(t),isNaN(h))return{stiffness:ct.stiffness,damping:ct.damping,duration:t};{const p=Math.pow(h,2)*i;return{stiffness:p,damping:u*2*Math.sqrt(i*p),duration:t}}}const T3=12;function P3(t,e,n){let i=n;for(let o=1;o<T3;o++)i=i-t(i)/e(i);return i}function pf(t,e){return t*Math.sqrt(1-e*e)}const C3=["duration","bounce"],_3=["stiffness","damping","mass"];function Ny(t,e){return e.some(n=>t[n]!==void 0)}function E3(t){let e={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...t};if(!Ny(t,_3)&&Ny(t,C3))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),o=i*i,l=2*xr(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:ct.mass,stiffness:o,damping:l}}else{const n=b3(t);e={...e,...n,mass:ct.mass},e.isResolvedFromDuration=!0}return e}function Ux(t=ct.visualDuration,e=ct.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:o}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:p,mass:g,duration:y,velocity:x,isResolvedFromDuration:w}=E3({...n,velocity:-gr(n.velocity||0)}),_=x||0,S=p/(2*Math.sqrt(h*g)),T=u-l,A=gr(Math.sqrt(h/g)),R=Math.abs(T)<5;i||(i=R?ct.restSpeed.granular:ct.restSpeed.default),o||(o=R?ct.restDelta.granular:ct.restDelta.default);let I;if(S<1){const L=pf(A,S);I=K=>{const X=Math.exp(-S*A*K);return u-X*((_+S*A*T)/L*Math.sin(L*K)+T*Math.cos(L*K))}}else if(S===1)I=L=>u-Math.exp(-A*L)*(T+(_+A*T)*L);else{const L=A*Math.sqrt(S*S-1);I=K=>{const X=Math.exp(-S*A*K),J=Math.min(L*K,300);return u-X*((_+S*A*T)*Math.sinh(J)+L*T*Math.cosh(J))/L}}const F={calculatedDuration:w&&y||null,next:L=>{const K=I(L);if(w)d.done=L>=y;else{let X=0;S<1&&(X=L===0?mr(_):Bx(I,L,K));const J=Math.abs(X)<=i,ve=Math.abs(u-K)<=o;d.done=J&&ve}return d.value=d.done?u:K,d},toString:()=>{const L=Math.min(ox(F),of),K=ax(X=>F.next(L*X).value,L,30);return L+"ms "+K}};return F}function Ry({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:h,restDelta:p=.5,restSpeed:g}){const y=t[0],x={done:!1,value:y},w=J=>d!==void 0&&J<d||h!==void 0&&J>h,_=J=>d===void 0?h:h===void 0||Math.abs(d-J)<Math.abs(h-J)?d:h;let S=n*e;const T=y+S,A=u===void 0?T:u(T);A!==T&&(S=A-y);const R=J=>-S*Math.exp(-J/i),I=J=>A+R(J),F=J=>{const ve=R(J),ce=I(J);x.done=Math.abs(ve)<=p,x.value=x.done?A:ce};let L,K;const X=J=>{w(x.value)&&(L=J,K=Ux({keyframes:[x.value,_(x.value)],velocity:Bx(I,J,x.value),damping:o,stiffness:l,restDelta:p,restSpeed:g}))};return X(0),{calculatedDuration:null,next:J=>{let ve=!1;return!K&&L===void 0&&(ve=!0,F(J),X(J)),L!==void 0&&J>=L?K.next(J-L):(!ve&&F(J),x)}}}const k3=la(.42,0,1,1),A3=la(0,0,.58,1),$x=la(.42,0,.58,1),N3=t=>Array.isArray(t)&&typeof t[0]!="number",R3={linear:un,easeIn:k3,easeInOut:$x,easeOut:A3,circIn:Ph,circInOut:Tx,circOut:bx,backIn:Th,backInOut:wx,backOut:xx,anticipate:Sx},Dy=t=>{if(yh(t)){z1(t.length===4);const[e,n,i,o]=t;return la(e,n,i,o)}else if(typeof t=="string")return R3[t];return t};function D3(t,e,n){const i=[],o=n||zx,l=t.length-1;for(let u=0;u<l;u++){let d=o(t[u],t[u+1]);if(e){const h=Array.isArray(e)?e[u]||un:e;d=ua(h,d)}i.push(d)}return i}function O3(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const l=t.length;if(z1(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=D3(e,i,o),h=d.length,p=g=>{if(u&&g<t[0])return e[0];let y=0;if(h>1)for(;y<t.length-2&&!(g<t[y+1]);y++);const x=vi(t[y],t[y+1],g);return d[y](x)};return n?g=>p(xr(t[0],t[l-1],g)):p}function M3(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=vi(0,e,i);t.push(lt(n,1,o))}}function I3(t){const e=[0];return M3(e,t.length-1),e}function j3(t,e){return t.map(n=>n*e)}function V3(t,e){return t.map(()=>e||$x).splice(0,t.length-1)}function Ql({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=N3(i)?i.map(Dy):Dy(i),l={done:!1,value:e[0]},u=j3(n&&n.length===e.length?n:I3(e),t),d=O3(u,e,{ease:Array.isArray(o)?o:V3(e,o)});return{calculatedDuration:t,next:h=>(l.value=d(h),l.done=h>=t,l)}}const L3=t=>{const e=({timestamp:n})=>t(n);return{start:()=>tt.update(e,!0),stop:()=>Qr(e),now:()=>Dt.isProcessing?Dt.timestamp:Gn.now()}},F3={decay:Ry,inertia:Ry,tween:Ql,keyframes:Ql,spring:Ux},z3=t=>t/100;class Nh extends Lx{constructor(e){super(e),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();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:i,element:o,keyframes:l}=this.options,u=o?.KeyframeResolver||kh,d=(h,p)=>this.onKeyframesResolved(h,p);this.resolver=new u(l,d,n,i,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l,velocity:u=0}=this.options,d=gh(n)?n:F3[n]||Ql;let h,p;d!==Ql&&typeof e[0]!="number"&&(h=ua(z3,zx(e[0],e[1])),e=[0,100]);const g=d({...this.options,keyframes:e});l==="mirror"&&(p=d({...this.options,keyframes:[...e].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=ox(g));const{calculatedDuration:y}=g,x=y+o,w=x*(i+1)-o;return{generator:g,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:x,totalDuration:w}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:J}=this.options;return{done:!0,value:J[J.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:u,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:p,totalDuration:g,resolvedDuration:y}=i;if(this.startTime===null)return l.next(0);const{delay:x,repeat:w,repeatType:_,repeatDelay:S,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const A=this.currentTime-x*(this.speed>=0?1:-1),R=this.speed>=0?A<0:A>g;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let I=this.currentTime,F=l;if(w){const J=Math.min(this.currentTime,g)/y;let ve=Math.floor(J),ce=J%1;!ce&&J>=1&&(ce=1),ce===1&&ve--,ve=Math.min(ve,w+1),ve%2&&(_==="reverse"?(ce=1-ce,S&&(ce-=S/y)):_==="mirror"&&(F=u)),I=xr(0,1,ce)*y}const L=R?{done:!1,value:h[0]}:F.next(I);d&&(L.value=d(L.value));let{done:K}=L;!R&&p!==null&&(K=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&K);return X&&o!==void 0&&(L.value=Eu(h,this.options,o)),T&&T(L.value),X&&this.finish(),L}get duration(){const{resolved:e}=this;return e?gr(e.calculatedDuration):0}get time(){return gr(this.currentTime)}set time(e){e=mr(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=gr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=L3,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}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(e){return this.startTime=0,this.tick(e,!0)}}const B3=new Set(["opacity","clipPath","filter","transform"]);function U3(t,e,n,{delay:i=0,duration:o=300,repeat:l=0,repeatType:u="loop",ease:d="easeInOut",times:h}={}){const p={[e]:n};h&&(p.offset=h);const g=ux(d,o);return Array.isArray(g)&&(p.easing=g),t.animate(p,{delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const $3=th(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zl=10,W3=2e4;function H3(t){return gh(t.type)||t.type==="spring"||!lx(t.ease)}function K3(t,e){const n=new Nh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const o=[];let l=0;for(;!i.done&&l<W3;)i=n.sample(l),o.push(i.value),l+=Zl;return{times:void 0,keyframes:o,duration:l-Zl,ease:"linear"}}const Wx={anticipate:Sx,backInOut:wx,circInOut:Tx};function q3(t){return t in Wx}class Oy extends Lx{constructor(e){super(e);const{name:n,motionValue:i,element:o,keyframes:l}=this.options;this.resolver=new Vx(l,(u,d)=>this.onKeyframesResolved(u,d),n,i,o),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:o,ease:l,type:u,motionValue:d,name:h,startTime:p}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&Kl()&&q3(l)&&(l=Wx[l]),H3(this.options)){const{onComplete:y,onUpdate:x,motionValue:w,element:_,...S}=this.options,T=K3(e,S);e=T.keyframes,e.length===1&&(e[1]=e[0]),i=T.duration,o=T.times,l=T.ease,u="keyframes"}const g=U3(d.owner.current,h,e,{...this.options,duration:i,times:o,ease:l});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(yy(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(Eu(e,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:o,type:u,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return gr(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return gr(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=mr(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return un;const{animation:i}=n;yy(i,e)}return un}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:o,type:l,ease:u,times:d}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:g,onComplete:y,element:x,...w}=this.options,_=new Nh({...w,keyframes:i,duration:o,type:l,ease:u,times:d,isGenerator:!0}),S=mr(this.time);p.setWithVelocity(_.sample(S-Zl).value,_.sample(S).value,Zl)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:o,repeatType:l,damping:u,type:d}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=n.owner.getProps();return $3()&&i&&B3.has(i)&&!h&&!p&&!o&&l!=="mirror"&&u!==0&&d!=="inertia"}}const Q3={type:"spring",stiffness:500,damping:25,restSpeed:10},Z3=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),G3={type:"keyframes",duration:.8},X3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y3=(t,{keyframes:e})=>e.length>2?G3:Es.has(t)?t.startsWith("scale")?Z3(e[1]):Q3:X3;function J3({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:l,repeatType:u,repeatDelay:d,from:h,elapsed:p,...g}){return!!Object.keys(g).length}const Rh=(t,e,n,i={},o,l)=>u=>{const d=mh(i,t)||{},h=d.delay||i.delay||0;let{elapsed:p=0}=i;p=p-mr(h);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:x=>{e.set(x),d.onUpdate&&d.onUpdate(x)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:o};J3(d)||(g={...g,...Y3(t,g)}),g.duration&&(g.duration=mr(g.duration)),g.repeatDelay&&(g.repeatDelay=mr(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const x=Eu(g.keyframes,d);if(x!==void 0)return tt.update(()=>{g.onUpdate(x),g.onComplete()}),new x4([])}return!l&&Oy.supports(g)?new Oy(g):new Nh(g)};function eE({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Hx(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var l;let{transition:u=t.getDefaultTransition(),transitionEnd:d,...h}=e;i&&(u=i);const p=[],g=o&&t.animationState&&t.animationState.getState()[o];for(const y in h){const x=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),w=h[y];if(w===void 0||g&&eE(g,y))continue;const _={delay:n,...mh(u||{},y)};let S=!1;if(window.MotionHandoffAnimation){const A=mx(t);if(A){const R=window.MotionHandoffAnimation(A,y,tt);R!==null&&(_.startTime=R,S=!0)}}lf(t,y),x.start(Rh(y,x,w,t.shouldReduceMotion&&hx.has(y)?{type:!1}:_,t,S));const T=x.animation;T&&p.push(T)}return d&&Promise.all(p).then(()=>{tt.update(()=>{d&&bh(t,d)})}),p}function mf(t,e,n={}){var i;const o=_u(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const u=o?()=>Promise.all(Hx(t,o,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:x}=l;return tE(t,e,g+p,y,x,n)}:()=>Promise.resolve(),{when:h}=l;if(h){const[p,g]=h==="beforeChildren"?[u,d]:[d,u];return p().then(()=>g())}else return Promise.all([u(),d(n.delay)])}function tE(t,e,n=0,i=0,o=1,l){const u=[],d=(t.variantChildren.size-1)*i,h=o===1?(p=0)=>p*i:(p=0)=>d-p*i;return Array.from(t.variantChildren).sort(nE).forEach((p,g)=>{p.notify("AnimationStart",e),u.push(mf(p,e,{...l,delay:n+h(g)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(u)}function nE(t,e){return t.sortNodePosition(e)}function Kx(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(l=>mf(t,l,n));i=Promise.all(o)}else if(typeof e=="string")i=mf(t,e,n);else{const o=typeof e=="function"?_u(t,e,n.custom):e;i=Promise.all(Hx(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const rE=rh.length;function qx(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?qx(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<rE;n++){const i=rh[n],o=t.props[i];(Fo(o)||o===!1)&&(e[i]=o)}return e}const sE=[...nh].reverse(),iE=nh.length;function oE(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Kx(t,n,i)))}function aE(t){let e=oE(t),n=My(),i=!0;const o=h=>(p,g)=>{var y;const x=_u(t,g,h==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(x){const{transition:w,transitionEnd:_,...S}=x;p={...p,...S,..._}}return p};function l(h){e=h(t)}function u(h){const{props:p}=t,g=qx(t.parent)||{},y=[],x=new Set;let w={},_=1/0;for(let T=0;T<iE;T++){const A=sE[T],R=n[A],I=p[A]!==void 0?p[A]:g[A],F=Fo(I),L=A===h?R.isActive:null;L===!1&&(_=T);let K=I===g[A]&&I!==p[A]&&F;if(K&&i&&t.manuallyAnimateOnMount&&(K=!1),R.protectedKeys={...w},!R.isActive&&L===null||!I&&!R.prevProp||Pu(I)||typeof I=="boolean")continue;const X=lE(R.prevProp,I);let J=X||A===h&&R.isActive&&!K&&F||T>_&&F,ve=!1;const ce=Array.isArray(I)?I:[I];let Ee=ce.reduce(o(A),{});L===!1&&(Ee={});const{prevResolvedValues:q={}}=R,ae={...q,...Ee},Z=se=>{J=!0,x.has(se)&&(ve=!0,x.delete(se)),R.needsAnimating[se]=!0;const B=t.getValue(se);B&&(B.liveStyle=!1)};for(const se in ae){const B=Ee[se],ne=q[se];if(w.hasOwnProperty(se))continue;let Y=!1;sf(B)&&sf(ne)?Y=!ix(B,ne):Y=B!==ne,Y?B!=null?Z(se):x.add(se):B!==void 0&&x.has(se)?Z(se):R.protectedKeys[se]=!0}R.prevProp=I,R.prevResolvedValues=Ee,R.isActive&&(w={...w,...Ee}),i&&t.blockInitialAnimation&&(J=!1),J&&(!(K&&X)||ve)&&y.push(...ce.map(se=>({animation:se,options:{type:A}})))}if(x.size){const T={};x.forEach(A=>{const R=t.getBaseTarget(A),I=t.getValue(A);I&&(I.liveStyle=!0),T[A]=R??null}),y.push({animation:T})}let S=!!y.length;return i&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(S=!1),i=!1,S?e(y):Promise.resolve()}function d(h,p){var g;if(n[h].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(x=>{var w;return(w=x.animationState)===null||w===void 0?void 0:w.setActive(h,p)}),n[h].isActive=p;const y=u(h);for(const x in n)n[x].protectedKeys={};return y}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=My(),i=!0}}}function lE(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ix(e,t):!1}function ps(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function My(){return{animate:ps(!0),whileInView:ps(),whileHover:ps(),whileTap:ps(),whileDrag:ps(),whileFocus:ps(),exit:ps()}}class es{constructor(e){this.isMounted=!1,this.node=e}update(){}}class uE extends es{constructor(e){super(e),e.animationState||(e.animationState=aE(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Pu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let cE=0;class dE extends es{constructor(){super(...arguments),this.id=cE++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const fE={animation:{Feature:uE},exit:{Feature:dE}};function $o(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ca(t){return{point:{x:t.pageX,y:t.pageY}}}const hE=t=>e=>vh(e)&&t(e,ca(e));function Ro(t,e,n,i){return $o(t,e,hE(n),i)}const Iy=(t,e)=>Math.abs(t-e);function pE(t,e){const n=Iy(t.x,e.x),i=Iy(t.y,e.y);return Math.sqrt(n**2+i**2)}class Qx{constructor(e,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=jd(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,w=pE(y.offset,{x:0,y:0})>=3;if(!x&&!w)return;const{point:_}=y,{timestamp:S}=Dt;this.history.push({..._,timestamp:S});const{onStart:T,onMove:A}=this.handlers;x||(T&&T(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Id(x,this.transformPagePoint),tt.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:w,onSessionEnd:_,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=jd(y.type==="pointercancel"?this.lastMoveEventInfo:Id(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(y,T),_&&_(y,T)},!vh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const u=ca(e),d=Id(u,this.transformPagePoint),{point:h}=d,{timestamp:p}=Dt;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(e,jd(d,this.history)),this.removeListeners=ua(Ro(this.contextWindow,"pointermove",this.handlePointerMove),Ro(this.contextWindow,"pointerup",this.handlePointerUp),Ro(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Qr(this.updatePoint)}}function Id(t,e){return e?{point:e(t.point)}:t}function jy(t,e){return{x:t.x-e.x,y:t.y-e.y}}function jd({point:t},e){return{point:t,delta:jy(t,Zx(e)),offset:jy(t,mE(e)),velocity:gE(e,.1)}}function mE(t){return t[0]}function Zx(t){return t[t.length-1]}function gE(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=Zx(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>mr(e)));)n--;if(!i)return{x:0,y:0};const l=gr(o.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(o.x-i.x)/l,y:(o.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const Gx=1e-4,yE=1-Gx,vE=1+Gx,Xx=.01,xE=0-Xx,wE=0+Xx;function dn(t){return t.max-t.min}function SE(t,e,n){return Math.abs(t-e)<=n}function Vy(t,e,n,i=.5){t.origin=i,t.originPoint=lt(e.min,e.max,t.origin),t.scale=dn(n)/dn(e),t.translate=lt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=yE&&t.scale<=vE||isNaN(t.scale))&&(t.scale=1),(t.translate>=xE&&t.translate<=wE||isNaN(t.translate))&&(t.translate=0)}function Do(t,e,n,i){Vy(t.x,e.x,n.x,i?i.originX:void 0),Vy(t.y,e.y,n.y,i?i.originY:void 0)}function Ly(t,e,n){t.min=n.min+e.min,t.max=t.min+dn(e)}function bE(t,e,n){Ly(t.x,e.x,n.x),Ly(t.y,e.y,n.y)}function Fy(t,e,n){t.min=e.min-n.min,t.max=t.min+dn(e)}function Oo(t,e,n){Fy(t.x,e.x,n.x),Fy(t.y,e.y,n.y)}function TE(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?lt(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?lt(n,t,i.max):Math.min(t,n)),t}function zy(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function PE(t,{top:e,left:n,bottom:i,right:o}){return{x:zy(t.x,n,o),y:zy(t.y,e,i)}}function By(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function CE(t,e){return{x:By(t.x,e.x),y:By(t.y,e.y)}}function _E(t,e){let n=.5;const i=dn(t),o=dn(e);return o>i?n=vi(e.min,e.max-i,t.min):i>o&&(n=vi(t.min,t.max-o,e.min)),xr(0,1,n)}function EE(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const gf=.35;function kE(t=gf){return t===!1?t=0:t===!0&&(t=gf),{x:Uy(t,"left","right"),y:Uy(t,"top","bottom")}}function Uy(t,e,n){return{min:$y(t,e),max:$y(t,n)}}function $y(t,e){return typeof t=="number"?t:t[e]||0}const Wy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:Wy(),y:Wy()}),Hy=()=>({min:0,max:0}),mt=()=>({x:Hy(),y:Hy()});function Sn(t){return[t("x"),t("y")]}function Yx({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function AE({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function NE(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Vd(t){return t===void 0||t===1}function yf({scale:t,scaleX:e,scaleY:n}){return!Vd(t)||!Vd(e)||!Vd(n)}function ms(t){return yf(t)||Jx(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Jx(t){return Ky(t.x)||Ky(t.y)}function Ky(t){return t&&t!=="0%"}function Gl(t,e,n){const i=t-n,o=e*i;return n+o}function qy(t,e,n,i,o){return o!==void 0&&(t=Gl(t,o,i)),Gl(t,n,i)+e}function vf(t,e=0,n=1,i,o){t.min=qy(t.min,e,n,i,o),t.max=qy(t.max,e,n,i,o)}function ew(t,{x:e,y:n}){vf(t.x,e.translate,e.scale,e.originPoint),vf(t.y,n.translate,n.scale,n.originPoint)}const Qy=.999999999999,Zy=1.0000000000001;function RE(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let l,u;for(let d=0;d<o;d++){l=n[d],u=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ui(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,ew(t,u)),i&&ms(l.latestValues)&&ui(t,l.latestValues))}e.x<Zy&&e.x>Qy&&(e.x=1),e.y<Zy&&e.y>Qy&&(e.y=1)}function li(t,e){t.min=t.min+e,t.max=t.max+e}function Gy(t,e,n,i,o=.5){const l=lt(t.min,t.max,o);vf(t,e,n,l,i)}function ui(t,e){Gy(t.x,e.x,e.scaleX,e.scale,e.originX),Gy(t.y,e.y,e.scaleY,e.scale,e.originY)}function tw(t,e){return Yx(NE(t.getBoundingClientRect(),e))}function DE(t,e,n){const i=tw(t,n),{scroll:o}=e;return o&&(li(i.x,o.offset.x),li(i.y,o.offset.y)),i}const nw=({current:t})=>t?t.ownerDocument.defaultView:null,OE=new WeakMap;class ME{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=mt(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ca(g).point)},l=(g,y)=>{const{drag:x,dragPropagation:w,onDragStart:_}=this.getProps();if(x&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=k4(x),!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),Sn(T=>{let A=this.getAxisMotionValue(T).get()||0;if(Zn.test(A)){const{projection:R}=this.visualElement;if(R&&R.layout){const I=R.layout.layoutBox[T];I&&(A=dn(I)*(parseFloat(A)/100))}}this.originPoint[T]=A}),_&&tt.postRender(()=>_(g,y)),lf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:x,dragDirectionLock:w,onDirectionLock:_,onDrag:S}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:T}=y;if(w&&this.currentDirection===null){this.currentDirection=IE(T),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",y.point,T),this.updateAxis("y",y.point,T),this.visualElement.render(),S&&S(g,y)},d=(g,y)=>this.stop(g,y),h=()=>Sn(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new Qx(e,{onSessionStart:o,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:nw(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&tt.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!Dl(e,o,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=TE(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;n&&ii(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=PE(o.layoutBox,n):this.constraints=!1,this.elastic=kE(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Sn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=EE(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ii(e))return!1;const i=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=DE(i,o.root,this.visualElement.getTransformPagePoint());let u=CE(o.layout.layoutBox,l);if(n){const d=n(AE(u));this.hasMutatedConstraints=!!d,d&&(u=Yx(d))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=Sn(g=>{if(!Dl(g,n,this.currentDirection))return;let y=h&&h[g]||{};u&&(y={min:0,max:0});const x=o?200:1e6,w=o?40:1e7,_={type:"inertia",velocity:i?e[g]:0,bounceStiffness:x,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,_)});return Promise.all(p).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return lf(this.visualElement,e),i.start(Rh(e,i,0,n,this.visualElement,!1))}stopAnimation(){Sn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Sn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Sn(n=>{const{drag:i}=this.getProps();if(!Dl(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:d}=o.layout.layoutBox[n];l.set(e[n]-lt(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ii(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Sn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const h=d.get();o[u]=_E({min:h,max:h},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Sn(u=>{if(!Dl(u,e,null))return;const d=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];d.set(lt(h,p,o[u]))})}addListeners(){if(!this.visualElement.current)return;OE.set(this.visualElement,this);const e=this.visualElement.current,n=Ro(e,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();ii(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),tt.read(i);const u=$o(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(Sn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:u=gf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function Dl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function IE(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class jE extends es{constructor(e){super(e),this.removeGroupControls=un,this.removeListeners=un,this.controls=new ME(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||un}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xy=t=>(e,n)=>{t&&tt.postRender(()=>t(e,n))};class VE extends es{constructor(){super(...arguments),this.removePointerDownListener=un}onPointerDown(e){this.session=new Qx(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nw(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:Xy(e),onStart:Xy(n),onMove:i,onEnd:(l,u)=>{delete this.session,o&&tt.postRender(()=>o(l,u))}}}mount(){this.removePointerDownListener=Ro(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ll={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yy(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const bo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Te.test(t))t=parseFloat(t);else return t;const n=Yy(t,e.target.x),i=Yy(t,e.target.y);return`${n}% ${i}%`}},LE={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=Zr.parse(t);if(o.length>5)return i;const l=Zr.createTransformer(t),u=typeof o[0]!="number"?1:0,d=n.x.scale*e.x,h=n.y.scale*e.y;o[0+u]/=d,o[1+u]/=h;const p=lt(d,h,.5);return typeof o[2+u]=="number"&&(o[2+u]/=p),typeof o[3+u]=="number"&&(o[3+u]/=p),l(o)}};class FE extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:l}=e;a4(zE),l&&(n.group&&n.group.add(l),i&&i.register&&o&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Ll.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:l}=this.props,u=i.projection;return u&&(u.isPresent=l,o||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||tt.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ih.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rw(t){const[e,n]=T_(),i=P.useContext(j1);return b.jsx(FE,{...t,layoutGroup:i,switchLayoutGroup:P.useContext(K1),isPresent:e,safeToRemove:n})}const zE={borderRadius:{...bo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bo,borderTopRightRadius:bo,borderBottomLeftRadius:bo,borderBottomRightRadius:bo,boxShadow:LE};function BE(t,e,n){const i=Ft(t)?t:Bo(t);return i.start(Rh("",i,e,n)),i.animation}function UE(t){return t instanceof SVGElement&&t.tagName!=="svg"}const $E=(t,e)=>t.depth-e.depth;class WE{constructor(){this.children=[],this.isDirty=!1}add(e){xh(this.children,e),this.isDirty=!0}remove(e){wh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($E),this.isDirty=!1,this.children.forEach(e)}}function HE(t,e){const n=Gn.now(),i=({timestamp:o})=>{const l=o-n;l>=e&&(Qr(i),t(l-e))};return tt.read(i,!0),()=>Qr(i)}const sw=["TopLeft","TopRight","BottomLeft","BottomRight"],KE=sw.length,Jy=t=>typeof t=="string"?parseFloat(t):t,ev=t=>typeof t=="number"||Te.test(t);function qE(t,e,n,i,o,l){o?(t.opacity=lt(0,n.opacity!==void 0?n.opacity:1,QE(i)),t.opacityExit=lt(e.opacity!==void 0?e.opacity:1,0,ZE(i))):l&&(t.opacity=lt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let u=0;u<KE;u++){const d=`border${sw[u]}Radius`;let h=tv(e,d),p=tv(n,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||ev(h)===ev(p)?(t[d]=Math.max(lt(Jy(h),Jy(p),i),0),(Zn.test(p)||Zn.test(h))&&(t[d]+="%")):t[d]=p}(e.rotate||n.rotate)&&(t.rotate=lt(e.rotate||0,n.rotate||0,i))}function tv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const QE=iw(0,.5,bx),ZE=iw(.5,.95,un);function iw(t,e,n){return i=>i<t?0:i>e?1:n(vi(t,e,i))}function nv(t,e){t.min=e.min,t.max=e.max}function wn(t,e){nv(t.x,e.x),nv(t.y,e.y)}function rv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sv(t,e,n,i,o){return t-=e,t=Gl(t,1/n,i),o!==void 0&&(t=Gl(t,1/o,i)),t}function GE(t,e=0,n=1,i=.5,o,l=t,u=t){if(Zn.test(e)&&(e=parseFloat(e),e=lt(u.min,u.max,e/100)-u.min),typeof e!="number")return;let d=lt(l.min,l.max,i);t===l&&(d-=e),t.min=sv(t.min,e,n,d,o),t.max=sv(t.max,e,n,d,o)}function iv(t,e,[n,i,o],l,u){GE(t,e[n],e[i],e[o],e.scale,l,u)}const XE=["x","scaleX","originX"],YE=["y","scaleY","originY"];function ov(t,e,n,i){iv(t.x,e,XE,n?n.x:void 0,i?i.x:void 0),iv(t.y,e,YE,n?n.y:void 0,i?i.y:void 0)}function av(t){return t.translate===0&&t.scale===1}function ow(t){return av(t.x)&&av(t.y)}function lv(t,e){return t.min===e.min&&t.max===e.max}function JE(t,e){return lv(t.x,e.x)&&lv(t.y,e.y)}function uv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function aw(t,e){return uv(t.x,e.x)&&uv(t.y,e.y)}function cv(t){return dn(t.x)/dn(t.y)}function dv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ek{constructor(){this.members=[]}add(e){xh(this.members,e),e.scheduleRender()}remove(e){if(wh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tk(t,e,n){let i="";const o=t.x.translate/e.x,l=t.y.translate/e.y,u=n?.z||0;if((o||l||u)&&(i=`translate3d(${o}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:x,skewX:w,skewY:_}=n;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),x&&(i+=`rotateY(${x}deg) `),w&&(i+=`skewX(${w}deg) `),_&&(i+=`skewY(${_}deg) `)}const d=t.x.scale*e.x,h=t.y.scale*e.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const gs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_o=typeof window<"u"&&window.MotionDebug!==void 0,Ld=["","X","Y","Z"],nk={visibility:"hidden"},fv=1e3;let rk=0;function Fd(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function lw(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mx(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",tt,!(o||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&lw(i)}function uw({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u={},d=e?.()){this.id=rk++,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,_o&&(gs.totalNodes=gs.resolvedTargetDeltas=gs.recalculatedProjection=0),this.nodes.forEach(ok),this.nodes.forEach(dk),this.nodes.forEach(fk),this.nodes.forEach(ak),_o&&window.MotionDebug.record(gs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new WE)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Sh),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const h=this.eventHandlers.get(u);h&&h.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=UE(u),this.instance=u;const{layoutId:h,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(p||h)&&(this.isLayoutDirty=!0),t){let y;const x=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=HE(x,250),Ll.hasAnimatedSinceResize&&(Ll.hasAnimatedSinceResize=!1,this.nodes.forEach(pv))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeTargetChanged:w,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||g.getDefaultTransition()||yk,{onLayoutAnimationStart:T,onLayoutAnimationComplete:A}=g.getProps(),R=!this.targetLayout||!aw(this.targetLayout,_)||w,I=!x&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||I||x&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,I);const F={...mh(S,"layout"),onPlay:T,onComplete:A};(g.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F)}else x||pv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qr(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(hk),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hv);return}this.isUpdating||this.nodes.forEach(uk),this.isUpdating=!1,this.nodes.forEach(ck),this.nodes.forEach(sk),this.nodes.forEach(ik),this.clearAllSnapshots();const d=Gn.now();Dt.delta=xr(0,1e3/60,d-Dt.timestamp),Dt.timestamp=d,Dt.isProcessing=!0,Ad.update.process(Dt),Ad.preRender.process(Dt),Ad.render.process(Dt),Dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ih.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lk),this.sharedNodes.forEach(pk)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tt.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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!ow(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&(d||ms(this.latestValues)||g)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return u&&(h=this.removeTransform(h)),vk(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:d}=this.options;if(!d)return mt();const h=d.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(xk))){const{scroll:g}=this.root;g&&(li(h.x,g.offset.x),li(h.y,g.offset.y))}return h}removeElementScroll(u){var d;const h=mt();if(wn(h,u),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:y,options:x}=g;g!==this.root&&y&&x.layoutScroll&&(y.wasRoot&&wn(h,u),li(h.x,y.offset.x),li(h.y,y.offset.y))}return h}applyTransform(u,d=!1){const h=mt();wn(h,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&ui(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ms(g.latestValues)&&ui(h,g.latestValues)}return ms(this.latestValues)&&ui(h,this.latestValues),h}removeTransform(u){const d=mt();wn(d,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!ms(p.latestValues))continue;yf(p.latestValues)&&p.updateSnapshot();const g=mt(),y=p.measurePageBox();wn(g,y),ov(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return ms(this.latestValues)&&ov(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==Dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:x}=this.options;if(!(!this.layout||!(y||x))){if(this.resolvedRelativeTargetAt=Dt.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Oo(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),wn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):wn(this.target,this.layout.layoutBox),ew(this.target,this.targetDelta)):wn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Oo(this.relativeTargetOrigin,this.target,w.target),wn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_o&&gs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||yf(this.parent.latestValues)||Jx(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 u;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Dt.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;wn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,w=this.treeScale.y;RE(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=mt());const{target:_}=d;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rv(this.prevProjectionDelta.x,this.projectionDelta.x),rv(this.prevProjectionDelta.y,this.projectionDelta.y)),Do(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==w||!dv(this.projectionDelta.x,this.prevProjectionDelta.x)||!dv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),_o&&gs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ai(),this.projectionDelta=ai(),this.projectionDeltaWithTransform=ai()}setAnimationOrigin(u,d=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},y=ai();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const x=mt(),w=h?h.source:void 0,_=this.layout?this.layout.source:void 0,S=w!==_,T=this.getStack(),A=!T||T.members.length<=1,R=!!(S&&!A&&this.options.crossfade===!0&&!this.path.some(gk));this.animationProgress=0;let I;this.mixTargetDelta=F=>{const L=F/1e3;mv(y.x,u.x,L),mv(y.y,u.y,L),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mk(this.relativeTarget,this.relativeTargetOrigin,x,L),I&&JE(this.relativeTarget,I)&&(this.isProjectionDirty=!1),I||(I=mt()),wn(I,this.relativeTarget)),S&&(this.animationValues=g,qE(g,p,this.latestValues,L,R,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tt.update(()=>{Ll.hasAnimatedSinceResize=!0,this.currentAnimation=BE(0,fv,{...u,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onComplete:()=>{u.onComplete&&u.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);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:g}=u;if(!(!d||!h||!p)){if(this!==u&&this.layout&&p&&cw(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||mt();const y=dn(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const x=dn(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+x}wn(d,h),ui(d,g),Do(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new ek),this.sharedNodes.get(u).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:d}=this.options;return d?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:d}=this.options;return d?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&Fd("z",u,p,this.animationValues);for(let g=0;g<Ld.length;g++)Fd(`rotate${Ld[g]}`,u,p,this.animationValues),Fd(`skew${Ld[g]}`,u,p,this.animationValues);u.render();for(const g in p)u.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);u.scheduleRender()}getProjectionStyles(u){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nk;const p={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=jl(u?.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const S={};return this.options.layoutId&&(S.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,S.pointerEvents=jl(u?.pointerEvents)||""),this.hasProjected&&!ms(this.latestValues)&&(S.transform=g?g({},""):"none",this.hasProjected=!1),S}const x=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=tk(this.projectionDeltaWithTransform,this.treeScale,x),g&&(p.transform=g(x,p.transform));const{x:w,y:_}=this.projectionDelta;p.transformOrigin=`${w.origin*100}% ${_.origin*100}% 0`,y.animationValues?p.opacity=y===this?(h=(d=x.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:p.opacity=y===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const S in Hl){if(x[S]===void 0)continue;const{correct:T,applyTo:A}=Hl[S],R=p.transform==="none"?x[S]:T(x[S],y);if(A){const I=A.length;for(let F=0;F<I;F++)p[A[F]]=R}else p[S]=R}return this.options.layoutId&&(p.pointerEvents=y===this?jl(u?.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(hv),this.root.sharedNodes.clear()}}}function sk(t){t.updateLayout()}function ik(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=t.layout,{animationType:l}=t.options,u=n.source!==t.layout.source;l==="size"?Sn(y=>{const x=u?n.measuredBox[y]:n.layoutBox[y],w=dn(x);x.min=i[y].min,x.max=x.min+w}):cw(l,n.layoutBox,i)&&Sn(y=>{const x=u?n.measuredBox[y]:n.layoutBox[y],w=dn(i[y]);x.max=x.min+w,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+w)});const d=ai();Do(d,i,n.layoutBox);const h=ai();u?Do(h,t.applyTransform(o,!0),n.measuredBox):Do(h,i,n.layoutBox);const p=!ow(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:x,layout:w}=y;if(x&&w){const _=mt();Oo(_,n.layoutBox,x.layoutBox);const S=mt();Oo(S,i,w.layoutBox),aw(_,S)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=S,t.relativeTargetOrigin=_,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function ok(t){_o&&gs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ak(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function lk(t){t.clearSnapshot()}function hv(t){t.clearMeasurements()}function uk(t){t.isLayoutDirty=!1}function ck(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function pv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function dk(t){t.resolveTargetDelta()}function fk(t){t.calcProjection()}
vendor: 6,595 bytes, line 8
8function hk(t){t.resetSkewAndRotation()}function pk(t){t.removeLeadSnapshot()}function mv(t,e,n){t.translate=lt(e.translate,0,n),t.scale=lt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function gv(t,e,n,i){t.min=lt(e.min,n.min,i),t.max=lt(e.max,n.max,i)}function mk(t,e,n,i){gv(t.x,e.x,n.x,i),gv(t.y,e.y,n.y,i)}function gk(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const yk={duration:.45,ease:[.4,0,.1,1]},yv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vv=yv("applewebkit/")&&!yv("chrome/")?Math.round:un;function xv(t){t.min=vv(t.min),t.max=vv(t.max)}function vk(t){xv(t.x),xv(t.y)}function cw(t,e,n){return t==="position"||t==="preserve-aspect"&&!SE(cv(e),cv(n),.2)}function xk(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const wk=uw({attachResizeListener:(t,e)=>$o(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zd={current:void 0},dw=uw({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!zd.current){const t=new wk({});t.mount(window),t.setOptions({layoutScroll:!0}),zd.current=t}return zd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Sk={pan:{Feature:VE},drag:{Feature:jE,ProjectionNode:dw,MeasureLayout:rw}};function wv(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=i[o];l&&tt.postRender(()=>l(e,ca(e)))}class bk extends es{mount(){const{current:e}=this.node;e&&(this.unmount=T4(e,n=>(wv(this.node,n,"Start"),i=>wv(this.node,i,"End"))))}unmount(){}}class Tk extends es{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=ua($o(this.node.current,"focus",()=>this.onFocus()),$o(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Sv(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),l=i[o];l&&tt.postRender(()=>l(e,ca(e)))}class Pk extends es{mount(){const{current:e}=this.node;e&&(this.unmount=E4(e,n=>(Sv(this.node,n,"Start"),(i,{success:o})=>Sv(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xf=new WeakMap,Bd=new WeakMap,Ck=t=>{const e=xf.get(t.target);e&&e(t)},_k=t=>{t.forEach(Ck)};function Ek({root:t,...e}){const n=t||document;Bd.has(n)||Bd.set(n,{});const i=Bd.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(_k,{root:t,...e})),i[o]}function kk(t,e,n){const i=Ek(e);return xf.set(t,n),i.observe(t),()=>{xf.delete(t),i.unobserve(t)}}const Ak={some:0,all:1};class Nk extends es{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:Ak[o]},d=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),x=p?g:y;x&&x(h)};return kk(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Rk(e,n))&&this.startObserver()}unmount(){}}function Rk({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Dk={inView:{Feature:Nk},tap:{Feature:Pk},focus:{Feature:Tk},hover:{Feature:bk}},Ok={layout:{ProjectionNode:dw,MeasureLayout:rw}},wf={current:null},fw={current:!1};function Mk(){if(fw.current=!0,!!eh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>wf.current=t.matches;t.addListener(e),e()}else wf.current=!1}const Ik=[...jx,Lt,Zr],jk=t=>Ik.find(Ix(t)),bv=new WeakMap;function Vk(t,e,n){for(const i in e){const o=e[i],l=n[i];if(Ft(o))t.addValue(i,o);else if(Ft(l))t.addValue(i,Bo(o,{owner:t}));else if(l!==o)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=t.getStaticValue(i);t.addValue(i,Bo(u!==void 0?u:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Lk{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kh,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=()=>{const w=Gn.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,tt.render(this.render,!1,!0))};const{latestValues:h,renderState:p,onUpdate:g}=u;this.onUpdate=g,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Cu(n),this.isVariantNode=W1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...x}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in x){const _=x[w];h[w]!==void 0&&Ft(_)&&_.set(h[w],!1)}}mount(e){this.current=e,bv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,235 bytes, line 8
8h((n,i)=>this.bindToMotionValue(i,n)),fw.current||Mk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bv.delete(this.current),this.projection&&this.projection.unmount(),Qr(this.notifyUpdate),Qr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Es.has(e),o=n.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&tt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),l(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in xi){const n=xi[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Tv.length;i++){const o=Tv[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,u=e[l];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=Vk(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Bo(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(Ox(o)||Px(o))?o=parseFloat(o):!jk(o)&&Zr.test(n)&&(o=Nx(e,n)),this.setBaseTarget(e,Ft(o)?o.get():o)),Ft(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let o;if(typeof i=="string"||typeof i=="object"){const u=ah(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[e])}if(i&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Ft(l)?l:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sh),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class hw extends Lk{constructor(){super(...arguments),this.KeyframeResolver=Vx}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ft(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fk(t){return window.getComputedStyle(t)}class zk extends hw{constructor(){super(...arguments),this.type="html",this.renderInstance=J1}readValueFromInstance(e,n){if(Es.has(n)){const i=Eh(n);return i&&i.default||0}else{const i=Fk(e),o=(G1(n)?i.getPropertyValue(n):i[n])||0;
8return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return tw(e,n)}build(e,n,i){ch(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ph(e,n,i)}}class Bk extends hw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Es.has(n)){const i=Eh(n);return i&&i.default||0}return n=ex.has(n)?n:sh(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return rx(e,n,i)}build(e,n,i){dh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,o){tx(e,n,i,o)}mount(e){this.isSVGTag=hh(e.tagName),super.mount(e)}}const Uk=(t,e)=>oh(t)?new Bk(e):new zk(e,{allowProjection:t!==P.Fragment}),$k=g4({...fE,...Dk,...Sk,...Ok},Uk),Qe=R_($k);function Wk(t){t.values.forEach(e=>e.stop())}function Sf(t,e){[...e].reverse().forEach(i=>{const o=t.getVariant(i);o&&bh(t,o),t.variantChildren&&t.variantChildren.forEach(l=>{Sf(l,e)})})}function Hk(t,e){if(Array.isArray(e))return Sf(t,e);if(typeof e=="string")return Sf(t,[e]);bh(t,e)}function Kk(){const t=new Set,e={subscribe(n){return t.add(n),()=>{t.delete(n)}},start(n,i){const o=[];return t.forEach(l=>{o.push(Kx(l,n,{transitionOverride:i}))}),Promise.all(o)},set(n){return t.forEach(i=>{Hk(i,n)})},stop(){t.forEach(n=>{Wk(n)})},mount(){return()=>{e.stop()}}};return e}function qk(){const t=V1(Kk);return F1(t.mount,[]),t}var pw={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Pv=He.createContext&&He.createContext(pw),Qk=["attr","size","title"];function Zk(t,e){if(t==null)return{};var n=Gk(t,e),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)i=l[o],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function Gk(t,e){if(t==null)return{};var n={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function Xl(){return Xl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Xl.apply(this,arguments)}function Cv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Yl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cv(Object(n),!0).forEach(function(i){Xk(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cv(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Xk(t,e,n){return e=Yk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yk(t){var e=Jk(t,"string");return typeof e=="symbol"?e:e+""}function Jk(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mw(t){return t&&t.map((e,n)=>He.createElement(e.tag,Yl({key:n},e.attr),mw(e.child)))}function da(t){return e=>He.createElement(e5,Xl({attr:Yl({},t.attr)},e),mw(t.child))}function e5(t){var e=n=>{var{attr:i,size:o,title:l}=t,u=Zk(t,Qk),d=o||n.size||"1em",h;return n.className&&(h=n.className),t.className&&(h=(h?h+" ":"")+t.className),He.createElement("svg",Xl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:h,style:Yl(Yl({color:t.color||n.color},n.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&He.createElement("title",null,l),t.children)};return Pv!==void 0?He.createElement(Pv.Consumer,null,n=>e(n)):e(pw)}function gw(t){return da({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.8454 9.4083c-1.3907 1.0194-3.405 1.563-5.1424 1.563a9.333 9.333 0 0 1-6.2768-2.3835c-.1313-.117-.0143-.277.1415-.1846a12.693 12.693 0 0 0 6.285 1.6574c1.5384 0 3.2348-.318 4.7917-.9764.2359-.0985.4328.1538.203.324h-.002zm.5784-.6564c-.1784-.2257-1.1753-.1087-1.6225-.
80554-.1374.0164-.158-.1026-.0349-.1867.796-.5558 2.0984-.3958 2.2502-.2092.1539.1867-.041 1.4872-.7856 2.1087-.1149.0964-.2236.0451-.1723-.082.1682-.4165.5436-1.3498.3651-1.5754zm-1.5917-4.1702v-.5394c0-.082.0615-.1375.1374-.1375h2.4348c.078 0 .1395.0554.1395.1354v.4636c0 .078-.0656.1805-.1846.3405L15.0997 6.635c.4677-.0102.9641.0595 1.3887.2974.0964.0534.123.1334.1292.2113v.5744c0 .082-.0882.1723-.1784.123a2.8163 2.8163 0 0 0-2.5723.0062c-.0861.0451-.1743-.0451-.1743-.1251v-.5477c0-.0882.002-.238.0902-.3713l1.4626-2.0881h-1.2718c-.078 0-.1415-.0534-.1436-.1354l.002.002zm4.808-.7466c1.0995 0 1.6944.9395 1.6944 2.1333 0 1.1528-.6564 2.0676-1.6943 2.0676-1.079 0-1.6656-.9395-1.6656-2.1087 0-1.1774.5948-2.0922 1.6656-2.0922zm.0062.7713c-.5456 0-.5805.7384-.5805 1.202 0 .4615-.0061 1.4481.5744 1.4481.5743 0 .601-.7958.601-1.282 0-.318-.0144-.6994-.1108-1.001-.082-.2625-.2482-.3671-.4841-.3671zm-6.008 3.3414c-.0493.041-.1395.0451-.1744.0164-.2543-.1949-.4246-.4923-.4246-.4923-.4061.4123-.6954.5374-1.2225.5374-.6215 0-1.1077-.3835-1.1077-1.1486a1.2512 1.2512 0 0 1 .7897-1.2041c.402-.1764.9641-.2072 1.3928-.2564 0 0 .0349-.4615-.0902-.6297a.521.521 0 0 0-.4164-.1908c-.2728 0-.5395.1477-.5928.4328-.0144.082-.0739.1518-.1395.1436L9.945 5.08a.1292.1292 0 0 1-.1108-.1537c.1641-.8657.9498-1.1282 1.6554-1.1282.361 0 .8307.0964 1.1158.3671.359.3344.3262.7795.3262 1.2677v1.1487c0 .3446.1436.4964.279.681.0471.0677.0574.1477-.002.197-.1519.125-.5703.4881-.5703.4881zm-.7467-1.7969v-.16c-.5353 0-1.1015.115-1.1015.7426 0 .318.1662.5333.4513.5333.2051 0 .3938-.1272.5128-.3344.1436-.2564.1374-.4943.1374-.7815zM2.9278 7.948c-.0472.041-.1375.045-.1723.0163-.2544-.1949-.4246-.4923-.4246-.4923-.4082.4123-.6954.5374-1.2226.5374-.6235 0-1.1076-.3835-1.1076-1.1486a1.2512 1.2512 0 0 1 .7897-1.2041c.402-.1764.964-.2072 1.3928-.2564 0 0 .0348-.4615-.0903-.6297a.521.521 0 0 0-.4164-.1908c-.2748 0-.5395.1477-.5928.4328-.0143.082-.0759.1518-.1395.1436L.2345 5.08a.1292.1292 0 0 1-.1087-.1537c.162-.8657.9497-1.1282 1.6553-1.1282.361 0 .8308.0964 1.1159.3671.359.3344.324.7795.324 1.2677v1.1487c0 .3446.1437.4964.279.681.0472.0677.0575.1477-.002.197-.1518.125-.5702.4881-.5702.4881zm-.7446-1.797v-.16c-.5354 0-1.1015.115-1.1015.7426 0 .318.164.5333.4512.5333.2052 0 .3939-.1272.5128-.3344.1436-.2564.1375-.4943.1375-.7815zm2.9127-.3343v2.002a.1379.1379 0 0 1-.1395.1374H4.218a.1374.1374 0 0 1-.1395-.1374v-3.766a.1379.1379 0 0 1 .1395-.1375h.6913a.1374.1374 0 0 1 .1374.1374v.482h.0143c.1805-.4758.519-.6994.9744-.6994.4636 0 .7528.2236.962.6995a1.0523 1.0523 0 0 1 1.0215-.6995c.3118 0 .6502.1272.8574.4143.236.318.1867.7795.1867 1.1857v2.3855c0 .076-.0636.1354-.1436.1354H8.181a.1374.1374 0 0 1-.1334-.1354v-2.004c0-.16.0144-.558-.0205-.7077-.0554-.2564-.2215-.3282-.4369-.3282a.4923.4923 0 0 0-.441.3118c-.076.1908-.0698.5087-.0698.724v2.0041c0 .076-.0635.1354-.1435.1354h-.7385a.1374.1374 0 0 1-.1333-.1354v-2.004c0-.4226.0677-1.042-.4574-1.042-.5334 0-.5128.603-.5128 1.042h.002zm16.8077 2.002a.1374.1374 0 0 1-.1374.1374h-.7405a.1374.1374 0 0 1-.1374-.1374v-3.766a.1374.1374 0 0 1 .1374-.1375h.683c.0821 0 .1396.0636.1396.1067v.5764h.0143c.2051-.517.4964-.7631 1.0092-.7631.3323 0 .6564.119.8636.4451.1928.3036.1928.8123.1928 1.1774V7.837a.1395.1395 0 0 1-.1415.119h-.7426a.1395.1395 0 0 1-.1313-.119V5.552c0-.763-.2933-.7856-.4635-.7856-.197 0-.357.1538-.4246.2953a1.7025 1.7025 0 0 0-.1231.722l.002 2.0349zM.1914 20.0582c-.1271 0-.1907-.0615-.1907-.1907v-4.4491c0-.1272.0636-.1908.1907-.1908H.616c.0616 0 .1129.0144.1477.039.0349.0246.0595.0738.0718.1436l.0575.3035c.6133-.4184 1.2102-.6276 1.7907-.6276.5948 0 .9969.2256 1.2081.6769.6318-.4513 1.2636-.677 1.8954-.677.441 0 .7794.1231 1.0153.3693.236.2502.3549.603.3549 1.0584v3.3538c0 .1271-.0656.1907-.1928.1907h-.5641c-.1272 0-.1928-.0615-.1928-.1907v-3.085c0-.318-.0616-.5539-.1805-.7057-.1231-.1538-.3139-.2297-.5744-.2297-.4677 0-.9353.1436-1.4092.4307a.997.997 0 0 1 .0103.1416v3.448c0 .1272-.0636.1908-.1908.1908H3.297c-.1272 0-.1908-.0615-.1908-.1907v-3.085c0-.318-.0615-.5539-.1825-.7057-.1231-.1538-.3139-.2297-.5744-.2297-.4861 0-.9517.1395-1.399.4205v3.5999c0 .1271-.0615.1907-.1907.1907H.1914zm9.731.1436c-.4533 0-.8-.1272-1.044-.3815-.242-.2544-.3631-.6133-.3631-1.0769v-3.321c0-.1292.0615-.1927.1908-.1927h.564c.1293 0 .1929.0635.1929.1907v3.0215c0 .3425.0656.5948.201.7569.1333.162.3487.242.642.242.4595 0 .923-.1518 1.3887-.4574v-3.565c0-.1272.0615-.1908.1908-.1908h.564c.1293 0 .1929.0636.1929.1908v4.4511c0 .1252-.0636.1887-.1928.1887h-.4103c-.0636 0-.1149-.0123-.1497-.0369-.0349-.0266-.0575-.0738-.0718-.1436l-.0657-.3323c-.5948.437-1.204.6564-1.8297.6564zm5.4399 0c-.5374 0-1.0195-.0882-1.4461-.2666a.3754.3754 0 0 1-.158-.1047c-.0287-.039-.043-.0984-.043-.1805v-.2687c0-.1148.0369-.1723.1148-.1723.0452 0 .1231.0205.238.0575.4225.1333.8615.199 1.3128.199.3138 0 .5517-.0616.7138-.1806.164-.121.244-.2954.244-.523a.4923.4923 0 0 0-.1476-.3734 1.606 1.606 0 0 0-.5415-.285l-.8144-.3037c-.7097-.2605-1.0625-.70
856-1.0625-1.3333 0-.4143.16-.7487.484-1.001.3221-.2543.7447-.3815 1.2677-.3815a3.487 3.487 0 0 1 1.2164.2195c.076.0246.1313.0574.1641.0985.0308.041.0472.1025.0472.1846v.2584c0 .1149-.041.1723-.123.1723a.8615.8615 0 0 1-.2216-.0472 3.5495 3.5495 0 0 0-1.0359-.1538c-.6112 0-.919.2072-.919.6195 0 .164.0514.2953.154.3897.1025.0964.3035.201.603.3159l.7466.2872c.3774.1436.6482.318.8144.519.1661.1989.2482.4574.2482.7753 0 .4513-.1682.8102-.5067 1.0769-.3385.2666-.7877.4-1.3497.4v.002zm3.0645-.1436c-.1272 0-.1928-.0615-.1928-.1907v-4.4491c0-.1272.0656-.1908.1928-.1908h.5641c.1272 0 .1928.0636.1928.1908v4.4511c0 .1251-.0656.1887-.1928.1887h-.564zm.2872-5.688c-.1846 0-.3303-.0513-.437-.1559a.558.558 0 0 1-.1579-.4143c0-.1724.0534-.3098.158-.4144a.5907.5907 0 0 1 .4369-.158c.1846 0 .3282.0534.4349.158.1066.1026.1579.242.1579.4144 0 .1702-.0513.3076-.158.4143-.1046.1026-.2502.1559-.4348.1559zm4.002 5.7926c-.7529 0-1.3293-.2133-1.7272-.642-.4-.4307-.599-1.0502-.599-1.8625 0-.8061.2052-1.4318.6175-1.8728.4102-.441.9948-.6625 1.7476-.6625.3446 0 .683.0615 1.0154.1825.0697.0247.119.0554.1477.0944s.043.1026.043.1908v.2564c0 .1271-.041.1907-.123.1907-.0329 0-.082-.0082-.1539-.0287a2.8307 2.8307 0 0 0-.7959-.1128c-.5353 0-.923.1333-1.1589.404s-.3528.6996-.3528 1.2924v.123c0 .5764.119 1.001.359 1.2718.24.2687.6174.404 1.1343.404.2666 0 .5538-.043.8615-.1332.0718-.0206.119-.0288.1436-.0288.082 0 .1251.0636.1251.1908v.2585c0 .082-.0123.1435-.039.1805-.0246.0369-.0759.0718-.1518.1025-.3138.1354-.6769.201-1.0933.201z"},child:[]}]})(t)}function yw(t){return da({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.994 6.124a9.23 9.23 0 00-.24-2.19c-.317-1.31-1.062-2.31-2.18-3.043a5.022 5.022 0 00-1.877-.726 10.496 10.496 0 00-1.564-.15c-.04-.003-.083-.01-.124-.013H5.986c-.152.01-.303.017-.455.026-.747.043-1.49.123-2.193.4-1.336.53-2.3 1.452-2.865 2.78-.192.448-.292.925-.363 1.408-.056.392-.088.785-.1 1.18 0 .032-.007.062-.01.
8093v12.223c.01.14.017.283.027.424.05.815.154 1.624.497 2.373.65 1.42 1.738 2.353 3.234 2.801.42.127.856.187 1.293.228.555.053 1.11.06 1.667.06h11.03a12.5 12.5 0 001.57-.1c.822-.106 1.596-.35 2.295-.81a5.046 5.046 0 001.88-2.207c.186-.42.293-.87.37-1.324.113-.675.138-1.358.137-2.04-.002-3.8 0-7.595-.003-11.393zm-6.423 3.99v5.712c0 .417-.058.827-.244 1.206-.29.59-.76.962-1.388 1.14-.35.1-.706.157-1.07.173-.95.045-1.773-.6-1.943-1.536a1.88 1.88 0 011.038-2.022c.323-.16.67-.25 1.018-.324.378-.082.758-.153 1.134-.24.274-.063.457-.23.51-.516a.904.904 0 00.02-.193c0-1.815 0-3.63-.002-5.443a.725.725 0 00-.026-.185c-.04-.15-.15-.243-.304-.234-.16.01-.318.035-.475.066-.76.15-1.52.303-2.28.456l-2.325.47-1.374.278c-.016.003-.032.01-.048.013-.277.077-.377.203-.39.49-.002.042 0 .086 0 .13-.002 2.602 0 5.204-.003 7.805 0 .42-.047.836-.215 1.227-.278.64-.77 1.04-1.434 1.233-.35.1-.71.16-1.075.172-.96.036-1.755-.6-1.92-1.544-.14-.812.23-1.685 1.154-2.075.357-.15.73-.232 1.108-.31.287-.06.575-.116.86-.177.383-.083.583-.323.6-.714v-.15c0-2.96 0-5.922.002-8.882 0-.123.013-.25.042-.37.07-.285.273-.448.546-.518.255-.066.515-.112.774-.165.733-.15 1.466-.296 2.2-.444l2.27-.46c.67-.134 1.34-.27 2.01-.403.22-.043.442-.088.663-.106.31-.025.523.17.554.482.008.073.012.148.012.223.002 1.91.002 3.822 0 5.732z"},child:[]}]})(t)}function vw(t){return da({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},child:[]}]})(t)}function xw(t){return da({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"},child:[]}]})(t)}function ww(t){return da({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},child:[]}]})(t)}const _v="/assets/_D7A7817_copy_1772669549501-CkKvj8DV.jpeg";function t5({text:t,delay:e,className:n}){const[i,o]=P.useState(""),[l,u]=P.useState(!1);return P.useEffect(()=>{const d=setTimeout(()=>u(!0),e*1e3);return()=>clearTimeout(d)},[e]),P.useEffect(()=>{if(!l)return;let d=0;const h=setInterval(()=>{o(t.slice(0,d+1)),d++,d>=t.length&&clearInterval(h)},80);return()=>clearInterval(h)},[l,t]),b.jsxs("span",{className:n,children:[i,i.length<t.length&&l&&b.jsx(Qe.span,{animate:{o
8pacity:[1,0]},transition:{repeat:1/0,duration:.5},className:"inline-block w-[2px] h-[0.8em] bg-white/60 align-middle ml-1"})]})}function n5(){const t=qk(),[e,n]=P.useState(!1);return P.useEffect(()=>{(async()=>(await t.start({opacity:[0,0,.7,0,.85,0,.4,0,0,.95,.3,.95,0,1],transition:{duration:2.2,delay:1,times:[0,.18,.21,.26,.3,.35,.4,.44,.5,.54,.62,.68,.76,.82],ease:"linear"}}),n(!0)))()},[]),b.jsx(Qe.div,{animate:t,initial:{opacity:0},className:`font-black leading-none tracking-[0.06em] text-white whitespace-nowrap ${e?"neon-breathe":""}`,style:{fontSize:"clamp(3rem, 10vw, 8.5rem)"},children:b.jsx("span",{className:e?"neon-text":"",children:"SHAWN HOOK"})})}function r5(){const t=()=>{const e=document.getElementById("latest-single");e&&e.scrollIntoView({behavior:"smooth"})};return b.jsxs("section",{className:"relative h-screen w-full flex items-center justify-center overflow-hidden bg-black select-none",children:[b.jsxs(Qe.div,{className:"absolute inset-0 z-0",initial:{scale:1.1},animate:{scale:1},transition:{duration:10,ease:"easeOut"},children:[b.jsx(Qe.img,{src:_v,alt:"","aria-hidden":"true",className:"w-full h-full object-cover object-center",initial:{opacity:0}
8,animate:{opacity:.35},transition:{duration:3,ease:"easeIn"}}),b.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/30 to-black/10"}),b.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/30 via-transparent to-black/50"})]}),b.jsx("div",{className:"absolute inset-0 z-10 pointer-events-none opacity-[0.04]",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E")`,backgroundRepeat:"repeat",backgroundSize:"128px"}}),b.jsx("div",{className:"absolute inset-0 z-20",children:b.jsxs("div",{className:"absolute bottom-6 left-0 right-0 max-w-6xl mx-auto px-8 md:px-16",children:[b.jsx(n5,{}),b.jsx(Qe.div,{className:"mt-6 mb-4 h-px origin-left",style:{background:"linear-gradient(to right, rgba(255,255,255,0.4), transparent)"},initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1},transition:{delay:3.5,duration:.9,ease:"easeOut"}}),b.jsx(Qe.div,{initial:{opacity:0}
8,animate:{opacity:1},transition:{delay:3.4,duration:.4},className:"text-white/45 font-light uppercase",style:{fontSize:"clamp(0.85rem, 2.2vw, 1.4rem)",letterSpacing:"0.45em"},children:b.jsx(t5,{text:"REBUILD",delay:3.6})}),b.jsx(Qe.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:5,duration:.6},className:"flex items-center gap-5 mt-4",children:[{icon:xw,href:"https://open.spotify.com/album/1DBxyvECXznm55HE4voJJT?si=qRN424xPRpGWikCySwVkrw",label:"Spotify",testId:"link-spotify-hero"},{icon:yw,href:"https://music.apple.com/us/album/rebuild-ep/1843406293",label:"Apple Music",testId:"link-apple-hero"},{icon:gw,href:"https://music.amazon.com/search/shawn+hook",label:"Amazon Music",testId:"link-amazon-hero"},{icon:ww,href:"https://www.youtube.com/channel/UCrcoOWpcwTuZEqS-ldhO93A",label:"YouTube",testId:"link-youtube-hero"},{icon:vw,href:"https://www.instagram.com/shawnhook/",label:"Instagram",testId:"link-instagram-hero"}].map(({icon:e,href:n,label:i,testId:o})=>b.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer","aria-label":i,"data-testid":o,className:"text-white/90 hover:text-white transition-colors duration-300",style:{filter:"drop-shadow(0 0 3px rgba(168, 85, 247, 1)) drop-shadow(0 0 5px rgba(168, 85, 247, 0.8))"},children:b.jsx(e,{size:18})},i))})]})}),b.jsx(Qe.div,{className:"absolute inset-0 z-30 pointer-events-none",initial:{opacity:0}
8,animate:{opacity:1},transition:{duration:3,ease:"easeIn"},style:{mixBlendMode:"screen"},children:b.jsx("img",{src:_v,alt:"Shawn Hook",className:"w-full h-full object-cover object-center",style:{filter:"brightness(1.15) contrast(1.05)"}})}),b.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-24 z-40 pointer-events-none bg-gradient-to-t from-black to-transparent"}),b.jsxs(Qe.button,{onClick:t,"data-testid":"button-scroll-down",initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:4.5},className:"absolute bottom-10 z-50 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 group",children:[b.jsx("span",{className:"text-[0.6rem] uppercase tracking-[0.3em] text-white/30 group-hover:text-white/60 transition-colors duration-300",children:"Discover"}),b.jsx(oP,{className:"w-4 h-4 text-white/30 group-hover:text-white/60 animate-bounce transition-colors duration-300"})]})]})}const s5=["Shawn Hook is a 4x Juno-nominated Canadian recording artist, songwriter, and producer whose music has resonated with audiences worldwide. With 16 Top 40 singles, over 400 million global streams, and multi-platinum releases to his name, Shawn has built a career over two decades defined by honest songwriting and undeniable melodic instincts.","In 2023, Shawn faced the fight of his life when a cancer scare forced him to step back from everything: his music, his career, his sense of self. What followed was a period of deep reflection and determination that would ultimately reshape his artistry from the ground up.","The result is Rebuild, an album born from that journey of overcoming adversity and channeling it into something powerful. Raw, hopeful, and deeply personal, the record documents what it means to literally rebuild your life and career when the foundation has been shaken. Rebuild earned Shawn a 2026 Juno Award nomination for Adult Contemporary Album of the Year, a recognition that affirms not just the quality of the music, but the resilience behind it.",`His current single "Dear Mr. Brown" is a karma anthem rooted in a true story. When a con artist disguised as a record executive tried to hold back Shawn's music and stiffed him and his collaborators, Shawn did what he does best: he hit back with the pen. Equal parts sharp, satisfying, and catchy, the track is proof that the best revenge is a great song.`,"From stadium-sized hooks to intimate, stripped-back moments, Shawn Hook continues to prove that great songs come from real life. Especially the chapters you never planned to write."],i5=[{value:"4×",label:"Juno Nominated"},{value:"16",label:"Top 40 Singles"},{value:"400M+",label:"Global Streams"}];function o5(){return b.jsxs("section",{id:"bio",className:"relative py-32 px-4 md:px-8 lg:px-16 bg-black text-white overflow-hidden",children:[b.jsx("div",{className:"absolute -left-8 top-1/2 -translate-y-1/2 font-black leading-none text-white/[0.025] pointer-events-none select-none",style:{fontSize:"clamp(18rem, 40vw, 36rem)"},"aria-hidden":"true",children:"S"}),b.jsxs("div",{className:"relative max-w-6xl mx-auto",children:[b.jsxs(Qe.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7},className:"flex items-center gap-4 mb-16",children:[b.jsx("div",{className:"h-px w-12 bg-white/30"}),b.jsx("span",{className:"text-zinc-500 tracking-[0.25em] text-xs font-semibold uppercase",children:"About"})]}),b.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-16 lg:gap-20",children:[b.jsxs("div",{className:"lg:col-span-4 flex flex-col justify-between gap-12",children:[b.jsxs(Qe.h2,{initial:{opacity:0,x:-24},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.9,ease:"easeOut"},className:"font-black leading-none tracking-tight text-white",style:{fontSize:"clamp(3rem, 7vw, 5rem)"},children:["SHAWN",b.jsx("br",{}),b.jsx("span",{className:"text-white/30",children:"HOOK"})]}),b.jsx(Qe.div,{initial:{opacity:0}
8,whileInView:{opacity:1},viewport:{once:!0,margin:"-60px"},transition:{duration:.8,delay:.3},className:"flex flex-col gap-8",children:i5.map(({value:t,label:e},n)=>b.jsxs(Qe.div,{initial:{opacity:0,x:-16},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.4+n*.12},className:"flex flex-col gap-1",children:[b.jsx("span",{className:"font-black text-white leading-none",style:{fontSize:"clamp(2rem, 4vw, 2.75rem)"},children:t}),b.jsx("span",{className:"text-zinc-500 tracking-[0.2em] text-xs uppercase",children:e}),b.jsx("div",{className:"h-px w-full bg-white/8 mt-2"})]},e))}),b.jsx(Qe.blockquote,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.9,delay:.5},className:"border-l border-white/20 pl-5 text-zinc-400 text-sm leading-relaxed italic hidden lg:block",children:'"The best revenge is a great song."'})]}),b.jsxs("div",{className:"lg:col-span-8 flex flex-col gap-7",children:[s5.map((t,e)=>b.jsx(Qe.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.75,ease:"easeOut",delay:e*.1},className:e===0?"text-zinc-200 text-lg md:text-xl leading-relaxed font-light":"text-zinc-400 text-base md:text-lg leading-relaxed font-light",children:t},e)),b.jsxs(Qe.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.5},className:"mt-4 inline-flex items-center gap-3 border border-white/10 rounded-sm px-5 py-3 self-start",children:[b.jsx("span",{className:"text-white/40 text-xs tracking-widest uppercase",children:"2026 Juno Nomination"}),b.jsx("span",{className:"w-px h-3 bg-white/20"}),b.jsx("span",{className:"text-white/70 text-xs tracking-widest uppercase",children:"Adult Contemporary Album of the Year"}),b.jsx("span",{className:"w-px h-3 bg-white/20"}),b.jsx("span",{className:"text-white/40 text-xs tracking-widest uppercase",children:"4× Nominated"})]})]})]})]})]})}const a5="/assets/shawn_hook_2026_online_media_bhubble_rev_1773413699671-HWe-v-XW.png",l5="/assets/Screenshot_2026-04-09_at_5.41.40_PM_1775781723619-Cov6mwlz.png",u5=[{presenter:"Silver City Days Presents",title:"Shawn Hook",subtitle:"Homecoming",date:"May 9, 2026",time:"7:00 PM",venue:"The Bailey Theatre, Trail BC",tickets:"$50",ticketUrl:"https://purchase.trail-arts.com/ChooseSeats/28201",image:a5,testId:"link-tickets-homecoming"},{presenter:"FIFA World Cup 2026",title:"FIFA Fan Festival",subtitle:"Live Performance",date:"Tuesday, July 7, 2026",time:"TBA",venue:"FIFA Fan Festival — Vancouver, BC",tickets:null,ticketUrl:"https://www.ticketleader.ca/events/detail/fifa-fan-festival-july-07-2026",image:l5,testId:"link-tickets-fifa"}];function c5(){return b.jsx("section",{className:"bg-black py-24 px-4",children:b.jsxs("div",{className:"max-w-5xl mx-auto flex flex-col items-center gap-12",children:[b.jsxs(Qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"text-center",children:[b.jsx("p",{className:"text-white/30 text-xs uppercase tracking-[0.4em] mb-3",children:"Live"}),b.jsx("h2",{className:"text-white text-3xl font-bold tracking-[0.2em] uppercase",children:"Shows"})]}),b.jsx("div",{className:"flex flex-col gap-6 w-full",children:u5.map((t,e)=>b.jsxs(Qe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:e*.15},className:"flex flex-col md:flex-row items-center gap-8 w-full border border-white/10 rounded-sm p-8 bg-white/[0.02]",children:[t.image?b.jsx("img",{src:t.image,alt:`${t.title} ${t.subtitle}`,"data-testid":"img-show-poster",className:"w-48 md:w-56 rounded-sm shadow-2xl flex-shrink-0"}):b.jsx("div",{className:"w-48 md:w-56 flex-shrink-0 aspect-[3/4] border border-white/10 rounded-sm flex items-center justify-center bg-white/[0.03]",children:b.jsx("span",{className:"text-white/20 text-4xl font-bold tracking-widest",children:"FIFA"})}),b.jsxs("div",{className:"flex flex-col items-center md:items-start gap-5 text-center md:text-left",children:[b.jsxs("div",{children:[b.jsx("p",{className:"text-white/40 text-xs uppercase tracking-[0.3em] mb-2",children:t.presenter}),b.jsx("h3",{className:"text-white text-2xl font-bold tracking-widest uppercase",children:t.title}),b.jsx("p",{className:"text-white/60 text-lg font-light tracking-[0.2em] uppercase mt-1",children:t.subtitle})]}),b.jsxs("div",{className:"flex flex-col gap-1 text-white/70 text-sm",children:[b.jsxs("p",{children:[b.jsx("span",{className:"text-white/40 uppercase tracking-widest text-xs mr-2",children:"Date"}),t.date]}),b.jsxs("p",{children:[b.jsx("span",{className:"text-white/40 uppercase tracking-widest text-xs mr-2",children:"Time"}),t.time]}),b.jsxs("p",{children:[b.jsx("span",{className:"text-white/40 uppercase tracking-widest text-xs mr-2",children:"Venue"}),t.venue]}),t.tickets&&b.jsxs("p",{children:[b.jsx("span",{className:"text-white/40 uppercase tracking-widest text-xs mr-2",children:"Tickets"}),t.tickets]})]}),b.jsx("a",{href:t.ticketUrl,target:"_blank",rel:"noopener noreferrer","data-testid":t.testId,className:"mt-2 px-10 py-3 border border-white/30 text-white text-xs uppercase tracking-[0.3em] hover:bg-white hover:text-black transition-all duration-300",children:"Get Tickets"})]})]},t.testId))})]})})}const d5=[{name:"British Columbia & North",stations:[{name:"99.9 Sun FM",call:"CHSU-FM",location:"Kelowna, BC",badge:"Contemporary Hit Radio",href:"https://www.myktownnow.com"},{name:"101.5 GO FM",call:"CILK-FM",location:"Kelowna, BC",badge:"Adult Contemporary",href:"https://www.myktownnow.com"},{name:"97.1 GO FM",call:"CJMG-FM",location:"Penticton, BC",badge:"Adult Contemporary",href:"https://www.mypentictonnow.com"},{name:"98.5 GO FM",call:"CHRX-FM",location:"Fort St. John, BC",badge:"Adult Contemporary",href:"https://www.mypeaceregi
8onnow.com"},{name:"100.1 GO FM",call:"CJCD-FM",location:"Yellowknife, NT",badge:"Hot AC",href:"https://www.myyellowknifenow.com"}]},{name:"Alberta",stations:[{name:"96.3 Sun FM",call:"CJGY-FM",location:"Grande Prairie, AB",badge:"Contemporary Hit Radio",href:"https://www.mygrandeprairienow.com"}]},{name:"Ontario",stations:[{name:"107.7 2day FM",call:"CHGK-FM",location:"Stratford, ON",badge:"Hot AC",href:"https://www.mystratfordnow.com"},{name:"99.5 Moose FM",call:"CFBG-FM",location:"Bracebridge, ON",badge:"Hot AC",href:"https://www.mymuskokanow.com"},{name:"99.3 Moose FM",call:"CFSF-FM",location:"Sturgeon Falls, ON",badge:"Adult Contemporary",href:"https://www.mywestnipissingnow.com"},{name:"89.7 CKGN",call:"CKGN-FM",location:"Kapuskasing, ON",badge:"Community",href:"http://www.ckgn.ca"}]},{name:"Québec",stations:[{name:"107.1 CHNC",call:"CHNC-FM",location:"Paspébiac, QC",badge:"AC / Country",href:"https://radiochnc.com"},{name:"90.5 Radio Anticosti",call:"CJBE-FM",location:"Port-Menier, QC",badge:"Community",href:"https://www.radioanticosti.com"}]}];function f5(){return b.jsx("span",{className:"inline-flex items-end gap-[3px] h-[18px] mr-3 relative top-[-1px]",children:[8,14,6,18,10].map((t,e)=>b.jsx("span",{className:"w-[3px] bg-white rounded-sm",style:{height:`${t}px`,animation:`eqBounce 1s ease-in-out ${[0,.15,.3,.1,.25][e]}s infinite`}},e))})}function h5(){return b.jsxs("section",{className:"bg-black w-full flex flex-col items-center px-4 py-24 relative",children:[b.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[min(600px,80%)] h-px bg-gradient-to-r from-transparent via-white/15 to-transparent"}),b.jsx(Qe.p,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"text-white/50 text-[11px] uppercase tracking-[0.4em] mb-10",children:"On Air"}),b.jsx(Qe.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.1},className:"text-center mb-6",children:b.jsxs("h2",{className:"text-white font-bold uppercase text-5xl md:text-7xl tracking-widest leading-none",style:{textShadow:"0 0 60px rgba(255,255,255,0.15)"},children:[b.jsx(f5,{}),"Now Playing"]})}),b.jsxs(Qe.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.2},className:"text-center mb-14",children:[b.jsx("p",{className:"text-white/50 uppercase tracking-[0.25em] text-lg font-light",children:'"Dear Mr. Brown"'}),b.jsx("p",{className:"text-white/30 uppercase tracking-[0.12em] text-xs mt-1",children:"from the album Rebuild"})]}),b.jsx("div",{className:"w-[min(400px,60%)] h-px bg-gradient-to-r from-transparent via-white/12 to-transparent mb-14"}),b.jsx("div",{className:"w-full max-w-4xl flex flex-col gap-10",children:d5.map((t,e)=>b.jsxs(Qe.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1*e},children:[b.jsx("p",{className:"text-white/30 text-[11px] uppercase tracking-[0.35em] mb-4 pl-1",children:t.name}),b.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:t.stations.map((n,i)=>b.jsxs(Qe.a,{href:n.href,target:"_blank",rel:"noopener noreferrer","data-testid":`card-station-${n.call}`,initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.08*i+.1*e},className:"group bg-white/[0.03] border border-white/10 rounded-[6px] p-6 flex flex-col gap-2 hover:bg-white/[0.06] hover:border-white/20 hover:-translate-y-[2px] transition-all duration-300 no-underline text-white relative overflow-hidden",children:[b.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-white/0 to-transparent group-hover:via-white/20 transition-all duration-300"}),b.jsxs("div",{className:"flex items-start justify-between",children:[b.jsx("span",{className:"font-bold uppercase tracking-wide text-lg leading-tight",children:n.name}),b.jsxs("svg",{className:"w-[18px] h-[18px] opacity-25 group-hover:opacity-80 group-hover:translate-x-[2px] group-hover:-translate-y-[2px] transition-all duration-300 flex-shrink-0 mt-[2px]",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("line",{x1:"4",y1:"16",x2:"16",y2:"4"}),b.jsx("polyline",{points:"8 4 16 4 16 12"})]})]}),b.jsx("span",{className:"text-white/30 text-[11px] uppercase tracking-[0.3em]",children:n.call}),b.jsx("span",{className:"text-white/50 text-[13px]",children:n.location}),b.jsx("span",{className:"mt-1 text-[10px] uppercase tracking-[0.2em] text-white/35 border border-white/10 rounded-[3px] px-[9px] py-[3px] w-fit",children:n.badge})]},n.call))})]},t.name))}),b.jsxs(Qe.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.4},className:"text-center mt-14 text-white/30 text-[13px] tracking-wide",children:['Hear a station playing "Dear Mr. Brown"?'," ",b.jsx("a",{href:"https://www.instagram.com/shawnhook/",target:"_blank",rel:"noopener noreferrer",className:"text-white/50 border-b border-white/15 hover:text-white hover:border-white/50 transition-all duration-300",children:"Let me know"})]}),b.jsx("style",{children:`
9        @keyframes eqBounce {
10          0%, 100% { transform: scaleY(0.4); }
11          50% { transform: scaleY(1); }
12        }
13      `})]})}const p5="/assets/Shawn_Hook_Merch_1777311195676-DIjZrvQh.png";function m5(){return b.jsx("section",{className:"bg-black py-24 px-4",children:b.jsxs("div",{className:"max-w-4xl mx-auto flex flex-col items-center gap-12",children:[b.jsxs(Qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"text-center",children:[b.jsx("p",{className:"text-white/30 text-xs uppercase tracking-[0.4em] mb-3",children:"Limited Drop"}),b.jsx("h2",{className:"text-white text-3xl font-bold tracking-[0.2em] uppercase",children:"Merch"})]}),b.jsxs(Qe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"w-full flex flex-col items-center gap-6",children:[b.jsx("img",{src:p5,alt:"Shawn Hook Merch — Limited Show-Only Drop, May 9 at Charles Bailey Theatre","data-testid":"img-merch-poster",className:"w-full max-w-md rounded-sm shadow-2xl"}),b.jsx("p",{"data-testid":"text-merch-availability",className:"text-white/50 text-xs uppercase tracking-[0.3em] text-center",children:"Available only at the May 9 show"})]})]})})}var fa=t=>t.type==="checkbox",vs=t=>t instanceof Date,Xt=t=>t==null;const Sw=t=>typeof t=="object";var xt=t=>!Xt(t)&&!Array.isArray(t)&&Sw(t)&&!vs(t),g5=t=>xt(t)&&t.target?fa(t.target)?t.target.checked:t.target.value:t,y5=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,v5=(t,e)=>t.has(y5(e)),x5=t=>{const e=t.constructor&&t.constructor.prototype;return xt(e)&&e.hasOwnProperty("isPrototypeOf")},Dh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Tt(t){if(t instanceof Date)return new Date(t);const e=typeof FileList<"u"&&t instanceof FileList;if(Dh&&(t instanceof Blob||e))return t;const n=Array.isArray(t);if(!n&&!(xt(t)&&x5(t)))return t;const i=n?[]:Object.create(Object.getPrototypeOf(t));for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=Tt(t[o]));return i}var ku=t=>/^\w*$/.test(t),ot=t=>t===void 0,Oh=t=>Array.isArray(t)?t.filter(Boolean):[],Mh=t=>Oh(t.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(t,e,n)=>{if(!e||!xt(t))return n;const i=(ku(e)?[e]:Mh(e)).reduce((o,l)=>Xt(o)?o:o[l],t);return ot(i)||i===t?ot(t[e])?n:t[e]:i},qn=t=>typeof t=="boolean",Dn=t=>typeof t=="function",Ze=(t,e,n)=>{let i=-1;const o=ku(e)?[e]:Mh(e),l=o.length,u=l-1;for(;++i<l;){const d=o[i];let h=n;if(i!==u){const p=t[d];h=xt(p)||Array.isArray(p)?p:isNaN(+o[i+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;t[d]=h,t=t[d]}};const Ev={BLUR:"blur",FOCUS_OUT:"focusout"},On={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},fr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},w5=He.createContext(null);w5.displayName="HookFormControlContext";var S5=(t,e,n,i=!0)=>{const o={defaultValues:e._defaultValues};for(const l in t)Object.defineProperty(o,l,{get:()=>{const u=l;return e._proxyFormState[u]!==On.all&&(e._proxyFormState[u]=!i||On.all),t[u]}});return o};const b5=typeof window<"u"?He.useLayoutEffect:He.useEffect;var an=t=>typeof t=="string",T5=(t,e,n,i,o)=>an(t)?(i&&e.watch.add(t),he(n,t,o)):Array.isArray(t)?t.map(l=>(i&&e.watch.add(l),he(n,l))):(i&&(e.watchAll=!0),n),bf=t=>Xt(t)||!Sw(t);function Wr(t,e,n=new WeakSet){if(bf(t)||bf(e))return Object.is(t,e);if(vs(t)&&vs(e))return Object.is(t.getTime(),e.getTime());const i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);for(const l of i){const u=t[l];if(!o.includes(l))return!1;if(l!=="ref"){const d=e[l];
13if(vs(u)&&vs(d)||xt(u)&&xt(d)||Array.isArray(u)&&Array.isArray(d)?!Wr(u,d,n):!Object.is(u,d))return!1}}return!0}const P5=He.createContext(null);P5.displayName="HookFormContext";var bw=(t,e,n,i,o)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[i]:o||!0}}:{},Mo=t=>Array.isArray(t)?t:[t],kv=()=>{let t=[];return{get observers(){return t},next:o=>{for(const l of t)l.next&&l.next(o)},subscribe:o=>(t.push(o),{unsubscribe:()=>{t=t.filter(l=>l!==o)}}),unsubscribe:()=>{t=[]}}};function Tw(t,e){const n={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i],l=e[i];if(o&&xt(o)&&l){const u=Tw(o,l);xt(u)&&(n[i]=u)}else t[i]&&(n[i]=l)}return n}var $t=t=>xt(t)&&!Object.keys(t).length,Ih=t=>t.type==="file",Jl=t=>{if(!Dh)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Pw=t=>t.type==="select-multiple",jh=t=>t.type==="radio",C5=t=>jh(t)||fa(t),Ud=t=>Jl(t)&&t.isConnected;function _5(t,e){const n=e.slice(0,-1).length;let i=0;for(;i<n;)t=ot(t)?i++:t[e[i++]];return t}function E5(t){for(const e in t)if(t.hasOwnProperty(e)&&!ot(t[e]))return!1;return!0}function vt(t,e){const n=Array.isArray(e)?e:ku(e)?[e]:Mh(e),i=n.length===1?t:_5(t,n),o=n.length-1,l=n[o];return i&&delete i[l],o!==0&&(xt(i)&&$t(i)||Array.isArray(i)&&E5(i))&&vt(t,n.slice(0,-1)),t}var k5=t=>{for(const e in t)if(Dn(t[e]))return!0;return!1};function Cw(t){return Array.isArray(t)||xt(t)&&!k5(t)}function Tf(t,e={}){for(const n in t){const i=t[n];Cw(i)?(e[n]=Array.isArray(i)?[]:{},Tf(i,e[n])):ot(i)||(e[n]=!0)}return e}function ri(t,e,n){n||(n=Tf(e));for(const i in t){const o=t[i];if(Cw(o))ot(e)||bf(n[i])?n[i]=Tf(o,Array.isArray(o)?[]:{}):ri(o,Xt(e)?{}:e[i],n[i]);else{const l=e[i];n[i]=!Wr(o,l)}}return n}const Av={value:!1,isValid:!1},Nv={value:!0,isValid:!0};var _w=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!ot(t[0].attributes.value)?ot(t[0].value)||t[0].value===""?Nv:{value:t[0].value,isValid:!0}:Nv:Av}return Av},Ew=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:i})=>ot(t)?t:e?t===""?NaN:t&&+t:n&&an(t)?new Date(t):i?i(t):t;const Rv={isValid:!1,value:null};var kw=t=>Array.isArray(t)?t.reduce((e,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:e,Rv):Rv;function Dv(t){const e=t.ref;return Ih(e)?e.files:jh(e)?kw(t.refs).value:Pw(e)?[...e.selectedOptions].map(({value:n})=>n):fa(e)?_w(t.refs).value:Ew(ot(e.value)?t.ref.value:e.value,t)}var A5=(t,e,n,i)=>{const o={};for(const l of t){const u=he(e,l);u&&Ze(o,l,u._f)}return{criteriaMode:n,names:[...t],fields:o,shouldUseNativeValidation:i}},eu=t=>t instanceof RegExp,To=t=>ot(t)?t:eu(t)?t.source:xt(t)?eu(t.value)?t.value.source:t.value:t,Ov=t=>({isOnSubmit:!t||t===On.onSubmit,isOnBlur:t===On.onBlur,isOnChange:t===On.onChange,isOnAll:t===On.all,isOnTouch:t===On.onTouched});const Mv="AsyncFunction";var N5=t=>!!t&&!!t.validate&&!!(Dn(t.validate)&&t.validate.constructor.name===Mv||xt(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Mv)),R5=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Iv=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some(i=>t.startsWith(i)&&/^\.\w+/.test(t.slice(i.length))));const Io=(t,e,n,i)=>{for(const o of n||Object.keys(t)){const l=he(t,o);if(l){const{_f:u,...d}=l;if(u){if(u.refs&&u.refs[0]&&e(u.refs[0],o)&&!i)return!0;if(u.ref&&e(u.ref,u.name)&&!i)return!0;if(Io(d,e))break}else if(xt(d)&&Io(d,e))break}}};function jv(t,e,n){const i=he(t,n);if(i||ku(n))return{error:i,name:n};const o=n.split(".");for(;o.length;){const l=o.join("."),u=he(e,l),d=he(t,l);if(u&&!Array.isArray(u)&&n!==l)return{name:n};if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};o.pop()}return{name:n}}var D5=(t,e,n,i)=>{n(t);const{name:o,...l}=t;return $t(l)||Object.keys(l).length>=Object.keys(e).length||Object.keys(l).find(u=>e[u]===(!i||On.all))},O5=(t,e,n)=>!t||!e||t===e||Mo(t).some(i=>i&&(n?i===e:i.startsWith(e)||e.startsWith(i))),M5=(t,e,n,i,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(e||t):(n?i.isOnBlur:o.isOnBlur)?!t:(n?i.isOnChange:o.isOnChange)?t:!0,I5=(t,e)=>!Oh(he(t,e)).length&&vt(t,e),j5=(t,e,n)=>{const i=Mo(he(t,n));return Ze(i,"root",e[n]),Ze(t,n,i),t};function Vv(t,e,n="validate"){if(an(t)||Array.isArray(t)&&t.every(an)||qn(t)&&!t)return{type:n,message:an(t)?t:"",ref:e}}var ni=t=>xt(t)&&!eu(t)?t:{value:t,message:""},Lv=async(t,e,n,i,o,l)=>{const{ref:u,refs:d,required:h,maxLength:p,minLength:g,min:y,max:x,pattern:w,validate:_,name:S,valueAsNumber:T,mount:A}=t._f,R=he(n,S);if(!A||e.has(S))return{};const I=d?d[0]:u,F=q=>
vendor: 4,062 bytes, line 13
13{o&&I.reportValidity&&(I.setCustomValidity(qn(q)?"":q||""),I.reportValidity())},L={},K=jh(u),X=fa(u),J=K||X,ve=(T||Ih(u))&&ot(u.value)&&ot(R)||Jl(u)&&u.value===""||R===""||Array.isArray(R)&&!R.length,ce=bw.bind(null,S,i,L),Ee=(q,ae,Z,we=fr.maxLength,me=fr.minLength)=>{const se=q?ae:Z;L[S]={type:q?we:me,message:se,ref:u,...ce(q?we:me,se)}};if(l?!Array.isArray(R)||!R.length:h&&(!J&&(ve||Xt(R))||qn(R)&&!R||X&&!_w(d).isValid||K&&!kw(d).isValid)){const{value:q,message:ae}=an(h)?{value:!!h,message:h}:ni(h);if(q&&(L[S]={type:fr.required,message:ae,ref:I,...ce(fr.required,ae)},!i))return F(ae),L}if(!ve&&(!Xt(y)||!Xt(x))){let q,ae;const Z=ni(x),we=ni(y);if(!Xt(R)&&!isNaN(R)){const me=u.valueAsNumber||R&&+R;Xt(Z.value)||(q=me>Z.value),Xt(we.value)||(ae=me<we.value)}else{const me=u.valueAsDate||new Date(R),se=Y=>new Date(new Date().toDateString()+" "+Y),B=u.type=="time",ne=u.type=="week";an(Z.value)&&R&&(q=B?se(R)>se(Z.value):ne?R>Z.value:me>new Date(Z.value)),an(we.value)&&R&&(ae=B?se(R)<se(we.value):ne?R<we.value:me<new Date(we.value))}if((q||ae)&&(Ee(!!q,Z.message,we.message,fr.max,fr.min),!i))return F(L[S].message),L}if((p||g)&&!ve&&(an(R)||l&&Array.isArray(R))){const q=ni(p),ae=ni(g),Z=!Xt(q.value)&&R.length>+q.value,we=!Xt(ae.value)&&R.length<+ae.value;if((Z||we)&&(Ee(Z,q.message,ae.message),!i))return F(L[S].message),L}if(w&&!ve&&an(R)){const{value:q,message:ae}=ni(w);if(eu(q)&&!R.match(q)&&(L[S]={type:fr.pattern,message:ae,ref:u,...ce(fr.pattern,ae)},!i))return F(ae),L}if(_){if(Dn(_)){const q=await _(R,n),ae=Vv(q,I);if(ae&&(L[S]={...ae,...ce(fr.validate,ae.message)},!i))return F(ae.message),L}else if(xt(_)){let q={};for(const ae in _){if(!$t(q)&&!i)break;const Z=Vv(await _[ae](R,n),I,ae);Z&&(q={...Z,...ce(ae,Z.message)},F(Z.message),i&&(L[S]=q))}if(!$t(q)&&(L[S]={ref:I,...q},!i))return L}}return F(!0),L};const V5={mode:On.onSubmit,reValidateMode:On.onChange,shouldFocusError:!0};function L5(t={}){let e={...V5,...t},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Dn(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},i={},o=xt(e.defaultValues)||xt(e.values)?Tt(e.defaultValues||e.values)||{}:{},l=e.shouldUnregister?{}:Tt(o),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,p=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},y={...g};let x={...y};const w={array:kv(),state:kv()},_=e.criteriaMode===On.all,S=E=>M=>{clearTimeout(p),p=setTimeout(E,M)},T=async E=>{if(!u.keepIsValid&&!e.disabled&&(y.isValid||x.isValid||E)){let M;e.resolver?(M=$t((await J()).errors),A()):M=await ce(i,!0),M!==n.isValid&&w.state.next({isValid:M})}},A=(E,M)=>{!e.disabled&&(y.isValidating||y.validatingFields||x.isValidating||x.validatingFields)&&((E||Array.from(d.mount)).forEach(z=>{z&&(M?Ze(n.validatingFields,z,M):vt(n.validatingFields,z))}),w.state.next({validatingFields:n.validatingFields,isValidating:!$t(n.validatingFields)}))},R=(E,M=[],z,oe,re=!0,ee=!0)=>{if(oe&&z&&!e.disabled){if(u.action=!0,ee&&Array.isArray(he(i,E))){const xe=z(he(i,E),oe.argA,oe.argB);re&&Ze(i,E,xe)}if(ee&&Array.isArray(he(n.errors,E))){const xe=z(he(n.errors,E),oe.argA,oe.argB);re&&Ze(n.errors,E,xe),I5(n.errors,E)}if((y.touchedFields||x.touchedFields)&&ee&&Array.isArray(he(n.touchedFields,E))){const xe=z(he(n.touchedFields,E),oe.argA,oe.argB);re&&Ze(n.touchedFields,E,xe)}(y.dirtyFields||x.dirtyFields)&&(n.dirtyFields=ri(o,l)),w.state.next({name:E,isDirty:q(E,M),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ze(l,E,M)},I=(E,M)=>{Ze(n.errors,E,M),w.state.next({errors:n.errors})},F=E=>{n.errors=E,w.state.next({errors:n.errors,isValid:!1})},L=(E,M,z,oe)=>{const re=he(i,E);if(re){const ee=he(l,E,ot(z)?he(o,E):z);ot(ee)||oe&&oe.defaultChecked||M?Ze(l,E,M?ee:Dv(re._f)):we(E,ee),u.mount&&!u.action&&T()}},K=(E,M,z,oe,re)=>{let ee=!1,xe=!1;const Fe={name:E};
13if(!e.disabled){if(!z||oe){(y.isDirty||x.isDirty)&&(xe=n.isDirty,n.isDirty=Fe.isDirty=q(),ee=xe!==Fe.isDirty);const $e=Wr(he(o,E),M);xe=!!he(n.dirtyFields,E),$e?vt(n.dirtyFields,E):Ze(n.dirtyFields,E,!0),Fe.dirtyFields=n.dirtyFields,ee=ee||(y.dirtyFields||x.dirtyFields)&&xe!==!$e}if(z){const $e=he(n.touchedFields,E);$e||(Ze(n.touchedFields,E,z),Fe.touchedFields=n.touchedFields,ee=ee||(y.touchedFields||x.touchedFields)&&$e!==z)}ee&&re&&w.state.next(Fe)}return ee?Fe:{}},X=(E,M,z,oe)=>{const re=he(n.errors,E),ee=(y.isValid||x.isValid)&&qn(M)&&n.isValid!==M;if(e.delayError&&z?(h=S(()=>I(E,z)),h(e.delayError)):(clearTimeout(p),h=null,z?Ze(n.errors,E,z):vt(n.errors,E)),(z?!Wr(re,z):re)||!$t(oe)||ee){const xe={...oe,...ee&&qn(M)?{isValid:M}:{},errors:n.errors,name:E};n={...n,...xe},w.state.next(xe)}},J=async E=>(A(E,!0),await e.resolver(l,e.context,A5(E||d.mount,i,e.criteriaMode,e.shouldUseNativeValidation))),ve=async E=>{const{errors:M}=await J(E);if(A(E),E)for(const z of E){const oe=he(M,z);oe?Ze(n.errors,z,oe):vt(n.errors,z)}else n.errors=M;return M},ce=async(E,M,z={valid:!0})=>{for(const oe in E){const re=E[oe];if(re){const{_f:ee,...xe}=re;if(ee){const Fe=d.array.has(ee.name),$e=re._f&&N5(re._f);$e&&y.validatingFields&&A([ee.name],!0);
13const ft=await Lv(re,d.disabled,l,_,e.shouldUseNativeValidation&&!M,Fe);if($e&&y.validatingFields&&A([ee.name]),ft[ee.name]&&(z.valid=!1,M||t.shouldUseNativeValidation))break;!M&&(he(ft,ee.name)?Fe?j5(n.errors,ft,ee.name):Ze(n.errors,ee.name,ft[ee.name]):vt(n.errors,ee.name))}!$t(xe)&&await ce(xe,M,z)}}return z.valid},Ee=()=>{for(const E of d.unMount){const M=he(i,E);M&&(M._f.refs?M._f.refs.every(z=>!Ud(z)):!Ud(M._f.ref))&&Ve(E)}d.unMount=new Set},q=(E,M)=>!e.disabled&&(E&&M&&Ze(l,E,M),!Wr(D(),o)),ae=(E,M,z)=>T5(E,d,{...u.mount?l:ot(M)?o:an(E)?{[E]:M}:M},z,M),Z=E=>Oh(he(u.mount?l:o,E,e.shouldUnregister?he(o,E,[]):[])),we=(E,M,z={})=>{const oe=he(i,E);let re=M;if(oe){const ee=oe._f;ee&&(!ee.disabled&&Ze(l,E,Ew(M,ee)),re=Jl(ee.ref)&&Xt(M)?"":M,Pw(ee.ref)?[...ee.ref.options].forEach(xe=>xe.selected=re.includes(xe.value)):ee.refs?fa(ee.ref)?ee.refs.forEach(xe=>{(!xe.defaultChecked||!xe.disabled)&&(Array.isArray(re)?xe.checked=!!re.find(Fe=>Fe===xe.value):xe.checked=re===xe.value||!!re)}):ee.refs.forEach(xe=>xe.checked=xe.value===re):Ih(ee.ref)?ee.ref.value="":(ee.ref.value=re,ee.ref.type||w.state.next({name:E,values:Tt(l)})))}(z.shouldDirty||z.shouldTouch)&&K(E,re,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&Y(E)},me=(E,M,z)=>{for(const oe in M){if(!M.hasOwnProperty(oe))return;const re=M[oe],ee=E+"."+oe,xe=he(i,ee);(d.array.has(E)||xt(re)||xe&&!xe._f)&&!vs(re)?me(ee,re,z):we(ee,re,z)}},se=(E,M,z={})=>{const oe=he(i,E),re=d.array.has(E),ee=Tt(M);Ze(l,E,ee),re?(w.array.next({name:E,values:Tt(l)}),(y.isDirty||y.dirtyFields||x.isDirty||x.dirtyFields)&&z.shouldDirty&&w.state.next({name:E,dirtyFields:ri(o,l),isDirty:q(E,ee)})):oe&&!oe._f&&!Xt(ee)?me(E,ee,z):we(E,ee,z),Iv(E,d)?w.state.next({...n,name:E,values:Tt(l)}):w.state.next({name:u.mount?E:void 0,values:Tt(l)})},B=async E=>{u.mount=!0;const M=E.target;let z=M.name,oe=!0;const re=he(i,z),ee=$e=>{oe=Number.isNaN($e)||vs($e)&&isNaN($e.getTime())||Wr($e,he(l,z,$e))},xe=Ov(e.mode),Fe=Ov(e.reValidateMode);if(re){let $e,ft;const Jt=M.type?Dv(re._f):g5(E),Bn=E.type===Ev.BLUR||E.type===Ev.FOCUS_OUT,ya=!R5(re._f)&&!e.resolver&&!he(n.errors,z)&&!re._f.deps||M5(Bn,he(n.touchedFields,z),n.isSubmitted,Fe,xe),As=Iv(z,d,Bn);Ze(l,z,Jt),Bn?(!M||!M.readOnly)&&(re._f.onBlur&&re._f.onBlur(E),h&&h(0)):re._f.onChange&&re._f.onChange(E);const Oi=K(z,Jt,Bn),Mi=!$t(Oi)||As;if(!Bn&&w.state.next({name:z,type:E.type,values:Tt(l)}),ya)return(y.isValid||x.isValid)&&(e.mode==="onBlur"?Bn&&T():Bn||T()),Mi&&w.state.next({name:z,...As?{}:Oi});if(!Bn&&As&&w.state.next({...n}),e.resolver){const{errors:Ns}=await J([z]);if(A([z]),ee(Jt),oe){const Ii=jv(n.errors,i,z),Rs=jv(Ns,i,Ii.name||z);$e=Rs.error,z=Rs.name,ft=$t(Ns)}}else A([z],!0),$e=(await Lv(re,d.disabled,l,_,e.shouldUseNativeValidation))[z],A([z]),ee(Jt),oe&&($e?ft=!1:(y.isValid||x.isValid)&&(ft=await ce(i,!0)));oe&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&Y(re._f.deps),X(z,ft,$e,Oi))}},ne=(E,M)=>{if(he(n.errors,M)&&E.focus)return E.focus(),1},Y=async(E,M={})=>{let z,oe;const re=Mo(E);if(e.resolver){const ee=await ve(ot(E)?E:re);z=$t(ee),oe=E?!re.some(xe=>he(ee,xe)):z}else E?(oe=(await Promise.all(re.map(async ee=>{const xe=he(i,ee);return await ce(xe&&xe._f?{[ee]:xe}:xe)}))).every(Boolean),!(!oe&&!n.isValid)&&T()):oe=z=await ce(i);return w.state.next({...!an(E)||(y.isValid||x.isValid)&&z!==n.isValid?{}:{name:E},...e.resolver||!E?{isValid:z}:{},errors:n.errors}),M.shouldFocus&&!oe&&Io(i,ne,E?re:d.mount),oe},D=(E,M)=>{let z={...u.mount?l:o};return M&&(z=Tw(M.dirtyFields?n.dirtyFields:n.touchedFields,z)),ot(E)?z:an(E)?he(z,E):E.map(oe=>he(z,oe))},U=(E,M)=>({invalid:!!he((M||n).errors,E),isDirty:!!he((M||n).dirtyFields,E),error:he((M||n).errors,E),isValidating:!!he(n.validatingFields,E),isTouched:!!he((M||n).touchedFields,E)}),Ce=E=>{const M=E?Mo(E):void 0;M?.forEach(z=>vt(n.errors,z)),M?M.forEach(z=>{w.state.next({name:z,errors:n.errors})}):w.state.next({errors:{}})},Ae=(E,M,z)=>{const oe=(he(i,E,{_f:{}})._f||{}).ref,re=he(n.errors,E)||{},{ref:ee,message:xe,type:Fe,...$e}=re;Ze(n.errors,E,{...$e,...M,ref:oe}),w.state.next({name:E,errors:n.errors,isValid:!1}),z&&z.shouldFocus&&oe&&oe.focus&&oe.focus()},je=(E,M)=>Dn(E)?w.state.subscribe({next:z=>"values"in z&&E(ae(void 0,M),z)}):ae(E,M,!0),Ie=E=>w.state.subscribe({next:M=>{O5(E.name,M.name,E.exact)&&D5(M,E.formState||y,ma,E.reRenderRoot)&&E.callback({values:{...l},...n,...M,defaultValues:o})}}).unsubscribe,Le=E=>(u.mount=!0,x={...x,...E.formState},Ie({...E,formState:{...g,...E.formState}})),Ve=(E,M={})=>
vendor: 6,054 bytes, line 13
13{for(const z of E?Mo(E):d.mount)d.mount.delete(z),d.array.delete(z),M.keepValue||(vt(i,z),vt(l,z)),!M.keepError&&vt(n.errors,z),!M.keepDirty&&vt(n.dirtyFields,z),!M.keepTouched&&vt(n.touchedFields,z),!M.keepIsValidating&&vt(n.validatingFields,z),!e.shouldUnregister&&!M.keepDefaultValue&&vt(o,z);w.state.next({values:Tt(l)}),w.state.next({...n,...M.keepDirty?{isDirty:q()}:{}}),!M.keepIsValid&&T()},Ke=({disabled:E,name:M})=>{if(qn(E)&&u.mount||E||d.disabled.has(M)){const re=d.disabled.has(M)!==!!E;E?d.disabled.add(M):d.disabled.delete(M),re&&u.mount&&!u.action&&T()}},wt=(E,M={})=>{let z=he(i,E);const oe=qn(M.disabled)||qn(e.disabled);return Ze(i,E,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:E}},name:E,mount:!0,...M}}),d.mount.add(E),z?Ke({disabled:qn(M.disabled)?M.disabled:e.disabled,name:E}):L(E,!0,M.value),{...oe?{disabled:M.disabled||e.disabled}:{},...e.progressive?{required:!!M.required,min:To(M.min),max:To(M.max),minLength:To(M.minLength),maxLength:To(M.maxLength),pattern:To(M.pattern)}:{},name:E,onChange:B,onBlur:B,ref:re=>{if(re){wt(E,M),z=he(i,E);const ee=ot(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,xe=C5(ee),Fe=z._f.refs||[];if(xe?Fe.find($e=>$e===ee):ee===z._f.ref)return;Ze(i,E,{_f:{...z._f,...xe?{refs:[...Fe.filter(Ud),ee,...Array.isArray(he(o,E))?[{}]:[]],ref:{type:ee.type,name:E}}:{ref:ee}}}),L(E,!1,void 0,ee)}else z=he(i,E,{}),z._f&&(z._f.mount=!1),(e.shouldUnregister||M.shouldUnregister)&&!(v5(d.array,E)&&u.action)&&d.unMount.add(E)}}},zn=()=>e.shouldFocusError&&Io(i,ne,d.mount),ks=E=>{qn(E)&&(w.state.next({disabled:E}),Io(i,(M,z)=>{const oe=he(i,z);oe&&(M.disabled=oe._f.disabled||E,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(re=>{re.disabled=oe._f.disabled||E}))},0,!1))},hn=(E,M)=>async z=>{let oe;z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let re=Tt(l);if(w.state.next({isSubmitting:!0}),e.resolver){const{errors:ee,values:xe}=await J();A(),n.errors=ee,re=Tt(xe)}else await ce(i);if(d.disabled.size)for(const ee of d.disabled)vt(re,ee);if(vt(n.errors,"root"),$t(n.errors)){w.state.next({errors:{}});try{await E(re,z)}catch(ee){oe=ee}}else M&&await M({...n.errors},z),zn(),setTimeout(zn);if(w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$t(n.errors)&&!oe,submitCount:n.submitCount+1,errors:n.errors}),oe)throw oe},Ai=(E,M={})=>{he(i,E)&&(ot(M.defaultValue)?se(E,Tt(he(o,E))):(se(E,M.defaultValue),Ze(o,E,Tt(M.defaultValue))),M.keepTouched||vt(n.touchedFields,E),M.keepDirty||(vt(n.dirtyFields,E),n.isDirty=M.defaultValue?q(E,Tt(he(o,E))):q()),M.keepError||(vt(n.errors,E),y.isValid&&T()),w.state.next({...n}))},Ni=(E,M={})=>{const z=E?Tt(E):o,oe=Tt(z),re=$t(E),ee=re?o:oe;if(M.keepDefaultValues||(o=z),!M.keepValues){if(M.keepDirtyValues){const xe=new Set([...d.mount,...Object.keys(ri(o,l))]);for(const Fe of Array.from(xe)){const $e=he(n.dirtyFields,Fe),ft=he(l,Fe),Jt=he(ee,Fe);$e&&!ot(ft)?Ze(ee,Fe,ft):!$e&&!ot(Jt)&&se(Fe,Jt)}}else{if(Dh&&ot(E))for(const xe of d.mount){const Fe=he(i,xe);if(Fe&&Fe._f){const $e=Array.isArray(Fe._f.refs)?Fe._f.refs[0]:Fe._f.ref;if(Jl($e)){const ft=$e.closest("form");if(ft){ft.reset();break}}}}if(M.keepFieldsRef)for(const xe of d.mount)se(xe,he(ee,xe));else i={}}l=e.shouldUnregister?M.keepDefaultValues?Tt(o):{}:Tt(ee),w.array.next({values:{...ee}}),w.state.next({values:{...ee}})}d={mount:M.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!y.isValid||!!M.keepIsValid||!!M.keepDirtyValues||!e.shouldUnregister&&!$t(ee),u.watch=!!e.shouldUnregister,u.keepIsValid=!!M.keepIsValid,u.action=!1,M.keepErrors||(n.errors={}),w.state.next({submitCount:M.keepSubmitCount?n.submitCount:0,isDirty:re?!1:M.keepDirty?n.isDirty:!!(M.keepDefaultValues&&!Wr(E,o)),isSubmitted:M.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:re?{}:M.keepDirtyValues?M.keepDefaultValues&&l?ri(o,l):n.dirtyFields:M.keepDefaultValues&&E?ri(o,E):M.keepDirty?n.dirtyFields:{},touchedFields:M.keepTouched?n.touchedFields:{},errors:M.keepErrors?n.errors:{},isSubmitSuccessful:M.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Ri=(E,M)=>Ni(Dn(E)?E(l):E,{...e.resetOptions,...M}),Di=(E,M={})=>{const z=he(i,E),oe=z&&z._f;if(oe){const re=oe.refs?oe.refs[0]:oe.ref;re.focus&&setTimeout(()=>{re.focus(),M.shouldSelect&&Dn(re.select)&&re.select()})}},ma=E=>{n={...n,...E}},Sr={control:{register:wt,unregister:Ve,getFieldState:U,handleSubmit:hn,setError:Ae,_subscribe:Ie,_runSchema:J,_updateIsValidating:A,_focusError:zn,_getWatch:ae,_getDirty:q,_setValid:T,_setFieldArray:R,_setDisabledField:Ke,_setErrors:F,_getFieldArray:Z,_reset:Ni,_resetDefaultValues:()=>Dn(e.defaultValues)&&e.defaultValues().then(E=>{Ri(E,e.resetOptions),w.state.next({isLoading:!1})}),_removeUnmounted:Ee,_disableForm:ks,_subjects:w,_proxyFormState:y,get _fields(){return i},get _formValues(){return l},get _state(){return u},set _state(E){u=E},get _defaultValues(){return o},get _names(){return d},set _names(E){d=E},get _formState(){return n},get _options(){return e},set _options(E){e={...e,...E}}},subscribe:Le,trigger:Y,register:wt,handleSubmit:hn,watch:je,setValue:se,getValues:D,reset:Ri,resetField:Ai,clearErrors:Ce,unregister:Ve,setError:Ae,setFocus:Di,getFieldState:U};return{...Sr,formControl:Sr}}function Aw(t={}){const e=He.useRef(void 0),n=He.useRef(void 0),[i,o]=He.useState({isDirty:!1,isValidating:!1,isLoading:Dn(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:Dn(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current={...t.formControl,formState:i},t.defaultValues&&!Dn(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const{formControl:u,...d}=L5(t);e.current={...d,formState:i}}const l=e.current.control;return l._options=t,b5(()=>{const u=l._subscribe({formState:l._proxyFormState,callback:()=>o({...l._formState}
13),reRenderRoot:!0});return o(d=>({...d,isReady:!0})),l._formState.isReady=!0,u},[l]),He.useEffect(()=>l._disableForm(t.disabled),[l,t.disabled]),He.useEffect(()=>{t.mode&&(l._options.mode=t.mode),t.reValidateMode&&(l._options.reValidateMode=t.reValidateMode)},[l,t.mode,t.reValidateMode]),He.useEffect(()=>{t.errors&&(l._setErrors(t.errors),l._focusError())},[l,t.errors]),He.useEffect(()=>{t.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,t.shouldUnregister]),He.useEffect(()=>{if(l._proxyFormState.isDirty){const u=l._getDirty();u!==i.isDirty&&l._subjects.state.next({isDirty:u})}},[l,i.isDirty]),He.useEffect(()=>{var u;t.values&&!Wr(t.values,n.current)?(l._reset(t.values,{keepFieldsRef:!0,...l._options.resetOptions}),!((u=l._options.resetOptions)===null||u===void 0)&&u.keepIsValid||l._setValid(),n.current=t.values,o(d=>({...d}))):l._resetDefaultValues()},[l,t.values]),He.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),e.current.formState=He.useMemo(()=>S5(i,l),[l,i]),e.current}const Fv=(t,e,n)=>{if(t&&"reportValidity"in t){const i=he(n,e);t.setCustomValidity(i&&i.message||""),t.reportValidity()}},Nw=(t,e)=>{for(const n in e.fields){const i=e.fields[n];i&&i.ref&&"reportValidity"in i.ref?Fv(i.ref,n,t):i.refs&&i.refs.forEach(o=>Fv(o,n,t))}},F5=(t,e)=>{e.shouldUseNativeValidation&&Nw(t,e);const n={};for(const i in t){const o=he(e.fields,i),l=Object.assign(t[i]||{},{ref:o&&o.ref});if(z5(e.names||Object.keys(t),i)){const u=Object.assign({},he(n,i));Ze(u,"root",l),Ze(n,i,u)}else Ze(n,i,l)}return n},z5=(t,e)=>t.some(n=>n.startsWith(e+"."));var B5=function(t,e){for(var n={};t.length;){var i=t[0],o=i.code,l=i.message,u=i.path.join(".");if(!n[u])if("unionErrors"in i){var d=i.unionErrors[0].errors[0];n[u]={message:d.message,type:d.code}}else n[u]={message:l,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(g){return g.errors.forEach(function(y){return t.push(y)})}),e){var h=n[u].types,p=h&&h[i.code];n[u]=bw(u,e,n,o,p?[].concat(p,i.message):i.message)}t.shift()}return n},Rw=function(t,e,n){return n===void 0&&(n={}),function(i,o,l){try{return Promise.resolve((function(u,d){try{var h=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](i,e)).then(function(p){return l.shouldUseNativeValidation&&Nw({},l),{errors:{},values:n.raw?i:p}})}catch(p){return d(p)}return h&&h.then?h.then(void 0,d):h})(0,function(u){if((function(d){return Array.isArray(d?.errors)})(u))return{values:{},errors:F5(B5(u.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw u}))}catch(u){return Promise.reject(u)}}};const W=Symbol.for("drizzle:entityKind");function Rt(t,e){if(!t||typeof t!="object")return!1;if(t instanceof e)return!0;if(!Object.prototype.hasOwnProperty.call(e,W))throw new Error(`Class "${e.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(t).constructor;if(n)for(;n;){if(W in n&&n[W]===e[W])return!0;n=Object.getPrototypeOf(n)}return!1}class Wo{constructor(e,n){this.table=e,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[W]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class U5{static[W]="ColumnBuilder";config;constructor(e,n,i){this.config={name:e,keyAsName:e==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:i,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===""&&(this.config.name=e)}}const hi=Symbol.for("drizzle:Name");class $5{static[W]="PgForeignKeyBuilder";reference;
13_onUpdate="no action";_onDelete="no action";constructor(e,n){this.reference=()=>{const{name:i,columns:o,foreignColumns:l}=e();return{name:i,columns:o,foreignTable:l[0].table,foreignColumns:l}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(e){return this._onUpdate=e===void 0?"no action":e,this}onDelete(e){return this._onDelete=e===void 0?"no action":e,this}build(e){return new W5(e,this)}}class W5{constructor(e,n){this.table=e,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[W]="PgForeignKey";reference;onUpdate;onDelete;getName(){const{name:e,columns:n,foreignColumns:i}=this.reference(),o=n.map(d=>d.name),l=i.map(d=>d.name),u=[this.table[hi],...o,i[0].table[hi],...l];return e??`${u.join("_")}_fk`}}function H5(t,...e){return t(...e)}function K5(t,e){return`${t[hi]}_${e.join("_")}_unique`}function zv(t,e,n){for(let i=e;i<t.length;i++){const o=t[i];if(o==="\\"){i++;continue}if(o==='"')return[t.slice(e,i).replace(/\\/g,""),i+1];if(!n&&(o===","||o==="}"))return[t.slice(e,i).replace(/\\/g,""),i]}return[t.slice(e).replace(/\\/g,""),t.length]}function Dw(t,e=0){const n=[];let i=e,o=!1;for(;i<t.length;){const l=t[i];if(l===","){(o||i===e)&&n.push(""),o=!0,i++;continue}if(o=!1,l==="\\"){i+=2;continue}if(l==='"'){const[h,p]=zv(t,i+1,!0);n.push(h),i=p;continue}if(l==="}")return[n,i+1];if(l==="{"){const[h,p]=Dw(t,i+1);n.push(h),i=p;continue}const[u,d]=zv(t,i,!1);n.push(u),i=d}return[n,i]}function q5(t){const[e]=Dw(t,1);return e}function Ow(t){return`{${t.map(e=>Array.isArray(e)?Ow(e):typeof e=="string"?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${e}`).join(",")}}`}class Ue extends U5{foreignKeyConfigs=[];static[W]="PgColumnBuilder";array(e){return new Z5(this.config.name,this,e)}references(e,n={}){return this.foreignKeyConfigs.push({ref:e,actions:n}),this}unique(e,n){return this.config.isUnique=!0,this.config.uniqueName=e,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(e){return this.config.generated={as:e,type:"always",mode:"stored"},this}buildForeignKeys(e,n){return this.foreignKeyConfigs.map(({ref:i,actions:o})=>H5((l,u)=>{const d=new $5(()=>{const h=l();return{columns:[e],foreignColumns:[h]}});return u.onUpdate&&d.onUpdate(u.onUpdate),u.onDelete&&d.onDelete(u.onDelete),d.build(n)},i,o))}buildExtraConfigColumn(e){return new Q5(e,this.config)}}class De extends Wo{constructor(e,n){n.uniqueName||(n.uniqueName=K5(e,[n.name])),super(e,n),this.table=e}static[W]="PgColumn"}class Q5 extends De{static[W]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(e){return this.indexConfig.opClass=e,this}}class Z5 extends Ue{static[W]="PgArrayBuilder";constructor(e,n,i){super(e,"array","PgArray"),this.config.baseBuilder=n,this.config.size=i}build(e){const n=this.config.baseBuilder.build(e);return new Vh(e,this.config,n)}}class Vh extends De{constructor(e,n,i,o){super(e,n),this.baseColumn=i,this.range=o,this.size=n.size}size;static[W]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(e){return typeof e=="string"&&(e=q5(e)),e.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(e,n=!1){const i=e.map(o=>o===null?null:Rt(this.baseColumn,Vh)?this.baseColumn.mapToDriverValue(o,!0):this.baseColumn.mapToDriverValue(o));return n?i:Ow(i)}}const Bv=Symbol.for("drizzle:isPgEnum");function G5(t){return!!t&&typeof t=="function"&&Bv in t&&t[Bv]===!0}class Mw{static[W]="Subquery";constructor(e,n,i,o=!1){this._={brand:"Subquery",sql:e,selectedFields:n,alias:i,isWith:o}}}const X5={startActiveSpan(t,e){return e()}},pi=Symbol.for("drizzle:ViewBaseConfig"),$d=Symbol.for("drizzle:Schema"),Uv=Symbol.for("drizzle:Columns"),$v=Symbol.for("drizzle:ExtraConfigColumns"),Wd=Symbol.for("drizzle:OriginalName"),Hd=Symbol.for("drizzle:BaseName"),tu=Symbol.for("drizzle:IsAlias"),Wv=Symbol.for("drizzle:ExtraConfigBuilder"),Iw=Symbol.for("drizzle:IsDrizzleTable");class on{static[W]="Table";static Symbol={Name:hi,Schema:$d,OriginalName:Wd,Columns:Uv,ExtraConfigColumns:$v,BaseName:Hd,IsAlias:tu,ExtraConfigBuilder:Wv};[hi];[Wd];[$d];[Uv];[$v];[Hd];[tu]=!1;[Iw]=!0;[Wv]=void 0;constructor(e,n,i){this[hi]=this[Wd]=e,this[$d]=n,this[Hd]=i}}function jw(t){return typeof t=="object"&&t!==null&&Iw in t}function Y5(t){return t!=null&&typeof t.getSQL=="function"}function J5(t){const e={sql:"",params:[]};for(const n of t)e.sql+=n.sql,e.params.push(...n.params),n.typings?.length&&(e.typings||(e.typings=[]),e.typings.push(...n.typings));return e}class Rn{static[W]="StringChunk";value;constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new dt([this])}}class dt{constructor(e){this.queryChunks=e}static[W]="SQL";decoder=Vw;shouldInlineParams=!1;
13append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return X5.startActiveSpan("drizzle.buildSQL",n=>{const i=this.buildQueryFromSourceParams(this.queryChunks,e);return n?.setAttributes({"drizzle.query.text":i.sql,"drizzle.query.params":JSON.stringify(i.params)}),i})}buildQueryFromSourceParams(e,n){const i=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:o,escapeName:l,escapeParam:u,prepareTyping:d,inlineParams:h,paramStartIndex:p}=i;return J5(e.map(g=>{if(Rt(g,Rn))return{sql:g.value.join(""),params:[]};if(Rt(g,Pf))return{sql:l(g.value),params:[]};if(g===void 0)return{sql:"",params:[]};if(Array.isArray(g)){const y=[new Rn("(")];for(const[x,w]of g.entries())y.push(w),x<g.length-1&&y.push(new Rn(", "));return y.push(new Rn(")")),this.buildQueryFromSourceParams(y,i)}if(Rt(g,dt))return this.buildQueryFromSourceParams(g.queryChunks,{...i,inlineParams:h||g.shouldInlineParams});if(Rt(g,on)){const y=g[on.Symbol.Schema],x=g[on.Symbol.Name];return{sql:y===void 0||g[tu]?l(x):l(y)+"."+l(x),params:[]}}if(Rt(g,Wo)){const y=o.getColumnCasing(g);if(n.invokeSource==="indexes")return{sql:l(y),params:[]};const x=g.table[on.Symbol.Schema];return{sql:g.table[tu]||x===void 0?l(g.table[on.Symbol.Name])+"."+l(y):l(x)+"."+l(g.table[on.Symbol.Name])+"."+l(y),params:[]}}if(Rt(g,eA)){const y=g[pi].schema,x=g[pi].name;return{sql:y===void 0||g[pi].isAlias?l(x):l(y)+"."+l(x),params:[]}}if(Rt(g,Fw)){if(Rt(g.value,Cf))return{sql:u(p.value++,g),params:[g],typings:["none"]};const y=g.value===null?null:g.encoder.mapToDriverValue(g.value);if(Rt(y,dt))return this.buildQueryFromSourceParams([y],i);if(h)return{sql:this.mapInlineParam(y,i),params:[]};let x=["none"];return d&&(x=[d(g.encoder)]),{sql:u(p.value++,y),params:[y],typings:x}}return Rt(g,Cf)?{sql:u(p.value++,g),params:[g],typings:["none"]}:Rt(g,dt.Aliased)&&g.fieldAlias!==void 0?{sql:l(g.fieldAlias),params:[]}:Rt(g,Mw)?g._.isWith?{sql:l(g._.alias),params:[]}:this.buildQueryFromSourceParams([new Rn("("),g._.sql,new Rn(") "),new Pf(g._.alias)],i):G5(g)?g.schema?{sql:l(g.schema)+"."+l(g.enumName),params:[]}:{sql:l(g.enumName),params:[]}:Y5(g)?g.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([g.getSQL()],i):this.buildQueryFromSourceParams([new Rn("("),g.getSQL(),new Rn(")")],i):h?{sql:this.mapInlineParam(g,i),params:[]}:{sql:u(p.value++,g),params:[g],typings:["none"]}}))}mapInlineParam(e,{escapeString:n}){if(e===null)return"null";if(typeof e=="number"||typeof e=="boolean")return e.toString();if(typeof e=="string")return n(e);if(typeof e=="object"){const i=e.toString();return n(i==="[object Object]"?JSON.stringify(e):i)}throw new Error("Unexpected param value: "+e)}getSQL(){return this}as(e){return e===void 0?this:new dt.Aliased(this,e)}mapWith(e){return this.decoder=typeof e=="function"?{mapFromDriverValue:e}:e,this}inlineParams(){return this.shouldInlineParams=!0,this}if(e){return e?this:void 0}}class Pf{constructor(e){this.value=e}static[W]="Name";brand;getSQL(){return new dt([this])}}const Vw={mapFromDriverValue:t=>t},Lw={mapToDriverValue:t=>t};({...Vw,...Lw});class Fw{constructor(e,n=Lw){this.value=e,this.encoder=n}static[W]="Param";brand;getSQL(){return new dt([this])}}function nu(t,...e){const n=[];(e.length>0||t.length>0&&t[0]!=="")&&n.push(new Rn(t[0]));for(const[i,o]of e.entries())n.push(o,new Rn(t[i+1]));return new dt(n)}(t=>{function e(){return new dt([])}t.empty=e;function n(h){return new dt(h)}t.fromList=n;function i(h){return new dt([new Rn(h)])}t.raw=i;function o(h,p){const g=[];for(const[y,x]of h.entries())y>0&&p!==void 0&&g.push(p),g.push(x);return new dt(g)}t.join=o;function l(h){return new Pf(h)}t.identifier=l;function u(h){return new Cf(h)}t.placeholder=u;function d(h,p){return new Fw(h,p)}t.param=d})(nu||(nu={}));(t=>{class e{constructor(i,o){this.sql=i,this.fieldAlias=o}static[W]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new e(this.sql,this.fieldAlias)}}t.Aliased=e})(dt||(dt={}));class Cf{constructor(e){this.name=e}static[W]="Placeholder";getSQL(){return new dt([this])}}const zw=Symbol.for("drizzle:IsDrizzleView");class eA{static[W]="View";[pi];[zw]=!0;
13constructor({name:e,schema:n,selectedFields:i,query:o}){this[pi]={name:e,originalName:e,schema:n,selectedFields:i,query:o,isExisting:!o,isAlias:!1}}getSQL(){return new dt([this])}}function tA(t){return typeof t=="object"&&t!==null&&zw in t}Wo.prototype.getSQL=function(){return new dt([this])};on.prototype.getSQL=function(){return new dt([this])};Mw.prototype.getSQL=function(){return new dt([this])};function nA(t){return t[on.Symbol.Columns]}function rA(t){return t[pi].selectedFields}function kt(t,e){return{name:typeof t=="string"&&t.length>0?t:"",config:typeof t=="object"?t:e}}class Au extends Ue{static[W]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(e){if(e){const{name:n,...i}=e;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:i}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(e){if(e){const{name:n,...i}=e;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:i}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}}class sA extends Au{static[W]="PgBigInt53Builder";constructor(e){super(e,"number","PgBigInt53")}build(e){return new iA(e,this.config)}}class iA extends De{static[W]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(e){return typeof e=="number"?e:Number(e)}}class oA extends Au{static[W]="PgBigInt64Builder";constructor(e){super(e,"bigint","PgBigInt64")}build(e){return new aA(e,this.config)}}class aA extends De{static[W]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(e){return BigInt(e)}}function lA(t,e){const{name:n,config:i}=kt(t,e);return i.mode==="number"?new sA(n):new oA(n)}class uA extends Ue{static[W]="PgBigSerial53Builder";constructor(e){super(e,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(e){return new cA(e,this.config)}}class cA extends De{static[W]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(e){return typeof e=="number"?e:Number(e)}}class dA extends Ue{static[W]="PgBigSerial64Builder";constructor(e){super(e,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(e){return new fA(e,this.config)}}class fA extends De{static[W]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(e){return BigInt(e)}}function hA(t,e){const{name:n,config:i}=kt(t,e);return i.mode==="number"?new uA(n):new dA(n)}class pA extends Ue{static[W]="PgBooleanBuilder";constructor(e){super(e,"boolean","PgBoolean")}build(e){return new mA(e,this.config)}}class mA extends De{static[W]="PgBoolean";getSQLType(){return"boolean"}}function gA(t){return new pA(t??"")}class yA extends Ue{static[W]="PgCharBuilder";constructor(e,n){super(e,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(e){return new vA(e,this.config)}}class vA extends De{static[W]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}}function xA(t,e={}){const{name:n,config:i}=kt(t,e);return new yA(n,i)}class wA extends Ue{static[W]="PgCidrBuilder";constructor(e){super(e,"string","PgCidr")}build(e){return new SA(e,this.config)}}class SA extends De{static[W]="PgCidr";getSQLType(){return"cidr"}}function bA(t){return new wA(t??"")}class TA extends Ue{static[W]="PgCustomColumnBuilder";constructor(e,n,i){super(e,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=i}build(e){return new PA(e,this.config)}}class PA extends De{static[W]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(e,n){super(e,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(e){return typeof this.mapFrom=="function"?this.mapFrom(e):e}mapToDriverValue(e){return typeof this.mapTo=="function"?this.mapTo(e):e}}function CA(t){return(e,n)=>{const{name:i,config:o}=kt(e,n);return new TA(i,o,t)}}class ha extends Ue{static[W]="PgDateColumnBaseBuilder";defaultNow(){return this.default(nu`now()`)}}class _A extends ha{static[W]="PgDateBuilder";constructor(e){super(e,"date","PgDate")}build(e){return new EA(e,this.config)}}class EA extends De{static[W]="PgDate";
13getSQLType(){return"date"}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}}class kA extends ha{static[W]="PgDateStringBuilder";constructor(e){super(e,"string","PgDateString")}build(e){return new AA(e,this.config)}}class AA extends De{static[W]="PgDateString";getSQLType(){return"date"}}function NA(t,e){const{name:n,config:i}=kt(t,e);return i?.mode==="date"?new _A(n):new kA(n)}class RA extends Ue{static[W]="PgDoublePrecisionBuilder";constructor(e){super(e,"number","PgDoublePrecision")}build(e){return new DA(e,this.config)}}class DA extends De{static[W]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(e){return typeof e=="string"?Number.parseFloat(e):e}}function OA(t){return new RA(t??"")}class MA extends Ue{static[W]="PgInetBuilder";constructor(e){super(e,"string","PgInet")}build(e){return new IA(e,this.config)}}class IA extends De{static[W]="PgInet";getSQLType(){return"inet"}}function jA(t){return new MA(t??"")}class VA extends Au{static[W]="PgIntegerBuilder";constructor(e){super(e,"number","PgInteger")}build(e){return new LA(e,this.config)}}class LA extends De{static[W]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(e){return typeof e=="string"?Number.parseInt(e):e}}function FA(t){return new VA(t??"")}class zA extends Ue{static[W]="PgIntervalBuilder";constructor(e,n){super(e,"string","PgInterval"),this.config.intervalConfig=n}build(e){return new BA(e,this.config)}}class BA extends De{static[W]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){const e=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${e}${n}`}}function UA(t,e={}){const{name:n,config:i}=kt(t,e);return new zA(n,i)}class $A extends Ue{static[W]="PgJsonBuilder";constructor(e){super(e,"json","PgJson")}build(e){return new WA(e,this.config)}}class WA extends De{static[W]="PgJson";constructor(e,n){super(e,n)}getSQLType(){return"json"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}}function HA(t){return new $A(t??"")}class KA extends Ue{static[W]="PgJsonbBuilder";constructor(e){super(e,"json","PgJsonb")}build(e){return new qA(e,this.config)}}class qA extends De{static[W]="PgJsonb";constructor(e,n){super(e,n)}getSQLType(){return"jsonb"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}}function QA(t){return new KA(t??"")}class ZA extends Ue{static[W]="PgLineBuilder";constructor(e){super(e,"array","PgLine")}build(e){return new GA(e,this.config)}}class GA extends De{static[W]="PgLine";getSQLType(){return"line"}mapFromDriverValue(e){const[n,i,o]=e.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(i),Number.parseFloat(o)]}mapToDriverValue(e){return`{${e[0]},${e[1]},${e[2]}}`}}class XA extends Ue{static[W]="PgLineABCBuilder";constructor(e){super(e,"json","PgLineABC")}build(e){return new YA(e,this.config)}}class YA extends De{static[W]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(e){const[n,i,o]=e.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(i),c:Number.parseFloat(o)}}mapToDriverValue(e){return`{${e.a},${e.b},${e.c}}`}}function JA(t,e){const{name:n,config:i}=kt(t,e);return!i?.mode||i.mode==="tuple"?new ZA(n):new XA(n)}class eN extends Ue{static[W]="PgMacaddrBuilder";constructor(e){super(e,"string","PgMacaddr")}build(e){return new tN(e,this.config)}}class tN extends De{static[W]="PgMacaddr";getSQLType(){return"macaddr"}}function nN(t){return new eN(t??"")}class rN extends Ue{static[W]="PgMacaddr8Builder";constructor(e){super(e,"string","PgMacaddr8")}build(e){return new sN(e,this.config)}}class sN extends De{static[W]="PgMacaddr8";getSQLType(){return"macaddr8"}}function iN(t){return new rN(t??"")}class oN extends Ue{static[W]="PgNumericBuilder";constructor(e,n,i){super(e,"string","PgNumeric"),this.config.precision=n,this.config.scale=i}build(e){return new aN(e,this.config)}}class aN extends De{static[W]="PgNumeric";precision;scale;constructor(e,n){super(e,n),this.precision=n.precision,this.scale=n.scale}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}}function lN(t,e){const{name:n,config:i}=kt(t,e);return new oN(n,i?.precision,i?.scale)}class uN extends Ue{static[W]="PgPointTupleBuilder";constructor(e){super(e,"array","PgPointTuple")}build(e){return new cN(e,this.config)}}class cN extends De{static[W]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(e){if(typeof e=="string"){const[n,i]=e.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(i)]}return[e.x,e.y]}mapToDriverValue(e){return`(${e[0]},${e[1]})`}}class dN extends Ue{static[W]="PgPointObjectBuilder";constructor(e){super(e,"json","PgPointObject")}build(e){return new fN(e,this.config)}}class fN extends De{static[W]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(e){if(typeof e=="string"){const[n,i]=e.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(i)}}return e}mapToDriverValue(e){return`(${e.x},${e.y})`}}function hN(t,e){const{name:n,config:i}=kt(t,e);return!i?.mode||i.mode==="tuple"?new uN(n):new dN(n)}function pN(t){const e=[];for(let n=0;n<t.length;n+=2)e.push(Number.parseInt(t.slice(n,n+2),16));return new Uint8Array(e)}function Hv(t,e){const n=new ArrayBuffer(8),i=new DataView(n);for(let o=0;o<8;o++)i.setUint8(o,t[e+o]);return i.getFloat64(0,!0)}function Bw(t){const e=pN(t);let n=0;const i=e[n];n+=1;const o=new DataView(e.buffer),l=o.getUint32(n,i===1);if(n+=4,l&536870912&&(o.getUint32(n,i===1),n+=4),(l&65535)===1){const u=Hv(e,n);n+=8;const d=Hv(e,n);return n+=8,[u,d]}throw new Error("Unsupported geometry type")}class mN extends Ue{static[W]="PgGeometryBuilder";constructor(e){super(e,"array","PgGeometry")}build(e){return new gN(e,this.config)}}class gN extends De{static[W]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(e){return Bw(e)}mapToDriverValue(e){return`point(${e[0]} ${e[1]})`}}class yN extends Ue{static[W]="PgGeometryObjectBuilder";constructor(e){super(e,"json","PgGeometryObject")}build(e){return new vN(e,this.config)}}class vN extends De{static[W]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(e){const n=Bw(e);return{x:n[0],y:n[1]}}mapToDriverValue(e){return`point(${e.x} ${e.y})`}}function xN(t,e){const{name:n,config:i}=kt(t,e);return!i?.mode||i.mode==="tuple"?new mN(n):new yN(n)}class wN extends Ue{static[W]="PgRealBuilder";constructor(e,n){super(e,"number","PgReal"),this.config.length=n}build(e){return new SN(e,this.config)}}class SN extends De{static[W]="PgReal";constructor(e,n){super(e,n)}getSQLType(){return"real"}mapFromDriverValue=e=>typeof e=="string"?Number.parseFloat(e):e}function bN(t){return new wN(t??"")}class TN extends Ue{static[W]="PgSerialBuilder";constructor(e){super(e,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(e){return new PN(e,this.config)}}class PN extends De{static[W]="PgSerial";
13getSQLType(){return"serial"}}function Uw(t){return new TN(t??"")}class CN extends Au{static[W]="PgSmallIntBuilder";constructor(e){super(e,"number","PgSmallInt")}build(e){return new _N(e,this.config)}}class _N extends De{static[W]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=e=>typeof e=="string"?Number(e):e}function EN(t){return new CN(t??"")}class kN extends Ue{static[W]="PgSmallSerialBuilder";constructor(e){super(e,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(e){return new AN(e,this.config)}}class AN extends De{static[W]="PgSmallSerial";getSQLType(){return"smallserial"}}function NN(t){return new kN(t??"")}class RN extends Ue{static[W]="PgTextBuilder";constructor(e,n){super(e,"string","PgText"),this.config.enumValues=n.enum}build(e){return new DN(e,this.config)}}class DN extends De{static[W]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}}function $w(t,e={}){const{name:n,config:i}=kt(t,e);return new RN(n,i)}class ON extends ha{constructor(e,n,i){super(e,"string","PgTime"),this.withTimezone=n,this.precision=i,this.config.withTimezone=n,this.config.precision=i}static[W]="PgTimeBuilder";build(e){return new MN(e,this.config)}}class MN extends De{static[W]="PgTime";withTimezone;precision;constructor(e,n){super(e,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}}function IN(t,e={}){const{name:n,config:i}=kt(t,e);return new ON(n,i.withTimezone??!1,i.precision)}class jN extends ha{static[W]="PgTimestampBuilder";constructor(e,n,i){super(e,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=i}build(e){return new VN(e,this.config)}}class VN extends De{static[W]="PgTimestamp";withTimezone;precision;constructor(e,n){super(e,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue=e=>new Date(this.withTimezone?e:e+"+0000");mapToDriverValue=e=>e.toISOString()}class LN extends ha{static[W]="PgTimestampStringBuilder";constructor(e,n,i){super(e,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=i}build(e){return new FN(e,this.config)}}class FN extends De{static[W]="PgTimestampString";withTimezone;precision;constructor(e,n){super(e,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}}function Ww(t,e={}){const{name:n,config:i}=kt(t,e);return i?.mode==="string"?new LN(n,i.withTimezone??!1,i.precision):new jN(n,i?.withTimezone??!1,i?.precision)}class zN extends Ue{static[W]="PgUUIDBuilder";constructor(e){super(e,"string","PgUUID")}defaultRandom(){return this.default(nu`gen_random_uuid()`)}build(e){return new BN(e,this.config)}}class BN extends De{static[W]="PgUUID";getSQLType(){return"uuid"}}function UN(t){return new zN(t??"")}class $N extends Ue{static[W]="PgVarcharBuilder";constructor(e,n){super(e,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(e){return new WN(e,this.config)}}class WN extends De{static[W]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}}function HN(t,e={}){const{name:n,config:i}=kt(t,e);return new $N(n,i)}class KN extends Ue{static[W]="PgBinaryVectorBuilder";constructor(e,n){super(e,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(e){return new qN(e,this.config)}}class qN extends De{static[W]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}}function QN(t,e){const{name:n,config:i}=kt(t,e);return new KN(n,i)}class ZN extends Ue{static[W]="PgHalfVectorBuilder";constructor(e,n){super(e,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(e){return new GN(e,this.config)}}class GN extends De{static[W]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){return e.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}}function XN(t,e){const{name:n,config:i}=kt(t,e);return new ZN(n,i)}class YN extends Ue{static[W]="PgSparseVectorBuilder";constructor(e,n){super(e,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(e){return new JN(e,this.config)}}class JN extends De{static[W]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}}
13function e6(t,e){const{name:n,config:i}=kt(t,e);return new YN(n,i)}class t6 extends Ue{static[W]="PgVectorBuilder";constructor(e,n){super(e,"array","PgVector"),this.config.dimensions=n.dimensions}build(e){return new n6(e,this.config)}}class n6 extends De{static[W]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){return e.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}}function r6(t,e){const{name:n,config:i}=kt(t,e);return new t6(n,i)}function s6(){return{bigint:lA,bigserial:hA,boolean:gA,char:xA,cidr:bA,customType:CA,date:NA,doublePrecision:OA,inet:jA,integer:FA,interval:UA,json:HA,jsonb:QA,line:JA,macaddr:nN,macaddr8:iN,numeric:lN,point:hN,geometry:xN,real:bN,serial:Uw,smallint:EN,smallserial:NN,text:$w,time:IN,timestamp:Ww,uuid:UN,varchar:HN,bit:QN,halfvec:XN,sparsevec:e6,vector:r6}}const _f=Symbol.for("drizzle:PgInlineForeignKeys"),Kv=Symbol.for("drizzle:EnableRLS");class qv extends on{static[W]="PgTable";static Symbol=Object.assign({},on.Symbol,{InlineForeignKeys:_f,EnableRLS:Kv});[_f]=[];[Kv]=!1;[on.Symbol.ExtraConfigBuilder]=void 0}function i6(t,e,n,i,o=t){const l=new qv(t,i,o),u=typeof e=="function"?e(s6()):e,d=Object.fromEntries(Object.entries(u).map(([g,y])=>{const x=y;x.setName(g);const w=x.build(l);return l[_f].push(...x.buildForeignKeys(w,l)),[g,w]})),h=Object.fromEntries(Object.entries(u).map(([g,y])=>{const x=y;x.setName(g);const w=x.buildExtraConfigColumn(l);return[g,w]})),p=Object.assign(l,d);return p[on.Symbol.Columns]=d,p[on.Symbol.ExtraConfigColumns]=h,Object.assign(p,{enableRLS:()=>(p[qv.Symbol.EnableRLS]=!0,p)})}const o6=(t,e,n)=>i6(t,e,n,void 0);var ze;(function(t){t.assertEqual=o=>o;function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{const l={};for(const u of o)l[u]=u;return l},t.getValidEnumValues=o=>{const l=t.objectKeys(o).filter(d=>typeof o[o[d]]!="number"),u={};for(const d of l)u[d]=o[d];return t.objectValues(u)},t.objectValues=o=>t.objectKeys(o).map(function(l){return o[l]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const l=[];for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&l.push(u);return l},t.find=(o,l)=>{for(const u of o)if(l(u))return u},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function i(o,l=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}t.joinValues=i,t.jsonStringifyReplacer=(o,l)=>typeof l=="bigint"?l.toString():l})(ze||(ze={}));var Ef;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Ef||(Ef={}));const ue=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),pr=t=>{switch(typeof t){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(t)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(t)?ue.array:t===null?ue.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ue.promise:typeof Map<"u"&&t instanceof Map?ue.map:typeof Set<"u"&&t instanceof Set?ue.set:typeof Date<"u"&&t instanceof Date?ue.date:ue.object;default:return ue.unknown}}
vendor: 16,744 bytes, line 13
13,G=ze.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"]),a6=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class cn extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(l){return l.message},i={_errors:[]},o=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(o);else if(u.code==="invalid_return_type")o(u.returnTypeError);else if(u.code==="invalid_arguments")o(u.argumentsError);else if(u.path.length===0)i._errors.push(n(u));else{let d=i,h=0;for(;h<u.path.length;){const p=u.path[h];h===u.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(n(u))):d[p]=d[p]||{_errors:[]},d=d[p],h++}}};return o(this),i}static assert(e){if(!(e instanceof cn))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},i=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(e(o))):i.push(e(o));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}cn.create=t=>new cn(t);const Si=(t,e)=>{let n;switch(t.code){case G.invalid_type:t.received===ue.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case G.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,ze.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(t.keys,", ")}`;break;case G.invalid_union:n="Invalid input";break;case G.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(t.options)}`;break;case G.invalid_enum_value:n=`Invalid enum value. Expected ${ze.joinValues(t.options)}, received '${t.received}'`;break;case G.invalid_arguments:n="Invalid function arguments";break;case G.invalid_return_type:n="Invalid function return type";break;case G.invalid_date:n="Invalid date";break;case G.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:ze.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case G.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case G.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case G.custom:n="Invalid input";break;case G.invalid_intersection_types:n="Intersection results could not be merged";break;case G.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case G.not_finite:n="Number must be finite";break;default:n=e.defaultError,ze.assertNever(t)}return{message:n}};let Hw=Si;function l6(t){Hw=t}function ru(){return Hw}const su=t=>{const{data:e,path:n,errorMaps:i,issueData:o}=t,l=[...n,...o.path||[]],u={...o,path:l};if(o.message!==void 0)return{...o,path:l,message:o.message};let d="";const h=i.filter(p=>!!p).slice().reverse();for(const p of h)d=p(u,{data:e,defaultError:d}).message;return{...o,path:l,message:d}},u6=[];function ie(t,e){const n=ru(),i=su({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Si?void 0:Si].filter(o=>!!o)});t.common.issues.push(i)}class zt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const i=[];for(const o of n){if(o.status==="aborted")return _e;o.status==="dirty"&&e.dirty(),i.push(o.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,n){const i=[];for(const o of n){const l=await o.key,u=await o.value;i.push({key:l,value:u})}return zt.mergeObjectSync(e,i)}static mergeObjectSync(e,n){const i={};for(const o of n){const{key:l,value:u}=o;if(l.status==="aborted"||u.status==="aborted")return _e;l.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(i[l.value]=u.value)}return{status:e.value,value:i}}}const _e=Object.freeze({status:"aborted"}),ci=t=>({status:"dirty",value:t}),Wt=t=>({status:"valid",value:t}),kf=t=>t.status==="aborted",Af=t=>t.status==="dirty",Ps=t=>t.status==="valid",Ho=t=>typeof Promise<"u"&&t instanceof Promise;function iu(t,e,n,i){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function Kw(t,e,n,i,o){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var ye;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(ye||(ye={}));var Eo,ko;class er{constructor(e,n,i,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=i,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Qv=(t,e)=>{if(Ps(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new cn(t.common.issues);return this._error=n,this._error}}};function Ne(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:i,description:o}=t;if(e&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(u,d)=>{var h,p;const{message:g}=t;return u.code==="invalid_enum_value"?{message:g??d.defaultError}:typeof d.data>"u"?{message:(h=g??i)!==null&&h!==void 0?h:d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:(p=g??n)!==null&&p!==void 0?p:d.defaultError}},description:o}}class Oe{get description(){return this._def.description}_getType(e){return pr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:pr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new zt,ctx:{common:e.parent.common,data:e.data,parsedType:pr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Ho(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const i=this.safeParse(e,n);if(i.success)return i.data;throw i.error}safeParse(e,n){var i;const o={common:{issues:[],async:(i=n?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pr(e)},l=this._parseSync({data:e,path:o.path,parent:o});return Qv(o,l)}"~validate"(e){var n,i;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pr(e)};if(!this["~standard"].async)try{const l=this._parseSync({data:e,path:[],parent:o});return Ps(l)?{value:l.value}:{issues:o.common.issues}}catch(l){!((i=(n=l?.message)===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:o}).then(l=>Ps(l)?{value:l.value}:{issues:o.common.issues})}async parseAsync(e,n){const i=await this.safeParseAsync(e,n);if(i.success)return i.data;throw i.error}async safeParseAsync(e,n){const i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pr(e)},o=this._parse({data:e,path:i.path,parent:i}),l=await(Ho(o)?o:Promise.resolve(o));return Qv(i,l)}refine(e,n){const i=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,l)=>{const u=e(o),d=()=>l.addIssue({code:G.custom,...i(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(e,n){return this._refinement((i,o)=>e(i)?!0:(o.addIssue(typeof n=="function"?n(i,o):n),!1))}_refinement(e){return new Fn({schema:this,typeName:Pe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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:n=>this["~validate"](n)}}optional(){return Xn.create(this,this._def)}nullable(){return Jr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return In.create(this)}promise(){return Ti.create(this,this._def)}or(e){return Zo.create([this,e],this._def)}and(e){return Go.create(this,e,this._def)}transform(e){return new Fn({...Ne(this._def),schema:this,typeName:Pe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new ta({...Ne(this._def),innerType:this,defaultValue:n,typeName:Pe.ZodDefault})}brand(){return new Lh({typeName:Pe.ZodBranded,type:this,...Ne(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new na({...Ne(this._def),innerType:this,catchValue:n,typeName:Pe.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return pa.create(this,e)}readonly(){return ra.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const c6=/^c[^\s-]{8,}$/i,d6=/^[0-9a-z]+$/,f6=/^[0-9A-HJKMNP-TV-Z]{26}$/i,h6=/^[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,p6=/^[a-z0-9_-]{21}$/i,m6=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,g6=/^[-+]?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)?)??$/,y6=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,v6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Kd;const x6=/^(?:(?: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])$/,w6=/^(?:(?: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])$/,S6=/^(([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]))$/,b6=/^(([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])$/,T6=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,P6=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qw="((\\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])))",C6=new RegExp(`^${qw}$`);function Qw(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function _6(t){return new RegExp(`^${Qw(t)}$`)}function Zw(t){let e=`${qw}T${Qw(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function E6(t,e){return!!((e==="v4"||!e)&&x6.test(t)||(e==="v6"||!e)&&S6.test(t))}function k6(t,e){if(!m6.test(t))return!1;try{const[n]=t.split("."),i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(i));return!(typeof o!="object"||o===null||!o.typ||!o.alg||e&&o.alg!==e)}catch{return!1}}function A6(t,e){return!!((e==="v4"||!e)&&w6.test(t)||(e==="v6"||!e)&&b6.test(t))}class Mn extends Oe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ue.string){const l=this._getOrReturnCtx(e);return ie(l,{code:G.invalid_type,expected:ue.string,received:l.parsedType}),_e}const i=new zt;let o;for(const l of this._def.checks)if(l.kind==="min")e.data.length<l.value&&(o=this._getOrReturnCtx(e,o),ie(o,{code:G.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="max")e.data.length>l.value&&(o=this._getOrReturnCtx(e,o),ie(o,{code:G.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="length"){const u=e.data.length>l.value,d=e.data.length<l.value;(u||d)&&(o=this._getOrReturnCtx(e,o),u?ie(o,{code:G.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&ie(o,{code:G.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),i.dirty())}else if(l.kind==="email")y6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"email",code:G.invali
vendor: 5,917 bytes, line 13
13d_string,message:l.message}),i.dirty());else if(l.kind==="emoji")Kd||(Kd=new RegExp(v6,"u")),Kd.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"emoji",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="uuid")h6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"uuid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="nanoid")p6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"nanoid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid")c6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"cuid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid2")d6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"cuid2",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="ulid")f6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"ulid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),ie(o,{validation:"url",code:G.invalid_string,message:l.message}),i.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"regex",code:G.invalid_string,message:l.message}),i.dirty())):l.kind==="trim"?e.data=e.data.trim():l.kind==="includes"?e.data.includes(l.value,l.position)||(o=this._getOrReturnCtx(e,o),ie(o,{code:G.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),i.dirty()):l.kind==="toLowerCase"?e.data=e.data.toLowerCase():l.kind==="toUpperCase"?e.data=e.data.toUpperCase():l.kind==="startsWith"?e.data.startsWith(l.value)||(o=this._getOrReturnCtx(e,o),ie(o,{code:G.invalid_string,validation:{startsWith:l.value},message:l.message}),i.dirty()):l.kind==="endsWith"?e.data.endsWith(l.value)||(o=this._getOrReturnCtx(e,o),ie(o,{code:G.invalid_string,validation:{endsWith:l.value},message:l.message}),i.dirty()):l.kind==="datetime"?Zw(l).test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{code:G.invalid_string,validation:"datetime",message:l.message}),i.dirty()):l.kind==="date"?C6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{code:G.invalid_string,validation:"date",message:l.message}),i.dirty()):l.kind==="time"?_6(l).test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{code:G.invalid_string,validation:"time",message:l.message}),i.dirty()):l.kind==="duration"?g6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"duration",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="ip"?E6(e.data,l.version)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"ip",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="jwt"?k6(e.data,l.alg)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"jwt",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="cidr"?A6(e.data,l.version)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"cidr",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="base64"?T6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"base64",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="base64url"?P6.test(e.data)||(o=this._getOrReturnCtx(e,o),ie(o,{validation:"base64url",code:G.invalid_string,message:l.message}),i.dirty()):ze.assertNever(l);return{status:i.value,value:e.data}}_regex(e,n,i){return this.refinement(o=>e.test(o),{validation:n,code:G.invalid_string,...ye.errToObj(i)})}_addCheck(e){return new Mn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ye.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ye.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ye.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ye.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ye.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ye.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ye.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ye.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ye.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ye.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ye.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ye.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ye.errToObj(e)})}datetime(e){var n,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(n=e?.offset)!==null&&n!==void 0?n:!1,local:(i=e?.local)!==null&&i!==void 0?i:!1,...ye.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...ye.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ye.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...ye.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...ye.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...ye.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...ye.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...ye.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...ye.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...ye.errToObj(n)})}nonempty(e){return this.min(1,ye.errToObj(e))}trim(){return new Mn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Mn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Mn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}
vendor: 29,720 bytes, line 13
13get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Mn.create=t=>{var e;return new Mn({checks:[],typeName:Pe.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...Ne(t)})};function N6(t,e){const n=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,o=n>i?n:i,l=parseInt(t.toFixed(o).replace(".","")),u=parseInt(e.toFixed(o).replace(".",""));return l%u/Math.pow(10,o)}class Gr extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ue.number){const l=this._getOrReturnCtx(e);return ie(l,{code:G.invalid_type,expected:ue.number,received:l.parsedType}),_e}let i;const o=new zt;for(const l of this._def.checks)l.kind==="int"?ze.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),ie(i,{code:G.invalid_type,expected:"integer",received:"float",message:l.message}),o.dirty()):l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(i=this._getOrReturnCtx(e,i),ie(i,{code:G.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(i=this._getOrReturnCtx(e,i),ie(i,{code:G.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="multipleOf"?N6(e.data,l.value)!==0&&(i=this._getOrReturnCtx(e,i),ie(i,{code:G.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):l.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),ie(i,{code:G.not_finite,message:l.message}),o.dirty()):ze.assertNever(l);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ye.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ye.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ye.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ye.toString(n))}setLimit(e,n,i,o){return new Gr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:ye.toString(o)}]})}_addCheck(e){return new Gr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ye.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ye.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ye.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ye.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ye.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ye.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:ye.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ye.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ye.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ze.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(n)&&Number.isFinite(e)}}Gr.create=t=>new Gr({checks:[],typeName:Pe.ZodNumber,coerce:t?.coerce||!1,...Ne(t)});class Xr extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ue.bigint)return this._getInvalidInput(e);let i;const o=new zt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(i=this._getOrReturnCtx(e,i),ie(i,{code:G.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(i=this._getOrReturnCtx(e,i),ie(i,{code:G.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="multipleOf"?e.data%l.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),ie(i,{code:G.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):ze.assertNever(l);return{status:o.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return ie(n,{code:G.invalid_type,expected:ue.bigint,received:n.parsedType}),_e}gte(e,n){return this.setLimit("min",e,!0,ye.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ye.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ye.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ye.toString(n))}setLimit(e,n,i,o){return new Xr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:ye.toString(o)}]})}_addCheck(e){return new Xr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ye.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ye.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ye.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ye.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ye.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Xr.create=t=>{var e;return new Xr({checks:[],typeName:Pe.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...Ne(t)})};class Ko extends Oe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ue.boolean){const i=this._getOrReturnCtx(e);return ie(i,{code:G.invalid_type,expected:ue.boolean,received:i.parsedType}),_e}return Wt(e.data)}}Ko.create=t=>new Ko({typeName:Pe.ZodBoolean,coerce:t?.coerce||!1,...Ne(t)});class Cs extends Oe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ue.date){const l=this._getOrReturnCtx(e);return ie(l,{code:G.invalid_type,expected:ue.date,received:l.parsedType}),_e}if(isNaN(e.data.getTime())){const l=this._getOrReturnCtx(e);return ie(l,{code:G.invalid_date}),_e}const i=new zt;let o;for(const l of this._def.checks)l.kind==="min"?e.data.getTime()<l.value&&(o=this._getOrReturnCtx(e,o),ie(o,{code:G.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),i.dirty()):l.kind==="max"?e.data.getTime()>l.value&&(o=this._getOrReturnCtx(e,o),ie(o,{code:G.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),i.dirty()):ze.assertNever(l);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Cs({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:ye.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:ye.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Cs.create=t=>new Cs({checks:[],coerce:t?.coerce||!1,typeName:Pe.ZodDate,...Ne(t)});class ou extends Oe{_parse(e){if(this._getType(e)!==ue.symbol){const i=this._getOrReturnCtx(e);return ie(i,{code:G.invalid_type,expected:ue.symbol,received:i.parsedType}),_e}return Wt(e.data)}}ou.create=t=>new ou({typeName:Pe.ZodSymbol,...Ne(t)});class qo extends Oe{_parse(e){if(this._getType(e)!==ue.undefined){const i=this._getOrReturnCtx(e);return ie(i,{code:G.invalid_type,expected:ue.undefined,received:i.parsedType}),_e}return Wt(e.data)}}qo.create=t=>new qo({typeName:Pe.ZodUndefined,...Ne(t)});class Qo extends Oe{_parse(e){if(this._getType(e)!==ue.null){const i=this._getOrReturnCtx(e);return ie(i,{code:G.invalid_type,expected:ue.null,received:i.parsedType}),_e}return Wt(e.data)}}Qo.create=t=>new Qo({typeName:Pe.ZodNull,...Ne(t)});class bi extends Oe{constructor(){super(...arguments),this._any=!0}_parse(e){return Wt(e.data)}}bi.create=t=>new bi({typeName:Pe.ZodAny,...Ne(t)});class ws extends Oe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Wt(e.data)}}ws.create=t=>new ws({typeName:Pe.ZodUnknown,...Ne(t)});class wr extends Oe{_parse(e){const n=this._getOrReturnCtx(e);return ie(n,{code:G.invalid_type,expected:ue.never,received:n.parsedType}),_e}}wr.create=t=>new wr({typeName:Pe.ZodNever,...Ne(t)});class au extends Oe{_parse(e){if(this._getType(e)!==ue.undefined){const i=this._getOrReturnCtx(e);return ie(i,{code:G.invalid_type,expected:ue.void,received:i.parsedType}),_e}return Wt(e.data)}}au.create=t=>new au({typeName:Pe.ZodVoid,...Ne(t)});class In extends Oe{_parse(e){const{ctx:n,status:i}=this._processInputParams(e),o=this._def;if(n.parsedType!==ue.array)return ie(n,{code:G.invalid_type,expected:ue.array,received:n.parsedType}),_e;if(o.exactLength!==null){const u=n.data.length>o.exactLength.value,d=n.data.length<o.exactLength.value;(u||d)&&(ie(n,{code:u?G.too_big:G.too_small,minimum:d?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),i.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(ie(n,{code:G.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),i.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(ie(n,{code:G.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((u,d)=>o.type._parseAsync(new er(n,u,n.path,d)))).then(u=>zt.mergeArray(i,u));const l=[...n.data].map((u,d)=>o.type._parseSync(new er(n,u,n.path,d)));return zt.mergeArray(i,l)}get element(){return this._def.type}min(e,n){return new In({...this._def,minLength:{value:e,message:ye.toString(n)}})}max(e,n){return new In({...this._def,maxLength:{value:e,message:ye.toString(n)}})}length(e,n){return new In({...this._def,exactLength:{value:e,message:ye.toString(n)}})}nonempty(e){return this.min(1,e)}}In.create=(t,e)=>new In({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Pe.ZodArray,...Ne(e)});function si(t){if(t instanceof at){const e={};for(const n in t.shape){const i=t.shape[n];e[n]=Xn.create(si(i))}return new at({...t._def,shape:()=>e})}else return t instanceof In?new In({...t._def,type:si(t.element)}):t instanceof Xn?Xn.create(si(t.unwrap())):t instanceof Jr?Jr.create(si(t.unwrap())):t instanceof tr?tr.create(t.items.map(e=>si(e))):t}class at extends Oe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=ze.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==ue.object){const p=this._getOrReturnCtx(e);return ie(p,{code:G.invalid_type,expected:ue.object,received:p.parsedType}),_e}const{status:i,ctx:o}=this._processInputParams(e),{shape:l,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof wr&&this._def.unknownKeys==="strip"))for(const p in o.data)u.includes(p)||d.push(p);const h=[];for(const p of u){const g=l[p],y=o.data[p];h.push({key:{status:"valid",value:p},value:g._parse(new er(o,y,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof wr){const p=this._def.unknownKeys;if(p==="passthrough")for(const g of d)h.push({key:{status:"valid",value:g},value:{status:"valid",value:o.data[g]}});else if(p==="strict")d.length>0&&(ie(o,{code:G.unrecognized_keys,keys:d}),i.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const g of d){const y=o.data[g];h.push({key:{status:"valid",value:g},value:p._parse(new er(o,y,o.path,g)),alwaysSet:g in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const g of h){const y=await g.key,x=await g.value;p.push({key:y,value:x,alwaysSet:g.alwaysSet})}return p}).then(p=>zt.mergeObjectSync(i,p)):zt.mergeObjectSync(i,h)}get shape(){return this._def.shape()}strict(e){return ye.errToObj,new at({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,i)=>{var o,l,u,d;const h=(u=(l=(o=this._def).errorMap)===null||l===void 0?void 0:l.call(o,n,i).message)!==null&&u!==void 0?u:i.defaultError;return n.code==="unrecognized_keys"?{message:(d=ye.errToObj(e).message)!==null&&d!==void 0?d:h}:{message:h}}}:{}})}strip(){return new at({...this._def,unknownKeys:"strip"})}passthrough(){return new at({...this._def,unknownKeys:"passthrough"})}extend(e){return new at({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new at({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Pe.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new at({...this._def,catchall:e})}pick(e){const n={};return ze.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}omit(e){const n={};return ze.objectKeys(this.shape).forEach(i=>{e[i]||(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}deepPartial(){return si(this)}partial(e){const n={};return ze.objectKeys(this.shape).forEach(i=>{const o=this.shape[i];e&&!e[i]?n[i]=o:n[i]=o.optional()}),new at({...this._def,shape:()=>n})}required(e){const n={};return ze.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])n[i]=this.shape[i];else{let l=this.shape[i];for(;l instanceof Xn;)l=l._def.innerType;n[i]=l}}),new at({...this._def,shape:()=>n})}keyof(){return Gw(ze.objectKeys(this.shape))}}at.create=(t,e)=>new at({shape:()=>t,unknownKeys:"strip",catchall:wr.create(),typeName:Pe.ZodObject,...Ne(e)});at.strictCreate=(t,e)=>new at({shape:()=>t,unknownKeys:"strict",catchall:wr.create(),typeName:Pe.ZodObject,...Ne(e)});at.lazycreate=(t,e)=>new at({shape:t,unknownKeys:"strip",catchall:wr.create(),typeName:Pe.ZodObject,...Ne(e)});class Zo extends Oe{_parse(e){const{ctx:n}=this._processInputParams(e),i=this._def.options;function o(l){for(const d of l)if(d.result.status==="valid")return d.result;for(const d of l)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const u=l.map(d=>new cn(d.ctx.common.issues));return ie(n,{code:G.invalid_union,unionErrors:u}),_e}if(n.common.async)return Promise.all(i.map(async l=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(o);{let l;const u=[];for(const h of i){const p={...n,common:{...n.common,issues:[]},parent:null},g=h._parseSync({data:n.data,path:n.path,parent:p});if(g.status==="valid")return g;g.status==="dirty"&&!l&&(l={result:g,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const d=u.map(h=>new cn(h));return ie(n,{code:G.invalid_union,unionErrors:d}),_e}}get options(){return this._def.options}}Zo.create=(t,e)=>new Zo({options:t,typeName:Pe.ZodUnion,...Ne(e)});const hr=t=>t instanceof Yo?hr(t.schema):t instanceof Fn?hr(t.innerType()):t instanceof Jo?[t.value]:t instanceof Yr?t.options:t instanceof ea?ze.objectValues(t.enum):t instanceof ta?hr(t._def.innerType):t instanceof qo?[void 0]:t instanceof Qo?[null]:t instanceof Xn?[void 0,...hr(t.unwrap())]:t instanceof Jr?[null,...hr(t.unwrap())]:t instanceof Lh||t instanceof ra?hr(t.unwrap()):t instanceof na?hr(t._def.innerType):[];class Nu extends Oe{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.object)return ie(n,{code:G.invalid_type,expected:ue.object,received:n.parsedType}),_e;const i=this.discriminator,o=n.data[i],l=this.optionsMap.get(o);return l?n.common.async?l._parseAsync({data:n.data,path:n.path,parent:n}):l._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),_e)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,i){const o=new Map;for(const l of n){const u=hr(l.shape[e]);if(!u.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const d of u){if(o.has(d))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(d)}`);o.set(d,l)}}return new Nu({typeName:Pe.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:o,...Ne(i)})}}function Nf(t,e){const n=pr(t),i=pr(e);if(t===e)return{valid:!0,data:t};if(n===ue.object&&i===ue.object){const o=ze.objectKeys(e),l=ze.objectKeys(t).filter(d=>o.indexOf(d)!==-1),u={...t,...e};for(const d of l){const h=Nf(t[d],e[d]);if(!h.valid)return{valid:!1};u[d]=h.data}return{valid:!0,data:u}}else if(n===ue.array&&i===ue.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let l=0;l<t.length;l++){const u=t[l],d=e[l],h=Nf(u,d);if(!h.valid)return{valid:!1};o.push(h.data)}return{valid:!0,data:o}}else return n===ue.date&&i===ue.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Go extends Oe{_parse(e){const{status:n,ctx:i}=this._processInputParams(e),o=(l,u)=>{if(kf(l)||kf(u))return _e;const d=Nf(l.value,u.value);return d.valid?((Af(l)||Af(u))&&n.dirty(),{status:n.value,value:d.data}):(ie(i,{code:G.invalid_intersection_types}),_e)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([l,u])=>o(l,u)):o(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Go.create=(t,e,n)=>new Go({left:t,right:e,typeName:Pe.ZodIntersection,...Ne(n)});class tr extends Oe{_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==ue.array)return ie(i,{code:G.invalid_type,expected:ue.array,received:i.parsedType}),_e;if(i.data.length<this._def.items.length)return ie(i,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_e;!this._def.rest&&i.data.length>this._def.items.length&&(ie(i,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...i.data].map((u,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new er(i,u,i.path,d)):null}).filter(u=>!!u);return i.common.async?Promise.all(l).then(u=>zt.mergeArray(n,u)):zt.mergeArray(n,l)}get items(){return this._def.items}rest(e){return new tr({...this._def,rest:e})}}tr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tr({items:t,typeName:Pe.ZodTuple,rest:null,...Ne(e)})};class Xo extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==ue.object)return ie(i,{code:G.invalid_type,expected:ue.object,received:i.parsedType}),_e;const o=[],l=this._def.keyType,u=this._def.valueType;for(const d in i.data)o.push({key:l._parse(new er(i,d,i.path,d)),value:u._parse(new er(i,i.data[d],i.path,d)),alwaysSet:d in i.data});return i.common.async?zt.mergeObjectAsync(n,o):zt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(e,n,i){return n instanceof Oe?new Xo({keyType:e,valueType:n,typeName:Pe.ZodRecord,...Ne(i)}):new Xo({keyType:Mn.create(),valueType:e,typeName:Pe.ZodRecord,...Ne(n)})}}class lu extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==ue.map)return ie(i,{code:G.invalid_type,expected:ue.map,received:i.parsedType}),_e;const o=this._def.keyType,l=this._def.valueType,u=[...i.data.entries()].map(([d,h],p)=>({key:o._parse(new er(i,d,i.path,[p,"key"])),value:l._parse(new er(i,h,i.path,[p,"value"]))}));if(i.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of u){const p=await h.key,g=await h.value;if(p.status==="aborted"||g.status==="aborted")return _e;(p.status==="dirty"||g.status==="dirty")&&n.dirty(),d.set(p.value,g.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const h of u){const p=h.key,g=h.value;if(p.status==="aborted"||g.status==="aborted")return _e;(p.status==="dirty"||g.status==="dirty")&&n.dirty(),d.set(p.value,g.value)}return{status:n.value,value:d}}}}lu.create=(t,e,n)=>new lu({valueType:e,keyType:t,typeName:Pe.ZodMap,...Ne(n)});class _s extends Oe{_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==ue.set)return ie(i,{code:G.invalid_type,expected:ue.set,received:i.parsedType}),_e;const o=this._def;o.minSize!==null&&i.data.size<o.minSize.value&&(ie(i,{code:G.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&i.data.size>o.maxSize.value&&(ie(i,{code:G.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const l=this._def.valueType;function u(h){const p=new Set;for(const g of h){if(g.status==="aborted")return _e;g.status==="dirty"&&n.dirty(),p.add(g.value)}return{status:n.value,value:p}}const d=[...i.data.values()].map((h,p)=>l._parse(new er(i,h,i.path,p)));return i.common.async?Promise.all(d).then(h=>u(h)):u(d)}min(e,n){return new _s({...this._def,minSize:{value:e,message:ye.toString(n)}})}max(e,n){return new _s({...this._def,maxSize:{value:e,message:ye.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}_s.create=(t,e)=>new _s({valueType:t,minSize:null,maxSize:null,typeName:Pe.ZodSet,...Ne(e)});class mi extends Oe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.function)return ie(n,{code:G.invalid_type,expected:ue.function,received:n.parsedType}),_e;function i(d,h){return su({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ru(),Si].filter(p=>!!p),issueData:{code:G.invalid_arguments,argumentsError:h}})}function o(d,h){return su({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ru(),Si].filter(p=>!!p),issueData:{code:G.invalid_return_type,returnTypeError:h}})}const l={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof Ti){const d=this;return Wt(async function(...h){const p=new cn([]),g=await d._def.args.parseAsync(h,l).catch(w=>{throw p.addIssue(i(h,w)),p}),y=await Reflect.apply(u,this,g);return await d._def.returns._def.type.parseAsync(y,l).catch(w=>{throw p.addIssue(o(y,w)),p})})}else{const d=this;return Wt(function(...h){const p=d._def.args.safeParse(h,l);if(!p.success)throw new cn([i(h,p.error)]);const g=Reflect.apply(u,this,p.data),y=d._def.returns.safeParse(g,l);if(!y.success)throw new cn([o(g,y.error)]);return y.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new mi({...this._def,args:tr.create(e).rest(ws.create())})}returns(e){return new mi({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,i){return new mi({args:e||tr.create([]).rest(ws.create()),returns:n||ws.create(),typeName:Pe.ZodFunction,...Ne(i)})}}class Yo extends Oe{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Yo.create=(t,e)=>new Yo({getter:t,typeName:Pe.ZodLazy,...Ne(e)});class Jo extends Oe{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ie(n,{received:n.data,code:G.invalid_literal,expected:this._def.value}),_e}return{status:"valid",value:e.data}}get value(){return this._def.value}}Jo.create=(t,e)=>new Jo({value:t,typeName:Pe.ZodLiteral,...Ne(e)});function Gw(t,e){return new Yr({values:t,typeName:Pe.ZodEnum,...Ne(e)})}class Yr extends Oe{constructor(){super(...arguments),Eo.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),i=this._def.values;return ie(n,{expected:ze.joinValues(i),received:n.parsedType,code:G.invalid_type}),_e}if(iu(this,Eo)||Kw(this,Eo,new Set(this._def.values)),!iu(this,Eo).has(e.data)){const n=this._getOrReturnCtx(e),i=this._def.values;return ie(n,{received:n.data,code:G.invalid_enum_value,options:i}),_e}return Wt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return Yr.create(e,{...this._def,...n})}exclude(e,n=this._def){return Yr.create(this.options.filter(i=>!e.includes(i)),{...this._def,...n})}}Eo=new WeakMap;Yr.create=Gw;class ea extends Oe{constructor(){super(...arguments),ko.set(this,void 0)}_parse(e){const n=ze.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==ue.string&&i.parsedType!==ue.number){const o=ze.objectValues(n);return ie(i,{expected:ze.joinValues(o),received:i.parsedType,code:G.invalid_type}),_e}if(iu(this,ko)||Kw(this,ko,new Set(ze.getValidEnumValues(this._def.values))),!iu(this,ko).has(e.data)){const o=ze.objectValues(n);return ie(i,{received:i.data,code:G.invalid_enum_value,options:o}),_e}return Wt(e.data)}get enum(){return this._def.values}}ko=new WeakMap;ea.create=(t,e)=>new ea({values:t,typeName:Pe.ZodNativeEnum,...Ne(e)});class Ti extends Oe{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.promise&&n.common.async===!1)return ie(n,{code:G.invalid_type,expected:ue.promise,received:n.parsedType}),_e;const i=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return Wt(i.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ti.create=(t,e)=>new Ti({type:t,typeName:Pe.ZodPromise,...Ne(e)});class Fn extends Oe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:i}=this._processInputParams(e),o=this._def.effect||null,l={addIssue:u=>{ie(i,u),u.fatal?n.abort():n.dirty()},get path(){return i.path}};if(l.addIssue=l.addIssue.bind(l),o.type==="preprocess"){const u=o.transform(i.data,l);if(i.common.async)return Promise.resolve(u).then(async d=>{if(n.value==="aborted")return _e;const h=await this._def.schema._parseAsync({data:d,path:i.path,parent:i});return h.status==="aborted"?_e:h.status==="dirty"||n.value==="dirty"?ci(h.value):h});{if(n.value==="aborted")return _e;const d=this._def.schema._parseSync({data:u,path:i.path,parent:i});return d.status==="aborted"?_e:d.status==="dirty"||n.value==="dirty"?ci(d.value):d}}if(o.type==="refinement"){const u=d=>{const h=o.refinement(d,l);if(i.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return d.status==="aborted"?_e:(d.status==="dirty"&&n.dirty(),u(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>d.status==="aborted"?_e:(d.status==="dirty"&&n.dirty(),u(d.value).then(()=>({status:n.value,value:d.value}))))}if(o.type==="transform")if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Ps(u))return u;const d=o.transform(u.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>Ps(u)?Promise.resolve(o.transform(u.value,l)).then(d=>({status:n.value,value:d})):u);ze.assertNever(o)}}Fn.create=(t,e,n)=>new Fn({schema:t,typeName:Pe.ZodEffects,effect:e,...Ne(n)});
vendor: 5,398 bytes, line 13
13Fn.createWithPreprocess=(t,e,n)=>new Fn({schema:e,effect:{type:"preprocess",transform:t},typeName:Pe.ZodEffects,...Ne(n)});class Xn extends Oe{_parse(e){return this._getType(e)===ue.undefined?Wt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Xn.create=(t,e)=>new Xn({innerType:t,typeName:Pe.ZodOptional,...Ne(e)});class Jr extends Oe{_parse(e){return this._getType(e)===ue.null?Wt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jr.create=(t,e)=>new Jr({innerType:t,typeName:Pe.ZodNullable,...Ne(e)});class ta extends Oe{_parse(e){const{ctx:n}=this._processInputParams(e);let i=n.data;return n.parsedType===ue.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ta.create=(t,e)=>new ta({innerType:t,typeName:Pe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ne(e)});class na extends Oe{_parse(e){const{ctx:n}=this._processInputParams(e),i={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ho(o)?o.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new cn(i.common.issues)},input:i.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new cn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}na.create=(t,e)=>new na({innerType:t,typeName:Pe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ne(e)});class uu extends Oe{_parse(e){if(this._getType(e)!==ue.nan){const i=this._getOrReturnCtx(e);return ie(i,{code:G.invalid_type,expected:ue.nan,received:i.parsedType}),_e}return{status:"valid",value:e.data}}}uu.create=t=>new uu({typeName:Pe.ZodNaN,...Ne(t)});const R6=Symbol("zod_brand");class Lh extends Oe{_parse(e){const{ctx:n}=this._processInputParams(e),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class pa extends Oe{_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?_e:l.status==="dirty"?(n.dirty(),ci(l.value)):this._def.out._parseAsync({data:l.value,path:i.path,parent:i})})();{const o=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?_e:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:i.path,parent:i})}}static create(e,n){return new pa({in:e,out:n,typeName:Pe.ZodPipeline})}}class ra extends Oe{_parse(e){const n=this._def.innerType._parse(e),i=o=>(Ps(o)&&(o.value=Object.freeze(o.value)),o);return Ho(n)?n.then(o=>i(o)):i(n)}unwrap(){return this._def.innerType}}ra.create=(t,e)=>new ra({innerType:t,typeName:Pe.ZodReadonly,...Ne(e)});function Zv(t,e){const n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function Xw(t,e={},n){return t?bi.create().superRefine((i,o)=>{var l,u;const d=t(i);if(d instanceof Promise)return d.then(h=>{var p,g;if(!h){const y=Zv(e,i),x=(g=(p=y.fatal)!==null&&p!==void 0?p:n)!==null&&g!==void 0?g:!0;o.addIssue({code:"custom",...y,fatal:x})}});if(!d){const h=Zv(e,i),p=(u=(l=h.fatal)!==null&&l!==void 0?l:n)!==null&&u!==void 0?u:!0;o.addIssue({code:"custom",...h,fatal:p})}}):bi.create()}const D6={object:at.lazycreate};var Pe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Pe||(Pe={}));const O6=(t,e={message:`Input not instance of ${t.name}`})=>Xw(n=>n instanceof t,e),Yw=Mn.create,Jw=Gr.create,M6=uu.create,I6=Xr.create,eS=Ko.create,j6=Cs.create,V6=ou.create,L6=qo.create,F6=Qo.create,z6=bi.create,B6=ws.create,U6=wr.create,$6=au.create,W6=In.create,H6=at.create,K6=at.strictCreate,q6=Zo.create,Q6=Nu.create,Z6=Go.create,G6=tr.create,X6=Xo.create,Y6=lu.create,J6=_s.create,eR=mi.create,tR=Yo.create,nR=Jo.create,rR=Yr.create,sR=ea.create,iR=Ti.create,Gv=Fn.create,oR=Xn.create,aR=Jr.create,lR=Fn.createWithPreprocess,uR=pa.create,cR=()=>Yw().optional(),dR=()=>Jw().optional(),fR=()=>eS().optional(),hR={string:(t=>Mn.create({...t,coerce:!0})),number:(t=>Gr.create({...t,coerce:!0})),boolean:(t=>Ko.create({...t,coerce:!0})),bigint:(t=>Xr.create({...t,coerce:!0})),date:(t=>Cs.create({...t,coerce:!0}))},pR=_e;var Ge=Object.freeze({__proto__:null,defaultErrorMap:Si,setErrorMap:l6,getErrorMap:ru,makeIssue:su,EMPTY_PATH:u6,addIssueToContext:ie,ParseStatus:zt,INVA
13LID:_e,DIRTY:ci,OK:Wt,isAborted:kf,isDirty:Af,isValid:Ps,isAsync:Ho,get util(){return ze},get objectUtil(){return Ef},ZodParsedType:ue,getParsedType:pr,ZodType:Oe,datetimeRegex:Zw,ZodString:Mn,ZodNumber:Gr,ZodBigInt:Xr,ZodBoolean:Ko,ZodDate:Cs,ZodSymbol:ou,ZodUndefined:qo,ZodNull:Qo,ZodAny:bi,ZodUnknown:ws,ZodNever:wr,ZodVoid:au,ZodArray:In,ZodObject:at,ZodUnion:Zo,ZodDiscriminatedUnion:Nu,ZodIntersection:Go,ZodTuple:tr,ZodRecord:Xo,ZodMap:lu,ZodSet:_s,ZodFunction:mi,ZodLazy:Yo,ZodLiteral:Jo,ZodEnum:Yr,ZodNativeEnum:ea,ZodPromise:Ti,ZodEffects:Fn,ZodTransformer:Fn,ZodOptional:Xn,ZodNullable:Jr,ZodDefault:ta,ZodCatch:na,ZodNaN:uu,BRAND:R6,ZodBranded:Lh,ZodPipeline:pa,ZodReadonly:ra,custom:Xw,Schema:Oe,ZodSchema:Oe,late:D6,get ZodFirstPartyTypeKind(){return Pe},coerce:hR,any:z6,array:W6,bigint:I6,boolean:eS,date:j6,discriminatedUnion:Q6,effect:Gv,enum:rR,function:eR,instanceof:O6,intersection:Z6,lazy:tR,literal:nR,map:Y6,nan:M6,nativeEnum:sR,never:U6,null:F6,nullable:aR,number:Jw,object:H6,oboolean:fR,onumber:dR,optional:oR,ostring:cR,pipeline:uR,preprocess:lR,promise:iR,record:X6,set:J6,str
13ictObject:K6,string:Yw,symbol:V6,transformer:Gv,tuple:G6,undefined:L6,union:q6,unknown:B6,void:$6,NEVER:pR,ZodIssueCode:G,quotelessJson:a6,ZodError:cn});const it={INT8_MIN:-128,INT8_MAX:127,INT8_UNSIGNED_MAX:255,INT16_MIN:-32768,INT16_MAX:32767,INT16_UNSIGNED_MAX:65535,INT24_MIN:-8388608,INT24_MAX:8388607,INT24_UNSIGNED_MAX:16777215,INT32_MIN:-2147483648,INT32_MAX:2147483647,INT32_UNSIGNED_MAX:4294967295,INT48_MIN:-0x800000000000,INT48_MAX:0x7fffffffffff,INT48_UNSIGNED_MAX:0xffffffffffff,INT64_MIN:-9223372036854775808n,INT64_MAX:9223372036854775807n,INT64_UNSIGNED_MAX:18446744073709551615n};function gt(t,e){return e.includes(t.columnType)}function mR(t){return"enumValues"in t&&Array.isArray(t.enumValues)&&t.enumValues.length>0}const gR=Ge.union([Ge.string(),Ge.number(),Ge.boolean(),Ge.null()]),yR=Ge.union([gR,Ge.record(Ge.any()),Ge.array(Ge.any())]),vR=Ge.custom(t=>t instanceof Buffer);function tS(t,e){const n=e?.zodInstance??Ge,i=e?.coerce??{};let o;return mR(t)&&(o=t.enumValues.length?n.enum(t.enumValues):n.str
13ing()),o||(gt(t,["PgGeometry","PgPointTuple"])?o=n.tuple([n.number(),n.number()]):gt(t,["PgGeometryObject","PgPointObject"])?o=n.object({x:n.number(),y:n.number()}):gt(t,["PgHalfVector","PgVector"])?(o=n.array(n.number()),o=t.dimensions?o.length(t.dimensions):o):gt(t,["PgLine"])?o=n.tuple([n.number(),n.number(),n.number()]):gt(t,["PgLineABC"])?o=n.object({a:n.number(),b:n.number(),c:n.number()}):gt(t,["PgArray"])?(o=n.array(tS(t.baseColumn,n)),o=t.size?o.length(t.size):o):t.dataType==="array"?o=n.array(n.any()):t.dataType==="number"?o=xR(t,n,i):t.dataType==="bigint"?o=wR(t,n,i):t.dataType==="boolean"?o=i===!0||i.boolean?n.coerce.boolean():n.boolean():t.dataType==="date"?o=i===!0||i.date?n.coerce.date():n.date():t.dataType==="string"?o=SR(t,n,i):t.dataType==="json"?o=yR:t.dataType==="custom"?o=n.any():t.dataType==="buffer"&&(o=vR)),o||(o=n.any()),o}function xR(t,e,n){let i=t.getSQLType().includes("unsigned"),o,l,u=!1;gt(t,["MySqlTinyInt","SingleStoreTinyInt"])?(o=i?0:it.INT8_MIN,l=i?it.INT8_UNSIGNED_MAX:it.INT8_MAX,u=!0):gt(t,["PgSmallInt","PgSmallSerial","MySqlSmallInt","SingleStoreSmallInt"])?(o=i?0:it.INT16_MIN,l=i?it.INT16_UNSIGNED_MAX:it.INT16_MAX,u=!0):gt(t,["PgReal","MySqlFloat","MySqlMediumInt","SingleStoreMediumInt","SingleStoreFloat"])?(o=i?0:it.INT24_MIN,l=i?it.INT24_UNSIGNED_MAX:it.INT24_MAX,u=gt(t,["MySqlMediumInt","SingleStoreMediumInt"])):gt(t,["PgInteger","PgSerial","MySqlInt","SingleStoreInt"])?(o=i?0:it.INT32_MIN,l=i?it.INT32_UNSIGNED_MAX:it.INT32_MAX,u=!0):gt(t,["PgDoublePrecision","MySqlReal","MySqlDouble","SingleStoreReal","SingleStoreDouble","SQLiteReal"])?(o=i?0:it.INT48_MIN,l=i?it.INT48_UNSIGNED_MAX:it.INT48_MAX):gt(t,["PgBigInt53","PgBigSerial53","MySqlBigInt53","MySqlSerial","SingleStoreBigInt53","SingleStoreSerial","SQLiteInteger"])?(i=i||gt(t,["MySqlSerial","SingleStoreSerial"]),o=i?0:Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER,u=!0):gt(t,["MySqlYear","SingleStoreYear"])?(o=1901,l=2155,u=!0):(o=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER);let d=n===!0||n?.number?e.coerce.number():e.number();return d=d.min(o).max(l),u?d.int():d}function wR(t,e,n){const i=t.getSQLType().includes("unsigned"),o=i?0n:it.INT64_MIN,l=i?it.INT64_UNSIGNED_MAX:it.INT64_MAX;return(n===!0||n?.bigint?e.coerce.bigint():e.bigint()).min(o).max(l)}function SR(t,e,n){if(gt(t,["PgUUID"]))return e.string().uuid();let i,o,l=!1;gt(t,["PgVarchar","SQLiteText"])?i=t.length:gt(t,["MySqlVarChar","SingleStoreVarChar"])?i=t.length??it.INT16_UNSIGNED_MAX:gt(t,["MySqlText","SingleStoreText"])&&(t.textType==="longtext"?i=it.INT32_UNSIGNED_MAX:t.textType==="mediumtext"?i=it.INT24_UNSIGNED_MAX:t.textType==="text"?i=it.INT16_UNSIGNED_MAX:i=it.INT8_UNSIGNED_MAX),gt(t,["PgChar","MySqlChar","SingleStoreChar"])&&(i=t.length,l=!0),gt(t,["PgBinaryVector"])&&(o=/^[01]+$/,i=t.dimensions);let u=n===!0||n?.string?e.coerce.string():e.string();return u=o?u.regex(o):u,i&&l?u.length(i):i?u.max(i):u}function nS(t){return jw(t)?nA(t):rA(t)}function rS(t,e,n,i){const o={};for(const[l,u]of Object.entries(t)){if(!Rt(u,Wo)&&!Rt(u,dt)&&!Rt(u,dt.Aliased)&&typeof u=="object"){const y=jw(u)||tA(u)?nS(u):u;o[l]=rS(y,e[l]??{},n,i);continue}const d=e[l];if(d!==void 0&&typeof d!="function"){o[l]=d;continue}const h=Rt(u,Wo)?u:void 0,p=h?tS(h,i):Ge.any(),g=typeof d=="function"?d(p):p;n.never(h)||(o[l]=g,h&&(n.nullable(h)&&(o[l]=o[l].nullable()),n.optional(h)&&(o[l]=o[l].optional())))}return Ge.object(o)}const bR={never:t=>t?.generated?.type==="always"||t?.generatedIdentity?.type==="always",optional:t=>!t.notNull||t.notNull&&t.hasDefault,nullable:t=>!t.notNull},TR=(t,e)=>{const n=nS(t);return rS(n,{},bR)},PR=o6("subscribers",{id:Uw("id").primaryKey(),email:$w("email").notNull().unique(),createdAt:Ww("created_at").defaultNow()}),CR=TR(PR).pick({email:!0}).extend({email:Ge.string().email("Please enter a valid email address")}),_R=Ge.object({name:Ge.string().min(1,"Please enter your name").max(100,"Name is too long").refine(t=>!/[\r\n]/.test(t),"Name contains invalid characters"),email:Ge.string().email("Please enter a valid email address"),message:Ge.string().min(1,"Please enter a message").max(5e3,"Message is too long")});Ge.object({message:Ge.string(),field:Ge.string().optional()}),Ge.object({message:Ge.string()});const Rf={subscribers:{create:{method:"POST",path:"/api/subscribers",responses:{201:Ge.custom()}}},contact:{create:{path:"/api/contact",responses:{201:Ge.object({success:Ge.boolean()})}}}};function ER(){return y0({mutationFn:async t=>{const e=await fetch(Rf.subscribers.create.path,{method:Rf.subscribers.create.method,headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)});if(!e.ok){const n=await e.json().catch(()=>null);throw new Error(n?.message||"Failed to subscribe. Please try again.")}return e.json()}})}function kR(){const{toast:t}=Vf(),[e,n]=P.useState(!1),i=ER(),{register:o,handleSubmit:l,reset:u,formState:{errors:d}}=Aw({resolver:Rw(CR),defaultValues:{email:""}}),h=p=>{i.mutate(p,{onSuccess:()=>{n(!0),u(),t({title:"Subscribed Successfully",description:"You've been added to the mailing list."}),setTimeout(()=>n(!1),5e3)},onError:g=>{t({variant:"destructive",title:"Subscription Failed",description:g.message})}})};return b.jsxs("section",{className:"py-32 px-4 relative overflow-hidden bg-zinc-950 border-t border-white/5",children:[b.jsx("div",{className:"max-w-2xl mx-auto relative z-10 text-center glass-panel p-8 md:p-16 rounded-xl",children:b.jsxs(Qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[b.jsx("h2",{className:"text-3xl md:text-4xl font-bold tracking-widest text-white mb-4",children:"JOIN THE MAILING LIST"}),b.jsx("p",{className:"text-zinc-400 mb-10 font-light",children:"Stay updated with the latest releases, tour dates, and exclusive content from Shawn Hook."}),b.jsxs("form",{onSubmit:l(h),className:"space-y-4 text-left max-w-md mx-auto",children:[b.jsxs("div",{className:"relative",children:[b.jsx("input",{type:"email",placeholder:"Enter your email address",disabled:i.isPending||e,...o("email"),className:`w-full bg-black/50 border ${d.email?"border-red-500 focus:border-red-500/80":"border-white/20 focu
13s:border-white"} text-white px-6 py-4 outline-none transition-all duration-300 placeholder:text-zinc-600 rounded-sm`}),d.email&&b.jsx("p",{className:"text-red-400 text-xs mt-2 absolute -bottom-6 left-0",children:d.email.message})]}),b.jsx("button",{type:"submit",disabled:i.isPending||e,className:"w-full bg-white text-black font-bold uppercase tracking-[0.2em] py-4 px-6 mt-4 hover:bg-zinc-200 transition-colors disabled:opacity-70 disabled:cursor-not-allowed flex justify-center items-center gap-2 rounded-sm",children:i.isPending?b.jsx(Q0,{className:"w-5 h-5 animate-spin"}):e?b.jsxs(b.Fragment,{children:[b.jsx(q0,{className:"w-5 h-5"}),"SUBSCRIBED"]}):"SUBSCRIBE"})]})]})}),b.jsx("div",{className:"absolute -top-[20%] -right-[10%] w-[50%] h-[50%] bg-white/5 blur-[120px] rounded-full pointer-events-none"}),b.jsx("div",{className:"absolute -bottom-[20%] -left-[10%] w-[50%] h-[50%] bg-white/5 blur-[120px] rounded-full pointer-events-none"})]})}function AR(){const{toast:t}=Vf(),[e,n]=P.useState(!1),{register:i,handleSubmit:o,reset:l,formState:{errors:u}}=Aw({resolver:Rw(_R),defaultValues:{name:"",email:"",message:""}}),d=y0({mutationFn:async p=>{const g=await fetch(Rf.contact.create.path,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)});if(!g.ok){const y=await g.json().catch(()=>({message:"Something went wrong"}));throw new Error(y.message||"Something went wrong")}return g.json()},onSuccess:()=>{n(!0),l(),t({title:"Message Sent",description:"Thanks for reaching out — we'll get back to you soon."}),setTimeout(()=>n(!1),5e3)},onError:p=>{t({variant:"destructive",title:"Message Failed",description:p.message})}}),h=p=>`w-full bg-black/50 border ${p?"border-red-500 focus:border-red-500/80":"border-white/20 focus:border-white"} text-white px-6 py-4 outline-none transition-all duration-300 placeholder:text-zinc-600 rounded-sm`;return b.jsxs("section",{id:"contact",className:"py-32 px-4 relative overflow-hidden bg-black border-t border-white/5",children:[b.jsx("div",{className:"max-w-2xl mx-auto relative z-10",children:b.jsxs(Qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[b.jsx("h2",{className:"text-3xl md:text-4xl font-bold tracking-widest text-white mb-4 text-center",children:"GET IN TOUCH"}),b.jsx("p",{className:"text-zinc-400 mb-10 font-light text-center",children:"Booking inquiries, press, or just want to say hi — drop a message below."}),b.jsxs("form",{onSubmit:o(p=>d.mutate(p)),className:"space-y-6 text-left",children:[b.jsxs("div",{children:[b.jsx("input",{type:"text",placeholder:"Your name",disabled:d.isPending||e,...i("name"),className:h(!!u.name)}),u.name&&b.jsx("p",{className:"text-red-400 text-xs mt-2",children:u.name.message})]}),b.jsxs("div",{children:[b.jsx("input",{type:"email",placeholder:"Your email address",disabled:d.isPending||e,...i("email"),className:h(!!u.email)}),u.email&&b.jsx("p",{className:"text-red-400 text-xs mt-2",children:u.email.message})]}),b.jsxs("div",{children:[b.jsx("textarea",{placeholder:"Your message",rows:6,disabled:d.isPending||e,...i("message"),className:`${h(!!u.message)} resize-none`}),u.message&&b.jsx("p",{className:"text-red-400 text-xs mt-2",children:u.message.message})]}),b.jsx("button",{type:"submit",disabled:d.isPending||e,className:"w-full bg-white text-black font-bold uppercase tracking-[0.2em] py-4 px-6 hover:bg-zinc-200 transition-colors disabled:opacity-70 disabled:cursor-not-allowed flex justify-center items-center gap-2 rounded-sm",children:d.isPending?b.jsx(Q0,{className:"w-5 h-5 animate-spin"}):e?b.jsxs(b.Fragment,{children:[b.jsx(q0,{className:"w-5 h-5"}),"MESSAGE SENT"]}):"SEND MESSAGE"})]})]})}),b.jsx("div",{className:"absolute -top-[20%] -left-[10%] w-[50%] h-[50%] bg-white/5 blur-[120px] rounded-full pointer-events-none"})]})}const NR=[{icon:xw,label:"Spotify",href:"https://open.spotify.com/album/1DBxyvECXznm55HE4voJJT?si=qRN424xPRpGWikCySwVkrw",testId:"link-spotify-footer"},{icon:yw,label:"Apple Music",href:"https://music.apple.com/us/album/rebuild-ep/1843406293",testId:"link-apple-footer"},{icon:gw,label:"Amazon Music",href:"https://music.amazon.com/search/shawn+hook",testId:"link-amazon-footer"},{icon:ww,label:"YouTube",href:"https://www.youtube.com/channel/UCrcoOWpcwTuZEqS-ldhO93A",testId:"link-youtube-footer"},{icon:vw,label:"Instagram",href:"https://www.instagram.com/shawnhook/",testId:"link-instagram-footer"}];function RR(){const t=new Date().getFullYear();return b.jsx("footer",{className:"bg-black py-12 px-4 border-t border-white/10 text-center",children:b.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col items-center justify-center space-y-8",children:[b.jsx("h3",{className:"text-2xl font-bold tracking-[0.3em] text-white/80",children:"SHAWN HOOK"}),b.jsx("div",{className:"flex items-center gap-8",children:NR.map(({icon:e,label:n,href:i,testId:o})=>b.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer","aria-label":n,"data-testid":o,className:"text-white/35 hover:text-white transition-colors duration-300",children:b.jsx(e,{size:22})},n))}),b.jsxs("p",{className:"text-zinc-600 text-xs tracking-wider",children:["© ",t," Shawn Hook. All Rights Reserved."]})]})})}function DR(){return b.jsxs("main",{className:"min-h-screen bg-black text-foreground w-full overflow-x-hidden",children:[b.jsx(r5,{}),b.jsx(o5,{}),b.jsx(c5,{}),b.jsx(h5,{}),b.jsx(m5,{}),b.jsx(kR,{}),b.jsx(AR,{}),b.jsx(RR,{})]})}function OR(){return b.jsxs(Nb,{children:[b.jsx(Lg,{path:"/",component:DR}),b.jsx(Lg,{component:b_})]})}function MR(){return b.jsx(tT,{client:oT,children:b.jsxs(g_,{children:[b.jsx(OR,{}),b.jsx(WP,{})]})})}ob.createRoot(document.getElementById("root")).render(b.jsx(MR,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.