@sgrsoft/vpe-react-sdk 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- (function(xn,Hi){typeof exports=="object"&&typeof module<"u"?Hi(exports):typeof define=="function"&&define.amd?define(["exports"],Hi):(xn=typeof globalThis<"u"?globalThis:xn||self,Hi(xn.VpeReactSdk={}))})(this,(function(xn){"use strict";function Hi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ru={exports:{}},ji={};var M0;function I8(){if(M0)return ji;M0=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,c,h){var d=null;if(h!==void 0&&(d=""+h),c.key!==void 0&&(d=""+c.key),"key"in c){h={};for(var g in c)g!=="key"&&(h[g]=c[g])}else h=c;return c=h.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:h}}return ji.Fragment=i,ji.jsx=u,ji.jsxs=u,ji}var x0;function tp(){return x0||(x0=1,Ru.exports=I8()),Ru.exports}var A=tp(),Hu={exports:{}},Oi={},ju={exports:{}},Ou={};var V0;function ep(){return V0||(V0=1,(function(a){function i(F,N){var X=F.length;F.push(N);t:for(;0<X;){var ot=X-1>>>1,bt=F[ot];if(0<c(bt,N))F[ot]=N,F[X]=bt,X=ot;else break t}}function u(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var N=F[0],X=F.pop();if(X!==N){F[0]=X;t:for(var ot=0,bt=F.length,Wt=bt>>>1;ot<Wt;){var x=2*(ot+1)-1,G=F[x],P=x+1,tt=F[P];if(0>c(G,X))P<bt&&0>c(tt,G)?(F[ot]=tt,F[P]=X,ot=P):(F[ot]=G,F[x]=X,ot=x);else if(P<bt&&0>c(tt,X))F[ot]=tt,F[P]=X,ot=P;else break t}}return N}function c(F,N){var X=F.sortIndex-N.sortIndex;return X!==0?X:F.id-N.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var d=Date,g=d.now();a.unstable_now=function(){return d.now()-g}}var p=[],y=[],v=1,b=null,E=3,L=!1,O=!1,B=!1,U=!1,H=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function q(F){for(var N=u(y);N!==null;){if(N.callback===null)r(y);else if(N.startTime<=F)r(y),N.sortIndex=N.expirationTime,i(p,N);else break;N=u(y)}}function z(F){if(B=!1,q(F),!O)if(u(p)!==null)O=!0,k||(k=!0,$());else{var N=u(y);N!==null&&mt(z,N.startTime-F)}}var k=!1,J=-1,K=5,I=-1;function at(){return U?!0:!(a.unstable_now()-I<K)}function Rt(){if(U=!1,k){var F=a.unstable_now();I=F;var N=!0;try{t:{O=!1,B&&(B=!1,Y(J),J=-1),L=!0;var X=E;try{e:{for(q(F),b=u(p);b!==null&&!(b.expirationTime>F&&at());){var ot=b.callback;if(typeof ot=="function"){b.callback=null,E=b.priorityLevel;var bt=ot(b.expirationTime<=F);if(F=a.unstable_now(),typeof bt=="function"){b.callback=bt,q(F),N=!0;break e}b===u(p)&&r(p),q(F)}else r(p);b=u(p)}if(b!==null)N=!0;else{var Wt=u(y);Wt!==null&&mt(z,Wt.startTime-F),N=!1}}break t}finally{b=null,E=X,L=!1}N=void 0}}finally{N?$():k=!1}}}var $;if(typeof Q=="function")$=function(){Q(Rt)};else if(typeof MessageChannel<"u"){var ct=new MessageChannel,Mt=ct.port2;ct.port1.onmessage=Rt,$=function(){Mt.postMessage(null)}}else $=function(){H(Rt,0)};function mt(F,N){J=H(function(){F(a.unstable_now())},N)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(F){F.callback=null},a.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<F?Math.floor(1e3/F):5},a.unstable_getCurrentPriorityLevel=function(){return E},a.unstable_next=function(F){switch(E){case 1:case 2:case 3:var N=3;break;default:N=E}var X=E;E=N;try{return F()}finally{E=X}},a.unstable_requestPaint=function(){U=!0},a.unstable_runWithPriority=function(F,N){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var X=E;E=F;try{return N()}finally{E=X}},a.unstable_scheduleCallback=function(F,N,X){var ot=a.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ot+X:ot):X=ot,F){case 1:var bt=-1;break;case 2:bt=250;break;case 5:bt=1073741823;break;case 4:bt=1e4;break;default:bt=5e3}return bt=X+bt,F={id:v++,callback:N,priorityLevel:F,startTime:X,expirationTime:bt,sortIndex:-1},X>ot?(F.sortIndex=X,i(y,F),u(p)===null&&F===u(y)&&(B?(Y(J),J=-1):B=!0,mt(z,X-ot))):(F.sortIndex=bt,i(p,F),O||L||(O=!0,k||(k=!0,$()))),F},a.unstable_shouldYield=at,a.unstable_wrapCallback=function(F){var N=E;return function(){var X=E;E=N;try{return F.apply(this,arguments)}finally{E=X}}}})(Ou)),Ou}var L0;function np(){return L0||(L0=1,ju.exports=ep()),ju.exports}var zu={exports:{}},rt={},C0;function ap(){if(C0)return rt;C0=1;var a={};var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),L=Symbol.iterator;function O(x){return x===null||typeof x!="object"?null:(x=L&&x[L]||x["@@iterator"],typeof x=="function"?x:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,H={};function Y(x,G,P){this.props=x,this.context=G,this.refs=H,this.updater=P||B}Y.prototype.isReactComponent={},Y.prototype.setState=function(x,G){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,G,"setState")},Y.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Q(){}Q.prototype=Y.prototype;function q(x,G,P){this.props=x,this.context=G,this.refs=H,this.updater=P||B}var z=q.prototype=new Q;z.constructor=q,U(z,Y.prototype),z.isPureReactComponent=!0;var k=Array.isArray;function J(){}var K={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function at(x,G,P){var tt=P.ref;return{$$typeof:i,type:x,key:G,ref:tt!==void 0?tt:null,props:P}}function Rt(x,G){return at(x.type,G,x.props)}function $(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function ct(x){var G={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(P){return G[P]})}var Mt=/\/+/g;function mt(x,G){return typeof x=="object"&&x!==null&&x.key!=null?ct(""+x.key):G.toString(36)}function F(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(J,J):(x.status="pending",x.then(function(G){x.status==="pending"&&(x.status="fulfilled",x.value=G)},function(G){x.status==="pending"&&(x.status="rejected",x.reason=G)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function N(x,G,P,tt,ut){var lt=typeof x;(lt==="undefined"||lt==="boolean")&&(x=null);var ht=!1;if(x===null)ht=!0;else switch(lt){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(x.$$typeof){case i:case u:ht=!0;break;case b:return ht=x._init,N(ht(x._payload),G,P,tt,ut)}}if(ht)return ut=ut(x),ht=tt===""?"."+mt(x,0):tt,k(ut)?(P="",ht!=null&&(P=ht.replace(Mt,"$&/")+"/"),N(ut,G,P,"",function(jn){return jn})):ut!=null&&($(ut)&&(ut=Rt(ut,P+(ut.key==null||x&&x.key===ut.key?"":(""+ut.key).replace(Mt,"$&/")+"/")+ht)),G.push(ut)),1;ht=0;var Jt=tt===""?".":tt+":";if(k(x))for(var Bt=0;Bt<x.length;Bt++)tt=x[Bt],lt=Jt+mt(tt,Bt),ht+=N(tt,G,P,lt,ut);else if(Bt=O(x),typeof Bt=="function")for(x=Bt.call(x),Bt=0;!(tt=x.next()).done;)tt=tt.value,lt=Jt+mt(tt,Bt++),ht+=N(tt,G,P,lt,ut);else if(lt==="object"){if(typeof x.then=="function")return N(F(x),G,P,tt,ut);throw G=String(x),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ht}function X(x,G,P){if(x==null)return x;var tt=[],ut=0;return N(x,tt,"","",function(lt){return G.call(P,lt,ut++)}),tt}function ot(x){if(x._status===-1){var G=x._result;G=G(),G.then(function(P){(x._status===0||x._status===-1)&&(x._status=1,x._result=P)},function(P){(x._status===0||x._status===-1)&&(x._status=2,x._result=P)}),x._status===-1&&(x._status=0,x._result=G)}if(x._status===1)return x._result.default;throw x._result}var bt=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(G))return}else if(typeof a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",x);return}console.error(x)},Wt={map:X,forEach:function(x,G,P){X(x,function(){G.apply(this,arguments)},P)},count:function(x){var G=0;return X(x,function(){G++}),G},toArray:function(x){return X(x,function(G){return G})||[]},only:function(x){if(!$(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return rt.Activity=E,rt.Children=Wt,rt.Component=Y,rt.Fragment=r,rt.Profiler=h,rt.PureComponent=q,rt.StrictMode=c,rt.Suspense=y,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,rt.__COMPILER_RUNTIME={__proto__:null,c:function(x){return K.H.useMemoCache(x)}},rt.cache=function(x){return function(){return x.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(x,G,P){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var tt=U({},x.props),ut=x.key;if(G!=null)for(lt in G.key!==void 0&&(ut=""+G.key),G)!I.call(G,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&G.ref===void 0||(tt[lt]=G[lt]);var lt=arguments.length-2;if(lt===1)tt.children=P;else if(1<lt){for(var ht=Array(lt),Jt=0;Jt<lt;Jt++)ht[Jt]=arguments[Jt+2];tt.children=ht}return at(x.type,ut,tt)},rt.createContext=function(x){return x={$$typeof:g,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},rt.createElement=function(x,G,P){var tt,ut={},lt=null;if(G!=null)for(tt in G.key!==void 0&&(lt=""+G.key),G)I.call(G,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ut[tt]=G[tt]);var ht=arguments.length-2;if(ht===1)ut.children=P;else if(1<ht){for(var Jt=Array(ht),Bt=0;Bt<ht;Bt++)Jt[Bt]=arguments[Bt+2];ut.children=Jt}if(x&&x.defaultProps)for(tt in ht=x.defaultProps,ht)ut[tt]===void 0&&(ut[tt]=ht[tt]);return at(x,lt,ut)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(x){return{$$typeof:p,render:x}},rt.isValidElement=$,rt.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:ot}},rt.memo=function(x,G){return{$$typeof:v,type:x,compare:G===void 0?null:G}},rt.startTransition=function(x){var G=K.T,P={};K.T=P;try{var tt=x(),ut=K.S;ut!==null&&ut(P,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(J,bt)}catch(lt){bt(lt)}finally{G!==null&&P.types!==null&&(G.types=P.types),K.T=G}},rt.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},rt.use=function(x){return K.H.use(x)},rt.useActionState=function(x,G,P){return K.H.useActionState(x,G,P)},rt.useCallback=function(x,G){return K.H.useCallback(x,G)},rt.useContext=function(x){return K.H.useContext(x)},rt.useDebugValue=function(){},rt.useDeferredValue=function(x,G){return K.H.useDeferredValue(x,G)},rt.useEffect=function(x,G){return K.H.useEffect(x,G)},rt.useEffectEvent=function(x){return K.H.useEffectEvent(x)},rt.useId=function(){return K.H.useId()},rt.useImperativeHandle=function(x,G,P){return K.H.useImperativeHandle(x,G,P)},rt.useInsertionEffect=function(x,G){return K.H.useInsertionEffect(x,G)},rt.useLayoutEffect=function(x,G){return K.H.useLayoutEffect(x,G)},rt.useMemo=function(x,G){return K.H.useMemo(x,G)},rt.useOptimistic=function(x,G){return K.H.useOptimistic(x,G)},rt.useReducer=function(x,G,P){return K.H.useReducer(x,G,P)},rt.useRef=function(x){return K.H.useRef(x)},rt.useState=function(x){return K.H.useState(x)},rt.useSyncExternalStore=function(x,G,P){return K.H.useSyncExternalStore(x,G,P)},rt.useTransition=function(){return K.H.useTransition()},rt.version="19.2.1",rt}var D0;function Bu(){return D0||(D0=1,zu.exports=ap()),zu.exports}var wu={exports:{}},ue={};var R0;function ip(){if(R0)return ue;R0=1;var a=Bu();function i(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(p,y,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:p,containerInfo:y,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ue.createPortal=function(p,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return h(p,y,null,v)},ue.flushSync=function(p){var y=d.T,v=r.p;try{if(d.T=null,r.p=2,p)return p()}finally{d.T=y,r.p=v,r.d.f()}},ue.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},ue.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ue.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var v=y.as,b=g(v,y.crossOrigin),E=typeof y.integrity=="string"?y.integrity:void 0,L=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:E,fetchPriority:L}):v==="script"&&r.d.X(p,{crossOrigin:b,integrity:E,fetchPriority:L,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ue.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},ue.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,b=g(v,y.crossOrigin);r.d.L(p,v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ue.preloadModule=function(p,y){if(typeof p=="string")if(y){var v=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},ue.requestFormReset=function(p){r.d.r(p)},ue.unstable_batchedUpdates=function(p,y){return p(y)},ue.useFormState=function(p,y,v){return d.H.useFormState(p,y,v)},ue.useFormStatus=function(){return d.H.useHostTransitionStatus()},ue.version="19.2.1",ue}var H0;function lp(){if(H0)return wu.exports;H0=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),wu.exports=ip(),wu.exports}var j0;function sp(){if(j0)return Oi;j0=1;var a={};var i=np(),u=Bu(),r=lp();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function g(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(c(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return y(s),t;if(o===l)return y(s),e;o=o.sibling}throw Error(c(188))}if(n.return!==l.return)n=s,l=o;else{for(var m=!1,S=s.child;S;){if(S===n){m=!0,n=s,l=o;break}if(S===l){m=!0,l=s,n=o;break}S=S.sibling}if(!m){for(S=o.child;S;){if(S===n){m=!0,n=o,l=s;break}if(S===l){m=!0,l=o,n=s;break}S=S.sibling}if(!m)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var E=Object.assign,L=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),at=Symbol.for("react.activity"),Rt=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function ct(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var Mt=Symbol.for("react.client.reference");function mt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Mt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case Y:return"Profiler";case H:return"StrictMode";case k:return"Suspense";case J:return"SuspenseList";case at:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case B:return"Portal";case q:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case z:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:mt(t.type)||"Memo";case I:e=t._payload,t=t._init;try{return mt(t(e))}catch{}}return null}var F=Array.isArray,N=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot={pending:!1,data:null,method:null,action:null},bt=[],Wt=-1;function x(t){return{current:t}}function G(t){0>Wt||(t.current=bt[Wt],bt[Wt]=null,Wt--)}function P(t,e){Wt++,bt[Wt]=t.current,t.current=e}var tt=x(null),ut=x(null),lt=x(null),ht=x(null);function Jt(t,e){switch(P(lt,e),P(ut,t),P(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?A8(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=A8(e),t=T8(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(tt),P(tt,t)}function Bt(){G(tt),G(ut),G(lt)}function jn(t){t.memoizedState!==null&&P(ht,t);var e=tt.current,n=T8(e,t.type);e!==n&&(P(ut,t),P(tt,n))}function On(t){ut.current===t&&(G(tt),G(ut)),ht.current===t&&(G(ht),Gl._currentValue=ot)}var Ka,$i;function sn(t){if(Ka===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ka=e&&e[1]||"",$i=-1<n.stack.indexOf(`
1
+ (function(on,Oa){typeof exports=="object"&&typeof module<"u"?Oa(exports):typeof define=="function"&&define.amd?define(["exports"],Oa):(on=typeof globalThis<"u"?globalThis:on||self,Oa(on.VpeReactSdk={}))})(this,(function(on){"use strict";function Oa(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var _r={exports:{}},Oi={};var Rf;function r3(){if(Rf)return Oi;Rf=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var g in c)g!=="key"&&(d[g]=c[g])}else d=c;return c=d.ref,{$$typeof:a,type:o,key:f,ref:c!==void 0?c:null,props:d}}return Oi.Fragment=i,Oi.jsx=s,Oi.jsxs=s,Oi}var Lf;function o3(){return Lf||(Lf=1,_r.exports=r3()),_r.exports}var x=o3(),Gr={exports:{}},Ni={},kr={exports:{}},Yr={};var Bf;function u3(){return Bf||(Bf=1,(function(a){function i(Q,U){var K=Q.length;Q.push(U);t:for(;0<K;){var nt=K-1>>>1,gt=Q[nt];if(0<c(gt,U))Q[nt]=U,Q[K]=gt,K=nt;else break t}}function s(Q){return Q.length===0?null:Q[0]}function o(Q){if(Q.length===0)return null;var U=Q[0],K=Q.pop();if(K!==U){Q[0]=K;t:for(var nt=0,gt=Q.length,Bt=gt>>>1;nt<Bt;){var E=2*(nt+1)-1,X=Q[E],J=E+1,W=Q[J];if(0>c(X,K))J<gt&&0>c(W,X)?(Q[nt]=W,Q[J]=K,nt=J):(Q[nt]=X,Q[E]=K,nt=E);else if(J<gt&&0>c(W,K))Q[nt]=W,Q[J]=K,nt=J;else break t}}return U}function c(Q,U){var K=Q.sortIndex-U.sortIndex;return K!==0?K:Q.id-U.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,g=f.now();a.unstable_now=function(){return f.now()-g}}var m=[],p=[],y=1,S=null,v=3,z=!1,j=!1,L=!1,O=!1,A=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function P(Q){for(var U=s(p);U!==null;){if(U.callback===null)o(p);else if(U.startTime<=Q)o(p),U.sortIndex=U.expirationTime,i(m,U);else break;U=s(p)}}function _(Q){if(L=!1,P(Q),!j)if(s(m)!==null)j=!0,F||(F=!0,I());else{var U=s(p);U!==null&&it(_,U.startTime-Q)}}var F=!1,V=-1,N=5,tt=-1;function lt(){return O?!0:!(a.unstable_now()-tt<N)}function ot(){if(O=!1,F){var Q=a.unstable_now();tt=Q;var U=!0;try{t:{j=!1,L&&(L=!1,k(V),V=-1),z=!0;var K=v;try{e:{for(P(Q),S=s(m);S!==null&&!(S.expirationTime>Q&&lt());){var nt=S.callback;if(typeof nt=="function"){S.callback=null,v=S.priorityLevel;var gt=nt(S.expirationTime<=Q);if(Q=a.unstable_now(),typeof gt=="function"){S.callback=gt,P(Q),U=!0;break e}S===s(m)&&o(m),P(Q)}else o(m);S=s(m)}if(S!==null)U=!0;else{var Bt=s(p);Bt!==null&&it(_,Bt.startTime-Q),U=!1}}break t}finally{S=null,v=K,z=!1}U=void 0}}finally{U?I():F=!1}}}var I;if(typeof G=="function")I=function(){G(ot)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,dt=ut.port2;ut.port1.onmessage=ot,I=function(){dt.postMessage(null)}}else I=function(){A(ot,0)};function it(Q,U){V=A(function(){Q(a.unstable_now())},U)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(Q){Q.callback=null},a.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<Q?Math.floor(1e3/Q):5},a.unstable_getCurrentPriorityLevel=function(){return v},a.unstable_next=function(Q){switch(v){case 1:case 2:case 3:var U=3;break;default:U=v}var K=v;v=U;try{return Q()}finally{v=K}},a.unstable_requestPaint=function(){O=!0},a.unstable_runWithPriority=function(Q,U){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var K=v;v=Q;try{return U()}finally{v=K}},a.unstable_scheduleCallback=function(Q,U,K){var nt=a.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?nt+K:nt):K=nt,Q){case 1:var gt=-1;break;case 2:gt=250;break;case 5:gt=1073741823;break;case 4:gt=1e4;break;default:gt=5e3}return gt=K+gt,Q={id:y++,callback:U,priorityLevel:Q,startTime:K,expirationTime:gt,sortIndex:-1},K>nt?(Q.sortIndex=K,i(p,Q),s(m)===null&&Q===s(p)&&(L?(k(V),V=-1):L=!0,it(_,K-nt))):(Q.sortIndex=gt,i(m,Q),j||z||(j=!0,F||(F=!0,I()))),Q},a.unstable_shouldYield=lt,a.unstable_wrapCallback=function(Q){var U=v;return function(){var K=v;v=U;try{return Q.apply(this,arguments)}finally{v=K}}}})(Yr)),Yr}var Vf;function c3(){return Vf||(Vf=1,kr.exports=u3()),kr.exports}var qr={exports:{}},ft={},jf;function f3(){if(jf)return ft;jf=1;var a={};var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),g=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),z=Symbol.iterator;function j(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,A={};function k(E,X,J){this.props=E,this.context=X,this.refs=A,this.updater=J||L}k.prototype.isReactComponent={},k.prototype.setState=function(E,X){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,X,"setState")},k.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=k.prototype;function P(E,X,J){this.props=E,this.context=X,this.refs=A,this.updater=J||L}var _=P.prototype=new G;_.constructor=P,O(_,k.prototype),_.isPureReactComponent=!0;var F=Array.isArray;function V(){}var N={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function lt(E,X,J){var W=J.ref;return{$$typeof:i,type:E,key:X,ref:W!==void 0?W:null,props:J}}function ot(E,X){return lt(E.type,X,E.props)}function I(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function ut(E){var X={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return X[J]})}var dt=/\/+/g;function it(E,X){return typeof E=="object"&&E!==null&&E.key!=null?ut(""+E.key):X.toString(36)}function Q(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(X){E.status==="pending"&&(E.status="fulfilled",E.value=X)},function(X){E.status==="pending"&&(E.status="rejected",E.reason=X)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,X,J,W,ct){var mt=typeof E;(mt==="undefined"||mt==="boolean")&&(E=null);var Tt=!1;if(E===null)Tt=!0;else switch(mt){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(E.$$typeof){case i:case s:Tt=!0;break;case S:return Tt=E._init,U(Tt(E._payload),X,J,W,ct)}}if(Tt)return ct=ct(E),Tt=W===""?"."+it(E,0):W,F(ct)?(J="",Tt!=null&&(J=Tt.replace(dt,"$&/")+"/"),U(ct,X,J,"",function(pa){return pa})):ct!=null&&(I(ct)&&(ct=ot(ct,J+(ct.key==null||E&&E.key===ct.key?"":(""+ct.key).replace(dt,"$&/")+"/")+Tt)),X.push(ct)),1;Tt=0;var te=W===""?".":W+":";if(F(E))for(var _t=0;_t<E.length;_t++)W=E[_t],mt=te+it(W,_t),Tt+=U(W,X,J,mt,ct);else if(_t=j(E),typeof _t=="function")for(E=_t.call(E),_t=0;!(W=E.next()).done;)W=W.value,mt=te+it(W,_t++),Tt+=U(W,X,J,mt,ct);else if(mt==="object"){if(typeof E.then=="function")return U(Q(E),X,J,W,ct);throw X=String(E),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function K(E,X,J){if(E==null)return E;var W=[],ct=0;return U(E,W,"","",function(mt){return X.call(J,mt,ct++)}),W}function nt(E){if(E._status===-1){var X=E._result;X=X(),X.then(function(J){(E._status===0||E._status===-1)&&(E._status=1,E._result=J)},function(J){(E._status===0||E._status===-1)&&(E._status=2,E._result=J)}),E._status===-1&&(E._status=0,E._result=X)}if(E._status===1)return E._result.default;throw E._result}var gt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(X))return}else if(typeof a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",E);return}console.error(E)},Bt={map:K,forEach:function(E,X,J){K(E,function(){X.apply(this,arguments)},J)},count:function(E){var X=0;return K(E,function(){X++}),X},toArray:function(E){return K(E,function(X){return X})||[]},only:function(E){if(!I(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ft.Activity=v,ft.Children=Bt,ft.Component=k,ft.Fragment=o,ft.Profiler=d,ft.PureComponent=P,ft.StrictMode=c,ft.Suspense=p,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,ft.__COMPILER_RUNTIME={__proto__:null,c:function(E){return N.H.useMemoCache(E)}},ft.cache=function(E){return function(){return E.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(E,X,J){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=O({},E.props),ct=E.key;if(X!=null)for(mt in X.key!==void 0&&(ct=""+X.key),X)!tt.call(X,mt)||mt==="key"||mt==="__self"||mt==="__source"||mt==="ref"&&X.ref===void 0||(W[mt]=X[mt]);var mt=arguments.length-2;if(mt===1)W.children=J;else if(1<mt){for(var Tt=Array(mt),te=0;te<mt;te++)Tt[te]=arguments[te+2];W.children=Tt}return lt(E.type,ct,W)},ft.createContext=function(E){return E={$$typeof:g,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},ft.createElement=function(E,X,J){var W,ct={},mt=null;if(X!=null)for(W in X.key!==void 0&&(mt=""+X.key),X)tt.call(X,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ct[W]=X[W]);var Tt=arguments.length-2;if(Tt===1)ct.children=J;else if(1<Tt){for(var te=Array(Tt),_t=0;_t<Tt;_t++)te[_t]=arguments[_t+2];ct.children=te}if(E&&E.defaultProps)for(W in Tt=E.defaultProps,Tt)ct[W]===void 0&&(ct[W]=Tt[W]);return lt(E,mt,ct)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(E){return{$$typeof:m,render:E}},ft.isValidElement=I,ft.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:nt}},ft.memo=function(E,X){return{$$typeof:y,type:E,compare:X===void 0?null:X}},ft.startTransition=function(E){var X=N.T,J={};N.T=J;try{var W=E(),ct=N.S;ct!==null&&ct(J,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(V,gt)}catch(mt){gt(mt)}finally{X!==null&&J.types!==null&&(X.types=J.types),N.T=X}},ft.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},ft.use=function(E){return N.H.use(E)},ft.useActionState=function(E,X,J){return N.H.useActionState(E,X,J)},ft.useCallback=function(E,X){return N.H.useCallback(E,X)},ft.useContext=function(E){return N.H.useContext(E)},ft.useDebugValue=function(){},ft.useDeferredValue=function(E,X){return N.H.useDeferredValue(E,X)},ft.useEffect=function(E,X){return N.H.useEffect(E,X)},ft.useEffectEvent=function(E){return N.H.useEffectEvent(E)},ft.useId=function(){return N.H.useId()},ft.useImperativeHandle=function(E,X,J){return N.H.useImperativeHandle(E,X,J)},ft.useInsertionEffect=function(E,X){return N.H.useInsertionEffect(E,X)},ft.useLayoutEffect=function(E,X){return N.H.useLayoutEffect(E,X)},ft.useMemo=function(E,X){return N.H.useMemo(E,X)},ft.useOptimistic=function(E,X){return N.H.useOptimistic(E,X)},ft.useReducer=function(E,X,J){return N.H.useReducer(E,X,J)},ft.useRef=function(E){return N.H.useRef(E)},ft.useState=function(E){return N.H.useState(E)},ft.useSyncExternalStore=function(E,X,J){return N.H.useSyncExternalStore(E,X,J)},ft.useTransition=function(){return N.H.useTransition()},ft.version="19.2.1",ft}var Of;function Xr(){return Of||(Of=1,qr.exports=f3()),qr.exports}var Zr={exports:{}},fe={};var Nf;function d3(){if(Nf)return fe;Nf=1;var a=Xr();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(m,p,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:m,containerInfo:p,implementation:y}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,fe.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(m,p,null,y)},fe.flushSync=function(m){var p=f.T,y=o.p;try{if(f.T=null,o.p=2,m)return m()}finally{f.T=p,o.p=y,o.d.f()}},fe.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},fe.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},fe.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,S=g(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:v,fetchPriority:z}):y==="script"&&o.d.X(m,{crossOrigin:S,integrity:v,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},fe.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=g(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},fe.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,S=g(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},fe.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=g(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},fe.requestFormReset=function(m){o.d.r(m)},fe.unstable_batchedUpdates=function(m,p){return m(p)},fe.useFormState=function(m,p,y){return f.H.useFormState(m,p,y)},fe.useFormStatus=function(){return f.H.useHostTransitionStatus()},fe.version="19.2.1",fe}var Hf;function h3(){if(Hf)return Zr.exports;Hf=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Zr.exports=d3(),Zr.exports}var Uf;function m3(){if(Uf)return Ni;Uf=1;var a={};var i=c3(),s=Xr(),o=h3();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function g(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(c(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return p(r),t;if(u===l)return p(r),e;u=u.sibling}throw Error(c(188))}if(n.return!==l.return)n=r,l=u;else{for(var h=!1,b=r.child;b;){if(b===n){h=!0,n=r,l=u;break}if(b===l){h=!0,l=r,n=u;break}b=b.sibling}if(!h){for(b=u.child;b;){if(b===n){h=!0,n=u,l=r;break}if(b===l){h=!0,l=u,n=r;break}b=b.sibling}if(!h)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,z=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),P=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function ut(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var dt=Symbol.for("react.client.reference");function it(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===dt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case F:return"Suspense";case V:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case L:return"Portal";case P:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case _:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case N:return e=t.displayName||null,e!==null?e:it(t.type)||"Memo";case tt:e=t._payload,t=t._init;try{return it(t(e))}catch{}}return null}var Q=Array.isArray,U=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},gt=[],Bt=-1;function E(t){return{current:t}}function X(t){0>Bt||(t.current=gt[Bt],gt[Bt]=null,Bt--)}function J(t,e){Bt++,gt[Bt]=t.current,t.current=e}var W=E(null),ct=E(null),mt=E(null),Tt=E(null);function te(t,e){switch(J(mt,e),J(ct,t),J(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?R2(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=R2(e),t=L2(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(W),J(W,t)}function _t(){X(W),X(ct),X(mt)}function pa(t){t.memoizedState!==null&&J(Tt,t);var e=W.current,n=L2(e,t.type);e!==n&&(J(ct,t),J(W,n))}function Nn(t){ct.current===t&&(X(W),X(ct)),Tt.current===t&&(X(Tt),Fl._currentValue=nt)}var el,Ss;function ee(t){if(el===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);el=e&&e[1]||"",Ss=-1<n.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Ka+t+$i}var da=!1;function Wi(t,e){if(!t||da)return"";da=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(j){var R=j}Reflect.construct(t,[],_)}else{try{_.call()}catch(j){R=j}t.call(_.prototype)}}else{try{throw Error()}catch(j){R=j}(_=t())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(j){if(j&&R&&typeof j.stack=="string")return[j.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),m=o[0],S=o[1];if(m&&S){var T=m.split(`
4
- `),D=S.split(`
5
- `);for(s=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;s<D.length&&!D[s].includes("DetermineComponentFrameRoot");)s++;if(l===T.length||s===D.length)for(l=T.length-1,s=D.length-1;1<=l&&0<=s&&T[l]!==D[s];)s--;for(;1<=l&&0<=s;l--,s--)if(T[l]!==D[s]){if(l!==1||s!==1)do if(l--,s--,0>s||T[l]!==D[s]){var w=`
6
- `+T[l].replace(" at new "," at ");return t.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",t.displayName)),w}while(1<=l&&0<=s);break}}}finally{da=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?sn(n):""}function p3(t,e){switch(t.tag){case 26:case 27:case 5:return sn(t.type);case 16:return sn("Lazy");case 13:return t.child!==e&&e!==null?sn("Suspense Fallback"):sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return Wi(t.type,!1);case 11:return Wi(t.type.render,!1);case 1:return Wi(t.type,!0);case 31:return sn("Activity");default:return""}}function Id(t){try{var e="",n=null;do e+=p3(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
3
+ `+el+t+Ss}var me=!1;function Ae(t,e){if(!t||me)return"";me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(H){var B=H}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(H){B=H}t.call(Z.prototype)}}else{try{throw Error()}catch(H){B=H}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var T=h.split(`
4
+ `),R=b.split(`
5
+ `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===R.length)for(l=T.length-1,r=R.length-1;1<=l&&0<=r&&T[l]!==R[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==R[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==R[r]){var Y=`
6
+ `+T[l].replace(" at new "," at ");return t.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",t.displayName)),Y}while(1<=l&&0<=r);break}}}finally{me=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ee(n):""}function nl(t,e){switch(t.tag){case 26:case 27:case 5:return ee(t.type);case 16:return ee("Lazy");case 13:return t.child!==e&&e!==null?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return Ae(t.type,!1);case 11:return Ae(t.type.render,!1);case 1:return Ae(t.type,!0);case 31:return ee("Activity");default:return""}}function al(t){try{var e="",n=null;do e+=nl(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var ro=Object.prototype.hasOwnProperty,oo=i.unstable_scheduleCallback,co=i.unstable_cancelCallback,y3=i.unstable_shouldYield,g3=i.unstable_requestPaint,Ae=i.unstable_now,v3=i.unstable_getCurrentPriorityLevel,th=i.unstable_ImmediatePriority,eh=i.unstable_UserBlockingPriority,hs=i.unstable_NormalPriority,S3=i.unstable_LowPriority,nh=i.unstable_IdlePriority,b3=i.log,E3=i.unstable_setDisableYieldValue,Ii=null,Te=null;function zn(t){if(typeof b3=="function"&&E3(t),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(Ii,t)}catch{}}var Me=Math.clz32?Math.clz32:M3,A3=Math.log,T3=Math.LN2;function M3(t){return t>>>=0,t===0?32:31-(A3(t)/T3|0)|0}var ms=256,ps=262144,ys=4194304;function ha(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function gs(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var s=0,o=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var S=l&134217727;return S!==0?(l=S&~o,l!==0?s=ha(l):(m&=S,m!==0?s=ha(m):n||(n=S&~t,n!==0&&(s=ha(n))))):(S=l&~o,S!==0?s=ha(S):m!==0?s=ha(m):n||(n=l&~t,n!==0&&(s=ha(n)))),s===0?0:e!==0&&e!==s&&(e&o)===0&&(o=s&-s,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:s}function tl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function x3(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ah(){var t=ys;return ys<<=1,(ys&62914560)===0&&(ys=4194304),t}function fo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function el(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function V3(t,e,n,l,s,o){var m=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var S=t.entanglements,T=t.expirationTimes,D=t.hiddenUpdates;for(n=m&~n;0<n;){var w=31-Me(n),_=1<<w;S[w]=0,T[w]=-1;var R=D[w];if(R!==null)for(D[w]=null,w=0;w<R.length;w++){var j=R[w];j!==null&&(j.lane&=-536870913)}n&=~_}l!==0&&ih(t,l,0),o!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=o&~(m&~e))}function ih(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Me(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function lh(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Me(n),s=1<<l;s&e|t[l]&e&&(t[l]|=e),n&=~s}}function sh(t,e){var n=e&-e;return n=(n&42)!==0?1:ho(n),(n&(t.suspendedLanes|e))!==0?0:n}function ho(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function mo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function uh(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:K8(t.type))}function rh(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var Bn=Math.random().toString(36).slice(2),ne="__reactFiber$"+Bn,he="__reactProps$"+Bn,Fa="__reactContainer$"+Bn,po="__reactEvents$"+Bn,L3="__reactListeners$"+Bn,C3="__reactHandles$"+Bn,oh="__reactResources$"+Bn,nl="__reactMarker$"+Bn;function yo(t){delete t[ne],delete t[he],delete t[po],delete t[L3],delete t[C3]}function Qa(t){var e=t[ne];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Fa]||n[ne]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=R8(t);t!==null;){if(n=t[ne])return n;t=R8(t)}return e}t=n,n=t.parentNode}return null}function Pa(t){if(t=t[ne]||t[Fa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function al(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Ja(t){var e=t[oh];return e||(e=t[oh]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[nl]=!0}var ch=new Set,fh={};function ma(t,e){$a(t,e),$a(t+"Capture",e)}function $a(t,e){for(fh[t]=e,t=0;t<e.length;t++)ch.add(e[t])}var D3=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dh={},hh={};function R3(t){return ro.call(hh,t)?!0:ro.call(dh,t)?!1:D3.test(t)?hh[t]=!0:(dh[t]=!0,!1)}function vs(t,e,n){if(R3(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ss(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function un(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function H3(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,o=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function go(t){if(!t._valueTracker){var e=mh(t)?"checked":"value";t._valueTracker=H3(t,e,""+t[e])}}function ph(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=mh(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function bs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var j3=/[\n"\\]/g;function we(t){return t.replace(j3,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vo(t,e,n,l,s,o,m,S){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Be(e)):t.value!==""+Be(e)&&(t.value=""+Be(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?So(t,m,Be(e)):n!=null?So(t,m,Be(n)):l!=null&&t.removeAttribute("value"),s==null&&o!=null&&(t.defaultChecked=!!o),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+Be(S):t.removeAttribute("name")}function yh(t,e,n,l,s,o,m,S){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){go(t);return}n=n!=null?""+Be(n):"",e=e!=null?""+Be(e):n,S||e===t.value||(t.value=e),t.defaultValue=e}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=S?t.checked:!!l,t.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),go(t)}function So(t,e,n){e==="number"&&bs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Wa(t,e,n,l){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Be(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,l&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function gh(t,e,n){if(e!=null&&(e=""+Be(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Be(n):""}function vh(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(F(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Be(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),go(t)}function Ia(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var O3=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Sh(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||O3.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function bh(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var s in e)l=e[s],e.hasOwnProperty(s)&&n[s]!==l&&Sh(t,s,l)}else for(var o in e)e.hasOwnProperty(o)&&Sh(t,o,e[o])}function bo(t){if(t.indexOf("-")===-1)return!1;switch(t){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 z3=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),B3=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Es(t){return B3.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function rn(){}var Eo=null;function Ao(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ti=null,ei=null;function Eh(t){var e=Pa(t);if(e&&(t=e.stateNode)){var n=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(vo(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+we(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var s=l[he]||null;if(!s)throw Error(c(90));vo(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&ph(l)}break t;case"textarea":gh(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Wa(t,!!n.multiple,e,!1)}}}var To=!1;function Ah(t,e,n){if(To)return t(e,n);To=!0;try{var l=t(e);return l}finally{if(To=!1,(ti!==null||ei!==null)&&(ru(),ti&&(e=ti,t=ei,ei=ti=null,Eh(e),t)))for(e=0;e<t.length;e++)Eh(t[e])}}function il(t,e){var n=t.stateNode;if(n===null)return null;var l=n[he]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mo=!1;if(on)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){Mo=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{Mo=!1}var wn=null,xo=null,As=null;function Th(){if(As)return As;var t,e=xo,n=e.length,l,s="value"in wn?wn.value:wn.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var m=n-t;for(l=1;l<=m&&e[n-l]===s[o-l];l++);return As=s.slice(t,1<l?1-l:void 0)}function Ts(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ms(){return!0}function Mh(){return!1}function me(t){function e(n,l,s,o,m){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(n=t[S],this[S]=n?n(o):o[S]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ms:Mh,this.isPropagationStopped=Mh,this}return E(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ms)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ms)},persist:function(){},isPersistent:Ms}),e}var pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=me(pa),sl=E({},pa,{view:0,detail:0}),w3=me(sl),Vo,Lo,ul,Vs=E({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ul&&(ul&&t.type==="mousemove"?(Vo=t.screenX-ul.screenX,Lo=t.screenY-ul.screenY):Lo=Vo=0,ul=t),Vo)},movementY:function(t){return"movementY"in t?t.movementY:Lo}}),xh=me(Vs),N3=E({},Vs,{dataTransfer:0}),Z3=me(N3),U3=E({},sl,{relatedTarget:0}),Co=me(U3),_3=E({},pa,{animationName:0,elapsedTime:0,pseudoElement:0}),G3=me(_3),q3=E({},pa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Y3=me(q3),X3=E({},pa,{data:0}),Vh=me(X3),k3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K3={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"},F3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q3(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=F3[t])?!!e[t]:!1}function Do(){return Q3}var P3=E({},sl,{key:function(t){if(t.key){var e=k3[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ts(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?K3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,charCode:function(t){return t.type==="keypress"?Ts(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ts(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),J3=me(P3),$3=E({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lh=me($3),W3=E({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),I3=me(W3),t5=E({},pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),e5=me(t5),n5=E({},Vs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),a5=me(n5),i5=E({},pa,{newState:0,oldState:0}),l5=me(i5),s5=[9,13,27,32],Ro=on&&"CompositionEvent"in window,rl=null;on&&"documentMode"in document&&(rl=document.documentMode);var u5=on&&"TextEvent"in window&&!rl,Ch=on&&(!Ro||rl&&8<rl&&11>=rl),Dh=" ",Rh=!1;function Hh(t,e){switch(t){case"keyup":return s5.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ni=!1;function r5(t,e){switch(t){case"compositionend":return jh(e);case"keypress":return e.which!==32?null:(Rh=!0,Dh);case"textInput":return t=e.data,t===Dh&&Rh?null:t;default:return null}}function o5(t,e){if(ni)return t==="compositionend"||!Ro&&Hh(t,e)?(t=Th(),As=xo=wn=null,ni=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Ch&&e.locale!=="ko"?null:e.data;default:return null}}var c5={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 Oh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!c5[t.type]:e==="textarea"}function zh(t,e,n,l){ti?ei?ei.push(l):ei=[l]:ti=l,e=pu(e,"onChange"),0<e.length&&(n=new xs("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ol=null,cl=null;function f5(t){y8(t,0)}function Ls(t){var e=al(t);if(ph(e))return t}function Bh(t,e){if(t==="change")return e}var wh=!1;if(on){var Ho;if(on){var jo="oninput"in document;if(!jo){var Nh=document.createElement("div");Nh.setAttribute("oninput","return;"),jo=typeof Nh.oninput=="function"}Ho=jo}else Ho=!1;wh=Ho&&(!document.documentMode||9<document.documentMode)}function Zh(){ol&&(ol.detachEvent("onpropertychange",Uh),cl=ol=null)}function Uh(t){if(t.propertyName==="value"&&Ls(cl)){var e=[];zh(e,cl,t,Ao(t)),Ah(f5,e)}}function d5(t,e,n){t==="focusin"?(Zh(),ol=e,cl=n,ol.attachEvent("onpropertychange",Uh)):t==="focusout"&&Zh()}function h5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ls(cl)}function m5(t,e){if(t==="click")return Ls(e)}function p5(t,e){if(t==="input"||t==="change")return Ls(e)}function y5(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xe=typeof Object.is=="function"?Object.is:y5;function fl(t,e){if(xe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!ro.call(e,s)||!xe(t[s],e[s]))return!1}return!0}function _h(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Gh(t,e){var n=_h(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=_h(n)}}function qh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Yh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=bs(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=bs(t.document)}return e}function Oo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var g5=on&&"documentMode"in document&&11>=document.documentMode,ai=null,zo=null,dl=null,Bo=!1;function Xh(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bo||ai==null||ai!==bs(l)||(l=ai,"selectionStart"in l&&Oo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),dl&&fl(dl,l)||(dl=l,l=pu(zo,"onSelect"),0<l.length&&(e=new xs("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=ai)))}function ya(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ii={animationend:ya("Animation","AnimationEnd"),animationiteration:ya("Animation","AnimationIteration"),animationstart:ya("Animation","AnimationStart"),transitionrun:ya("Transition","TransitionRun"),transitionstart:ya("Transition","TransitionStart"),transitioncancel:ya("Transition","TransitionCancel"),transitionend:ya("Transition","TransitionEnd")},wo={},kh={};on&&(kh=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function ga(t){if(wo[t])return wo[t];if(!ii[t])return t;var e=ii[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in kh)return wo[t]=e[n];return t}var Kh=ga("animationend"),Fh=ga("animationiteration"),Qh=ga("animationstart"),v5=ga("transitionrun"),S5=ga("transitionstart"),b5=ga("transitioncancel"),Ph=ga("transitionend"),Jh=new Map,No="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");No.push("scrollEnd");function Fe(t,e){Jh.set(t,e),ma(e,[t])}var Cs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",t);return}console.error(t)},Ne=[],li=0,Zo=0;function Ds(){for(var t=li,e=Zo=li=0;e<t;){var n=Ne[e];Ne[e++]=null;var l=Ne[e];Ne[e++]=null;var s=Ne[e];Ne[e++]=null;var o=Ne[e];if(Ne[e++]=null,l!==null&&s!==null){var m=l.pending;m===null?s.next=s:(s.next=m.next,m.next=s),l.pending=s}o!==0&&$h(n,s,o)}}function Rs(t,e,n,l){Ne[li++]=t,Ne[li++]=e,Ne[li++]=n,Ne[li++]=l,Zo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Uo(t,e,n,l){return Rs(t,e,n,l),Hs(t)}function va(t,e){return Rs(t,null,null,e),Hs(t)}function $h(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var s=!1,o=t.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(s=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,s&&e!==null&&(s=31-Me(n),t=o.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),o):null}function Hs(t){if(50<zl)throw zl=0,Qc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var si={};function E5(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(t,e,n,l){return new E5(t,e,n,l)}function _o(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cn(t,e){var n=t.alternate;return n===null?(n=Ve(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Wh(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function js(t,e,n,l,s,o){var m=0;if(l=t,typeof t=="function")_o(t)&&(m=1);else if(typeof t=="string")m=VS(t,n,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case at:return t=Ve(31,n,e,s),t.elementType=at,t.lanes=o,t;case U:return Sa(n.children,s,o,e);case H:m=8,s|=24;break;case Y:return t=Ve(12,n,e,s|2),t.elementType=Y,t.lanes=o,t;case k:return t=Ve(13,n,e,s),t.elementType=k,t.lanes=o,t;case J:return t=Ve(19,n,e,s),t.elementType=J,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case q:m=10;break t;case Q:m=9;break t;case z:m=11;break t;case K:m=14;break t;case I:m=16,l=null;break t}m=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=Ve(m,n,e,s),e.elementType=t,e.type=l,e.lanes=o,e}function Sa(t,e,n,l){return t=Ve(7,t,l,e),t.lanes=n,t}function Go(t,e,n){return t=Ve(6,t,null,e),t.lanes=n,t}function Ih(t){var e=Ve(18,null,null,0);return e.stateNode=t,e}function qo(t,e,n){return e=Ve(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var tm=new WeakMap;function Ze(t,e){if(typeof t=="object"&&t!==null){var n=tm.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Id(e)},tm.set(t,e),e)}return{value:t,source:e,stack:Id(e)}}var ui=[],ri=0,Os=null,hl=0,Ue=[],_e=0,Nn=null,Ie=1,tn="";function fn(t,e){ui[ri++]=hl,ui[ri++]=Os,Os=t,hl=e}function em(t,e,n){Ue[_e++]=Ie,Ue[_e++]=tn,Ue[_e++]=Nn,Nn=t;var l=Ie;t=tn;var s=32-Me(l)-1;l&=~(1<<s),n+=1;var o=32-Me(e)+s;if(30<o){var m=s-s%5;o=(l&(1<<m)-1).toString(32),l>>=m,s-=m,Ie=1<<32-Me(e)+s|n<<s|l,tn=o+t}else Ie=1<<o|n<<s|l,tn=t}function Yo(t){t.return!==null&&(fn(t,1),em(t,1,0))}function Xo(t){for(;t===Os;)Os=ui[--ri],ui[ri]=null,hl=ui[--ri],ui[ri]=null;for(;t===Nn;)Nn=Ue[--_e],Ue[_e]=null,tn=Ue[--_e],Ue[_e]=null,Ie=Ue[--_e],Ue[_e]=null}function nm(t,e){Ue[_e++]=Ie,Ue[_e++]=tn,Ue[_e++]=Nn,Ie=e.id,tn=e.overflow,Nn=t}var ae=null,jt=null,St=!1,Zn=null,Ge=!1,ko=Error(c(519));function Un(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ml(Ze(e,t)),ko}function am(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ne]=t,e[he]=l,n){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(n=0;n<wl.length;n++)yt(wl[n],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),yh(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),vh(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||b8(e.textContent,n)?(l.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),l.onScroll!=null&&yt("scroll",e),l.onScrollEnd!=null&&yt("scrollend",e),l.onClick!=null&&(e.onclick=rn),e=!0):e=!1,e||Un(t,!0)}function im(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:ae=ae.return}}function oi(t){if(t!==ae)return!1;if(!St)return im(t),St=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||o0(t.type,t.memoizedProps)),n=!n),n&&jt&&Un(t),im(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));jt=D8(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));jt=D8(t)}else e===27?(e=jt,In(t.type)?(t=m0,m0=null,jt=t):jt=e):jt=ae?Ye(t.stateNode.nextSibling):null;return!0}function ba(){jt=ae=null,St=!1}function Ko(){var t=Zn;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),Zn=null),t}function ml(t){Zn===null?Zn=[t]:Zn.push(t)}var Fo=x(null),Ea=null,dn=null;function _n(t,e,n){P(Fo,e._currentValue),e._currentValue=n}function hn(t){t._currentValue=Fo.current,G(Fo)}function Qo(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Po(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){var m=s.child;o=o.firstContext;t:for(;o!==null;){var S=o;o=s;for(var T=0;T<e.length;T++)if(S.context===e[T]){o.lanes|=n,S=o.alternate,S!==null&&(S.lanes|=n),Qo(o.return,n,t),l||(m=null);break t}o=S.next}}else if(s.tag===18){if(m=s.return,m===null)throw Error(c(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Qo(m,n,t),m=null}else m=s.child;if(m!==null)m.return=s;else for(m=s;m!==null;){if(m===t){m=null;break}if(s=m.sibling,s!==null){s.return=m.return,m=s;break}m=m.return}s=m}}function ci(t,e,n,l){t=null;for(var s=e,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var m=s.alternate;if(m===null)throw Error(c(387));if(m=m.memoizedProps,m!==null){var S=s.type;xe(s.pendingProps.value,m.value)||(t!==null?t.push(S):t=[S])}}else if(s===ht.current){if(m=s.alternate,m===null)throw Error(c(387));m.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Gl):t=[Gl])}s=s.return}t!==null&&Po(e,t,n,l),e.flags|=262144}function zs(t){for(t=t.firstContext;t!==null;){if(!xe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Aa(t){Ea=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ie(t){return lm(Ea,t)}function Bs(t,e){return Ea===null&&Aa(t),lm(t,e)}function lm(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(c(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var A5=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},T5=i.unstable_scheduleCallback,M5=i.unstable_NormalPriority,Xt={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jo(){return{controller:new A5,data:new Map,refCount:0}}function pl(t){t.refCount--,t.refCount===0&&T5(M5,function(){t.controller.abort()})}var yl=null,$o=0,fi=0,di=null;function x5(t,e){if(yl===null){var n=yl=[];$o=0,fi=t0(),di={status:"pending",value:void 0,then:function(l){n.push(l)}}}return $o++,e.then(sm,sm),e}function sm(){if(--$o===0&&yl!==null){di!==null&&(di.status="fulfilled");var t=yl;yl=null,fi=0,di=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function V5(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var um=N.S;N.S=function(t,e){X6=Ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&x5(t,e),um!==null&&um(t,e)};var Ta=x(null);function Wo(){var t=Ta.current;return t!==null?t:Ht.pooledCache}function ws(t,e){e===null?P(Ta,Ta.current):P(Ta,e.pool)}function rm(){var t=Wo();return t===null?null:{parent:Xt._currentValue,pool:t}}var hi=Error(c(460)),Io=Error(c(474)),Ns=Error(c(542)),Zs={then:function(){}};function om(t){return t=t.status,t==="fulfilled"||t==="rejected"}function cm(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(rn,rn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,dm(t),t;default:if(typeof e.status=="string")e.then(rn,rn);else{if(t=Ht,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=l}},function(l){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,dm(t),t}throw xa=e,hi}}function Ma(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xa=n,hi):n}}var xa=null;function fm(){if(xa===null)throw Error(c(459));var t=xa;return xa=null,t}function dm(t){if(t===hi||t===Ns)throw Error(c(483))}var mi=null,gl=0;function Us(t){var e=gl;return gl+=1,mi===null&&(mi=[]),cm(mi,t,e)}function vl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function _s(t,e){throw e.$$typeof===L?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hm(t){function e(V,M){if(t){var C=V.deletions;C===null?(V.deletions=[M],V.flags|=16):C.push(M)}}function n(V,M){if(!t)return null;for(;M!==null;)e(V,M),M=M.sibling;return null}function l(V){for(var M=new Map;V!==null;)V.key!==null?M.set(V.key,V):M.set(V.index,V),V=V.sibling;return M}function s(V,M){return V=cn(V,M),V.index=0,V.sibling=null,V}function o(V,M,C){return V.index=C,t?(C=V.alternate,C!==null?(C=C.index,C<M?(V.flags|=67108866,M):C):(V.flags|=67108866,M)):(V.flags|=1048576,M)}function m(V){return t&&V.alternate===null&&(V.flags|=67108866),V}function S(V,M,C,Z){return M===null||M.tag!==6?(M=Go(C,V.mode,Z),M.return=V,M):(M=s(M,C),M.return=V,M)}function T(V,M,C,Z){var nt=C.type;return nt===U?w(V,M,C.props.children,Z,C.key):M!==null&&(M.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===I&&Ma(nt)===M.type)?(M=s(M,C.props),vl(M,C),M.return=V,M):(M=js(C.type,C.key,C.props,null,V.mode,Z),vl(M,C),M.return=V,M)}function D(V,M,C,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==C.containerInfo||M.stateNode.implementation!==C.implementation?(M=qo(C,V.mode,Z),M.return=V,M):(M=s(M,C.children||[]),M.return=V,M)}function w(V,M,C,Z,nt){return M===null||M.tag!==7?(M=Sa(C,V.mode,Z,nt),M.return=V,M):(M=s(M,C),M.return=V,M)}function _(V,M,C){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Go(""+M,V.mode,C),M.return=V,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case O:return C=js(M.type,M.key,M.props,null,V.mode,C),vl(C,M),C.return=V,C;case B:return M=qo(M,V.mode,C),M.return=V,M;case I:return M=Ma(M),_(V,M,C)}if(F(M)||ct(M))return M=Sa(M,V.mode,C,null),M.return=V,M;if(typeof M.then=="function")return _(V,Us(M),C);if(M.$$typeof===q)return _(V,Bs(V,M),C);_s(V,M)}return null}function R(V,M,C,Z){var nt=M!==null?M.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return nt!==null?null:S(V,M,""+C,Z);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case O:return C.key===nt?T(V,M,C,Z):null;case B:return C.key===nt?D(V,M,C,Z):null;case I:return C=Ma(C),R(V,M,C,Z)}if(F(C)||ct(C))return nt!==null?null:w(V,M,C,Z,null);if(typeof C.then=="function")return R(V,M,Us(C),Z);if(C.$$typeof===q)return R(V,M,Bs(V,C),Z);_s(V,C)}return null}function j(V,M,C,Z,nt){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return V=V.get(C)||null,S(M,V,""+Z,nt);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:return V=V.get(Z.key===null?C:Z.key)||null,T(M,V,Z,nt);case B:return V=V.get(Z.key===null?C:Z.key)||null,D(M,V,Z,nt);case I:return Z=Ma(Z),j(V,M,C,Z,nt)}if(F(Z)||ct(Z))return V=V.get(C)||null,w(M,V,Z,nt,null);if(typeof Z.then=="function")return j(V,M,C,Us(Z),nt);if(Z.$$typeof===q)return j(V,M,C,Bs(M,Z),nt);_s(M,Z)}return null}function W(V,M,C,Z){for(var nt=null,Et=null,et=M,dt=M=0,vt=null;et!==null&&dt<C.length;dt++){et.index>dt?(vt=et,et=null):vt=et.sibling;var At=R(V,et,C[dt],Z);if(At===null){et===null&&(et=vt);break}t&&et&&At.alternate===null&&e(V,et),M=o(At,M,dt),Et===null?nt=At:Et.sibling=At,Et=At,et=vt}if(dt===C.length)return n(V,et),St&&fn(V,dt),nt;if(et===null){for(;dt<C.length;dt++)et=_(V,C[dt],Z),et!==null&&(M=o(et,M,dt),Et===null?nt=et:Et.sibling=et,Et=et);return St&&fn(V,dt),nt}for(et=l(et);dt<C.length;dt++)vt=j(et,V,dt,C[dt],Z),vt!==null&&(t&&vt.alternate!==null&&et.delete(vt.key===null?dt:vt.key),M=o(vt,M,dt),Et===null?nt=vt:Et.sibling=vt,Et=vt);return t&&et.forEach(function(ia){return e(V,ia)}),St&&fn(V,dt),nt}function it(V,M,C,Z){if(C==null)throw Error(c(151));for(var nt=null,Et=null,et=M,dt=M=0,vt=null,At=C.next();et!==null&&!At.done;dt++,At=C.next()){et.index>dt?(vt=et,et=null):vt=et.sibling;var ia=R(V,et,At.value,Z);if(ia===null){et===null&&(et=vt);break}t&&et&&ia.alternate===null&&e(V,et),M=o(ia,M,dt),Et===null?nt=ia:Et.sibling=ia,Et=ia,et=vt}if(At.done)return n(V,et),St&&fn(V,dt),nt;if(et===null){for(;!At.done;dt++,At=C.next())At=_(V,At.value,Z),At!==null&&(M=o(At,M,dt),Et===null?nt=At:Et.sibling=At,Et=At);return St&&fn(V,dt),nt}for(et=l(et);!At.done;dt++,At=C.next())At=j(et,V,dt,At.value,Z),At!==null&&(t&&At.alternate!==null&&et.delete(At.key===null?dt:At.key),M=o(At,M,dt),Et===null?nt=At:Et.sibling=At,Et=At);return t&&et.forEach(function(NS){return e(V,NS)}),St&&fn(V,dt),nt}function Dt(V,M,C,Z){if(typeof C=="object"&&C!==null&&C.type===U&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case O:t:{for(var nt=C.key;M!==null;){if(M.key===nt){if(nt=C.type,nt===U){if(M.tag===7){n(V,M.sibling),Z=s(M,C.props.children),Z.return=V,V=Z;break t}}else if(M.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===I&&Ma(nt)===M.type){n(V,M.sibling),Z=s(M,C.props),vl(Z,C),Z.return=V,V=Z;break t}n(V,M);break}else e(V,M);M=M.sibling}C.type===U?(Z=Sa(C.props.children,V.mode,Z,C.key),Z.return=V,V=Z):(Z=js(C.type,C.key,C.props,null,V.mode,Z),vl(Z,C),Z.return=V,V=Z)}return m(V);case B:t:{for(nt=C.key;M!==null;){if(M.key===nt)if(M.tag===4&&M.stateNode.containerInfo===C.containerInfo&&M.stateNode.implementation===C.implementation){n(V,M.sibling),Z=s(M,C.children||[]),Z.return=V,V=Z;break t}else{n(V,M);break}else e(V,M);M=M.sibling}Z=qo(C,V.mode,Z),Z.return=V,V=Z}return m(V);case I:return C=Ma(C),Dt(V,M,C,Z)}if(F(C))return W(V,M,C,Z);if(ct(C)){if(nt=ct(C),typeof nt!="function")throw Error(c(150));return C=nt.call(C),it(V,M,C,Z)}if(typeof C.then=="function")return Dt(V,M,Us(C),Z);if(C.$$typeof===q)return Dt(V,M,Bs(V,C),Z);_s(V,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,M!==null&&M.tag===6?(n(V,M.sibling),Z=s(M,C),Z.return=V,V=Z):(n(V,M),Z=Go(C,V.mode,Z),Z.return=V,V=Z),m(V)):n(V,M)}return function(V,M,C,Z){try{gl=0;var nt=Dt(V,M,C,Z);return mi=null,nt}catch(et){if(et===hi||et===Ns)throw et;var Et=Ve(29,et,null,V.mode);return Et.lanes=Z,Et.return=V,Et}finally{}}}var Va=hm(!0),mm=hm(!1),Gn=!1;function tc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function qn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Yn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Tt&2)!==0){var s=l.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),l.pending=e,e=Hs(t),$h(t,null,n),e}return Rs(t,l,e,n),Hs(t)}function Sl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,lh(t,n)}}function nc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?s=o=e:o=o.next=e}else s=o=e;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var ac=!1;function bl(){if(ac){var t=di;if(t!==null)throw t}}function El(t,e,n,l){ac=!1;var s=t.updateQueue;Gn=!1;var o=s.firstBaseUpdate,m=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var T=S,D=T.next;T.next=null,m===null?o=D:m.next=D,m=T;var w=t.alternate;w!==null&&(w=w.updateQueue,S=w.lastBaseUpdate,S!==m&&(S===null?w.firstBaseUpdate=D:S.next=D,w.lastBaseUpdate=T))}if(o!==null){var _=s.baseState;m=0,w=D=T=null,S=o;do{var R=S.lane&-536870913,j=R!==S.lane;if(j?(gt&R)===R:(l&R)===R){R!==0&&R===fi&&(ac=!0),w!==null&&(w=w.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var W=t,it=S;R=e;var Dt=n;switch(it.tag){case 1:if(W=it.payload,typeof W=="function"){_=W.call(Dt,_,R);break t}_=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=it.payload,R=typeof W=="function"?W.call(Dt,_,R):W,R==null)break t;_=E({},_,R);break t;case 2:Gn=!0}}R=S.callback,R!==null&&(t.flags|=64,j&&(t.flags|=8192),j=s.callbacks,j===null?s.callbacks=[R]:j.push(R))}else j={lane:R,tag:S.tag,payload:S.payload,callback:S.callback,next:null},w===null?(D=w=j,T=_):w=w.next=j,m|=R;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;j=S,S=j.next,j.next=null,s.lastBaseUpdate=j,s.shared.pending=null}}while(!0);w===null&&(T=_),s.baseState=T,s.firstBaseUpdate=D,s.lastBaseUpdate=w,o===null&&(s.shared.lanes=0),Qn|=m,t.lanes=m,t.memoizedState=_}}function pm(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function ym(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)pm(n[t],e)}var pi=x(null),Gs=x(0);function gm(t,e){t=An,P(Gs,t),P(pi,e),An=t|e.baseLanes}function ic(){P(Gs,An),P(pi,pi.current)}function lc(){An=Gs.current,G(pi),G(Gs)}var Le=x(null),qe=null;function Xn(t){var e=t.alternate;P(Gt,Gt.current&1),P(Le,t),qe===null&&(e===null||pi.current!==null||e.memoizedState!==null)&&(qe=t)}function sc(t){P(Gt,Gt.current),P(Le,t),qe===null&&(qe=t)}function vm(t){t.tag===22?(P(Gt,Gt.current),P(Le,t),qe===null&&(qe=t)):kn()}function kn(){P(Gt,Gt.current),P(Le,Le.current)}function Ce(t){G(Le),qe===t&&(qe=null),G(Gt)}var Gt=x(0);function qs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||d0(n)||h0(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var mn=0,ft=null,Lt=null,kt=null,Ys=!1,yi=!1,La=!1,Xs=0,Al=0,gi=null,L5=0;function Ut(){throw Error(c(321))}function uc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!xe(t[n],e[n]))return!1;return!0}function rc(t,e,n,l,s,o){return mn=o,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?e6:Tc,La=!1,o=n(l,s),La=!1,yi&&(o=bm(e,n,l,s)),Sm(t),o}function Sm(t){N.H=xl;var e=Lt!==null&&Lt.next!==null;if(mn=0,kt=Lt=ft=null,Ys=!1,Al=0,gi=null,e)throw Error(c(300));t===null||Kt||(t=t.dependencies,t!==null&&zs(t)&&(Kt=!0))}function bm(t,e,n,l){ft=t;var s=0;do{if(yi&&(gi=null),Al=0,yi=!1,25<=s)throw Error(c(301));if(s+=1,kt=Lt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=n6,o=e(n,l)}while(yi);return o}function C5(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?Tl(e):e,t=t.useState()[0],(Lt!==null?Lt.memoizedState:null)!==t&&(ft.flags|=1024),e}function oc(){var t=Xs!==0;return Xs=0,t}function cc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function fc(t){if(Ys){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ys=!1}mn=0,kt=Lt=ft=null,yi=!1,Al=Xs=0,gi=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ft.memoizedState=kt=t:kt=kt.next=t,kt}function qt(){if(Lt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Lt.next;var e=kt===null?ft.memoizedState:kt.next;if(e!==null)kt=e,Lt=t;else{if(t===null)throw ft.alternate===null?Error(c(467)):Error(c(310));Lt=t,t={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},kt===null?ft.memoizedState=kt=t:kt=kt.next=t}return kt}function ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tl(t){var e=Al;return Al+=1,gi===null&&(gi=[]),t=cm(gi,t,e),e=ft,(kt===null?e.memoizedState:kt.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?e6:Tc),t}function Ks(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Tl(t);if(t.$$typeof===q)return ie(t)}throw Error(c(438,String(t)))}function dc(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ft.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ks(),ft.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=Rt;return e.index++,n}function pn(t,e){return typeof e=="function"?e(t):e}function Fs(t){var e=qt();return hc(e,Lt,t)}function hc(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var s=t.baseQueue,o=l.pending;if(o!==null){if(s!==null){var m=s.next;s.next=o.next,o.next=m}e.baseQueue=s=o,l.pending=null}if(o=t.baseState,s===null)t.memoizedState=o;else{e=s.next;var S=m=null,T=null,D=e,w=!1;do{var _=D.lane&-536870913;if(_!==D.lane?(gt&_)===_:(mn&_)===_){var R=D.revertLane;if(R===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),_===fi&&(w=!0);else if((mn&R)===R){D=D.next,R===fi&&(w=!0);continue}else _={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(S=T=_,m=o):T=T.next=_,ft.lanes|=R,Qn|=R;_=D.action,La&&n(o,_),o=D.hasEagerState?D.eagerState:n(o,_)}else R={lane:_,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(S=T=R,m=o):T=T.next=R,ft.lanes|=_,Qn|=_;D=D.next}while(D!==null&&D!==e);if(T===null?m=o:T.next=S,!xe(o,t.memoizedState)&&(Kt=!0,w&&(n=di,n!==null)))throw n;t.memoizedState=o,t.baseState=m,t.baseQueue=T,l.lastRenderedState=o}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function mc(t){var e=qt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var m=s=s.next;do o=t(o,m.action),m=m.next;while(m!==s);xe(o,e.memoizedState)||(Kt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function Em(t,e,n){var l=ft,s=qt(),o=St;if(o){if(n===void 0)throw Error(c(407));n=n()}else n=e();var m=!xe((Lt||s).memoizedState,n);if(m&&(s.memoizedState=n,Kt=!0),s=s.queue,gc(Mm.bind(null,l,s,t),[t]),s.getSnapshot!==e||m||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,vi(9,{destroy:void 0},Tm.bind(null,l,s,n,e),null),Ht===null)throw Error(c(349));o||(mn&127)!==0||Am(l,e,n)}return n}function Am(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=ks(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Tm(t,e,n,l){e.value=n,e.getSnapshot=l,xm(e)&&Vm(t)}function Mm(t,e,n){return n(function(){xm(e)&&Vm(t)})}function xm(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!xe(t,n)}catch{return!0}}function Vm(t){var e=va(t,2);e!==null&&Se(e,t,2)}function pc(t){var e=ce();if(typeof t=="function"){var n=t;if(t=n(),La){zn(!0);try{n()}finally{zn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:t},e}function Lm(t,e,n,l){return t.baseState=n,hc(t,Lt,typeof l=="function"?l:pn)}function D5(t,e,n,l,s){if(Js(t))throw Error(c(485));if(t=e.action,t!==null){var o={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};N.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,Cm(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Cm(t,e){var n=e.action,l=e.payload,s=t.state;if(e.isTransition){var o=N.T,m={};N.T=m;try{var S=n(s,l),T=N.S;T!==null&&T(m,S),Dm(t,e,S)}catch(D){yc(t,e,D)}finally{o!==null&&m.types!==null&&(o.types=m.types),N.T=o}}else try{o=n(s,l),Dm(t,e,o)}catch(D){yc(t,e,D)}}function Dm(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Rm(t,e,l)},function(l){return yc(t,e,l)}):Rm(t,e,n)}function Rm(t,e,n){e.status="fulfilled",e.value=n,Hm(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Cm(t,n)))}function yc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Hm(e),e=e.next;while(e!==l)}t.action=null}function Hm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function jm(t,e){return e}function Om(t,e){if(St){var n=Ht.formState;if(n!==null){t:{var l=ft;if(St){if(jt){e:{for(var s=jt,o=Ge;s.nodeType!==8;){if(!o){s=null;break e}if(s=Ye(s.nextSibling),s===null){s=null;break e}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){jt=Ye(s.nextSibling),l=s.data==="F!";break t}}Un(l)}l=!1}l&&(e=n[0])}}return n=ce(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jm,lastRenderedState:e},n.queue=l,n=Wm.bind(null,ft,l),l.dispatch=n,l=pc(!1),o=Ac.bind(null,ft,!1,l.queue),l=ce(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=D5.bind(null,ft,s,o,n),s.dispatch=n,l.memoizedState=t,[e,n,!1]}function zm(t){var e=qt();return Bm(e,Lt,t)}function Bm(t,e,n){if(e=hc(t,e,jm)[0],t=Fs(pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Tl(e)}catch(m){throw m===hi?Ns:m}else l=e;e=qt();var s=e.queue,o=s.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,vi(9,{destroy:void 0},R5.bind(null,s,n),null)),[l,o,t]}function R5(t,e){t.action=e}function wm(t){var e=qt(),n=Lt;if(n!==null)return Bm(e,n,t);qt(),e=e.memoizedState,n=qt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function vi(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ft.updateQueue,e===null&&(e=ks(),ft.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function Nm(){return qt().memoizedState}function Qs(t,e,n,l){var s=ce();ft.flags|=t,s.memoizedState=vi(1|e,{destroy:void 0},n,l===void 0?null:l)}function Ps(t,e,n,l){var s=qt();l=l===void 0?null:l;var o=s.memoizedState.inst;Lt!==null&&l!==null&&uc(l,Lt.memoizedState.deps)?s.memoizedState=vi(e,o,n,l):(ft.flags|=t,s.memoizedState=vi(1|e,o,n,l))}function Zm(t,e){Qs(8390656,8,t,e)}function gc(t,e){Ps(2048,8,t,e)}function H5(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=ks(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Um(t){var e=qt().memoizedState;return H5({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function _m(t,e){return Ps(4,2,t,e)}function Gm(t,e){return Ps(4,4,t,e)}function qm(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ym(t,e,n){n=n!=null?n.concat([t]):null,Ps(4,4,qm.bind(null,e,t),n)}function vc(){}function Xm(t,e){var n=qt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&uc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function km(t,e){var n=qt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&uc(e,l[1]))return l[0];if(l=t(),La){zn(!0);try{t()}finally{zn(!1)}}return n.memoizedState=[l,e],l}function Sc(t,e,n){return n===void 0||(mn&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=K6(),ft.lanes|=t,Qn|=t,n)}function Km(t,e,n,l){return xe(n,e)?n:pi.current!==null?(t=Sc(t,n,l),xe(t,e)||(Kt=!0),t):(mn&42)===0||(mn&1073741824)!==0&&(gt&261930)===0?(Kt=!0,t.memoizedState=n):(t=K6(),ft.lanes|=t,Qn|=t,e)}function Fm(t,e,n,l,s){var o=X.p;X.p=o!==0&&8>o?o:8;var m=N.T,S={};N.T=S,Ac(t,!1,e,n);try{var T=s(),D=N.S;if(D!==null&&D(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var w=V5(T,l);Ml(t,e,w,He(t))}else Ml(t,e,l,He(t))}catch(_){Ml(t,e,{then:function(){},status:"rejected",reason:_},He())}finally{X.p=o,m!==null&&S.types!==null&&(m.types=S.types),N.T=m}}function j5(){}function bc(t,e,n,l){if(t.tag!==5)throw Error(c(476));var s=Qm(t).queue;Fm(t,s,e,ot,n===null?j5:function(){return Pm(t),n(l)})}function Qm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ot,baseState:ot,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:ot},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Pm(t){var e=Qm(t);e.next===null&&(e=t.alternate.memoizedState),Ml(t,e.next.queue,{},He())}function Ec(){return ie(Gl)}function Jm(){return qt().memoizedState}function $m(){return qt().memoizedState}function O5(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=He();t=qn(n);var l=Yn(e,t,n);l!==null&&(Se(l,e,n),Sl(l,e,n)),e={cache:Jo()},t.payload=e;return}e=e.return}}function z5(t,e,n){var l=He();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Js(t)?Im(e,n):(n=Uo(t,e,n,l),n!==null&&(Se(n,t,l),t6(n,e,l)))}function Wm(t,e,n){var l=He();Ml(t,e,n,l)}function Ml(t,e,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(t))Im(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var m=e.lastRenderedState,S=o(m,n);if(s.hasEagerState=!0,s.eagerState=S,xe(S,m))return Rs(t,e,s,0),Ht===null&&Ds(),!1}catch{}finally{}if(n=Uo(t,e,s,l),n!==null)return Se(n,t,l),t6(n,e,l),!0}return!1}function Ac(t,e,n,l){if(l={lane:2,revertLane:t0(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Js(t)){if(e)throw Error(c(479))}else e=Uo(t,n,l,2),e!==null&&Se(e,t,2)}function Js(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Im(t,e){yi=Ys=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function t6(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,lh(t,n)}}var xl={readContext:ie,use:Ks,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};xl.useEffectEvent=Ut;var e6={readContext:ie,use:Ks,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:Zm,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Qs(4194308,4,qm.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Qs(4194308,4,t,e)},useInsertionEffect:function(t,e){Qs(4,2,t,e)},useMemo:function(t,e){var n=ce();e=e===void 0?null:e;var l=t();if(La){zn(!0);try{t()}finally{zn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ce();if(n!==void 0){var s=n(e);if(La){zn(!0);try{n(e)}finally{zn(!1)}}}else s=e;return l.memoizedState=l.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},l.queue=t,t=t.dispatch=z5.bind(null,ft,t),[l.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=pc(t);var e=t.queue,n=Wm.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vc,useDeferredValue:function(t,e){var n=ce();return Sc(n,t,e)},useTransition:function(){var t=pc(!1);return t=Fm.bind(null,ft,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ft,s=ce();if(St){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Ht===null)throw Error(c(349));(gt&127)!==0||Am(l,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,Zm(Mm.bind(null,l,o,t),[t]),l.flags|=2048,vi(9,{destroy:void 0},Tm.bind(null,l,o,n,e),null),n},useId:function(){var t=ce(),e=Ht.identifierPrefix;if(St){var n=tn,l=Ie;n=(l&~(1<<32-Me(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Xs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=L5++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ec,useFormState:Om,useActionState:Om,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ac.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:dc,useCacheRefresh:function(){return ce().memoizedState=O5.bind(null,ft)},useEffectEvent:function(t){var e=ce(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Tc={readContext:ie,use:Ks,useCallback:Xm,useContext:ie,useEffect:gc,useImperativeHandle:Ym,useInsertionEffect:_m,useLayoutEffect:Gm,useMemo:km,useReducer:Fs,useRef:Nm,useState:function(){return Fs(pn)},useDebugValue:vc,useDeferredValue:function(t,e){var n=qt();return Km(n,Lt.memoizedState,t,e)},useTransition:function(){var t=Fs(pn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Tl(t),e]},useSyncExternalStore:Em,useId:Jm,useHostTransitionStatus:Ec,useFormState:zm,useActionState:zm,useOptimistic:function(t,e){var n=qt();return Lm(n,Lt,t,e)},useMemoCache:dc,useCacheRefresh:$m};Tc.useEffectEvent=Um;var n6={readContext:ie,use:Ks,useCallback:Xm,useContext:ie,useEffect:gc,useImperativeHandle:Ym,useInsertionEffect:_m,useLayoutEffect:Gm,useMemo:km,useReducer:mc,useRef:Nm,useState:function(){return mc(pn)},useDebugValue:vc,useDeferredValue:function(t,e){var n=qt();return Lt===null?Sc(n,t,e):Km(n,Lt.memoizedState,t,e)},useTransition:function(){var t=mc(pn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Tl(t),e]},useSyncExternalStore:Em,useId:Jm,useHostTransitionStatus:Ec,useFormState:wm,useActionState:wm,useOptimistic:function(t,e){var n=qt();return Lt!==null?Lm(n,Lt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:dc,useCacheRefresh:$m};n6.useEffectEvent=Um;function Mc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:E({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var xc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=He(),s=qn(l);s.payload=e,n!=null&&(s.callback=n),e=Yn(t,s,l),e!==null&&(Se(e,t,l),Sl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=He(),s=qn(l);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Yn(t,s,l),e!==null&&(Se(e,t,l),Sl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=He(),l=qn(n);l.tag=2,e!=null&&(l.callback=e),e=Yn(t,l,n),e!==null&&(Se(e,t,n),Sl(e,t,n))}};function a6(t,e,n,l,s,o,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,o,m):e.prototype&&e.prototype.isPureReactComponent?!fl(n,l)||!fl(s,o):!0}function i6(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&xc.enqueueReplaceState(e,e.state,null)}function Ca(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=E({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function l6(t){Cs(t)}function s6(t){console.error(t)}function u6(t){Cs(t)}function $s(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function r6(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Vc(t,e,n){return n=qn(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(t,e)},n}function o6(t){return t=qn(t),t.tag=3,t}function c6(t,e,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=l.value;t.payload=function(){return s(o)},t.callback=function(){r6(e,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){r6(e,n,l),typeof s!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function B5(t,e,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&ci(e,n,s,!0),n=Le.current,n!==null){switch(n.tag){case 31:case 13:return qe===null?ou():n.alternate===null&&_t===0&&(_t=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===Zs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),$c(t,l,s)),!1;case 22:return n.flags|=65536,l===Zs?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),$c(t,l,s)),!1}throw Error(c(435,n.tag))}return $c(t,l,s),ou(),!1}if(St)return e=Le.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,l!==ko&&(t=Error(c(422),{cause:l}),ml(Ze(t,n)))):(l!==ko&&(e=Error(c(423),{cause:l}),ml(Ze(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=Ze(l,n),s=Vc(t.stateNode,l,s),nc(t,s),_t!==4&&(_t=2)),!1;var o=Error(c(520),{cause:l});if(o=Ze(o,n),Ol===null?Ol=[o]:Ol.push(o),_t!==4&&(_t=2),e===null)return!0;l=Ze(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Vc(n.stateNode,l,t),nc(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Pn===null||!Pn.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=o6(s),c6(s,t,n,l),nc(n,s),!1}n=n.return}while(n!==null);return!1}var Lc=Error(c(461)),Kt=!1;function le(t,e,n,l){e.child=t===null?mm(e,null,n,l):Va(e,t.child,n,l)}function f6(t,e,n,l,s){n=n.render;var o=e.ref;if("ref"in l){var m={};for(var S in l)S!=="ref"&&(m[S]=l[S])}else m=l;return Aa(e),l=rc(t,e,n,m,o,s),S=oc(),t!==null&&!Kt?(cc(t,e,s),yn(t,e,s)):(St&&S&&Yo(e),e.flags|=1,le(t,e,l,s),e.child)}function d6(t,e,n,l,s){if(t===null){var o=n.type;return typeof o=="function"&&!_o(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,h6(t,e,o,l,s)):(t=js(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!Bc(t,s)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(m,l)&&t.ref===e.ref)return yn(t,e,s)}return e.flags|=1,t=cn(o,l),t.ref=e.ref,t.return=e,e.child=t}function h6(t,e,n,l,s){if(t!==null){var o=t.memoizedProps;if(fl(o,l)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=l=o,Bc(t,s))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,yn(t,e,s)}return Cc(t,e,n,l,s)}function m6(t,e,n,l){var s=l.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(l=e.child=t.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~o}else l=0,e.child=null;return p6(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ws(e,o!==null?o.cachePool:null),o!==null?gm(e,o):ic(),vm(e);else return l=e.lanes=536870912,p6(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(ws(e,o.cachePool),gm(e,o),kn(),e.memoizedState=null):(t!==null&&ws(e,null),ic(),kn());return le(t,e,s,n),e.child}function Vl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function p6(t,e,n,l,s){var o=Wo();return o=o===null?null:{parent:Xt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&ws(e,null),ic(),vm(e),t!==null&&ci(t,e,l,!0),e.childLanes=s,null}function Ws(t,e){return e=tu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function y6(t,e,n){return Va(e,t.child,null,n),t=Ws(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function w5(t,e,n){var l=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(St){if(l.mode==="hidden")return t=Ws(e,l),e.lanes=536870912,Vl(null,t);if(sc(e),(t=jt)?(t=C8(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=Ih(t),n.return=e,e.child=n,ae=e,jt=null)):t=null,t===null)throw Un(e);return e.lanes=536870912,null}return Ws(e,l)}var o=t.memoizedState;if(o!==null){var m=o.dehydrated;if(sc(e),s)if(e.flags&256)e.flags&=-257,e=y6(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Kt||ci(t,e,n,!1),s=(n&t.childLanes)!==0,Kt||s){if(l=Ht,l!==null&&(m=sh(l,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,va(t,m),Se(l,t,m),Lc;ou(),e=y6(t,e,n)}else t=o.treeContext,jt=Ye(m.nextSibling),ae=e,St=!0,Zn=null,Ge=!1,t!==null&&nm(e,t),e=Ws(e,l),e.flags|=4096;return e}return t=cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Is(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Cc(t,e,n,l,s){return Aa(e),n=rc(t,e,n,l,void 0,s),l=oc(),t!==null&&!Kt?(cc(t,e,s),yn(t,e,s)):(St&&l&&Yo(e),e.flags|=1,le(t,e,n,s),e.child)}function g6(t,e,n,l,s,o){return Aa(e),e.updateQueue=null,n=bm(e,l,n,s),Sm(t),l=oc(),t!==null&&!Kt?(cc(t,e,o),yn(t,e,o)):(St&&l&&Yo(e),e.flags|=1,le(t,e,n,o),e.child)}function v6(t,e,n,l,s){if(Aa(e),e.stateNode===null){var o=si,m=n.contextType;typeof m=="object"&&m!==null&&(o=ie(m)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=xc,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},tc(e),m=n.contextType,o.context=typeof m=="object"&&m!==null?ie(m):si,o.state=e.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Mc(e,n,m,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&xc.enqueueReplaceState(o,o.state,null),El(e,l,o,s),bl(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var S=e.memoizedProps,T=Ca(n,S);o.props=T;var D=o.context,w=n.contextType;m=si,typeof w=="object"&&w!==null&&(m=ie(w));var _=n.getDerivedStateFromProps;w=typeof _=="function"||typeof o.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,w||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(S||D!==m)&&i6(e,o,l,m),Gn=!1;var R=e.memoizedState;o.state=R,El(e,l,o,s),bl(),D=e.memoizedState,S||R!==D||Gn?(typeof _=="function"&&(Mc(e,n,_,l),D=e.memoizedState),(T=Gn||a6(e,n,T,l,R,D,m))?(w||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=D),o.props=l,o.state=D,o.context=m,l=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,ec(t,e),m=e.memoizedProps,w=Ca(n,m),o.props=w,_=e.pendingProps,R=o.context,D=n.contextType,T=si,typeof D=="object"&&D!==null&&(T=ie(D)),S=n.getDerivedStateFromProps,(D=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==_||R!==T)&&i6(e,o,l,T),Gn=!1,R=e.memoizedState,o.state=R,El(e,l,o,s),bl();var j=e.memoizedState;m!==_||R!==j||Gn||t!==null&&t.dependencies!==null&&zs(t.dependencies)?(typeof S=="function"&&(Mc(e,n,S,l),j=e.memoizedState),(w=Gn||a6(e,n,w,l,R,j,T)||t!==null&&t.dependencies!==null&&zs(t.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,j,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,j,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=j),o.props=l,o.state=j,o.context=T,l=w):(typeof o.componentDidUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,Is(t,e),l=(e.flags&128)!==0,o||l?(o=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&l?(e.child=Va(e,t.child,null,s),e.child=Va(e,null,n,s)):le(t,e,n,s),e.memoizedState=o.state,t=e.child):t=yn(t,e,s),t}function S6(t,e,n,l){return ba(),e.flags|=256,le(t,e,n,l),e.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(t){return{baseLanes:t,cachePool:rm()}}function Hc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function b6(t,e,n){var l=e.pendingProps,s=!1,o=(e.flags&128)!==0,m;if((m=o)||(m=t!==null&&t.memoizedState===null?!1:(Gt.current&2)!==0),m&&(s=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(s?Xn(e):kn(),(t=jt)?(t=C8(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=Ih(t),n.return=e,e.child=n,ae=e,jt=null)):t=null,t===null)throw Un(e);return h0(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,s?(kn(),s=e.mode,S=tu({mode:"hidden",children:S},s),l=Sa(l,s,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=Rc(n),l.childLanes=Hc(t,m,n),e.memoizedState=Dc,Vl(null,l)):(Xn(e),jc(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(o)e.flags&256?(Xn(e),e.flags&=-257,e=Oc(t,e,n)):e.memoizedState!==null?(kn(),e.child=t.child,e.flags|=128,e=null):(kn(),S=l.fallback,s=e.mode,l=tu({mode:"visible",children:l.children},s),S=Sa(S,s,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,Va(e,t.child,null,n),l=e.child,l.memoizedState=Rc(n),l.childLanes=Hc(t,m,n),e.memoizedState=Dc,e=Vl(null,l));else if(Xn(e),h0(S)){if(m=S.nextSibling&&S.nextSibling.dataset,m)var D=m.dgst;m=D,l=Error(c(419)),l.stack="",l.digest=m,ml({value:l,source:null,stack:null}),e=Oc(t,e,n)}else if(Kt||ci(t,e,n,!1),m=(n&t.childLanes)!==0,Kt||m){if(m=Ht,m!==null&&(l=sh(m,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,va(t,l),Se(m,t,l),Lc;d0(S)||ou(),e=Oc(t,e,n)}else d0(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,jt=Ye(S.nextSibling),ae=e,St=!0,Zn=null,Ge=!1,t!==null&&nm(e,t),e=jc(e,l.children),e.flags|=4096);return e}return s?(kn(),S=l.fallback,s=e.mode,T=t.child,D=T.sibling,l=cn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,D!==null?S=cn(D,S):(S=Sa(S,s,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,Vl(null,l),l=e.child,S=t.child.memoizedState,S===null?S=Rc(n):(s=S.cachePool,s!==null?(T=Xt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=rm(),S={baseLanes:S.baseLanes|n,cachePool:s}),l.memoizedState=S,l.childLanes=Hc(t,m,n),e.memoizedState=Dc,Vl(t.child,l)):(Xn(e),n=t.child,t=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=n,e.memoizedState=null,n)}function jc(t,e){return e=tu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function tu(t,e){return t=Ve(22,t,null,e),t.lanes=0,t}function Oc(t,e,n){return Va(e,t.child,null,n),t=jc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function E6(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Qo(t.return,e,n)}function zc(t,e,n,l,s,o){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:o}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=s,m.treeForkCount=o)}function A6(t,e,n){var l=e.pendingProps,s=l.revealOrder,o=l.tail;l=l.children;var m=Gt.current,S=(m&2)!==0;if(S?(m=m&1|2,e.flags|=128):m&=1,P(Gt,m),le(t,e,l,n),l=St?hl:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&E6(t,n,e);else if(t.tag===19)E6(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&qs(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),zc(e,!1,s,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&qs(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}zc(e,!0,n,null,o,l);break;case"together":zc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function yn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ci(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Bc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&zs(t)))}function N5(t,e,n){switch(e.tag){case 3:Jt(e,e.stateNode.containerInfo),_n(e,Xt,t.memoizedState.cache),ba();break;case 27:case 5:jn(e);break;case 4:Jt(e,e.stateNode.containerInfo);break;case 10:_n(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,sc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Xn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?b6(t,e,n):(Xn(e),t=yn(t,e,n),t!==null?t.sibling:null);Xn(e);break;case 19:var s=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(ci(t,e,n,!1),l=(n&e.childLanes)!==0),s){if(l)return A6(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),P(Gt,Gt.current),l)break;return null;case 22:return e.lanes=0,m6(t,e,n,e.pendingProps);case 24:_n(e,Xt,t.memoizedState.cache)}return yn(t,e,n)}function T6(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Bc(t,n)&&(e.flags&128)===0)return Kt=!1,N5(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,St&&(e.flags&1048576)!==0&&em(e,hl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Ma(e.elementType),e.type=t,typeof t=="function")_o(t)?(l=Ca(t,l),e.tag=1,e=v6(null,e,t,l,n)):(e.tag=0,e=Cc(null,e,t,l,n));else{if(t!=null){var s=t.$$typeof;if(s===z){e.tag=11,e=f6(null,e,t,l,n);break t}else if(s===K){e.tag=14,e=d6(null,e,t,l,n);break t}}throw e=mt(t)||t,Error(c(306,e,""))}}return e;case 0:return Cc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,s=Ca(l,e.pendingProps),v6(t,e,l,s,n);case 3:t:{if(Jt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var o=e.memoizedState;s=o.element,ec(t,e),El(e,l,null,n);var m=e.memoizedState;if(l=m.cache,_n(e,Xt,l),l!==o.cache&&Po(e,[Xt],n,!0),bl(),l=m.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=S6(t,e,l,n);break t}else if(l!==s){s=Ze(Error(c(424)),e),ml(s),e=S6(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(jt=Ye(t.firstChild),ae=e,St=!0,Zn=null,Ge=!0,n=mm(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ba(),l===s){e=yn(t,e,n);break t}le(t,e,l,n)}e=e.child}return e;case 26:return Is(t,e),t===null?(n=z8(e.type,null,e.pendingProps,null))?e.memoizedState=n:St||(n=e.type,t=e.pendingProps,l=yu(lt.current).createElement(n),l[ne]=e,l[he]=t,se(l,n,t),It(l),e.stateNode=l):e.memoizedState=z8(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return jn(e),t===null&&St&&(l=e.stateNode=H8(e.type,e.pendingProps,lt.current),ae=e,Ge=!0,s=jt,In(e.type)?(m0=s,jt=Ye(l.firstChild)):jt=s),le(t,e,e.pendingProps.children,n),Is(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((s=l=jt)&&(l=hS(l,e.type,e.pendingProps,Ge),l!==null?(e.stateNode=l,ae=e,jt=Ye(l.firstChild),Ge=!1,s=!0):s=!1),s||Un(e)),jn(e),s=e.type,o=e.pendingProps,m=t!==null?t.memoizedProps:null,l=o.children,o0(s,o)?l=null:m!==null&&o0(s,m)&&(e.flags|=32),e.memoizedState!==null&&(s=rc(t,e,C5,null,null,n),Gl._currentValue=s),Is(t,e),le(t,e,l,n),e.child;case 6:return t===null&&St&&((t=n=jt)&&(n=mS(n,e.pendingProps,Ge),n!==null?(e.stateNode=n,ae=e,jt=null,t=!0):t=!1),t||Un(e)),null;case 13:return b6(t,e,n);case 4:return Jt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Va(e,null,l,n):le(t,e,l,n),e.child;case 11:return f6(t,e,e.type,e.pendingProps,n);case 7:return le(t,e,e.pendingProps,n),e.child;case 8:return le(t,e,e.pendingProps.children,n),e.child;case 12:return le(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,_n(e,e.type,l.value),le(t,e,l.children,n),e.child;case 9:return s=e.type._context,l=e.pendingProps.children,Aa(e),s=ie(s),l=l(s),e.flags|=1,le(t,e,l,n),e.child;case 14:return d6(t,e,e.type,e.pendingProps,n);case 15:return h6(t,e,e.type,e.pendingProps,n);case 19:return A6(t,e,n);case 31:return w5(t,e,n);case 22:return m6(t,e,n,e.pendingProps);case 24:return Aa(e),l=ie(Xt),t===null?(s=Wo(),s===null&&(s=Ht,o=Jo(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),e.memoizedState={parent:l,cache:s},tc(e),_n(e,Xt,s)):((t.lanes&n)!==0&&(ec(t,e),El(e,null,null,n),bl()),s=t.memoizedState,o=e.memoizedState,s.parent!==l?(s={parent:l,cache:l},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),_n(e,Xt,l)):(l=o.cache,_n(e,Xt,l),l!==s.cache&&Po(e,[Xt],n,!0))),le(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function gn(t){t.flags|=4}function wc(t,e,n,l,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(J6())t.flags|=8192;else throw xa=Zs,Io}else t.flags&=-16777217}function M6(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!U8(e))if(J6())t.flags|=8192;else throw xa=Zs,Io}function eu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ah():536870912,t.lanes|=e,Ai|=e)}function Ll(t,e){if(!St)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ot(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function Z5(t,e,n){var l=e.pendingProps;switch(Xo(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(e),null;case 1:return Ot(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),hn(Xt),Bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(oi(e)?gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ko())),Ot(e),null;case 26:var s=e.type,o=e.memoizedState;return t===null?(gn(e),o!==null?(Ot(e),M6(e,o)):(Ot(e),wc(e,s,null,l,n))):o?o!==t.memoizedState?(gn(e),Ot(e),M6(e,o)):(Ot(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&gn(e),Ot(e),wc(e,s,t,l,n)),null;case 27:if(On(e),n=lt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Ot(e),null}t=tt.current,oi(e)?am(e):(t=H8(s,l,n),e.stateNode=t,gn(e))}return Ot(e),null;case 5:if(On(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Ot(e),null}if(o=tt.current,oi(e))am(e);else{var m=yu(lt.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?m.createElement(s,{is:l.is}):m.createElement(s)}}o[ne]=e,o[he]=l;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=o;t:switch(se(o,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&gn(e)}}return Ot(e),wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=lt.current,oi(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,s=ae,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}t[ne]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||b8(t.nodeValue,n)),t||Un(e,!0)}else t=yu(t).createTextNode(l),t[ne]=e,e.stateNode=t}return Ot(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=oi(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[ne]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),t=!1}else n=Ko(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ce(e),e):(Ce(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Ot(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=oi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!s)throw Error(c(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(c(317));s[ne]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),s=!1}else s=Ko(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Ce(e),e):(Ce(e),null)}return Ce(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==s&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),eu(e,e.updateQueue),Ot(e),null);case 4:return Bt(),t===null&&i0(e.stateNode.containerInfo),Ot(e),null;case 10:return hn(e.type),Ot(e),null;case 19:if(G(Gt),l=e.memoizedState,l===null)return Ot(e),null;if(s=(e.flags&128)!==0,o=l.rendering,o===null)if(s)Ll(l,!1);else{if(_t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=qs(t),o!==null){for(e.flags|=128,Ll(l,!1),t=o.updateQueue,e.updateQueue=t,eu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Wh(n,t),n=n.sibling;return P(Gt,Gt.current&1|2),St&&fn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Ae()>su&&(e.flags|=128,s=!0,Ll(l,!1),e.lanes=4194304)}else{if(!s)if(t=qs(o),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,eu(e,t),Ll(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!St)return Ot(e),null}else 2*Ae()-l.renderingStartTime>su&&n!==536870912&&(e.flags|=128,s=!0,Ll(l,!1),e.lanes=4194304);l.isBackwards?(o.sibling=e.child,e.child=o):(t=l.last,t!==null?t.sibling=o:e.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ae(),t.sibling=null,n=Gt.current,P(Gt,s?n&1|2:n&1),St&&fn(e,l.treeForkCount),t):(Ot(e),null);case 22:case 23:return Ce(e),lc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Ot(e),e.subtreeFlags&6&&(e.flags|=8192)):Ot(e),n=e.updateQueue,n!==null&&eu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&G(Ta),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),hn(Xt),Ot(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function U5(t,e){switch(Xo(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hn(Xt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return On(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(c(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ce(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G(Gt),null;case 4:return Bt(),null;case 10:return hn(e.type),null;case 22:case 23:return Ce(e),lc(),t!==null&&G(Ta),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return hn(Xt),null;case 25:return null;default:return null}}function x6(t,e){switch(Xo(e),e.tag){case 3:hn(Xt),Bt();break;case 26:case 27:case 5:On(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:G(Gt);break;case 10:hn(e.type);break;case 22:case 23:Ce(e),lc(),t!==null&&G(Ta);break;case 24:hn(Xt)}}function Cl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){l=void 0;var o=n.create,m=n.inst;l=o(),m.destroy=l}n=n.next}while(n!==s)}}catch(S){Vt(e,e.return,S)}}function Kn(t,e,n){try{var l=e.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var o=s.next;l=o;do{if((l.tag&t)===t){var m=l.inst,S=m.destroy;if(S!==void 0){m.destroy=void 0,s=e;var T=n,D=S;try{D()}catch(w){Vt(s,T,w)}}}l=l.next}while(l!==o)}}catch(w){Vt(e,e.return,w)}}function V6(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{ym(e,n)}catch(l){Vt(t,t.return,l)}}}function L6(t,e,n){n.props=Ca(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Vt(t,e,l)}}function Dl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(s){Vt(t,e,s)}}function en(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Vt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Vt(t,e,s)}else n.current=null}function C6(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Vt(t,t.return,s)}}function Nc(t,e,n){try{var l=t.stateNode;uS(l,t.type,n,e),l[he]=e}catch(s){Vt(t,t.return,s)}}function D6(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&In(t.type)||t.tag===4}function Zc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||D6(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&In(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Uc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=rn));else if(l!==4&&(l===27&&In(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Uc(t,e,n),t=t.sibling;t!==null;)Uc(t,e,n),t=t.sibling}function nu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&In(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(nu(t,e,n),t=t.sibling;t!==null;)nu(t,e,n),t=t.sibling}function R6(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);se(e,l,n),e[ne]=t,e[he]=n}catch(o){Vt(t,t.return,o)}}var vn=!1,Ft=!1,_c=!1,H6=typeof WeakSet=="function"?WeakSet:Set,te=null;function _5(t,e){if(t=t.containerInfo,u0=Tu,t=Yh(t),Oo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var m=0,S=-1,T=-1,D=0,w=0,_=t,R=null;e:for(;;){for(var j;_!==n||s!==0&&_.nodeType!==3||(S=m+s),_!==o||l!==0&&_.nodeType!==3||(T=m+l),_.nodeType===3&&(m+=_.nodeValue.length),(j=_.firstChild)!==null;)R=_,_=j;for(;;){if(_===t)break e;if(R===n&&++D===s&&(S=m),R===o&&++w===l&&(T=m),(j=_.nextSibling)!==null)break;_=R,R=_.parentNode}_=j}n=S===-1||T===-1?null:{start:S,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(r0={focusedElem:t,selectionRange:n},Tu=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,o=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,s=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var W=Ca(n.type,s);t=l.getSnapshotBeforeUpdate(W,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(it){Vt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)f0(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":f0(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function j6(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:bn(t,n),l&4&&Cl(5,n);break;case 1:if(bn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(m){Vt(n,n.return,m)}else{var s=Ca(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Vt(n,n.return,m)}}l&64&&V6(n),l&512&&Dl(n,n.return);break;case 3:if(bn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{ym(t,e)}catch(m){Vt(n,n.return,m)}}break;case 27:e===null&&l&4&&R6(n);case 26:case 5:bn(t,n),e===null&&l&4&&C6(n),l&512&&Dl(n,n.return);break;case 12:bn(t,n);break;case 31:bn(t,n),l&4&&B6(t,n);break;case 13:bn(t,n),l&4&&w6(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=P5.bind(null,n),pS(t,n))));break;case 22:if(l=n.memoizedState!==null||vn,!l){e=e!==null&&e.memoizedState!==null||Ft,s=vn;var o=Ft;vn=l,(Ft=e)&&!o?En(t,n,(n.subtreeFlags&8772)!==0):bn(t,n),vn=s,Ft=o}break;case 30:break;default:bn(t,n)}}function O6(t){var e=t.alternate;e!==null&&(t.alternate=null,O6(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&yo(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var wt=null,pe=!1;function Sn(t,e,n){for(n=n.child;n!==null;)z6(t,e,n),n=n.sibling}function z6(t,e,n){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(Ii,n)}catch{}switch(n.tag){case 26:Ft||en(n,e),Sn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ft||en(n,e);var l=wt,s=pe;In(n.type)&&(wt=n.stateNode,pe=!1),Sn(t,e,n),Zl(n.stateNode),wt=l,pe=s;break;case 5:Ft||en(n,e);case 6:if(l=wt,s=pe,wt=null,Sn(t,e,n),wt=l,pe=s,wt!==null)if(pe)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(o){Vt(n,e,o)}else try{wt.removeChild(n.stateNode)}catch(o){Vt(n,e,o)}break;case 18:wt!==null&&(pe?(t=wt,V8(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ri(t)):V8(wt,n.stateNode));break;case 4:l=wt,s=pe,wt=n.stateNode.containerInfo,pe=!0,Sn(t,e,n),wt=l,pe=s;break;case 0:case 11:case 14:case 15:Kn(2,n,e),Ft||Kn(4,n,e),Sn(t,e,n);break;case 1:Ft||(en(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&L6(n,e,l)),Sn(t,e,n);break;case 21:Sn(t,e,n);break;case 22:Ft=(l=Ft)||n.memoizedState!==null,Sn(t,e,n),Ft=l;break;default:Sn(t,e,n)}}function B6(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ri(t)}catch(n){Vt(e,e.return,n)}}}function w6(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ri(t)}catch(n){Vt(e,e.return,n)}}function G5(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new H6),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new H6),e;default:throw Error(c(435,t.tag))}}function au(t,e){var n=G5(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var s=J5.bind(null,t,l);l.then(s,s)}})}function ye(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],o=t,m=e,S=m;t:for(;S!==null;){switch(S.tag){case 27:if(In(S.type)){wt=S.stateNode,pe=!1;break t}break;case 5:wt=S.stateNode,pe=!1;break t;case 3:case 4:wt=S.stateNode.containerInfo,pe=!0;break t}S=S.return}if(wt===null)throw Error(c(160));z6(o,m,s),wt=null,pe=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)N6(e,t),e=e.sibling}var Qe=null;function N6(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ge(t),l&4&&(Kn(3,t,t.return),Cl(3,t),Kn(5,t,t.return));break;case 1:ye(e,t),ge(t),l&512&&(Ft||n===null||en(n,n.return)),l&64&&vn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=Qe;if(ye(e,t),ge(t),l&512&&(Ft||n===null||en(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(l){case"title":o=s.getElementsByTagName("title")[0],(!o||o[nl]||o[ne]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(l),s.head.insertBefore(o,s.querySelector("head > title"))),se(o,l,n),o[ne]=t,It(o),l=o;break t;case"link":var m=N8("link","href",s).get(l+(n.href||""));if(m){for(var S=0;S<m.length;S++)if(o=m[S],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(S,1);break e}}o=s.createElement(l),se(o,l,n),s.head.appendChild(o);break;case"meta":if(m=N8("meta","content",s).get(l+(n.content||""))){for(S=0;S<m.length;S++)if(o=m[S],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(S,1);break e}}o=s.createElement(l),se(o,l,n),s.head.appendChild(o);break;default:throw Error(c(468,l))}o[ne]=t,It(o),l=o}t.stateNode=l}else Z8(s,t.type,t.stateNode);else t.stateNode=w8(s,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Z8(s,t.type,t.stateNode):w8(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Nc(t,t.memoizedProps,n.memoizedProps)}break;case 27:ye(e,t),ge(t),l&512&&(Ft||n===null||en(n,n.return)),n!==null&&l&4&&Nc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ye(e,t),ge(t),l&512&&(Ft||n===null||en(n,n.return)),t.flags&32){s=t.stateNode;try{Ia(s,"")}catch(W){Vt(t,t.return,W)}}l&4&&t.stateNode!=null&&(s=t.memoizedProps,Nc(t,s,n!==null?n.memoizedProps:s)),l&1024&&(_c=!0);break;case 6:if(ye(e,t),ge(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(W){Vt(t,t.return,W)}}break;case 3:if(Su=null,s=Qe,Qe=gu(e.containerInfo),ye(e,t),Qe=s,ge(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ri(e.containerInfo)}catch(W){Vt(t,t.return,W)}_c&&(_c=!1,Z6(t));break;case 4:l=Qe,Qe=gu(t.stateNode.containerInfo),ye(e,t),ge(t),Qe=l;break;case 12:ye(e,t),ge(t);break;case 31:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,au(t,l)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(lu=Ae()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,au(t,l)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,D=vn,w=Ft;if(vn=D||s,Ft=w||T,ye(e,t),Ft=w,vn=D,ge(t),l&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||vn||Ft||Da(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(o=T.stateNode,s)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{S=T.stateNode;var _=T.memoizedProps.style,R=_!=null&&_.hasOwnProperty("display")?_.display:null;S.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(W){Vt(T,T.return,W)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(W){Vt(T,T.return,W)}}}else if(e.tag===18){if(n===null){T=e;try{var j=T.stateNode;s?L8(j,!0):L8(T.stateNode,!1)}catch(W){Vt(T,T.return,W)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,au(t,n))));break;case 19:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,au(t,l)));break;case 30:break;case 21:break;default:ye(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(D6(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var s=n.stateNode,o=Zc(t);nu(t,o,s);break;case 5:var m=n.stateNode;n.flags&32&&(Ia(m,""),n.flags&=-33);var S=Zc(t);nu(t,S,m);break;case 3:case 4:var T=n.stateNode.containerInfo,D=Zc(t);Uc(t,D,T);break;default:throw Error(c(161))}}catch(w){Vt(t,t.return,w)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Z6(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Z6(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function bn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)j6(t,e.alternate,e),e=e.sibling}function Da(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Kn(4,e,e.return),Da(e);break;case 1:en(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&L6(e,e.return,n),Da(e);break;case 27:Zl(e.stateNode);case 26:case 5:en(e,e.return),Da(e);break;case 22:e.memoizedState===null&&Da(e);break;case 30:Da(e);break;default:Da(e)}t=t.sibling}}function En(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,s=t,o=e,m=o.flags;switch(o.tag){case 0:case 11:case 15:En(s,o,n),Cl(4,o);break;case 1:if(En(s,o,n),l=o,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){Vt(l,l.return,D)}if(l=o,s=l.updateQueue,s!==null){var S=l.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)pm(T[s],S)}catch(D){Vt(l,l.return,D)}}n&&m&64&&V6(o),Dl(o,o.return);break;case 27:R6(o);case 26:case 5:En(s,o,n),n&&l===null&&m&4&&C6(o),Dl(o,o.return);break;case 12:En(s,o,n);break;case 31:En(s,o,n),n&&m&4&&B6(s,o);break;case 13:En(s,o,n),n&&m&4&&w6(s,o);break;case 22:o.memoizedState===null&&En(s,o,n),Dl(o,o.return);break;case 30:break;default:En(s,o,n)}e=e.sibling}}function Gc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&pl(n))}function qc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&pl(t))}function Pe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)U6(t,e,n,l),e=e.sibling}function U6(t,e,n,l){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Pe(t,e,n,l),s&2048&&Cl(9,e);break;case 1:Pe(t,e,n,l);break;case 3:Pe(t,e,n,l),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&pl(t)));break;case 12:if(s&2048){Pe(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,m=o.id,S=o.onPostCommit;typeof S=="function"&&S(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Vt(e,e.return,T)}}else Pe(t,e,n,l);break;case 31:Pe(t,e,n,l);break;case 13:Pe(t,e,n,l);break;case 23:break;case 22:o=e.stateNode,m=e.alternate,e.memoizedState!==null?o._visibility&2?Pe(t,e,n,l):Rl(t,e):o._visibility&2?Pe(t,e,n,l):(o._visibility|=2,Si(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Gc(m,e);break;case 24:Pe(t,e,n,l),s&2048&&qc(e.alternate,e);break;default:Pe(t,e,n,l)}}function Si(t,e,n,l,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,m=e,S=n,T=l,D=m.flags;switch(m.tag){case 0:case 11:case 15:Si(o,m,S,T,s),Cl(8,m);break;case 23:break;case 22:var w=m.stateNode;m.memoizedState!==null?w._visibility&2?Si(o,m,S,T,s):Rl(o,m):(w._visibility|=2,Si(o,m,S,T,s)),s&&D&2048&&Gc(m.alternate,m);break;case 24:Si(o,m,S,T,s),s&&D&2048&&qc(m.alternate,m);break;default:Si(o,m,S,T,s)}e=e.sibling}}function Rl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,s=l.flags;switch(l.tag){case 22:Rl(n,l),s&2048&&Gc(l.alternate,l);break;case 24:Rl(n,l),s&2048&&qc(l.alternate,l);break;default:Rl(n,l)}e=e.sibling}}var Hl=8192;function bi(t,e,n){if(t.subtreeFlags&Hl)for(t=t.child;t!==null;)_6(t,e,n),t=t.sibling}function _6(t,e,n){switch(t.tag){case 26:bi(t,e,n),t.flags&Hl&&t.memoizedState!==null&&LS(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:bi(t,e,n);break;case 3:case 4:var l=Qe;Qe=gu(t.stateNode.containerInfo),bi(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Hl,Hl=16777216,bi(t,e,n),Hl=l):bi(t,e,n));break;default:bi(t,e,n)}}function G6(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function jl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];te=l,Y6(l,t)}G6(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)q6(t),t=t.sibling}function q6(t){switch(t.tag){case 0:case 11:case 15:jl(t),t.flags&2048&&Kn(9,t,t.return);break;case 3:jl(t);break;case 12:jl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,iu(t)):jl(t);break;default:jl(t)}}function iu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];te=l,Y6(l,t)}G6(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Kn(8,e,e.return),iu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,iu(e));break;default:iu(e)}t=t.sibling}}function Y6(t,e){for(;te!==null;){var n=te;switch(n.tag){case 0:case 11:case 15:Kn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:pl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,te=l;else t:for(n=t;te!==null;){l=te;var s=l.sibling,o=l.return;if(O6(l),l===n){te=null;break t}if(s!==null){s.return=o,te=s;break t}te=o}}}var q5={getCacheForType:function(t){var e=ie(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ie(Xt).controller.signal}},Y5=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ht=null,pt=null,gt=0,xt=0,De=null,Fn=!1,Ei=!1,Yc=!1,An=0,_t=0,Qn=0,Ra=0,Xc=0,Re=0,Ai=0,Ol=null,ve=null,kc=!1,lu=0,X6=0,su=1/0,uu=null,Pn=null,$t=0,Jn=null,Ti=null,Tn=0,Kc=0,Fc=null,k6=null,zl=0,Qc=null;function He(){return(Tt&2)!==0&&gt!==0?gt&-gt:N.T!==null?t0():uh()}function K6(){if(Re===0)if((gt&536870912)===0||St){var t=ps;ps<<=1,(ps&3932160)===0&&(ps=262144),Re=t}else Re=536870912;return t=Le.current,t!==null&&(t.flags|=32),Re}function Se(t,e,n){(t===Ht&&(xt===2||xt===9)||t.cancelPendingCommit!==null)&&(Mi(t,0),$n(t,gt,Re,!1)),el(t,n),((Tt&2)===0||t!==Ht)&&(t===Ht&&((Tt&2)===0&&(Ra|=n),_t===4&&$n(t,gt,Re,!1)),nn(t))}function F6(t,e,n){if((Tt&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||tl(t,e),s=l?K5(t,e):Jc(t,e,!0),o=l;do{if(s===0){Ei&&!l&&$n(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!X5(n)){s=Jc(t,e,!1),o=!1;continue}if(s===2){if(o=e,t.errorRecoveryDisabledLanes&o)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var S=t;s=Ol;var T=S.current.memoizedState.isDehydrated;if(T&&(Mi(S,m).flags|=256),m=Jc(S,m,!1),m!==2){if(Yc&&!T){S.errorRecoveryDisabledLanes|=o,Ra|=o,s=4;break t}o=ve,ve=s,o!==null&&(ve===null?ve=o:ve.push.apply(ve,o))}s=m}if(o=!1,s!==2)continue}}if(s===1){Mi(t,0),$n(t,e,0,!0);break}t:{switch(l=t,o=s,o){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:$n(l,e,Re,!Fn);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(s=lu+300-Ae(),10<s)){if($n(l,e,Re,!Fn),gs(l,0,!0)!==0)break t;Tn=e,l.timeoutHandle=M8(Q6.bind(null,l,n,ve,uu,kc,e,Re,Ra,Ai,Fn,o,"Throttled",-0,0),s);break t}Q6(l,n,ve,uu,kc,e,Re,Ra,Ai,Fn,o,null,-0,0)}}break}while(!0);nn(t)}function Q6(t,e,n,l,s,o,m,S,T,D,w,_,R,j){if(t.timeoutHandle=-1,_=e.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},_6(e,o,_);var W=(o&62914560)===o?lu-Ae():(o&4194048)===o?X6-Ae():0;if(W=CS(_,W),W!==null){Tn=o,t.cancelPendingCommit=W(n8.bind(null,t,e,o,n,l,s,m,S,T,w,_,null,R,j)),$n(t,o,m,!D);return}}n8(t,e,o,n,l,s,m,S,T)}function X5(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],o=s.getSnapshot;s=s.value;try{if(!xe(o(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function $n(t,e,n,l){e&=~Xc,e&=~Ra,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var o=31-Me(s),m=1<<o;l[o]=-1,s&=~m}n!==0&&ih(t,n,e)}function ru(){return(Tt&6)===0?(Bl(0),!1):!0}function Pc(){if(pt!==null){if(xt===0)var t=pt.return;else t=pt,dn=Ea=null,fc(t),mi=null,gl=0,t=pt;for(;t!==null;)x6(t.alternate,t),t=t.return;pt=null}}function Mi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,cS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Tn=0,Pc(),Ht=t,pt=n=cn(t.current,null),gt=e,xt=0,De=null,Fn=!1,Ei=tl(t,e),Yc=!1,Ai=Re=Xc=Ra=Qn=_t=0,ve=Ol=null,kc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var s=31-Me(l),o=1<<s;e|=t[s],l&=~o}return An=e,Ds(),n}function P6(t,e){ft=null,N.H=xl,e===hi||e===Ns?(e=fm(),xt=3):e===Io?(e=fm(),xt=4):xt=e===Lc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,pt===null&&(_t=1,$s(t,Ze(e,t.current)))}function J6(){var t=Le.current;return t===null?!0:(gt&4194048)===gt?qe===null:(gt&62914560)===gt||(gt&536870912)!==0?t===qe:!1}function $6(){var t=N.H;return N.H=xl,t===null?xl:t}function W6(){var t=N.A;return N.A=q5,t}function ou(){_t=4,Fn||(gt&4194048)!==gt&&Le.current!==null||(Ei=!0),(Qn&134217727)===0&&(Ra&134217727)===0||Ht===null||$n(Ht,gt,Re,!1)}function Jc(t,e,n){var l=Tt;Tt|=2;var s=$6(),o=W6();(Ht!==t||gt!==e)&&(uu=null,Mi(t,e)),e=!1;var m=_t;t:do try{if(xt!==0&&pt!==null){var S=pt,T=De;switch(xt){case 8:Pc(),m=6;break t;case 3:case 2:case 9:case 6:Le.current===null&&(e=!0);var D=xt;if(xt=0,De=null,xi(t,S,T,D),n&&Ei){m=0;break t}break;default:D=xt,xt=0,De=null,xi(t,S,T,D)}}k5(),m=_t;break}catch(w){P6(t,w)}while(!0);return e&&t.shellSuspendCounter++,dn=Ea=null,Tt=l,N.H=s,N.A=o,pt===null&&(Ht=null,gt=0,Ds()),m}function k5(){for(;pt!==null;)I6(pt)}function K5(t,e){var n=Tt;Tt|=2;var l=$6(),s=W6();Ht!==t||gt!==e?(uu=null,su=Ae()+500,Mi(t,e)):Ei=tl(t,e);t:do try{if(xt!==0&&pt!==null){e=pt;var o=De;e:switch(xt){case 1:xt=0,De=null,xi(t,e,o,1);break;case 2:case 9:if(om(o)){xt=0,De=null,t8(e);break}e=function(){xt!==2&&xt!==9||Ht!==t||(xt=7),nn(t)},o.then(e,e);break t;case 3:xt=7;break t;case 4:xt=5;break t;case 7:om(o)?(xt=0,De=null,t8(e)):(xt=0,De=null,xi(t,e,o,7));break;case 5:var m=null;switch(pt.tag){case 26:m=pt.memoizedState;case 5:case 27:var S=pt;if(m?U8(m):S.stateNode.complete){xt=0,De=null;var T=S.sibling;if(T!==null)pt=T;else{var D=S.return;D!==null?(pt=D,cu(D)):pt=null}break e}}xt=0,De=null,xi(t,e,o,5);break;case 6:xt=0,De=null,xi(t,e,o,6);break;case 8:Pc(),_t=6;break t;default:throw Error(c(462))}}F5();break}catch(w){P6(t,w)}while(!0);return dn=Ea=null,N.H=l,N.A=s,Tt=n,pt!==null?0:(Ht=null,gt=0,Ds(),_t)}function F5(){for(;pt!==null&&!y3();)I6(pt)}function I6(t){var e=T6(t.alternate,t,An);t.memoizedProps=t.pendingProps,e===null?cu(t):pt=e}function t8(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=g6(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=g6(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:fc(e);default:x6(n,e),e=pt=Wh(e,An),e=T6(n,e,An)}t.memoizedProps=t.pendingProps,e===null?cu(t):pt=e}function xi(t,e,n,l){dn=Ea=null,fc(e),mi=null,gl=0;var s=e.return;try{if(B5(t,s,e,n,gt)){_t=1,$s(t,Ze(n,t.current)),pt=null;return}}catch(o){if(s!==null)throw pt=s,o;_t=1,$s(t,Ze(n,t.current)),pt=null;return}e.flags&32768?(St||l===1?t=!0:Ei||(gt&536870912)!==0?t=!1:(Fn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Le.current,l!==null&&l.tag===13&&(l.flags|=16384))),e8(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){e8(e,Fn);return}t=e.return;var n=Z5(e.alternate,e,An);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);_t===0&&(_t=5)}function e8(t,e){do{var n=U5(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);_t=6,pt=null}function n8(t,e,n,l,s,o,m,S,T){t.cancelPendingCommit=null;do fu();while($t!==0);if((Tt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(o=e.lanes|e.childLanes,o|=Zo,V3(t,n,o,m,S,T),t===Ht&&(pt=Ht=null,gt=0),Ti=e,Jn=t,Tn=n,Kc=o,Fc=s,k6=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,$5(hs,function(){return u8(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,s=X.p,X.p=2,m=Tt,Tt|=4;try{_5(t,e,n)}finally{Tt=m,X.p=s,N.T=l}}$t=1,a8(),i8(),l8()}}function a8(){if($t===1){$t=0;var t=Jn,e=Ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var l=X.p;X.p=2;var s=Tt;Tt|=4;try{N6(e,t);var o=r0,m=Yh(t.containerInfo),S=o.focusedElem,T=o.selectionRange;if(m!==S&&S&&S.ownerDocument&&qh(S.ownerDocument.documentElement,S)){if(T!==null&&Oo(S)){var D=T.start,w=T.end;if(w===void 0&&(w=D),"selectionStart"in S)S.selectionStart=D,S.selectionEnd=Math.min(w,S.value.length);else{var _=S.ownerDocument||document,R=_&&_.defaultView||window;if(R.getSelection){var j=R.getSelection(),W=S.textContent.length,it=Math.min(T.start,W),Dt=T.end===void 0?it:Math.min(T.end,W);!j.extend&&it>Dt&&(m=Dt,Dt=it,it=m);var V=Gh(S,it),M=Gh(S,Dt);if(V&&M&&(j.rangeCount!==1||j.anchorNode!==V.node||j.anchorOffset!==V.offset||j.focusNode!==M.node||j.focusOffset!==M.offset)){var C=_.createRange();C.setStart(V.node,V.offset),j.removeAllRanges(),it>Dt?(j.addRange(C),j.extend(M.node,M.offset)):(C.setEnd(M.node,M.offset),j.addRange(C))}}}}for(_=[],j=S;j=j.parentNode;)j.nodeType===1&&_.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<_.length;S++){var Z=_[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Tu=!!u0,r0=u0=null}finally{Tt=s,X.p=l,N.T=n}}t.current=e,$t=2}}function i8(){if($t===2){$t=0;var t=Jn,e=Ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var l=X.p;X.p=2;var s=Tt;Tt|=4;try{j6(t,e.alternate,e)}finally{Tt=s,X.p=l,N.T=n}}$t=3}}function l8(){if($t===4||$t===3){$t=0,g3();var t=Jn,e=Ti,n=Tn,l=k6;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,Ti=Jn=null,s8(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Pn=null),mo(n),e=e.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(Ii,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=N.T,s=X.p,X.p=2,N.T=null;try{for(var o=t.onRecoverableError,m=0;m<l.length;m++){var S=l[m];o(S.value,{componentStack:S.stack})}}finally{N.T=e,X.p=s}}(Tn&3)!==0&&fu(),nn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Qc?zl++:(zl=0,Qc=t):zl=0,Bl(0)}}function s8(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,pl(e)))}function fu(){return a8(),i8(),l8(),u8()}function u8(){if($t!==5)return!1;var t=Jn,e=Kc;Kc=0;var n=mo(Tn),l=N.T,s=X.p;try{X.p=32>n?32:n,N.T=null,n=Fc,Fc=null;var o=Jn,m=Tn;if($t=0,Ti=Jn=null,Tn=0,(Tt&6)!==0)throw Error(c(331));var S=Tt;if(Tt|=4,q6(o.current),U6(o,o.current,m,n),Tt=S,Bl(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(Ii,o)}catch{}return!0}finally{X.p=s,N.T=l,s8(t,e)}}function r8(t,e,n){e=Ze(n,e),e=Vc(t.stateNode,e,2),t=Yn(t,e,2),t!==null&&(el(t,2),nn(t))}function Vt(t,e,n){if(t.tag===3)r8(t,t,n);else for(;e!==null;){if(e.tag===3){r8(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Pn===null||!Pn.has(l))){t=Ze(n,t),n=o6(2),l=Yn(e,n,2),l!==null&&(c6(n,l,e,t),el(l,2),nn(l));break}}e=e.return}}function $c(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Y5;var s=new Set;l.set(e,s)}else s=l.get(e),s===void 0&&(s=new Set,l.set(e,s));s.has(n)||(Yc=!0,s.add(n),t=Q5.bind(null,t,e,n),e.then(t,t))}function Q5(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ht===t&&(gt&n)===n&&(_t===4||_t===3&&(gt&62914560)===gt&&300>Ae()-lu?(Tt&2)===0&&Mi(t,0):Xc|=n,Ai===gt&&(Ai=0)),nn(t)}function o8(t,e){e===0&&(e=ah()),t=va(t,e),t!==null&&(el(t,e),nn(t))}function P5(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),o8(t,n)}function J5(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),o8(t,n)}function $5(t,e){return oo(t,e)}var du=null,Vi=null,Wc=!1,hu=!1,Ic=!1,Wn=0;function nn(t){t!==Vi&&t.next===null&&(Vi===null?du=Vi=t:Vi=Vi.next=t),hu=!0,Wc||(Wc=!0,I5())}function Bl(t,e){if(!Ic&&hu){Ic=!0;do for(var n=!1,l=du;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var o=0;else{var m=l.suspendedLanes,S=l.pingedLanes;o=(1<<31-Me(42|t)+1)-1,o&=s&~(m&~S),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,h8(l,o))}else o=gt,o=gs(l,l===Ht?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||tl(l,o)||(n=!0,h8(l,o));l=l.next}while(n);Ic=!1}}function W5(){c8()}function c8(){hu=Wc=!1;var t=0;Wn!==0&&oS()&&(t=Wn);for(var e=Ae(),n=null,l=du;l!==null;){var s=l.next,o=f8(l,e);o===0?(l.next=null,n===null?du=s:n.next=s,s===null&&(Vi=n)):(n=l,(t!==0||(o&3)!==0)&&(hu=!0)),l=s}$t!==0&&$t!==5||Bl(t),Wn!==0&&(Wn=0)}function f8(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var m=31-Me(o),S=1<<m,T=s[m];T===-1?((S&n)===0||(S&l)!==0)&&(s[m]=x3(S,e)):T<=e&&(t.expiredLanes|=S),o&=~S}if(e=Ht,n=gt,n=gs(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(xt===2||xt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&co(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||tl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&co(l),mo(n)){case 2:case 8:n=eh;break;case 32:n=hs;break;case 268435456:n=nh;break;default:n=hs}return l=d8.bind(null,t),n=oo(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&co(l),t.callbackPriority=2,t.callbackNode=null,2}function d8(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(fu()&&t.callbackNode!==n)return null;var l=gt;return l=gs(t,t===Ht?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(F6(t,l,e),f8(t,Ae()),t.callbackNode!=null&&t.callbackNode===n?d8.bind(null,t):null)}function h8(t,e){if(fu())return null;F6(t,e,!0)}function I5(){fS(function(){(Tt&6)!==0?oo(th,W5):c8()})}function t0(){if(Wn===0){var t=fi;t===0&&(t=ms,ms<<=1,(ms&261888)===0&&(ms=256)),Wn=t}return Wn}function m8(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Es(""+t)}function p8(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function tS(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var o=m8((s[he]||null).action),m=l.submitter;m&&(e=(e=m[he]||null)?m8(e.formAction):m.getAttribute("formAction"),e!==null&&(o=e,m=null));var S=new xs("action","action",null,l,s);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Wn!==0){var T=m?p8(s,m):new FormData(s);bc(n,{pending:!0,data:T,method:s.method,action:o},null,T)}}else typeof o=="function"&&(S.preventDefault(),T=m?p8(s,m):new FormData(s),bc(n,{pending:!0,data:T,method:s.method,action:o},o,T))},currentTarget:s}]})}}for(var e0=0;e0<No.length;e0++){var n0=No[e0],eS=n0.toLowerCase(),nS=n0[0].toUpperCase()+n0.slice(1);Fe(eS,"on"+nS)}Fe(Kh,"onAnimationEnd"),Fe(Fh,"onAnimationIteration"),Fe(Qh,"onAnimationStart"),Fe("dblclick","onDoubleClick"),Fe("focusin","onFocus"),Fe("focusout","onBlur"),Fe(v5,"onTransitionRun"),Fe(S5,"onTransitionStart"),Fe(b5,"onTransitionCancel"),Fe(Ph,"onTransitionEnd"),$a("onMouseEnter",["mouseout","mouseover"]),$a("onMouseLeave",["mouseout","mouseover"]),$a("onPointerEnter",["pointerout","pointerover"]),$a("onPointerLeave",["pointerout","pointerover"]),ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),aS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function y8(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],s=l.event;l=l.listeners;t:{var o=void 0;if(e)for(var m=l.length-1;0<=m;m--){var S=l[m],T=S.instance,D=S.currentTarget;if(S=S.listener,T!==o&&s.isPropagationStopped())break t;o=S,s.currentTarget=D;try{o(s)}catch(w){Cs(w)}s.currentTarget=null,o=T}else for(m=0;m<l.length;m++){if(S=l[m],T=S.instance,D=S.currentTarget,S=S.listener,T!==o&&s.isPropagationStopped())break t;o=S,s.currentTarget=D;try{o(s)}catch(w){Cs(w)}s.currentTarget=null,o=T}}}}function yt(t,e){var n=e[po];n===void 0&&(n=e[po]=new Set);var l=t+"__bubble";n.has(l)||(g8(e,t,2,!1),n.add(l))}function a0(t,e,n){var l=0;e&&(l|=4),g8(n,t,l,e)}var mu="_reactListening"+Math.random().toString(36).slice(2);function i0(t){if(!t[mu]){t[mu]=!0,ch.forEach(function(n){n!=="selectionchange"&&(aS.has(n)||a0(n,!1,t),a0(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[mu]||(e[mu]=!0,a0("selectionchange",!1,e))}}function g8(t,e,n,l){switch(K8(e)){case 2:var s=HS;break;case 8:s=jS;break;default:s=S0}n=s.bind(null,e,n,t),s=void 0,!Mo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),l?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function l0(t,e,n,l,s){var o=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var S=l.stateNode.containerInfo;if(S===s)break;if(m===4)for(m=l.return;m!==null;){var T=m.tag;if((T===3||T===4)&&m.stateNode.containerInfo===s)return;m=m.return}for(;S!==null;){if(m=Qa(S),m===null)return;if(T=m.tag,T===5||T===6||T===26||T===27){l=o=m;continue t}S=S.parentNode}}l=l.return}Ah(function(){var D=o,w=Ao(n),_=[];t:{var R=Jh.get(t);if(R!==void 0){var j=xs,W=t;switch(t){case"keypress":if(Ts(n)===0)break t;case"keydown":case"keyup":j=J3;break;case"focusin":W="focus",j=Co;break;case"focusout":W="blur",j=Co;break;case"beforeblur":case"afterblur":j=Co;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Z3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=I3;break;case Kh:case Fh:case Qh:j=G3;break;case Ph:j=e5;break;case"scroll":case"scrollend":j=w3;break;case"wheel":j=a5;break;case"copy":case"cut":case"paste":j=Y3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Lh;break;case"toggle":case"beforetoggle":j=l5}var it=(e&4)!==0,Dt=!it&&(t==="scroll"||t==="scrollend"),V=it?R!==null?R+"Capture":null:R;it=[];for(var M=D,C;M!==null;){var Z=M;if(C=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||C===null||V===null||(Z=il(M,V),Z!=null&&it.push(Nl(M,Z,C))),Dt)break;M=M.return}0<it.length&&(R=new j(R,W,null,n,w),_.push({event:R,listeners:it}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout",R&&n!==Eo&&(W=n.relatedTarget||n.fromElement)&&(Qa(W)||W[Fa]))break t;if((j||R)&&(R=w.window===w?w:(R=w.ownerDocument)?R.defaultView||R.parentWindow:window,j?(W=n.relatedTarget||n.toElement,j=D,W=W?Qa(W):null,W!==null&&(Dt=d(W),it=W.tag,W!==Dt||it!==5&&it!==27&&it!==6)&&(W=null)):(j=null,W=D),j!==W)){if(it=xh,Z="onMouseLeave",V="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(it=Lh,Z="onPointerLeave",V="onPointerEnter",M="pointer"),Dt=j==null?R:al(j),C=W==null?R:al(W),R=new it(Z,M+"leave",j,n,w),R.target=Dt,R.relatedTarget=C,Z=null,Qa(w)===D&&(it=new it(V,M+"enter",W,n,w),it.target=C,it.relatedTarget=Dt,Z=it),Dt=Z,j&&W)e:{for(it=iS,V=j,M=W,C=0,Z=V;Z;Z=it(Z))C++;Z=0;for(var nt=M;nt;nt=it(nt))Z++;for(;0<C-Z;)V=it(V),C--;for(;0<Z-C;)M=it(M),Z--;for(;C--;){if(V===M||M!==null&&V===M.alternate){it=V;break e}V=it(V),M=it(M)}it=null}else it=null;j!==null&&v8(_,R,j,it,!1),W!==null&&Dt!==null&&v8(_,Dt,W,it,!0)}}t:{if(R=D?al(D):window,j=R.nodeName&&R.nodeName.toLowerCase(),j==="select"||j==="input"&&R.type==="file")var Et=Bh;else if(Oh(R))if(wh)Et=p5;else{Et=h5;var et=d5}else j=R.nodeName,!j||j.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&bo(D.elementType)&&(Et=Bh):Et=m5;if(Et&&(Et=Et(t,D))){zh(_,Et,n,w);break t}et&&et(t,R,D),t==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&So(R,"number",R.value)}switch(et=D?al(D):window,t){case"focusin":(Oh(et)||et.contentEditable==="true")&&(ai=et,zo=D,dl=null);break;case"focusout":dl=zo=ai=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,Xh(_,n,w);break;case"selectionchange":if(g5)break;case"keydown":case"keyup":Xh(_,n,w)}var dt;if(Ro)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else ni?Hh(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(Ch&&n.locale!=="ko"&&(ni||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&ni&&(dt=Th()):(wn=w,xo="value"in wn?wn.value:wn.textContent,ni=!0)),et=pu(D,vt),0<et.length&&(vt=new Vh(vt,t,null,n,w),_.push({event:vt,listeners:et}),dt?vt.data=dt:(dt=jh(n),dt!==null&&(vt.data=dt)))),(dt=u5?r5(t,n):o5(t,n))&&(vt=pu(D,"onBeforeInput"),0<vt.length&&(et=new Vh("onBeforeInput","beforeinput",null,n,w),_.push({event:et,listeners:vt}),et.data=dt)),tS(_,t,D,n,w)}y8(_,e)})}function Nl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function pu(t,e){for(var n=e+"Capture",l=[];t!==null;){var s=t,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=il(t,n),s!=null&&l.unshift(Nl(t,s,o)),s=il(t,e),s!=null&&l.push(Nl(t,s,o))),t.tag===3)return l;t=t.return}return[]}function iS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function v8(t,e,n,l,s){for(var o=e._reactName,m=[];n!==null&&n!==l;){var S=n,T=S.alternate,D=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||D===null||(T=D,s?(D=il(n,o),D!=null&&m.unshift(Nl(n,D,T))):s||(D=il(n,o),D!=null&&m.push(Nl(n,D,T)))),n=n.return}m.length!==0&&t.push({event:e,listeners:m})}var lS=/\r\n?/g,sS=/\u0000|\uFFFD/g;function S8(t){return(typeof t=="string"?t:""+t).replace(lS,`
9
- `).replace(sS,"")}function b8(t,e){return e=S8(e),S8(t)===e}function Ct(t,e,n,l,s,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ia(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ia(t,""+l);break;case"className":Ss(t,"class",l);break;case"tabIndex":Ss(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ss(t,n,l);break;case"style":bh(t,l,o);break;case"data":if(e!=="object"){Ss(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Es(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",s.name,s,null),Ct(t,e,"formEncType",s.formEncType,s,null),Ct(t,e,"formMethod",s.formMethod,s,null),Ct(t,e,"formTarget",s.formTarget,s,null)):(Ct(t,e,"encType",s.encType,s,null),Ct(t,e,"method",s.method,s,null),Ct(t,e,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Es(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=rn);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Es(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":yt("beforetoggle",t),yt("toggle",t),vs(t,"popover",l);break;case"xlinkActuate":un(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":un(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":un(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":un(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":un(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":un(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":un(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":vs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=z3.get(n)||n,vs(t,n,l))}}function s0(t,e,n,l,s,o){switch(n){case"style":bh(t,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Ia(t,l):(typeof l=="number"||typeof l=="bigint")&&Ia(t,""+l);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fh.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),o=t[he]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,s),typeof l=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,s);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):vs(t,n,l)}}}function se(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var l=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ct(t,e,o,m,n,null)}}s&&Ct(t,e,"srcSet",n.srcSet,n,null),l&&Ct(t,e,"src",n.src,n,null);return;case"input":yt("invalid",t);var S=o=m=s=null,T=null,D=null;for(l in n)if(n.hasOwnProperty(l)){var w=n[l];if(w!=null)switch(l){case"name":s=w;break;case"type":m=w;break;case"checked":T=w;break;case"defaultChecked":D=w;break;case"value":o=w;break;case"defaultValue":S=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,e));break;default:Ct(t,e,l,w,n,null)}}yh(t,o,S,T,D,m,s,!1);return;case"select":yt("invalid",t),l=m=o=null;for(s in n)if(n.hasOwnProperty(s)&&(S=n[s],S!=null))switch(s){case"value":o=S;break;case"defaultValue":m=S;break;case"multiple":l=S;default:Ct(t,e,s,S,n,null)}e=o,n=m,t.multiple=!!l,e!=null?Wa(t,!!l,e,!1):n!=null&&Wa(t,!!l,n,!0);return;case"textarea":yt("invalid",t),o=s=l=null;for(m in n)if(n.hasOwnProperty(m)&&(S=n[m],S!=null))switch(m){case"value":l=S;break;case"defaultValue":s=S;break;case"children":o=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(c(91));break;default:Ct(t,e,m,S,n,null)}vh(t,l,s,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ct(t,e,T,l,n,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(l=0;l<wl.length;l++)yt(wl[l],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(l=n[D],l!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ct(t,e,D,l,n,null)}return;default:if(bo(e)){for(w in n)n.hasOwnProperty(w)&&(l=n[w],l!==void 0&&s0(t,e,w,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&Ct(t,e,S,l,n,null))}function uS(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,m=null,S=null,T=null,D=null,w=null;for(j in n){var _=n[j];if(n.hasOwnProperty(j)&&_!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":T=_;default:l.hasOwnProperty(j)||Ct(t,e,j,null,l,_)}}for(var R in l){var j=l[R];if(_=n[R],l.hasOwnProperty(R)&&(j!=null||_!=null))switch(R){case"type":o=j;break;case"name":s=j;break;case"checked":D=j;break;case"defaultChecked":w=j;break;case"value":m=j;break;case"defaultValue":S=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(c(137,e));break;default:j!==_&&Ct(t,e,R,j,l,_)}}vo(t,m,S,T,D,w,o,s);return;case"select":j=m=S=R=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":j=T;default:l.hasOwnProperty(o)||Ct(t,e,o,null,l,T)}for(s in l)if(o=l[s],T=n[s],l.hasOwnProperty(s)&&(o!=null||T!=null))switch(s){case"value":R=o;break;case"defaultValue":S=o;break;case"multiple":m=o;default:o!==T&&Ct(t,e,s,o,l,T)}e=S,n=m,l=j,R!=null?Wa(t,!!n,R,!1):!!l!=!!n&&(e!=null?Wa(t,!!n,e,!0):Wa(t,!!n,n?[]:"",!1));return;case"textarea":j=R=null;for(S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ct(t,e,S,null,l,s)}for(m in l)if(s=l[m],o=n[m],l.hasOwnProperty(m)&&(s!=null||o!=null))switch(m){case"value":R=s;break;case"defaultValue":j=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(c(91));break;default:s!==o&&Ct(t,e,m,s,l,o)}gh(t,R,j);return;case"option":for(var W in n)if(R=n[W],n.hasOwnProperty(W)&&R!=null&&!l.hasOwnProperty(W))switch(W){case"selected":t.selected=!1;break;default:Ct(t,e,W,null,l,R)}for(T in l)if(R=l[T],j=n[T],l.hasOwnProperty(T)&&R!==j&&(R!=null||j!=null))switch(T){case"selected":t.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Ct(t,e,T,R,l,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var it in n)R=n[it],n.hasOwnProperty(it)&&R!=null&&!l.hasOwnProperty(it)&&Ct(t,e,it,null,l,R);for(D in l)if(R=l[D],j=n[D],l.hasOwnProperty(D)&&R!==j&&(R!=null||j!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:Ct(t,e,D,R,l,j)}return;default:if(bo(e)){for(var Dt in n)R=n[Dt],n.hasOwnProperty(Dt)&&R!==void 0&&!l.hasOwnProperty(Dt)&&s0(t,e,Dt,void 0,l,R);for(w in l)R=l[w],j=n[w],!l.hasOwnProperty(w)||R===j||R===void 0&&j===void 0||s0(t,e,w,R,l,j);return}}for(var V in n)R=n[V],n.hasOwnProperty(V)&&R!=null&&!l.hasOwnProperty(V)&&Ct(t,e,V,null,l,R);for(_ in l)R=l[_],j=n[_],!l.hasOwnProperty(_)||R===j||R==null&&j==null||Ct(t,e,_,R,l,j)}function E8(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],o=s.transferSize,m=s.initiatorType,S=s.duration;if(o&&S&&E8(m)){for(m=0,S=s.responseEnd,l+=1;l<n.length;l++){var T=n[l],D=T.startTime;if(D>S)break;var w=T.transferSize,_=T.initiatorType;w&&E8(_)&&(T=T.responseEnd,m+=w*(T<S?1:(S-D)/(T-D)))}if(--l,e+=8*(o+m)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var u0=null,r0=null;function yu(t){return t.nodeType===9?t:t.ownerDocument}function A8(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function T8(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function o0(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var c0=null;function oS(){var t=window.event;return t&&t.type==="popstate"?t===c0?!1:(c0=t,!0):(c0=null,!1)}var M8=typeof setTimeout=="function"?setTimeout:void 0,cS=typeof clearTimeout=="function"?clearTimeout:void 0,x8=typeof Promise=="function"?Promise:void 0,fS=typeof queueMicrotask=="function"?queueMicrotask:typeof x8<"u"?function(t){return x8.resolve(null).then(t).catch(dS)}:M8;function dS(t){setTimeout(function(){throw t})}function In(t){return t==="head"}function V8(t,e){var n=e,l=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(s),Ri(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Zl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Zl(n);for(var o=n.firstChild;o;){var m=o.nextSibling,S=o.nodeName;o[nl]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&Zl(t.ownerDocument.body);n=s}while(n);Ri(e)}function L8(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function f0(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":f0(n),yo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function hS(t,e,n,l){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[nl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=Ye(t.nextSibling),t===null)break}return null}function mS(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ye(t.nextSibling),t===null))return null;return t}function C8(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ye(t.nextSibling),t===null))return null;return t}function d0(t){return t.data==="$?"||t.data==="$~"}function h0(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function pS(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ye(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var m0=null;function D8(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ye(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function R8(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function H8(t,e,n){switch(e=yu(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Zl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);yo(t)}var Xe=new Map,j8=new Set;function gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=X.d;X.d={f:yS,r:gS,D:vS,C:SS,L:bS,m:ES,X:TS,S:AS,M:MS};function yS(){var t=Mn.f(),e=ru();return t||e}function gS(t){var e=Pa(t);e!==null&&e.tag===5&&e.type==="form"?Pm(e):Mn.r(t)}var Li=typeof document>"u"?null:document;function O8(t,e,n){var l=Li;if(l&&typeof e=="string"&&e){var s=we(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),j8.has(s)||(j8.add(s),t={rel:t,crossOrigin:n,href:e},l.querySelector(s)===null&&(e=l.createElement("link"),se(e,"link",t),It(e),l.head.appendChild(e)))}}function vS(t){Mn.D(t),O8("dns-prefetch",t,null)}function SS(t,e){Mn.C(t,e),O8("preconnect",t,e)}function bS(t,e,n){Mn.L(t,e,n);var l=Li;if(l&&t&&e){var s='link[rel="preload"][as="'+we(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+we(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+we(n.imageSizes)+'"]')):s+='[href="'+we(t)+'"]';var o=s;switch(e){case"style":o=Ci(t);break;case"script":o=Di(t)}Xe.has(o)||(t=E({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Xe.set(o,t),l.querySelector(s)!==null||e==="style"&&l.querySelector(Ul(o))||e==="script"&&l.querySelector(_l(o))||(e=l.createElement("link"),se(e,"link",t),It(e),l.head.appendChild(e)))}}function ES(t,e){Mn.m(t,e);var n=Li;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+we(l)+'"][href="'+we(t)+'"]',o=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Di(t)}if(!Xe.has(o)&&(t=E({rel:"modulepreload",href:t},e),Xe.set(o,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_l(o)))return}l=n.createElement("link"),se(l,"link",t),It(l),n.head.appendChild(l)}}}function AS(t,e,n){Mn.S(t,e,n);var l=Li;if(l&&t){var s=Ja(l).hoistableStyles,o=Ci(t);e=e||"default";var m=s.get(o);if(!m){var S={loading:0,preload:null};if(m=l.querySelector(Ul(o)))S.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Xe.get(o))&&p0(t,n);var T=m=l.createElement("link");It(T),se(T,"link",t),T._p=new Promise(function(D,w){T.onload=D,T.onerror=w}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,vu(m,e,l)}m={type:"stylesheet",instance:m,count:1,state:S},s.set(o,m)}}}function TS(t,e){Mn.X(t,e);var n=Li;if(n&&t){var l=Ja(n).hoistableScripts,s=Di(t),o=l.get(s);o||(o=n.querySelector(_l(s)),o||(t=E({src:t,async:!0},e),(e=Xe.get(s))&&y0(t,e),o=n.createElement("script"),It(o),se(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function MS(t,e){Mn.M(t,e);var n=Li;if(n&&t){var l=Ja(n).hoistableScripts,s=Di(t),o=l.get(s);o||(o=n.querySelector(_l(s)),o||(t=E({src:t,async:!0,type:"module"},e),(e=Xe.get(s))&&y0(t,e),o=n.createElement("script"),It(o),se(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function z8(t,e,n,l){var s=(s=lt.current)?gu(s):null;if(!s)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ci(n.href),n=Ja(s).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Ci(n.href);var o=Ja(s).hoistableStyles,m=o.get(t);if(m||(s=s.ownerDocument||s,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,m),(o=s.querySelector(Ul(t)))&&!o._p&&(m.instance=o,m.state.loading=5),Xe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Xe.set(t,n),o||xS(s,t,n,m.state))),e&&l===null)throw Error(c(528,""));return m}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Di(n),n=Ja(s).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Ci(t){return'href="'+we(t)+'"'}function Ul(t){return'link[rel="stylesheet"]['+t+"]"}function B8(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function xS(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),se(e,"link",n),It(e),t.head.appendChild(e))}function Di(t){return'[src="'+we(t)+'"]'}function _l(t){return"script[async]"+t}function w8(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+we(n.href)+'"]');if(l)return e.instance=l,It(l),l;var s=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),It(l),se(l,"style",s),vu(l,n.precedence,t),e.instance=l;case"stylesheet":s=Ci(n.href);var o=t.querySelector(Ul(s));if(o)return e.state.loading|=4,e.instance=o,It(o),o;l=B8(n),(s=Xe.get(s))&&p0(l,s),o=(t.ownerDocument||t).createElement("link"),It(o);var m=o;return m._p=new Promise(function(S,T){m.onload=S,m.onerror=T}),se(o,"link",l),e.state.loading|=4,vu(o,n.precedence,t),e.instance=o;case"script":return o=Di(n.src),(s=t.querySelector(_l(o)))?(e.instance=s,It(s),s):(l=n,(s=Xe.get(o))&&(l=E({},n),y0(l,s)),t=t.ownerDocument||t,s=t.createElement("script"),It(s),se(s,"link",l),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,vu(l,n.precedence,t));return e.instance}function vu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,o=s,m=0;m<l.length;m++){var S=l[m];if(S.dataset.precedence===e)o=S;else if(o!==s)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function p0(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function y0(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Su=null;function N8(t,e,n){if(Su===null){var l=new Map,s=Su=new Map;s.set(n,l)}else s=Su,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var o=n[s];if(!(o[nl]||o[ne]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(e)||"";m=t+m;var S=l.get(m);S?S.push(o):l.set(m,[o])}}return l}function Z8(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function VS(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function U8(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function LS(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Ci(l.href),o=e.querySelector(Ul(s));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=bu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,It(o);return}o=e.ownerDocument||e,l=B8(l),(s=Xe.get(s))&&p0(l,s),o=o.createElement("link"),It(o);var m=o;m._p=new Promise(function(S,T){m.onload=S,m.onerror=T}),se(o,"link",l),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=bu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var g0=0;function CS(t,e){return t.stylesheets&&t.count===0&&Au(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Au(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&g0===0&&(g0=62500*rS());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Au(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>g0?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Au(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Eu=null;function Au(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Eu=new Map,e.forEach(DS,t),Eu=null,bu.call(t))}function DS(t,e){if(!(e.state.loading&4)){var n=Eu.get(t);if(n)var l=n.get(null);else{n=new Map,Eu.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var m=s[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}s=e.instance,m=s.getAttribute("data-precedence"),o=n.get(m)||l,o===l&&n.set(null,s),n.set(m,s),this.count++,l=bu.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),o?o.parentNode.insertBefore(s,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var Gl={$$typeof:q,Provider:null,Consumer:null,_currentValue:ot,_currentValue2:ot,_threadCount:0};function RS(t,e,n,l,s,o,m,S,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fo(0),this.hiddenUpdates=fo(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function _8(t,e,n,l,s,o,m,S,T,D,w,_){return t=new RS(t,e,n,m,T,D,w,_,S),e=1,o===!0&&(e|=24),o=Ve(3,null,null,e),t.current=o,o.stateNode=t,e=Jo(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},tc(o),t}function G8(t){return t?(t=si,t):si}function q8(t,e,n,l,s,o){s=G8(s),l.context===null?l.context=s:l.pendingContext=s,l=qn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Yn(t,l,e),n!==null&&(Se(n,t,e),Sl(n,t,e))}function Y8(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function v0(t,e){Y8(t,e),(t=t.alternate)&&Y8(t,e)}function X8(t){if(t.tag===13||t.tag===31){var e=va(t,67108864);e!==null&&Se(e,t,67108864),v0(t,67108864)}}function k8(t){if(t.tag===13||t.tag===31){var e=He();e=ho(e);var n=va(t,e);n!==null&&Se(n,t,e),v0(t,e)}}var Tu=!0;function HS(t,e,n,l){var s=N.T;N.T=null;var o=X.p;try{X.p=2,S0(t,e,n,l)}finally{X.p=o,N.T=s}}function jS(t,e,n,l){var s=N.T;N.T=null;var o=X.p;try{X.p=8,S0(t,e,n,l)}finally{X.p=o,N.T=s}}function S0(t,e,n,l){if(Tu){var s=b0(l);if(s===null)l0(t,e,l,Mu,n),F8(t,l);else if(zS(s,t,e,n,l))l.stopPropagation();else if(F8(t,l),e&4&&-1<OS.indexOf(t)){for(;s!==null;){var o=Pa(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=ha(o.pendingLanes);if(m!==0){var S=o;for(S.pendingLanes|=2,S.entangledLanes|=2;m;){var T=1<<31-Me(m);S.entanglements[1]|=T,m&=~T}nn(o),(Tt&6)===0&&(su=Ae()+500,Bl(0))}}break;case 31:case 13:S=va(o,2),S!==null&&Se(S,o,2),ru(),v0(o,2)}if(o=b0(l),o===null&&l0(t,e,l,Mu,n),o===s)break;s=o}s!==null&&l.stopPropagation()}else l0(t,e,l,null,n)}}function b0(t){return t=Ao(t),E0(t)}var Mu=null;function E0(t){if(Mu=null,t=Qa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=g(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Mu=t,null}function K8(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(v3()){case th:return 2;case eh:return 8;case hs:case S3:return 32;case nh:return 268435456;default:return 32}default:return 32}}var A0=!1,ta=null,ea=null,na=null,ql=new Map,Yl=new Map,aa=[],OS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function F8(t,e){switch(t){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":ql.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yl.delete(e.pointerId)}}function Xl(t,e,n,l,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Pa(e),e!==null&&X8(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function zS(t,e,n,l,s){switch(e){case"focusin":return ta=Xl(ta,t,e,n,l,s),!0;case"dragenter":return ea=Xl(ea,t,e,n,l,s),!0;case"mouseover":return na=Xl(na,t,e,n,l,s),!0;case"pointerover":var o=s.pointerId;return ql.set(o,Xl(ql.get(o)||null,t,e,n,l,s)),!0;case"gotpointercapture":return o=s.pointerId,Yl.set(o,Xl(Yl.get(o)||null,t,e,n,l,s)),!0}return!1}function Q8(t){var e=Qa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=g(n),e!==null){t.blockedOn=e,rh(t.priority,function(){k8(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,rh(t.priority,function(){k8(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=b0(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Eo=l,n.target.dispatchEvent(l),Eo=null}else return e=Pa(n),e!==null&&X8(e),t.blockedOn=n,!1;e.shift()}return!0}function P8(t,e,n){xu(t)&&n.delete(e)}function BS(){A0=!1,ta!==null&&xu(ta)&&(ta=null),ea!==null&&xu(ea)&&(ea=null),na!==null&&xu(na)&&(na=null),ql.forEach(P8),Yl.forEach(P8)}function Vu(t,e){t.blockedOn===e&&(t.blockedOn=null,A0||(A0=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,BS)))}var Lu=null;function J8(t){Lu!==t&&(Lu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Lu===t&&(Lu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],s=t[e+2];if(typeof l!="function"){if(E0(l||n)===null)continue;break}var o=Pa(n);o!==null&&(t.splice(e,3),e-=3,bc(o,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function Ri(t){function e(T){return Vu(T,t)}ta!==null&&Vu(ta,t),ea!==null&&Vu(ea,t),na!==null&&Vu(na,t),ql.forEach(e),Yl.forEach(e);for(var n=0;n<aa.length;n++){var l=aa[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<aa.length&&(n=aa[0],n.blockedOn===null);)Q8(n),n.blockedOn===null&&aa.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],o=n[l+1],m=s[he]||null;if(typeof o=="function")m||J8(n);else if(m){var S=null;if(o&&o.hasAttribute("formAction")){if(s=o,m=o[he]||null)S=m.formAction;else if(E0(s)!==null)continue}else S=m.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),J8(n)}}}function $8(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return s=m})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function T0(t){this._internalRoot=t}Cu.prototype.render=T0.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=He();q8(n,l,t,e,null,null)},Cu.prototype.unmount=T0.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;q8(t.current,2,null,t,null,null),ru(),e[Fa]=null}};function Cu(t){this._internalRoot=t}Cu.prototype.unstable_scheduleHydration=function(t){if(t){var e=uh();t={blockedOn:null,target:t,priority:e};for(var n=0;n<aa.length&&e!==0&&e<aa[n].priority;n++);aa.splice(n,0,t),n===0&&Q8(t)}};var W8=u.version;if(W8!=="19.2.1")throw Error(c(527,W8,"19.2.1"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=v(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var wS={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Du.isDisabled&&Du.supportsFiber)try{Ii=Du.inject(wS),Te=Du}catch{}}return Oi.createRoot=function(t,e){if(!h(t))throw Error(c(299));var n=!1,l="",s=l6,o=s6,m=u6;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=_8(t,1,!1,null,null,n,l,null,s,o,m,$8),t[Fa]=e.current,i0(t),new T0(e)},Oi.hydrateRoot=function(t,e,n){if(!h(t))throw Error(c(299));var l=!1,s="",o=l6,m=s6,S=u6,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=_8(t,1,!0,e,n??null,l,s,T,o,m,S,$8),e.context=G8(null),n=e.current,l=He(),l=ho(l),s=qn(l),s.callback=null,Yn(n,s,l),n=l,e.current.lanes=n,el(e,n),nn(e),t[Fa]=e.current,i0(t),new Cu(e)},Oi.version="19.2.1",Oi}var O0;function up(){if(O0)return Hu.exports;O0=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Hu.exports=sp(),Hu.exports}var rp=up();const op=Hi(rp);var f=Bu();const cp={common:{cancel:"Cancel",auto:"Auto",normal:"Normal",notUse:"Not used",prev:"Previous video",next:"Next video",delayText:"seconds until auto-play",license:"License",play:"Play",pause:"Pause",replay:"Replay",fullOn:"Fullscreen",fullOff:"Exit fullscreen",muteOn:"Mute",muteOff:"Unmute",captionOff:"Turn off captions",captionOn:"Turn on captions",setting:"Settings",live:"LIVE",miniPlayer:"Mini player",isMute:"You are muted.",subtitle:"Subtitles",subtitleNot:"Subtitles not available"},settings:{autoplay:"Autoplay",playbackRate:"Playback speed",captions:"Subtitles",quality:"Quality"},error:{"01":{title:"Cannot play video",desc:"Invalid access. Please check your access_key."},"02":{title:"Cannot play video",desc:"You do not have permission to play this video."},"03":{title:"Authentication Failed",desc:"The network connection is unstable."},"04":{title:"Cannot play video",desc:"The video could not be played."},"05":{title:"Cannot play video",desc:"The license is not valid."},"06":{title:"Cannot play video",desc:"Monthly basic API calls exceeded. Please switch to a paid version."},"07":{title:"Cannot play video",desc:"Unsupported format."},"08":{title:"Cannot play video",desc:"Invalid URL format."},"09":{title:"Cannot play video",desc:"The live stream is OFFLINE."},10:{title:"Cannot play video",desc:"Cannot play DASH video on iOS."},11:{title:"Cannot play video",desc:"Invalid DRM token."},12:{title:"Cannot play video",desc:"Failed to communicate with the DRM license server."},13:{title:"Cannot play video",desc:"FairPlay certificate validation failed."},14:{title:"Cannot play video",desc:"Screen capture / screen recording has been detected."},15:{title:"Player Execution Failed",desc:"Required module was not loaded. (hls.js)"},16:{title:"Player Execution Failed",desc:"Required module was not loaded. (dash.js)"}},alternative:{hour:"hour(s)",minute:"minute(s)",second:"second(s)",after:"In a moment",afterMin:"min",afterHour:"hour",afterDay:"day",startPlay:"Video will start in {timeTxt}.",nextPlay:"Next video will play in {timeTxt} seconds.",afterPlay:"Scheduled"}},fp={common:{cancel:"취소",auto:"자동",normal:"보통",notUse:"사용안함",prev:"이전 동영상",next:"다음 동영상",delayText:"초 뒤 자동재생",license:"라이선스",play:"재생",pause:"일시정지",replay:"다시보기",fullOn:"전체화면",fullOff:"전체화면 해제",muteOn:"음소거",muteOff:"음소거 해제",captionOff:"자막끄기",captionOn:"자막켜기",setting:"설정",live:"실시간",miniPlayer:"미니플레이어",isMute:"음소거 상태입니다.",subtitle:"자막",subtitleNot:"자막 사용 불가"},settings:{autoplay:"자동재생",playbackRate:"재생 속도",captions:"자막",quality:"해상도"},error:{"01":{title:"동영상을 재생할 수 없음",desc:"잘못된 접근입니다. access_key를 확인해주세요."},"02":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 권한이 없습니다."},"03":{title:"인증 실패",desc:"네트워크 연결이 원활하지 않습니다."},"04":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 수 없습니다."},"05":{title:"동영상을 재생할 수 없음",desc:"라이선스가 유효하지 않습니다."},"06":{title:"동영상을 재생할 수 없음",desc:"월 기본 제공 호출 건수를 초과하였습니다. 유료 버전으로 전환 후 사용 부탁 드립니다."},"07":{title:"동영상을 재생할 수 없음",desc:"지원하지 않는 형식입니다."},"08":{title:"동영상을 재생할 수 없음",desc:"URL 형식이 잘못되었습니다."},"09":{title:"동영상을 재생할 수 없음",desc:"라이브스트림이 OFFLINE 입니다."},10:{title:"동영상을 재생할 수 없음",desc:"iOS에서 Dash 비디오를 재생할 수 없습니다."},11:{title:"동영상을 재생할 수 없음",desc:"DRM 토큰이 잘못되었습니다."},12:{title:"동영상을 재생할 수 없음",desc:"DRM 라이선스 서버와 통신에 실패하였습니다."},13:{title:"동영상을 재생할 수 없음",desc:"FairPlay 인증서 검증에 실패하였습니다."},14:{title:"동영상을 재생할 수 없음",desc:"화면 캡쳐 / 화면 녹화가 감지되었습니다."},15:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (hls.js)"},16:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (dash.js)"}},alternative:{hour:"시",minute:"분",second:"초",after:"잠시 ",afterMin:"분 ",afterHour:"시간 ",afterDay:"일 ",startPlay:"{timeTxt} 후 영상이 시작됩니다.",nextPlay:"{timeTxt}초 후 다음 영상이 재생됩니다.",afterPlay:"예정"}},dp={common:{cancel:"キャンセル",auto:"自動",normal:"標準",notUse:"使用しない",prev:"前の動画",next:"次の動画",delayText:"秒後に自動再生",license:"ライセンス",play:"再生",pause:"一時停止",replay:"リプレイ",fullOn:"全画面表示",fullOff:"全画面表示を終了",muteOn:"ミュート",muteOff:"ミュート解除",captionOff:"字幕をオフにする",captionOn:"字幕をオンにする",setting:"設定",live:"ライブ",miniPlayer:"ミニプレーヤー",isMute:"ミュート状態です。",subtitle:"字幕",subtitleNot:"字幕は利用できません"},settings:{autoplay:"自動再生",playbackRate:"再生速度",captions:"字幕",quality:"画質"},error:{"01":{title:"動画を再生できません",desc:"不正なアクセスです。access_keyを確認してください。"},"02":{title:"動画を再生できません",desc:"この動画を再生する権限がありません。"},"03":{title:"認証に失敗しました",desc:"ネットワーク接続が不安定です。"},"04":{title:"動画を再生できません",desc:"動画を再生できませんでした。"},"05":{title:"動画を再生できません",desc:"ライセンスが無効です。"},"06":{title:"動画を再生できません",desc:"月間の基本提供呼び出し回数を超過しました。有料版に切り替えてご利用ください。"},"07":{title:"動画を再生できません",desc:"サポートされていない形式です。"},"08":{title:"動画を再生できません",desc:"URLの形式が正しくありません。"},"09":{title:"動画を再生できません",desc:"ライブストリームはオフラインです。"},10:{title:"動画を再生できません",desc:"iOSではDASHビデオを再生できません。"},11:{title:"動画を再生できません",desc:"DRMトークンが無効です。"},12:{title:"動画を再生できません",desc:"DRMライセンスサーバーとの通信に失敗しました。"},13:{title:"動画を再生できません",desc:"FairPlay証明書の検証に失敗しました。"},14:{title:"動画を再生できません",desc:"画面キャプチャ/画面録画が検出されました。"},15:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(hls.js)"},16:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(dash.js)"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}},z0={en:cp,ko:fp,ja:dp},hp=()=>typeof navigator<"u"&&typeof navigator.language<"u";function mp(a){const i=a.split("-")[0];return i in z0?i:"en"}function B0(a){let i="en";a?i=a:hp()&&(i=navigator.language);const u=mp(i);return z0[u]}B0();const pp={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo (Democratic Republic of the)",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (Democratic People's Republic of)",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia (the former Yugoslav Republic of)",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States of America",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},yp={gov:{prod:{log:"https://papi.vpe.gov-ntruss.com/player/maSync",report:"https://log.vpe.gov-ntruss.com/stats"},beta:{log:"https://papi.beta-vpe.gov-ntruss.com/player/maSync",report:"https://log.beta-vpe.gov-ntruss.com/stats"}},pub:{prod:{log:"https://papi.vpe.naverncp.com/player/maSync",report:"https://log.vpe.naverncp.com/stats"},beta:{log:"https://papi.beta-vpe.naverncp.com/player/maSync",report:"https://log.beta-vpe.naverncp.com/stats"}}};let be={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Vn={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const gp=new Date().getTime(),w0=()=>{const a=new Date,i=h=>String(h).padStart(2,"0"),u=`${a.getFullYear()}-${i(a.getMonth()+1)}-${i(a.getDate())} ${i(a.getHours())}:${i(a.getMinutes())}:${i(a.getSeconds())}`,r=Math.floor(a.getTime()/1e3),c=new Date().getTime()-gp;return{logDate:u,logDateUnix:r,thisSec:c}};function vp(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function Sp(a,i){Object.entries(i).forEach(([u,r])=>{vp(r)?(a[u]||(a[u]={}),Object.entries(r).forEach(([c,h])=>{h!=null&&(a[u][c]=h)})):r!=null&&(a[u]=r)})}function bp(a){const i=[];return a?.r1&&i.push(a.r1),a?.r2&&i.push(a.r2),a?.r3&&i.push(a.r3),i.join(" ")}function Ep(a){try{const i=Vn.syncResult?.geoLocation;i&&(a.address=bp(i),a.isp=i.net||"",a.ip=Vn.syncResult?.ip||"",a.nation=i.country||"")}catch{}}const Ap=async a=>{if(!a)return;const{platform:i,stage:u}=Vn,r=yp[i][u].log;try{const c=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:a})})).json();Vn.sync=c.result?.sync||!1,Vn.syncResult=c.result||{};const{logDate:h,logDateUnix:d}=w0();return be.extra.logDate=h,be.extra.logDateUnix=d,Vn.syncResult?.geoLocation&&Ep(be.extra),c}catch(c){return console.error("MA config initialization failed:",c),null}};async function Tp(a,i,u,r,c){Vn.platform=a,Vn.stage=i,Sp(be,u),r&&(be.extra.vpePackageId=r),c&&(be.extra.vpeKey=c),be.extra.nation?be.browser.country=pp[be.extra.nation]||"Korea, Republic of":be.browser.country="Korea, Republic of";const{logDate:h,logDateUnix:d}=w0();be.extra.logDate=h,be.extra.logDateUnix=d,be.extra.created_at=d}const Mp=(a={})=>{const i={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!1,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,lang:"ko",ui:"all",controlBtn:{play:!0,fullscreen:!0,progressBar:!0,volume:!1,times:!0,pictureInPicture:!0,setting:!0,subtitle:!0},progressBarColor:"#4299f5",controlActiveTime:3e3,playRateSetting:[.5,.75,1,1.5,2],autoPause:!1,repeat:!1,setStartTime:void 0,playIndex:0,lowLatencyMode:!0,touchGestures:!0,descriptionNotVisible:!1,devTestAppId:void 0,token:"",visibleWatermark:!1,watermarkText:"NAVER CLOUD PLATFORM",watermarkConfig:{randPosition:!0,randPositionInterVal:3e3,x:10,y:10,opacity:.5},captionStyle:{fontSize:12,color:"#ffffff",backgroundColor:"rgba(0, 0, 0, 0.4)",edgeStyle:"dropshadow"},override:null},u={...i,...a};return a.controlBtn&&(u.controlBtn={...i.controlBtn,...a.controlBtn}),a.watermarkConfig&&(u.watermarkConfig={...i.watermarkConfig,...a.watermarkConfig}),a.captionStyle&&(u.captionStyle={...i.captionStyle,...a.captionStyle}),u.objectFit==="fill"&&(u.objectFit="stretch"),u.controlBtn?.progressBar===void 0&&(u.controlBtn.progressBar=!0),u},xp={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let N0=[];const Vp=a=>{try{return atob(a)}catch(i){return console.error("Base64 decoding failed:",i),""}};class Lp{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator;errorState;constructor({accessKey:i,appId:u,platform:r,stage:c,isDev:h=!1,language:d}){this.accessKey=i,this.appId=u||location.origin,this.platform=r,this.stage=c,this.isDev=h,this.translator=B0(d),this.errorState={errorCode:null,errorMessage:null}}async initialize(){const i=["accessKey","appId","E0002","E0001","E0003"],u="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[i[0]],this[i[1]]].some(c=>!c))return console.warn(u),{error:this.setErrorRun(i[2])};const r=c=>(this.serverConfig=c,this.playerInfo=this.createPlayerInfo(c),this.playerInfo);try{const c=await this.performKeyCheck();if(c.code!==200)return{error:this.setErrorRun(i[3])};const h=r(c);return await Tp(this.platform,this.stage,h,this.appId,this.accessKey),await Ap(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:h}}catch(c){return console.error("VPE SDK Initialization failed:",c),{error:this.setErrorRun(i[4])}}}async performKeyCheck(){const i=["?preview=true","config","Content-Type","application/json","access_key","domain","POST"],u=this.isDev?i[0]:"",r=Vp(xp[this.platform][this.stage][i[1]])+u,c=JSON.stringify([i[4],i[5]].reduce((d,g,p)=>(d[g]=[this.accessKey,this.appId][p],d),{})),h=await fetch(r,{method:i[6],headers:{[i[2]]:i[3]},body:c});if(!h.ok)throw new Error(["API","Error:",h.status,h.statusText].join(" "));return h.json()}getBrowserInfo(){const i=navigator.userAgent;return/Edg\/(\d+\.\d+)/.test(i)?{origin:"Edge",version:RegExp.$1}:/Chrome\/(\d+\.\d+)/.test(i)&&!i.includes("Edg")?{origin:"Chrome",version:RegExp.$1}:/Firefox\/(\d+\.\d+)/.test(i)?{origin:"Firefox",version:RegExp.$1}:/Version\/(\d+\.\d+)/.test(i)&&i.includes("Safari")?{origin:"Safari",version:RegExp.$1}:{origin:"Unknown",version:"Unknown"}}createPlayerInfo(i){const[u,r]=i.result.name.split("|"),c=navigator.connection||navigator.mozConnection||navigator.webkitConnection,h=this.getBrowserInfo(),d=navigator.userAgentData;return{cid:i.result.cid,player_name:u,player_version:r,pricing:i.result.pricing,maUse:i.result.options?.maUse==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:c?.effectiveType??"unknown",downlink:c?.downlink??null,rtt:c?.rtt??null,save_data:c?.saveData??!1},device:{platform:d?.platform??"Unknown",mobile:d?.mobile??!1,memory:navigator.deviceMemory??null,processor:navigator.hardwareConcurrency??null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:r,device:d?.platform??"Unknown",os:d?.platform??"Unknown",osOrigin:d?.platform??"Unknown",osVersion:d?.platformVersion??"Unknown",vpePackageId:this.appId,actionDuration:0,actionType:"ready",browser:h.origin,browserOrigin:h.origin,browserVersion:h.version,protocol:location.protocol,quality:"Other",qualityOrigin:"Auto",host:`${this.appId}&${d?.platform??"Unknown"}&${d?.platformVersion??"Unknown"}`,location:`${this.appId}://appView/video/vpe`,title:""}}}setErrorRun(i){const u=i.slice(-2),r=this.translator.error[u]||this.translator.error["01"],c={errorCode:i,errorMessage:r};return this.errorState=c,console.error("ncplayer : ",c),c}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(i){const u=Mp(this.serverConfig.result?.options?.options),r={...u,...i??{}};return i?.controlBtn&&(r.controlBtn={...u.controlBtn,...i.controlBtn}),i?.watermarkConfig&&(r.watermarkConfig={...u.watermarkConfig,...i.watermarkConfig}),r.playlist&&!Array.isArray(r.playlist)&&(r.playlist=[{file:r.playlist}]),N0=r.playlist||[],r}getPlaylist(){return N0||[]}$t(i){const u=i.split(".");let r=this.translator;for(const c of u)if(r&&typeof r=="object"&&c in r)r=r[c];else return i;return typeof r=="string"?r:i}}const Nu=new Map;function Cp(a,i){if(Nu.has(a))return Nu.get(a);const r={value:typeof i=="function"?i():i,listeners:new Set};return Nu.set(a,r),r}function Z0(a,i){const u=Cp(a,i),r=g=>(u.listeners.add(g),()=>u.listeners.delete(g)),c=()=>u.value,h=g=>{u.value=typeof g=="function"?g(u.value):g,u.listeners.forEach(p=>p())};return[f.useSyncExternalStore(r,c),h]}const Zu=new Map;function Dp(a,i){if(Zu.has(a))return Zu.get(a);const r={value:typeof i=="function"?i():i,listeners:new Set};return Zu.set(a,r),r}function U0(a,i){const u=Dp(a,i),r=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),c=()=>u.value,h=()=>u.value,d=f.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(y=>y())},[u]);return[f.useSyncExternalStore(r,c,h),d]}const Rp="playerState",Hp={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,isPictureInPicture:!1,isSettingModal:!1,isFullscreen:!1,isSubtitle:!0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function fe(){const[a,i]=U0(Rp,Hp),u=f.useCallback(r=>{i(c=>{const h=typeof r=="function"?r(c):r;return{...c,...h}})},[i]);return[a,u]}const jp="playerController",Op={videoEl:null,hls:null};function Ee(){const[a,i]=U0(jp,Op),[u,r]=fe(),c=f.useCallback(q=>{i(z=>({...z,videoEl:q}))},[i]),h=f.useCallback(q=>{i(z=>({...z,hls:q}))},[i]),d=f.useCallback(()=>{r({isUserTouch:!0})},[r]),g=f.useCallback(()=>{const q=a.videoEl;q&&q.paused&&q.play()},[a.videoEl]),p=f.useCallback(()=>{const q=a.videoEl;q&&(q.paused||q.pause())},[a.videoEl]),y=f.useCallback(q=>{const z=a.videoEl;if(!z||Number.isNaN(q))return;const k=Math.max(0,Math.min(q,z.duration||q));z.currentTime=k,r({currentTime:k})},[r,a.videoEl]),v=f.useCallback(q=>{const z=a.videoEl;if(!z||Number.isNaN(q))return;const k=Math.max(0,Math.min(100,q));z.volume=k/100,z.muted=k===0},[a.videoEl]),b=f.useCallback(q=>{const z=a.videoEl;z&&(z.muted=q)},[a.videoEl]),E=f.useCallback(q=>{const z=a.videoEl;if(!z)return;const k=z.textTracks;if(!k||k.length===0)return;const J=Math.max(0,Math.min(u.subTitleIdx??0,k.length-1));for(let K=0;K<k.length;K+=1)k[K].mode=q&&K===J?"showing":"disabled";r({isSubtitle:q})},[u.subTitleIdx,r,a.videoEl]),L=f.useCallback(()=>{const q=a.videoEl;if(!q)return;const z=q.textTracks;if(!z||z.length===0){r({isSubtitle:!1});return}let k=!1;for(let J=0;J<z.length;J+=1)if(z[J].mode==="showing"){k=!0;break}k?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),E(!k)},[r,E,a.videoEl]),O=f.useCallback(q=>{const z=a.videoEl;if(!z)return;const k=Array.from(z.querySelectorAll("track")),J=z.textTracks;if((!J||J.length===0)&&k.length===0){r({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const K=k.length>0?k.length-1:J.length-1,I=Math.max(0,Math.min(q,K));if(k.length>0)k.forEach((at,Rt)=>{at.track&&(at.track.mode=Rt===I?"showing":"disabled")});else for(let at=0;at<J.length;at+=1)J[at].mode=at===I?"showing":"disabled";r({isSubtitle:!0,subTitleIdx:I}),localStorage.setItem("vpeSubtitleEnabled","Y")},[r,a.videoEl]),B=f.useCallback(()=>{const q=a.videoEl;q&&(q.muted=!q.muted)},[a.videoEl]),U=f.useCallback(()=>{const q=a.videoEl;q&&(q.paused?g():p())},[p,g,a.videoEl]),H=f.useCallback(q=>{const z=a.hls;if(z){if(q==="auto"){z.currentLevel=-1,r({currentLevel:-1,isAutoLevel:!0});return}z.currentLevel=q,r({currentLevel:q,isAutoLevel:!1})}},[r,a.hls]),Y=f.useCallback(q=>{const z=a.videoEl;z&&(z.playbackRate=q)},[a.videoEl]),Q=f.useCallback(async()=>{const q=a.videoEl;if(!q||typeof document>"u")return;const z=document;if(z.pictureInPictureElement){typeof z.exitPictureInPicture=="function"&&await z.exitPictureInPicture();return}const k=q.requestPictureInPicture;typeof k=="function"&&await k.call(q)},[a.videoEl]);return{videoEl:a.videoEl,hls:a.hls,setVideoElement:c,setHlsInstance:h,play:g,pause:p,seekTo:y,setVolume:v,setMuted:b,setSubtitleEnabled:E,toggleSubtitle:L,toggleMute:B,togglePlay:U,useTouch:d,playBackRate:Y,selectSubTitle:O,selectQualityLevel:H,togglePictureInPicture:Q}}function zp(a,i,u=!1){f.useEffect(()=>{const r=a.current;if(!r)return;const c=()=>{i({isPlaying:!0,initPlay:!0,isEnded:!1})},h=()=>{i({isPlaying:!1})},d=()=>{u||Math.round(r.currentTime)%1==0&&i({currentTime:r.currentTime,duration:r.duration})},g=()=>{if(r.buffered.length>0){const Y=r.buffered.start(0),Q=r.buffered.end(r.buffered.length-1);i({buffered:Q,bufferedStart:Y,bufferedEnd:Q})}},p=()=>{i({isEnded:!0})},y=()=>{i({isSeeked:!0})},v=()=>{setTimeout(()=>{i({isSeeked:!1})},200)},b=()=>{i({isMuted:r.muted,isVolume:Math.round(r.volume*100)})},E=()=>{i({isLoading:!0,isWaiting:!0})},L=()=>{i({isLoading:!1})},O=()=>{i({isLoading:!1})},B=()=>{i({isWaiting:!0})},U=()=>{i({isWaiting:!1,isLoading:!1})},H=()=>{i({isWaiting:!0})};return r.addEventListener("play",c),r.addEventListener("pause",h),r.addEventListener("timeupdate",d),r.addEventListener("ended",p),r.addEventListener("progress",g),r.addEventListener("seeking",y),r.addEventListener("seeked",v),r.addEventListener("volumechange",b),r.addEventListener("loadstart",E),r.addEventListener("loadedmetadata",L),r.addEventListener("loadeddata",O),r.addEventListener("waiting",B),r.addEventListener("playing",U),r.addEventListener("stalled",H),b(),()=>{r.removeEventListener("play",c),r.removeEventListener("pause",h),r.removeEventListener("timeupdate",d),r.removeEventListener("ended",p),r.removeEventListener("progress",g),r.removeEventListener("seeking",y),r.removeEventListener("seeked",v),r.removeEventListener("volumechange",b),r.removeEventListener("loadstart",E),r.removeEventListener("loadedmetadata",L),r.removeEventListener("loadeddata",O),r.removeEventListener("waiting",B),r.removeEventListener("playing",U),r.removeEventListener("stalled",H)}},[u,i,a])}function Bp(a){const i=f.useRef(null),[u,r]=fe(),{setVideoElement:c,setHlsInstance:h}=Ee(),d=a.hlsLib,g=a.options;return f.useEffect(()=>{const p=i.current,y=a?.src?.file;if(!(!p||!y)){if(d?.isSupported?.()){const v=new d({lowLatencyMode:g.lowLatencyMode,liveSyncDuration:g.lowLatencyMode?3:5,backBufferLength:g.lowLatencyMode?30:90,startPosition:-1});h(v),v.attachMedia(p),v.on(d.Events.MEDIA_ATTACHED,()=>{v.loadSource(y)});const b=E=>{if(typeof E?.details?.live=="boolean"){const L=E.details.live,O=E.details.totalduration,B=L&&typeof O=="number"&&Number.isFinite(O)&&O>0;r({isLive:L,isDvr:B})}};return v.on(d.Events.MANIFEST_PARSED,(E,L)=>{b(L);const O=(v.levels??[]).map((B,U)=>({index:U,width:B.width,height:B.height,bitrate:B.bitrate,name:B.name}));r({levels:O,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(d.Events.LEVEL_LOADED,(E,L)=>{b(L)}),v.on(d.Events.LEVEL_SWITCHED,(E,L)=>{r({currentLevel:L.level,isAutoLevel:v.autoLevelEnabled})}),v.on(d.Events.ERROR,(E,L)=>{a.onError&&a.onError({evt:E,data:L})}),()=>{h(null),v.destroy()}}p.src=y}},[d,a?.src?.file,a.onError,h,r]),f.useEffect(()=>{const p=i.current;if(!p||d?.isSupported?.())return;const y=()=>{const v=p.duration,b=!Number.isFinite(v)||v===1/0,E=b?Number.isFinite(v)&&v>0:!1;r({isLive:b,isDvr:E})};return p.addEventListener("loadedmetadata",y),p.addEventListener("durationchange",y),y(),()=>{p.removeEventListener("loadedmetadata",y),p.removeEventListener("durationchange",y)}},[d,r]),f.useEffect(()=>(c(i.current),()=>c(null)),[c]),f.useEffect(()=>{const p=i.current;if(!p)return;const y=g?.playbackRate;typeof y=="number"&&(p.playbackRate=y,r({playbackRate:y}))},[g]),f.useEffect(()=>{const p=i.current;if(!p||!a.src?.vtt?.length)return;const y=50,v=16,b=1.2,E=40,O=-Math.max(1,Math.round(y/(v*b))),B=z=>{if(z.cues)for(let k=0;k<z.cues.length;k+=1){const J=z.cues[k];J.line=O,J.lineAlign="center"}},U=z=>{if(!z.cues)return;const k=p.getBoundingClientRect(),J=k.width>0?E*2*100/k.width:0,K=Math.max(10,Math.min(100,100-J));for(let I=0;I<z.cues.length;I+=1){const at=z.cues[I];at.size=K,at.position=50,at.align="center"}},H=z=>{B(z),U(z)},Y=Array.from(p.querySelectorAll("track")),Q=z=>{const k=z.currentTarget;k?.track&&H(k.track)};Y.forEach(z=>{z.addEventListener("load",Q),z.track&&H(z.track)});const q=new ResizeObserver(()=>{Y.forEach(z=>{z.track&&U(z.track)})});return q.observe(p),()=>{Y.forEach(z=>{z.removeEventListener("load",Q)}),q.disconnect()}},[g,a.src?.vtt]),zp(i,r,u.isSeeked),f.useEffect(()=>{const p=a.src?.vtt??[],y=p.length>0,v=p.findIndex(E=>E.default),b=v>=0?v:0;r({hasSubtitle:y,isSubtitle:!1,subTitleIdx:b})},[a.src?.vtt,r]),f.useEffect(()=>{if(!u.isSubtitle)return;const p=i.current;if(!p||!a.src?.vtt?.length)return;const y=new Map,v=[],b=async(L,O)=>{try{const B=await fetch(O,{mode:"cors"});if(!B.ok)return;const U=await B.blob(),H=URL.createObjectURL(U);v.push(H),y.set(L,L.src),L.src=H}catch{}},E=Array.from(p.querySelectorAll("track"));return E.forEach(L=>{L.src&&b(L,L.src)}),()=>{E.forEach(L=>{const O=y.get(L);O&&(L.src=O)}),v.forEach(L=>URL.revokeObjectURL(L))}},[a.src?.vtt,u.subTitleIdx,u.isSubtitle]),f.useEffect(()=>{const p=i.current;if(!p)return;const y=Array.from(p.querySelectorAll("track")),v=p.textTracks;if((!v||v.length===0)&&y.length===0)return;const b=u.subTitleIdx,E=u.isSubtitle,L=()=>{if(y.length>0){y.forEach(B=>{B.track&&(B.default=!1,B.track.mode="disabled")}),y.forEach((B,U)=>{B.track&&E&&U===b&&(B.default=!0,B.track.mode="showing")});return}for(let B=0;B<v.length;B+=1)v[B].mode="disabled";E&&v[b]&&(v[b].mode="showing")};L();const O=()=>{L()};return y.forEach(B=>{B.addEventListener("load",O)}),()=>{y.forEach(B=>{B.removeEventListener("load",O)})}},[u.isSubtitle,u.subTitleIdx,a.src?.vtt]),f.useEffect(()=>{const p=i.current;p&&g.autostart&&p.play().catch(y=>{console.log(y),p.muted=!0,p.play()})},[g.autostart]),f.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const y=localStorage.getItem("vpeSubtitleEnabled");y!==null&&u.hasSubtitle&&r({isSubtitle:!!y})},1e3)},[u.hasSubtitle,r]),A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:g?.autostart,muted:g?.muted,loop:g?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:a.src.poster?u.initPlay?"transparent":`url(${a.src.poster}) center / ${g?.objectFit??"contain"} no-repeat`:void 0,objectFit:g?.objectFit??"contain"},children:a.src.vtt?.map(p=>A.jsx("track",{kind:"subtitles",srcLang:p.id,label:p.label,src:p.src,default:p.default},`${p.id}-${p.src}`))})})}function wp(a){return A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("div",{children:a.src.file})})}function Np(a){return A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("div",{children:a.src.file})})}function Zp(a){return A.jsx(Bp,{...a})}function Up(a){return A.jsx(wp,{...a})}function _p(a){return A.jsx(Np,{...a})}function Gp(a){const i=f.useRef(null),u=f.useRef(null),r=a.hlsLib;return f.useEffect(()=>{const c=i.current,h=a?.src?.file;if(!(!c||!h)){if(r?.isSupported?.()){const d=new r({startLevel:0,autoLevelCapping:0});return d.attachMedia(c),d.on(r.Events.MEDIA_ATTACHED,()=>{d.loadSource(h)}),d.on(r.Events.MANIFEST_PARSED,()=>{d.currentLevel=0,d.autoLevelEnabled=!1}),d.on(r.Events.ERROR,(g,p)=>{a.onError&&a.onError({evt:g,data:p})}),()=>{d.destroy()}}c.src=h}},[r,a?.src?.file,a.onError]),f.useEffect(()=>{const c=i.current;if(!c||!a.isHovering||typeof a.previewTime!="number")return;u.current=a.previewTime;const h=()=>{const g=u.current;if(typeof g!="number"||Number.isNaN(g))return;const p=c.duration,y=Math.max(0,Math.min(g,Number.isFinite(p)?p:g));Math.abs(c.currentTime-y)>.25&&(c.currentTime=y),c.pause()};if(c.readyState>=1){h();return}const d=()=>h();return c.addEventListener("loadedmetadata",d,{once:!0}),()=>{c.removeEventListener("loadedmetadata",d)}},[a.isHovering,a.previewTime]),A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("video",{playsInline:!0,ref:i,className:"w-full h-full",controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{objectFit:"cover"}})})}function qp(a="(max-width: 768px)"){const[i,u]=f.useState({isMobile:!1,isPortrait:!1});return f.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(a),c=window.matchMedia("(orientation: portrait)"),h=()=>u({isMobile:r.matches,isPortrait:c.matches});return h(),r.addEventListener("change",h),c.addEventListener("change",h),()=>{r.removeEventListener("change",h),c.removeEventListener("change",h)}},[a]),i}class Yp{formatTime(i){if(!i)return"00:00";const u=Math.floor(i),r=String(Math.floor(u/3600)).padStart(2,"0"),c=String(Math.floor(u%3600/60)).padStart(2,"0"),h=String(u%60).padStart(2,"0");return r!=="00"?`${r}:${c}:${h}`:`${c}:${h}`}}const Uu=new Yp,Ha=a=>Math.max(0,Math.min(100,a));function _0({color:a="#31ec2a",src:i,hlsLib:u,dashLib:r,options:c,onError:h}){const{isMobile:d}=qp(),[g,p]=fe(),{seekTo:y}=Ee(),[v,b]=f.useState(!1),[E,L]=f.useState(0),[O,B]=f.useState(0),[U,H]=f.useState(null),[Y,Q]=f.useState(null),[q,z]=f.useState(null),k=f.useRef(null),J=f.useRef(null),K=f.useRef(null),I=a||"#31ec2a",at="5px",Rt=g.duration??0,$=Rt>0?Rt:0,ct=$>0?(g.currentTime??0)/$*100:0,Mt=$>0?(g.buffered??0)/$*100:0,mt=!!g.isLive,N=(mt&&Rt>0?Math.abs(Rt-(g.currentTime??0))<30:!1)?100:Ha(E),X=U??ct,ot=Y??X,bt=q??X,Wt=$>0?$*(X/100):0,x=U!==null,G=f.useCallback(ut=>{const lt=k.current;if(!lt)return null;const ht=lt.getBoundingClientRect();if(ht.width<=0)return null;const Jt="clientX"in ut?ut.clientX:0;return Math.min(Math.max(Jt-ht.left,0),ht.width)/ht.width*100},[]),P=f.useCallback(ut=>{const lt=k.current;if(!lt)return;const ht=lt.getBoundingClientRect();if(ht.width<=0)return;const Jt=$i=>{const sn=$i>0?$i/2/ht.width*100:0,da=Math.max(0,Math.min(50,sn)),Wi=Math.max(da,100-da);return{minPercent:da,maxPercent:Wi}},Bt=J.current?.offsetWidth??0,jn=Jt(Bt),On=G(ut);if(On===null)return;H(Ha(On));const Ka=Math.max(jn.minPercent,Math.min(jn.maxPercent,On));z(Ka),Q(Ka)},[G]),tt=f.useCallback(()=>{H(null),Q(null),z(null)},[]);return f.useEffect(()=>{v||(L(ct),B(Mt))},[v,ct,Mt]),A.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px"},onMouseMove:P,onMouseLeave:tt,children:A.jsxs("div",{style:{margin:"0px 0px",position:"relative","--seekSliderColor":I,"--seekSliderThumbColor":I,"--rlMargin":at},children:[A.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:k,children:A.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.38)",width:"100%"},children:[x&&!g.isLive&&!d&&A.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:c?.aspectRatio??"16/9",backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Ha(bt)}%`,transform:"translateX(-50%)",maxWidth:"160px"},ref:J,children:A.jsx(A.Fragment,{children:u&&A.jsx(Gp,{src:i,hlsLib:u,options:c,onError:h,previewTime:Wt,isHovering:x})})}),x&&!g.isLive&&A.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-30px",left:`${Ha(ot)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:K,children:Uu.formatTime(Wt)})]})}),A.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:A.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${O<1?1:O>98?100:O}%`}})}),A.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:A.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${N<1?1:N}%`},children:A.jsx("div",{style:{position:"relative"},children:A.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),A.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:A.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:N,onPointerDown:ut=>{if(mt)return;p({isSeeked:!0}),b(!0);const lt=G(ut);lt!==null&&L(Ha(lt))},onPointerUp:()=>{if(mt)return;b(!1);const ut=$*(N/100);y(ut)},onChange:ut=>{if(mt)return;const lt=Number(ut.currentTarget.value),ht=Number.isNaN(lt)?0:lt;L(Ha(ht))},disabled:mt||$===0})})]})})}const Xp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),f.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),kp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216.49,56.48,177,96h19a12,12,0,0,1,0,24H148a12,12,0,0,1-12-12V60a12,12,0,0,1,24,0V79l39.51-39.52a12,12,0,0,1,17,17ZM108,136H60a12,12,0,0,0,0,24H79L39.51,199.51a12,12,0,0,0,17,17L96,177v19a12,12,0,0,0,24,0V148A12,12,0,0,0,108,136Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),f.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M120,144v48a8,8,0,0,1-13.66,5.66L88,179.31,53.66,213.66a8,8,0,0,1-11.32-11.32L76.69,168,58.34,149.66A8,8,0,0,1,64,136h48A8,8,0,0,1,120,144ZM213.66,42.34a8,8,0,0,0-11.32,0L168,76.69,149.66,58.34A8,8,0,0,0,136,64v48a8,8,0,0,0,8,8h48a8,8,0,0,0,5.66-13.66L179.31,88l34.35-34.34A8,8,0,0,0,213.66,42.34Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M212.24,52.24,158.48,106H192a6,6,0,0,1,0,12H144a6,6,0,0,1-6-6V64a6,6,0,0,1,12,0V97.52l53.76-53.76a6,6,0,0,1,8.48,8.48ZM112,138H64a6,6,0,0,0,0,12H97.52L43.76,203.76a6,6,0,1,0,8.48,8.48L106,158.48V192a6,6,0,0,0,12,0V144A6,6,0,0,0,112,138Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M210.83,50.83,153.66,108H192a4,4,0,0,1,0,8H144a4,4,0,0,1-4-4V64a4,4,0,0,1,8,0v38.34l57.17-57.17a4,4,0,1,1,5.66,5.66ZM112,140H64a4,4,0,0,0,0,8h38.34L45.17,205.17a4,4,0,0,0,5.66,5.66L108,153.66V192a4,4,0,0,0,8,0V144A4,4,0,0,0,112,140Z"}))]]),Kp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-39.51,39.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM99.51,139.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l39.52-39.51a12,12,0,0,0-17-17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),f.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M117.66,138.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l34.34-34.35A8,8,0,0,1,117.66,138.34ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72l-34.35,34.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-57.17,57.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM109.17,141.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l57.17-57.17a4,4,0,0,0-5.66-5.66Z"}))]]),Fp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.4,51.6a108,108,0,1,0,0,152.8A108.16,108.16,0,0,0,204.4,51.6Zm-17,135.82a84,84,0,1,1,0-118.84A84.12,84.12,0,0,1,187.42,187.42Zm-58.93-67.91a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17-17L103,128,79.49,104.47a12,12,0,1,1,17-17Zm56,17-32,32a12,12,0,0,1-17-17L159,128l-23.52-23.53a12,12,0,1,1,17-17l32,32A12,12,0,0,1,184.51,136.49Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M195.88,195.88a96,96,0,1,1,0-135.76A96,96,0,0,1,195.88,195.88Z",opacity:"0.2"}),f.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,190.23a88,88,0,1,1,0-124.46A88.11,88.11,0,0,1,190.23,190.23Zm-64.57-67.89a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L108.69,128,82.34,101.66A8,8,0,0,1,93.66,90.34Zm56,0a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L164.69,128l-26.35-26.34a8,8,0,0,1,11.32-11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M201.57,54.42a104,104,0,1,0,0,147.15A104.17,104.17,0,0,0,201.57,54.42Zm-75.91,79.24-32,32a8,8,0,1,1-11.32-11.32L108.68,128,82.32,101.64A8,8,0,1,1,93.64,90.32l32,32A8,8,0,0,1,125.66,133.66Zm56,0-32,32a8,8,0,0,1-11.32-11.32L164.71,128l-26.36-26.36a8,8,0,1,1,11.32-11.32l32,32A8,8,0,0,1,181.68,133.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200.12,55.87A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.87Zm-8.48,135.77a90,90,0,1,1,0-127.28A90.1,90.1,0,0,1,191.64,191.64Zm-67.4-67.88a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L111.51,128,83.76,100.24a6,6,0,0,1,8.48-8.48Zm56,0a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L167.51,128l-27.75-27.76a6,6,0,0,1,8.48-8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,190.23a88,88,0,1,1,0-124.46A88.11,88.11,0,0,1,190.23,190.23Zm-64.57-67.89a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L108.69,128,82.34,101.66A8,8,0,0,1,93.66,90.34Zm56,0a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L164.69,128l-26.35-26.34a8,8,0,0,1,11.32-11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm-5.66,135.76A92,92,0,1,1,220,128,91.37,91.37,0,0,1,193.05,193.05Zm-70.22-67.88a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L114.34,128,85.17,98.83a4,4,0,0,1,5.66-5.66Zm56,0a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L170.34,128,141.17,98.83a4,4,0,0,1,5.66-5.66Z"}))]]),Qp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),f.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),Pp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),f.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),Jp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),$p=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,144H36V68H220ZM52,128a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,52,128Zm80,0a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,132,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,64V192a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H224A8,8,0,0,1,232,64Z",opacity:"0.2"}),f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.93,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.93,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.93,151.71Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Zm80,0a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50Zm2,142a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM117.19,152.71a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,117.19,152.71Zm80,0a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,197.19,152.71Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.92,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.92,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.92,151.71Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52Zm4,140a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM115.46,153.71a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,115.46,153.71Zm80,0a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,195.46,153.71Z"}))]]),Wp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M140,124v92a12,12,0,0,1-24,0V124a12,12,0,0,1,24,0Zm60,68a12,12,0,0,0-12,12v12a12,12,0,0,0,24,0V204A12,12,0,0,0,200,192Zm24-40H212V40a12,12,0,0,0-24,0V152H176a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24ZM56,160a12,12,0,0,0-12,12v44a12,12,0,0,0,24,0V172A12,12,0,0,0,56,160Zm24-40H68V40a12,12,0,0,0-24,0v80H32a12,12,0,0,0,0,24H80a12,12,0,0,0,0-24Zm72-48H140V40a12,12,0,0,0-24,0V72H104a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,40V216H56V40Z",opacity:"0.2"}),f.createElement("path",{d:"M136,120v96a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm64,72a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V200A8,8,0,0,0,200,192Zm24-32H208V40a8,8,0,0,0-16,0V160H176a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16ZM56,160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168A8,8,0,0,0,56,160Zm24-32H64V40a8,8,0,0,0-16,0v88H32a8,8,0,0,0,0,16H80a8,8,0,0,0,0-16Zm72-48H136V40a8,8,0,0,0-16,0V80H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,120v96a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm64,72a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V200A8,8,0,0,0,200,192Zm24-48H208V40a8,8,0,0,0-16,0V144H176a8,8,0,0,0-8,8v16a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,224,144ZM56,160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168A8,8,0,0,0,56,160Zm24-48H64V40a8,8,0,0,0-16,0v72H32a8,8,0,0,0-8,8v16a8,8,0,0,0,8,8H80a8,8,0,0,0,8-8V120A8,8,0,0,0,80,112Zm72-48H136V40a8,8,0,0,0-16,0V64H104a8,8,0,0,0-8,8V88a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V72A8,8,0,0,0,152,64Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M134,120v96a6,6,0,0,1-12,0V120a6,6,0,0,1,12,0Zm66,74a6,6,0,0,0-6,6v16a6,6,0,0,0,12,0V200A6,6,0,0,0,200,194Zm24-32H206V40a6,6,0,0,0-12,0V162H176a6,6,0,0,0,0,12h48a6,6,0,0,0,0-12ZM56,162a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V168A6,6,0,0,0,56,162Zm24-32H62V40a6,6,0,0,0-12,0v90H32a6,6,0,0,0,0,12H80a6,6,0,0,0,0-12Zm72-48H134V40a6,6,0,0,0-12,0V82H104a6,6,0,0,0,0,12h48a6,6,0,0,0,0-12Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,120v96a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm64,72a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V200A8,8,0,0,0,200,192Zm24-32H208V40a8,8,0,0,0-16,0V160H176a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16ZM56,160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168A8,8,0,0,0,56,160Zm24-32H64V40a8,8,0,0,0-16,0v88H32a8,8,0,0,0,0,16H80a8,8,0,0,0,0-16Zm72-48H136V40a8,8,0,0,0-16,0V80H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M132,120v96a4,4,0,0,1-8,0V120a4,4,0,0,1,8,0Zm68,76a4,4,0,0,0-4,4v16a4,4,0,0,0,8,0V200A4,4,0,0,0,200,196Zm24-32H204V40a4,4,0,0,0-8,0V164H176a4,4,0,0,0,0,8h48a4,4,0,0,0,0-8ZM56,164a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V168A4,4,0,0,0,56,164Zm24-32H60V40a4,4,0,0,0-8,0v92H32a4,4,0,0,0,0,8H80a4,4,0,0,0,0-8Zm72-48H132V40a4,4,0,0,0-8,0V84H104a4,4,0,0,0,0,8h48a4,4,0,0,0,0-8Z"}))]]),Ip=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),f.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),t4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),f.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),e4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44ZM44,68H212v48H136a12,12,0,0,0-12,12v60H44ZM148,188V140h64v48Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,64v64H136v72H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),f.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48Zm0,144H136V128h80v64Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50ZM38,192V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v58H136a6,6,0,0,0-6,6v66H40A2,2,0,0,1,38,192Zm178,2H142V134h76v58A2,2,0,0,1,216,194Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52ZM36,192V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v60H136a4,4,0,0,0-4,4v68H40A4,4,0,0,1,36,192Zm180,4H140V132h80v60A4,4,0,0,1,216,196Z"}))]]),n4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),f.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),a4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.27,21.22a12,12,0,0,0-12.64,1.31L83.88,76H40A20,20,0,0,0,20,96v64a20,20,0,0,0,20,20H83.88l68.75,53.47A12,12,0,0,0,172,224V32A12,12,0,0,0,165.27,21.22ZM148,199.47,95.37,158.53A12,12,0,0,0,88,156H44V100H88a12,12,0,0,0,7.37-2.53L148,56.54ZM212,104v48a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm36-16v80a12,12,0,0,1-24,0V88a12,12,0,0,1,24,0Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32-16v80a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,32V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H85.25l69.84-54.31A8,8,0,0,1,168,32Zm32,64a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V104A8,8,0,0,0,200,96Zm32-16a8,8,0,0,0-8,8v80a8,8,0,0,0,16,0V88A8,8,0,0,0,232,80Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.64,26.61a6,6,0,0,0-6.32.65L85.94,82H40A14,14,0,0,0,26,96v64a14,14,0,0,0,14,14H85.94l70.38,54.74A6,6,0,0,0,166,224V32A6,6,0,0,0,162.64,26.61ZM154,211.73,91.68,163.26A6,6,0,0,0,88,162H40a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H88a6,6,0,0,0,3.68-1.26L154,44.27ZM206,104v48a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm32-16v80a6,6,0,0,1-12,0V88a6,6,0,0,1,12,0Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32-16v80a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M161.76,28.41a4,4,0,0,0-4.22.43L86.63,84H40A12,12,0,0,0,28,96v64a12,12,0,0,0,12,12H86.63l70.91,55.16A4.07,4.07,0,0,0,160,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,164,224V32A4,4,0,0,0,161.76,28.41ZM156,215.82l-65.54-51A4.06,4.06,0,0,0,88,164H40a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H88a4.06,4.06,0,0,0,2.46-.84l65.54-51ZM204,104v48a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm32-16v80a4,4,0,0,1-8,0V88a4,4,0,0,1,8,0Z"}))]]),i4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.27,21.22a12,12,0,0,0-12.64,1.31L83.88,76H40A20,20,0,0,0,20,96v64a20,20,0,0,0,20,20H83.88l68.75,53.47A12,12,0,0,0,172,224V32A12,12,0,0,0,165.27,21.22ZM148,199.46,95.37,158.53A12,12,0,0,0,88,156H44V100H88a12,12,0,0,0,7.37-2.53L148,56.54ZM212,104v48a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,32V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H85.25l69.84-54.31A8,8,0,0,1,168,32Zm32,64a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V104A8,8,0,0,0,200,96Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.64,26.61a6,6,0,0,0-6.32.65L85.94,82H40A14,14,0,0,0,26,96v64a14,14,0,0,0,14,14H85.94l70.38,54.74A6,6,0,0,0,166,224V32A6,6,0,0,0,162.64,26.61ZM154,211.73,91.68,163.26A6,6,0,0,0,88,162H40a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H88a6,6,0,0,0,3.68-1.26L154,44.27ZM206,104v48a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M161.76,28.41a4,4,0,0,0-4.22.43L86.63,84H40A12,12,0,0,0,28,96v64a12,12,0,0,0,12,12H86.63l70.91,55.16A4.07,4.07,0,0,0,160,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,164,224V32A4,4,0,0,0,161.76,28.41ZM156,215.82l-65.54-51A4.06,4.06,0,0,0,88,164H40a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H88a4.06,4.06,0,0,0,2.46-.84l65.54-51ZM204,104v48a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),l4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.27,21.22a12,12,0,0,0-12.64,1.31L83.88,76H40A20,20,0,0,0,20,96v64a20,20,0,0,0,20,20H83.88l68.75,53.47A12,12,0,0,0,172,224V32A12,12,0,0,0,165.27,21.22ZM148,199.46,95.37,158.53A12,12,0,0,0,88,156H44V100H88a12,12,0,0,0,7.37-2.53L148,56.54Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.52,24.81a8,8,0,0,0-8.43.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A7.94,7.94,0,0,0,160,232a8,8,0,0,0,8-8V32A8,8,0,0,0,163.52,24.81Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.64,26.61a6,6,0,0,0-6.32.65L85.94,82H40A14,14,0,0,0,26,96v64a14,14,0,0,0,14,14H85.94l70.38,54.74A6,6,0,0,0,166,224V32A6,6,0,0,0,162.64,26.61ZM154,211.73,91.68,163.26A6,6,0,0,0,88,162H40a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H88a6,6,0,0,0,3.68-1.26L154,44.27Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M161.76,28.41a4,4,0,0,0-4.22.43L86.63,84H40A12,12,0,0,0,28,96v64a12,12,0,0,0,12,12H86.63l70.91,55.16A4.07,4.07,0,0,0,160,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,164,224V32A4,4,0,0,0,161.76,28.41ZM156,215.82l-65.54-51A4.06,4.06,0,0,0,88,164H40a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H88a4.06,4.06,0,0,0,2.46-.84l65.54-51Z"}))]]),s4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M248,88v80a12,12,0,0,1-24,0V88a12,12,0,0,1,24,0ZM224.88,207.93a12,12,0,1,1-17.76,16.14L172,185.44V224a12,12,0,0,1-19.37,9.47L83.88,180H40a20,20,0,0,1-20-20V96A20,20,0,0,1,40,76H72.51L47.12,48.07A12,12,0,0,1,64.88,31.93ZM148,159,94.33,100H44v56H88a12,12,0,0,1,7.37,2.53L148,199.46Zm-14.15-91.5,14.15-11v38.4a12,12,0,0,0,24,0V32a12,12,0,0,0-19.37-9.47L119.12,48.6a12,12,0,1,0,14.73,18.94ZM200,150.94a12,12,0,0,0,12-12V104a12,12,0,0,0-24,0v34.94A12,12,0,0,0,200,150.94Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M192,152V104a8,8,0,0,1,16,0v48a8,8,0,0,1-16,0Zm40-72a8,8,0,0,0-8,8v80a8,8,0,0,0,16,0V88A8,8,0,0,0,232,80ZM221.92,210.62a8,8,0,1,1-11.84,10.76L168,175.09V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H81.55L50.08,45.38A8,8,0,0,1,61.92,34.62ZM152,157.49,96.1,96H40v64H88a7.94,7.94,0,0,1,4.91,1.69L152,207.64ZM125.06,69.31l26.94-21v58.47a8,8,0,0,0,16,0V32a8,8,0,0,0-12.91-6.31l-39.85,31a8,8,0,0,0,9.82,12.63Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M221.92,210.62a8,8,0,1,1-11.84,10.76L168,175.09v48.6a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H81.55L50.08,45.38A8,8,0,0,1,61.92,34.62ZM200.53,160a8.17,8.17,0,0,0,7.47-8.25V104.27A8.17,8.17,0,0,0,200.53,96a8,8,0,0,0-8.53,8v48A8,8,0,0,0,200.53,160ZM161,119.87a4,4,0,0,0,7-2.7V32.24a8.25,8.25,0,0,0-2.88-6.39,8,8,0,0,0-10-.16L111.83,59.33a4,4,0,0,0-.5,5.85ZM231.47,80A8.17,8.17,0,0,0,224,88.27v79.46a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V88A8,8,0,0,0,231.47,80Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M194,152V104a6,6,0,0,1,12,0v48a6,6,0,0,1-12,0Zm38-70a6,6,0,0,0-6,6v80a6,6,0,0,0,12,0V88A6,6,0,0,0,232,82ZM220.44,212a6,6,0,0,1-8.88,8.08L166,169.92V224a6,6,0,0,1-9.68,4.74L85.94,174H40a14,14,0,0,1-14-14V96A14,14,0,0,1,40,82H86.07L51.56,44A6,6,0,0,1,60.44,36ZM154,156.72,97,94H40a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H88a6,6,0,0,1,3.68,1.26L154,211.73Zm-30.17-89L154,44.27v62.56a6,6,0,0,0,12,0V32a6,6,0,0,0-9.68-4.74l-39.85,31a6,6,0,1,0,7.36,9.47Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M192,152V104a8,8,0,0,1,16,0v48a8,8,0,0,1-16,0Zm40-72a8,8,0,0,0-8,8v80a8,8,0,0,0,16,0V88A8,8,0,0,0,232,80ZM221.92,210.62a8,8,0,1,1-11.84,10.76L168,175.09V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H81.55L50.08,45.38A8,8,0,0,1,61.92,34.62ZM152,157.49,96.1,96H40v64H88a7.94,7.94,0,0,1,4.91,1.69L152,207.64ZM125.06,69.31l26.94-21v58.47a8,8,0,0,0,16,0V32a8,8,0,0,0-12.91-6.31l-39.85,31a8,8,0,0,0,9.82,12.63Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M196,152V104a4,4,0,0,1,8,0v48a4,4,0,0,1-8,0Zm36-68a4,4,0,0,0-4,4v80a4,4,0,0,0,8,0V88A4,4,0,0,0,232,84ZM219,213.31a4,4,0,1,1-5.92,5.38l-49-53.94V224a4,4,0,0,1-2.24,3.59A3.92,3.92,0,0,1,160,228a4.07,4.07,0,0,1-2.46-.84L86.63,172H40a12,12,0,0,1-12-12V96A12,12,0,0,1,40,84H90.59L53,42.69A4,4,0,0,1,59,37.31ZM156,156,97.87,92H40a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H88a4.06,4.06,0,0,1,2.46.84l65.54,51Zm-33.39-89.8,33.39-26v66.65a4,4,0,0,0,8,0V32a4,4,0,0,0-6.46-3.16l-39.85,31a4,4,0,1,0,4.92,6.31Z"}))]]),u4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),r4=f.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Qt=f.forwardRef((a,i)=>{const{alt:u,color:r,size:c,weight:h,mirrored:d,children:g,weights:p,...y}=a,{color:v="currentColor",size:b,weight:E="regular",mirrored:L=!1,...O}=f.useContext(r4);return f.createElement("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",width:c??b,height:c??b,fill:r??v,viewBox:"0 0 256 256",transform:d||L?"scale(-1, 1)":void 0,...O,...y},!!u&&f.createElement("title",null,u),g,p.get(h??E))});Qt.displayName="IconBase";const _u=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Xp}));_u.displayName="ArrowClockwiseIcon";const G0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:kp}));G0.displayName="ArrowsInSimpleIcon";const q0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Kp}));q0.displayName="ArrowsOutSimpleIcon";const Y0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Fp}));Y0.displayName="CaretCircleDoubleRightIcon";const X0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Qp}));X0.displayName="CaretLeftIcon";const zi=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Pp}));zi.displayName="CaretRightIcon";const ja=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Jp}));ja.displayName="CheckIcon";const kl=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:$p}));kl.displayName="ClosedCaptioningIcon";const k0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Wp}));k0.displayName="FadersIcon";const K0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Ip}));K0.displayName="GearIcon";const Gu=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:t4}));Gu.displayName="PauseIcon";const F0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:e4}));F0.displayName="PictureInPictureIcon";const qu=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:n4}));qu.displayName="PlayIcon";const Q0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:a4}));Q0.displayName="SpeakerSimpleHighIcon";const P0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:i4}));P0.displayName="SpeakerSimpleLowIcon";const J0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:l4}));J0.displayName="SpeakerSimpleNoneIcon";const $0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:s4}));$0.displayName="SpeakerSimpleSlashIcon";const W0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:u4}));W0.displayName="XIcon";function Oa(a){const i=a.noBg??!1;return A.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:i?"obtnNoBg":"obtn",children:a.children})}function o4(a){const i=a.noPadding??!1,u=a.cap??0;return A.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:i?0:"0.5rem",paddingRight:i?0:"0.5rem",gap:u||0,position:"relative"},className:a.noBg?"obtn-group-nobg":"obtn-group",children:a.children})}function Kl(a){return A.jsx(o4,{...a,children:a.children})}const la={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},c4={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem"},I0={border:0,background:"transparent"},f4={display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderBottom:"1px solid rgb(205 205 205 / 8%)"},d4={flex:1},h4={display:"flex",alignItems:"center",gap:6},m4={padding:0,display:"flex",alignItems:"center",gap:6},Fl={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},Je={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Ln={flex:1,justifyContent:"start",display:"flex"},Yu={display:"flex",alignItems:"center",gap:5},Ql={fontSize:"0.9rem",opacity:.6};function tf({size:a=25,weight:i="fill",color:u="#ffffff",text:r={},pos:c="left"}){const[h]=fe(),{play:d,pause:g}=Ee();return A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:h.isPlaying?r?.pause??"일시정지":r?.play??"재생"})}),A.jsx("button",{type:"button",onClick:h.isPlaying?g:d,style:la,children:h.isEnded?A.jsx(_u,{size:a,weight:i,color:u}):A.jsx(A.Fragment,{children:h.isPlaying?A.jsx(Gu,{size:a,weight:i,color:u}):A.jsx(qu,{size:a,weight:i,color:u})})})]})})}function p4({size:a=80,weight:i="fill",color:u="#ffffff",isPortrait:r=!1,isMobile:c=!1}){const[h]=fe(),[d,g]=f.useState(0),{play:p,pause:y}=Ee();return f.useEffect(()=>{g(v=>v+1)},[h.isPlaying]),A.jsx("div",{className:`vpe-big-play-btn ${h.isEnded?"":"center-play-btn-anim"}`,children:A.jsx(Kl,{noPadding:!0,children:A.jsx(Oa,{children:A.jsx("button",{type:"button",style:c4,onClick:()=>{(c||r)&&(h.isPlaying?y():p())},children:h.isEnded?A.jsx(_u,{size:a,weight:i,color:u}):A.jsx(A.Fragment,{children:h.isPlaying?A.jsx(Gu,{size:a,weight:i,color:u}):A.jsx(qu,{size:a,weight:i,color:u})})})})})},d)}function y4({color:a="#ffffff"}){const[i]=fe(),{seekTo:u}=Ee(),c=(i.bufferedEnd??i.buffered??0)||i.duration||0,h=!!i.isLive,g=h&&c>0?Math.abs((i.currentTime??0)-c)<10:h,p=()=>{h&&(!c||Number.isNaN(c)||u(Math.max(0,c-.1)))};return A.jsx(A.Fragment,{children:i.isLive?A.jsxs("button",{type:"button",onClick:p,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[A.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:g?"#ff0000":a,display:"inline-block"}}),A.jsx("span",{style:{fontWeight:"bold",fontSize:"0.9rem"},children:"LIVE"})]}):A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center"},children:Uu.formatTime(i.currentTime??0)||0}),A.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),A.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center"},children:Uu.formatTime(i.duration??0)||0})]})})}function g4({text:a={},color:i="#ffffff"}){const[u]=fe(),{selectQualityLevel:r}=Ee(),c=f.useRef(!1),h=u.currentLevel??-1,d=u.levels?.find(p=>p.index===h),g=u.isAutoLevel?a.auto:d?.name??(d?.height?`${d.height}p`:`${h}`);return A.jsxs("div",{style:{position:"relative"},children:[c.current&&A.jsx("div",{style:{position:"absolute",width:"100px",height:"auto",backgroundColor:"rgba(0, 0, 0, 0.85)",borderRadius:"5px",padding:"1rem 0.8rem",bottom:"80px",left:"-50%",fontSize:"0.9rem",color:"#ffffff",zIndex:99999},children:A.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[A.jsx("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{r(-1)},children:A.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:a?.auto??"Auto"})}),[...u.levels??[]].sort((p,y)=>(y.height??0)-(p.height??0)).map(p=>{const y=p.name??(p.height?`${p.height}p`:`${p.index}`);return A.jsx("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{r(p.index),c.current=!1},children:A.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:y})},p.index)})]})}),A.jsx("button",{type:"button",onClick:()=>{c.current=!c.current},style:{...la,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${i}`},children:A.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:g})})]})}function v4({color:a="#ffffff",click:i=()=>{},title:u=""}){return A.jsx(A.Fragment,{children:u&&A.jsx(Kl,{children:A.jsx("button",{type:"button",onClick:i,style:{border:0,background:"transparent",lineHeight:"100%",display:"flex",alignItems:"center",height:"46px"},children:A.jsxs("div",{className:"defObj",style:{paddingLeft:"0.5rem",paddingRight:"0.2rem",maxWidth:"15rem",lineHeight:"1rem",display:"flex",alignItems:"center",color:`${a}`},children:[A.jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:u}),A.jsx("div",{style:{paddingTop:"2px"},children:A.jsx(zi,{size:15})})]})})})})}function ef(a){return A.jsx("div",{style:{flex:1,display:"flex"},children:a.children})}function S4({size:a=25,weight:i="fill",color:u="#ffffff",options:r={},text:c={},pos:h="left"}){const[d,g]=fe(),{videoEl:p}=Ee(),y=f.useRef(0),v=f.useRef(""),b=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),E=()=>{const U=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return U instanceof HTMLElement?U:null},L=U=>{if(U)if(U.classList.contains("vpe-ios-fullscreen")){g({isFullscreen:!1}),U.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=v.current;const H=document.getElementById("vpeIosFullscreenTmpDiv");H&&H.remove(),window.scrollY=y.current}else{g({isFullscreen:!0}),U.classList.add("vpe-ios-fullscreen"),y.current=window.scrollY,v.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const H=document.createElement("div");H.id="vpeIosFullscreenTmpDiv",H.style.height="120dvh",document.body.appendChild(H),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},O=()=>{if(!p)return!1;const U=p.webkitEnterFullscreen;return typeof U!="function"?!1:(U.call(p),!0)},B=()=>{if(b)if(r.iosFullscreenNativeMode){if(O())return}else{const H=document.querySelector(".vpe-root-wrap");L(H);return}if(document.fullscreenElement){document.exitFullscreen?.();return}const U=E();U&&U.requestFullscreen?.()};return f.useEffect(()=>{const U=()=>{b&&!r.iosFullscreenNativeMode||g({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",U),U(),()=>{document.removeEventListener("fullscreenchange",U)}},[g]),A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${h}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?c?.fullOff??"전체화면 해제":c?.fullOn??"전체화면"})}),A.jsx("button",{type:"button",onClick:B,style:la,children:d.isFullscreen?A.jsx(G0,{size:a,weight:i,color:u}):A.jsx(q0,{size:a,weight:i,color:u})})]})})}function b4({size:a=25,color:i="#ffffff",text:u={},pos:r="left"}){const[c]=fe(),{toggleSubtitle:h}=Ee();return A.jsx(A.Fragment,{children:c.hasSubtitle&&A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:c.isSubtitle?u?.captionOff??"자막끄기":u?.captionOn??"자막켜기"})}),A.jsx("button",{type:"button",onClick:h,style:la,children:c.isSubtitle?A.jsx(kl,{size:a,weight:"fill",color:i}):A.jsx(kl,{size:a,weight:"regular",color:i})})]})})})}function E4({size:a=25,weight:i="fill",color:u="#ffffff",text:r={},pos:c="left"}){const[h]=fe(),{setVolume:d,toggleMute:g}=Ee(),p=h.isVolume??0,y=h.isMuted?0:p;return A.jsxs("div",{className:"VolumBtnWrap",children:[A.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:h.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),A.jsx("button",{type:"button",onClick:g,style:la,children:A.jsxs(A.Fragment,{children:[(p===0||h.isMuted)&&A.jsx($0,{size:a,weight:i,color:u}),p>=5&&p<=10&&!h.isMuted&&A.jsx(J0,{size:a,weight:i,color:u}),p>=11&&p<=50&&!h.isMuted&&A.jsx(P0,{size:a,weight:i,color:u}),p>=51&&!h.isMuted&&A.jsx(Q0,{size:a,weight:i,color:u})]})})]}),A.jsx("div",{className:"vslideWrap",children:A.jsx("input",{type:"range",min:0,max:100,value:y,onChange:v=>{const b=Number(v.currentTarget.value);d(Number.isNaN(b)?0:b)},className:"VolumSlide"})})]})}function A4({color:a="#ffffff",size:i=25,text:u={},pos:r="left"}){const[c,h]=fe();return A.jsx(A.Fragment,{children:A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:u?.setting??"설정"})}),A.jsx("button",{type:"button",onClick:()=>{h({isSettingModal:!c.isSettingModal})},style:la,children:A.jsx(K0,{size:i,weight:"fill",color:a})})]})})})}function T4({color:a="#ffffff",size:i=25,text:u={},pos:r="left"}){const{togglePictureInPicture:c}=Ee();return A.jsx(A.Fragment,{children:A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:u?.miniPlayer??"미니플레이어"})}),A.jsx("button",{type:"button",onClick:()=>{c()},style:la,children:A.jsx(F0,{size:i,weight:"fill",color:a})})]})})})}function M4(a){const{useTouch:i}=Ee();return A.jsx("div",{className:"absolute z-[2] h-full w-full bg-neutral-900/20 flex items-center justify-center",style:{background:`url(${a.poster}) center / ${a.options?.objectFit||"contain"} no-repeat`},onClick:()=>{i()},onTouchStart:()=>{i()},children:A.jsx("div",{children:A.jsx(Kl,{noPadding:!0,children:A.jsx(tf,{size:50})})})})}function nf(a){const[i]=fe(),{poster:u,options:r}=a,c={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${u}) center / ${r?.objectFit||"contain"} no-repeat`};return A.jsx(A.Fragment,{children:i.isLoading&&A.jsx("div",{style:c,children:A.jsx("div",{className:"ncplayer-spinner"})})})}function x4(a){const[i,u]=fe(),{playBackRate:r,selectQualityLevel:c}=Ee(),{text:h}=a,d=a.vtt??a.src?.vtt??[],g=i.currentLevel??-1,p=i.levels?.find(H=>H.index===g),y=i.isAutoLevel?h.auto:p?.name??(p?.height?`${p.height}p`:`${g}`),[v,b]=f.useState(0),[E,L]=f.useState("forward"),[O,B]=f.useState(!1),U=f.useCallback(H=>{L(H>v?"forward":"back"),b(H),B(!0)},[v]);return f.useEffect(()=>{if(!O)return;const H=window.setTimeout(()=>{B(!1)},200);return()=>window.clearTimeout(H)},[O]),A.jsx("div",{className:"vpe-setting-modal",children:A.jsxs("div",{className:"vpe-setting-content",children:[A.jsxs("div",{style:f4,children:[A.jsxs("div",{style:d4,children:[v===0&&A.jsx("div",{children:h.setting}),v>0&&A.jsx("div",{style:h4,children:A.jsx("div",{children:A.jsxs("button",{onClick:()=>{U(0)},type:"button",style:{...I0,...m4},children:[A.jsx(X0,{size:25,color:"#ffffff"}),A.jsxs("div",{children:[v==1&&h.quality,v==2&&h.playbackRate,v==3&&h.captions]})]})})})]}),A.jsx("div",{children:A.jsx("button",{type:"button",style:I0,onClick:()=>{u({isSettingModal:!1})},children:A.jsx(W0,{size:25,color:"#ffffff"})})})]}),A.jsxs("div",{className:"vpe-modal-menu",children:[v===0&&A.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:[A.jsxs("button",{type:"button",style:Je,className:"vpe-menu-item",onClick:()=>{U(1)},children:[A.jsx("div",{children:A.jsx(k0,{size:25,color:"#ffffff"})}),A.jsx("div",{style:Ln,children:h.quality}),A.jsxs("div",{style:Yu,children:[A.jsx("span",{style:Ql,children:y}),A.jsx(zi,{size:20,color:"#ffffff"})]})]}),A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{U(2)},children:[A.jsx("div",{children:A.jsx(Y0,{size:25,color:"#ffffff"})}),A.jsx("div",{style:Ln,children:h.playbackRate}),A.jsxs("div",{style:Yu,children:[A.jsxs("span",{style:Ql,children:[i.playbackRate,"x"]}),A.jsx(zi,{size:20,color:"#ffffff"})]})]}),A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{U(3)},children:[A.jsx("div",{children:A.jsx(kl,{size:25,color:"#ffffff"})}),A.jsx("div",{style:Ln,children:h.captions}),A.jsxs("div",{style:Yu,children:[A.jsx(A.Fragment,{children:i.isSubtitle?A.jsx(A.Fragment,{children:d.map((H,Y)=>A.jsx("span",{children:i.subTitleIdx===Y&&A.jsx("span",{style:Ql,children:H.label})},`${H.id}-${H.src}`))}):A.jsx("span",{style:Ql,children:h.notUse})}),A.jsx(zi,{size:20,color:"#ffffff"})]})]})]},v),v===1&&A.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:[A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{c("auto")},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.isAutoLevel?"#ffffff":"transparent"})}),A.jsx("div",{style:Ln,children:h.auto})]}),[...i.levels??[]].sort((H,Y)=>(Y.height??0)-(H.height??0)).map(H=>{const Y=H.name??(H.height?`${H.height}p`:`${H.index}`);return A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{c(H.index)},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:!i.isAutoLevel&&i.currentLevel===H.index?"#ffffff":"transparent"})}),A.jsx("div",{style:Ln,children:Y})]},H.index)})]},v),v===2&&A.jsx("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:(a.options?.playRateSetting??[]).map(H=>A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{r(H),u({playbackRate:H}),U(0)},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.playbackRate===H?"#ffffff":"transparent"})}),A.jsxs("div",{style:Ln,children:[H,"x"]})]},H))},v),v===3&&A.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:[A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{u({isSubtitle:!1})},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.isSubtitle?"transparent":"#ffffff"})}),A.jsx("div",{style:Ln,children:h.notUse})]}),d.map((H,Y)=>A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{u({isSubtitle:!0,subTitleIdx:Y})},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.isSubtitle&&i.subTitleIdx===Y?"#ffffff":"transparent"})}),A.jsx("div",{style:Ln,children:H.label})]},`${H.id}-${H.src}`))]},v)]})]})})}const Xu=f.createContext({});function ku(a){const i=f.useRef(null);return i.current===null&&(i.current=a()),i.current}const Ku=typeof window<"u",af=Ku?f.useLayoutEffect:f.useEffect,Pl=f.createContext(null);function Fu(a,i){a.indexOf(i)===-1&&a.push(i)}function Qu(a,i){const u=a.indexOf(i);u>-1&&a.splice(u,1)}const an=(a,i,u)=>u>i?i:u<a?a:u;let Pu=()=>{};const ln={},lf=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function sf(a){return typeof a=="object"&&a!==null}const uf=a=>/^0[^.\s]+$/u.test(a);function Ju(a){let i;return()=>(i===void 0&&(i=a()),i)}const je=a=>a,V4=(a,i)=>u=>i(a(u)),Bi=(...a)=>a.reduce(V4),wi=(a,i,u)=>{const r=i-a;return r===0?1:(u-a)/r};class $u{constructor(){this.subscriptions=[]}add(i){return Fu(this.subscriptions,i),()=>Qu(this.subscriptions,i)}notify(i,u,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,u,r);else for(let h=0;h<c;h++){const d=this.subscriptions[h];d&&d(i,u,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $e=a=>a*1e3,Oe=a=>a/1e3;function rf(a,i){return i?a*(1e3/i):0}const of=(a,i,u)=>(((1-3*u+3*i)*a+(3*u-6*i))*a+3*i)*a,L4=1e-7,C4=12;function D4(a,i,u,r,c){let h,d,g=0;do d=i+(u-i)/2,h=of(d,r,c)-a,h>0?u=d:i=d;while(Math.abs(h)>L4&&++g<C4);return d}function Ni(a,i,u,r){if(a===i&&u===r)return je;const c=h=>D4(h,0,1,a,u);return h=>h===0||h===1?h:of(c(h),i,r)}const cf=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,ff=a=>i=>1-a(1-i),df=Ni(.33,1.53,.69,.99),Wu=ff(df),hf=cf(Wu),mf=a=>(a*=2)<1?.5*Wu(a):.5*(2-Math.pow(2,-10*(a-1))),Iu=a=>1-Math.sin(Math.acos(a)),pf=ff(Iu),yf=cf(Iu),R4=Ni(.42,0,1,1),H4=Ni(0,0,.58,1),gf=Ni(.42,0,.58,1),j4=a=>Array.isArray(a)&&typeof a[0]!="number",vf=a=>Array.isArray(a)&&typeof a[0]=="number",O4={linear:je,easeIn:R4,easeInOut:gf,easeOut:H4,circIn:Iu,circInOut:yf,circOut:pf,backIn:Wu,backInOut:hf,backOut:df,anticipate:mf},z4=a=>typeof a=="string",Sf=a=>{if(vf(a)){Pu(a.length===4);const[i,u,r,c]=a;return Ni(i,u,r,c)}else if(z4(a))return O4[a];return a},Jl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function B4(a,i){let u=new Set,r=new Set,c=!1,h=!1;const d=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function p(v){d.has(v)&&(y.schedule(v),a()),v(g)}const y={schedule:(v,b=!1,E=!1)=>{const O=E&&c?u:r;return b&&d.add(v),O.has(v)||O.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(g=v,c){h=!0;return}c=!0,[u,r]=[r,u],u.forEach(p),u.clear(),c=!1,h&&(h=!1,y.process(v))}};return y}const w4=40;function bf(a,i){let u=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>u=!0,d=Jl.reduce((Q,q)=>(Q[q]=B4(h),Q),{}),{setup:g,read:p,resolveKeyframes:y,preUpdate:v,update:b,preRender:E,render:L,postRender:O}=d,B=()=>{const Q=ln.useManualTiming?c.timestamp:performance.now();u=!1,ln.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(Q-c.timestamp,w4),1)),c.timestamp=Q,c.isProcessing=!0,g.process(c),p.process(c),y.process(c),v.process(c),b.process(c),E.process(c),L.process(c),O.process(c),c.isProcessing=!1,u&&i&&(r=!1,a(B))},U=()=>{u=!0,r=!0,c.isProcessing||a(B)};return{schedule:Jl.reduce((Q,q)=>{const z=d[q];return Q[q]=(k,J=!1,K=!1)=>(u||U(),z.schedule(k,J,K)),Q},{}),cancel:Q=>{for(let q=0;q<Jl.length;q++)d[Jl[q]].cancel(Q)},state:c,steps:d}}const{schedule:zt,cancel:Cn,state:ee,steps:tr}=bf(typeof requestAnimationFrame<"u"?requestAnimationFrame:je,!0);let $l;function N4(){$l=void 0}const de={now:()=>($l===void 0&&de.set(ee.isProcessing||ln.useManualTiming?ee.timestamp:performance.now()),$l),set:a=>{$l=a,queueMicrotask(N4)}},Ef=a=>i=>typeof i=="string"&&i.startsWith(a),Af=Ef("--"),Z4=Ef("var(--"),er=a=>Z4(a)?U4.test(a.split("/*")[0].trim()):!1,U4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,za={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Zi={...za,transform:a=>an(0,1,a)},Wl={...za,default:1},Ui=a=>Math.round(a*1e5)/1e5,nr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _4(a){return a==null}const G4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ar=(a,i)=>u=>!!(typeof u=="string"&&G4.test(u)&&u.startsWith(a)||i&&!_4(u)&&Object.prototype.hasOwnProperty.call(u,i)),Tf=(a,i,u)=>r=>{if(typeof r!="string")return r;const[c,h,d,g]=r.match(nr);return{[a]:parseFloat(c),[i]:parseFloat(h),[u]:parseFloat(d),alpha:g!==void 0?parseFloat(g):1}},q4=a=>an(0,255,a),ir={...za,transform:a=>Math.round(q4(a))},sa={test:ar("rgb","red"),parse:Tf("red","green","blue"),transform:({red:a,green:i,blue:u,alpha:r=1})=>"rgba("+ir.transform(a)+", "+ir.transform(i)+", "+ir.transform(u)+", "+Ui(Zi.transform(r))+")"};function Y4(a){let i="",u="",r="",c="";return a.length>5?(i=a.substring(1,3),u=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),u=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),i+=i,u+=u,r+=r,c+=c),{red:parseInt(i,16),green:parseInt(u,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const lr={test:ar("#"),parse:Y4,transform:sa.transform},_i=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Dn=_i("deg"),We=_i("%"),st=_i("px"),X4=_i("vh"),k4=_i("vw"),Mf={...We,parse:a=>We.parse(a)/100,transform:a=>We.transform(a*100)},Ba={test:ar("hsl","hue"),parse:Tf("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:u,alpha:r=1})=>"hsla("+Math.round(a)+", "+We.transform(Ui(i))+", "+We.transform(Ui(u))+", "+Ui(Zi.transform(r))+")"},Yt={test:a=>sa.test(a)||lr.test(a)||Ba.test(a),parse:a=>sa.test(a)?sa.parse(a):Ba.test(a)?Ba.parse(a):lr.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?sa.transform(a):Ba.transform(a),getAnimatableNone:a=>{const i=Yt.parse(a);return i.alpha=0,Yt.transform(i)}},K4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function F4(a){return isNaN(a)&&typeof a=="string"&&(a.match(nr)?.length||0)+(a.match(K4)?.length||0)>0}const xf="number",Vf="color",Q4="var",P4="var(",Lf="${}",J4=/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 Gi(a){const i=a.toString(),u=[],r={color:[],number:[],var:[]},c=[];let h=0;const g=i.replace(J4,p=>(Yt.test(p)?(r.color.push(h),c.push(Vf),u.push(Yt.parse(p))):p.startsWith(P4)?(r.var.push(h),c.push(Q4),u.push(p)):(r.number.push(h),c.push(xf),u.push(parseFloat(p))),++h,Lf)).split(Lf);return{values:u,split:g,indexes:r,types:c}}function Cf(a){return Gi(a).values}function Df(a){const{split:i,types:u}=Gi(a),r=i.length;return c=>{let h="";for(let d=0;d<r;d++)if(h+=i[d],c[d]!==void 0){const g=u[d];g===xf?h+=Ui(c[d]):g===Vf?h+=Yt.transform(c[d]):h+=c[d]}return h}}const $4=a=>typeof a=="number"?0:Yt.test(a)?Yt.getAnimatableNone(a):a;function W4(a){const i=Cf(a);return Df(a)(i.map($4))}const Rn={test:F4,parse:Cf,createTransformer:Df,getAnimatableNone:W4};function sr(a,i,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?a+(i-a)*6*u:u<1/2?i:u<2/3?a+(i-a)*(2/3-u)*6:a}function I4({hue:a,saturation:i,lightness:u,alpha:r}){a/=360,i/=100,u/=100;let c=0,h=0,d=0;if(!i)c=h=d=u;else{const g=u<.5?u*(1+i):u+i-u*i,p=2*u-g;c=sr(p,g,a+1/3),h=sr(p,g,a),d=sr(p,g,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:r}}function Il(a,i){return u=>u>0?i:a}const Nt=(a,i,u)=>a+(i-a)*u,ur=(a,i,u)=>{const r=a*a,c=u*(i*i-r)+r;return c<0?0:Math.sqrt(c)},ty=[lr,sa,Ba],ey=a=>ty.find(i=>i.test(a));function Rf(a){const i=ey(a);if(!i)return!1;let u=i.parse(a);return i===Ba&&(u=I4(u)),u}const Hf=(a,i)=>{const u=Rf(a),r=Rf(i);if(!u||!r)return Il(a,i);const c={...u};return h=>(c.red=ur(u.red,r.red,h),c.green=ur(u.green,r.green,h),c.blue=ur(u.blue,r.blue,h),c.alpha=Nt(u.alpha,r.alpha,h),sa.transform(c))},rr=new Set(["none","hidden"]);function ny(a,i){return rr.has(a)?u=>u<=0?a:i:u=>u>=1?i:a}function ay(a,i){return u=>Nt(a,i,u)}function or(a){return typeof a=="number"?ay:typeof a=="string"?er(a)?Il:Yt.test(a)?Hf:sy:Array.isArray(a)?jf:typeof a=="object"?Yt.test(a)?Hf:iy:Il}function jf(a,i){const u=[...a],r=u.length,c=a.map((h,d)=>or(h)(h,i[d]));return h=>{for(let d=0;d<r;d++)u[d]=c[d](h);return u}}function iy(a,i){const u={...a,...i},r={};for(const c in u)a[c]!==void 0&&i[c]!==void 0&&(r[c]=or(a[c])(a[c],i[c]));return c=>{for(const h in r)u[h]=r[h](c);return u}}function ly(a,i){const u=[],r={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const h=i.types[c],d=a.indexes[h][r[h]],g=a.values[d]??0;u[c]=g,r[h]++}return u}const sy=(a,i)=>{const u=Rn.createTransformer(i),r=Gi(a),c=Gi(i);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?rr.has(a)&&!c.values.length||rr.has(i)&&!r.values.length?ny(a,i):Bi(jf(ly(r,c),c.values),u):Il(a,i)};function Of(a,i,u){return typeof a=="number"&&typeof i=="number"&&typeof u=="number"?Nt(a,i,u):or(a)(a,i)}const uy=a=>{const i=({timestamp:u})=>a(u);return{start:(u=!0)=>zt.update(i,u),stop:()=>Cn(i),now:()=>ee.isProcessing?ee.timestamp:de.now()}},zf=(a,i,u=10)=>{let r="";const c=Math.max(Math.round(i/u),2);for(let h=0;h<c;h++)r+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ts=2e4;function cr(a){let i=0;const u=50;let r=a.next(i);for(;!r.done&&i<ts;)i+=u,r=a.next(i);return i>=ts?1/0:i}function ry(a,i=100,u){const r=u({...a,keyframes:[0,i]}),c=Math.min(cr(r),ts);return{type:"keyframes",ease:h=>r.next(c*h).value/i,duration:Oe(c)}}const oy=5;function Bf(a,i,u){const r=Math.max(i-oy,0);return rf(u-a(r),i-r)}const Zt={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},fr=.001;function cy({duration:a=Zt.duration,bounce:i=Zt.bounce,velocity:u=Zt.velocity,mass:r=Zt.mass}){let c,h,d=1-i;d=an(Zt.minDamping,Zt.maxDamping,d),a=an(Zt.minDuration,Zt.maxDuration,Oe(a)),d<1?(c=y=>{const v=y*d,b=v*a,E=v-u,L=dr(y,d),O=Math.exp(-b);return fr-E/L*O},h=y=>{const b=y*d*a,E=b*u+u,L=Math.pow(d,2)*Math.pow(y,2)*a,O=Math.exp(-b),B=dr(Math.pow(y,2),d);return(-c(y)+fr>0?-1:1)*((E-L)*O)/B}):(c=y=>{const v=Math.exp(-y*a),b=(y-u)*a+1;return-fr+v*b},h=y=>{const v=Math.exp(-y*a),b=(u-y)*(a*a);return v*b});const g=5/a,p=dy(c,h,g);if(a=$e(a),isNaN(p))return{stiffness:Zt.stiffness,damping:Zt.damping,duration:a};{const y=Math.pow(p,2)*r;return{stiffness:y,damping:d*2*Math.sqrt(r*y),duration:a}}}const fy=12;function dy(a,i,u){let r=u;for(let c=1;c<fy;c++)r=r-a(r)/i(r);return r}function dr(a,i){return a*Math.sqrt(1-i*i)}const hy=["duration","bounce"],my=["stiffness","damping","mass"];function wf(a,i){return i.some(u=>a[u]!==void 0)}function py(a){let i={velocity:Zt.velocity,stiffness:Zt.stiffness,damping:Zt.damping,mass:Zt.mass,isResolvedFromDuration:!1,...a};if(!wf(a,my)&&wf(a,hy))if(a.visualDuration){const u=a.visualDuration,r=2*Math.PI/(u*1.2),c=r*r,h=2*an(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Zt.mass,stiffness:c,damping:h}}else{const u=cy(a);i={...i,...u,mass:Zt.mass},i.isResolvedFromDuration=!0}return i}function es(a=Zt.visualDuration,i=Zt.bounce){const u=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:r,restDelta:c}=u;const h=u.keyframes[0],d=u.keyframes[u.keyframes.length-1],g={done:!1,value:h},{stiffness:p,damping:y,mass:v,duration:b,velocity:E,isResolvedFromDuration:L}=py({...u,velocity:-Oe(u.velocity||0)}),O=E||0,B=y/(2*Math.sqrt(p*v)),U=d-h,H=Oe(Math.sqrt(p/v)),Y=Math.abs(U)<5;r||(r=Y?Zt.restSpeed.granular:Zt.restSpeed.default),c||(c=Y?Zt.restDelta.granular:Zt.restDelta.default);let Q;if(B<1){const z=dr(H,B);Q=k=>{const J=Math.exp(-B*H*k);return d-J*((O+B*H*U)/z*Math.sin(z*k)+U*Math.cos(z*k))}}else if(B===1)Q=z=>d-Math.exp(-H*z)*(U+(O+H*U)*z);else{const z=H*Math.sqrt(B*B-1);Q=k=>{const J=Math.exp(-B*H*k),K=Math.min(z*k,300);return d-J*((O+B*H*U)*Math.sinh(K)+z*U*Math.cosh(K))/z}}const q={calculatedDuration:L&&b||null,next:z=>{const k=Q(z);if(L)g.done=z>=b;else{let J=z===0?O:0;B<1&&(J=z===0?$e(O):Bf(Q,z,k));const K=Math.abs(J)<=r,I=Math.abs(d-k)<=c;g.done=K&&I}return g.value=g.done?d:k,g},toString:()=>{const z=Math.min(cr(q),ts),k=zf(J=>q.next(z*J).value,z,30);return z+"ms "+k},toTransition:()=>{}};return q}es.applyToOptions=a=>{const i=ry(a,100,es);return a.ease=i.ease,a.duration=$e(i.duration),a.type="keyframes",a};function hr({keyframes:a,velocity:i=0,power:u=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:d,min:g,max:p,restDelta:y=.5,restSpeed:v}){const b=a[0],E={done:!1,value:b},L=K=>g!==void 0&&K<g||p!==void 0&&K>p,O=K=>g===void 0?p:p===void 0||Math.abs(g-K)<Math.abs(p-K)?g:p;let B=u*i;const U=b+B,H=d===void 0?U:d(U);H!==U&&(B=H-b);const Y=K=>-B*Math.exp(-K/r),Q=K=>H+Y(K),q=K=>{const I=Y(K),at=Q(K);E.done=Math.abs(I)<=y,E.value=E.done?H:at};let z,k;const J=K=>{L(E.value)&&(z=K,k=es({keyframes:[E.value,O(E.value)],velocity:Bf(Q,K,E.value),damping:c,stiffness:h,restDelta:y,restSpeed:v}))};return J(0),{calculatedDuration:null,next:K=>{let I=!1;return!k&&z===void 0&&(I=!0,q(K),J(K)),z!==void 0&&K>=z?k.next(K-z):(!I&&q(K),E)}}}function yy(a,i,u){const r=[],c=u||ln.mix||Of,h=a.length-1;for(let d=0;d<h;d++){let g=c(a[d],a[d+1]);if(i){const p=Array.isArray(i)?i[d]||je:i;g=Bi(p,g)}r.push(g)}return r}function gy(a,i,{clamp:u=!0,ease:r,mixer:c}={}){const h=a.length;if(Pu(h===i.length),h===1)return()=>i[0];if(h===2&&i[0]===i[1])return()=>i[1];const d=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),i=[...i].reverse());const g=yy(i,r,c),p=g.length,y=v=>{if(d&&v<a[0])return i[0];let b=0;if(p>1)for(;b<a.length-2&&!(v<a[b+1]);b++);const E=wi(a[b],a[b+1],v);return g[b](E)};return u?v=>y(an(a[0],a[h-1],v)):y}function vy(a,i){const u=a[a.length-1];for(let r=1;r<=i;r++){const c=wi(0,i,r);a.push(Nt(u,1,c))}}function Sy(a){const i=[0];return vy(i,a.length-1),i}function by(a,i){return a.map(u=>u*i)}function Ey(a,i){return a.map(()=>i||gf).splice(0,a.length-1)}function qi({duration:a=300,keyframes:i,times:u,ease:r="easeInOut"}){const c=j4(r)?r.map(Sf):Sf(r),h={done:!1,value:i[0]},d=by(u&&u.length===i.length?u:Sy(i),a),g=gy(d,i,{ease:Array.isArray(c)?c:Ey(i,c)});return{calculatedDuration:a,next:p=>(h.value=g(p),h.done=p>=a,h)}}const Ay=a=>a!==null;function mr(a,{repeat:i,repeatType:u="loop"},r,c=1){const h=a.filter(Ay),g=c<0||i&&u!=="loop"&&i%2===1?0:h.length-1;return!g||r===void 0?h[g]:r}const Ty={decay:hr,inertia:hr,tween:qi,keyframes:qi,spring:es};function Nf(a){typeof a.type=="string"&&(a.type=Ty[a.type])}class pr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,u){return this.finished.then(i,u)}}const My=a=>a/100;class yr extends pr{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:u}=this.options;u&&u.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Nf(i);const{type:u=qi,repeat:r=0,repeatDelay:c=0,repeatType:h,velocity:d=0}=i;let{keyframes:g}=i;const p=u||qi;p!==qi&&typeof g[0]!="number"&&(this.mixKeyframes=Bi(My,Of(g[0],g[1])),g=[0,100]);const y=p({...i,keyframes:g});h==="mirror"&&(this.mirroredGenerator=p({...i,keyframes:[...g].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=cr(y));const{calculatedDuration:v}=y;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=y}updateTime(i){const u=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(i,u=!1){const{generator:r,totalDuration:c,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:g,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:y=0,keyframes:v,repeat:b,repeatType:E,repeatDelay:L,type:O,onUpdate:B,finalKeyframe:U}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),u?this.currentTime=i:this.updateTime(i);const H=this.currentTime-y*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?H<0:H>c;this.currentTime=Math.max(H,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Q=this.currentTime,q=r;if(b){const K=Math.min(this.currentTime,c)/g;let I=Math.floor(K),at=K%1;!at&&K>=1&&(at=1),at===1&&I--,I=Math.min(I,b+1),!!(I%2)&&(E==="reverse"?(at=1-at,L&&(at-=L/g)):E==="mirror"&&(q=d)),Q=an(0,1,at)*g}const z=Y?{done:!1,value:v[0]}:q.next(Q);h&&(z.value=h(z.value));let{done:k}=z;!Y&&p!==null&&(k=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return J&&O!==hr&&(z.value=mr(v,this.options,U,this.speed)),B&&B(z.value),J&&this.finish(),z}then(i,u){return this.finished.then(i,u)}get duration(){return Oe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Oe(i)}get time(){return Oe(this.currentTime)}set time(i){i=$e(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(de.now());const u=this.playbackSpeed!==i;this.playbackSpeed=i,u&&(this.time=Oe(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=uy,startTime:u}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=u??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(de.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function xy(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const ua=a=>a*180/Math.PI,gr=a=>{const i=ua(Math.atan2(a[1],a[0]));return vr(i)},Vy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:gr,rotateZ:gr,skewX:a=>ua(Math.atan(a[1])),skewY:a=>ua(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},vr=a=>(a=a%360,a<0&&(a+=360),a),Zf=gr,Uf=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),_f=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Ly={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uf,scaleY:_f,scale:a=>(Uf(a)+_f(a))/2,rotateX:a=>vr(ua(Math.atan2(a[6],a[5]))),rotateY:a=>vr(ua(Math.atan2(-a[2],a[0]))),rotateZ:Zf,rotate:Zf,skewX:a=>ua(Math.atan(a[4])),skewY:a=>ua(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Sr(a){return a.includes("scale")?1:0}function br(a,i){if(!a||a==="none")return Sr(i);const u=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(u)r=Ly,c=u;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vy,c=g}if(!c)return Sr(i);const h=r[i],d=c[1].split(",").map(Dy);return typeof h=="function"?h(d):d[h]}const Cy=(a,i)=>{const{transform:u="none"}=getComputedStyle(a);return br(u,i)};function Dy(a){return parseFloat(a.trim())}const wa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Na=new Set(wa),Gf=a=>a===za||a===st,Ry=new Set(["x","y","z"]),Hy=wa.filter(a=>!Ry.has(a));function jy(a){const i=[];return Hy.forEach(u=>{const r=a.getValue(u);r!==void 0&&(i.push([u,r.get()]),r.set(u.startsWith("scale")?1:0))}),i}const ra={width:({x:a},{paddingLeft:i="0",paddingRight:u="0"})=>a.max-a.min-parseFloat(i)-parseFloat(u),height:({y:a},{paddingTop:i="0",paddingBottom:u="0"})=>a.max-a.min-parseFloat(i)-parseFloat(u),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>br(i,"x"),y:(a,{transform:i})=>br(i,"y")};ra.translateX=ra.x,ra.translateY=ra.y;const oa=new Set;let Er=!1,Ar=!1,Tr=!1;function qf(){if(Ar){const a=Array.from(oa).filter(r=>r.needsMeasurement),i=new Set(a.map(r=>r.element)),u=new Map;i.forEach(r=>{const c=jy(r);c.length&&(u.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const c=u.get(r);c&&c.forEach(([h,d])=>{r.getValue(h)?.set(d)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ar=!1,Er=!1,oa.forEach(a=>a.complete(Tr)),oa.clear()}function Yf(){oa.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Ar=!0)})}function Oy(){Tr=!0,Yf(),qf(),Tr=!1}class Mr{constructor(i,u,r,c,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=u,this.name=r,this.motionValue=c,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(oa.add(this),Er||(Er=!0,zt.read(Yf),zt.resolveKeyframes(qf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:u,element:r,motionValue:c}=this;if(i[0]===null){const h=c?.get(),d=i[i.length-1];if(h!==void 0)i[0]=h;else if(r&&u){const g=r.readValue(u,d);g!=null&&(i[0]=g)}i[0]===void 0&&(i[0]=d),c&&h===void 0&&c.set(i[0])}xy(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),oa.delete(this)}cancel(){this.state==="scheduled"&&(oa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const zy=a=>a.startsWith("--");function By(a,i,u){zy(i)?a.style.setProperty(i,u):a.style[i]=u}const wy=Ju(()=>window.ScrollTimeline!==void 0),Ny={};function Zy(a,i){const u=Ju(a);return()=>Ny[i]??u()}const Xf=Zy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Yi=([a,i,u,r])=>`cubic-bezier(${a}, ${i}, ${u}, ${r})`,kf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yi([0,.65,.55,1]),circOut:Yi([.55,0,1,.45]),backIn:Yi([.31,.01,.66,-.59]),backOut:Yi([.33,1.53,.69,.99])};function Kf(a,i){if(a)return typeof a=="function"?Xf()?zf(a,i):"ease-out":vf(a)?Yi(a):Array.isArray(a)?a.map(u=>Kf(u,i)||kf.easeOut):kf[a]}function Uy(a,i,u,{delay:r=0,duration:c=300,repeat:h=0,repeatType:d="loop",ease:g="easeOut",times:p}={},y=void 0){const v={[i]:u};p&&(v.offset=p);const b=Kf(g,c);Array.isArray(b)&&(v.easing=b);const E={delay:r,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return y&&(E.pseudoElement=y),a.animate(v,E)}function Ff(a){return typeof a=="function"&&"applyToOptions"in a}function _y({type:a,...i}){return Ff(a)&&Xf()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Gy extends pr{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:u,name:r,keyframes:c,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:g,onComplete:p}=i;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=i,Pu(typeof i.type!="string");const y=_y(i);this.animation=Uy(u,r,c,y,h),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const v=mr(c,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(v):By(u,r,v),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return Oe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Oe(i)}get time(){return Oe(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=$e(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&wy()?(this.animation.timeline=i,je):u(this)}}const Qf={anticipate:mf,backInOut:hf,circInOut:yf};function qy(a){return a in Qf}function Yy(a){typeof a.ease=="string"&&qy(a.ease)&&(a.ease=Qf[a.ease])}const Pf=10;class Xy extends Gy{constructor(i){Yy(i),Nf(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:u,onUpdate:r,onComplete:c,element:h,...d}=this.options;if(!u)return;if(i!==void 0){u.set(i);return}const g=new yr({...d,autoplay:!1}),p=$e(this.finishedTime??this.time);u.setWithVelocity(g.sample(p-Pf).value,g.sample(p).value,Pf),g.stop()}}const Jf=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Rn.test(a)||a==="0")&&!a.startsWith("url("));function ky(a){const i=a[0];if(a.length===1)return!0;for(let u=0;u<a.length;u++)if(a[u]!==i)return!0}function Ky(a,i,u,r){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const h=a[a.length-1],d=Jf(c,i),g=Jf(h,i);return!d||!g?!1:ky(a)||(u==="spring"||Ff(u))&&r}function xr(a){a.duration=0,a.type="keyframes"}const Fy=new Set(["opacity","clipPath","filter","transform"]),Qy=Ju(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Py(a){const{motionValue:i,name:u,repeatDelay:r,repeatType:c,damping:h,type:d}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:y}=i.owner.getProps();return Qy()&&u&&Fy.has(u)&&(u!=="transform"||!y)&&!p&&!r&&c!=="mirror"&&h!==0&&d!=="inertia"}const Jy=40;class $y extends pr{constructor({autoplay:i=!0,delay:u=0,type:r="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:d="loop",keyframes:g,name:p,motionValue:y,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=de.now();const E={autoplay:i,delay:u,type:r,repeat:c,repeatDelay:h,repeatType:d,name:p,motionValue:y,element:v,...b},L=v?.KeyframeResolver||Mr;this.keyframeResolver=new L(g,(O,B,U)=>this.onKeyframesResolved(O,B,E,!U),p,y,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,u,r,c){this.keyframeResolver=void 0;const{name:h,type:d,velocity:g,delay:p,isHandoff:y,onUpdate:v}=r;this.resolvedAt=de.now(),Ky(i,h,d,g)||((ln.instantAnimations||!p)&&v?.(mr(i,r,u)),i[0]=i[i.length-1],xr(r),r.repeat=0);const E={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Jy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...r,keyframes:i},L=!y&&Py(E)?new Xy({...E,element:E.motionValue.owner.current}):new yr(E);L.finished.then(()=>this.notifyFinished()).catch(je),this.pendingTimeline&&(this.stopTimeline=L.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=L}get finished(){return this._animation?this.animation.finished:this._finished}then(i,u){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Oy()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Wy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Iy(a){const i=Wy.exec(a);if(!i)return[,];const[,u,r,c]=i;return[`--${u??r}`,c]}function $f(a,i,u=1){const[r,c]=Iy(a);if(!r)return;const h=window.getComputedStyle(i).getPropertyValue(r);if(h){const d=h.trim();return lf(d)?parseFloat(d):d}return er(c)?$f(c,i,u+1):c}function Vr(a,i){return a?.[i]??a?.default??a}const Wf=new Set(["width","height","top","left","right","bottom",...wa]),tg={test:a=>a==="auto",parse:a=>a},If=a=>i=>i.test(a),t1=[za,st,We,Dn,k4,X4,tg],e1=a=>t1.find(If(a));function eg(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||uf(a):!0}const ng=new Set(["brightness","contrast","saturate","opacity"]);function ag(a){const[i,u]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[r]=u.match(nr)||[];if(!r)return a;const c=u.replace(r,"");let h=ng.has(i)?1:0;return r!==u&&(h*=100),i+"("+h+c+")"}const ig=/\b([a-z-]*)\(.*?\)/gu,Lr={...Rn,getAnimatableNone:a=>{const i=a.match(ig);return i?i.map(ag).join(" "):a}},n1={...za,transform:Math.round},Cr={borderWidth:st,borderTopWidth:st,borderRightWidth:st,borderBottomWidth:st,borderLeftWidth:st,borderRadius:st,radius:st,borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomRightRadius:st,borderBottomLeftRadius:st,width:st,maxWidth:st,height:st,maxHeight:st,top:st,right:st,bottom:st,left:st,padding:st,paddingTop:st,paddingRight:st,paddingBottom:st,paddingLeft:st,margin:st,marginTop:st,marginRight:st,marginBottom:st,marginLeft:st,backgroundPositionX:st,backgroundPositionY:st,...{rotate:Dn,rotateX:Dn,rotateY:Dn,rotateZ:Dn,scale:Wl,scaleX:Wl,scaleY:Wl,scaleZ:Wl,skew:Dn,skewX:Dn,skewY:Dn,distance:st,translateX:st,translateY:st,translateZ:st,x:st,y:st,z:st,perspective:st,transformPerspective:st,opacity:Zi,originX:Mf,originY:Mf,originZ:st},zIndex:n1,fillOpacity:Zi,strokeOpacity:Zi,numOctaves:n1},lg={...Cr,color:Yt,backgroundColor:Yt,outlineColor:Yt,fill:Yt,stroke:Yt,borderColor:Yt,borderTopColor:Yt,borderRightColor:Yt,borderBottomColor:Yt,borderLeftColor:Yt,filter:Lr,WebkitFilter:Lr},a1=a=>lg[a];function i1(a,i){let u=a1(a);return u!==Lr&&(u=Rn),u.getAnimatableNone?u.getAnimatableNone(i):void 0}const sg=new Set(["auto","none","0"]);function ug(a,i,u){let r=0,c;for(;r<a.length&&!c;){const h=a[r];typeof h=="string"&&!sg.has(h)&&Gi(h).values.length&&(c=a[r]),r++}if(c&&u)for(const h of i)a[h]=i1(u,c)}class rg extends Mr{constructor(i,u,r,c,h){super(i,u,r,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:u,name:r}=this;if(!u||!u.current)return;super.readKeyframes();for(let p=0;p<i.length;p++){let y=i[p];if(typeof y=="string"&&(y=y.trim(),er(y))){const v=$f(y,u.current);v!==void 0&&(i[p]=v),p===i.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Wf.has(r)||i.length!==2)return;const[c,h]=i,d=e1(c),g=e1(h);if(d!==g)if(Gf(d)&&Gf(g))for(let p=0;p<i.length;p++){const y=i[p];typeof y=="string"&&(i[p]=parseFloat(y))}else ra[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:u}=this,r=[];for(let c=0;c<i.length;c++)(i[c]===null||eg(i[c]))&&r.push(c);r.length&&ug(i,r,u)}measureInitialState(){const{element:i,unresolvedKeyframes:u,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ra[r](i.measureViewportBox(),window.getComputedStyle(i.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&i.getValue(r,c).jump(c,!1)}measureEndState(){const{element:i,name:u,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const c=i.getValue(u);c&&c.jump(this.measuredOrigin,!1);const h=r.length-1,d=r[h];r[h]=ra[u](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,p])=>{i.getValue(g).set(p)}),this.resolveNoneKeyframes()}}function og(a,i,u){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=u?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const l1=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function s1(a){return sf(a)&&"offsetHeight"in a}const u1=30,cg=a=>!isNaN(parseFloat(a));class fg{constructor(i,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=de.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=u.owner}setCurrent(i){this.current=i,this.updatedAt=de.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=cg(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,u){this.events[i]||(this.events[i]=new $u);const r=this.events[i].add(u);return i==="change"?()=>{r(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,u){this.passiveEffect=i,this.stopPassiveEffect=u}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,u,r){this.set(u),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,u=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>u1)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,u1);return rf(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(i){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=i(u),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Za(a,i){return new fg(a,i)}const{schedule:Dr}=bf(queueMicrotask,!1),ke={x:!1,y:!1};function r1(){return ke.x||ke.y}function dg(a){return a==="x"||a==="y"?ke[a]?null:(ke[a]=!0,()=>{ke[a]=!1}):ke.x||ke.y?null:(ke.x=ke.y=!0,()=>{ke.x=ke.y=!1})}function o1(a,i){const u=og(a),r=new AbortController,c={passive:!0,...i,signal:r.signal};return[u,c,()=>r.abort()]}function c1(a){return!(a.pointerType==="touch"||r1())}function hg(a,i,u={}){const[r,c,h]=o1(a,u),d=g=>{if(!c1(g))return;const{target:p}=g,y=i(p,g);if(typeof y!="function"||!p)return;const v=b=>{c1(b)&&(y(b),p.removeEventListener("pointerleave",v))};p.addEventListener("pointerleave",v,c)};return r.forEach(g=>{g.addEventListener("pointerenter",d,c)}),h}const f1=(a,i)=>i?a===i?!0:f1(a,i.parentElement):!1,Rr=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,mg=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pg(a){return mg.has(a.tagName)||a.tabIndex!==-1}const ns=new WeakSet;function d1(a){return i=>{i.key==="Enter"&&a(i)}}function Hr(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const yg=(a,i)=>{const u=a.currentTarget;if(!u)return;const r=d1(()=>{if(ns.has(u))return;Hr(u,"down");const c=d1(()=>{Hr(u,"up")}),h=()=>Hr(u,"cancel");u.addEventListener("keyup",c,i),u.addEventListener("blur",h,i)});u.addEventListener("keydown",r,i),u.addEventListener("blur",()=>u.removeEventListener("keydown",r),i)};function h1(a){return Rr(a)&&!r1()}function gg(a,i,u={}){const[r,c,h]=o1(a,u),d=g=>{const p=g.currentTarget;if(!h1(g))return;ns.add(p);const y=i(p,g),v=(L,O)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",E),ns.has(p)&&ns.delete(p),h1(L)&&typeof y=="function"&&y(L,{success:O})},b=L=>{v(L,p===window||p===document||u.useGlobalTarget||f1(p,L.target))},E=L=>{v(L,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",E,c)};return r.forEach(g=>{(u.useGlobalTarget?window:g).addEventListener("pointerdown",d,c),s1(g)&&(g.addEventListener("focus",y=>yg(y,c)),!pg(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),h}function m1(a){return sf(a)&&"ownerSVGElement"in a}function vg(a){return m1(a)&&a.tagName==="svg"}const re=a=>!!(a&&a.getVelocity),Sg=[...t1,Yt,Rn],bg=a=>Sg.find(If(a)),jr=f.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function p1(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Eg(...a){return i=>{let u=!1;const r=a.map(c=>{const h=p1(c,i);return!u&&typeof h=="function"&&(u=!0),h});if(u)return()=>{for(let c=0;c<r.length;c++){const h=r[c];typeof h=="function"?h():p1(a[c],null)}}}}function Ag(...a){return f.useCallback(Eg(...a),a)}class Tg extends f.Component{getSnapshotBeforeUpdate(i){const u=this.props.childRef.current;if(u&&i.isPresent&&!this.props.isPresent){const r=u.offsetParent,c=s1(r)&&r.offsetWidth||0,h=this.props.sizeRef.current;h.height=u.offsetHeight||0,h.width=u.offsetWidth||0,h.top=u.offsetTop,h.left=u.offsetLeft,h.right=c-h.width-h.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Mg({children:a,isPresent:i,anchorX:u,root:r}){const c=f.useId(),h=f.useRef(null),d=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=f.useContext(jr),p=Ag(h,a?.ref);return f.useInsertionEffect(()=>{const{width:y,height:v,top:b,left:E,right:L}=d.current;if(i||!h.current||!y||!v)return;const O=u==="left"?`left: ${E}`:`right: ${L}`;h.current.dataset.motionPopId=c;const B=document.createElement("style");g&&(B.nonce=g);const U=r??document.head;return U.appendChild(B),B.sheet&&B.sheet.insertRule(`
8
+ `+l.stack}}var Pa=Object.prototype.hasOwnProperty,ga=i.unstable_scheduleCallback,Ja=i.unstable_cancelCallback,xs=i.unstable_shouldYield,pu=i.unstable_requestPaint,le=i.unstable_now,gu=i.unstable_getCurrentPriorityLevel,om=i.unstable_ImmediatePriority,um=i.unstable_UserBlockingPriority,Ts=i.unstable_NormalPriority,jb=i.unstable_LowPriority,cm=i.unstable_IdlePriority,Ob=i.log,Nb=i.unstable_setDisableYieldValue,il=null,ze=null;function Hn(t){if(typeof Ob=="function"&&Nb(t),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(il,t)}catch{}}var Ce=Math.clz32?Math.clz32:_b,Hb=Math.log,Ub=Math.LN2;function _b(t){return t>>>=0,t===0?32:31-(Hb(t)/Ub|0)|0}var Es=256,Ms=262144,As=4194304;function ya(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function zs(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var b=l&134217727;return b!==0?(l=b&~u,l!==0?r=ya(l):(h&=b,h!==0?r=ya(h):n||(n=b&~t,n!==0&&(r=ya(n))))):(b=l&~u,b!==0?r=ya(b):h!==0?r=ya(h):n||(n=l&~t,n!==0&&(r=ya(n)))),r===0?0:e!==0&&e!==r&&(e&u)===0&&(u=r&-r,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:r}function ll(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Gb(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fm(){var t=As;return As<<=1,(As&62914560)===0&&(As=4194304),t}function yu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function sl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function kb(t,e,n,l,r,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,R=t.hiddenUpdates;for(n=h&~n;0<n;){var Y=31-Ce(n),Z=1<<Y;b[Y]=0,T[Y]=-1;var B=R[Y];if(B!==null)for(R[Y]=null,Y=0;Y<B.length;Y++){var H=B[Y];H!==null&&(H.lane&=-536870913)}n&=~Z}l!==0&&dm(t,l,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function dm(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ce(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function hm(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Ce(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function mm(t,e){var n=e&-e;return n=(n&42)!==0?1:vu(n),(n&(t.suspendedLanes|e))!==0?0:n}function vu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function bu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function pm(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:t3(t.type))}function gm(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var Un=Math.random().toString(36).slice(2),se="__reactFiber$"+Un,ye="__reactProps$"+Un,Ia="__reactContainer$"+Un,Su="__reactEvents$"+Un,Yb="__reactListeners$"+Un,qb="__reactHandles$"+Un,ym="__reactResources$"+Un,rl="__reactMarker$"+Un;function xu(t){delete t[se],delete t[ye],delete t[Su],delete t[Yb],delete t[qb]}function Wa(t){var e=t[se];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ia]||n[se]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=U2(t);t!==null;){if(n=t[se])return n;t=U2(t)}return e}t=n,n=t.parentNode}return null}function $a(t){if(t=t[se]||t[Ia]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ol(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function ti(t){var e=t[ym];return e||(e=t[ym]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ne(t){t[rl]=!0}var vm=new Set,bm={};function va(t,e){ei(t,e),ei(t+"Capture",e)}function ei(t,e){for(bm[t]=e,t=0;t<e.length;t++)vm.add(e[t])}var Xb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sm={},xm={};function Zb(t){return Pa.call(xm,t)?!0:Pa.call(Sm,t)?!1:Xb.test(t)?xm[t]=!0:(Sm[t]=!0,!1)}function Cs(t,e,n){if(Zb(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ws(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function dn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Tm(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Fb(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Tu(t){if(!t._valueTracker){var e=Tm(t)?"checked":"value";t._valueTracker=Fb(t,e,""+t[e])}}function Em(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Tm(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Ds(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Kb=/[\n"\\]/g;function _e(t){return t.replace(Kb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Eu(t,e,n,l,r,u,h,b){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Mu(t,h,Ue(e)):n!=null?Mu(t,h,Ue(n)):l!=null&&t.removeAttribute("value"),r==null&&u!=null&&(t.defaultChecked=!!u),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Ue(b):t.removeAttribute("name")}function Mm(t,e,n,l,r,u,h,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Tu(t);return}n=n!=null?""+Ue(n):"",e=e!=null?""+Ue(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Tu(t)}function Mu(t,e,n){e==="number"&&Ds(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ni(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Ue(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Am(t,e,n){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ue(n):""}function zm(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(Q(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ue(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Tu(t)}function ai(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Qb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cm(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Qb.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function wm(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&Cm(t,r,l)}else for(var u in e)e.hasOwnProperty(u)&&Cm(t,u,e[u])}function Au(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Pb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rs(t){return Jb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function hn(){}var zu=null;function Cu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ii=null,li=null;function Dm(t){var e=$a(t);if(e&&(t=e.stateNode)){var n=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if(Eu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+_e(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[ye]||null;if(!r)throw Error(c(90));Eu(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Em(l)}break t;case"textarea":Am(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ni(t,!!n.multiple,e,!1)}}}var wu=!1;function Rm(t,e,n){if(wu)return t(e,n);wu=!0;try{var l=t(e);return l}finally{if(wu=!1,(ii!==null||li!==null)&&(yr(),ii&&(e=ii,t=li,li=ii=null,Dm(e),t)))for(e=0;e<t.length;e++)Dm(t[e])}}function ul(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ye]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(mn)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Du=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Du=!1}var _n=null,Ru=null,Ls=null;function Lm(){if(Ls)return Ls;var t,e=Ru,n=e.length,l,r="value"in _n?_n.value:_n.textContent,u=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===r[u-l];l++);return Ls=r.slice(t,1<l?1-l:void 0)}function Bs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Vs(){return!0}function Bm(){return!1}function ve(t){function e(n,l,r,u,h){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Vs:Bm,this.isPropagationStopped=Bm,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),e}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},js=ve(ba),fl=v({},ba,{view:0,detail:0}),Ib=ve(fl),Lu,Bu,dl,Os=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==dl&&(dl&&t.type==="mousemove"?(Lu=t.screenX-dl.screenX,Bu=t.screenY-dl.screenY):Bu=Lu=0,dl=t),Lu)},movementY:function(t){return"movementY"in t?t.movementY:Bu}}),Vm=ve(Os),Wb=v({},Os,{dataTransfer:0}),$b=ve(Wb),tS=v({},fl,{relatedTarget:0}),Vu=ve(tS),eS=v({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),nS=ve(eS),aS=v({},ba,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),iS=ve(aS),lS=v({},ba,{data:0}),jm=ve(lS),sS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rS={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"},oS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uS(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=oS[t])?!!e[t]:!1}function ju(){return uS}var cS=v({},fl,{key:function(t){if(t.key){var e=sS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Bs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?rS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(t){return t.type==="keypress"?Bs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),fS=ve(cS),dS=v({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Om=ve(dS),hS=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),mS=ve(hS),pS=v({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),gS=ve(pS),yS=v({},Os,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),vS=ve(yS),bS=v({},ba,{newState:0,oldState:0}),SS=ve(bS),xS=[9,13,27,32],Ou=mn&&"CompositionEvent"in window,hl=null;mn&&"documentMode"in document&&(hl=document.documentMode);var TS=mn&&"TextEvent"in window&&!hl,Nm=mn&&(!Ou||hl&&8<hl&&11>=hl),Hm=" ",Um=!1;function _m(t,e){switch(t){case"keyup":return xS.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var si=!1;function ES(t,e){switch(t){case"compositionend":return Gm(e);case"keypress":return e.which!==32?null:(Um=!0,Hm);case"textInput":return t=e.data,t===Hm&&Um?null:t;default:return null}}function MS(t,e){if(si)return t==="compositionend"||!Ou&&_m(t,e)?(t=Lm(),Ls=Ru=_n=null,si=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Nm&&e.locale!=="ko"?null:e.data;default:return null}}var AS={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 km(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!AS[t.type]:e==="textarea"}function Ym(t,e,n,l){ii?li?li.push(l):li=[l]:ii=l,e=Mr(e,"onChange"),0<e.length&&(n=new js("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ml=null,pl=null;function zS(t){M2(t,0)}function Ns(t){var e=ol(t);if(Em(e))return t}function qm(t,e){if(t==="change")return e}var Xm=!1;if(mn){var Nu;if(mn){var Hu="oninput"in document;if(!Hu){var Zm=document.createElement("div");Zm.setAttribute("oninput","return;"),Hu=typeof Zm.oninput=="function"}Nu=Hu}else Nu=!1;Xm=Nu&&(!document.documentMode||9<document.documentMode)}function Fm(){ml&&(ml.detachEvent("onpropertychange",Km),pl=ml=null)}function Km(t){if(t.propertyName==="value"&&Ns(pl)){var e=[];Ym(e,pl,t,Cu(t)),Rm(zS,e)}}function CS(t,e,n){t==="focusin"?(Fm(),ml=e,pl=n,ml.attachEvent("onpropertychange",Km)):t==="focusout"&&Fm()}function wS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ns(pl)}function DS(t,e){if(t==="click")return Ns(e)}function RS(t,e){if(t==="input"||t==="change")return Ns(e)}function LS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var we=typeof Object.is=="function"?Object.is:LS;function gl(t,e){if(we(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!Pa.call(e,r)||!we(t[r],e[r]))return!1}return!0}function Qm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pm(t,e){var n=Qm(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Qm(n)}}function Jm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Im(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ds(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ds(t.document)}return e}function Uu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var BS=mn&&"documentMode"in document&&11>=document.documentMode,ri=null,_u=null,yl=null,Gu=!1;function Wm(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||ri==null||ri!==Ds(l)||(l=ri,"selectionStart"in l&&Uu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),yl&&gl(yl,l)||(yl=l,l=Mr(_u,"onSelect"),0<l.length&&(e=new js("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=ri)))}function Sa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var oi={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},ku={},$m={};mn&&($m=document.createElement("div").style,"AnimationEvent"in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),"TransitionEvent"in window||delete oi.transitionend.transition);function xa(t){if(ku[t])return ku[t];if(!oi[t])return t;var e=oi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in $m)return ku[t]=e[n];return t}var t1=xa("animationend"),e1=xa("animationiteration"),n1=xa("animationstart"),VS=xa("transitionrun"),jS=xa("transitionstart"),OS=xa("transitioncancel"),a1=xa("transitionend"),i1=new Map,Yu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Yu.push("scrollEnd");function Je(t,e){i1.set(t,e),va(e,[t])}var Hs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",t);return}console.error(t)},Ge=[],ui=0,qu=0;function Us(){for(var t=ui,e=qu=ui=0;e<t;){var n=Ge[e];Ge[e++]=null;var l=Ge[e];Ge[e++]=null;var r=Ge[e];Ge[e++]=null;var u=Ge[e];if(Ge[e++]=null,l!==null&&r!==null){var h=l.pending;h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r}u!==0&&l1(n,r,u)}}function _s(t,e,n,l){Ge[ui++]=t,Ge[ui++]=e,Ge[ui++]=n,Ge[ui++]=l,qu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Xu(t,e,n,l){return _s(t,e,n,l),Gs(t)}function Ta(t,e){return _s(t,null,null,e),Gs(t)}function l1(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(r=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,r&&e!==null&&(r=31-Ce(n),t=u.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),u):null}function Gs(t){if(50<_l)throw _l=0,$c=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ci={};function NS(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(t,e,n,l){return new NS(t,e,n,l)}function Zu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pn(t,e){var n=t.alternate;return n===null?(n=De(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function s1(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ks(t,e,n,l,r,u){var h=0;if(l=t,typeof t=="function")Zu(t)&&(h=1);else if(typeof t=="string")h=k6(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=De(31,n,e,r),t.elementType=lt,t.lanes=u,t;case O:return Ea(n.children,r,u,e);case A:h=8,r|=24;break;case k:return t=De(12,n,e,r|2),t.elementType=k,t.lanes=u,t;case F:return t=De(13,n,e,r),t.elementType=F,t.lanes=u,t;case V:return t=De(19,n,e,r),t.elementType=V,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:h=10;break t;case G:h=9;break t;case _:h=11;break t;case N:h=14;break t;case tt:h=16,l=null;break t}h=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=De(h,n,e,r),e.elementType=t,e.type=l,e.lanes=u,e}function Ea(t,e,n,l){return t=De(7,t,l,e),t.lanes=n,t}function Fu(t,e,n){return t=De(6,t,null,e),t.lanes=n,t}function r1(t){var e=De(18,null,null,0);return e.stateNode=t,e}function Ku(t,e,n){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var o1=new WeakMap;function ke(t,e){if(typeof t=="object"&&t!==null){var n=o1.get(t);return n!==void 0?n:(e={value:t,source:e,stack:al(e)},o1.set(t,e),e)}return{value:t,source:e,stack:al(e)}}var fi=[],di=0,Ys=null,vl=0,Ye=[],qe=0,Gn=null,an=1,ln="";function gn(t,e){fi[di++]=vl,fi[di++]=Ys,Ys=t,vl=e}function u1(t,e,n){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Gn,Gn=t;var l=an;t=ln;var r=32-Ce(l)-1;l&=~(1<<r),n+=1;var u=32-Ce(e)+r;if(30<u){var h=r-r%5;u=(l&(1<<h)-1).toString(32),l>>=h,r-=h,an=1<<32-Ce(e)+r|n<<r|l,ln=u+t}else an=1<<u|n<<r|l,ln=t}function Qu(t){t.return!==null&&(gn(t,1),u1(t,1,0))}function Pu(t){for(;t===Ys;)Ys=fi[--di],fi[di]=null,vl=fi[--di],fi[di]=null;for(;t===Gn;)Gn=Ye[--qe],Ye[qe]=null,ln=Ye[--qe],Ye[qe]=null,an=Ye[--qe],Ye[qe]=null}function c1(t,e){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Gn,an=e.id,ln=e.overflow,Gn=t}var re=null,Vt=null,xt=!1,kn=null,Xe=!1,Ju=Error(c(519));function Yn(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(ke(e,t)),Ju}function f1(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[se]=t,e[ye]=l,n){case"dialog":vt("cancel",e),vt("close",e);break;case"iframe":case"object":case"embed":vt("load",e);break;case"video":case"audio":for(n=0;n<kl.length;n++)vt(kl[n],e);break;case"source":vt("error",e);break;case"img":case"image":case"link":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"input":vt("invalid",e),Mm(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":vt("invalid",e);break;case"textarea":vt("invalid",e),zm(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||w2(e.textContent,n)?(l.popover!=null&&(vt("beforetoggle",e),vt("toggle",e)),l.onScroll!=null&&vt("scroll",e),l.onScrollEnd!=null&&vt("scrollend",e),l.onClick!=null&&(e.onclick=hn),e=!0):e=!1,e||Yn(t,!0)}function d1(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:re=re.return}}function hi(t){if(t!==re)return!1;if(!xt)return d1(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||pf(t.type,t.memoizedProps)),n=!n),n&&Vt&&Yn(t),d1(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Vt=H2(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Vt=H2(t)}else e===27?(e=Vt,na(t.type)?(t=Sf,Sf=null,Vt=t):Vt=e):Vt=re?Fe(t.stateNode.nextSibling):null;return!0}function Ma(){Vt=re=null,xt=!1}function Iu(){var t=kn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),kn=null),t}function bl(t){kn===null?kn=[t]:kn.push(t)}var Wu=E(null),Aa=null,yn=null;function qn(t,e,n){J(Wu,e._currentValue),e._currentValue=n}function vn(t){t._currentValue=Wu.current,X(Wu)}function $u(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function tc(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;t:for(;u!==null;){var b=u;u=r;for(var T=0;T<e.length;T++)if(b.context===e[T]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),$u(u.return,n,t),l||(h=null);break t}u=b.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(c(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),$u(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function mi(t,e,n,l){t=null;for(var r=e,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(c(387));if(h=h.memoizedProps,h!==null){var b=r.type;we(r.pendingProps.value,h.value)||(t!==null?t.push(b):t=[b])}}else if(r===Tt.current){if(h=r.alternate,h===null)throw Error(c(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Fl):t=[Fl])}r=r.return}t!==null&&tc(e,t,n,l),e.flags|=262144}function qs(t){for(t=t.firstContext;t!==null;){if(!we(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function za(t){Aa=t,yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return h1(Aa,t)}function Xs(t,e){return Aa===null&&za(t),h1(t,e)}function h1(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},yn===null){if(t===null)throw Error(c(308));yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else yn=yn.next=e;return n}var HS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},US=i.unstable_scheduleCallback,_S=i.unstable_NormalPriority,Kt={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new HS,data:new Map,refCount:0}}function Sl(t){t.refCount--,t.refCount===0&&US(_S,function(){t.controller.abort()})}var xl=null,nc=0,pi=0,gi=null;function GS(t,e){if(xl===null){var n=xl=[];nc=0,pi=sf(),gi={status:"pending",value:void 0,then:function(l){n.push(l)}}}return nc++,e.then(m1,m1),e}function m1(){if(--nc===0&&xl!==null){gi!==null&&(gi.status="fulfilled");var t=xl;xl=null,pi=0,gi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function kS(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var p1=U.S;U.S=function(t,e){Wp=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&GS(t,e),p1!==null&&p1(t,e)};var Ca=E(null);function ac(){var t=Ca.current;return t!==null?t:Lt.pooledCache}function Zs(t,e){e===null?J(Ca,Ca.current):J(Ca,e.pool)}function g1(){var t=ac();return t===null?null:{parent:Kt._currentValue,pool:t}}var yi=Error(c(460)),ic=Error(c(474)),Fs=Error(c(542)),Ks={then:function(){}};function y1(t){return t=t.status,t==="fulfilled"||t==="rejected"}function v1(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(hn,hn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,S1(t),t;default:if(typeof e.status=="string")e.then(hn,hn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,S1(t),t}throw Da=e,yi}}function wa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Da=n,yi):n}}var Da=null;function b1(){if(Da===null)throw Error(c(459));var t=Da;return Da=null,t}function S1(t){if(t===yi||t===Fs)throw Error(c(483))}var vi=null,Tl=0;function Qs(t){var e=Tl;return Tl+=1,vi===null&&(vi=[]),v1(vi,t,e)}function El(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ps(t,e){throw e.$$typeof===z?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function x1(t){function e(w,M){if(t){var D=w.deletions;D===null?(w.deletions=[M],w.flags|=16):D.push(M)}}function n(w,M){if(!t)return null;for(;M!==null;)e(w,M),M=M.sibling;return null}function l(w){for(var M=new Map;w!==null;)w.key!==null?M.set(w.key,w):M.set(w.index,w),w=w.sibling;return M}function r(w,M){return w=pn(w,M),w.index=0,w.sibling=null,w}function u(w,M,D){return w.index=D,t?(D=w.alternate,D!==null?(D=D.index,D<M?(w.flags|=67108866,M):D):(w.flags|=67108866,M)):(w.flags|=1048576,M)}function h(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function b(w,M,D,q){return M===null||M.tag!==6?(M=Fu(D,w.mode,q),M.return=w,M):(M=r(M,D),M.return=w,M)}function T(w,M,D,q){var at=D.type;return at===O?Y(w,M,D.props.children,q,D.key):M!==null&&(M.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===tt&&wa(at)===M.type)?(M=r(M,D.props),El(M,D),M.return=w,M):(M=ks(D.type,D.key,D.props,null,w.mode,q),El(M,D),M.return=w,M)}function R(w,M,D,q){return M===null||M.tag!==4||M.stateNode.containerInfo!==D.containerInfo||M.stateNode.implementation!==D.implementation?(M=Ku(D,w.mode,q),M.return=w,M):(M=r(M,D.children||[]),M.return=w,M)}function Y(w,M,D,q,at){return M===null||M.tag!==7?(M=Ea(D,w.mode,q,at),M.return=w,M):(M=r(M,D),M.return=w,M)}function Z(w,M,D){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Fu(""+M,w.mode,D),M.return=w,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return D=ks(M.type,M.key,M.props,null,w.mode,D),El(D,M),D.return=w,D;case L:return M=Ku(M,w.mode,D),M.return=w,M;case tt:return M=wa(M),Z(w,M,D)}if(Q(M)||ut(M))return M=Ea(M,w.mode,D,null),M.return=w,M;if(typeof M.then=="function")return Z(w,Qs(M),D);if(M.$$typeof===P)return Z(w,Xs(w,M),D);Ps(w,M)}return null}function B(w,M,D,q){var at=M!==null?M.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return at!==null?null:b(w,M,""+D,q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case j:return D.key===at?T(w,M,D,q):null;case L:return D.key===at?R(w,M,D,q):null;case tt:return D=wa(D),B(w,M,D,q)}if(Q(D)||ut(D))return at!==null?null:Y(w,M,D,q,null);if(typeof D.then=="function")return B(w,M,Qs(D),q);if(D.$$typeof===P)return B(w,M,Xs(w,D),q);Ps(w,D)}return null}function H(w,M,D,q,at){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return w=w.get(D)||null,b(M,w,""+q,at);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case j:return w=w.get(q.key===null?D:q.key)||null,T(M,w,q,at);case L:return w=w.get(q.key===null?D:q.key)||null,R(M,w,q,at);case tt:return q=wa(q),H(w,M,D,q,at)}if(Q(q)||ut(q))return w=w.get(D)||null,Y(M,w,q,at,null);if(typeof q.then=="function")return H(w,M,D,Qs(q),at);if(q.$$typeof===P)return H(w,M,D,Xs(M,q),at);Ps(M,q)}return null}function $(w,M,D,q){for(var at=null,Et=null,et=M,pt=M=0,St=null;et!==null&&pt<D.length;pt++){et.index>pt?(St=et,et=null):St=et.sibling;var Mt=B(w,et,D[pt],q);if(Mt===null){et===null&&(et=St);break}t&&et&&Mt.alternate===null&&e(w,et),M=u(Mt,M,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt,et=St}if(pt===D.length)return n(w,et),xt&&gn(w,pt),at;if(et===null){for(;pt<D.length;pt++)et=Z(w,D[pt],q),et!==null&&(M=u(et,M,pt),Et===null?at=et:Et.sibling=et,Et=et);return xt&&gn(w,pt),at}for(et=l(et);pt<D.length;pt++)St=H(et,w,pt,D[pt],q),St!==null&&(t&&St.alternate!==null&&et.delete(St.key===null?pt:St.key),M=u(St,M,pt),Et===null?at=St:Et.sibling=St,Et=St);return t&&et.forEach(function(ra){return e(w,ra)}),xt&&gn(w,pt),at}function st(w,M,D,q){if(D==null)throw Error(c(151));for(var at=null,Et=null,et=M,pt=M=0,St=null,Mt=D.next();et!==null&&!Mt.done;pt++,Mt=D.next()){et.index>pt?(St=et,et=null):St=et.sibling;var ra=B(w,et,Mt.value,q);if(ra===null){et===null&&(et=St);break}t&&et&&ra.alternate===null&&e(w,et),M=u(ra,M,pt),Et===null?at=ra:Et.sibling=ra,Et=ra,et=St}if(Mt.done)return n(w,et),xt&&gn(w,pt),at;if(et===null){for(;!Mt.done;pt++,Mt=D.next())Mt=Z(w,Mt.value,q),Mt!==null&&(M=u(Mt,M,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt);return xt&&gn(w,pt),at}for(et=l(et);!Mt.done;pt++,Mt=D.next())Mt=H(et,w,pt,Mt.value,q),Mt!==null&&(t&&Mt.alternate!==null&&et.delete(Mt.key===null?pt:Mt.key),M=u(Mt,M,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt);return t&&et.forEach(function(W6){return e(w,W6)}),xt&&gn(w,pt),at}function Rt(w,M,D,q){if(typeof D=="object"&&D!==null&&D.type===O&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case j:t:{for(var at=D.key;M!==null;){if(M.key===at){if(at=D.type,at===O){if(M.tag===7){n(w,M.sibling),q=r(M,D.props.children),q.return=w,w=q;break t}}else if(M.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===tt&&wa(at)===M.type){n(w,M.sibling),q=r(M,D.props),El(q,D),q.return=w,w=q;break t}n(w,M);break}else e(w,M);M=M.sibling}D.type===O?(q=Ea(D.props.children,w.mode,q,D.key),q.return=w,w=q):(q=ks(D.type,D.key,D.props,null,w.mode,q),El(q,D),q.return=w,w=q)}return h(w);case L:t:{for(at=D.key;M!==null;){if(M.key===at)if(M.tag===4&&M.stateNode.containerInfo===D.containerInfo&&M.stateNode.implementation===D.implementation){n(w,M.sibling),q=r(M,D.children||[]),q.return=w,w=q;break t}else{n(w,M);break}else e(w,M);M=M.sibling}q=Ku(D,w.mode,q),q.return=w,w=q}return h(w);case tt:return D=wa(D),Rt(w,M,D,q)}if(Q(D))return $(w,M,D,q);if(ut(D)){if(at=ut(D),typeof at!="function")throw Error(c(150));return D=at.call(D),st(w,M,D,q)}if(typeof D.then=="function")return Rt(w,M,Qs(D),q);if(D.$$typeof===P)return Rt(w,M,Xs(w,D),q);Ps(w,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,M!==null&&M.tag===6?(n(w,M.sibling),q=r(M,D),q.return=w,w=q):(n(w,M),q=Fu(D,w.mode,q),q.return=w,w=q),h(w)):n(w,M)}return function(w,M,D,q){try{Tl=0;var at=Rt(w,M,D,q);return vi=null,at}catch(et){if(et===yi||et===Fs)throw et;var Et=De(29,et,null,w.mode);return Et.lanes=q,Et.return=w,Et}finally{}}}var Ra=x1(!0),T1=x1(!1),Xn=!1;function lc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(At&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=Gs(t),l1(t,null,n),e}return _s(t,l,e,n),Gs(t)}function Ml(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,hm(t,n)}}function rc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=e:u=u.next=e}else r=u=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var oc=!1;function Al(){if(oc){var t=gi;if(t!==null)throw t}}function zl(t,e,n,l){oc=!1;var r=t.updateQueue;Xn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,R=T.next;T.next=null,h===null?u=R:h.next=R,h=T;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==h&&(b===null?Y.firstBaseUpdate=R:b.next=R,Y.lastBaseUpdate=T))}if(u!==null){var Z=r.baseState;h=0,Y=R=T=null,b=u;do{var B=b.lane&-536870913,H=B!==b.lane;if(H?(bt&B)===B:(l&B)===B){B!==0&&B===pi&&(oc=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var $=t,st=b;B=e;var Rt=n;switch(st.tag){case 1:if($=st.payload,typeof $=="function"){Z=$.call(Rt,Z,B);break t}Z=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=st.payload,B=typeof $=="function"?$.call(Rt,Z,B):$,B==null)break t;Z=v({},Z,B);break t;case 2:Xn=!0}}B=b.callback,B!==null&&(t.flags|=64,H&&(t.flags|=8192),H=r.callbacks,H===null?r.callbacks=[B]:H.push(B))}else H={lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(R=Y=H,T=Z):Y=Y.next=H,h|=B;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;H=b,b=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);Y===null&&(T=Z),r.baseState=T,r.firstBaseUpdate=R,r.lastBaseUpdate=Y,u===null&&(r.shared.lanes=0),In|=h,t.lanes=h,t.memoizedState=Z}}function E1(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function M1(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)E1(n[t],e)}var bi=E(null),Js=E(0);function A1(t,e){t=Cn,J(Js,t),J(bi,e),Cn=t|e.baseLanes}function uc(){J(Js,Cn),J(bi,bi.current)}function cc(){Cn=Js.current,X(bi),X(Js)}var Re=E(null),Ze=null;function Kn(t){var e=t.alternate;J(Xt,Xt.current&1),J(Re,t),Ze===null&&(e===null||bi.current!==null||e.memoizedState!==null)&&(Ze=t)}function fc(t){J(Xt,Xt.current),J(Re,t),Ze===null&&(Ze=t)}function z1(t){t.tag===22?(J(Xt,Xt.current),J(Re,t),Ze===null&&(Ze=t)):Qn()}function Qn(){J(Xt,Xt.current),J(Re,Re.current)}function Le(t){X(Re),Ze===t&&(Ze=null),X(Xt)}var Xt=E(0);function Is(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vf(n)||bf(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var bn=0,ht=null,wt=null,Qt=null,Ws=!1,Si=!1,La=!1,$s=0,Cl=0,xi=null,YS=0;function kt(){throw Error(c(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!we(t[n],e[n]))return!1;return!0}function hc(t,e,n,l,r,u){return bn=u,ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?up:wc,La=!1,u=n(l,r),La=!1,Si&&(u=w1(e,n,l,r)),C1(t),u}function C1(t){U.H=Rl;var e=wt!==null&&wt.next!==null;if(bn=0,Qt=wt=ht=null,Ws=!1,Cl=0,xi=null,e)throw Error(c(300));t===null||Pt||(t=t.dependencies,t!==null&&qs(t)&&(Pt=!0))}function w1(t,e,n,l){ht=t;var r=0;do{if(Si&&(xi=null),Cl=0,Si=!1,25<=r)throw Error(c(301));if(r+=1,Qt=wt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=cp,u=e(n,l)}while(Si);return u}function qS(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?wl(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(ht.flags|=1024),e}function mc(){var t=$s!==0;return $s=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function gc(t){if(Ws){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ws=!1}bn=0,Qt=wt=ht=null,Si=!1,Cl=$s=0,xi=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?ht.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Zt(){if(wt===null){var t=ht.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=Qt===null?ht.memoizedState:Qt.next;if(e!==null)Qt=e,wt=t;else{if(t===null)throw ht.alternate===null?Error(c(467)):Error(c(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Qt===null?ht.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function tr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(t){var e=Cl;return Cl+=1,xi===null&&(xi=[]),t=v1(xi,t,e),e=ht,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?up:wc),t}function er(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return wl(t);if(t.$$typeof===P)return oe(t)}throw Error(c(438,String(t)))}function yc(t){var e=null,n=ht.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ht.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=tr(),ht.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=ot;return e.index++,n}function Sn(t,e){return typeof e=="function"?e(t):e}function nr(t){var e=Zt();return vc(e,wt,t)}function vc(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var r=t.baseQueue,u=l.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}e.baseQueue=r=u,l.pending=null}if(u=t.baseState,r===null)t.memoizedState=u;else{e=r.next;var b=h=null,T=null,R=e,Y=!1;do{var Z=R.lane&-536870913;if(Z!==R.lane?(bt&Z)===Z:(bn&Z)===Z){var B=R.revertLane;if(B===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),Z===pi&&(Y=!0);else if((bn&B)===B){R=R.next,B===pi&&(Y=!0);continue}else Z={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(b=T=Z,h=u):T=T.next=Z,ht.lanes|=B,In|=B;Z=R.action,La&&n(u,Z),u=R.hasEagerState?R.eagerState:n(u,Z)}else B={lane:Z,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(b=T=B,h=u):T=T.next=B,ht.lanes|=Z,In|=Z;R=R.next}while(R!==null&&R!==e);if(T===null?h=u:T.next=b,!we(u,t.memoizedState)&&(Pt=!0,Y&&(n=gi,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,l.lastRenderedState=u}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function bc(t){var e=Zt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,u=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=t(u,h.action),h=h.next;while(h!==r);we(u,e.memoizedState)||(Pt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function D1(t,e,n){var l=ht,r=Zt(),u=xt;if(u){if(n===void 0)throw Error(c(407));n=n()}else n=e();var h=!we((wt||r).memoizedState,n);if(h&&(r.memoizedState=n,Pt=!0),r=r.queue,Tc(B1.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,Ti(9,{destroy:void 0},L1.bind(null,l,r,n,e),null),Lt===null)throw Error(c(349));u||(bn&127)!==0||R1(l,e,n)}return n}function R1(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ht.updateQueue,e===null?(e=tr(),ht.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function L1(t,e,n,l){e.value=n,e.getSnapshot=l,V1(e)&&j1(t)}function B1(t,e,n){return n(function(){V1(e)&&j1(t)})}function V1(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!we(t,n)}catch{return!0}}function j1(t){var e=Ta(t,2);e!==null&&Ee(e,t,2)}function Sc(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),La){Hn(!0);try{n()}finally{Hn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t},e}function O1(t,e,n,l){return t.baseState=n,vc(t,wt,typeof l=="function"?l:Sn)}function XS(t,e,n,l,r){if(lr(t))throw Error(c(485));if(t=e.action,t!==null){var u={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};U.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,N1(e,u)):(u.next=n.next,e.pending=n.next=u)}}function N1(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var u=U.T,h={};U.T=h;try{var b=n(r,l),T=U.S;T!==null&&T(h,b),H1(t,e,b)}catch(R){xc(t,e,R)}finally{u!==null&&h.types!==null&&(u.types=h.types),U.T=u}}else try{u=n(r,l),H1(t,e,u)}catch(R){xc(t,e,R)}}function H1(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){U1(t,e,l)},function(l){return xc(t,e,l)}):U1(t,e,n)}function U1(t,e,n){e.status="fulfilled",e.value=n,_1(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,N1(t,n)))}function xc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,_1(e),e=e.next;while(e!==l)}t.action=null}function _1(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function G1(t,e){return e}function k1(t,e){if(xt){var n=Lt.formState;if(n!==null){t:{var l=ht;if(xt){if(Vt){e:{for(var r=Vt,u=Xe;r.nodeType!==8;){if(!u){r=null;break e}if(r=Fe(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Vt=Fe(r.nextSibling),l=r.data==="F!";break t}}Yn(l)}l=!1}l&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:G1,lastRenderedState:e},n.queue=l,n=sp.bind(null,ht,l),l.dispatch=n,l=Sc(!1),u=Cc.bind(null,ht,!1,l.queue),l=pe(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=XS.bind(null,ht,r,u,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function Y1(t){var e=Zt();return q1(e,wt,t)}function q1(t,e,n){if(e=vc(t,e,G1)[0],t=nr(Sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=wl(e)}catch(h){throw h===yi?Fs:h}else l=e;e=Zt();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(ht.flags|=2048,Ti(9,{destroy:void 0},ZS.bind(null,r,n),null)),[l,u,t]}function ZS(t,e){t.action=e}function X1(t){var e=Zt(),n=wt;if(n!==null)return q1(e,n,t);Zt(),e=e.memoizedState,n=Zt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ti(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ht.updateQueue,e===null&&(e=tr(),ht.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function Z1(){return Zt().memoizedState}function ar(t,e,n,l){var r=pe();ht.flags|=t,r.memoizedState=Ti(1|e,{destroy:void 0},n,l===void 0?null:l)}function ir(t,e,n,l){var r=Zt();l=l===void 0?null:l;var u=r.memoizedState.inst;wt!==null&&l!==null&&dc(l,wt.memoizedState.deps)?r.memoizedState=Ti(e,u,n,l):(ht.flags|=t,r.memoizedState=Ti(1|e,u,n,l))}function F1(t,e){ar(8390656,8,t,e)}function Tc(t,e){ir(2048,8,t,e)}function FS(t){ht.flags|=4;var e=ht.updateQueue;if(e===null)e=tr(),ht.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function K1(t){var e=Zt().memoizedState;return FS({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Q1(t,e){return ir(4,2,t,e)}function P1(t,e){return ir(4,4,t,e)}function J1(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function I1(t,e,n){n=n!=null?n.concat([t]):null,ir(4,4,J1.bind(null,e,t),n)}function Ec(){}function W1(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&dc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function $1(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&dc(e,l[1]))return l[0];if(l=t(),La){Hn(!0);try{t()}finally{Hn(!1)}}return n.memoizedState=[l,e],l}function Mc(t,e,n){return n===void 0||(bn&1073741824)!==0&&(bt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=t2(),ht.lanes|=t,In|=t,n)}function tp(t,e,n,l){return we(n,e)?n:bi.current!==null?(t=Mc(t,n,l),we(t,e)||(Pt=!0),t):(bn&42)===0||(bn&1073741824)!==0&&(bt&261930)===0?(Pt=!0,t.memoizedState=n):(t=t2(),ht.lanes|=t,In|=t,e)}function ep(t,e,n,l,r){var u=K.p;K.p=u!==0&&8>u?u:8;var h=U.T,b={};U.T=b,Cc(t,!1,e,n);try{var T=r(),R=U.S;if(R!==null&&R(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Y=kS(T,l);Dl(t,e,Y,je(t))}else Dl(t,e,l,je(t))}catch(Z){Dl(t,e,{then:function(){},status:"rejected",reason:Z},je())}finally{K.p=u,h!==null&&b.types!==null&&(h.types=b.types),U.T=h}}function KS(){}function Ac(t,e,n,l){if(t.tag!==5)throw Error(c(476));var r=np(t).queue;ep(t,r,e,nt,n===null?KS:function(){return ap(t),n(l)})}function np(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:nt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ap(t){var e=np(t);e.next===null&&(e=t.alternate.memoizedState),Dl(t,e.next.queue,{},je())}function zc(){return oe(Fl)}function ip(){return Zt().memoizedState}function lp(){return Zt().memoizedState}function QS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=je();t=Zn(n);var l=Fn(e,t,n);l!==null&&(Ee(l,e,n),Ml(l,e,n)),e={cache:ec()},t.payload=e;return}e=e.return}}function PS(t,e,n){var l=je();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lr(t)?rp(e,n):(n=Xu(t,e,n,l),n!==null&&(Ee(n,t,l),op(n,e,l)))}function sp(t,e,n){var l=je();Dl(t,e,n,l)}function Dl(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lr(t))rp(e,r);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,b=u(h,n);if(r.hasEagerState=!0,r.eagerState=b,we(b,h))return _s(t,e,r,0),Lt===null&&Us(),!1}catch{}finally{}if(n=Xu(t,e,r,l),n!==null)return Ee(n,t,l),op(n,e,l),!0}return!1}function Cc(t,e,n,l){if(l={lane:2,revertLane:sf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},lr(t)){if(e)throw Error(c(479))}else e=Xu(t,n,l,2),e!==null&&Ee(e,t,2)}function lr(t){var e=t.alternate;return t===ht||e!==null&&e===ht}function rp(t,e){Si=Ws=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function op(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,hm(t,n)}}var Rl={readContext:oe,use:er,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Rl.useEffectEvent=kt;var up={readContext:oe,use:er,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:F1,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ar(4194308,4,J1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ar(4194308,4,t,e)},useInsertionEffect:function(t,e){ar(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var l=t();if(La){Hn(!0);try{t()}finally{Hn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=pe();if(n!==void 0){var r=n(e);if(La){Hn(!0);try{n(e)}finally{Hn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=PS.bind(null,ht,t),[l.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Sc(t);var e=t.queue,n=sp.bind(null,ht,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ec,useDeferredValue:function(t,e){var n=pe();return Mc(n,t,e)},useTransition:function(){var t=Sc(!1);return t=ep.bind(null,ht,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ht,r=pe();if(xt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Lt===null)throw Error(c(349));(bt&127)!==0||R1(l,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,F1(B1.bind(null,l,u,t),[t]),l.flags|=2048,Ti(9,{destroy:void 0},L1.bind(null,l,u,n,e),null),n},useId:function(){var t=pe(),e=Lt.identifierPrefix;if(xt){var n=ln,l=an;n=(l&~(1<<32-Ce(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=$s++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=YS++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:zc,useFormState:k1,useActionState:k1,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Cc.bind(null,ht,!0,n),n.dispatch=e,[t,e]},useMemoCache:yc,useCacheRefresh:function(){return pe().memoizedState=QS.bind(null,ht)},useEffectEvent:function(t){var e=pe(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},wc={readContext:oe,use:er,useCallback:W1,useContext:oe,useEffect:Tc,useImperativeHandle:I1,useInsertionEffect:Q1,useLayoutEffect:P1,useMemo:$1,useReducer:nr,useRef:Z1,useState:function(){return nr(Sn)},useDebugValue:Ec,useDeferredValue:function(t,e){var n=Zt();return tp(n,wt.memoizedState,t,e)},useTransition:function(){var t=nr(Sn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:wl(t),e]},useSyncExternalStore:D1,useId:ip,useHostTransitionStatus:zc,useFormState:Y1,useActionState:Y1,useOptimistic:function(t,e){var n=Zt();return O1(n,wt,t,e)},useMemoCache:yc,useCacheRefresh:lp};wc.useEffectEvent=K1;var cp={readContext:oe,use:er,useCallback:W1,useContext:oe,useEffect:Tc,useImperativeHandle:I1,useInsertionEffect:Q1,useLayoutEffect:P1,useMemo:$1,useReducer:bc,useRef:Z1,useState:function(){return bc(Sn)},useDebugValue:Ec,useDeferredValue:function(t,e){var n=Zt();return wt===null?Mc(n,t,e):tp(n,wt.memoizedState,t,e)},useTransition:function(){var t=bc(Sn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:wl(t),e]},useSyncExternalStore:D1,useId:ip,useHostTransitionStatus:zc,useFormState:X1,useActionState:X1,useOptimistic:function(t,e){var n=Zt();return wt!==null?O1(n,wt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:yc,useCacheRefresh:lp};cp.useEffectEvent=K1;function Dc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Rc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=je(),r=Zn(l);r.payload=e,n!=null&&(r.callback=n),e=Fn(t,r,l),e!==null&&(Ee(e,t,l),Ml(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=je(),r=Zn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Fn(t,r,l),e!==null&&(Ee(e,t,l),Ml(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=je(),l=Zn(n);l.tag=2,e!=null&&(l.callback=e),e=Fn(t,l,n),e!==null&&(Ee(e,t,n),Ml(e,t,n))}};function fp(t,e,n,l,r,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,h):e.prototype&&e.prototype.isPureReactComponent?!gl(n,l)||!gl(r,u):!0}function dp(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Rc.enqueueReplaceState(e,e.state,null)}function Ba(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function hp(t){Hs(t)}function mp(t){console.error(t)}function pp(t){Hs(t)}function sr(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function gp(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Lc(t,e,n){return n=Zn(n),n.tag=3,n.payload={element:null},n.callback=function(){sr(t,e)},n}function yp(t){return t=Zn(t),t.tag=3,t}function vp(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=l.value;t.payload=function(){return r(u)},t.callback=function(){gp(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){gp(e,n,l),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function JS(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&mi(e,n,r,!0),n=Re.current,n!==null){switch(n.tag){case 31:case 13:return Ze===null?vr():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===Ks?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),nf(t,l,r)),!1;case 22:return n.flags|=65536,l===Ks?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),nf(t,l,r)),!1}throw Error(c(435,n.tag))}return nf(t,l,r),vr(),!1}if(xt)return e=Re.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Ju&&(t=Error(c(422),{cause:l}),bl(ke(t,n)))):(l!==Ju&&(e=Error(c(423),{cause:l}),bl(ke(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=ke(l,n),r=Lc(t.stateNode,l,r),rc(t,r),Yt!==4&&(Yt=2)),!1;var u=Error(c(520),{cause:l});if(u=ke(u,n),Ul===null?Ul=[u]:Ul.push(u),Yt!==4&&(Yt=2),e===null)return!0;l=ke(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=Lc(n.stateNode,l,t),rc(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wn===null||!Wn.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=yp(r),vp(r,t,n,l),rc(n,r),!1}n=n.return}while(n!==null);return!1}var Bc=Error(c(461)),Pt=!1;function ue(t,e,n,l){e.child=t===null?T1(e,null,n,l):Ra(e,t.child,n,l)}function bp(t,e,n,l,r){n=n.render;var u=e.ref;if("ref"in l){var h={};for(var b in l)b!=="ref"&&(h[b]=l[b])}else h=l;return za(e),l=hc(t,e,n,h,u,r),b=mc(),t!==null&&!Pt?(pc(t,e,r),xn(t,e,r)):(xt&&b&&Qu(e),e.flags|=1,ue(t,e,l,r),e.child)}function Sp(t,e,n,l,r){if(t===null){var u=n.type;return typeof u=="function"&&!Zu(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,xp(t,e,u,l,r)):(t=ks(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Gc(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:gl,n(h,l)&&t.ref===e.ref)return xn(t,e,r)}return e.flags|=1,t=pn(u,l),t.ref=e.ref,t.return=e,e.child=t}function xp(t,e,n,l,r){if(t!==null){var u=t.memoizedProps;if(gl(u,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=u,Gc(t,r))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,xn(t,e,r)}return Vc(t,e,n,l,r)}function Tp(t,e,n,l){var r=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~u}else l=0,e.child=null;return Ep(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Zs(e,u!==null?u.cachePool:null),u!==null?A1(e,u):uc(),z1(e);else return l=e.lanes=536870912,Ep(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Zs(e,u.cachePool),A1(e,u),Qn(),e.memoizedState=null):(t!==null&&Zs(e,null),uc(),Qn());return ue(t,e,r,n),e.child}function Ll(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ep(t,e,n,l,r){var u=ac();return u=u===null?null:{parent:Kt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&Zs(e,null),uc(),z1(e),t!==null&&mi(t,e,l,!0),e.childLanes=r,null}function rr(t,e){return e=ur({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Mp(t,e,n){return Ra(e,t.child,null,n),t=rr(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function IS(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(l.mode==="hidden")return t=rr(e,l),e.lanes=536870912,Ll(null,t);if(fc(e),(t=Vt)?(t=N2(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=r1(t),n.return=e,e.child=n,re=e,Vt=null)):t=null,t===null)throw Yn(e);return e.lanes=536870912,null}return rr(e,l)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(fc(e),r)if(e.flags&256)e.flags&=-257,e=Mp(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Pt||mi(t,e,n,!1),r=(n&t.childLanes)!==0,Pt||r){if(l=Lt,l!==null&&(h=mm(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Ta(t,h),Ee(l,t,h),Bc;vr(),e=Mp(t,e,n)}else t=u.treeContext,Vt=Fe(h.nextSibling),re=e,xt=!0,kn=null,Xe=!1,t!==null&&c1(e,t),e=rr(e,l),e.flags|=4096;return e}return t=pn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function or(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Vc(t,e,n,l,r){return za(e),n=hc(t,e,n,l,void 0,r),l=mc(),t!==null&&!Pt?(pc(t,e,r),xn(t,e,r)):(xt&&l&&Qu(e),e.flags|=1,ue(t,e,n,r),e.child)}function Ap(t,e,n,l,r,u){return za(e),e.updateQueue=null,n=w1(e,l,n,r),C1(t),l=mc(),t!==null&&!Pt?(pc(t,e,u),xn(t,e,u)):(xt&&l&&Qu(e),e.flags|=1,ue(t,e,n,u),e.child)}function zp(t,e,n,l,r){if(za(e),e.stateNode===null){var u=ci,h=n.contextType;typeof h=="object"&&h!==null&&(u=oe(h)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Rc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},lc(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?oe(h):ci,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Dc(e,n,h,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Rc.enqueueReplaceState(u,u.state,null),zl(e,l,u,r),Al(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var b=e.memoizedProps,T=Ba(n,b);u.props=T;var R=u.context,Y=n.contextType;h=ci,typeof Y=="object"&&Y!==null&&(h=oe(Y));var Z=n.getDerivedStateFromProps;Y=typeof Z=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,Y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||R!==h)&&dp(e,u,l,h),Xn=!1;var B=e.memoizedState;u.state=B,zl(e,l,u,r),Al(),R=e.memoizedState,b||B!==R||Xn?(typeof Z=="function"&&(Dc(e,n,Z,l),R=e.memoizedState),(T=Xn||fp(e,n,T,l,B,R,h))?(Y||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=R),u.props=l,u.state=R,u.context=h,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,sc(t,e),h=e.memoizedProps,Y=Ba(n,h),u.props=Y,Z=e.pendingProps,B=u.context,R=n.contextType,T=ci,typeof R=="object"&&R!==null&&(T=oe(R)),b=n.getDerivedStateFromProps,(R=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==Z||B!==T)&&dp(e,u,l,T),Xn=!1,B=e.memoizedState,u.state=B,zl(e,l,u,r),Al();var H=e.memoizedState;h!==Z||B!==H||Xn||t!==null&&t.dependencies!==null&&qs(t.dependencies)?(typeof b=="function"&&(Dc(e,n,b,l),H=e.memoizedState),(Y=Xn||fp(e,n,Y,l,B,H,T)||t!==null&&t.dependencies!==null&&qs(t.dependencies))?(R||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,H,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,H,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=H),u.props=l,u.state=H,u.context=T,l=Y):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,or(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=Ra(e,t.child,null,r),e.child=Ra(e,null,n,r)):ue(t,e,n,r),e.memoizedState=u.state,t=e.child):t=xn(t,e,r),t}function Cp(t,e,n,l){return Ma(),e.flags|=256,ue(t,e,n,l),e.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(t){return{baseLanes:t,cachePool:g1()}}function Nc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function wp(t,e,n){var l=e.pendingProps,r=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(r?Kn(e):Qn(),(t=Vt)?(t=N2(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=r1(t),n.return=e,e.child=n,re=e,Vt=null)):t=null,t===null)throw Yn(e);return bf(t)?e.lanes=32:e.lanes=536870912,null}var b=l.children;return l=l.fallback,r?(Qn(),r=e.mode,b=ur({mode:"hidden",children:b},r),l=Ea(l,r,n,null),b.return=e,l.return=e,b.sibling=l,e.child=b,l=e.child,l.memoizedState=Oc(n),l.childLanes=Nc(t,h,n),e.memoizedState=jc,Ll(null,l)):(Kn(e),Hc(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(u)e.flags&256?(Kn(e),e.flags&=-257,e=Uc(t,e,n)):e.memoizedState!==null?(Qn(),e.child=t.child,e.flags|=128,e=null):(Qn(),b=l.fallback,r=e.mode,l=ur({mode:"visible",children:l.children},r),b=Ea(b,r,n,null),b.flags|=2,l.return=e,b.return=e,l.sibling=b,e.child=l,Ra(e,t.child,null,n),l=e.child,l.memoizedState=Oc(n),l.childLanes=Nc(t,h,n),e.memoizedState=jc,e=Ll(null,l));else if(Kn(e),bf(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var R=h.dgst;h=R,l=Error(c(419)),l.stack="",l.digest=h,bl({value:l,source:null,stack:null}),e=Uc(t,e,n)}else if(Pt||mi(t,e,n,!1),h=(n&t.childLanes)!==0,Pt||h){if(h=Lt,h!==null&&(l=mm(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,Ta(t,l),Ee(h,t,l),Bc;vf(b)||vr(),e=Uc(t,e,n)}else vf(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Vt=Fe(b.nextSibling),re=e,xt=!0,kn=null,Xe=!1,t!==null&&c1(e,t),e=Hc(e,l.children),e.flags|=4096);return e}return r?(Qn(),b=l.fallback,r=e.mode,T=t.child,R=T.sibling,l=pn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,R!==null?b=pn(R,b):(b=Ea(b,r,n,null),b.flags|=2),b.return=e,l.return=e,l.sibling=b,e.child=l,Ll(null,l),l=e.child,b=t.child.memoizedState,b===null?b=Oc(n):(r=b.cachePool,r!==null?(T=Kt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=g1(),b={baseLanes:b.baseLanes|n,cachePool:r}),l.memoizedState=b,l.childLanes=Nc(t,h,n),e.memoizedState=jc,Ll(t.child,l)):(Kn(e),n=t.child,t=n.sibling,n=pn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function Hc(t,e){return e=ur({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ur(t,e){return t=De(22,t,null,e),t.lanes=0,t}function Uc(t,e,n){return Ra(e,t.child,null,n),t=Hc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Dp(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),$u(t.return,e,n)}function _c(t,e,n,l,r,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function Rp(t,e,n){var l=e.pendingProps,r=l.revealOrder,u=l.tail;l=l.children;var h=Xt.current,b=(h&2)!==0;if(b?(h=h&1|2,e.flags|=128):h&=1,J(Xt,h),ue(t,e,l,n),l=xt?vl:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Dp(t,n,e);else if(t.tag===19)Dp(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Is(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),_c(e,!1,r,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Is(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}_c(e,!0,n,null,u,l);break;case"together":_c(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function xn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),In|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(mi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=pn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=pn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Gc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&qs(t)))}function WS(t,e,n){switch(e.tag){case 3:te(e,e.stateNode.containerInfo),qn(e,Kt,t.memoizedState.cache),Ma();break;case 27:case 5:pa(e);break;case 4:te(e,e.stateNode.containerInfo);break;case 10:qn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,fc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Kn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?wp(t,e,n):(Kn(e),t=xn(t,e,n),t!==null?t.sibling:null);Kn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(mi(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return Rp(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(Xt,Xt.current),l)break;return null;case 22:return e.lanes=0,Tp(t,e,n,e.pendingProps);case 24:qn(e,Kt,t.memoizedState.cache)}return xn(t,e,n)}function Lp(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!Gc(t,n)&&(e.flags&128)===0)return Pt=!1,WS(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,xt&&(e.flags&1048576)!==0&&u1(e,vl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=wa(e.elementType),e.type=t,typeof t=="function")Zu(t)?(l=Ba(t,l),e.tag=1,e=zp(null,e,t,l,n)):(e.tag=0,e=Vc(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===_){e.tag=11,e=bp(null,e,t,l,n);break t}else if(r===N){e.tag=14,e=Sp(null,e,t,l,n);break t}}throw e=it(t)||t,Error(c(306,e,""))}}return e;case 0:return Vc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Ba(l,e.pendingProps),zp(t,e,l,r,n);case 3:t:{if(te(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var u=e.memoizedState;r=u.element,sc(t,e),zl(e,l,null,n);var h=e.memoizedState;if(l=h.cache,qn(e,Kt,l),l!==u.cache&&tc(e,[Kt],n,!0),Al(),l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Cp(t,e,l,n);break t}else if(l!==r){r=ke(Error(c(424)),e),bl(r),e=Cp(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Vt=Fe(t.firstChild),re=e,xt=!0,kn=null,Xe=!0,n=T1(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ma(),l===r){e=xn(t,e,n);break t}ue(t,e,l,n)}e=e.child}return e;case 26:return or(t,e),t===null?(n=Y2(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,l=Ar(mt.current).createElement(n),l[se]=e,l[ye]=t,ce(l,n,t),ne(l),e.stateNode=l):e.memoizedState=Y2(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pa(e),t===null&&xt&&(l=e.stateNode=_2(e.type,e.pendingProps,mt.current),re=e,Xe=!0,r=Vt,na(e.type)?(Sf=r,Vt=Fe(l.firstChild)):Vt=r),ue(t,e,e.pendingProps.children,n),or(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((r=l=Vt)&&(l=w6(l,e.type,e.pendingProps,Xe),l!==null?(e.stateNode=l,re=e,Vt=Fe(l.firstChild),Xe=!1,r=!0):r=!1),r||Yn(e)),pa(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,l=u.children,pf(r,u)?l=null:h!==null&&pf(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=hc(t,e,qS,null,null,n),Fl._currentValue=r),or(t,e),ue(t,e,l,n),e.child;case 6:return t===null&&xt&&((t=n=Vt)&&(n=D6(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,re=e,Vt=null,t=!0):t=!1),t||Yn(e)),null;case 13:return wp(t,e,n);case 4:return te(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ra(e,null,l,n):ue(t,e,l,n),e.child;case 11:return bp(t,e,e.type,e.pendingProps,n);case 7:return ue(t,e,e.pendingProps,n),e.child;case 8:return ue(t,e,e.pendingProps.children,n),e.child;case 12:return ue(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,qn(e,e.type,l.value),ue(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,za(e),r=oe(r),l=l(r),e.flags|=1,ue(t,e,l,n),e.child;case 14:return Sp(t,e,e.type,e.pendingProps,n);case 15:return xp(t,e,e.type,e.pendingProps,n);case 19:return Rp(t,e,n);case 31:return IS(t,e,n);case 22:return Tp(t,e,n,e.pendingProps);case 24:return za(e),l=oe(Kt),t===null?(r=ac(),r===null&&(r=Lt,u=ec(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:l,cache:r},lc(e),qn(e,Kt,r)):((t.lanes&n)!==0&&(sc(t,e),zl(e,null,null,n),Al()),r=t.memoizedState,u=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),qn(e,Kt,l)):(l=u.cache,qn(e,Kt,l),l!==r.cache&&tc(e,[Kt],n,!0))),ue(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function Tn(t){t.flags|=4}function kc(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(i2())t.flags|=8192;else throw Da=Ks,ic}else t.flags&=-16777217}function Bp(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!K2(e))if(i2())t.flags|=8192;else throw Da=Ks,ic}function cr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fm():536870912,t.lanes|=e,zi|=e)}function Bl(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function jt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function $S(t,e,n){var l=e.pendingProps;switch(Pu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(e),null;case 1:return jt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),vn(Kt),_t(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(hi(e)?Tn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Iu())),jt(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(Tn(e),u!==null?(jt(e),Bp(e,u)):(jt(e),kc(e,r,null,l,n))):u?u!==t.memoizedState?(Tn(e),jt(e),Bp(e,u)):(jt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Tn(e),jt(e),kc(e,r,t,l,n)),null;case 27:if(Nn(e),n=mt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return jt(e),null}t=W.current,hi(e)?f1(e):(t=_2(r,l,n),e.stateNode=t,Tn(e))}return jt(e),null;case 5:if(Nn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return jt(e),null}if(u=W.current,hi(e))f1(e);else{var h=Ar(mt.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}u[se]=e,u[ye]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(ce(u,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Tn(e)}}return jt(e),kc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=mt.current,hi(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=re,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[se]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||w2(t.nodeValue,n)),t||Yn(e,!0)}else t=Ar(t).createTextNode(l),t[se]=e,e.stateNode=t}return jt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=hi(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[se]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),t=!1}else n=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(c(558))}return jt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=hi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(c(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(c(317));r[se]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),r=!1}else r=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),cr(e,e.updateQueue),jt(e),null);case 4:return _t(),t===null&&cf(e.stateNode.containerInfo),jt(e),null;case 10:return vn(e.type),jt(e),null;case 19:if(X(Xt),l=e.memoizedState,l===null)return jt(e),null;if(r=(e.flags&128)!==0,u=l.rendering,u===null)if(r)Bl(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Is(t),u!==null){for(e.flags|=128,Bl(l,!1),t=u.updateQueue,e.updateQueue=t,cr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)s1(n,t),n=n.sibling;return J(Xt,Xt.current&1|2),xt&&gn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&le()>pr&&(e.flags|=128,r=!0,Bl(l,!1),e.lanes=4194304)}else{if(!r)if(t=Is(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,cr(e,t),Bl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!xt)return jt(e),null}else 2*le()-l.renderingStartTime>pr&&n!==536870912&&(e.flags|=128,r=!0,Bl(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=le(),t.sibling=null,n=Xt.current,J(Xt,r?n&1|2:n&1),xt&&gn(e,l.treeForkCount),t):(jt(e),null);case 22:case 23:return Le(e),cc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),n=e.updateQueue,n!==null&&cr(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&X(Ca),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),vn(Kt),jt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function t6(t,e){switch(Pu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vn(Kt),_t(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Nn(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(c(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return X(Xt),null;case 4:return _t(),null;case 10:return vn(e.type),null;case 22:case 23:return Le(e),cc(),t!==null&&X(Ca),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return vn(Kt),null;case 25:return null;default:return null}}function Vp(t,e){switch(Pu(e),e.tag){case 3:vn(Kt),_t();break;case 26:case 27:case 5:Nn(e);break;case 4:_t();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:X(Xt);break;case 10:vn(e.type);break;case 22:case 23:Le(e),cc(),t!==null&&X(Ca);break;case 24:vn(Kt)}}function Vl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==r)}}catch(b){Ct(e,e.return,b)}}function Pn(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var u=r.next;l=u;do{if((l.tag&t)===t){var h=l.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var T=n,R=b;try{R()}catch(Y){Ct(r,T,Y)}}}l=l.next}while(l!==u)}}catch(Y){Ct(e,e.return,Y)}}function jp(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{M1(e,n)}catch(l){Ct(t,t.return,l)}}}function Op(t,e,n){n.props=Ba(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ct(t,e,l)}}function jl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Ct(t,e,r)}}function sn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Ct(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Ct(t,e,r)}else n.current=null}function Np(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Ct(t,t.return,r)}}function Yc(t,e,n){try{var l=t.stateNode;T6(l,t.type,n,e),l[ye]=e}catch(r){Ct(t,t.return,r)}}function Hp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&na(t.type)||t.tag===4}function qc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Hp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&na(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Xc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=hn));else if(l!==4&&(l===27&&na(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Xc(t,e,n),t=t.sibling;t!==null;)Xc(t,e,n),t=t.sibling}function fr(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&na(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(fr(t,e,n),t=t.sibling;t!==null;)fr(t,e,n),t=t.sibling}function Up(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ce(e,l,n),e[se]=t,e[ye]=n}catch(u){Ct(t,t.return,u)}}var En=!1,Jt=!1,Zc=!1,_p=typeof WeakSet=="function"?WeakSet:Set,ae=null;function e6(t,e){if(t=t.containerInfo,hf=Br,t=Im(t),Uu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,b=-1,T=-1,R=0,Y=0,Z=t,B=null;e:for(;;){for(var H;Z!==n||r!==0&&Z.nodeType!==3||(b=h+r),Z!==u||l!==0&&Z.nodeType!==3||(T=h+l),Z.nodeType===3&&(h+=Z.nodeValue.length),(H=Z.firstChild)!==null;)B=Z,Z=H;for(;;){if(Z===t)break e;if(B===n&&++R===r&&(b=h),B===u&&++Y===l&&(T=h),(H=Z.nextSibling)!==null)break;Z=B,B=Z.parentNode}Z=H}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(mf={focusedElem:t,selectionRange:n},Br=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,r=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var $=Ba(n.type,r);t=l.getSnapshotBeforeUpdate($,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Ct(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)yf(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":yf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function Gp(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:An(t,n),l&4&&Vl(5,n);break;case 1:if(An(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Ct(n,n.return,h)}else{var r=Ba(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Ct(n,n.return,h)}}l&64&&jp(n),l&512&&jl(n,n.return);break;case 3:if(An(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{M1(t,e)}catch(h){Ct(n,n.return,h)}}break;case 27:e===null&&l&4&&Up(n);case 26:case 5:An(t,n),e===null&&l&4&&Np(n),l&512&&jl(n,n.return);break;case 12:An(t,n);break;case 31:An(t,n),l&4&&qp(t,n);break;case 13:An(t,n),l&4&&Xp(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=c6.bind(null,n),R6(t,n))));break;case 22:if(l=n.memoizedState!==null||En,!l){e=e!==null&&e.memoizedState!==null||Jt,r=En;var u=Jt;En=l,(Jt=e)&&!u?zn(t,n,(n.subtreeFlags&8772)!==0):An(t,n),En=r,Jt=u}break;case 30:break;default:An(t,n)}}function kp(t){var e=t.alternate;e!==null&&(t.alternate=null,kp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Nt=null,be=!1;function Mn(t,e,n){for(n=n.child;n!==null;)Yp(t,e,n),n=n.sibling}function Yp(t,e,n){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(il,n)}catch{}switch(n.tag){case 26:Jt||sn(n,e),Mn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||sn(n,e);var l=Nt,r=be;na(n.type)&&(Nt=n.stateNode,be=!1),Mn(t,e,n),ql(n.stateNode),Nt=l,be=r;break;case 5:Jt||sn(n,e);case 6:if(l=Nt,r=be,Nt=null,Mn(t,e,n),Nt=l,be=r,Nt!==null)if(be)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(n.stateNode)}catch(u){Ct(n,e,u)}else try{Nt.removeChild(n.stateNode)}catch(u){Ct(n,e,u)}break;case 18:Nt!==null&&(be?(t=Nt,j2(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ji(t)):j2(Nt,n.stateNode));break;case 4:l=Nt,r=be,Nt=n.stateNode.containerInfo,be=!0,Mn(t,e,n),Nt=l,be=r;break;case 0:case 11:case 14:case 15:Pn(2,n,e),Jt||Pn(4,n,e),Mn(t,e,n);break;case 1:Jt||(sn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Op(n,e,l)),Mn(t,e,n);break;case 21:Mn(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,Mn(t,e,n),Jt=l;break;default:Mn(t,e,n)}}function qp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ji(t)}catch(n){Ct(e,e.return,n)}}}function Xp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ji(t)}catch(n){Ct(e,e.return,n)}}function n6(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new _p),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new _p),e;default:throw Error(c(435,t.tag))}}function dr(t,e){var n=n6(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=f6.bind(null,t,l);l.then(r,r)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],u=t,h=e,b=h;t:for(;b!==null;){switch(b.tag){case 27:if(na(b.type)){Nt=b.stateNode,be=!1;break t}break;case 5:Nt=b.stateNode,be=!1;break t;case 3:case 4:Nt=b.stateNode.containerInfo,be=!0;break t}b=b.return}if(Nt===null)throw Error(c(160));Yp(u,h,r),Nt=null,be=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Zp(e,t),e=e.sibling}var Ie=null;function Zp(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),xe(t),l&4&&(Pn(3,t,t.return),Vl(3,t),Pn(5,t,t.return));break;case 1:Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),l&64&&En&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Ie;if(Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":u=r.getElementsByTagName("title")[0],(!u||u[rl]||u[se]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(l),r.head.insertBefore(u,r.querySelector("head > title"))),ce(u,l,n),u[se]=t,ne(u),l=u;break t;case"link":var h=Z2("link","href",r).get(l+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(u=h[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(b,1);break e}}u=r.createElement(l),ce(u,l,n),r.head.appendChild(u);break;case"meta":if(h=Z2("meta","content",r).get(l+(n.content||""))){for(b=0;b<h.length;b++)if(u=h[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(b,1);break e}}u=r.createElement(l),ce(u,l,n),r.head.appendChild(u);break;default:throw Error(c(468,l))}u[se]=t,ne(u),l=u}t.stateNode=l}else F2(r,t.type,t.stateNode);else t.stateNode=X2(r,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?F2(r,t.type,t.stateNode):X2(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Yc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),n!==null&&l&4&&Yc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),t.flags&32){r=t.stateNode;try{ai(r,"")}catch($){Ct(t,t.return,$)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,Yc(t,r,n!==null?n.memoizedProps:r)),l&1024&&(Zc=!0);break;case 6:if(Se(e,t),xe(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){Ct(t,t.return,$)}}break;case 3:if(wr=null,r=Ie,Ie=zr(e.containerInfo),Se(e,t),Ie=r,xe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ji(e.containerInfo)}catch($){Ct(t,t.return,$)}Zc&&(Zc=!1,Fp(t));break;case 4:l=Ie,Ie=zr(t.stateNode.containerInfo),Se(e,t),xe(t),Ie=l;break;case 12:Se(e,t),xe(t);break;case 31:Se(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,dr(t,l)));break;case 13:Se(e,t),xe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(mr=le()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,dr(t,l)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,R=En,Y=Jt;if(En=R||r,Jt=Y||T,Se(e,t),Jt=Y,En=R,xe(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||En||Jt||Va(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var Z=T.memoizedProps.style,B=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;b.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch($){Ct(T,T.return,$)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch($){Ct(T,T.return,$)}}}else if(e.tag===18){if(n===null){T=e;try{var H=T.stateNode;r?O2(H,!0):O2(T.stateNode,!1)}catch($){Ct(T,T.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,dr(t,n))));break;case 19:Se(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,dr(t,l)));break;case 30:break;case 21:break;default:Se(e,t),xe(t)}}function xe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Hp(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var r=n.stateNode,u=qc(t);fr(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(ai(h,""),n.flags&=-33);var b=qc(t);fr(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,R=qc(t);Xc(t,R,T);break;default:throw Error(c(161))}}catch(Y){Ct(t,t.return,Y)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Fp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Fp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function An(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Gp(t,e.alternate,e),e=e.sibling}function Va(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Pn(4,e,e.return),Va(e);break;case 1:sn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Op(e,e.return,n),Va(e);break;case 27:ql(e.stateNode);case 26:case 5:sn(e,e.return),Va(e);break;case 22:e.memoizedState===null&&Va(e);break;case 30:Va(e);break;default:Va(e)}t=t.sibling}}function zn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:zn(r,u,n),Vl(4,u);break;case 1:if(zn(r,u,n),l=u,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(R){Ct(l,l.return,R)}if(l=u,r=l.updateQueue,r!==null){var b=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)E1(T[r],b)}catch(R){Ct(l,l.return,R)}}n&&h&64&&jp(u),jl(u,u.return);break;case 27:Up(u);case 26:case 5:zn(r,u,n),n&&l===null&&h&4&&Np(u),jl(u,u.return);break;case 12:zn(r,u,n);break;case 31:zn(r,u,n),n&&h&4&&qp(r,u);break;case 13:zn(r,u,n),n&&h&4&&Xp(r,u);break;case 22:u.memoizedState===null&&zn(r,u,n),jl(u,u.return);break;case 30:break;default:zn(r,u,n)}e=e.sibling}}function Fc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Sl(n))}function Kc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Sl(t))}function We(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kp(t,e,n,l),e=e.sibling}function Kp(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,n,l),r&2048&&Vl(9,e);break;case 1:We(t,e,n,l);break;case 3:We(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Sl(t)));break;case 12:if(r&2048){We(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,b=u.onPostCommit;typeof b=="function"&&b(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Ct(e,e.return,T)}}else We(t,e,n,l);break;case 31:We(t,e,n,l);break;case 13:We(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?We(t,e,n,l):Ol(t,e):u._visibility&2?We(t,e,n,l):(u._visibility|=2,Ei(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&Fc(h,e);break;case 24:We(t,e,n,l),r&2048&&Kc(e.alternate,e);break;default:We(t,e,n,l)}}function Ei(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,b=n,T=l,R=h.flags;switch(h.tag){case 0:case 11:case 15:Ei(u,h,b,T,r),Vl(8,h);break;case 23:break;case 22:var Y=h.stateNode;h.memoizedState!==null?Y._visibility&2?Ei(u,h,b,T,r):Ol(u,h):(Y._visibility|=2,Ei(u,h,b,T,r)),r&&R&2048&&Fc(h.alternate,h);break;case 24:Ei(u,h,b,T,r),r&&R&2048&&Kc(h.alternate,h);break;default:Ei(u,h,b,T,r)}e=e.sibling}}function Ol(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:Ol(n,l),r&2048&&Fc(l.alternate,l);break;case 24:Ol(n,l),r&2048&&Kc(l.alternate,l);break;default:Ol(n,l)}e=e.sibling}}var Nl=8192;function Mi(t,e,n){if(t.subtreeFlags&Nl)for(t=t.child;t!==null;)Qp(t,e,n),t=t.sibling}function Qp(t,e,n){switch(t.tag){case 26:Mi(t,e,n),t.flags&Nl&&t.memoizedState!==null&&Y6(n,Ie,t.memoizedState,t.memoizedProps);break;case 5:Mi(t,e,n);break;case 3:case 4:var l=Ie;Ie=zr(t.stateNode.containerInfo),Mi(t,e,n),Ie=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Nl,Nl=16777216,Mi(t,e,n),Nl=l):Mi(t,e,n));break;default:Mi(t,e,n)}}function Pp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Hl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,Ip(l,t)}Pp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jp(t),t=t.sibling}function Jp(t){switch(t.tag){case 0:case 11:case 15:Hl(t),t.flags&2048&&Pn(9,t,t.return);break;case 3:Hl(t);break;case 12:Hl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,hr(t)):Hl(t);break;default:Hl(t)}}function hr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,Ip(l,t)}Pp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Pn(8,e,e.return),hr(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,hr(e));break;default:hr(e)}t=t.sibling}}function Ip(t,e){for(;ae!==null;){var n=ae;switch(n.tag){case 0:case 11:case 15:Pn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Sl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ae=l;else t:for(n=t;ae!==null;){l=ae;var r=l.sibling,u=l.return;if(kp(l),l===n){ae=null;break t}if(r!==null){r.return=u,ae=r;break t}ae=u}}}var a6={getCacheForType:function(t){var e=oe(Kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return oe(Kt).controller.signal}},i6=typeof WeakMap=="function"?WeakMap:Map,At=0,Lt=null,yt=null,bt=0,zt=0,Be=null,Jn=!1,Ai=!1,Qc=!1,Cn=0,Yt=0,In=0,ja=0,Pc=0,Ve=0,zi=0,Ul=null,Te=null,Jc=!1,mr=0,Wp=0,pr=1/0,gr=null,Wn=null,Wt=0,$n=null,Ci=null,wn=0,Ic=0,Wc=null,$p=null,_l=0,$c=null;function je(){return(At&2)!==0&&bt!==0?bt&-bt:U.T!==null?sf():pm()}function t2(){if(Ve===0)if((bt&536870912)===0||xt){var t=Ms;Ms<<=1,(Ms&3932160)===0&&(Ms=262144),Ve=t}else Ve=536870912;return t=Re.current,t!==null&&(t.flags|=32),Ve}function Ee(t,e,n){(t===Lt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(wi(t,0),ta(t,bt,Ve,!1)),sl(t,n),((At&2)===0||t!==Lt)&&(t===Lt&&((At&2)===0&&(ja|=n),Yt===4&&ta(t,bt,Ve,!1)),rn(t))}function e2(t,e,n){if((At&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ll(t,e),r=l?r6(t,e):ef(t,e,!0),u=l;do{if(r===0){Ai&&!l&&ta(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!l6(n)){r=ef(t,e,!1),u=!1;continue}if(r===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var b=t;r=Ul;var T=b.current.memoizedState.isDehydrated;if(T&&(wi(b,h).flags|=256),h=ef(b,h,!1),h!==2){if(Qc&&!T){b.errorRecoveryDisabledLanes|=u,ja|=u,r=4;break t}u=Te,Te=r,u!==null&&(Te===null?Te=u:Te.push.apply(Te,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){wi(t,0),ta(t,e,0,!0);break}t:{switch(l=t,u=r,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:ta(l,e,Ve,!Jn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(r=mr+300-le(),10<r)){if(ta(l,e,Ve,!Jn),zs(l,0,!0)!==0)break t;wn=e,l.timeoutHandle=B2(n2.bind(null,l,n,Te,gr,Jc,e,Ve,ja,zi,Jn,u,"Throttled",-0,0),r);break t}n2(l,n,Te,gr,Jc,e,Ve,ja,zi,Jn,u,null,-0,0)}}break}while(!0);rn(t)}function n2(t,e,n,l,r,u,h,b,T,R,Y,Z,B,H){if(t.timeoutHandle=-1,Z=e.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},Qp(e,u,Z);var $=(u&62914560)===u?mr-le():(u&4194048)===u?Wp-le():0;if($=q6(Z,$),$!==null){wn=u,t.cancelPendingCommit=$(c2.bind(null,t,e,u,n,l,r,h,b,T,Y,Z,null,B,H)),ta(t,u,h,!R);return}}c2(t,e,u,n,l,r,h,b,T)}function l6(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],u=r.getSnapshot;r=r.value;try{if(!we(u(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ta(t,e,n,l){e&=~Pc,e&=~ja,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var u=31-Ce(r),h=1<<u;l[u]=-1,r&=~h}n!==0&&dm(t,n,e)}function yr(){return(At&6)===0?(Gl(0),!1):!0}function tf(){if(yt!==null){if(zt===0)var t=yt.return;else t=yt,yn=Aa=null,gc(t),vi=null,Tl=0,t=yt;for(;t!==null;)Vp(t.alternate,t),t=t.return;yt=null}}function wi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,A6(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),wn=0,tf(),Lt=t,yt=n=pn(t.current,null),bt=e,zt=0,Be=null,Jn=!1,Ai=ll(t,e),Qc=!1,zi=Ve=Pc=ja=In=Yt=0,Te=Ul=null,Jc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-Ce(l),u=1<<r;e|=t[r],l&=~u}return Cn=e,Us(),n}function a2(t,e){ht=null,U.H=Rl,e===yi||e===Fs?(e=b1(),zt=3):e===ic?(e=b1(),zt=4):zt=e===Bc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Be=e,yt===null&&(Yt=1,sr(t,ke(e,t.current)))}function i2(){var t=Re.current;return t===null?!0:(bt&4194048)===bt?Ze===null:(bt&62914560)===bt||(bt&536870912)!==0?t===Ze:!1}function l2(){var t=U.H;return U.H=Rl,t===null?Rl:t}function s2(){var t=U.A;return U.A=a6,t}function vr(){Yt=4,Jn||(bt&4194048)!==bt&&Re.current!==null||(Ai=!0),(In&134217727)===0&&(ja&134217727)===0||Lt===null||ta(Lt,bt,Ve,!1)}function ef(t,e,n){var l=At;At|=2;var r=l2(),u=s2();(Lt!==t||bt!==e)&&(gr=null,wi(t,e)),e=!1;var h=Yt;t:do try{if(zt!==0&&yt!==null){var b=yt,T=Be;switch(zt){case 8:tf(),h=6;break t;case 3:case 2:case 9:case 6:Re.current===null&&(e=!0);var R=zt;if(zt=0,Be=null,Di(t,b,T,R),n&&Ai){h=0;break t}break;default:R=zt,zt=0,Be=null,Di(t,b,T,R)}}s6(),h=Yt;break}catch(Y){a2(t,Y)}while(!0);return e&&t.shellSuspendCounter++,yn=Aa=null,At=l,U.H=r,U.A=u,yt===null&&(Lt=null,bt=0,Us()),h}function s6(){for(;yt!==null;)r2(yt)}function r6(t,e){var n=At;At|=2;var l=l2(),r=s2();Lt!==t||bt!==e?(gr=null,pr=le()+500,wi(t,e)):Ai=ll(t,e);t:do try{if(zt!==0&&yt!==null){e=yt;var u=Be;e:switch(zt){case 1:zt=0,Be=null,Di(t,e,u,1);break;case 2:case 9:if(y1(u)){zt=0,Be=null,o2(e);break}e=function(){zt!==2&&zt!==9||Lt!==t||(zt=7),rn(t)},u.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:y1(u)?(zt=0,Be=null,o2(e)):(zt=0,Be=null,Di(t,e,u,7));break;case 5:var h=null;switch(yt.tag){case 26:h=yt.memoizedState;case 5:case 27:var b=yt;if(h?K2(h):b.stateNode.complete){zt=0,Be=null;var T=b.sibling;if(T!==null)yt=T;else{var R=b.return;R!==null?(yt=R,br(R)):yt=null}break e}}zt=0,Be=null,Di(t,e,u,5);break;case 6:zt=0,Be=null,Di(t,e,u,6);break;case 8:tf(),Yt=6;break t;default:throw Error(c(462))}}o6();break}catch(Y){a2(t,Y)}while(!0);return yn=Aa=null,U.H=l,U.A=r,At=n,yt!==null?0:(Lt=null,bt=0,Us(),Yt)}function o6(){for(;yt!==null&&!xs();)r2(yt)}function r2(t){var e=Lp(t.alternate,t,Cn);t.memoizedProps=t.pendingProps,e===null?br(t):yt=e}function o2(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ap(n,e,e.pendingProps,e.type,void 0,bt);break;case 11:e=Ap(n,e,e.pendingProps,e.type.render,e.ref,bt);break;case 5:gc(e);default:Vp(n,e),e=yt=s1(e,Cn),e=Lp(n,e,Cn)}t.memoizedProps=t.pendingProps,e===null?br(t):yt=e}function Di(t,e,n,l){yn=Aa=null,gc(e),vi=null,Tl=0;var r=e.return;try{if(JS(t,r,e,n,bt)){Yt=1,sr(t,ke(n,t.current)),yt=null;return}}catch(u){if(r!==null)throw yt=r,u;Yt=1,sr(t,ke(n,t.current)),yt=null;return}e.flags&32768?(xt||l===1?t=!0:Ai||(bt&536870912)!==0?t=!1:(Jn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Re.current,l!==null&&l.tag===13&&(l.flags|=16384))),u2(e,t)):br(e)}function br(t){var e=t;do{if((e.flags&32768)!==0){u2(e,Jn);return}t=e.return;var n=$S(e.alternate,e,Cn);if(n!==null){yt=n;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Yt===0&&(Yt=5)}function u2(t,e){do{var n=t6(t.alternate,t);if(n!==null){n.flags&=32767,yt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=n}while(t!==null);Yt=6,yt=null}function c2(t,e,n,l,r,u,h,b,T){t.cancelPendingCommit=null;do Sr();while(Wt!==0);if((At&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=qu,kb(t,n,u,h,b,T),t===Lt&&(yt=Lt=null,bt=0),Ci=e,$n=t,wn=n,Ic=u,Wc=r,$p=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,d6(Ts,function(){return p2(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,r=K.p,K.p=2,h=At,At|=4;try{e6(t,e,n)}finally{At=h,K.p=r,U.T=l}}Wt=1,f2(),d2(),h2()}}function f2(){if(Wt===1){Wt=0;var t=$n,e=Ci,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var r=At;At|=4;try{Zp(e,t);var u=mf,h=Im(t.containerInfo),b=u.focusedElem,T=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&Jm(b.ownerDocument.documentElement,b)){if(T!==null&&Uu(b)){var R=T.start,Y=T.end;if(Y===void 0&&(Y=R),"selectionStart"in b)b.selectionStart=R,b.selectionEnd=Math.min(Y,b.value.length);else{var Z=b.ownerDocument||document,B=Z&&Z.defaultView||window;if(B.getSelection){var H=B.getSelection(),$=b.textContent.length,st=Math.min(T.start,$),Rt=T.end===void 0?st:Math.min(T.end,$);!H.extend&&st>Rt&&(h=Rt,Rt=st,st=h);var w=Pm(b,st),M=Pm(b,Rt);if(w&&M&&(H.rangeCount!==1||H.anchorNode!==w.node||H.anchorOffset!==w.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var D=Z.createRange();D.setStart(w.node,w.offset),H.removeAllRanges(),st>Rt?(H.addRange(D),H.extend(M.node,M.offset)):(D.setEnd(M.node,M.offset),H.addRange(D))}}}}for(Z=[],H=b;H=H.parentNode;)H.nodeType===1&&Z.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Z.length;b++){var q=Z[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Br=!!hf,mf=hf=null}finally{At=r,K.p=l,U.T=n}}t.current=e,Wt=2}}function d2(){if(Wt===2){Wt=0;var t=$n,e=Ci,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var r=At;At|=4;try{Gp(t,e.alternate,e)}finally{At=r,K.p=l,U.T=n}}Wt=3}}function h2(){if(Wt===4||Wt===3){Wt=0,pu();var t=$n,e=Ci,n=wn,l=$p;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,Ci=$n=null,m2(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Wn=null),bu(n),e=e.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(il,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=U.T,r=K.p,K.p=2,U.T=null;try{for(var u=t.onRecoverableError,h=0;h<l.length;h++){var b=l[h];u(b.value,{componentStack:b.stack})}}finally{U.T=e,K.p=r}}(wn&3)!==0&&Sr(),rn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===$c?_l++:(_l=0,$c=t):_l=0,Gl(0)}}function m2(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Sl(e)))}function Sr(){return f2(),d2(),h2(),p2()}function p2(){if(Wt!==5)return!1;var t=$n,e=Ic;Ic=0;var n=bu(wn),l=U.T,r=K.p;try{K.p=32>n?32:n,U.T=null,n=Wc,Wc=null;var u=$n,h=wn;if(Wt=0,Ci=$n=null,wn=0,(At&6)!==0)throw Error(c(331));var b=At;if(At|=4,Jp(u.current),Kp(u,u.current,h,n),At=b,Gl(0,!1),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(il,u)}catch{}return!0}finally{K.p=r,U.T=l,m2(t,e)}}function g2(t,e,n){e=ke(n,e),e=Lc(t.stateNode,e,2),t=Fn(t,e,2),t!==null&&(sl(t,2),rn(t))}function Ct(t,e,n){if(t.tag===3)g2(t,t,n);else for(;e!==null;){if(e.tag===3){g2(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){t=ke(n,t),n=yp(2),l=Fn(e,n,2),l!==null&&(vp(n,l,e,t),sl(l,2),rn(l));break}}e=e.return}}function nf(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new i6;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(Qc=!0,r.add(n),t=u6.bind(null,t,e,n),e.then(t,t))}function u6(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Lt===t&&(bt&n)===n&&(Yt===4||Yt===3&&(bt&62914560)===bt&&300>le()-mr?(At&2)===0&&wi(t,0):Pc|=n,zi===bt&&(zi=0)),rn(t)}function y2(t,e){e===0&&(e=fm()),t=Ta(t,e),t!==null&&(sl(t,e),rn(t))}function c6(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),y2(t,n)}function f6(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),y2(t,n)}function d6(t,e){return ga(t,e)}var xr=null,Ri=null,af=!1,Tr=!1,lf=!1,ea=0;function rn(t){t!==Ri&&t.next===null&&(Ri===null?xr=Ri=t:Ri=Ri.next=t),Tr=!0,af||(af=!0,m6())}function Gl(t,e){if(!lf&&Tr){lf=!0;do for(var n=!1,l=xr;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var u=0;else{var h=l.suspendedLanes,b=l.pingedLanes;u=(1<<31-Ce(42|t)+1)-1,u&=r&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,x2(l,u))}else u=bt,u=zs(l,l===Lt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||ll(l,u)||(n=!0,x2(l,u));l=l.next}while(n);lf=!1}}function h6(){v2()}function v2(){Tr=af=!1;var t=0;ea!==0&&M6()&&(t=ea);for(var e=le(),n=null,l=xr;l!==null;){var r=l.next,u=b2(l,e);u===0?(l.next=null,n===null?xr=r:n.next=r,r===null&&(Ri=n)):(n=l,(t!==0||(u&3)!==0)&&(Tr=!0)),l=r}Wt!==0&&Wt!==5||Gl(t),ea!==0&&(ea=0)}function b2(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-Ce(u),b=1<<h,T=r[h];T===-1?((b&n)===0||(b&l)!==0)&&(r[h]=Gb(b,e)):T<=e&&(t.expiredLanes|=b),u&=~b}if(e=Lt,n=bt,n=zs(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Ja(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ll(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Ja(l),bu(n)){case 2:case 8:n=um;break;case 32:n=Ts;break;case 268435456:n=cm;break;default:n=Ts}return l=S2.bind(null,t),n=ga(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Ja(l),t.callbackPriority=2,t.callbackNode=null,2}function S2(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Sr()&&t.callbackNode!==n)return null;var l=bt;return l=zs(t,t===Lt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(e2(t,l,e),b2(t,le()),t.callbackNode!=null&&t.callbackNode===n?S2.bind(null,t):null)}function x2(t,e){if(Sr())return null;e2(t,e,!0)}function m6(){z6(function(){(At&6)!==0?ga(om,h6):v2()})}function sf(){if(ea===0){var t=pi;t===0&&(t=Es,Es<<=1,(Es&261888)===0&&(Es=256)),ea=t}return ea}function T2(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Rs(""+t)}function E2(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function p6(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var u=T2((r[ye]||null).action),h=l.submitter;h&&(e=(e=h[ye]||null)?T2(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var b=new js("action","action",null,l,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ea!==0){var T=h?E2(r,h):new FormData(r);Ac(n,{pending:!0,data:T,method:r.method,action:u},null,T)}}else typeof u=="function"&&(b.preventDefault(),T=h?E2(r,h):new FormData(r),Ac(n,{pending:!0,data:T,method:r.method,action:u},u,T))},currentTarget:r}]})}}for(var rf=0;rf<Yu.length;rf++){var of=Yu[rf],g6=of.toLowerCase(),y6=of[0].toUpperCase()+of.slice(1);Je(g6,"on"+y6)}Je(t1,"onAnimationEnd"),Je(e1,"onAnimationIteration"),Je(n1,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(VS,"onTransitionRun"),Je(jS,"onTransitionStart"),Je(OS,"onTransitionCancel"),Je(a1,"onTransitionEnd"),ei("onMouseEnter",["mouseout","mouseover"]),ei("onMouseLeave",["mouseout","mouseover"]),ei("onPointerEnter",["pointerout","pointerover"]),ei("onPointerLeave",["pointerout","pointerover"]),va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),va("onBeforeInput",["compositionend","keypress","textInput","paste"]),va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="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(" "),v6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function M2(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var h=l.length-1;0<=h;h--){var b=l[h],T=b.instance,R=b.currentTarget;if(b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=R;try{u(r)}catch(Y){Hs(Y)}r.currentTarget=null,u=T}else for(h=0;h<l.length;h++){if(b=l[h],T=b.instance,R=b.currentTarget,b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=R;try{u(r)}catch(Y){Hs(Y)}r.currentTarget=null,u=T}}}}function vt(t,e){var n=e[Su];n===void 0&&(n=e[Su]=new Set);var l=t+"__bubble";n.has(l)||(A2(e,t,2,!1),n.add(l))}function uf(t,e,n){var l=0;e&&(l|=4),A2(n,t,l,e)}var Er="_reactListening"+Math.random().toString(36).slice(2);function cf(t){if(!t[Er]){t[Er]=!0,vm.forEach(function(n){n!=="selectionchange"&&(v6.has(n)||uf(n,!1,t),uf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Er]||(e[Er]=!0,uf("selectionchange",!1,e))}}function A2(t,e,n,l){switch(t3(e)){case 2:var r=F6;break;case 8:r=K6;break;default:r=Af}n=r.bind(null,e,n,t),r=void 0,!Du||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function ff(t,e,n,l,r){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var b=l.stateNode.containerInfo;if(b===r)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;b!==null;){if(h=Wa(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=u=h;continue t}b=b.parentNode}}l=l.return}Rm(function(){var R=u,Y=Cu(n),Z=[];t:{var B=i1.get(t);if(B!==void 0){var H=js,$=t;switch(t){case"keypress":if(Bs(n)===0)break t;case"keydown":case"keyup":H=fS;break;case"focusin":$="focus",H=Vu;break;case"focusout":$="blur",H=Vu;break;case"beforeblur":case"afterblur":H=Vu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Vm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=$b;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=mS;break;case t1:case e1:case n1:H=nS;break;case a1:H=gS;break;case"scroll":case"scrollend":H=Ib;break;case"wheel":H=vS;break;case"copy":case"cut":case"paste":H=iS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Om;break;case"toggle":case"beforetoggle":H=SS}var st=(e&4)!==0,Rt=!st&&(t==="scroll"||t==="scrollend"),w=st?B!==null?B+"Capture":null:B;st=[];for(var M=R,D;M!==null;){var q=M;if(D=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||D===null||w===null||(q=ul(M,w),q!=null&&st.push(Yl(M,q,D))),Rt)break;M=M.return}0<st.length&&(B=new H(B,$,null,n,Y),Z.push({event:B,listeners:st}))}}if((e&7)===0){t:{if(B=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",B&&n!==zu&&($=n.relatedTarget||n.fromElement)&&(Wa($)||$[Ia]))break t;if((H||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,H?($=n.relatedTarget||n.toElement,H=R,$=$?Wa($):null,$!==null&&(Rt=f($),st=$.tag,$!==Rt||st!==5&&st!==27&&st!==6)&&($=null)):(H=null,$=R),H!==$)){if(st=Vm,q="onMouseLeave",w="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(st=Om,q="onPointerLeave",w="onPointerEnter",M="pointer"),Rt=H==null?B:ol(H),D=$==null?B:ol($),B=new st(q,M+"leave",H,n,Y),B.target=Rt,B.relatedTarget=D,q=null,Wa(Y)===R&&(st=new st(w,M+"enter",$,n,Y),st.target=D,st.relatedTarget=Rt,q=st),Rt=q,H&&$)e:{for(st=b6,w=H,M=$,D=0,q=w;q;q=st(q))D++;q=0;for(var at=M;at;at=st(at))q++;for(;0<D-q;)w=st(w),D--;for(;0<q-D;)M=st(M),q--;for(;D--;){if(w===M||M!==null&&w===M.alternate){st=w;break e}w=st(w),M=st(M)}st=null}else st=null;H!==null&&z2(Z,B,H,st,!1),$!==null&&Rt!==null&&z2(Z,Rt,$,st,!0)}}t:{if(B=R?ol(R):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var Et=qm;else if(km(B))if(Xm)Et=RS;else{Et=wS;var et=CS}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?R&&Au(R.elementType)&&(Et=qm):Et=DS;if(Et&&(Et=Et(t,R))){Ym(Z,Et,n,Y);break t}et&&et(t,B,R),t==="focusout"&&R&&B.type==="number"&&R.memoizedProps.value!=null&&Mu(B,"number",B.value)}switch(et=R?ol(R):window,t){case"focusin":(km(et)||et.contentEditable==="true")&&(ri=et,_u=R,yl=null);break;case"focusout":yl=_u=ri=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,Wm(Z,n,Y);break;case"selectionchange":if(BS)break;case"keydown":case"keyup":Wm(Z,n,Y)}var pt;if(Ou)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else si?_m(t,n)&&(St="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(Nm&&n.locale!=="ko"&&(si||St!=="onCompositionStart"?St==="onCompositionEnd"&&si&&(pt=Lm()):(_n=Y,Ru="value"in _n?_n.value:_n.textContent,si=!0)),et=Mr(R,St),0<et.length&&(St=new jm(St,t,null,n,Y),Z.push({event:St,listeners:et}),pt?St.data=pt:(pt=Gm(n),pt!==null&&(St.data=pt)))),(pt=TS?ES(t,n):MS(t,n))&&(St=Mr(R,"onBeforeInput"),0<St.length&&(et=new jm("onBeforeInput","beforeinput",null,n,Y),Z.push({event:et,listeners:St}),et.data=pt)),p6(Z,t,R,n,Y)}M2(Z,e)})}function Yl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Mr(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=ul(t,n),r!=null&&l.unshift(Yl(t,r,u)),r=ul(t,e),r!=null&&l.push(Yl(t,r,u))),t.tag===3)return l;t=t.return}return[]}function b6(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function z2(t,e,n,l,r){for(var u=e._reactName,h=[];n!==null&&n!==l;){var b=n,T=b.alternate,R=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||R===null||(T=R,r?(R=ul(n,u),R!=null&&h.unshift(Yl(n,R,T))):r||(R=ul(n,u),R!=null&&h.push(Yl(n,R,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var S6=/\r\n?/g,x6=/\u0000|\uFFFD/g;function C2(t){return(typeof t=="string"?t:""+t).replace(S6,`
9
+ `).replace(x6,"")}function w2(t,e){return e=C2(e),C2(t)===e}function Dt(t,e,n,l,r,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ai(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ai(t,""+l);break;case"className":ws(t,"class",l);break;case"tabIndex":ws(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ws(t,n,l);break;case"style":wm(t,l,u);break;case"data":if(e!=="object"){ws(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Rs(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",r.name,r,null),Dt(t,e,"formEncType",r.formEncType,r,null),Dt(t,e,"formMethod",r.formMethod,r,null),Dt(t,e,"formTarget",r.formTarget,r,null)):(Dt(t,e,"encType",r.encType,r,null),Dt(t,e,"method",r.method,r,null),Dt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Rs(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=hn);break;case"onScroll":l!=null&&vt("scroll",t);break;case"onScrollEnd":l!=null&&vt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Rs(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":vt("beforetoggle",t),vt("toggle",t),Cs(t,"popover",l);break;case"xlinkActuate":dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":dn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":dn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":dn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":dn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Cs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Pb.get(n)||n,Cs(t,n,l))}}function df(t,e,n,l,r,u){switch(n){case"style":wm(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ai(t,l):(typeof l=="number"||typeof l=="bigint")&&ai(t,""+l);break;case"onScroll":l!=null&&vt("scroll",t);break;case"onScrollEnd":l!=null&&vt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bm.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),u=t[ye]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,r),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Cs(t,n,l)}}}function ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",t),vt("load",t);var l=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,u,h,n,null)}}r&&Dt(t,e,"srcSet",n.srcSet,n,null),l&&Dt(t,e,"src",n.src,n,null);return;case"input":vt("invalid",t);var b=u=h=r=null,T=null,R=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":r=Y;break;case"type":h=Y;break;case"checked":T=Y;break;case"defaultChecked":R=Y;break;case"value":u=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(c(137,e));break;default:Dt(t,e,l,Y,n,null)}}Mm(t,u,b,T,R,h,r,!1);return;case"select":vt("invalid",t),l=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":u=b;break;case"defaultValue":h=b;break;case"multiple":l=b;default:Dt(t,e,r,b,n,null)}e=u,n=h,t.multiple=!!l,e!=null?ni(t,!!l,e,!1):n!=null&&ni(t,!!l,n,!0);return;case"textarea":vt("invalid",t),u=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":l=b;break;case"defaultValue":r=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(c(91));break;default:Dt(t,e,h,b,n,null)}zm(t,l,r,u);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Dt(t,e,T,l,n,null)}return;case"dialog":vt("beforetoggle",t),vt("toggle",t),vt("cancel",t),vt("close",t);break;case"iframe":case"object":vt("load",t);break;case"video":case"audio":for(l=0;l<kl.length;l++)vt(kl[l],t);break;case"image":vt("error",t),vt("load",t);break;case"details":vt("toggle",t);break;case"embed":case"source":case"link":vt("error",t),vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in n)if(n.hasOwnProperty(R)&&(l=n[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,R,l,n,null)}return;default:if(Au(e)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&df(t,e,Y,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&Dt(t,e,b,l,n,null))}function T6(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,b=null,T=null,R=null,Y=null;for(H in n){var Z=n[H];if(n.hasOwnProperty(H)&&Z!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=Z;default:l.hasOwnProperty(H)||Dt(t,e,H,null,l,Z)}}for(var B in l){var H=l[B];if(Z=n[B],l.hasOwnProperty(B)&&(H!=null||Z!=null))switch(B){case"type":u=H;break;case"name":r=H;break;case"checked":R=H;break;case"defaultChecked":Y=H;break;case"value":h=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,e));break;default:H!==Z&&Dt(t,e,B,H,l,Z)}}Eu(t,h,b,T,R,Y,u,r);return;case"select":H=h=b=B=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":H=T;default:l.hasOwnProperty(u)||Dt(t,e,u,null,l,T)}for(r in l)if(u=l[r],T=n[r],l.hasOwnProperty(r)&&(u!=null||T!=null))switch(r){case"value":B=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==T&&Dt(t,e,r,u,l,T)}e=b,n=h,l=H,B!=null?ni(t,!!n,B,!1):!!l!=!!n&&(e!=null?ni(t,!!n,e,!0):ni(t,!!n,n?[]:"",!1));return;case"textarea":H=B=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Dt(t,e,b,null,l,r)}for(h in l)if(r=l[h],u=n[h],l.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":B=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(c(91));break;default:r!==u&&Dt(t,e,h,r,l,u)}Am(t,B,H);return;case"option":for(var $ in n)if(B=n[$],n.hasOwnProperty($)&&B!=null&&!l.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:Dt(t,e,$,null,l,B)}for(T in l)if(B=l[T],H=n[T],l.hasOwnProperty(T)&&B!==H&&(B!=null||H!=null))switch(T){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Dt(t,e,T,B,l,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var st in n)B=n[st],n.hasOwnProperty(st)&&B!=null&&!l.hasOwnProperty(st)&&Dt(t,e,st,null,l,B);for(R in l)if(B=l[R],H=n[R],l.hasOwnProperty(R)&&B!==H&&(B!=null||H!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,e));break;default:Dt(t,e,R,B,l,H)}return;default:if(Au(e)){for(var Rt in n)B=n[Rt],n.hasOwnProperty(Rt)&&B!==void 0&&!l.hasOwnProperty(Rt)&&df(t,e,Rt,void 0,l,B);for(Y in l)B=l[Y],H=n[Y],!l.hasOwnProperty(Y)||B===H||B===void 0&&H===void 0||df(t,e,Y,B,l,H);return}}for(var w in n)B=n[w],n.hasOwnProperty(w)&&B!=null&&!l.hasOwnProperty(w)&&Dt(t,e,w,null,l,B);for(Z in l)B=l[Z],H=n[Z],!l.hasOwnProperty(Z)||B===H||B==null&&H==null||Dt(t,e,Z,B,l,H)}function D2(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E6(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],u=r.transferSize,h=r.initiatorType,b=r.duration;if(u&&b&&D2(h)){for(h=0,b=r.responseEnd,l+=1;l<n.length;l++){var T=n[l],R=T.startTime;if(R>b)break;var Y=T.transferSize,Z=T.initiatorType;Y&&D2(Z)&&(T=T.responseEnd,h+=Y*(T<b?1:(b-R)/(T-R)))}if(--l,e+=8*(u+h)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hf=null,mf=null;function Ar(t){return t.nodeType===9?t:t.ownerDocument}function R2(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function L2(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function pf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var gf=null;function M6(){var t=window.event;return t&&t.type==="popstate"?t===gf?!1:(gf=t,!0):(gf=null,!1)}var B2=typeof setTimeout=="function"?setTimeout:void 0,A6=typeof clearTimeout=="function"?clearTimeout:void 0,V2=typeof Promise=="function"?Promise:void 0,z6=typeof queueMicrotask=="function"?queueMicrotask:typeof V2<"u"?function(t){return V2.resolve(null).then(t).catch(C6)}:B2;function C6(t){setTimeout(function(){throw t})}function na(t){return t==="head"}function j2(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),ji(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ql(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ql(n);for(var u=n.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[rl]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&ql(t.ownerDocument.body);n=r}while(n);ji(e)}function O2(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function yf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yf(n),xu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function w6(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[rl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Fe(t.nextSibling),t===null)break}return null}function D6(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Fe(t.nextSibling),t===null))return null;return t}function N2(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Fe(t.nextSibling),t===null))return null;return t}function vf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function R6(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Fe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Sf=null;function H2(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Fe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function U2(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function _2(t,e,n){switch(e=Ar(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function ql(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xu(t)}var Ke=new Map,G2=new Set;function zr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Dn=K.d;K.d={f:L6,r:B6,D:V6,C:j6,L:O6,m:N6,X:U6,S:H6,M:_6};function L6(){var t=Dn.f(),e=yr();return t||e}function B6(t){var e=$a(t);e!==null&&e.tag===5&&e.type==="form"?ap(e):Dn.r(t)}var Li=typeof document>"u"?null:document;function k2(t,e,n){var l=Li;if(l&&typeof e=="string"&&e){var r=_e(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),G2.has(r)||(G2.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),ce(e,"link",t),ne(e),l.head.appendChild(e)))}}function V6(t){Dn.D(t),k2("dns-prefetch",t,null)}function j6(t,e){Dn.C(t,e),k2("preconnect",t,e)}function O6(t,e,n){Dn.L(t,e,n);var l=Li;if(l&&t&&e){var r='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+_e(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+_e(n.imageSizes)+'"]')):r+='[href="'+_e(t)+'"]';var u=r;switch(e){case"style":u=Bi(t);break;case"script":u=Vi(t)}Ke.has(u)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ke.set(u,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Xl(u))||e==="script"&&l.querySelector(Zl(u))||(e=l.createElement("link"),ce(e,"link",t),ne(e),l.head.appendChild(e)))}}function N6(t,e){Dn.m(t,e);var n=Li;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',u=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Vi(t)}if(!Ke.has(u)&&(t=v({rel:"modulepreload",href:t},e),Ke.set(u,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Zl(u)))return}l=n.createElement("link"),ce(l,"link",t),ne(l),n.head.appendChild(l)}}}function H6(t,e,n){Dn.S(t,e,n);var l=Li;if(l&&t){var r=ti(l).hoistableStyles,u=Bi(t);e=e||"default";var h=r.get(u);if(!h){var b={loading:0,preload:null};if(h=l.querySelector(Xl(u)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ke.get(u))&&xf(t,n);var T=h=l.createElement("link");ne(T),ce(T,"link",t),T._p=new Promise(function(R,Y){T.onload=R,T.onerror=Y}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Cr(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(u,h)}}}function U6(t,e){Dn.X(t,e);var n=Li;if(n&&t){var l=ti(n).hoistableScripts,r=Vi(t),u=l.get(r);u||(u=n.querySelector(Zl(r)),u||(t=v({src:t,async:!0},e),(e=Ke.get(r))&&Tf(t,e),u=n.createElement("script"),ne(u),ce(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function _6(t,e){Dn.M(t,e);var n=Li;if(n&&t){var l=ti(n).hoistableScripts,r=Vi(t),u=l.get(r);u||(u=n.querySelector(Zl(r)),u||(t=v({src:t,async:!0,type:"module"},e),(e=Ke.get(r))&&Tf(t,e),u=n.createElement("script"),ne(u),ce(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function Y2(t,e,n,l){var r=(r=mt.current)?zr(r):null;if(!r)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Bi(n.href),n=ti(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Bi(n.href);var u=ti(r).hoistableStyles,h=u.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=r.querySelector(Xl(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Ke.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ke.set(t,n),u||G6(r,t,n,h.state))),e&&l===null)throw Error(c(528,""));return h}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Vi(n),n=ti(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Bi(t){return'href="'+_e(t)+'"'}function Xl(t){return'link[rel="stylesheet"]['+t+"]"}function q2(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function G6(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ce(e,"link",n),ne(e),t.head.appendChild(e))}function Vi(t){return'[src="'+_e(t)+'"]'}function Zl(t){return"script[async]"+t}function X2(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(n.href)+'"]');if(l)return e.instance=l,ne(l),l;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ne(l),ce(l,"style",r),Cr(l,n.precedence,t),e.instance=l;case"stylesheet":r=Bi(n.href);var u=t.querySelector(Xl(r));if(u)return e.state.loading|=4,e.instance=u,ne(u),u;l=q2(n),(r=Ke.get(r))&&xf(l,r),u=(t.ownerDocument||t).createElement("link"),ne(u);var h=u;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ce(u,"link",l),e.state.loading|=4,Cr(u,n.precedence,t),e.instance=u;case"script":return u=Vi(n.src),(r=t.querySelector(Zl(u)))?(e.instance=r,ne(r),r):(l=n,(r=Ke.get(u))&&(l=v({},n),Tf(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),ne(r),ce(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Cr(l,n.precedence,t));return e.instance}function Cr(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,u=r,h=0;h<l.length;h++){var b=l[h];if(b.dataset.precedence===e)u=b;else if(u!==r)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Tf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var wr=null;function Z2(t,e,n){if(wr===null){var l=new Map,r=wr=new Map;r.set(n,l)}else r=wr,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var u=n[r];if(!(u[rl]||u[se]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var b=l.get(h);b?b.push(u):l.set(h,[u])}}return l}function F2(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function k6(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function K2(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Y6(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Bi(l.href),u=e.querySelector(Xl(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Dr.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,ne(u);return}u=e.ownerDocument||e,l=q2(l),(r=Ke.get(r))&&xf(l,r),u=u.createElement("link"),ne(u);var h=u;h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ce(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Dr.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ef=0;function q6(t,e){return t.stylesheets&&t.count===0&&Lr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Ef===0&&(Ef=62500*E6());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Ef?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Dr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Rr=null;function Lr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Rr=new Map,e.forEach(X6,t),Rr=null,Dr.call(t))}function X6(t,e){if(!(e.state.loading&4)){var n=Rr.get(t);if(n)var l=n.get(null);else{n=new Map,Rr.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}r=e.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||l,u===l&&n.set(null,r),n.set(h,r),this.count++,l=Dr.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),u?u.parentNode.insertBefore(r,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Fl={$$typeof:P,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function Z6(t,e,n,l,r,u,h,b,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Q2(t,e,n,l,r,u,h,b,T,R,Y,Z){return t=new Z6(t,e,n,h,T,R,Y,Z,b),e=1,u===!0&&(e|=24),u=De(3,null,null,e),t.current=u,u.stateNode=t,e=ec(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},lc(u),t}function P2(t){return t?(t=ci,t):ci}function J2(t,e,n,l,r,u){r=P2(r),l.context===null?l.context=r:l.pendingContext=r,l=Zn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Fn(t,l,e),n!==null&&(Ee(n,t,e),Ml(n,t,e))}function I2(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Mf(t,e){I2(t,e),(t=t.alternate)&&I2(t,e)}function W2(t){if(t.tag===13||t.tag===31){var e=Ta(t,67108864);e!==null&&Ee(e,t,67108864),Mf(t,67108864)}}function $2(t){if(t.tag===13||t.tag===31){var e=je();e=vu(e);var n=Ta(t,e);n!==null&&Ee(n,t,e),Mf(t,e)}}var Br=!0;function F6(t,e,n,l){var r=U.T;U.T=null;var u=K.p;try{K.p=2,Af(t,e,n,l)}finally{K.p=u,U.T=r}}function K6(t,e,n,l){var r=U.T;U.T=null;var u=K.p;try{K.p=8,Af(t,e,n,l)}finally{K.p=u,U.T=r}}function Af(t,e,n,l){if(Br){var r=zf(l);if(r===null)ff(t,e,l,Vr,n),e3(t,l);else if(P6(r,t,e,n,l))l.stopPropagation();else if(e3(t,l),e&4&&-1<Q6.indexOf(t)){for(;r!==null;){var u=$a(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=ya(u.pendingLanes);if(h!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-Ce(h);b.entanglements[1]|=T,h&=~T}rn(u),(At&6)===0&&(pr=le()+500,Gl(0))}}break;case 31:case 13:b=Ta(u,2),b!==null&&Ee(b,u,2),yr(),Mf(u,2)}if(u=zf(l),u===null&&ff(t,e,l,Vr,n),u===r)break;r=u}r!==null&&l.stopPropagation()}else ff(t,e,l,null,n)}}function zf(t){return t=Cu(t),Cf(t)}var Vr=null;function Cf(t){if(Vr=null,t=Wa(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=g(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Vr=t,null}function t3(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gu()){case om:return 2;case um:return 8;case Ts:case jb:return 32;case cm:return 268435456;default:return 32}default:return 32}}var wf=!1,aa=null,ia=null,la=null,Kl=new Map,Ql=new Map,sa=[],Q6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function e3(t,e){switch(t){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Kl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ql.delete(e.pointerId)}}function Pl(t,e,n,l,r,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[r]},e!==null&&(e=$a(e),e!==null&&W2(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function P6(t,e,n,l,r){switch(e){case"focusin":return aa=Pl(aa,t,e,n,l,r),!0;case"dragenter":return ia=Pl(ia,t,e,n,l,r),!0;case"mouseover":return la=Pl(la,t,e,n,l,r),!0;case"pointerover":var u=r.pointerId;return Kl.set(u,Pl(Kl.get(u)||null,t,e,n,l,r)),!0;case"gotpointercapture":return u=r.pointerId,Ql.set(u,Pl(Ql.get(u)||null,t,e,n,l,r)),!0}return!1}function n3(t){var e=Wa(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=g(n),e!==null){t.blockedOn=e,gm(t.priority,function(){$2(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,gm(t.priority,function(){$2(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function jr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=zf(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);zu=l,n.target.dispatchEvent(l),zu=null}else return e=$a(n),e!==null&&W2(e),t.blockedOn=n,!1;e.shift()}return!0}function a3(t,e,n){jr(t)&&n.delete(e)}function J6(){wf=!1,aa!==null&&jr(aa)&&(aa=null),ia!==null&&jr(ia)&&(ia=null),la!==null&&jr(la)&&(la=null),Kl.forEach(a3),Ql.forEach(a3)}function Or(t,e){t.blockedOn===e&&(t.blockedOn=null,wf||(wf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,J6)))}var Nr=null;function i3(t){Nr!==t&&(Nr=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Nr===t&&(Nr=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Cf(l||n)===null)continue;break}var u=$a(n);u!==null&&(t.splice(e,3),e-=3,Ac(u,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function ji(t){function e(T){return Or(T,t)}aa!==null&&Or(aa,t),ia!==null&&Or(ia,t),la!==null&&Or(la,t),Kl.forEach(e),Ql.forEach(e);for(var n=0;n<sa.length;n++){var l=sa[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<sa.length&&(n=sa[0],n.blockedOn===null);)n3(n),n.blockedOn===null&&sa.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],u=n[l+1],h=r[ye]||null;if(typeof u=="function")h||i3(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[ye]||null)b=h.formAction;else if(Cf(r)!==null)continue}else b=h.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),i3(n)}}}function l3(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Df(t){this._internalRoot=t}Hr.prototype.render=Df.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=je();J2(n,l,t,e,null,null)},Hr.prototype.unmount=Df.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;J2(t.current,2,null,t,null,null),yr(),e[Ia]=null}};function Hr(t){this._internalRoot=t}Hr.prototype.unstable_scheduleHydration=function(t){if(t){var e=pm();t={blockedOn:null,target:t,priority:e};for(var n=0;n<sa.length&&e!==0&&e<sa[n].priority;n++);sa.splice(n,0,t),n===0&&n3(t)}};var s3=s.version;if(s3!=="19.2.1")throw Error(c(527,s3,"19.2.1"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=y(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var I6={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ur.isDisabled&&Ur.supportsFiber)try{il=Ur.inject(I6),ze=Ur}catch{}}return Ni.createRoot=function(t,e){if(!d(t))throw Error(c(299));var n=!1,l="",r=hp,u=mp,h=pp;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=Q2(t,1,!1,null,null,n,l,null,r,u,h,l3),t[Ia]=e.current,cf(t),new Df(e)},Ni.hydrateRoot=function(t,e,n){if(!d(t))throw Error(c(299));var l=!1,r="",u=hp,h=mp,b=pp,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Q2(t,1,!0,e,n??null,l,r,T,u,h,b,l3),e.context=P2(null),n=e.current,l=je(),l=vu(l),r=Zn(l),r.callback=null,Fn(n,r,l),n=l,e.current.lanes=n,sl(e,n),rn(e),t[Ia]=e.current,cf(t),new Hr(e)},Ni.version="19.2.1",Ni}var _f;function p3(){if(_f)return Gr.exports;_f=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Gr.exports=m3(),Gr.exports}var g3=p3();const y3=Oa(g3);var C=Xr();const oa=Oa(C),v3={common:{cancel:"Cancel",auto:"Auto",normal:"Normal",notUse:"Not used",prev:"Previous video",next:"Next video",delayText:"seconds until auto-play",license:"License",play:"Play",pause:"Pause",replay:"Replay",fullOn:"Fullscreen",fullOff:"Exit fullscreen",muteOn:"Mute",muteOff:"Unmute",captionOff:"Turn off captions",captionOn:"Turn on captions",setting:"Settings",live:"LIVE",miniPlayer:"Mini player",isMute:"You are muted.",subtitle:"Subtitles",subtitleNot:"Subtitles not available"},settings:{autoplay:"Autoplay",playbackRate:"Playback speed",captions:"Subtitles",quality:"Quality"},error:{"01":{title:"Cannot play video",desc:"Invalid access. Please check your access_key."},"02":{title:"Cannot play video",desc:"You do not have permission to play this video."},"03":{title:"Authentication Failed",desc:"The network connection is unstable."},"04":{title:"Cannot play video",desc:"The video could not be played."},"05":{title:"Cannot play video",desc:"The license is not valid."},"06":{title:"Cannot play video",desc:"Monthly basic API calls exceeded. Please switch to a paid version."},"07":{title:"Cannot play video",desc:"Unsupported format."},"08":{title:"Cannot play video",desc:"Invalid URL format."},"09":{title:"Cannot play video",desc:"The live stream is OFFLINE."},10:{title:"Cannot play video",desc:"Cannot play DASH video on iOS."},11:{title:"Cannot play video",desc:"Invalid DRM token."},12:{title:"Cannot play video",desc:"Failed to communicate with the DRM license server."},13:{title:"Cannot play video",desc:"FairPlay certificate validation failed."},14:{title:"Cannot play video",desc:"Screen capture / screen recording has been detected."},15:{title:"Player Execution Failed",desc:"Required module was not loaded. (hls.js)"},16:{title:"Player Execution Failed",desc:"Required module was not loaded. (dash.js)"}},alternative:{hour:"hour(s)",minute:"minute(s)",second:"second(s)",after:"In a moment",afterMin:"min",afterHour:"hour",afterDay:"day",startPlay:"Video will start in {timeTxt}.",nextPlay:"Next video will play in {timeTxt} seconds.",afterPlay:"Scheduled"}},b3={common:{cancel:"취소",auto:"자동",normal:"보통",notUse:"사용안함",prev:"이전 동영상",next:"다음 동영상",delayText:"초 뒤 자동재생",license:"라이선스",play:"재생",pause:"일시정지",replay:"다시보기",fullOn:"전체화면",fullOff:"전체화면 해제",muteOn:"음소거",muteOff:"음소거 해제",captionOff:"자막끄기",captionOn:"자막켜기",setting:"설정",live:"실시간",miniPlayer:"미니플레이어",isMute:"음소거 상태입니다.",subtitle:"자막",subtitleNot:"자막 사용 불가"},settings:{autoplay:"자동재생",playbackRate:"재생 속도",captions:"자막",quality:"해상도"},error:{"01":{title:"동영상을 재생할 수 없음",desc:"잘못된 접근입니다. access_key를 확인해주세요."},"02":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 권한이 없습니다."},"03":{title:"인증 실패",desc:"네트워크 연결이 원활하지 않습니다."},"04":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 수 없습니다."},"05":{title:"동영상을 재생할 수 없음",desc:"라이선스가 유효하지 않습니다."},"06":{title:"동영상을 재생할 수 없음",desc:"월 기본 제공 호출 건수를 초과하였습니다. 유료 버전으로 전환 후 사용 부탁 드립니다."},"07":{title:"동영상을 재생할 수 없음",desc:"지원하지 않는 형식입니다."},"08":{title:"동영상을 재생할 수 없음",desc:"URL 형식이 잘못되었습니다."},"09":{title:"동영상을 재생할 수 없음",desc:"라이브스트림이 OFFLINE 입니다."},10:{title:"동영상을 재생할 수 없음",desc:"iOS에서 Dash 비디오를 재생할 수 없습니다."},11:{title:"동영상을 재생할 수 없음",desc:"DRM 토큰이 잘못되었습니다."},12:{title:"동영상을 재생할 수 없음",desc:"DRM 라이선스 서버와 통신에 실패하였습니다."},13:{title:"동영상을 재생할 수 없음",desc:"FairPlay 인증서 검증에 실패하였습니다."},14:{title:"동영상을 재생할 수 없음",desc:"화면 캡쳐 / 화면 녹화가 감지되었습니다."},15:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (hls.js)"},16:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (dash.js)"}},alternative:{hour:"시",minute:"분",second:"초",after:"잠시 ",afterMin:"분 ",afterHour:"시간 ",afterDay:"일 ",startPlay:"{timeTxt} 후 영상이 시작됩니다.",nextPlay:"{timeTxt}초 후 다음 영상이 재생됩니다.",afterPlay:"예정"}},S3={common:{cancel:"キャンセル",auto:"自動",normal:"標準",notUse:"使用しない",prev:"前の動画",next:"次の動画",delayText:"秒後に自動再生",license:"ライセンス",play:"再生",pause:"一時停止",replay:"リプレイ",fullOn:"全画面表示",fullOff:"全画面表示を終了",muteOn:"ミュート",muteOff:"ミュート解除",captionOff:"字幕をオフにする",captionOn:"字幕をオンにする",setting:"設定",live:"ライブ",miniPlayer:"ミニプレーヤー",isMute:"ミュート状態です。",subtitle:"字幕",subtitleNot:"字幕は利用できません"},settings:{autoplay:"自動再生",playbackRate:"再生速度",captions:"字幕",quality:"画質"},error:{"01":{title:"動画を再生できません",desc:"不正なアクセスです。access_keyを確認してください。"},"02":{title:"動画を再生できません",desc:"この動画を再生する権限がありません。"},"03":{title:"認証に失敗しました",desc:"ネットワーク接続が不安定です。"},"04":{title:"動画を再生できません",desc:"動画を再生できませんでした。"},"05":{title:"動画を再生できません",desc:"ライセンスが無効です。"},"06":{title:"動画を再生できません",desc:"月間の基本提供呼び出し回数を超過しました。有料版に切り替えてご利用ください。"},"07":{title:"動画を再生できません",desc:"サポートされていない形式です。"},"08":{title:"動画を再生できません",desc:"URLの形式が正しくありません。"},"09":{title:"動画を再生できません",desc:"ライブストリームはオフラインです。"},10:{title:"動画を再生できません",desc:"iOSではDASHビデオを再生できません。"},11:{title:"動画を再生できません",desc:"DRMトークンが無効です。"},12:{title:"動画を再生できません",desc:"DRMライセンスサーバーとの通信に失敗しました。"},13:{title:"動画を再生できません",desc:"FairPlay証明書の検証に失敗しました。"},14:{title:"動画を再生できません",desc:"画面キャプチャ/画面録画が検出されました。"},15:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(hls.js)"},16:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(dash.js)"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}},Gf={en:v3,ko:b3,ja:S3},x3=()=>typeof navigator<"u"&&typeof navigator.language<"u";function T3(a){const i=a.split("-")[0];return i in Gf?i:"en"}function kf(a){let i="en";a?i=a:x3()&&(i=navigator.language);const s=T3(i);return Gf[s]}kf();const E3={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo (Democratic Republic of the)",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (Democratic People's Republic of)",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia (the former Yugoslav Republic of)",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States of America",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},M3={gov:{prod:{log:"https://papi.vpe.gov-ntruss.com/player/maSync",report:"https://log.vpe.gov-ntruss.com/stats"},beta:{log:"https://papi.beta-vpe.gov-ntruss.com/player/maSync",report:"https://log.beta-vpe.gov-ntruss.com/stats"}},pub:{prod:{log:"https://papi.vpe.naverncp.com/player/maSync",report:"https://log.vpe.naverncp.com/stats"},beta:{log:"https://papi.beta-vpe.naverncp.com/player/maSync",report:"https://log.beta-vpe.naverncp.com/stats"}}};let Me={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Rn={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const A3=new Date().getTime(),Yf=()=>{const a=new Date,i=d=>String(d).padStart(2,"0"),s=`${a.getFullYear()}-${i(a.getMonth()+1)}-${i(a.getDate())} ${i(a.getHours())}:${i(a.getMinutes())}:${i(a.getSeconds())}`,o=Math.floor(a.getTime()/1e3),c=new Date().getTime()-A3;return{logDate:s,logDateUnix:o,thisSec:c}};function z3(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function C3(a,i){Object.entries(i).forEach(([s,o])=>{z3(o)?(a[s]||(a[s]={}),Object.entries(o).forEach(([c,d])=>{d!=null&&(a[s][c]=d)})):o!=null&&(a[s]=o)})}function w3(a){const i=[];return a?.r1&&i.push(a.r1),a?.r2&&i.push(a.r2),a?.r3&&i.push(a.r3),i.join(" ")}function D3(a){try{const i=Rn.syncResult?.geoLocation;i&&(a.address=w3(i),a.isp=i.net||"",a.ip=Rn.syncResult?.ip||"",a.nation=i.country||"")}catch{}}const R3=async a=>{if(!a)return;const{platform:i,stage:s}=Rn,o=M3[i][s].log;try{const c=await(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:a})})).json();Rn.sync=c.result?.sync||!1,Rn.syncResult=c.result||{};const{logDate:d,logDateUnix:f}=Yf();return Me.extra.logDate=d,Me.extra.logDateUnix=f,Rn.syncResult?.geoLocation&&D3(Me.extra),c}catch(c){return console.error("MA config initialization failed:",c),null}};async function L3(a,i,s,o,c){Rn.platform=a,Rn.stage=i,C3(Me,s),o&&(Me.extra.vpePackageId=o),c&&(Me.extra.vpeKey=c),Me.extra.nation?Me.browser.country=E3[Me.extra.nation]||"Korea, Republic of":Me.browser.country="Korea, Republic of";const{logDate:d,logDateUnix:f}=Yf();Me.extra.logDate=d,Me.extra.logDateUnix=f,Me.extra.created_at=f}const B3=(a={})=>{const i={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!1,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,lang:"ko",ui:"all",controlBtn:{play:!0,fullscreen:!0,progressBar:!0,volume:!1,times:!0,pictureInPicture:!0,setting:!0,subtitle:!0},progressBarColor:"#4299f5",controlActiveTime:3e3,playRateSetting:[.5,.75,1,1.5,2],autoPause:!1,repeat:!1,setStartTime:void 0,playIndex:0,lowLatencyMode:!0,touchGestures:!0,descriptionNotVisible:!1,devTestAppId:void 0,token:"",visibleWatermark:!1,watermarkText:"NAVER CLOUD PLATFORM",watermarkConfig:{randPosition:!0,randPositionInterVal:3e3,x:10,y:10,opacity:.5},captionStyle:{fontSize:12,color:"#ffffff",backgroundColor:"rgba(0, 0, 0, 0.4)",edgeStyle:"dropshadow"},override:null},s={...i,...a};return a.controlBtn&&(s.controlBtn={...i.controlBtn,...a.controlBtn}),a.watermarkConfig&&(s.watermarkConfig={...i.watermarkConfig,...a.watermarkConfig}),a.captionStyle&&(s.captionStyle={...i.captionStyle,...a.captionStyle}),s.objectFit==="fill"&&(s.objectFit="stretch"),s.controlBtn?.progressBar===void 0&&(s.controlBtn.progressBar=!0),s},V3={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let qf=[];const j3=a=>{try{return atob(a)}catch(i){return console.error("Base64 decoding failed:",i),""}};class O3{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator;errorState;constructor({accessKey:i,appId:s,platform:o,stage:c,isDev:d=!1,language:f}){this.accessKey=i,this.appId=s||location.origin,this.platform=o,this.stage=c,this.isDev=d,this.translator=kf(f),this.errorState={errorCode:null,errorMessage:null}}async initialize(){const i=["accessKey","appId","E0002","E0001","E0003"],s="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[i[0]],this[i[1]]].some(c=>!c))return console.warn(s),{error:this.setErrorRun(i[2])};const o=c=>(this.serverConfig=c,this.playerInfo=this.createPlayerInfo(c),this.playerInfo);try{const c=await this.performKeyCheck();if(c.code!==200)return{error:this.setErrorRun(i[3])};const d=o(c);return await L3(this.platform,this.stage,d,this.appId,this.accessKey),await R3(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:d}}catch(c){return console.error("VPE SDK Initialization failed:",c),{error:this.setErrorRun(i[4])}}}async performKeyCheck(){const i=["?preview=true","config","Content-Type","application/json","access_key","domain","POST"],s=this.isDev?i[0]:"",o=j3(V3[this.platform][this.stage][i[1]])+s,c=JSON.stringify([i[4],i[5]].reduce((f,g,m)=>(f[g]=[this.accessKey,this.appId][m],f),{})),d=await fetch(o,{method:i[6],headers:{[i[2]]:i[3]},body:c});if(!d.ok)throw new Error(["API","Error:",d.status,d.statusText].join(" "));return d.json()}getBrowserInfo(){const i=navigator.userAgent;return/Edg\/(\d+\.\d+)/.test(i)?{origin:"Edge",version:RegExp.$1}:/Chrome\/(\d+\.\d+)/.test(i)&&!i.includes("Edg")?{origin:"Chrome",version:RegExp.$1}:/Firefox\/(\d+\.\d+)/.test(i)?{origin:"Firefox",version:RegExp.$1}:/Version\/(\d+\.\d+)/.test(i)&&i.includes("Safari")?{origin:"Safari",version:RegExp.$1}:{origin:"Unknown",version:"Unknown"}}createPlayerInfo(i){const[s,o]=i.result.name.split("|"),c=navigator.connection||navigator.mozConnection||navigator.webkitConnection,d=this.getBrowserInfo(),f=navigator.userAgentData;return{cid:i.result.cid,player_name:s,player_version:o,pricing:i.result.pricing,maUse:i.result.options?.maUse==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:c?.effectiveType??"unknown",downlink:c?.downlink??null,rtt:c?.rtt??null,save_data:c?.saveData??!1},device:{platform:f?.platform??"Unknown",mobile:f?.mobile??!1,memory:navigator.deviceMemory??null,processor:navigator.hardwareConcurrency??null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:o,device:f?.platform??"Unknown",os:f?.platform??"Unknown",osOrigin:f?.platform??"Unknown",osVersion:f?.platformVersion??"Unknown",vpePackageId:this.appId,actionDuration:0,actionType:"ready",browser:d.origin,browserOrigin:d.origin,browserVersion:d.version,protocol:location.protocol,quality:"Other",qualityOrigin:"Auto",host:`${this.appId}&${f?.platform??"Unknown"}&${f?.platformVersion??"Unknown"}`,location:`${this.appId}://appView/video/vpe`,title:""}}}setErrorRun(i){const s=i.slice(-2),o=this.translator.error[s]||this.translator.error["01"],c={errorCode:i,errorMessage:o};return this.errorState=c,console.error("ncplayer : ",c),c}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(i){const s=B3(this.serverConfig.result?.options?.options),o={...s,...i??{}};return i?.controlBtn&&(o.controlBtn={...s.controlBtn,...i.controlBtn}),i?.watermarkConfig&&(o.watermarkConfig={...s.watermarkConfig,...i.watermarkConfig}),o.playlist&&!Array.isArray(o.playlist)&&(o.playlist=[{file:o.playlist}]),qf=o.playlist||[],o}getPlaylist(){return qf||[]}$t(i){const s=i.split(".");let o=this.translator;for(const c of s)if(o&&typeof o=="object"&&c in o)o=o[c];else return i;return typeof o=="string"?o:i}}const Fr=new Map;function N3(a,i){if(Fr.has(a))return Fr.get(a);const o={value:typeof i=="function"?i():i,listeners:new Set};return Fr.set(a,o),o}function Xf(a,i){const s=N3(a,i),o=m=>(s.listeners.add(m),()=>s.listeners.delete(m)),c=()=>s.value,d=()=>s.value,f=m=>{s.value=typeof m=="function"?m(s.value):m,s.listeners.forEach(p=>p())};return[C.useSyncExternalStore(o,c,d),f]}const Kr=new Map;function H3(a,i){if(Kr.has(a))return Kr.get(a);const o={value:typeof i=="function"?i():i,listeners:new Set};return Kr.set(a,o),o}function Zf(a,i){const s=H3(a,i),o=m=>(s.listeners.add(m),()=>s.listeners.delete(m)),c=()=>s.value,d=()=>s.value,f=C.useCallback(m=>{s.value=typeof m=="function"?m(s.value):m,s.listeners.forEach(p=>p())},[s]);return[C.useSyncExternalStore(o,c,d),f]}const U3="playerState",_3={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,isHd:!1,is4k:!1,isPictureInPicture:!1,isSettingModal:!1,isFullscreen:!1,isSubtitle:!0,videoWidth:0,videoHeight:0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function qt(){const[a,i]=Zf(U3,_3),s=C.useCallback(o=>{i(c=>{const d=typeof o=="function"?o(c):o;return{...c,...d}})},[i]);return[a,s]}const G3="playerController",k3={videoEl:null,hls:null,dash:null};function $t(){const[a,i]=Zf(G3,k3),[s,o]=qt(),c=C.useCallback(_=>{i(F=>({...F,videoEl:_}))},[i]),d=C.useCallback(_=>{i(F=>({...F,hls:_}))},[i]),f=C.useCallback(_=>{i(F=>({...F,dash:_}))},[i]),g=C.useCallback(()=>{o({isUserTouch:!0})},[o]),m=C.useCallback(()=>{const _=a.videoEl;_&&_.paused&&_.play()},[a.videoEl]),p=C.useCallback(()=>{const _=a.videoEl;_&&(_.paused||_.pause())},[a.videoEl]),y=C.useCallback(_=>{const F=a.videoEl;if(!F||Number.isNaN(_))return;const V=Math.max(0,Math.min(_,F.duration||_));F.currentTime=V,o({currentTime:V})},[o,a.videoEl]),S=C.useCallback(_=>{const F=a.videoEl;if(!F||Number.isNaN(_))return;const V=Math.max(0,Math.min(100,_));F.volume=V/100,F.muted=V===0},[a.videoEl]),v=C.useCallback(_=>{const F=a.videoEl;F&&(F.muted=_)},[a.videoEl]),z=C.useCallback(_=>{const F=a.videoEl;if(!F)return;const V=F.textTracks;if(!V||V.length===0)return;const N=Math.max(0,Math.min(s.subTitleIdx??0,V.length-1));for(let tt=0;tt<V.length;tt+=1)V[tt].mode=_&&tt===N?"showing":"disabled";o({isSubtitle:_})},[s.subTitleIdx,o,a.videoEl]),j=C.useCallback(()=>{const _=a.videoEl;if(!_)return;const F=_.textTracks;if(!F||F.length===0){o({isSubtitle:!1});return}let V=!1;for(let N=0;N<F.length;N+=1)if(F[N].mode==="showing"){V=!0;break}V?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),z(!V)},[o,z,a.videoEl]),L=C.useCallback(_=>{const F=a.videoEl;if(!F)return;const V=Array.from(F.querySelectorAll("track")),N=F.textTracks;if((!N||N.length===0)&&V.length===0){o({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const tt=V.length>0?V.length-1:N.length-1,lt=Math.max(0,Math.min(_,tt));if(V.length>0)V.forEach((ot,I)=>{ot.track&&(ot.track.mode=I===lt?"showing":"disabled")});else for(let ot=0;ot<N.length;ot+=1)N[ot].mode=ot===lt?"showing":"disabled";o({isSubtitle:!0,subTitleIdx:lt}),localStorage.setItem("vpeSubtitleEnabled","Y")},[o,a.videoEl]),O=C.useCallback(()=>{const _=a.videoEl;_&&(_.muted=!_.muted)},[a.videoEl]),A=C.useCallback(()=>{const _=a.videoEl;_&&(_.paused?m():p())},[p,m,a.videoEl]),k=C.useCallback(_=>{const F=a.hls,V=a.dash;if(!F&&!V)return;if(F){if(_==="auto"){F.currentLevel=-1,o({currentLevel:-1,isAutoLevel:!0});return}F.currentLevel=_,o({currentLevel:_,isAutoLevel:!1});return}const N=_==="auto"||_===-1;V?.setAutoSwitchQualityFor&&V.setAutoSwitchQualityFor("video",N),!N&&V?.setQualityFor&&V.setQualityFor("video",_),o({currentLevel:N?-1:_,isAutoLevel:N})},[o,a.dash,a.hls]),G=C.useCallback(_=>{const F=a.videoEl;F&&(F.playbackRate=_)},[a.videoEl]),P=C.useCallback(async()=>{const _=a.videoEl;if(!_||typeof document>"u")return;const F=document;if(F.pictureInPictureElement){typeof F.exitPictureInPicture=="function"&&await F.exitPictureInPicture();return}const V=_.requestPictureInPicture;typeof V=="function"&&await V.call(_)},[a.videoEl]);return{videoEl:a.videoEl,hls:a.hls,dash:a.dash,setVideoElement:c,setHlsInstance:d,setDashInstance:f,play:m,pause:p,seekTo:y,setVolume:S,setMuted:v,setSubtitleEnabled:z,toggleSubtitle:j,toggleMute:O,togglePlay:A,useTouch:g,playBackRate:G,selectSubTitle:L,selectQualityLevel:k,togglePictureInPicture:P}}function Qr(a,i,s=!1){C.useEffect(()=>{const o=a.current;if(!o)return;const c=()=>{i({isPlaying:!0,initPlay:!0,isEnded:!1})},d=()=>{i({isPlaying:!1})},f=()=>{s||Math.round(o.currentTime)%1==0&&i({currentTime:o.currentTime,duration:o.duration})},g=()=>{if(o.buffered.length>0){const G=o.buffered.start(0),P=o.buffered.end(o.buffered.length-1);i({buffered:P,bufferedStart:G,bufferedEnd:P})}},m=()=>{const G=o.videoWidth||0,P=o.videoHeight||0;i({isHd:G>=1280,is4k:P>=2160,videoWidth:G,videoHeight:P})},p=()=>{i({isEnded:!0})},y=()=>{i({isSeeked:!0})},S=()=>{setTimeout(()=>{i({isSeeked:!1})},200)},v=()=>{i({isMuted:o.muted,isVolume:Math.round(o.volume*100)})},z=()=>{i({isLoading:!0,isWaiting:!0})},j=()=>{i({isLoading:!1}),m()},L=()=>{i({isLoading:!1}),m()},O=()=>{i({isWaiting:!0})},A=()=>{i({isWaiting:!1,isLoading:!1})},k=()=>{i({isWaiting:!0})};return o.addEventListener("play",c),o.addEventListener("pause",d),o.addEventListener("timeupdate",f),o.addEventListener("ended",p),o.addEventListener("progress",g),o.addEventListener("seeking",y),o.addEventListener("seeked",S),o.addEventListener("volumechange",v),o.addEventListener("loadstart",z),o.addEventListener("loadedmetadata",j),o.addEventListener("loadeddata",L),o.addEventListener("resize",m),o.addEventListener("waiting",O),o.addEventListener("playing",A),o.addEventListener("stalled",k),v(),()=>{o.removeEventListener("play",c),o.removeEventListener("pause",d),o.removeEventListener("timeupdate",f),o.removeEventListener("ended",p),o.removeEventListener("progress",g),o.removeEventListener("seeking",y),o.removeEventListener("seeked",S),o.removeEventListener("volumechange",v),o.removeEventListener("loadstart",z),o.removeEventListener("loadedmetadata",j),o.removeEventListener("loadeddata",L),o.removeEventListener("resize",m),o.removeEventListener("waiting",O),o.removeEventListener("playing",A),o.removeEventListener("stalled",k)}},[s,i,a])}const Y3=3,q3=3e3;function X3(a){const i=C.useRef(null),s=C.useRef(0),o=C.useRef(null),[c,d]=qt(),{setVideoElement:f,setHlsInstance:g}=$t(),m=a.hlsLib,p=a.options;return C.useEffect(()=>{const y=i.current,S=a?.src?.file;if(!(!y||!S)){if(m?.isSupported?.()){const v=new m({lowLatencyMode:p.lowLatencyMode,liveSyncDuration:p.lowLatencyMode?3:5,backBufferLength:p.lowLatencyMode?30:90,startPosition:-1});g(v),v.attachMedia(y),v.on(m.Events.MEDIA_ATTACHED,()=>{v.loadSource(S)});const z=typeof p?.retry?.maxRetry=="number"?p.retry.maxRetry:Y3,j=typeof p?.retry?.interval=="number"?p.retry.interval:q3,L=O=>{if(typeof O?.details?.live=="boolean"){const A=O.details.live,k=O.details.totalduration,G=A&&typeof k=="number"&&Number.isFinite(k)&&k>0;d({isLive:A,isDvr:G})}};return v.on(m.Events.MANIFEST_PARSED,(O,A)=>{s.current=0,L(A);const k=(v.levels??[]).map((G,P)=>({index:P,width:G.width,height:G.height,bitrate:G.bitrate,name:G.name}));d({levels:k,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(m.Events.LEVEL_LOADED,(O,A)=>{s.current=0,L(A)}),v.on(m.Events.LEVEL_SWITCHED,(O,A)=>{d({currentLevel:A.level,isAutoLevel:v.autoLevelEnabled})}),v.on(m.Events.ERROR,(O,A)=>{if(A?.fatal){if(s.current<z){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{if(o.current=null,A?.type===m.ErrorTypes.MEDIA_ERROR){v.recoverMediaError();return}v.stopLoad(),v.loadSource(S),v.startLoad()},j);return}console.log("HLS 재시도 횟수 초과"),a.onError&&a.onError({evt:O,data:A}),v.destroy()}}),()=>{o.current&&(clearTimeout(o.current),o.current=null),g(null),v.destroy()}}y.src=S}},[m,a?.src?.file,a.onError,g,d]),C.useEffect(()=>{const y=i.current;if(!y||m?.isSupported?.())return;const S=()=>{const v=y.duration,z=!Number.isFinite(v)||v===1/0,j=z?Number.isFinite(v)&&v>0:!1;d({isLive:z,isDvr:j})};return y.addEventListener("loadedmetadata",S),y.addEventListener("durationchange",S),S(),()=>{y.removeEventListener("loadedmetadata",S),y.removeEventListener("durationchange",S)}},[m,d]),C.useEffect(()=>(f(i.current),()=>f(null)),[f]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=p?.playbackRate;typeof S=="number"&&(y.playbackRate=S,d({playbackRate:S}))},[p]),C.useEffect(()=>{const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=50,v=16,z=1.2,j=40,O=-Math.max(1,Math.round(S/(v*z))),A=V=>{if(V.cues)for(let N=0;N<V.cues.length;N+=1){const tt=V.cues[N];tt.line=O,tt.lineAlign="center"}},k=V=>{if(!V.cues)return;const N=y.getBoundingClientRect(),tt=N.width>0?j*2*100/N.width:0,lt=Math.max(10,Math.min(100,100-tt));for(let ot=0;ot<V.cues.length;ot+=1){const I=V.cues[ot];I.size=lt,I.position=50,I.align="center",I.line=-3}},G=V=>{A(V),k(V)},P=Array.from(y.querySelectorAll("track")),_=V=>{const N=V.currentTarget;N?.track&&G(N.track)};P.forEach(V=>{V.addEventListener("load",_),V.track&&G(V.track)});const F=new ResizeObserver(()=>{P.forEach(V=>{V.track&&k(V.track)})});return F.observe(y),()=>{P.forEach(V=>{V.removeEventListener("load",_)}),F.disconnect()}},[p,a.src?.vtt]),Qr(i,d,c.isSeeked),C.useEffect(()=>{const y=a.src?.vtt??[],S=y.length>0,v=y.findIndex(j=>j.default),z=v>=0?v:0;d({hasSubtitle:S,isSubtitle:!1,subTitleIdx:z})},[a.src?.vtt,d]),C.useEffect(()=>{if(!c.isSubtitle)return;const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=new Map,v=[],z=async(L,O)=>{try{const A=await fetch(O,{mode:"cors"});if(!A.ok)return;const k=await A.blob(),G=URL.createObjectURL(k);v.push(G),S.set(L,L.src),L.src=G}catch{}},j=Array.from(y.querySelectorAll("track"));return j.forEach(L=>{L.src&&z(L,L.src)}),()=>{j.forEach(L=>{const O=S.get(L);O&&(L.src=O)}),v.forEach(L=>URL.revokeObjectURL(L))}},[a.src?.vtt,c.subTitleIdx,c.isSubtitle]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=Array.from(y.querySelectorAll("track")),v=y.textTracks;if((!v||v.length===0)&&S.length===0)return;const z=c.subTitleIdx,j=c.isSubtitle,L=()=>{if(S.length>0){S.forEach(A=>{A.track&&(A.default=!1,A.track.mode="disabled")}),S.forEach((A,k)=>{A.track&&j&&k===z&&(A.default=!0,A.track.mode="showing")});return}for(let A=0;A<v.length;A+=1)v[A].mode="disabled";j&&v[z]&&(v[z].mode="showing")};L();const O=()=>{L()};return S.forEach(A=>{A.addEventListener("load",O)}),()=>{S.forEach(A=>{A.removeEventListener("load",O)})}},[c.isSubtitle,c.subTitleIdx,a.src?.vtt]),C.useEffect(()=>{const y=i.current;y&&p.autostart&&y.play().catch(S=>{console.log(S),y.muted=!0,y.play()})},[p.autostart]),C.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&c.hasSubtitle&&d({isSubtitle:!!S})},1e3)},[c.hasSubtitle,d]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:p?.autostart,muted:p?.muted,loop:p?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:a.src.poster?c.initPlay?"transparent":`url(${a.src.poster}) center / ${p?.objectFit??"contain"} no-repeat`:void 0,objectFit:p?.objectFit??"contain"},children:a.src.vtt?.map(y=>x.jsx("track",{kind:"subtitles",srcLang:y.id,label:y.label,src:y.src,default:y.default},`${y.id}-${y.src}`))})})}const Z3=3,F3=3e3,K3=a=>{if(!a)return null;if(typeof a.MediaPlayer=="function"){const i=a.MediaPlayer();if(i?.create)return i.create()}if(a.MediaPlayer?.create)return a.MediaPlayer.create();if(typeof a.MediaPlayerFactory=="function"){const i=a.MediaPlayerFactory();if(i?.create)return i.create()}return null};function Q3(a){const i=C.useRef(null),s=C.useRef(0),o=C.useRef(null),[c,d]=qt(),{setVideoElement:f,setDashInstance:g}=$t(),m=a.dashLib,p=a.options;return C.useEffect(()=>{const y=i.current,S=a?.src?.file;if(!y||!S)return;const v=K3(m);if(!v){y.src=S;return}g(v),typeof v.initialize=="function"?v.initialize(y,S,!!p?.autostart):typeof v.attachView=="function"&&typeof v.attachSource=="function"?(v.attachView(y),v.attachSource(S)):y.src=S;const z=typeof p?.retry?.maxRetry=="number"?p.retry.maxRetry:Z3,j=typeof p?.retry?.interval=="number"?p.retry.interval:F3,L=()=>{const N=(typeof v.getBitrateInfoListFor=="function"?v.getBitrateInfoListFor("video"):[]).map((ot,I)=>({index:typeof ot?.qualityIndex=="number"?ot.qualityIndex:I,width:ot?.width,height:ot?.height,bitrate:ot?.bitrate??ot?.bandwidth,name:ot?.name})),tt=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,lt=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;d({levels:N,currentLevel:tt,isAutoLevel:lt})},O=()=>{const V=typeof v.isDynamic=="function"?v.isDynamic():!1,N=typeof v.getDuration=="function"?v.getDuration():void 0,tt=V&&typeof N=="number"&&Number.isFinite(N)&&N>0;d({isLive:V,isDvr:tt})},A=()=>{s.current=0,L(),O()},k=()=>{const V=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,N=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;d({currentLevel:V,isAutoLevel:N})},G=(V,N)=>{if(N?.error?.fatal??N?.fatal??!0){if(s.current<z){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{if(o.current=null,typeof v.attachSource=="function"){v.attachSource(S);return}typeof v.reset=="function"&&(v.reset(),typeof v.initialize=="function"&&v.initialize(y,S,!!p?.autostart))},j);return}console.log("DASH 재시도 횟수 초과"),a.onError&&a.onError({evt:V,data:N}),typeof v.reset=="function"&&v.reset()}},P=m?.MediaPlayer?.events??m?.MediaPlayer?.Events??m?.events??m?.Events??void 0,_=[],F=(V,N)=>{!V||typeof v.on!="function"||(v.on(V,N),_.push(()=>{typeof v.off=="function"&&v.off(V,N)}))};return F(P?.STREAM_INITIALIZED??P?.MANIFEST_LOADED,A),F(P?.QUALITY_CHANGE_RENDERED??P?.QUALITY_CHANGE_REQUESTED,k),F(P?.ERROR,G),()=>{o.current&&(clearTimeout(o.current),o.current=null),_.forEach(V=>V()),g(null),typeof v.reset=="function"&&v.reset()}},[m,a?.src?.file,a.onError,g,d]),C.useEffect(()=>{const y=i.current;if(!y||!!m&&(typeof m.MediaPlayer=="function"||typeof m.MediaPlayer?.create=="function"||typeof m.MediaPlayerFactory=="function"))return;const v=()=>{const z=y.duration,j=!Number.isFinite(z)||z===1/0,L=j?Number.isFinite(z)&&z>0:!1;d({isLive:j,isDvr:L})};return y.addEventListener("loadedmetadata",v),y.addEventListener("durationchange",v),v(),()=>{y.removeEventListener("loadedmetadata",v),y.removeEventListener("durationchange",v)}},[m,d]),C.useEffect(()=>(f(i.current),()=>f(null)),[f]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=p?.playbackRate;typeof S=="number"&&(y.playbackRate=S,d({playbackRate:S}))},[p]),C.useEffect(()=>{const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=50,v=16,z=1.2,j=40,O=-Math.max(1,Math.round(S/(v*z))),A=V=>{if(V.cues)for(let N=0;N<V.cues.length;N+=1){const tt=V.cues[N];tt.line=O,tt.lineAlign="center"}},k=V=>{if(!V.cues)return;const N=y.getBoundingClientRect(),tt=N.width>0?j*2*100/N.width:0,lt=Math.max(10,Math.min(100,100-tt));for(let ot=0;ot<V.cues.length;ot+=1){const I=V.cues[ot];I.size=lt,I.position=50,I.align="center"}},G=V=>{A(V),k(V)},P=Array.from(y.querySelectorAll("track")),_=V=>{const N=V.currentTarget;N?.track&&G(N.track)};P.forEach(V=>{V.addEventListener("load",_),V.track&&G(V.track)});const F=new ResizeObserver(()=>{P.forEach(V=>{V.track&&k(V.track)})});return F.observe(y),()=>{P.forEach(V=>{V.removeEventListener("load",_)}),F.disconnect()}},[p,a.src?.vtt]),Qr(i,d,c.isSeeked),C.useEffect(()=>{const y=a.src?.vtt??[],S=y.length>0,v=y.findIndex(j=>j.default),z=v>=0?v:0;d({hasSubtitle:S,isSubtitle:!1,subTitleIdx:z})},[a.src?.vtt,d]),C.useEffect(()=>{if(!c.isSubtitle)return;const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=new Map,v=[],z=async(L,O)=>{try{const A=await fetch(O,{mode:"cors"});if(!A.ok)return;const k=await A.blob(),G=URL.createObjectURL(k);v.push(G),S.set(L,L.src),L.src=G}catch{}},j=Array.from(y.querySelectorAll("track"));return j.forEach(L=>{L.src&&z(L,L.src)}),()=>{j.forEach(L=>{const O=S.get(L);O&&(L.src=O)}),v.forEach(L=>URL.revokeObjectURL(L))}},[a.src?.vtt,c.subTitleIdx,c.isSubtitle]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=Array.from(y.querySelectorAll("track")),v=y.textTracks;if((!v||v.length===0)&&S.length===0)return;const z=c.subTitleIdx,j=c.isSubtitle,L=()=>{if(S.length>0){S.forEach(A=>{A.track&&(A.default=!1,A.track.mode="disabled")}),S.forEach((A,k)=>{A.track&&j&&k===z&&(A.default=!0,A.track.mode="showing")});return}for(let A=0;A<v.length;A+=1)v[A].mode="disabled";j&&v[z]&&(v[z].mode="showing")};L();const O=()=>{L()};return S.forEach(A=>{A.addEventListener("load",O)}),()=>{S.forEach(A=>{A.removeEventListener("load",O)})}},[c.isSubtitle,c.subTitleIdx,a.src?.vtt]),C.useEffect(()=>{const y=i.current;y&&p.autostart&&y.play().catch(S=>{console.log(S),y.muted=!0,y.play()})},[p.autostart]),C.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&c.hasSubtitle&&d({isSubtitle:!!S})},1e3)},[c.hasSubtitle,d]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:p?.autostart,muted:p?.muted,loop:p?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:a.src.poster?c.initPlay?"transparent":`url(${a.src.poster}) center / ${p?.objectFit??"contain"} no-repeat`:void 0,objectFit:p?.objectFit??"contain"},children:a.src.vtt?.map(y=>x.jsx("track",{kind:"subtitles",srcLang:y.id,label:y.label,src:y.src,default:y.default},`${y.id}-${y.src}`))})})}function P3(a){const i=C.useRef(null),[s,o]=qt(),{setVideoElement:c}=$t(),d=a.options;return C.useEffect(()=>{const f=i.current,g=a?.src?.file;!f||!g||(f.src=g)},[a?.src?.file]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=m=>{a.onError&&a.onError(m)};return f.addEventListener("error",g),()=>{f.removeEventListener("error",g)}},[a.onError]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=()=>{const m=f.duration,p=!Number.isFinite(m)||m===1/0,y=p?Number.isFinite(m)&&m>0:!1;o({isLive:p,isDvr:y})};return f.addEventListener("loadedmetadata",g),f.addEventListener("durationchange",g),g(),()=>{f.removeEventListener("loadedmetadata",g),f.removeEventListener("durationchange",g)}},[o]),C.useEffect(()=>(c(i.current),()=>c(null)),[c]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=d?.playbackRate;typeof g=="number"&&(f.playbackRate=g,o({playbackRate:g}))},[d,o]),C.useEffect(()=>{const f=i.current;if(!f||!a.src?.vtt?.length)return;const g=50,m=16,p=1.2,y=40,v=-Math.max(1,Math.round(g/(m*p))),z=G=>{if(G.cues)for(let P=0;P<G.cues.length;P+=1){const _=G.cues[P];_.line=v,_.lineAlign="center"}},j=G=>{if(!G.cues)return;const P=f.getBoundingClientRect(),_=P.width>0?y*2*100/P.width:0,F=Math.max(10,Math.min(100,100-_));for(let V=0;V<G.cues.length;V+=1){const N=G.cues[V];N.size=F,N.position=50,N.align="center"}},L=G=>{z(G),j(G)},O=Array.from(f.querySelectorAll("track")),A=G=>{const P=G.currentTarget;P?.track&&L(P.track)};O.forEach(G=>{G.addEventListener("load",A),G.track&&L(G.track)});const k=new ResizeObserver(()=>{O.forEach(G=>{G.track&&j(G.track)})});return k.observe(f),()=>{O.forEach(G=>{G.removeEventListener("load",A)}),k.disconnect()}},[d,a.src?.vtt]),Qr(i,o,s.isSeeked),C.useEffect(()=>{const f=a.src?.vtt??[],g=f.length>0,m=f.findIndex(y=>y.default),p=m>=0?m:0;o({hasSubtitle:g,isSubtitle:!1,subTitleIdx:p})},[a.src?.vtt,o]),C.useEffect(()=>{if(!s.isSubtitle)return;const f=i.current;if(!f||!a.src?.vtt?.length)return;const g=new Map,m=[],p=async(S,v)=>{try{const z=await fetch(v,{mode:"cors"});if(!z.ok)return;const j=await z.blob(),L=URL.createObjectURL(j);m.push(L),g.set(S,S.src),S.src=L}catch{}},y=Array.from(f.querySelectorAll("track"));return y.forEach(S=>{S.src&&p(S,S.src)}),()=>{y.forEach(S=>{const v=g.get(S);v&&(S.src=v)}),m.forEach(S=>URL.revokeObjectURL(S))}},[a.src?.vtt,s.subTitleIdx,s.isSubtitle]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=Array.from(f.querySelectorAll("track")),m=f.textTracks;if((!m||m.length===0)&&g.length===0)return;const p=s.subTitleIdx,y=s.isSubtitle,S=()=>{if(g.length>0){g.forEach(z=>{z.track&&(z.default=!1,z.track.mode="disabled")}),g.forEach((z,j)=>{z.track&&y&&j===p&&(z.default=!0,z.track.mode="showing")});return}for(let z=0;z<m.length;z+=1)m[z].mode="disabled";y&&m[p]&&(m[p].mode="showing")};S();const v=()=>{S()};return g.forEach(z=>{z.addEventListener("load",v)}),()=>{g.forEach(z=>{z.removeEventListener("load",v)})}},[s.isSubtitle,s.subTitleIdx,a.src?.vtt]),C.useEffect(()=>{const f=i.current;f&&d.autostart&&f.play().catch(g=>{console.log(g),f.muted=!0,f.play()})},[d.autostart]),C.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const g=localStorage.getItem("vpeSubtitleEnabled");g!==null&&s.hasSubtitle&&o({isSubtitle:!!g})},1e3)},[s.hasSubtitle,o]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:d?.autostart,muted:d?.muted,loop:d?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:a.src.poster?s.initPlay?"transparent":`url(${a.src.poster}) center / ${d?.objectFit??"contain"} no-repeat`:void 0,objectFit:d?.objectFit??"contain"},children:a.src.vtt?.map(f=>x.jsx("track",{kind:"subtitles",srcLang:f.id,label:f.label,src:f.src,default:f.default},`${f.id}-${f.src}`))})})}function J3(a){return x.jsx(X3,{...a})}function I3(a){return x.jsx(Q3,{...a})}function W3(a){return x.jsx(P3,{...a})}function $3(a){const i=C.useRef(null),s=C.useRef(null),o=a.hlsLib;return C.useEffect(()=>{const c=i.current,d=a?.src?.file;if(!(!c||!d)){if(o?.isSupported?.()){const f=new o({startLevel:0,autoLevelCapping:0});return f.attachMedia(c),f.on(o.Events.MEDIA_ATTACHED,()=>{f.loadSource(d)}),f.on(o.Events.MANIFEST_PARSED,()=>{f.currentLevel=0,f.autoLevelEnabled=!1}),f.on(o.Events.ERROR,(g,m)=>{a.onError&&a.onError({evt:g,data:m})}),()=>{f.destroy()}}c.src=d}},[o,a?.src?.file,a.onError]),C.useEffect(()=>{const c=i.current;if(!c||!a.isHovering||typeof a.previewTime!="number")return;s.current=a.previewTime;const d=()=>{const g=s.current;if(typeof g!="number"||Number.isNaN(g))return;const m=c.duration,p=Math.max(0,Math.min(g,Number.isFinite(m)?m:g));Math.abs(c.currentTime-p)>.25&&(c.currentTime=p),c.pause()};if(c.readyState>=1){d();return}const f=()=>d();return c.addEventListener("loadedmetadata",f,{once:!0}),()=>{c.removeEventListener("loadedmetadata",f)}},[a.isHovering,a.previewTime]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const tg=a=>{if(!a)return null;if(typeof a.MediaPlayer=="function"){const i=a.MediaPlayer();if(i?.create)return i.create()}if(a.MediaPlayer?.create)return a.MediaPlayer.create();if(typeof a.MediaPlayerFactory=="function"){const i=a.MediaPlayerFactory();if(i?.create)return i.create()}return null},eg=a=>{if(!a.length)return 0;let i=a[0];for(let s=1;s<a.length;s+=1){const o=a[s],c=o?.bitrate??o?.bandwidth??Number.MAX_SAFE_INTEGER,d=i?.bitrate??i?.bandwidth??Number.MAX_SAFE_INTEGER;c<d&&(i=o)}return typeof i?.qualityIndex=="number"?i.qualityIndex:0};function ng(a){const i=C.useRef(null),s=C.useRef(null),o=a.dashLib;return C.useEffect(()=>{const c=i.current,d=a?.src?.file;if(!c||!d)return;const f=tg(o);if(!f){c.src=d;return}typeof f.initialize=="function"?f.initialize(c,d,!1):typeof f.attachView=="function"&&typeof f.attachSource=="function"?(f.attachView(c),f.attachSource(d)):c.src=d;const g=()=>{const v=typeof f.getBitrateInfoListFor=="function"?f.getBitrateInfoListFor("video"):[],z=eg(v);typeof f.setAutoSwitchQualityFor=="function"&&f.setAutoSwitchQualityFor("video",!1),typeof f.setQualityFor=="function"&&f.setQualityFor("video",z)},m=(v,z)=>{a.onError&&a.onError({evt:v,data:z})},p=o?.MediaPlayer?.events??o?.MediaPlayer?.Events??o?.events??o?.Events??void 0,y=[],S=(v,z)=>{!v||typeof f.on!="function"||(f.on(v,z),y.push(()=>{typeof f.off=="function"&&f.off(v,z)}))};return S(p?.STREAM_INITIALIZED??p?.MANIFEST_LOADED,g),S(p?.ERROR,m),()=>{y.forEach(v=>v()),typeof f.reset=="function"&&f.reset()}},[o,a?.src?.file,a.onError]),C.useEffect(()=>{const c=i.current;if(!c||!a.isHovering||typeof a.previewTime!="number")return;s.current=a.previewTime;const d=()=>{const g=s.current;if(typeof g!="number"||Number.isNaN(g))return;const m=c.duration,p=Math.max(0,Math.min(g,Number.isFinite(m)?m:g));Math.abs(c.currentTime-p)>.25&&(c.currentTime=p),c.pause()};if(c.readyState>=1){d();return}const f=()=>d();return c.addEventListener("loadedmetadata",f,{once:!0}),()=>{c.removeEventListener("loadedmetadata",f)}},[a.isHovering,a.previewTime]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function ag(a){const i=C.useRef(null),s=C.useRef(null);return C.useEffect(()=>{const o=i.current,c=a?.src?.file;!o||!c||(o.src=c)},[a?.src?.file]),C.useEffect(()=>{const o=i.current;if(!o)return;const c=d=>{a.onError&&a.onError(d)};return o.addEventListener("error",c),()=>{o.removeEventListener("error",c)}},[a.onError]),C.useEffect(()=>{const o=i.current;if(!o||!a.isHovering||typeof a.previewTime!="number")return;s.current=a.previewTime;const c=()=>{const f=s.current;if(typeof f!="number"||Number.isNaN(f))return;const g=o.duration,m=Math.max(0,Math.min(f,Number.isFinite(g)?g:f));Math.abs(o.currentTime-m)>.25&&(o.currentTime=m),o.pause()};if(o.readyState>=1){c();return}const d=()=>c();return o.addEventListener("loadedmetadata",d,{once:!0}),()=>{o.removeEventListener("loadedmetadata",d)}},[a.isHovering,a.previewTime]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function Ff(a="(max-width: 768px)"){const[i,s]=C.useState({isMobile:!1,isPortrait:!1});return C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=window.matchMedia(a),c=window.matchMedia("(orientation: portrait)"),d=()=>s({isMobile:o.matches,isPortrait:c.matches});return d(),o.addEventListener("change",d),c.addEventListener("change",d),()=>{o.removeEventListener("change",d),c.removeEventListener("change",d)}},[a]),i}class ig{formatTime(i){if(!i)return"00:00";const s=Math.floor(i),o=String(Math.floor(s/3600)).padStart(2,"0"),c=String(Math.floor(s%3600/60)).padStart(2,"0"),d=String(s%60).padStart(2,"0");return o!=="00"?`${o}:${c}:${d}`:`${c}:${d}`}}const Hi=new ig,Na=a=>Math.max(0,Math.min(100,a));function Kf({color:a="#31ec2a",src:i,hlsLib:s,dashLib:o,options:c,onError:d}){const{isMobile:f}=Ff(),[g,m]=qt(),{seekTo:p}=$t(),y=o,S=typeof i?.file=="string"?i.file.split("?")[0].toLowerCase():"",v=S.endsWith(".mpd"),z=S.endsWith(".mp4"),[j,L]=C.useState(!1),[O,A]=C.useState(0),[k,G]=C.useState(0),[P,_]=C.useState(null),[F,V]=C.useState(null),[N,tt]=C.useState(null),lt=C.useRef(null),ot=C.useRef(null),I=C.useRef(null),ut=a||"#31ec2a",dt="5px",it=g.duration??0,Q=it>0?it:0,U=Q>0?(g.currentTime??0)/Q*100:0,K=Q>0?(g.buffered??0)/Q*100:0,nt=!!g.isLive,Bt=(nt&&it>0?Math.abs(it-(g.currentTime??0))<30:!1)?100:Na(O),E=P??U,X=F??E,J=N??E,W=Q>0?Q*(E/100):0,ct=P!==null,mt=g.videoWidth??0,Tt=g.videoHeight??0,te=mt>0&&Tt>0,_t=te?`${mt}/${Tt}`:"16/9",pa=te&&mt>Tt?"160px":"55px",Nn=C.useCallback(ee=>{const me=lt.current;if(!me)return null;const Ae=me.getBoundingClientRect();if(Ae.width<=0)return null;const nl="clientX"in ee?ee.clientX:0;return Math.min(Math.max(nl-Ae.left,0),Ae.width)/Ae.width*100},[]),el=C.useCallback(ee=>{const me=lt.current;if(!me)return;const Ae=me.getBoundingClientRect();if(Ae.width<=0)return;const nl=xs=>{const pu=xs>0?xs/2/Ae.width*100:0,le=Math.max(0,Math.min(50,pu)),gu=Math.max(le,100-le);return{minPercent:le,maxPercent:gu}},al=ot.current?.offsetWidth??0,Pa=nl(al),ga=Nn(ee);if(ga===null)return;_(Na(ga));const Ja=Math.max(Pa.minPercent,Math.min(Pa.maxPercent,ga));tt(Ja),V(Ja)},[Nn]),Ss=C.useCallback(()=>{_(null),V(null),tt(null)},[]);return C.useEffect(()=>{j||(A(U),G(K))},[j,U,K]),x.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:el,onMouseLeave:Ss,children:x.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":ut,"--seekSliderThumbColor":ut,"--rlMargin":dt},children:[x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:lt,children:x.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[ct&&!g.isLive&&!f&&x.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:_t,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Na(J)}%`,transform:"translateX(-50%)",maxWidth:pa},ref:ot,children:x.jsx(x.Fragment,{children:v&&y?x.jsx(ng,{src:i,dashLib:y,options:c,onError:d,previewTime:W,isHovering:ct}):z?x.jsx(ag,{src:i,options:c,onError:d,previewTime:W,isHovering:ct}):s?x.jsx($3,{src:i,hlsLib:s,options:c,onError:d,previewTime:W,isHovering:ct}):null})}),ct&&!g.isLive&&x.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Na(X)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:I,children:Hi.formatTime(W)})]})}),x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:x.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${k<1?1:k>98?100:k}%`}})}),x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:x.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${Bt<1?1:Bt}%`},children:x.jsx("div",{style:{position:"relative"},children:x.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),x.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:x.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:Bt,onPointerDown:ee=>{if(nt)return;m({isSeeked:!0}),L(!0);const me=Nn(ee);me!==null&&A(Na(me))},onPointerUp:()=>{if(nt)return;L(!1);const ee=Q*(Bt/100);p(ee)},onChange:ee=>{if(nt)return;const me=Number(ee.currentTarget.value),Ae=Number.isNaN(me)?0:me;A(Na(Ae))},disabled:nt||Q===0})})]})})}var Qf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Pf=oa.createContext&&oa.createContext(Qf),lg=["attr","size","title"];function sg(a,i){if(a==null)return{};var s=rg(a,i),o,c;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(c=0;c<d.length;c++)o=d[c],!(i.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function rg(a,i){if(a==null)return{};var s={};for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){if(i.indexOf(o)>=0)continue;s[o]=a[o]}return s}function Jl(){return Jl=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Jl.apply(this,arguments)}function Jf(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);i&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,o)}return s}function Il(a){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?Jf(Object(s),!0).forEach(function(o){og(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Jf(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function og(a,i,s){return i=ug(i),i in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s,a}function ug(a){var i=cg(a,"string");return typeof i=="symbol"?i:i+""}function cg(a,i){if(typeof a!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function If(a){return a&&a.map((i,s)=>oa.createElement(i.tag,Il({key:s},i.attr),If(i.child)))}function Ht(a){return i=>oa.createElement(fg,Jl({attr:Il({},a.attr)},i),If(a.child))}function fg(a){var i=s=>{var{attr:o,size:c,title:d}=a,f=sg(a,lg),g=c||s.size||"1em",m;return s.className&&(m=s.className),a.className&&(m=(m?m+" ":"")+a.className),oa.createElement("svg",Jl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,f,{className:m,style:Il(Il({color:a.color||s.color},s.style),a.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),d&&oa.createElement("title",null,d),a.children)};return Pf!==void 0?oa.createElement(Pf.Consumer,null,s=>i(s)):i(Qf)}function dg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 14H4V5h16v12z"},child:[]},{tag:"path",attr:{d:"M6 8.25h8v1.5H6zM16.5 9.75H18v-1.5h-1.5V7H15v4h1.5zM10 12.25h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},child:[]}]})(a)}function hg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"},child:[]}]})(a)}function mg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(a)}function pg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H6.83l8 8H20v2h-3.17l4.93 4.93c.15-.28.24-.59.24-.93V6c0-1.1-.9-2-2-2zM1.04 3.87l1.2 1.2C2.09 5.35 2 5.66 2 6v12c0 1.1.9 2 2 2h13.17l2.96 2.96 1.41-1.41L2.45 2.45 1.04 3.87zM8 12v2H4v-2h4zm6 4.83V18H4v-2h9.17l.83.83z"},child:[]}]})(a)}function gg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8h-2z"},child:[]},{tag:"path",attr:{d:"M10.86 15.94v-4.27h-.09L9 12.3v.69l1.01-.31v3.26zM12.25 13.44v.74c0 1.9 1.31 1.82 1.44 1.82.14 0 1.44.09 1.44-1.82v-.74c0-1.9-1.31-1.82-1.44-1.82-.14 0-1.44-.09-1.44 1.82zm2.04-.12v.97c0 .77-.21 1.03-.59 1.03s-.6-.26-.6-1.03v-.97c0-.75.22-1.01.59-1.01.38-.01.6.26.6 1.01z"},child:[]}]})(a)}function Wf(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},child:[]}]})(a)}function $f(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(a)}function yg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 5V1l-5 5 5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6h-2c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"},child:[]},{tag:"path",attr:{d:"M10.89 16h-.85v-3.26l-1.01.31v-.69l1.77-.63h.09V16zM15.17 14.24c0 .32-.03.6-.1.82s-.17.42-.29.57-.28.26-.45.33-.37.1-.59.1-.41-.03-.59-.1-.33-.18-.46-.33-.23-.34-.3-.57-.11-.5-.11-.82v-.74c0-.32.03-.6.1-.82s.17-.42.29-.57.28-.26.45-.33.37-.1.59-.1.41.03.59.1.33.18.46.33.23.34.3.57.11.5.11.82v.74zm-.85-.86c0-.19-.01-.35-.04-.48s-.07-.23-.12-.31-.11-.14-.19-.17-.16-.05-.25-.05-.18.02-.25.05-.14.09-.19.17-.09.18-.12.31-.04.29-.04.48v.97c0 .19.01.35.04.48s.07.24.12.32.11.14.19.17.16.05.25.05.18-.02.25-.05.14-.09.19-.17.09-.19.11-.32.04-.29.04-.48v-.97z"},child:[]}]})(a)}function vg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z"},child:[]}]})(a)}function t0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"},child:[]}]})(a)}function e0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02S15.48 8.71 14 7.97zM3 9v6h4l5 5V4L7 9H3z"},child:[]}]})(a)}function n0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 9v6h4l5 5V4l-5 5H7z"},child:[]}]})(a)}function a0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z"},child:[]}]})(a)}function i0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"},child:[]}]})(a)}function bg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"},child:[]}]})(a)}function Wl(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(a)}function Ui(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(a)}function Sg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(a)}function xg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"},child:[]}]})(a)}function Tg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(a)}function l0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(a)}function un(a){const i=a.noBg??!1;return x.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:i?"obtnNoBg":"obtn",children:a.children})}function Eg(a){const i=a.noPadding??!1,s=a.cap??0;return x.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:i?0:"0.5rem",paddingRight:i?0:"0.5rem",gap:s||0,position:"relative"},className:a.noBg?"obtn-group-nobg":"obtn-group",children:a.children})}function $l(a){return x.jsx(Eg,{...a,children:a.children})}const $e={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},Mg={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},s0={border:0,background:"transparent"},Ag={display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderBottom:"1px solid rgb(205 205 205 / 8%)",position:"relative"},zg={flex:1},Cg={display:"flex",alignItems:"center",gap:6},wg={padding:0,display:"flex",alignItems:"center",gap:6},ts={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},tn={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Ln={flex:1,justifyContent:"start",display:"flex"},Pr={display:"flex",alignItems:"center",gap:5},es={fontSize:"0.9rem",opacity:.6};function r0({size:a=25,weight:i="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[d]=qt(),{play:f,pause:g}=$t();return x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isPlaying?o?.pause??"일시정지":o?.play??"재생"})}),x.jsx("button",{type:"button",onClick:d.isPlaying?g:f,style:$e,children:d.isEnded?x.jsx(l0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(x.Fragment,{children:d.isPlaying?x.jsx(Wf,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx($f,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})]})})}function Dg({size:a=80,weight:i="fill",color:s="#ffffff",isPortrait:o=!1,isMobile:c=!1}){const[d]=qt(),[f,g]=C.useState(0),{play:m,pause:p}=$t();return C.useEffect(()=>{g(y=>y+1)},[d.isPlaying]),x.jsx("div",{className:`vpe-big-play-btn ${d.isEnded?"":"center-play-btn-anim"}`,children:x.jsx($l,{noPadding:!0,children:x.jsx(un,{children:x.jsx("button",{type:"button",style:Mg,onClick:()=>{(c||o)&&(d.isPlaying?p():m())},children:d.isEnded?x.jsx(l0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(x.Fragment,{children:d.isPlaying?x.jsx(Wf,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx($f,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})},f)}function Rg({size:a=25,weight:i="fill",color:s="#ffffff",pos:o="left",options:c={}}){const[d]=qt(),{seekTo:f}=$t(),g=typeof c?.skipSeconds=="number"?c.skipSeconds:10,m=()=>{if(d.isLive&&!d.isDvr)return;const y=(d.currentTime??0)-g;f(Math.max(0,y))};return x.jsx(un,{noBg:!0,children:x.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:x.jsx("button",{type:"button",onClick:m,style:$e,children:x.jsx(yg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function Lg({size:a=25,weight:i="fill",color:s="#ffffff",pos:o="left",options:c={}}){const[d]=qt(),{seekTo:f}=$t(),g=typeof c?.skipSeconds=="number"?c.skipSeconds:10,m=()=>{if(d.isLive&&!d.isDvr)return;const p=d.currentTime??0,y=d.duration??0,S=p+g,v=Number.isFinite(y)&&y>0?Math.min(S,y):Math.max(0,S);f(v)};return x.jsx(un,{noBg:!0,children:x.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:x.jsx("button",{type:"button",onClick:m,style:$e,children:x.jsx(gg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function Bg({color:a="#ffffff"}){const[i]=qt();return x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:a},children:Hi.formatTime(i.currentTime??0)||0})}function Vg({color:a="#ffffff"}){const[i]=qt();return x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:a},children:Hi.formatTime(i.duration??0)||0})}function jg({color:a="#ffffff"}){const[i]=qt(),{seekTo:s}=$t(),c=(i.bufferedEnd??i.buffered??0)||i.duration||0,d=!!i.isLive,g=d&&c>0?Math.abs((i.currentTime??0)-c)<10:d,m=()=>{d&&(!c||Number.isNaN(c)||s(Math.max(0,c-.1)))};return x.jsx(x.Fragment,{children:i.isLive?x.jsxs("button",{type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[x.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:g?"#ff0000":a,display:"inline-block"}}),x.jsx("span",{style:{fontWeight:"bold",fontSize:"0.9rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:"LIVE"})]}):x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Hi.formatTime(i.currentTime??0)||0}),x.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),x.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Hi.formatTime(i.duration??0)||0})]})})}function Og({text:a={},color:i="#ffffff"}){const[s]=qt(),{selectQualityLevel:o}=$t(),c=C.useRef(!1),d=s.currentLevel??-1,f=s.levels?.find(m=>m.index===d),g=s.isAutoLevel?a.auto:f?.name??(f?.height?`${f.height}p`:`${d}`);return x.jsxs("div",{style:{position:"relative"},children:[c.current&&x.jsx("div",{style:{position:"absolute",width:"100px",height:"auto",backgroundColor:"rgba(0, 0, 0, 0.85)",borderRadius:"5px",padding:"1rem 0.8rem",bottom:"80px",left:"-50%",fontSize:"0.9rem",color:"#ffffff",zIndex:99999},children:x.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[x.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(-1)},children:x.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:a?.auto??"Auto"})}),[...s.levels??[]].sort((m,p)=>(p.height??0)-(m.height??0)).map(m=>{const p=m.name??(m.height?`${m.height}p`:`${m.index}`);return x.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(m.index),c.current=!1},children:x.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:p})},m.index)})]})}),x.jsx("button",{type:"button",onClick:()=>{c.current=!c.current},style:{...$e,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${i}`},children:x.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:g})})]})}function Ng({color:a="#ffffff",click:i=()=>{},title:s=""}){return x.jsx(x.Fragment,{children:s&&x.jsx($l,{children:x.jsx("button",{type:"button",onClick:i,style:{border:0,background:"transparent",lineHeight:"100%",display:"flex",alignItems:"center",height:"48px"},children:x.jsxs("div",{className:"defObj",style:{paddingLeft:"0.5rem",paddingRight:"0.2rem",maxWidth:"15rem",lineHeight:"1rem",display:"flex",alignItems:"center",color:`${a}`},children:[x.jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:s}),x.jsx("div",{style:{paddingTop:"2px"},children:x.jsx(Wl,{size:15})})]})})})})}function o0(a){let i=a.align=="left"?"start":a.align=="end"?"end":"center";return x.jsx("div",{style:{flex:1,display:"flex",justifyContent:i,alignItems:"center"},children:a.children})}function Hg(a){return Ht({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.577 8.9v.03h1.828V5.898h-.062a47 47 0 0 0-1.766 3.001z"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm2.372 3.715.435-.714h1.71v3.93h.733v.957h-.733V11H5.405V9.888H2.5v-.971c.574-1.077 1.225-2.142 1.872-3.202m7.73-.714h1.306l-2.14 2.584L13.5 11h-1.428l-1.679-2.624-.615.7V11H8.59V5.001h1.187v2.686h.057L12.102 5z"},child:[]}]})(a)}function Ug(a){return Ht({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.53 5.968h-.843v4.06h.843c1.117 0 1.622-.667 1.622-2.02 0-1.354-.51-2.04-1.622-2.04"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm5.396 3.001V11H6.209V8.43H3.687V11H2.5V5.001h1.187v2.44h2.522V5h1.187zM8.5 11V5.001h2.188c1.824 0 2.685 1.09 2.685 2.984C13.373 9.893 12.5 11 10.69 11z"},child:[]}]})(a)}function _g({size:a=25,weight:i="fill",color:s="#ffffff",options:o={},text:c={},pos:d="left"}){const[f,g]=qt(),{videoEl:m}=$t(),p=C.useRef(0),y=C.useRef(""),S=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),v=()=>{const O=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return O instanceof HTMLElement?O:null},z=O=>{if(O)if(O.classList.contains("vpe-ios-fullscreen")){g({isFullscreen:!1}),O.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=y.current;const A=document.getElementById("vpeIosFullscreenTmpDiv");A&&A.remove(),window.scrollY=p.current}else{g({isFullscreen:!0}),O.classList.add("vpe-ios-fullscreen"),p.current=window.scrollY,y.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const A=document.createElement("div");A.id="vpeIosFullscreenTmpDiv",A.style.height="120dvh",document.body.appendChild(A),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},j=()=>{if(!m)return!1;const O=m.webkitEnterFullscreen;return typeof O!="function"?!1:(O.call(m),!0)},L=()=>{if(S)if(o.iosFullscreenNativeMode){if(j())return}else{const A=document.querySelector(".vpe-root-wrap");z(A);return}if(document.fullscreenElement){document.exitFullscreen?.();return}const O=v();O&&O.requestFullscreen?.()};return C.useEffect(()=>{const O=()=>{S&&!o.iosFullscreenNativeMode||g({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",O),O(),()=>{document.removeEventListener("fullscreenchange",O)}},[g]),x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${d}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:f.isFullscreen?c?.fullOff??"전체화면 해제":c?.fullOn??"전체화면"})}),x.jsx("button",{type:"button",onClick:L,style:$e,children:f.isFullscreen?x.jsx(xg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(Tg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})}function Gg({size:a=25,color:i="#ffffff",text:s={},pos:o="left"}){const[c]=qt(),{toggleSubtitle:d}=$t();return x.jsx(x.Fragment,{children:c.hasSubtitle&&x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:c.isSubtitle?s?.captionOff??"자막끄기":s?.captionOn??"자막켜기"})}),x.jsx("button",{type:"button",onClick:d,style:$e,children:c.isSubtitle?x.jsx(t0,{style:{fontSize:a,color:i,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(pg,{style:{fontSize:a,color:i,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function kg({size:a=25,weight:i="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[d]=qt(),{toggleMute:f}=$t(),g=d.isVolume??0;return x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),x.jsx("button",{type:"button",onClick:f,style:$e,children:x.jsxs(x.Fragment,{children:[(g===0||d.isMuted)&&x.jsx(a0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),g>=5&&g<=10&&!d.isMuted&&x.jsx(n0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),g>=11&&g<=50&&!d.isMuted&&x.jsx(e0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),g>=51&&!d.isMuted&&x.jsx(i0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]})})}function Yg({size:a=25,weight:i="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[d]=qt(),{setVolume:f,toggleMute:g}=$t(),m=d.isVolume??0,p=d.isMuted?0:m;return x.jsxs("div",{className:"VolumeBtnWrap",children:[x.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),x.jsx("button",{type:"button",onClick:g,style:$e,children:x.jsxs(x.Fragment,{children:[(m===0||d.isMuted)&&x.jsx(a0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=5&&m<=10&&!d.isMuted&&x.jsx(n0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=11&&m<=50&&!d.isMuted&&x.jsx(e0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=51&&!d.isMuted&&x.jsx(i0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]}),x.jsx("div",{className:"vslideWrap",children:x.jsx("input",{type:"range",min:0,max:100,value:p,onChange:y=>{const S=Number(y.currentTarget.value);f(Number.isNaN(S)?0:S)},className:"VolumSlide"})})]})}function qg({color:a="#ffffff",size:i=25,text:s={},pos:o="left"}){const[c,d]=qt(),f=c.isHd,g=c.is4k;return x.jsx(x.Fragment,{children:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:s?.setting??"설정"})}),x.jsxs("button",{type:"button",onClick:()=>{d({isSettingModal:!c.isSettingModal})},style:$e,children:[(f||g)&&x.jsx("div",{style:{position:"absolute",right:"-4px",top:"-4px",backgroundColor:"#ffffff",width:"14px",height:"14px"},children:f&&!g&&x.jsx(Ug,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})||g&&x.jsx(Hg,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})}),x.jsx(mg,{style:{fontSize:i,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})]})})})}function Xg({color:a="#ffffff",size:i=25,text:s={},pos:o="left"}){const{togglePictureInPicture:c}=$t();return x.jsx(x.Fragment,{children:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:s?.miniPlayer??"미니플레이어"})}),x.jsx("button",{type:"button",onClick:()=>{c()},style:$e,children:x.jsx(hg,{style:{fontSize:i,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function Zg(a){const{useTouch:i}=$t();return x.jsx("div",{className:"absolute z-[2] h-full w-full bg-neutral-900/20 flex items-center justify-center",style:{background:`url(${a.poster}) center / ${a.options?.objectFit||"contain"} no-repeat`},onClick:()=>{i()},onTouchStart:()=>{i()},children:x.jsx("div",{children:x.jsx($l,{noPadding:!0,children:x.jsx(r0,{size:50})})})})}function u0(a){const[i]=qt(),{poster:s,options:o}=a,c={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${s}) center / ${o?.objectFit||"contain"} no-repeat`};return x.jsx(x.Fragment,{children:i.isLoading&&x.jsx("div",{style:c,children:x.jsx("div",{className:"ncplayer-spinner"})})})}function Fg(a){const[i,s]=qt(),{playBackRate:o,selectQualityLevel:c}=$t(),{text:d}=a,f=a.vtt??a.src?.vtt??[],g=i.currentLevel??-1,m=i.levels?.find(A=>A.index===g),p=i.isAutoLevel?m?.height?d.auto+` (${m?.height}p)`:"":m?.name??(m?.height?`${m.height}p`:`${g}`),[y,S]=C.useState(0),[v,z]=C.useState("forward"),[j,L]=C.useState(!1),O=C.useCallback(A=>{z(A>y?"forward":"back"),S(A),L(!0)},[y]);return C.useEffect(()=>{if(!j)return;const A=window.setTimeout(()=>{L(!1)},200);return()=>window.clearTimeout(A)},[j]),x.jsx("div",{className:"vpe-setting-modal",children:x.jsxs("div",{className:"vpe-setting-content",children:[x.jsxs("div",{style:Ag,children:[x.jsxs("div",{style:zg,children:[y===0&&x.jsx("div",{children:d.setting}),y>0&&x.jsx("div",{style:Cg,children:x.jsx("div",{children:x.jsxs("button",{onClick:()=>{O(0)},type:"button",style:{...s0,...wg},children:[x.jsx(bg,{style:{fontSize:"12px"},color:"#ffffff"}),x.jsxs("div",{children:[y==1&&d.quality,y==2&&d.playbackRate,y==3&&d.captions]})]})})})]}),x.jsx("div",{children:x.jsx("button",{type:"button",style:s0,onClick:()=>{s({isSettingModal:!1})},children:x.jsx(Sg,{size:25,color:"#ffffff"})})})]}),x.jsxs("div",{className:"vpe-modal-menu",children:[y===0&&x.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:[p&&x.jsxs("button",{type:"button",style:tn,className:"vpe-menu-item",onClick:()=>{O(1)},children:[x.jsx("div",{children:x.jsx(dg,{size:25,color:"#ffffff"})}),x.jsx("div",{style:Ln,children:d.quality}),x.jsxs("div",{style:Pr,children:[x.jsx("span",{style:es,children:p}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{O(2)},children:[x.jsx("div",{children:x.jsx(vg,{size:25,color:"#ffffff"})}),x.jsx("div",{style:Ln,children:d.playbackRate}),x.jsxs("div",{style:Pr,children:[x.jsxs("span",{style:es,children:[i.playbackRate,"x"]}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{O(3)},children:[x.jsx("div",{children:x.jsx(t0,{size:25,color:"#ffffff"})}),x.jsx("div",{style:Ln,children:d.captions}),x.jsxs("div",{style:Pr,children:[x.jsx(x.Fragment,{children:i.isSubtitle?x.jsx(x.Fragment,{children:f.map((A,k)=>x.jsx("span",{children:i.subTitleIdx===k&&x.jsx("span",{style:es,children:A.label})},`${A.id}-${A.src}`))}):x.jsx("span",{style:es,children:d.notUse})}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},y),y===1&&x.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:[x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{c("auto")},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.isAutoLevel?"#ffffff":"transparent"})}),x.jsx("div",{style:Ln,children:d.auto})]}),[...i.levels??[]].sort((A,k)=>(k.height??0)-(A.height??0)).map(A=>{const k=A.name??(A.height?`${A.height}p`:`${A.index}`);return x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{c(A.index)},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:!i.isAutoLevel&&i.currentLevel===A.index?"#ffffff":"transparent"})}),x.jsx("div",{style:Ln,children:k})]},A.index)})]},y),y===2&&x.jsx("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:(a.options?.playRateSetting??[]).map(A=>x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(A),s({playbackRate:A}),O(0)},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.playbackRate===A?"#ffffff":"transparent"})}),x.jsxs("div",{style:Ln,children:[A,"x"]})]},A))},y),y===3&&x.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:[x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!1})},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.isSubtitle?"transparent":"#ffffff"})}),x.jsx("div",{style:Ln,children:d.notUse})]}),f.map((A,k)=>x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!0,subTitleIdx:k})},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.isSubtitle&&i.subTitleIdx===k?"#ffffff":"transparent"})}),x.jsx("div",{style:Ln,children:A.label})]},`${A.id}-${A.src}`))]},y)]})]})})}const Jr=C.createContext({});function Ir(a){const i=C.useRef(null);return i.current===null&&(i.current=a()),i.current}const Wr=typeof window<"u",c0=Wr?C.useLayoutEffect:C.useEffect,ns=C.createContext(null);function $r(a,i){a.indexOf(i)===-1&&a.push(i)}function to(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const cn=(a,i,s)=>s>i?i:s<a?a:s;let eo=()=>{};const fn={},f0=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function d0(a){return typeof a=="object"&&a!==null}const h0=a=>/^0[^.\s]+$/u.test(a);function no(a){let i;return()=>(i===void 0&&(i=a()),i)}const Oe=a=>a,Kg=(a,i)=>s=>i(a(s)),_i=(...a)=>a.reduce(Kg),Gi=(a,i,s)=>{const o=i-a;return o===0?1:(s-a)/o};class ao{constructor(){this.subscriptions=[]}add(i){return $r(this.subscriptions,i),()=>to(this.subscriptions,i)}notify(i,s,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,o);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const en=a=>a*1e3,Ne=a=>a/1e3;function m0(a,i){return i?a*(1e3/i):0}const p0=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,Qg=1e-7,Pg=12;function Jg(a,i,s,o,c){let d,f,g=0;do f=i+(s-i)/2,d=p0(f,o,c)-a,d>0?s=f:i=f;while(Math.abs(d)>Qg&&++g<Pg);return f}function ki(a,i,s,o){if(a===i&&s===o)return Oe;const c=d=>Jg(d,0,1,a,s);return d=>d===0||d===1?d:p0(c(d),i,o)}const g0=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,y0=a=>i=>1-a(1-i),v0=ki(.33,1.53,.69,.99),io=y0(v0),b0=g0(io),S0=a=>(a*=2)<1?.5*io(a):.5*(2-Math.pow(2,-10*(a-1))),lo=a=>1-Math.sin(Math.acos(a)),x0=y0(lo),T0=g0(lo),Ig=ki(.42,0,1,1),Wg=ki(0,0,.58,1),E0=ki(.42,0,.58,1),$g=a=>Array.isArray(a)&&typeof a[0]!="number",M0=a=>Array.isArray(a)&&typeof a[0]=="number",ty={linear:Oe,easeIn:Ig,easeInOut:E0,easeOut:Wg,circIn:lo,circInOut:T0,circOut:x0,backIn:io,backInOut:b0,backOut:v0,anticipate:S0},ey=a=>typeof a=="string",A0=a=>{if(M0(a)){eo(a.length===4);const[i,s,o,c]=a;return ki(i,s,o,c)}else if(ey(a))return ty[a];return a},as=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ny(a,i){let s=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function m(y){f.has(y)&&(p.schedule(y),a()),y(g)}const p={schedule:(y,S=!1,v=!1)=>{const j=v&&c?s:o;return S&&f.add(y),j.has(y)||j.add(y),y},cancel:y=>{o.delete(y),f.delete(y)},process:y=>{if(g=y,c){d=!0;return}c=!0,[s,o]=[o,s],s.forEach(m),s.clear(),c=!1,d&&(d=!1,p.process(y))}};return p}const ay=40;function z0(a,i){let s=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=as.reduce((G,P)=>(G[P]=ny(d),G),{}),{setup:g,read:m,resolveKeyframes:p,preUpdate:y,update:S,preRender:v,render:z,postRender:j}=f,L=()=>{const G=fn.useManualTiming?c.timestamp:performance.now();s=!1,fn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(G-c.timestamp,ay),1)),c.timestamp=G,c.isProcessing=!0,g.process(c),m.process(c),p.process(c),y.process(c),S.process(c),v.process(c),z.process(c),j.process(c),c.isProcessing=!1,s&&i&&(o=!1,a(L))},O=()=>{s=!0,o=!0,c.isProcessing||a(L)};return{schedule:as.reduce((G,P)=>{const _=f[P];return G[P]=(F,V=!1,N=!1)=>(s||O(),_.schedule(F,V,N)),G},{}),cancel:G=>{for(let P=0;P<as.length;P++)f[as[P]].cancel(G)},state:c,steps:f}}const{schedule:Ot,cancel:Bn,state:ie,steps:so}=z0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let is;function iy(){is=void 0}const ge={now:()=>(is===void 0&&ge.set(ie.isProcessing||fn.useManualTiming?ie.timestamp:performance.now()),is),set:a=>{is=a,queueMicrotask(iy)}},C0=a=>i=>typeof i=="string"&&i.startsWith(a),w0=C0("--"),ly=C0("var(--"),ro=a=>ly(a)?sy.test(a.split("/*")[0].trim()):!1,sy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ha={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Yi={...Ha,transform:a=>cn(0,1,a)},ls={...Ha,default:1},qi=a=>Math.round(a*1e5)/1e5,oo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ry(a){return a==null}const oy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uo=(a,i)=>s=>!!(typeof s=="string"&&oy.test(s)&&s.startsWith(a)||i&&!ry(s)&&Object.prototype.hasOwnProperty.call(s,i)),D0=(a,i,s)=>o=>{if(typeof o!="string")return o;const[c,d,f,g]=o.match(oo);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:g!==void 0?parseFloat(g):1}},uy=a=>cn(0,255,a),co={...Ha,transform:a=>Math.round(uy(a))},ua={test:uo("rgb","red"),parse:D0("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:o=1})=>"rgba("+co.transform(a)+", "+co.transform(i)+", "+co.transform(s)+", "+qi(Yi.transform(o))+")"};function cy(a){let i="",s="",o="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const fo={test:uo("#"),parse:cy,transform:ua.transform},Xi=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Vn=Xi("deg"),nn=Xi("%"),rt=Xi("px"),fy=Xi("vh"),dy=Xi("vw"),R0={...nn,parse:a=>nn.parse(a)/100,transform:a=>nn.transform(a*100)},Ua={test:uo("hsl","hue"),parse:D0("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:o=1})=>"hsla("+Math.round(a)+", "+nn.transform(qi(i))+", "+nn.transform(qi(s))+", "+qi(Yi.transform(o))+")"},Ft={test:a=>ua.test(a)||fo.test(a)||Ua.test(a),parse:a=>ua.test(a)?ua.parse(a):Ua.test(a)?Ua.parse(a):fo.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?ua.transform(a):Ua.transform(a),getAnimatableNone:a=>{const i=Ft.parse(a);return i.alpha=0,Ft.transform(i)}},hy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function my(a){return isNaN(a)&&typeof a=="string"&&(a.match(oo)?.length||0)+(a.match(hy)?.length||0)>0}const L0="number",B0="color",py="var",gy="var(",V0="${}",yy=/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 Zi(a){const i=a.toString(),s=[],o={color:[],number:[],var:[]},c=[];let d=0;const g=i.replace(yy,m=>(Ft.test(m)?(o.color.push(d),c.push(B0),s.push(Ft.parse(m))):m.startsWith(gy)?(o.var.push(d),c.push(py),s.push(m)):(o.number.push(d),c.push(L0),s.push(parseFloat(m))),++d,V0)).split(V0);return{values:s,split:g,indexes:o,types:c}}function j0(a){return Zi(a).values}function O0(a){const{split:i,types:s}=Zi(a),o=i.length;return c=>{let d="";for(let f=0;f<o;f++)if(d+=i[f],c[f]!==void 0){const g=s[f];g===L0?d+=qi(c[f]):g===B0?d+=Ft.transform(c[f]):d+=c[f]}return d}}const vy=a=>typeof a=="number"?0:Ft.test(a)?Ft.getAnimatableNone(a):a;function by(a){const i=j0(a);return O0(a)(i.map(vy))}const jn={test:my,parse:j0,createTransformer:O0,getAnimatableNone:by};function ho(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function Sy({hue:a,saturation:i,lightness:s,alpha:o}){a/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const g=s<.5?s*(1+i):s+i-s*i,m=2*s-g;c=ho(m,g,a+1/3),d=ho(m,g,a),f=ho(m,g,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function ss(a,i){return s=>s>0?i:a}const Ut=(a,i,s)=>a+(i-a)*s,mo=(a,i,s)=>{const o=a*a,c=s*(i*i-o)+o;return c<0?0:Math.sqrt(c)},xy=[fo,ua,Ua],Ty=a=>xy.find(i=>i.test(a));function N0(a){const i=Ty(a);if(!i)return!1;let s=i.parse(a);return i===Ua&&(s=Sy(s)),s}const H0=(a,i)=>{const s=N0(a),o=N0(i);if(!s||!o)return ss(a,i);const c={...s};return d=>(c.red=mo(s.red,o.red,d),c.green=mo(s.green,o.green,d),c.blue=mo(s.blue,o.blue,d),c.alpha=Ut(s.alpha,o.alpha,d),ua.transform(c))},po=new Set(["none","hidden"]);function Ey(a,i){return po.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function My(a,i){return s=>Ut(a,i,s)}function go(a){return typeof a=="number"?My:typeof a=="string"?ro(a)?ss:Ft.test(a)?H0:Cy:Array.isArray(a)?U0:typeof a=="object"?Ft.test(a)?H0:Ay:ss}function U0(a,i){const s=[...a],o=s.length,c=a.map((d,f)=>go(d)(d,i[f]));return d=>{for(let f=0;f<o;f++)s[f]=c[f](d);return s}}function Ay(a,i){const s={...a,...i},o={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(o[c]=go(a[c])(a[c],i[c]));return c=>{for(const d in o)s[d]=o[d](c);return s}}function zy(a,i){const s=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][o[d]],g=a.values[f]??0;s[c]=g,o[d]++}return s}const Cy=(a,i)=>{const s=jn.createTransformer(i),o=Zi(a),c=Zi(i);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?po.has(a)&&!c.values.length||po.has(i)&&!o.values.length?Ey(a,i):_i(U0(zy(o,c),c.values),s):ss(a,i)};function _0(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Ut(a,i,s):go(a)(a,i)}const wy=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>Ot.update(i,s),stop:()=>Bn(i),now:()=>ie.isProcessing?ie.timestamp:ge.now()}},G0=(a,i,s=10)=>{let o="";const c=Math.max(Math.round(i/s),2);for(let d=0;d<c;d++)o+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},rs=2e4;function yo(a){let i=0;const s=50;let o=a.next(i);for(;!o.done&&i<rs;)i+=s,o=a.next(i);return i>=rs?1/0:i}function Dy(a,i=100,s){const o=s({...a,keyframes:[0,i]}),c=Math.min(yo(o),rs);return{type:"keyframes",ease:d=>o.next(c*d).value/i,duration:Ne(c)}}const Ry=5;function k0(a,i,s){const o=Math.max(i-Ry,0);return m0(s-a(o),i-o)}const Gt={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},vo=.001;function Ly({duration:a=Gt.duration,bounce:i=Gt.bounce,velocity:s=Gt.velocity,mass:o=Gt.mass}){let c,d,f=1-i;f=cn(Gt.minDamping,Gt.maxDamping,f),a=cn(Gt.minDuration,Gt.maxDuration,Ne(a)),f<1?(c=p=>{const y=p*f,S=y*a,v=y-s,z=bo(p,f),j=Math.exp(-S);return vo-v/z*j},d=p=>{const S=p*f*a,v=S*s+s,z=Math.pow(f,2)*Math.pow(p,2)*a,j=Math.exp(-S),L=bo(Math.pow(p,2),f);return(-c(p)+vo>0?-1:1)*((v-z)*j)/L}):(c=p=>{const y=Math.exp(-p*a),S=(p-s)*a+1;return-vo+y*S},d=p=>{const y=Math.exp(-p*a),S=(s-p)*(a*a);return y*S});const g=5/a,m=Vy(c,d,g);if(a=en(a),isNaN(m))return{stiffness:Gt.stiffness,damping:Gt.damping,duration:a};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const By=12;function Vy(a,i,s){let o=s;for(let c=1;c<By;c++)o=o-a(o)/i(o);return o}function bo(a,i){return a*Math.sqrt(1-i*i)}const jy=["duration","bounce"],Oy=["stiffness","damping","mass"];function Y0(a,i){return i.some(s=>a[s]!==void 0)}function Ny(a){let i={velocity:Gt.velocity,stiffness:Gt.stiffness,damping:Gt.damping,mass:Gt.mass,isResolvedFromDuration:!1,...a};if(!Y0(a,Oy)&&Y0(a,jy))if(a.visualDuration){const s=a.visualDuration,o=2*Math.PI/(s*1.2),c=o*o,d=2*cn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Gt.mass,stiffness:c,damping:d}}else{const s=Ly(a);i={...i,...s,mass:Gt.mass},i.isResolvedFromDuration=!0}return i}function os(a=Gt.visualDuration,i=Gt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],g={done:!1,value:d},{stiffness:m,damping:p,mass:y,duration:S,velocity:v,isResolvedFromDuration:z}=Ny({...s,velocity:-Ne(s.velocity||0)}),j=v||0,L=p/(2*Math.sqrt(m*y)),O=f-d,A=Ne(Math.sqrt(m/y)),k=Math.abs(O)<5;o||(o=k?Gt.restSpeed.granular:Gt.restSpeed.default),c||(c=k?Gt.restDelta.granular:Gt.restDelta.default);let G;if(L<1){const _=bo(A,L);G=F=>{const V=Math.exp(-L*A*F);return f-V*((j+L*A*O)/_*Math.sin(_*F)+O*Math.cos(_*F))}}else if(L===1)G=_=>f-Math.exp(-A*_)*(O+(j+A*O)*_);else{const _=A*Math.sqrt(L*L-1);G=F=>{const V=Math.exp(-L*A*F),N=Math.min(_*F,300);return f-V*((j+L*A*O)*Math.sinh(N)+_*O*Math.cosh(N))/_}}const P={calculatedDuration:z&&S||null,next:_=>{const F=G(_);if(z)g.done=_>=S;else{let V=_===0?j:0;L<1&&(V=_===0?en(j):k0(G,_,F));const N=Math.abs(V)<=o,tt=Math.abs(f-F)<=c;g.done=N&&tt}return g.value=g.done?f:F,g},toString:()=>{const _=Math.min(yo(P),rs),F=G0(V=>P.next(_*V).value,_,30);return _+"ms "+F},toTransition:()=>{}};return P}os.applyToOptions=a=>{const i=Dy(a,100,os);return a.ease=i.ease,a.duration=en(i.duration),a.type="keyframes",a};function So({keyframes:a,velocity:i=0,power:s=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:g,max:m,restDelta:p=.5,restSpeed:y}){const S=a[0],v={done:!1,value:S},z=N=>g!==void 0&&N<g||m!==void 0&&N>m,j=N=>g===void 0?m:m===void 0||Math.abs(g-N)<Math.abs(m-N)?g:m;let L=s*i;const O=S+L,A=f===void 0?O:f(O);A!==O&&(L=A-S);const k=N=>-L*Math.exp(-N/o),G=N=>A+k(N),P=N=>{const tt=k(N),lt=G(N);v.done=Math.abs(tt)<=p,v.value=v.done?A:lt};let _,F;const V=N=>{z(v.value)&&(_=N,F=os({keyframes:[v.value,j(v.value)],velocity:k0(G,N,v.value),damping:c,stiffness:d,restDelta:p,restSpeed:y}))};return V(0),{calculatedDuration:null,next:N=>{let tt=!1;return!F&&_===void 0&&(tt=!0,P(N),V(N)),_!==void 0&&N>=_?F.next(N-_):(!tt&&P(N),v)}}}function Hy(a,i,s){const o=[],c=s||fn.mix||_0,d=a.length-1;for(let f=0;f<d;f++){let g=c(a[f],a[f+1]);if(i){const m=Array.isArray(i)?i[f]||Oe:i;g=_i(m,g)}o.push(g)}return o}function Uy(a,i,{clamp:s=!0,ease:o,mixer:c}={}){const d=a.length;if(eo(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const g=Hy(i,o,c),m=g.length,p=y=>{if(f&&y<a[0])return i[0];let S=0;if(m>1)for(;S<a.length-2&&!(y<a[S+1]);S++);const v=Gi(a[S],a[S+1],y);return g[S](v)};return s?y=>p(cn(a[0],a[d-1],y)):p}function _y(a,i){const s=a[a.length-1];for(let o=1;o<=i;o++){const c=Gi(0,i,o);a.push(Ut(s,1,c))}}function Gy(a){const i=[0];return _y(i,a.length-1),i}function ky(a,i){return a.map(s=>s*i)}function Yy(a,i){return a.map(()=>i||E0).splice(0,a.length-1)}function Fi({duration:a=300,keyframes:i,times:s,ease:o="easeInOut"}){const c=$g(o)?o.map(A0):A0(o),d={done:!1,value:i[0]},f=ky(s&&s.length===i.length?s:Gy(i),a),g=Uy(f,i,{ease:Array.isArray(c)?c:Yy(i,c)});return{calculatedDuration:a,next:m=>(d.value=g(m),d.done=m>=a,d)}}const qy=a=>a!==null;function xo(a,{repeat:i,repeatType:s="loop"},o,c=1){const d=a.filter(qy),g=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!g||o===void 0?d[g]:o}const Xy={decay:So,inertia:So,tween:Fi,keyframes:Fi,spring:os};function q0(a){typeof a.type=="string"&&(a.type=Xy[a.type])}class To{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const Zy=a=>a/100;class Eo extends To{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;q0(i);const{type:s=Fi,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:g}=i;const m=s||Fi;m!==Fi&&typeof g[0]!="number"&&(this.mixKeyframes=_i(Zy,_0(g[0],g[1])),g=[0,100]);const p=m({...i,keyframes:g});d==="mirror"&&(this.mirroredGenerator=m({...i,keyframes:[...g].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=yo(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:g,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:S,repeatType:v,repeatDelay:z,type:j,onUpdate:L,finalKeyframe:O}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?A<0:A>c;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,P=o;if(S){const N=Math.min(this.currentTime,c)/g;let tt=Math.floor(N),lt=N%1;!lt&&N>=1&&(lt=1),lt===1&&tt--,tt=Math.min(tt,S+1),!!(tt%2)&&(v==="reverse"?(lt=1-lt,z&&(lt-=z/g)):v==="mirror"&&(P=f)),G=cn(0,1,lt)*g}const _=k?{done:!1,value:y[0]}:P.next(G);d&&(_.value=d(_.value));let{done:F}=_;!k&&m!==null&&(F=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return V&&j!==So&&(_.value=xo(y,this.options,O,this.speed)),L&&L(_.value),V&&this.finish(),_}then(i,s){return this.finished.then(i,s)}get duration(){return Ne(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ne(i)}get time(){return Ne(this.currentTime)}set time(i){i=en(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(ge.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Ne(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=wy,startTime:s}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function Fy(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const ca=a=>a*180/Math.PI,Mo=a=>{const i=ca(Math.atan2(a[1],a[0]));return Ao(i)},Ky={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Mo,rotateZ:Mo,skewX:a=>ca(Math.atan(a[1])),skewY:a=>ca(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Ao=a=>(a=a%360,a<0&&(a+=360),a),X0=Mo,Z0=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),F0=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Qy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Z0,scaleY:F0,scale:a=>(Z0(a)+F0(a))/2,rotateX:a=>Ao(ca(Math.atan2(a[6],a[5]))),rotateY:a=>Ao(ca(Math.atan2(-a[2],a[0]))),rotateZ:X0,rotate:X0,skewX:a=>ca(Math.atan(a[4])),skewY:a=>ca(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function zo(a){return a.includes("scale")?1:0}function Co(a,i){if(!a||a==="none")return zo(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(s)o=Qy,c=s;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Ky,c=g}if(!c)return zo(i);const d=o[i],f=c[1].split(",").map(Jy);return typeof d=="function"?d(f):f[d]}const Py=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Co(s,i)};function Jy(a){return parseFloat(a.trim())}const _a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ga=new Set(_a),K0=a=>a===Ha||a===rt,Iy=new Set(["x","y","z"]),Wy=_a.filter(a=>!Iy.has(a));function $y(a){const i=[];return Wy.forEach(s=>{const o=a.getValue(s);o!==void 0&&(i.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),i}const fa={width:({x:a},{paddingLeft:i="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),height:({y:a},{paddingTop:i="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Co(i,"x"),y:(a,{transform:i})=>Co(i,"y")};fa.translateX=fa.x,fa.translateY=fa.y;const da=new Set;let wo=!1,Do=!1,Ro=!1;function Q0(){if(Do){const a=Array.from(da).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),s=new Map;i.forEach(o=>{const c=$y(o);c.length&&(s.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=s.get(o);c&&c.forEach(([d,f])=>{o.getValue(d)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Do=!1,wo=!1,da.forEach(a=>a.complete(Ro)),da.clear()}function P0(){da.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Do=!0)})}function tv(){Ro=!0,P0(),Q0(),Ro=!1}class Lo{constructor(i,s,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(da.add(this),wo||(wo=!0,Ot.read(P0),Ot.resolveKeyframes(Q0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:o,motionValue:c}=this;if(i[0]===null){const d=c?.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(o&&s){const g=o.readValue(s,f);g!=null&&(i[0]=g)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}Fy(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),da.delete(this)}cancel(){this.state==="scheduled"&&(da.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ev=a=>a.startsWith("--");function nv(a,i,s){ev(i)?a.style.setProperty(i,s):a.style[i]=s}const av=no(()=>window.ScrollTimeline!==void 0),iv={};function lv(a,i){const s=no(a);return()=>iv[i]??s()}const J0=lv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ki=([a,i,s,o])=>`cubic-bezier(${a}, ${i}, ${s}, ${o})`,I0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ki([0,.65,.55,1]),circOut:Ki([.55,0,1,.45]),backIn:Ki([.31,.01,.66,-.59]),backOut:Ki([.33,1.53,.69,.99])};function W0(a,i){if(a)return typeof a=="function"?J0()?G0(a,i):"ease-out":M0(a)?Ki(a):Array.isArray(a)?a.map(s=>W0(s,i)||I0.easeOut):I0[a]}function sv(a,i,s,{delay:o=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:g="easeOut",times:m}={},p=void 0){const y={[i]:s};m&&(y.offset=m);const S=W0(g,c);Array.isArray(S)&&(y.easing=S);const v={delay:o,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),a.animate(y,v)}function $0(a){return typeof a=="function"&&"applyToOptions"in a}function rv({type:a,...i}){return $0(a)&&J0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class ov extends To{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:o,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:g,onComplete:m}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,eo(typeof i.type!="string");const p=rv(i);this.animation=sv(s,o,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const y=xo(c,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(y):nv(s,o,y),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return Ne(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ne(i)}get time(){return Ne(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=en(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&av()?(this.animation.timeline=i,Oe):s(this)}}const td={anticipate:S0,backInOut:b0,circInOut:T0};function uv(a){return a in td}function cv(a){typeof a.ease=="string"&&uv(a.ease)&&(a.ease=td[a.ease])}const ed=10;class fv extends ov{constructor(i){cv(i),q0(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:o,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const g=new Eo({...f,autoplay:!1}),m=en(this.finishedTime??this.time);s.setWithVelocity(g.sample(m-ed).value,g.sample(m).value,ed),g.stop()}}const nd=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(jn.test(a)||a==="0")&&!a.startsWith("url("));function dv(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function hv(a,i,s,o){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=nd(c,i),g=nd(d,i);return!f||!g?!1:dv(a)||(s==="spring"||$0(s))&&o}function Bo(a){a.duration=0,a.type="keyframes"}const mv=new Set(["opacity","clipPath","filter","transform"]),pv=no(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gv(a){const{motionValue:i,name:s,repeatDelay:o,repeatType:c,damping:d,type:f}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=i.owner.getProps();return pv()&&s&&mv.has(s)&&(s!=="transform"||!p)&&!m&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const yv=40;class vv extends To{constructor({autoplay:i=!0,delay:s=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:g,name:m,motionValue:p,element:y,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const v={autoplay:i,delay:s,type:o,repeat:c,repeatDelay:d,repeatType:f,name:m,motionValue:p,element:y,...S},z=y?.KeyframeResolver||Lo;this.keyframeResolver=new z(g,(j,L,O)=>this.onKeyframesResolved(j,L,v,!O),m,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,s,o,c){this.keyframeResolver=void 0;const{name:d,type:f,velocity:g,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=ge.now(),hv(i,d,f,g)||((fn.instantAnimations||!m)&&y?.(xo(i,o,s)),i[0]=i[i.length-1],Bo(o),o.repeat=0);const v={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>yv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:i},z=!p&&gv(v)?new fv({...v,element:v.motionValue.owner.current}):new Eo(v);z.finished.then(()=>this.notifyFinished()).catch(Oe),this.pendingTimeline&&(this.stopTimeline=z.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=z}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const bv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sv(a){const i=bv.exec(a);if(!i)return[,];const[,s,o,c]=i;return[`--${s??o}`,c]}function ad(a,i,s=1){const[o,c]=Sv(a);if(!o)return;const d=window.getComputedStyle(i).getPropertyValue(o);if(d){const f=d.trim();return f0(f)?parseFloat(f):f}return ro(c)?ad(c,i,s+1):c}function Vo(a,i){return a?.[i]??a?.default??a}const id=new Set(["width","height","top","left","right","bottom",..._a]),xv={test:a=>a==="auto",parse:a=>a},ld=a=>i=>i.test(a),sd=[Ha,rt,nn,Vn,dy,fy,xv],rd=a=>sd.find(ld(a));function Tv(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||h0(a):!0}const Ev=new Set(["brightness","contrast","saturate","opacity"]);function Mv(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=s.match(oo)||[];if(!o)return a;const c=s.replace(o,"");let d=Ev.has(i)?1:0;return o!==s&&(d*=100),i+"("+d+c+")"}const Av=/\b([a-z-]*)\(.*?\)/gu,jo={...jn,getAnimatableNone:a=>{const i=a.match(Av);return i?i.map(Mv).join(" "):a}},od={...Ha,transform:Math.round},Oo={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,backgroundPositionX:rt,backgroundPositionY:rt,...{rotate:Vn,rotateX:Vn,rotateY:Vn,rotateZ:Vn,scale:ls,scaleX:ls,scaleY:ls,scaleZ:ls,skew:Vn,skewX:Vn,skewY:Vn,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:Yi,originX:R0,originY:R0,originZ:rt},zIndex:od,fillOpacity:Yi,strokeOpacity:Yi,numOctaves:od},zv={...Oo,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:jo,WebkitFilter:jo},ud=a=>zv[a];function cd(a,i){let s=ud(a);return s!==jo&&(s=jn),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const Cv=new Set(["auto","none","0"]);function wv(a,i,s){let o=0,c;for(;o<a.length&&!c;){const d=a[o];typeof d=="string"&&!Cv.has(d)&&Zi(d).values.length&&(c=a[o]),o++}if(c&&s)for(const d of i)a[d]=cd(s,c)}class Dv extends Lo{constructor(i,s,o,c,d){super(i,s,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let p=i[m];if(typeof p=="string"&&(p=p.trim(),ro(p))){const y=ad(p,s.current);y!==void 0&&(i[m]=y),m===i.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!id.has(o)||i.length!==2)return;const[c,d]=i,f=rd(c),g=rd(d);if(f!==g)if(K0(f)&&K0(g))for(let m=0;m<i.length;m++){const p=i[m];typeof p=="string"&&(i[m]=parseFloat(p))}else fa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||Tv(i[c]))&&o.push(c);o.length&&wv(i,o,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fa[o](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(o,c).jump(c,!1)}measureEndState(){const{element:i,name:s,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=fa[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,m])=>{i.getValue(g).set(m)}),this.resolveNoneKeyframes()}}function Rv(a,i,s){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=s?.[a]??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const fd=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function dd(a){return d0(a)&&"offsetHeight"in a}const hd=30,Lv=a=>!isNaN(parseFloat(a));class Bv{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ge.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=ge.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=Lv(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new ao);const o=this.events[i].add(s);return i==="change"?()=>{o(),Ot.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>hd)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,hd);return m0(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ka(a,i){return new Bv(a,i)}const{schedule:No}=z0(queueMicrotask,!1),Qe={x:!1,y:!1};function md(){return Qe.x||Qe.y}function Vv(a){return a==="x"||a==="y"?Qe[a]?null:(Qe[a]=!0,()=>{Qe[a]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function pd(a,i){const s=Rv(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[s,c,()=>o.abort()]}function gd(a){return!(a.pointerType==="touch"||md())}function jv(a,i,s={}){const[o,c,d]=pd(a,s),f=g=>{if(!gd(g))return;const{target:m}=g,p=i(m,g);if(typeof p!="function"||!m)return;const y=S=>{gd(S)&&(p(S),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,c)};return o.forEach(g=>{g.addEventListener("pointerenter",f,c)}),d}const yd=(a,i)=>i?a===i?!0:yd(a,i.parentElement):!1,Ho=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,Ov=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nv(a){return Ov.has(a.tagName)||a.tabIndex!==-1}const us=new WeakSet;function vd(a){return i=>{i.key==="Enter"&&a(i)}}function Uo(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Hv=(a,i)=>{const s=a.currentTarget;if(!s)return;const o=vd(()=>{if(us.has(s))return;Uo(s,"down");const c=vd(()=>{Uo(s,"up")}),d=()=>Uo(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",o,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),i)};function bd(a){return Ho(a)&&!md()}function Uv(a,i,s={}){const[o,c,d]=pd(a,s),f=g=>{const m=g.currentTarget;if(!bd(g))return;us.add(m);const p=i(m,g),y=(z,j)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",v),us.has(m)&&us.delete(m),bd(z)&&typeof p=="function"&&p(z,{success:j})},S=z=>{y(z,m===window||m===document||s.useGlobalTarget||yd(m,z.target))},v=z=>{y(z,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",v,c)};return o.forEach(g=>{(s.useGlobalTarget?window:g).addEventListener("pointerdown",f,c),dd(g)&&(g.addEventListener("focus",p=>Hv(p,c)),!Nv(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),d}function Sd(a){return d0(a)&&"ownerSVGElement"in a}function _v(a){return Sd(a)&&a.tagName==="svg"}const de=a=>!!(a&&a.getVelocity),Gv=[...sd,Ft,jn],kv=a=>Gv.find(ld(a)),_o=C.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function xd(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Yv(...a){return i=>{let s=!1;const o=a.map(c=>{const d=xd(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():xd(a[c],null)}}}}function qv(...a){return C.useCallback(Yv(...a),a)}class Xv extends C.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const o=s.offsetParent,c=dd(o)&&o.offsetWidth||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=c-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Zv({children:a,isPresent:i,anchorX:s,root:o}){const c=C.useId(),d=C.useRef(null),f=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=C.useContext(_o),m=qv(d,a?.ref);return C.useInsertionEffect(()=>{const{width:p,height:y,top:S,left:v,right:z}=f.current;if(i||!d.current||!p||!y)return;const j=s==="left"?`left: ${v}`:`right: ${z}`;d.current.dataset.motionPopId=c;const L=document.createElement("style");g&&(L.nonce=g);const O=o??document.head;return O.appendChild(L),L.sheet&&L.sheet.insertRule(`
10
10
  [data-motion-pop-id="${c}"] {
11
11
  position: absolute !important;
12
- width: ${y}px !important;
13
- height: ${v}px !important;
14
- ${O}px !important;
15
- top: ${b}px !important;
12
+ width: ${p}px !important;
13
+ height: ${y}px !important;
14
+ ${j}px !important;
15
+ top: ${S}px !important;
16
16
  }
17
- `),()=>{U.contains(B)&&U.removeChild(B)}},[i]),A.jsx(Tg,{isPresent:i,childRef:h,sizeRef:d,children:f.cloneElement(a,{ref:p})})}const xg=({children:a,initial:i,isPresent:u,onExitComplete:r,custom:c,presenceAffectsLayout:h,mode:d,anchorX:g,root:p})=>{const y=ku(Vg),v=f.useId();let b=!0,E=f.useMemo(()=>(b=!1,{id:v,initial:i,isPresent:u,custom:c,onExitComplete:L=>{y.set(L,!0);for(const O of y.values())if(!O)return;r&&r()},register:L=>(y.set(L,!1),()=>y.delete(L))}),[u,y,r]);return h&&b&&(E={...E}),f.useMemo(()=>{y.forEach((L,O)=>y.set(O,!1))},[u]),f.useEffect(()=>{!u&&!y.size&&r&&r()},[u]),d==="popLayout"&&(a=A.jsx(Mg,{isPresent:u,anchorX:g,root:p,children:a})),A.jsx(Pl.Provider,{value:E,children:a})};function Vg(){return new Map}function y1(a=!0){const i=f.useContext(Pl);if(i===null)return[!0,null];const{isPresent:u,onExitComplete:r,register:c}=i,h=f.useId();f.useEffect(()=>{if(a)return c(h)},[a]);const d=f.useCallback(()=>a&&r&&r(h),[h,r,a]);return!u&&r?[!1,d]:[!0]}const as=a=>a.key||"";function g1(a){const i=[];return f.Children.forEach(a,u=>{f.isValidElement(u)&&i.push(u)}),i}const Lg=({children:a,custom:i,initial:u=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:g="left",root:p})=>{const[y,v]=y1(d),b=f.useMemo(()=>g1(a),[a]),E=d&&!y?[]:b.map(as),L=f.useRef(!0),O=f.useRef(b),B=ku(()=>new Map),[U,H]=f.useState(b),[Y,Q]=f.useState(b);af(()=>{L.current=!1,O.current=b;for(let k=0;k<Y.length;k++){const J=as(Y[k]);E.includes(J)?B.delete(J):B.get(J)!==!0&&B.set(J,!1)}},[Y,E.length,E.join("-")]);const q=[];if(b!==U){let k=[...b];for(let J=0;J<Y.length;J++){const K=Y[J],I=as(K);E.includes(I)||(k.splice(J,0,K),q.push(K))}return h==="wait"&&q.length&&(k=q),Q(g1(k)),H(b),null}const{forceRender:z}=f.useContext(Xu);return A.jsx(A.Fragment,{children:Y.map(k=>{const J=as(k),K=d&&!y?!1:b===Y||E.includes(J),I=()=>{if(B.has(J))B.set(J,!0);else return;let at=!0;B.forEach(Rt=>{Rt||(at=!1)}),at&&(z?.(),Q(O.current),d&&v?.(),r&&r())};return A.jsx(xg,{isPresent:K,initial:!L.current||u?void 0:!1,custom:i,presenceAffectsLayout:c,mode:h,root:p,onExitComplete:K?void 0:I,anchorX:g,children:k},J)})})},v1=f.createContext({strict:!1}),S1={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"]},Ua={};for(const a in S1)Ua[a]={isEnabled:i=>S1[a].some(u=>!!i[u])};function Cg(a){for(const i in a)Ua[i]={...Ua[i],...a[i]}}const Dg=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 is(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Dg.has(a)}let b1=a=>!is(a);function Rg(a){typeof a=="function"&&(b1=i=>i.startsWith("on")?!is(i):a(i))}try{Rg(require("@emotion/is-prop-valid").default)}catch{}function Hg(a,i,u){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||(b1(c)||u===!0&&is(c)||!i&&!is(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const ls=f.createContext({});function ss(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Xi(a){return typeof a=="string"||Array.isArray(a)}const Or=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...Or];function us(a){return ss(a.animate)||zr.some(i=>Xi(a[i]))}function E1(a){return!!(us(a)||a.variants)}function jg(a,i){if(us(a)){const{initial:u,animate:r}=a;return{initial:u===!1||Xi(u)?u:void 0,animate:Xi(r)?r:void 0}}return a.inherit!==!1?i:{}}function Og(a){const{initial:i,animate:u}=jg(a,f.useContext(ls));return f.useMemo(()=>({initial:i,animate:u}),[A1(i),A1(u)])}function A1(a){return Array.isArray(a)?a.join(" "):a}function T1(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const ki={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(st.test(a))a=parseFloat(a);else return a;const u=T1(a,i.target.x),r=T1(a,i.target.y);return`${u}% ${r}%`}},zg={correct:(a,{treeScale:i,projectionDelta:u})=>{const r=a,c=Rn.parse(a);if(c.length>5)return r;const h=Rn.createTransformer(a),d=typeof c[0]!="number"?1:0,g=u.x.scale*i.x,p=u.y.scale*i.y;c[0+d]/=g,c[1+d]/=p;const y=Nt(g,p,.5);return typeof c[2+d]=="number"&&(c[2+d]/=y),typeof c[3+d]=="number"&&(c[3+d]/=y),h(c)}},Br={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:zg};function M1(a,{layout:i,layoutId:u}){return Na.has(a)||a.startsWith("origin")||(i||u!==void 0)&&(!!Br[a]||a==="opacity")}const Bg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wg=wa.length;function Ng(a,i,u){let r="",c=!0;for(let h=0;h<wg;h++){const d=wa[h],g=a[d];if(g===void 0)continue;let p=!0;if(typeof g=="number"?p=g===(d.startsWith("scale")?1:0):p=parseFloat(g)===0,!p||u){const y=l1(g,Cr[d]);if(!p){c=!1;const v=Bg[d]||d;r+=`${v}(${y}) `}u&&(i[d]=y)}}return r=r.trim(),u?r=u(i,c?"":r):c&&(r="none"),r}function wr(a,i,u){const{style:r,vars:c,transformOrigin:h}=a;let d=!1,g=!1;for(const p in i){const y=i[p];if(Na.has(p)){d=!0;continue}else if(Af(p)){c[p]=y;continue}else{const v=l1(y,Cr[p]);p.startsWith("origin")?(g=!0,h[p]=v):r[p]=v}}if(i.transform||(d||u?r.transform=Ng(i,a.transform,u):r.transform&&(r.transform="none")),g){const{originX:p="50%",originY:y="50%",originZ:v=0}=h;r.transformOrigin=`${p} ${y} ${v}`}}const Nr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function x1(a,i,u){for(const r in i)!re(i[r])&&!M1(r,u)&&(a[r]=i[r])}function Zg({transformTemplate:a},i){return f.useMemo(()=>{const u=Nr();return wr(u,i,a),Object.assign({},u.vars,u.style)},[i])}function Ug(a,i){const u=a.style||{},r={};return x1(r,u,a),Object.assign(r,Zg(a,i)),r}function _g(a,i){const u={},r=Ug(a,i);return a.drag&&a.dragListener!==!1&&(u.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(u.tabIndex=0),u.style=r,u}const Gg={offset:"stroke-dashoffset",array:"stroke-dasharray"},qg={offset:"strokeDashoffset",array:"strokeDasharray"};function Yg(a,i,u=1,r=0,c=!0){a.pathLength=1;const h=c?Gg:qg;a[h.offset]=st.transform(-r);const d=st.transform(i),g=st.transform(u);a[h.array]=`${d} ${g}`}function V1(a,{attrX:i,attrY:u,attrScale:r,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...g},p,y,v){if(wr(a,g,y),p){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:E}=a;b.transform&&(E.transform=b.transform,delete b.transform),(E.transform||b.transformOrigin)&&(E.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),E.transform&&(E.transformBox=v?.transformBox??"fill-box",delete b.transformBox),i!==void 0&&(b.x=i),u!==void 0&&(b.y=u),r!==void 0&&(b.scale=r),c!==void 0&&Yg(b,c,h,d,!1)}const L1=()=>({...Nr(),attrs:{}}),C1=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Xg(a,i,u,r){const c=f.useMemo(()=>{const h=L1();return V1(h,i,C1(r),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[i]);if(a.style){const h={};x1(h,a.style,a),c.style={...h,...c.style}}return c}const kg=["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 Zr(a){return typeof a!="string"||a.includes("-")?!1:!!(kg.indexOf(a)>-1||/[A-Z]/u.test(a))}function Kg(a,i,u,{latestValues:r},c,h=!1){const g=(Zr(a)?Xg:_g)(i,r,c,a),p=Hg(i,typeof a=="string",h),y=a!==f.Fragment?{...p,...g,ref:u}:{},{children:v}=i,b=f.useMemo(()=>re(v)?v.get():v,[v]);return f.createElement(a,{...y,children:b})}function D1(a){const i=[{},{}];return a?.values.forEach((u,r)=>{i[0][r]=u.get(),i[1][r]=u.getVelocity()}),i}function Ur(a,i,u,r){if(typeof i=="function"){const[c,h]=D1(r);i=i(u!==void 0?u:a.custom,c,h)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,h]=D1(r);i=i(u!==void 0?u:a.custom,c,h)}return i}function rs(a){return re(a)?a.get():a}function Fg({scrapeMotionValuesFromProps:a,createRenderState:i},u,r,c){return{latestValues:Qg(u,r,c,a),renderState:i()}}function Qg(a,i,u,r){const c={},h=r(a,{});for(const E in h)c[E]=rs(h[E]);let{initial:d,animate:g}=a;const p=us(a),y=E1(a);i&&y&&!p&&a.inherit!==!1&&(d===void 0&&(d=i.initial),g===void 0&&(g=i.animate));let v=u?u.initial===!1:!1;v=v||d===!1;const b=v?g:d;if(b&&typeof b!="boolean"&&!ss(b)){const E=Array.isArray(b)?b:[b];for(let L=0;L<E.length;L++){const O=Ur(a,E[L]);if(O){const{transitionEnd:B,transition:U,...H}=O;for(const Y in H){let Q=H[Y];if(Array.isArray(Q)){const q=v?Q.length-1:0;Q=Q[q]}Q!==null&&(c[Y]=Q)}for(const Y in B)c[Y]=B[Y]}}}return c}const R1=a=>(i,u)=>{const r=f.useContext(ls),c=f.useContext(Pl),h=()=>Fg(a,i,r,c);return u?h():ku(h)};function _r(a,i,u){const{style:r}=a,c={};for(const h in r)(re(r[h])||i.style&&re(i.style[h])||M1(h,a)||u?.getValue(h)?.liveStyle!==void 0)&&(c[h]=r[h]);return c}const Pg=R1({scrapeMotionValuesFromProps:_r,createRenderState:Nr});function H1(a,i,u){const r=_r(a,i,u);for(const c in a)if(re(a[c])||re(i[c])){const h=wa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[h]=a[c]}return r}const Jg=R1({scrapeMotionValuesFromProps:H1,createRenderState:L1}),$g=Symbol.for("motionComponentSymbol");function _a(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function Wg(a,i,u){return f.useCallback(r=>{r&&a.onMount&&a.onMount(r),i&&(r?i.mount(r):i.unmount()),u&&(typeof u=="function"?u(r):_a(u)&&(u.current=r))},[i])}const Gr=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),j1="data-"+Gr("framerAppearId"),O1=f.createContext({});function Ig(a,i,u,r,c){const{visualElement:h}=f.useContext(ls),d=f.useContext(v1),g=f.useContext(Pl),p=f.useContext(jr).reducedMotion,y=f.useRef(null);r=r||d.renderer,!y.current&&r&&(y.current=r(a,{visualState:i,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:p}));const v=y.current,b=f.useContext(O1);v&&!v.projection&&c&&(v.type==="html"||v.type==="svg")&&tv(y.current,u,c,b);const E=f.useRef(!1);f.useInsertionEffect(()=>{v&&E.current&&v.update(u,g)});const L=u[j1],O=f.useRef(!!L&&!window.MotionHandoffIsComplete?.(L)&&window.MotionHasOptimisedAnimation?.(L));return af(()=>{v&&(E.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),O.current&&v.animationState&&v.animationState.animateChanges())}),f.useEffect(()=>{v&&(!O.current&&v.animationState&&v.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(L)}),O.current=!1),v.enteringChildren=void 0)}),v}function tv(a,i,u,r){const{layoutId:c,layout:h,drag:d,dragConstraints:g,layoutScroll:p,layoutRoot:y,layoutCrossfade:v}=i;a.projection=new u(a.latestValues,i["data-framer-portal-id"]?void 0:z1(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!d||g&&_a(g),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:p,layoutRoot:y})}function z1(a){if(a)return a.options.allowProjection!==!1?a.projection:z1(a.parent)}function qr(a,{forwardMotionProps:i=!1}={},u,r){u&&Cg(u);const c=Zr(a)?Jg:Pg;function h(g,p){let y;const v={...f.useContext(jr),...g,layoutId:ev(g)},{isStatic:b}=v,E=Og(g),L=c(g,b);if(!b&&Ku){nv();const O=av(v);y=O.MeasureLayout,E.visualElement=Ig(a,L,v,r,O.ProjectionNode)}return A.jsxs(ls.Provider,{value:E,children:[y&&E.visualElement?A.jsx(y,{visualElement:E.visualElement,...v}):null,Kg(a,g,Wg(L,E.visualElement,p),L,b,i)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const d=f.forwardRef(h);return d[$g]=a,d}function ev({layoutId:a}){const i=f.useContext(Xu).id;return i&&a!==void 0?i+"-"+a:a}function nv(a,i){f.useContext(v1).strict}function av(a){const{drag:i,layout:u}=Ua;if(!i&&!u)return{};const r={...i,...u};return{MeasureLayout:i?.isEnabled(a)||u?.isEnabled(a)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function iv(a,i){if(typeof Proxy>"u")return qr;const u=new Map,r=(h,d)=>qr(h,d,a,i),c=(h,d)=>r(h,d);return new Proxy(c,{get:(h,d)=>d==="create"?r:(u.has(d)||u.set(d,qr(d,void 0,a,i)),u.get(d))})}function B1({top:a,left:i,right:u,bottom:r}){return{x:{min:i,max:u},y:{min:a,max:r}}}function lv({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function sv(a,i){if(!i)return a;const u=i({x:a.left,y:a.top}),r=i({x:a.right,y:a.bottom});return{top:u.y,left:u.x,bottom:r.y,right:r.x}}function Yr(a){return a===void 0||a===1}function Xr({scale:a,scaleX:i,scaleY:u}){return!Yr(a)||!Yr(i)||!Yr(u)}function ca(a){return Xr(a)||w1(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function w1(a){return N1(a.x)||N1(a.y)}function N1(a){return a&&a!=="0%"}function os(a,i,u){const r=a-u,c=i*r;return u+c}function Z1(a,i,u,r,c){return c!==void 0&&(a=os(a,c,r)),os(a,u,r)+i}function kr(a,i=0,u=1,r,c){a.min=Z1(a.min,i,u,r,c),a.max=Z1(a.max,i,u,r,c)}function U1(a,{x:i,y:u}){kr(a.x,i.translate,i.scale,i.originPoint),kr(a.y,u.translate,u.scale,u.originPoint)}const _1=.999999999999,G1=1.0000000000001;function uv(a,i,u,r=!1){const c=u.length;if(!c)return;i.x=i.y=1;let h,d;for(let g=0;g<c;g++){h=u[g],d=h.projectionDelta;const{visualElement:p}=h.options;p&&p.props.style&&p.props.style.display==="contents"||(r&&h.options.layoutScroll&&h.scroll&&h!==h.root&&qa(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,U1(a,d)),r&&ca(h.latestValues)&&qa(a,h.latestValues))}i.x<G1&&i.x>_1&&(i.x=1),i.y<G1&&i.y>_1&&(i.y=1)}function Ga(a,i){a.min=a.min+i,a.max=a.max+i}function q1(a,i,u,r,c=.5){const h=Nt(a.min,a.max,c);kr(a,i,u,h,r)}function qa(a,i){q1(a.x,i.x,i.scaleX,i.scale,i.originX),q1(a.y,i.y,i.scaleY,i.scale,i.originY)}function Y1(a,i){return B1(sv(a.getBoundingClientRect(),i))}function rv(a,i,u){const r=Y1(a,u),{scroll:c}=i;return c&&(Ga(r.x,c.offset.x),Ga(r.y,c.offset.y)),r}const X1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ya=()=>({x:X1(),y:X1()}),k1=()=>({min:0,max:0}),Pt=()=>({x:k1(),y:k1()}),Kr={current:null},K1={current:!1};function ov(){if(K1.current=!0,!!Ku)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Kr.current=a.matches;a.addEventListener("change",i),i()}else Kr.current=!1}const cv=new WeakMap;function fv(a,i,u){for(const r in i){const c=i[r],h=u[r];if(re(c))a.addValue(r,c);else if(re(h))a.addValue(r,Za(c,{owner:a}));else if(h!==c)if(a.hasValue(r)){const d=a.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(r);a.addValue(r,Za(d!==void 0?d:c,{owner:a}))}}for(const r in u)i[r]===void 0&&a.removeValue(r);return i}const F1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dv{scrapeMotionValuesFromProps(i,u,r){return{}}constructor({parent:i,props:u,presenceContext:r,reducedMotionConfig:c,blockInitialAnimation:h,visualState:d},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mr,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 E=de.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,zt.render(this.render,!1,!0))};const{latestValues:p,renderState:y}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=u.initial?{...p}:{},this.renderState=y,this.parent=i,this.props=u,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=us(u),this.isVariantNode=E1(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...b}=this.scrapeMotionValuesFromProps(u,{},this);for(const E in b){const L=b[E];p[E]!==void 0&&re(L)&&L.set(p[E])}}mount(i){this.current=i,cv.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,r)=>this.bindToMotionValue(r,u)),K1.current||ov(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kr.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cn(this.notifyUpdate),Cn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const u=this.features[i];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,u){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const r=Na.has(i);r&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&zt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,i,u)),this.valueSubscriptions.set(i,()=>{c(),h&&h(),u.owner&&u.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Ua){const u=Ua[i];if(!u)continue;const{isEnabled:r,Feature:c}=u;if(!this.features[i]&&c&&r(this.props)&&(this.features[i]=new c(this)),this.features[i]){const h=this.features[i];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,u){this.latestValues[i]=u}update(i,u){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let r=0;r<F1.length;r++){const c=F1[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,d=i[h];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=fv(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(i),()=>u.variantChildren.delete(i)}addValue(i,u){const r=this.values.get(i);u!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,u),this.values.set(i,u),this.latestValues[i]=u.get())}removeValue(i){this.values.delete(i);const u=this.valueSubscriptions.get(i);u&&(u(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,u){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&u!==void 0&&(r=Za(u===null?void 0:u,{owner:this}),this.addValue(i,r)),r}readValue(i,u){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(lf(r)||uf(r))?r=parseFloat(r):!bg(r)&&Rn.test(u)&&(r=i1(i,u)),this.setBaseTarget(i,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(i,u){this.baseTarget[i]=u}getBaseTarget(i){const{initial:u}=this.props;let r;if(typeof u=="string"||typeof u=="object"){const h=Ur(this.props,u,this.presenceContext?.custom);h&&(r=h[i])}if(u&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!re(c)?c:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,u){return this.events[i]||(this.events[i]=new $u),this.events[i].add(u)}notify(i,...u){this.events[i]&&this.events[i].notify(...u)}scheduleRenderMicrotask(){Dr.render(this.render)}}class Q1 extends dv{constructor(){super(...arguments),this.KeyframeResolver=rg}sortInstanceNodePosition(i,u){return i.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(i,u){return i.style?i.style[u]:void 0}removeValueFromRenderState(i,{vars:u,style:r}){delete u[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;re(i)&&(this.childSubscription=i.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}function P1(a,{style:i,vars:u},r,c){const h=a.style;let d;for(d in i)h[d]=i[d];c?.applyProjectionStyles(h,r);for(d in u)h.setProperty(d,u[d])}function hv(a){return window.getComputedStyle(a)}class mv extends Q1{constructor(){super(...arguments),this.type="html",this.renderInstance=P1}readValueFromInstance(i,u){if(Na.has(u))return this.projection?.isProjecting?Sr(u):Cy(i,u);{const r=hv(i),c=(Af(u)?r.getPropertyValue(u):r[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:u}){return Y1(i,u)}build(i,u,r){wr(i,u,r.transformTemplate)}scrapeMotionValuesFromProps(i,u,r){return _r(i,u,r)}}const J1=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 pv(a,i,u,r){P1(a,i,void 0,r);for(const c in i.attrs)a.setAttribute(J1.has(c)?c:Gr(c),i.attrs[c])}class yv extends Q1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt}getBaseTargetFromProps(i,u){return i[u]}readValueFromInstance(i,u){if(Na.has(u)){const r=a1(u);return r&&r.default||0}return u=J1.has(u)?u:Gr(u),i.getAttribute(u)}scrapeMotionValuesFromProps(i,u,r){return H1(i,u,r)}build(i,u,r){V1(i,u,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,u,r,c){pv(i,u,r,c)}mount(i){this.isSVGTag=C1(i.tagName),super.mount(i)}}const gv=(a,i)=>Zr(a)?new yv(i):new mv(i,{allowProjection:a!==f.Fragment});function Xa(a,i,u){const r=a.getProps();return Ur(r,i,u!==void 0?u:r.custom,a)}const Fr=a=>Array.isArray(a);function vv(a,i,u){a.hasValue(i)?a.getValue(i).set(u):a.addValue(i,Za(u))}function Sv(a){return Fr(a)?a[a.length-1]||0:a}function bv(a,i){const u=Xa(a,i);let{transitionEnd:r={},transition:c={},...h}=u||{};h={...h,...r};for(const d in h){const g=Sv(h[d]);vv(a,d,g)}}function Ev(a){return!!(re(a)&&a.add)}function Qr(a,i){const u=a.getValue("willChange");if(Ev(u))return u.add(i);if(!u&&ln.WillChange){const r=new ln.WillChange("auto");a.addValue("willChange",r),r.add(i)}}function $1(a){return a.props[j1]}const Av=a=>a!==null;function Tv(a,{repeat:i,repeatType:u="loop"},r){const c=a.filter(Av),h=i&&u!=="loop"&&i%2===1?0:c.length-1;return c[h]}const Mv={type:"spring",stiffness:500,damping:25,restSpeed:10},xv=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),Vv={type:"keyframes",duration:.8},Lv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cv=(a,{keyframes:i})=>i.length>2?Vv:Na.has(a)?a.startsWith("scale")?xv(i[1]):Mv:Lv;function Dv({when:a,delay:i,delayChildren:u,staggerChildren:r,staggerDirection:c,repeat:h,repeatType:d,repeatDelay:g,from:p,elapsed:y,...v}){return!!Object.keys(v).length}const Pr=(a,i,u,r={},c,h)=>d=>{const g=Vr(r,a)||{},p=g.delay||r.delay||0;let{elapsed:y=0}=r;y=y-$e(p);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:i.getVelocity(),...g,delay:-y,onUpdate:E=>{i.set(E),g.onUpdate&&g.onUpdate(E)},onComplete:()=>{d(),g.onComplete&&g.onComplete()},name:a,motionValue:i,element:h?void 0:c};Dv(g)||Object.assign(v,Cv(a,v)),v.duration&&(v.duration=$e(v.duration)),v.repeatDelay&&(v.repeatDelay=$e(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(xr(v),v.delay===0&&(b=!0)),(ln.instantAnimations||ln.skipAnimations)&&(b=!0,xr(v),v.delay=0),v.allowFlatten=!g.type&&!g.ease,b&&!h&&i.get()!==void 0){const E=Tv(v.keyframes,g);if(E!==void 0){zt.update(()=>{v.onUpdate(E),v.onComplete()});return}}return g.isSync?new yr(v):new $y(v)};function Rv({protectedKeys:a,needsAnimating:i},u){const r=a.hasOwnProperty(u)&&i[u]!==!0;return i[u]=!1,r}function W1(a,i,{delay:u=0,transitionOverride:r,type:c}={}){let{transition:h=a.getDefaultTransition(),transitionEnd:d,...g}=i;r&&(h=r);const p=[],y=c&&a.animationState&&a.animationState.getState()[c];for(const v in g){const b=a.getValue(v,a.latestValues[v]??null),E=g[v];if(E===void 0||y&&Rv(y,v))continue;const L={delay:u,...Vr(h||{},v)},O=b.get();if(O!==void 0&&!b.isAnimating&&!Array.isArray(E)&&E===O&&!L.velocity)continue;let B=!1;if(window.MotionHandoffAnimation){const H=$1(a);if(H){const Y=window.MotionHandoffAnimation(H,v,zt);Y!==null&&(L.startTime=Y,B=!0)}}Qr(a,v),b.start(Pr(v,b,E,a.shouldReduceMotion&&Wf.has(v)?{type:!1}:L,a,B));const U=b.animation;U&&p.push(U)}return d&&Promise.all(p).then(()=>{zt.update(()=>{d&&bv(a,d)})}),p}function I1(a,i,u,r=0,c=1){const h=Array.from(a).sort((y,v)=>y.sortNodePosition(v)).indexOf(i),d=a.size,g=(d-1)*r;return typeof u=="function"?u(h,d):c===1?h*r:g-h*r}function Jr(a,i,u={}){const r=Xa(a,i,u.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};u.transitionOverride&&(c=u.transitionOverride);const h=r?()=>Promise.all(W1(a,r,u)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=c;return Hv(a,i,p,y,v,b,u)}:()=>Promise.resolve(),{when:g}=c;if(g){const[p,y]=g==="beforeChildren"?[h,d]:[d,h];return p().then(()=>y())}else return Promise.all([h(),d(u.delay)])}function Hv(a,i,u=0,r=0,c=0,h=1,d){const g=[];for(const p of a.variantChildren)p.notify("AnimationStart",i),g.push(Jr(p,i,{...d,delay:u+(typeof r=="function"?0:r)+I1(a.variantChildren,p,r,c,h)}).then(()=>p.notify("AnimationComplete",i)));return Promise.all(g)}function jv(a,i,u={}){a.notify("AnimationStart",i);let r;if(Array.isArray(i)){const c=i.map(h=>Jr(a,h,u));r=Promise.all(c)}else if(typeof i=="string")r=Jr(a,i,u);else{const c=typeof i=="function"?Xa(a,i,u.custom):i;r=Promise.all(W1(a,c,u))}return r.then(()=>{a.notify("AnimationComplete",i)})}function td(a,i){if(!Array.isArray(i))return!1;const u=i.length;if(u!==a.length)return!1;for(let r=0;r<u;r++)if(i[r]!==a[r])return!1;return!0}const Ov=zr.length;function ed(a){if(!a)return;if(!a.isControllingVariants){const u=a.parent?ed(a.parent)||{}:{};return a.props.initial!==void 0&&(u.initial=a.props.initial),u}const i={};for(let u=0;u<Ov;u++){const r=zr[u],c=a.props[r];(Xi(c)||c===!1)&&(i[r]=c)}return i}const zv=[...Or].reverse(),Bv=Or.length;function wv(a){return i=>Promise.all(i.map(({animation:u,options:r})=>jv(a,u,r)))}function Nv(a){let i=wv(a),u=nd(),r=!0;const c=p=>(y,v)=>{const b=Xa(a,v,p==="exit"?a.presenceContext?.custom:void 0);if(b){const{transition:E,transitionEnd:L,...O}=b;y={...y,...O,...L}}return y};function h(p){i=p(a)}function d(p){const{props:y}=a,v=ed(a.parent)||{},b=[],E=new Set;let L={},O=1/0;for(let U=0;U<Bv;U++){const H=zv[U],Y=u[H],Q=y[H]!==void 0?y[H]:v[H],q=Xi(Q),z=H===p?Y.isActive:null;z===!1&&(O=U);let k=Q===v[H]&&Q!==y[H]&&q;if(k&&r&&a.manuallyAnimateOnMount&&(k=!1),Y.protectedKeys={...L},!Y.isActive&&z===null||!Q&&!Y.prevProp||ss(Q)||typeof Q=="boolean")continue;const J=Zv(Y.prevProp,Q);let K=J||H===p&&Y.isActive&&!k&&q||U>O&&q,I=!1;const at=Array.isArray(Q)?Q:[Q];let Rt=at.reduce(c(H),{});z===!1&&(Rt={});const{prevResolvedValues:$={}}=Y,ct={...$,...Rt},Mt=N=>{K=!0,E.has(N)&&(I=!0,E.delete(N)),Y.needsAnimating[N]=!0;const X=a.getValue(N);X&&(X.liveStyle=!1)};for(const N in ct){const X=Rt[N],ot=$[N];if(L.hasOwnProperty(N))continue;let bt=!1;Fr(X)&&Fr(ot)?bt=!td(X,ot):bt=X!==ot,bt?X!=null?Mt(N):E.add(N):X!==void 0&&E.has(N)?Mt(N):Y.protectedKeys[N]=!0}Y.prevProp=Q,Y.prevResolvedValues=Rt,Y.isActive&&(L={...L,...Rt}),r&&a.blockInitialAnimation&&(K=!1);const mt=k&&J;K&&(!mt||I)&&b.push(...at.map(N=>{const X={type:H};if(typeof N=="string"&&r&&!mt&&a.manuallyAnimateOnMount&&a.parent){const{parent:ot}=a,bt=Xa(ot,N);if(ot.enteringChildren&&bt){const{delayChildren:Wt}=bt.transition||{};X.delay=I1(ot.enteringChildren,a,Wt)}}return{animation:N,options:X}}))}if(E.size){const U={};if(typeof y.initial!="boolean"){const H=Xa(a,Array.isArray(y.initial)?y.initial[0]:y.initial);H&&H.transition&&(U.transition=H.transition)}E.forEach(H=>{const Y=a.getBaseTarget(H),Q=a.getValue(H);Q&&(Q.liveStyle=!0),U[H]=Y??null}),b.push({animation:U})}let B=!!b.length;return r&&(y.initial===!1||y.initial===y.animate)&&!a.manuallyAnimateOnMount&&(B=!1),r=!1,B?i(b):Promise.resolve()}function g(p,y){if(u[p].isActive===y)return Promise.resolve();a.variantChildren?.forEach(b=>b.animationState?.setActive(p,y)),u[p].isActive=y;const v=d(p);for(const b in u)u[b].protectedKeys={};return v}return{animateChanges:d,setActive:g,setAnimateFunction:h,getState:()=>u,reset:()=>{u=nd()}}}function Zv(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!td(i,a):!1}function fa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nd(){return{animate:fa(!0),whileInView:fa(),whileHover:fa(),whileTap:fa(),whileDrag:fa(),whileFocus:fa(),exit:fa()}}class Hn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class Uv extends Hn{constructor(i){super(i),i.animationState||(i.animationState=Nv(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();ss(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:u}=this.node.prevProps||{};i!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let _v=0;class Gv extends Hn{constructor(){super(...arguments),this.id=_v++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:u}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const c=this.node.animationState.setActive("exit",!i);u&&!i&&c.then(()=>{u(this.id)})}mount(){const{register:i,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const qv={animation:{Feature:Uv},exit:{Feature:Gv}};function Ki(a,i,u,r={passive:!0}){return a.addEventListener(i,u,r),()=>a.removeEventListener(i,u)}function Fi(a){return{point:{x:a.pageX,y:a.pageY}}}const Yv=a=>i=>Rr(i)&&a(i,Fi(i));function Qi(a,i,u,r){return Ki(a,i,Yv(u),r)}const ad=1e-4,Xv=1-ad,kv=1+ad,id=.01,Kv=0-id,Fv=0+id;function oe(a){return a.max-a.min}function Qv(a,i,u){return Math.abs(a-i)<=u}function ld(a,i,u,r=.5){a.origin=r,a.originPoint=Nt(i.min,i.max,a.origin),a.scale=oe(u)/oe(i),a.translate=Nt(u.min,u.max,a.origin)-a.originPoint,(a.scale>=Xv&&a.scale<=kv||isNaN(a.scale))&&(a.scale=1),(a.translate>=Kv&&a.translate<=Fv||isNaN(a.translate))&&(a.translate=0)}function Pi(a,i,u,r){ld(a.x,i.x,u.x,r?r.originX:void 0),ld(a.y,i.y,u.y,r?r.originY:void 0)}function sd(a,i,u){a.min=u.min+i.min,a.max=a.min+oe(i)}function Pv(a,i,u){sd(a.x,i.x,u.x),sd(a.y,i.y,u.y)}function ud(a,i,u){a.min=i.min-u.min,a.max=a.min+oe(i)}function cs(a,i,u){ud(a.x,i.x,u.x),ud(a.y,i.y,u.y)}function ze(a){return[a("x"),a("y")]}const rd=({current:a})=>a?a.ownerDocument.defaultView:null,od=(a,i)=>Math.abs(a-i);function Jv(a,i){const u=od(a.x,i.x),r=od(a.y,i.y);return Math.sqrt(u**2+r**2)}class cd{constructor(i,u,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Wr(this.lastMoveEventInfo,this.history),L=this.startEvent!==null,O=Jv(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!L&&!O)return;const{point:B}=E,{timestamp:U}=ee;this.history.push({...B,timestamp:U});const{onStart:H,onMove:Y}=this.handlers;L||(H&&H(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,E)},this.handlePointerMove=(E,L)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=$r(L,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(E,L)=>{this.end();const{onEnd:O,onSessionEnd:B,resumeAnimation:U}=this.handlers;if(this.dragSnapToOrigin&&U&&U(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const H=Wr(E.type==="pointercancel"?this.lastMoveEventInfo:$r(L,this.transformPagePoint),this.history);this.startEvent&&O&&O(E,H),B&&B(E,H)},!Rr(i))return;this.dragSnapToOrigin=h,this.handlers=u,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const g=Fi(i),p=$r(g,this.transformPagePoint),{point:y}=p,{timestamp:v}=ee;this.history=[{...y,timestamp:v}];const{onSessionStart:b}=u;b&&b(i,Wr(p,this.history)),this.removeListeners=Bi(Qi(this.contextWindow,"pointermove",this.handlePointerMove),Qi(this.contextWindow,"pointerup",this.handlePointerUp),Qi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Cn(this.updatePoint)}}function $r(a,i){return i?{point:i(a.point)}:a}function fd(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Wr({point:a},i){return{point:a,delta:fd(a,dd(i)),offset:fd(a,$v(i)),velocity:Wv(i,.1)}}function $v(a){return a[0]}function dd(a){return a[a.length-1]}function Wv(a,i){if(a.length<2)return{x:0,y:0};let u=a.length-1,r=null;const c=dd(a);for(;u>=0&&(r=a[u],!(c.timestamp-r.timestamp>$e(i)));)u--;if(!r)return{x:0,y:0};const h=Oe(c.timestamp-r.timestamp);if(h===0)return{x:0,y:0};const d={x:(c.x-r.x)/h,y:(c.y-r.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function Iv(a,{min:i,max:u},r){return i!==void 0&&a<i?a=r?Nt(i,a,r.min):Math.max(a,i):u!==void 0&&a>u&&(a=r?Nt(u,a,r.max):Math.min(a,u)),a}function hd(a,i,u){return{min:i!==void 0?a.min+i:void 0,max:u!==void 0?a.max+u-(a.max-a.min):void 0}}function t2(a,{top:i,left:u,bottom:r,right:c}){return{x:hd(a.x,u,c),y:hd(a.y,i,r)}}function md(a,i){let u=i.min-a.min,r=i.max-a.max;return i.max-i.min<a.max-a.min&&([u,r]=[r,u]),{min:u,max:r}}function e2(a,i){return{x:md(a.x,i.x),y:md(a.y,i.y)}}function n2(a,i){let u=.5;const r=oe(a),c=oe(i);return c>r?u=wi(i.min,i.max-r,a.min):r>c&&(u=wi(a.min,a.max-c,i.min)),an(0,1,u)}function a2(a,i){const u={};return i.min!==void 0&&(u.min=i.min-a.min),i.max!==void 0&&(u.max=i.max-a.min),u}const Ir=.35;function i2(a=Ir){return a===!1?a=0:a===!0&&(a=Ir),{x:pd(a,"left","right"),y:pd(a,"top","bottom")}}function pd(a,i,u){return{min:yd(a,i),max:yd(a,u)}}function yd(a,i){return typeof a=="number"?a:a[i]||0}const l2=new WeakMap;class s2{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:u=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),u&&this.snapToCursor(Fi(b).point)},d=(b,E)=>{const{drag:L,dragPropagation:O,onDragStart:B}=this.getProps();if(L&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=dg(L),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=E,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(H=>{let Y=this.getAxisMotionValue(H).get()||0;if(We.test(Y)){const{projection:Q}=this.visualElement;if(Q&&Q.layout){const q=Q.layout.layoutBox[H];q&&(Y=oe(q)*(parseFloat(Y)/100))}}this.originPoint[H]=Y}),B&&zt.postRender(()=>B(b,E)),Qr(this.visualElement,"transform");const{animationState:U}=this.visualElement;U&&U.setActive("whileDrag",!0)},g=(b,E)=>{this.latestPointerEvent=b,this.latestPanInfo=E;const{dragPropagation:L,dragDirectionLock:O,onDirectionLock:B,onDrag:U}=this.getProps();if(!L&&!this.openDragLock)return;const{offset:H}=E;if(O&&this.currentDirection===null){this.currentDirection=u2(H),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",E.point,H),this.updateAxis("y",E.point,H),this.visualElement.render(),U&&U(b,E)},p=(b,E)=>{this.latestPointerEvent=b,this.latestPanInfo=E,this.stop(b,E),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>ze(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new cd(i,{onSessionStart:h,onStart:d,onMove:g,onSessionEnd:p,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:rd(this.visualElement)})}stop(i,u){const r=i||this.latestPointerEvent,c=u||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:g}=this.getProps();g&&zt.postRender(()=>g(r,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:u}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}updateAxis(i,u,r){const{drag:c}=this.getProps();if(!r||!fs(i,c,this.currentDirection))return;const h=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=Iv(d,this.constraints[i],this.elastic[i])),h.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:u}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&_a(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=t2(r.layoutBox,i):this.constraints=!1,this.elastic=i2(u),c!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ze(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=a2(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:u}=this.getProps();if(!i||!_a(i))return!1;const r=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=rv(r,c.root,this.visualElement.getTransformPagePoint());let d=e2(c.layout.layoutBox,h);if(u){const g=u(lv(d));this.hasMutatedConstraints=!!g,g&&(d=B1(g))}return d}startAnimation(i){const{drag:u,dragMomentum:r,dragElastic:c,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:g}=this.getProps(),p=this.constraints||{},y=ze(v=>{if(!fs(v,u,this.currentDirection))return;let b=p&&p[v]||{};d&&(b={min:0,max:0});const E=c?200:1e6,L=c?40:1e7,O={type:"inertia",velocity:r?i[v]:0,bounceStiffness:E,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(v,O)});return Promise.all(y).then(g)}startAxisValueAnimation(i,u){const r=this.getAxisMotionValue(i);return Qr(this.visualElement,i),r.start(Pr(i,r,0,u,this.visualElement,!1))}stopAnimation(){ze(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){ze(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const u=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),c=r[u];return c||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){ze(u=>{const{drag:r}=this.getProps();if(!fs(u,r,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(u);if(c&&c.layout){const{min:d,max:g}=c.layout.layoutBox[u];h.set(i[u]-Nt(d,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:u}=this.getProps(),{projection:r}=this.visualElement;if(!_a(u)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};ze(d=>{const g=this.getAxisMotionValue(d);if(g&&this.constraints!==!1){const p=g.get();c[d]=n2({min:p,max:p},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(d=>{if(!fs(d,i,null))return;const g=this.getAxisMotionValue(d),{min:p,max:y}=this.constraints[d];g.set(Nt(p,y,c[d]))})}addListeners(){if(!this.visualElement.current)return;l2.set(this.visualElement,this);const i=this.visualElement.current,u=Qi(i,"pointerdown",p=>{const{drag:y,dragListener:v=!0}=this.getProps();y&&v&&this.start(p)}),r=()=>{const{dragConstraints:p}=this.getProps();_a(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",r);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),zt.read(r);const d=Ki(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:y})=>{this.isDragging&&y&&(ze(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=p[v].translate,b.set(b.get()+p[v].translate))}),this.visualElement.render())}));return()=>{d(),u(),h(),g&&g()}}getProps(){const i=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:d=Ir,dragMomentum:g=!0}=i;return{...i,drag:u,dragDirectionLock:r,dragPropagation:c,dragConstraints:h,dragElastic:d,dragMomentum:g}}}function fs(a,i,u){return(i===!0||i===a)&&(u===null||u===a)}function u2(a,i=10){let u=null;return Math.abs(a.y)>i?u="y":Math.abs(a.x)>i&&(u="x"),u}class r2 extends Hn{constructor(i){super(i),this.removeGroupControls=je,this.removeListeners=je,this.controls=new s2(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||je}unmount(){this.removeGroupControls(),this.removeListeners()}}const gd=a=>(i,u)=>{a&&zt.postRender(()=>a(i,u))};class o2 extends Hn{constructor(){super(...arguments),this.removePointerDownListener=je}onPointerDown(i){this.session=new cd(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rd(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:u,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:gd(i),onStart:gd(u),onMove:r,onEnd:(h,d)=>{delete this.session,c&&zt.postRender(()=>c(h,d))}}}mount(){this.removePointerDownListener=Qi(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ds={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let to=!1;class c2 extends f.Component{componentDidMount(){const{visualElement:i,layoutGroup:u,switchLayoutGroup:r,layoutId:c}=this.props,{projection:h}=i;h&&(u.group&&u.group.add(h),r&&r.register&&c&&r.register(h),to&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),ds.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:u,visualElement:r,drag:c,isPresent:h}=this.props,{projection:d}=r;return d&&(d.isPresent=h,to=!0,c||i.layoutDependency!==u||u===void 0||i.isPresent!==h?d.willUpdate():this.safeToRemove(),i.isPresent!==h&&(h?d.promote():d.relegate()||zt.postRender(()=>{const g=d.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Dr.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:u,switchLayoutGroup:r}=this.props,{projection:c}=i;to=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function vd(a){const[i,u]=y1(),r=f.useContext(Xu);return A.jsx(c2,{...a,layoutGroup:r,switchLayoutGroup:f.useContext(O1),isPresent:i,safeToRemove:u})}function f2(a,i,u){const r=re(a)?a:Za(a);return r.start(Pr("",r,i,u)),r.animation}const d2=(a,i)=>a.depth-i.depth;class h2{constructor(){this.children=[],this.isDirty=!1}add(i){Fu(this.children,i),this.isDirty=!0}remove(i){Qu(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(d2),this.isDirty=!1,this.children.forEach(i)}}function m2(a,i){const u=de.now(),r=({timestamp:c})=>{const h=c-u;h>=i&&(Cn(r),a(h-i))};return zt.setup(r,!0),()=>Cn(r)}const Sd=["TopLeft","TopRight","BottomLeft","BottomRight"],p2=Sd.length,bd=a=>typeof a=="string"?parseFloat(a):a,Ed=a=>typeof a=="number"||st.test(a);function y2(a,i,u,r,c,h){c?(a.opacity=Nt(0,u.opacity??1,g2(r)),a.opacityExit=Nt(i.opacity??1,0,v2(r))):h&&(a.opacity=Nt(i.opacity??1,u.opacity??1,r));for(let d=0;d<p2;d++){const g=`border${Sd[d]}Radius`;let p=Ad(i,g),y=Ad(u,g);if(p===void 0&&y===void 0)continue;p||(p=0),y||(y=0),p===0||y===0||Ed(p)===Ed(y)?(a[g]=Math.max(Nt(bd(p),bd(y),r),0),(We.test(y)||We.test(p))&&(a[g]+="%")):a[g]=y}(i.rotate||u.rotate)&&(a.rotate=Nt(i.rotate||0,u.rotate||0,r))}function Ad(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const g2=Td(0,.5,pf),v2=Td(.5,.95,je);function Td(a,i,u){return r=>r<a?0:r>i?1:u(wi(a,i,r))}function Md(a,i){a.min=i.min,a.max=i.max}function Ke(a,i){Md(a.x,i.x),Md(a.y,i.y)}function xd(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}function Vd(a,i,u,r,c){return a-=i,a=os(a,1/u,r),c!==void 0&&(a=os(a,1/c,r)),a}function S2(a,i=0,u=1,r=.5,c,h=a,d=a){if(We.test(i)&&(i=parseFloat(i),i=Nt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let g=Nt(h.min,h.max,r);a===h&&(g-=i),a.min=Vd(a.min,i,u,g,c),a.max=Vd(a.max,i,u,g,c)}function Ld(a,i,[u,r,c],h,d){S2(a,i[u],i[r],i[c],i.scale,h,d)}const b2=["x","scaleX","originX"],E2=["y","scaleY","originY"];function Cd(a,i,u,r){Ld(a.x,i,b2,u?u.x:void 0,r?r.x:void 0),Ld(a.y,i,E2,u?u.y:void 0,r?r.y:void 0)}function Dd(a){return a.translate===0&&a.scale===1}function Rd(a){return Dd(a.x)&&Dd(a.y)}function Hd(a,i){return a.min===i.min&&a.max===i.max}function A2(a,i){return Hd(a.x,i.x)&&Hd(a.y,i.y)}function jd(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function Od(a,i){return jd(a.x,i.x)&&jd(a.y,i.y)}function zd(a){return oe(a.x)/oe(a.y)}function Bd(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}class T2{constructor(){this.members=[]}add(i){Fu(this.members,i),i.scheduleRender()}remove(i){if(Qu(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(i){const u=this.members.findIndex(c=>i===c);if(u===0)return!1;let r;for(let c=u;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){r=h;break}}return r?(this.promote(r),!0):!1}promote(i,u){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender(),i.resumeFrom=r,u&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:u,resumingFrom:r}=i;u.onExitComplete&&u.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function M2(a,i,u){let r="";const c=a.x.translate/i.x,h=a.y.translate/i.y,d=u?.z||0;if((c||h||d)&&(r=`translate3d(${c}px, ${h}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),u){const{transformPerspective:y,rotate:v,rotateX:b,rotateY:E,skewX:L,skewY:O}=u;y&&(r=`perspective(${y}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),E&&(r+=`rotateY(${E}deg) `),L&&(r+=`skewX(${L}deg) `),O&&(r+=`skewY(${O}deg) `)}const g=a.x.scale*i.x,p=a.y.scale*i.y;return(g!==1||p!==1)&&(r+=`scale(${g}, ${p})`),r||"none"}const eo=["","X","Y","Z"],x2=1e3;let V2=0;function no(a,i,u,r){const{latestValues:c}=i;c[a]&&(u[a]=c[a],i.setStaticValue(a,0),r&&(r[a]=0))}function wd(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const u=$1(i);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(u,"transform",zt,!(c||h))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&wd(r)}function Nd({attachResizeListener:a,defaultParent:i,measureScroll:u,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},g=i?.()){this.id=V2++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(D2),this.nodes.forEach(O2),this.nodes.forEach(z2),this.nodes.forEach(R2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new h2)}addEventListener(d,g){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new $u),this.eventHandlers.get(d).add(g)}notifyListeners(d,...g){const p=this.eventHandlers.get(d);p&&p.notify(...g)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=m1(d)&&!vg(d),this.instance=d;const{layoutId:g,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||g)&&(this.isLayoutDirty=!0),a){let v,b=0;const E=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{b=window.innerWidth}),a(d,()=>{const L=window.innerWidth;L!==b&&(b=L,this.root.updateBlockedByResize=!0,v&&v(),v=m2(E,250),ds.hasAnimatedSinceResize&&(ds.hasAnimatedSinceResize=!1,this.nodes.forEach(_d)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&y&&(g||p)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:E,layout:L})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||y.getDefaultTransition()||U2,{onLayoutAnimationStart:B,onLayoutAnimationComplete:U}=y.getProps(),H=!this.targetLayout||!Od(this.targetLayout,L),Y=!b&&E;if(this.options.layoutRoot||this.resumeFrom||Y||b&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Q={...Vr(O,"layout"),onPlay:B,onComplete:U};(y.shouldReduceMotion||this.options.layoutRoot)&&(Q.delay=0,Q.type=!1),this.startAnimation(Q),this.setAnimationOrigin(v,Y)}else b||_d(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=L})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cn(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(B2),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wd(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:g,layout:p}=this.options;if(g===void 0&&!p)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zd);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ud);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(j2),this.nodes.forEach(L2),this.nodes.forEach(C2)):this.nodes.forEach(Ud),this.clearAllSnapshots();const g=de.now();ee.delta=an(0,1e3/60,g-ee.timestamp),ee.timestamp=g,ee.isProcessing=!0,tr.update.process(ee),tr.preRender.process(ee),tr.render.process(ee),ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Dr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(H2),this.sharedNodes.forEach(w2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oe(this.snapshot.measuredBox.x)&&!oe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(g=!1),g&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:p,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!Rd(this.projectionDelta),p=this.getTransformTemplate(),y=p?p(this.latestValues,""):void 0,v=y!==this.prevTransformTemplateValue;d&&this.instance&&(g||ca(this.latestValues)||v)&&(c(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const g=this.measurePageBox();let p=this.removeElementScroll(g);return d&&(p=this.removeTransform(p)),_2(p),{animationId:this.root.animationId,measuredBox:g,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Pt();const g=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(G2))){const{scroll:y}=this.root;y&&(Ga(g.x,y.offset.x),Ga(g.y,y.offset.y))}return g}removeElementScroll(d){const g=Pt();if(Ke(g,d),this.scroll?.wasRoot)return g;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:v,options:b}=y;y!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Ke(g,d),Ga(g.x,v.offset.x),Ga(g.y,v.offset.y))}return g}applyTransform(d,g=!1){const p=Pt();Ke(p,d);for(let y=0;y<this.path.length;y++){const v=this.path[y];!g&&v.options.layoutScroll&&v.scroll&&v!==v.root&&qa(p,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),ca(v.latestValues)&&qa(p,v.latestValues)}return ca(this.latestValues)&&qa(p,this.latestValues),p}removeTransform(d){const g=Pt();Ke(g,d);for(let p=0;p<this.path.length;p++){const y=this.path[p];if(!y.instance||!ca(y.latestValues))continue;Xr(y.latestValues)&&y.updateSnapshot();const v=Pt(),b=y.measurePageBox();Ke(v,b),Cd(g,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,v)}return ca(this.latestValues)&&Cd(g,this.latestValues),g}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==g;if(!(d||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=ee.timestamp;const E=this.getClosestProjectingParent();E&&this.linkedParentVersion!==E.layoutVersion&&!E.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(E&&E.layout?this.createRelativeTarget(E,this.layout.layoutBox,E.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Pv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ke(this.target,this.layout.layoutBox),U1(this.target,this.targetDelta)):Ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?this.createRelativeTarget(E,this.target,E.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Xr(this.parent.latestValues)||w1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,g,p){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),cs(this.relativeTargetOrigin,g,p),Ke(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),g=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===ee.timestamp&&(p=!1),p)return;const{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;Ke(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,E=this.treeScale.y;uv(this.layoutCorrected,this.treeScale,this.path,g),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Pt());const{target:L}=d;if(!L){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xd(this.prevProjectionDelta.x,this.projectionDelta.x),xd(this.prevProjectionDelta.y,this.projectionDelta.y)),Pi(this.projectionDelta,this.layoutCorrected,L,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==E||!Bd(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bd(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",L))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ya(),this.projectionDelta=Ya(),this.projectionDeltaWithTransform=Ya()}setAnimationOrigin(d,g=!1){const p=this.snapshot,y=p?p.latestValues:{},v={...this.latestValues},b=Ya();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const E=Pt(),L=p?p.source:void 0,O=this.layout?this.layout.source:void 0,B=L!==O,U=this.getStack(),H=!U||U.members.length<=1,Y=!!(B&&!H&&this.options.crossfade===!0&&!this.path.some(Z2));this.animationProgress=0;let Q;this.mixTargetDelta=q=>{const z=q/1e3;Gd(b.x,d.x,z),Gd(b.y,d.y,z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cs(E,this.layout.layoutBox,this.relativeParent.layout.layoutBox),N2(this.relativeTarget,this.relativeTargetOrigin,E,z),Q&&A2(this.relativeTarget,Q)&&(this.isProjectionDirty=!1),Q||(Q=Pt()),Ke(Q,this.relativeTarget)),B&&(this.animationValues=v,y2(v,y,this.latestValues,z,Y,H)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{ds.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Za(0)),this.currentAnimation=f2(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),d.onUpdate&&d.onUpdate(g)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(x2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:g,target:p,layout:y,latestValues:v}=d;if(!(!g||!p||!y)){if(this!==d&&this.layout&&y&&Kd(this.options.animationType,this.layout.layoutBox,y.layoutBox)){p=this.target||Pt();const b=oe(this.layout.layoutBox.x);p.x.min=d.target.x.min,p.x.max=p.x.min+b;const E=oe(this.layout.layoutBox.y);p.y.min=d.target.y.min,p.y.max=p.y.min+E}Ke(g,p),qa(g,v),Pi(this.projectionDeltaWithTransform,this.layoutCorrected,g,v)}}registerSharedNode(d,g){this.sharedNodes.has(d)||this.sharedNodes.set(d,new T2),this.sharedNodes.get(d).add(g);const y=g.options.initialPromotionConfig;g.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(g):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:g,preserveFollowOpacity:p}={}){const y=this.getStack();y&&y.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let g=!1;const{latestValues:p}=d;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(g=!0),!g)return;const y={};p.z&&no("z",d,y,this.animationValues);for(let v=0;v<eo.length;v++)no(`rotate${eo[v]}`,d,y,this.animationValues),no(`skew${eo[v]}`,d,y,this.animationValues);d.render();for(const v in y)d.setStaticValue(v,y[v]),this.animationValues&&(this.animationValues[v]=y[v]);d.scheduleRender()}applyProjectionStyles(d,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=rs(g?.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none";return}const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=rs(g?.pointerEvents)||""),this.hasProjected&&!ca(this.latestValues)&&(d.transform=p?p({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=y.animationValues||y.latestValues;this.applyTransformsToTarget();let b=M2(this.projectionDeltaWithTransform,this.treeScale,v);p&&(b=p(v,b)),d.transform=b;const{x:E,y:L}=this.projectionDelta;d.transformOrigin=`${E.origin*100}% ${L.origin*100}% 0`,y.animationValues?d.opacity=y===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const O in Br){if(v[O]===void 0)continue;const{correct:B,applyTo:U,isCSSVariable:H}=Br[O],Y=b==="none"?v[O]:B(v[O],y);if(U){const Q=U.length;for(let q=0;q<Q;q++)d[U[q]]=Y}else H?this.options.visualElement.renderState.vars[O]=Y:d[O]=Y}this.options.layoutId&&(d.pointerEvents=y===this?rs(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Zd),this.root.sharedNodes.clear()}}}function L2(a){a.updateLayout()}function C2(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:r}=a.layout,{animationType:c}=a.options,h=i.source!==a.layout.source;c==="size"?ze(v=>{const b=h?i.measuredBox[v]:i.layoutBox[v],E=oe(b);b.min=u[v].min,b.max=b.min+E}):Kd(c,i.layoutBox,u)&&ze(v=>{const b=h?i.measuredBox[v]:i.layoutBox[v],E=oe(u[v]);b.max=b.min+E,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+E)});const d=Ya();Pi(d,u,i.layoutBox);const g=Ya();h?Pi(g,a.applyTransform(r,!0),i.measuredBox):Pi(g,u,i.layoutBox);const p=!Rd(d);let y=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:E}=v;if(b&&E){const L=Pt();cs(L,i.layoutBox,b.layoutBox);const O=Pt();cs(O,u,E.layoutBox),Od(L,O)||(y=!0),v.options.layoutRoot&&(a.relativeTarget=O,a.relativeTargetOrigin=L,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:g,layoutDelta:d,hasLayoutChanged:p,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function D2(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function R2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function H2(a){a.clearSnapshot()}function Zd(a){a.clearMeasurements()}function Ud(a){a.isLayoutDirty=!1}function j2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function _d(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function O2(a){a.resolveTargetDelta()}function z2(a){a.calcProjection()}function B2(a){a.resetSkewAndRotation()}function w2(a){a.removeLeadSnapshot()}function Gd(a,i,u){a.translate=Nt(i.translate,0,u),a.scale=Nt(i.scale,1,u),a.origin=i.origin,a.originPoint=i.originPoint}function qd(a,i,u,r){a.min=Nt(i.min,u.min,r),a.max=Nt(i.max,u.max,r)}function N2(a,i,u,r){qd(a.x,i.x,u.x,r),qd(a.y,i.y,u.y,r)}function Z2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const U2={duration:.45,ease:[.4,0,.1,1]},Yd=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Xd=Yd("applewebkit/")&&!Yd("chrome/")?Math.round:je;function kd(a){a.min=Xd(a.min),a.max=Xd(a.max)}function _2(a){kd(a.x),kd(a.y)}function Kd(a,i,u){return a==="position"||a==="preserve-aspect"&&!Qv(zd(i),zd(u),.2)}function G2(a){return a!==a.root&&a.scroll?.wasRoot}const q2=Nd({attachResizeListener:(a,i)=>Ki(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ao={current:void 0},Fd=Nd({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!ao.current){const a=new q2({});a.mount(window),a.setOptions({layoutScroll:!0}),ao.current=a}return ao.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Y2={pan:{Feature:o2},drag:{Feature:r2,ProjectionNode:Fd,MeasureLayout:vd}};function Qd(a,i,u){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,h=r[c];h&&zt.postRender(()=>h(i,Fi(i)))}class X2 extends Hn{mount(){const{current:i}=this.node;i&&(this.unmount=hg(i,(u,r)=>(Qd(this.node,r,"Start"),c=>Qd(this.node,c,"End"))))}unmount(){}}class k2 extends Hn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Bi(Ki(this.node.current,"focus",()=>this.onFocus()),Ki(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Pd(a,i,u){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),h=r[c];h&&zt.postRender(()=>h(i,Fi(i)))}class K2 extends Hn{mount(){const{current:i}=this.node;i&&(this.unmount=gg(i,(u,r)=>(Pd(this.node,r,"Start"),(c,{success:h})=>Pd(this.node,c,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const io=new WeakMap,lo=new WeakMap,F2=a=>{const i=io.get(a.target);i&&i(a)},Q2=a=>{a.forEach(F2)};function P2({root:a,...i}){const u=a||document;lo.has(u)||lo.set(u,{});const r=lo.get(u),c=JSON.stringify(i);return r[c]||(r[c]=new IntersectionObserver(Q2,{root:a,...i})),r[c]}function J2(a,i,u){const r=P2(i);return io.set(a,u),r.observe(a),()=>{io.delete(a),r.unobserve(a)}}const $2={some:0,all:1};class W2 extends Hn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:u,margin:r,amount:c="some",once:h}=i,d={root:u?u.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:$2[c]},g=p=>{const{isIntersecting:y}=p;if(this.isInView===y||(this.isInView=y,h&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),E=y?v:b;E&&E(p)};return J2(this.node.current,d,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:u}=this.node;["amount","margin","root"].some(I2(i,u))&&this.startObserver()}unmount(){}}function I2({viewport:a={}},{viewport:i={}}={}){return u=>a[u]!==i[u]}const t3={...qv,...{inView:{Feature:W2},tap:{Feature:K2},focus:{Feature:k2},hover:{Feature:X2}},...Y2,...{layout:{ProjectionNode:Fd,MeasureLayout:vd}}},e3=iv(t3,gv);function n3(a="(max-width: 768px)"){const[i,u]=f.useState({isMobile:!1,isPortrait:!1});return f.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=navigator?.userAgent??"",c=/iPhone|Android/i.test(r),h=window.matchMedia(a),d=window.matchMedia("(orientation: portrait)"),g=()=>u({isMobile:h.matches||c,isPortrait:d.matches});return g(),h.addEventListener("change",g),d.addEventListener("change",g),()=>{h.removeEventListener("change",g),d.removeEventListener("change",g)}},[a]),i}const a3={order:["top","center","seekbar","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group"},{key:"volume",items:["VolumBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"meta",items:["MetaBtn"]},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},i3={order:["top","center","bottom","seekbar"],top:[{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},l3={order:["top","center","seekbar","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group"},{key:"volume",items:["VolumBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},s3=768,Ji={pc:a3,mobile:i3,fullscreen:l3},u3={top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group",noPadding:!0},{key:"volume",items:["VolumBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]};function r3(a){const[i,u]=Z0("isActive",!1),r=f.useRef(null),c=f.useRef(!1),h=f.useRef(!1),d=f.useRef(0),g=a.options?.controlActiveTime||3e3,[p]=fe(),{isMobile:y,isPortrait:v}=n3(),{togglePlay:b,useTouch:E}=Ee(),[L,O]=f.useState(!1),B=(()=>{const $=a.layout??Ji;if("top"in $||"center"in $||"bottom"in $)return $;const ct=$,Mt={pc:ct.pc??Ji.pc,mobile:ct.mobile??Ji.mobile,fullscreen:ct.fullscreen??Ji.fullscreen,breakpoint:ct.breakpoint};return p.isFullscreen&&Mt.fullscreen?Mt.fullscreen:(L?Mt.mobile:Mt.pc)??Mt.pc??Mt.mobile??Mt.fullscreen??u3})(),U=h.current||p.isEnded,H=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},Y=()=>{H(),r.current=window.setTimeout(()=>{u(!1),c.current=!0,r.current=null},g)},Q=()=>{c.current=!1,d.current=Date.now(),i||u(!0),Y()},q=()=>{c.current||Q()};f.useEffect(()=>{if(typeof window>"u")return;const $=a.layout??Ji;if("top"in $||"center"in $||"bottom"in $){O(!1);return}const Mt=$.breakpoint??s3,mt=window.matchMedia(`(max-width: ${Mt}px)`),F=()=>O(mt.matches||y);return F(),typeof mt.addEventListener=="function"?(mt.addEventListener("change",F),()=>mt.removeEventListener("change",F)):(mt.addListener(F),()=>mt.removeListener(F))},[a.layout,y]);const z=$=>[$.top,$.center,$.bottom].some(Mt=>Mt?.some(mt=>(mt.items?.length?mt.items:["Blank"]).includes("SeekBar"))??!1),k=($,ct)=>{if(typeof $!="string")return f.isValidElement($)?f.cloneElement($,{pos:ct}):$;switch($){case"PlayBtn":return A.jsx(tf,{isMobile:y,isPortrait:v,pos:ct,text:{play:a.t?.("common.play")??"재생",pause:a.t?.("common.pause")??"일시정지"}});case"VolumBtn":return A.jsx(E4,{isMobile:y,isPortrait:v,pos:ct,text:{muteOn:a.t?.("common.muteOn")??"음소거",muteOff:a.t?.("common.muteOff")??"음소거 해제"}});case"TimeBtn":return A.jsx(y4,{isMobile:y,isPortrait:v,pos:ct});case"SubtitleBtn":return A.jsx(b4,{isMobile:y,isPortrait:v,pos:ct,text:{captionOn:a.t?.("common.captionOn")??"자막켜기",captionOff:a.t?.("common.captionOff")??"자막 끄기"}});case"FullscreenBtn":return A.jsx(S4,{isMobile:y,isPortrait:v,pos:ct,options:a.options,text:{fullOn:a.t?.("common.fullOn")??"전체화면",fullOff:a.t?.("common.fullOff")??"전체화면 해제"}});case"PipBtn":return A.jsx(T4,{isMobile:y,isPortrait:v,pos:ct,options:a.options,text:{miniPlayer:a.t?.("common.miniPlayer")??"미니플레이어"}});case"MetaBtn":return A.jsx(v4,{title:a.metaTitle??"",isMobile:y,isPortrait:v,pos:ct});case"BigPlayBtn":return U?A.jsx(p4,{isMobile:y,isPortrait:v}):null;case"SeekBar":return A.jsx(_0,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options,pos:ct});case"LevelSelectBtn":return A.jsx(g4,{options:a.options,text:{auto:a.t?.("common.auto")??"자동"}});case"SettingBtn":return A.jsx(A4,{isMobile:y,isPortrait:v,pos:ct,text:{setting:a.t?.("common.setting")??"설정"}});case"Blank":return A.jsx(ef,{});default:return null}},J=($,ct,Mt)=>{const F=($.items?.length?$.items:["Blank"]).map((N,X)=>{const ot=k(N,Mt);return ot?A.jsx(f.Fragment,{children:ot},`${ct}-${$.key}-${N}-${X}`):null}).filter(N=>N!==null);return F.length?$.wrapper==="Blank"?A.jsx(ef,{children:F},`${ct}-${$.key}`):$.wrapper==="Group"?A.jsx(Kl,{noPadding:!(F.length>1),cap:$.cap,children:F},`${ct}-${$.key}`):A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:F},`${ct}-${$.key}`):null},K=($,ct)=>{if(!$?.length)return null;if(ct!=="bottom")return $.map(mt=>J(mt,ct));let Mt="left";return $.map(mt=>{const F=mt.items?.length?mt.items:["Blank"],N=mt.wrapper==="Blank"||F.includes("Blank"),X=J(mt,ct,Mt);return N&&(Mt="right"),X})},I=!z(B),at=B.order??["top","center","seekbar","bottom"],Rt=()=>I?A.jsx("div",{children:A.jsx(_0,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options})}):null;return f.useEffect(()=>{y&&(h.current=!0)},[y]),A.jsxs(A.Fragment,{children:[p.isLoading&&A.jsx(nf,{poster:a.poster,options:a.options}),p.isWaiting&&A.jsx(nf,{}),p.isSettingModal&&A.jsx(x4,{text:{setting:a.t?.("common.setting")??"세팅",auto:a.t?.("common.auto")??"자동",notUse:a.t?.("common.notUse")??"사용안함",quality:a.t?.("settings.quality")??"해상도",autoplay:a.t?.("settings.autoplay")??"자동재생",playbackRate:a.t?.("settings.playbackRate")??"재생 속도",captions:a.t?.("settings.captions")??"자막"},vtt:a.src?.vtt,options:a.options}),!p.isLoading&&A.jsx(A.Fragment,{children:p.initPlay?A.jsx("div",{style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none"},onClick:()=>{E(),H(),Y()},onMouseEnter:()=>{q()},onMouseMove:()=>{Q()},onTouchStart:()=>{E(),H(),Y()},onMouseLeave:()=>{H(),Y(),c.current=!1},children:A.jsx(Lg,{children:(i||p.isEnded)&&A.jsx(e3.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",padding:"0.75rem",gap:"0.75rem",cursor:"default"},children:at.map($=>$==="top"?A.jsx("div",{style:{display:"flex",alignItems:"center"},children:K(B.top,"top")},"layout-top"):$==="center"?A.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!y&&!v&&b(),h.current=!0},onMouseLeave:()=>{h.current=!1},children:K(B.center,"center")},"layout-center"):$==="seekbar"?A.jsx("div",{children:A.jsx(f.Fragment,{children:Rt()})},"layout-seekbar"):$==="bottom"?A.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:K(B.bottom,"bottom")},"layout-bottom"):null)})})}):A.jsx(M4,{poster:a.poster,options:a.options})})]})}function Jd(a){const{accessKey:i,platform:u="pub",stage:r="prod",isDev:c=!1,hls:h,dashjs:d,options:g,layout:p}=a,[y,v]=f.useState(null),[b,E]=f.useState([]),[L,O]=f.useState(!1),[B,U]=Z0("playerOptions",g??{}),[H,Y]=f.useState(""),Q=0,q=location.host||"local";f.useEffect(()=>{if(!i)return;const I=new Lp({accessKey:i,appId:q,platform:u,stage:r,isDev:c});v(I)},[i,q,u,r,c]),f.useEffect(()=>{if(!y||L)return;(async()=>{if(await y.initialize(),y.isInitialized()){const at=y.getValidatedOptions(g);U(at),E(at?.playlist||[]),O(!0)}})()},[y,L,g,U]),f.useEffect(()=>{const I=globalThis;h&&(I.Hls=h),d&&(I.dashjs=d)},[h,d]),f.useEffect(()=>{const I=b?.[Q]?.file;if(!I){Y("");return}const at=I.toLowerCase();at.endsWith(".m3u8")?Y("hls"):at.endsWith(".mpd")?Y("dash"):at.endsWith(".mp4")?Y("mp4"):Y("")},[b,Q]),f.useEffect(()=>{if(!y||!H)return;const I=globalThis,at=h??I.Hls,Rt=d??I.dashjs;H==="hls"&&!at&&y.setErrorRun("E0015"),H==="dash"&&!Rt&&y.setErrorRun("E0016")},[H,y,h,d]);const z=b?.[Q],k=h??globalThis.Hls,J=d??globalThis.dashjs,K=()=>{if(!z)return null;switch(H){case"hls":return A.jsx(Zp,{src:z,hlsLib:k,options:B});case"dash":return A.jsx(Up,{src:z,dashLib:J,options:B});case"mp4":return A.jsx(_p,{src:z,options:B});default:return null}};return A.jsxs("div",{style:{position:"relative",maxHeight:"100dvh",width:"100%",height:"100%",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},children:[A.jsx(r3,{src:z,hlsLib:k,dashLib:J,options:B,poster:z?.poster,layout:p,metaTitle:z?.description?.title,t:I=>y?.$t(I)??I}),A.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:B?.aspectRatio||"16/9"},children:K()})]})}const $d=globalThis;$d.process||($d.process={env:{}});let Wd,so;const o3=(()=>{if(typeof document>"u")return"";const a=[];document.currentScript instanceof HTMLScriptElement&&a.push(document.currentScript),a.push(...Array.from(document.getElementsByTagName("script")));for(const i of a)if(i.src)try{const r=new URL(i.src,window.location.href).searchParams.get("accessKey");if(r)return r}catch{continue}return""})();function c3(a){return a||o3}const f3=a=>!a||typeof a!="object"?!1:"options"in a||"layout"in a||"platform"in a||"stage"in a||"hls"in a||"dashjs"in a||"accessKey"in a;function d3(a){if(!a)return;const i=globalThis,u=typeof a=="object"&&a!==null&&("MediaPlayer"in a||"MediaPlayerFactory"in a),r=typeof a=="function"||typeof a=="object"&&a!==null&&("isSupported"in a||"Events"in a);if(u&&!r){i.dashjs=a;return}if(r&&!u){i.Hls=a;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function h3(a){return typeof a!="string"||a.startsWith("#")||a.startsWith(".")||a.startsWith("[")||a.includes(" ")||a.includes(">")||a.includes(":")?a:typeof document<"u"&&document.getElementById(a)?`#${a}`:a}function m3(a){return A.jsx(Jd,{...a})}function uo(a,i,u={}){const r=typeof i=="string"?i:i?.accessKey,c=typeof i=="string"?u:i??{},h=f3(c)?c:{options:c},d=c3(r);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const g=typeof a=="string"?document.querySelector(a):a;if(!g)throw new Error("지정한 타겟을 찾을 수 없습니다.");const p=document.createElement("div");g.appendChild(p);const y=op.createRoot(p),v={...h,layout:h.layout??Wd,platform:h.platform??so?.platform,stage:h.stage??so?.stage},b=(L={})=>{y.render(A.jsx(Jd,{...v,...L,accessKey:d}))};return b(),{destroy:()=>{y.unmount(),p.parentNode&&p.parentNode.removeChild(p)},container:p,render:b}}class ka{destroy;container;render;static use(i){return d3(i),ka}static layout(i){return Wd=i,ka}static config(i){return so=i,ka}constructor(i,u,r={}){const c=uo(h3(i),u,r);this.destroy=c.destroy,this.container=c.container,this.render=c.render}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:uo},window.ncplayer=ka),xn.Ncplayer=ka,xn.VpePlayer=m3,xn.setup=uo,Object.defineProperty(xn,Symbol.toStringTag,{value:"Module"})}));
17
+ `),()=>{O.contains(L)&&O.removeChild(L)}},[i]),x.jsx(Xv,{isPresent:i,childRef:d,sizeRef:f,children:C.cloneElement(a,{ref:m})})}const Fv=({children:a,initial:i,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:f,anchorX:g,root:m})=>{const p=Ir(Kv),y=C.useId();let S=!0,v=C.useMemo(()=>(S=!1,{id:y,initial:i,isPresent:s,custom:c,onExitComplete:z=>{p.set(z,!0);for(const j of p.values())if(!j)return;o&&o()},register:z=>(p.set(z,!1),()=>p.delete(z))}),[s,p,o]);return d&&S&&(v={...v}),C.useMemo(()=>{p.forEach((z,j)=>p.set(j,!1))},[s]),C.useEffect(()=>{!s&&!p.size&&o&&o()},[s]),f==="popLayout"&&(a=x.jsx(Zv,{isPresent:s,anchorX:g,root:m,children:a})),x.jsx(ns.Provider,{value:v,children:a})};function Kv(){return new Map}function Td(a=!0){const i=C.useContext(ns);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:c}=i,d=C.useId();C.useEffect(()=>{if(a)return c(d)},[a]);const f=C.useCallback(()=>a&&o&&o(d),[d,o,a]);return!s&&o?[!1,f]:[!0]}const cs=a=>a.key||"";function Ed(a){const i=[];return C.Children.forEach(a,s=>{C.isValidElement(s)&&i.push(s)}),i}const Qv=({children:a,custom:i,initial:s=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:g="left",root:m})=>{const[p,y]=Td(f),S=C.useMemo(()=>Ed(a),[a]),v=f&&!p?[]:S.map(cs),z=C.useRef(!0),j=C.useRef(S),L=Ir(()=>new Map),[O,A]=C.useState(S),[k,G]=C.useState(S);c0(()=>{z.current=!1,j.current=S;for(let F=0;F<k.length;F++){const V=cs(k[F]);v.includes(V)?L.delete(V):L.get(V)!==!0&&L.set(V,!1)}},[k,v.length,v.join("-")]);const P=[];if(S!==O){let F=[...S];for(let V=0;V<k.length;V++){const N=k[V],tt=cs(N);v.includes(tt)||(F.splice(V,0,N),P.push(N))}return d==="wait"&&P.length&&(F=P),G(Ed(F)),A(S),null}const{forceRender:_}=C.useContext(Jr);return x.jsx(x.Fragment,{children:k.map(F=>{const V=cs(F),N=f&&!p?!1:S===k||v.includes(V),tt=()=>{if(L.has(V))L.set(V,!0);else return;let lt=!0;L.forEach(ot=>{ot||(lt=!1)}),lt&&(_?.(),G(j.current),f&&y?.(),o&&o())};return x.jsx(Fv,{isPresent:N,initial:!z.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:N?void 0:tt,anchorX:g,children:F},V)})})},Md=C.createContext({strict:!1}),Ad={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"]},Ya={};for(const a in Ad)Ya[a]={isEnabled:i=>Ad[a].some(s=>!!i[s])};function Pv(a){for(const i in a)Ya[i]={...Ya[i],...a[i]}}const Jv=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 fs(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Jv.has(a)}let zd=a=>!fs(a);function Iv(a){typeof a=="function"&&(zd=i=>i.startsWith("on")?!fs(i):a(i))}try{Iv(require("@emotion/is-prop-valid").default)}catch{}function Wv(a,i,s){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||(zd(c)||s===!0&&fs(c)||!i&&!fs(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const ds=C.createContext({});function hs(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Qi(a){return typeof a=="string"||Array.isArray(a)}const Go=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ko=["initial",...Go];function ms(a){return hs(a.animate)||ko.some(i=>Qi(a[i]))}function Cd(a){return!!(ms(a)||a.variants)}function $v(a,i){if(ms(a)){const{initial:s,animate:o}=a;return{initial:s===!1||Qi(s)?s:void 0,animate:Qi(o)?o:void 0}}return a.inherit!==!1?i:{}}function t4(a){const{initial:i,animate:s}=$v(a,C.useContext(ds));return C.useMemo(()=>({initial:i,animate:s}),[wd(i),wd(s)])}function wd(a){return Array.isArray(a)?a.join(" "):a}function Dd(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Pi={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(rt.test(a))a=parseFloat(a);else return a;const s=Dd(a,i.target.x),o=Dd(a,i.target.y);return`${s}% ${o}%`}},e4={correct:(a,{treeScale:i,projectionDelta:s})=>{const o=a,c=jn.parse(a);if(c.length>5)return o;const d=jn.createTransformer(a),f=typeof c[0]!="number"?1:0,g=s.x.scale*i.x,m=s.y.scale*i.y;c[0+f]/=g,c[1+f]/=m;const p=Ut(g,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},Yo={borderRadius:{...Pi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pi,borderTopRightRadius:Pi,borderBottomLeftRadius:Pi,borderBottomRightRadius:Pi,boxShadow:e4};function Rd(a,{layout:i,layoutId:s}){return Ga.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Yo[a]||a==="opacity")}const n4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a4=_a.length;function i4(a,i,s){let o="",c=!0;for(let d=0;d<a4;d++){const f=_a[d],g=a[f];if(g===void 0)continue;let m=!0;if(typeof g=="number"?m=g===(f.startsWith("scale")?1:0):m=parseFloat(g)===0,!m||s){const p=fd(g,Oo[f]);if(!m){c=!1;const y=n4[f]||f;o+=`${y}(${p}) `}s&&(i[f]=p)}}return o=o.trim(),s?o=s(i,c?"":o):c&&(o="none"),o}function qo(a,i,s){const{style:o,vars:c,transformOrigin:d}=a;let f=!1,g=!1;for(const m in i){const p=i[m];if(Ga.has(m)){f=!0;continue}else if(w0(m)){c[m]=p;continue}else{const y=fd(p,Oo[m]);m.startsWith("origin")?(g=!0,d[m]=y):o[m]=y}}if(i.transform||(f||s?o.transform=i4(i,a.transform,s):o.transform&&(o.transform="none")),g){const{originX:m="50%",originY:p="50%",originZ:y=0}=d;o.transformOrigin=`${m} ${p} ${y}`}}const Xo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ld(a,i,s){for(const o in i)!de(i[o])&&!Rd(o,s)&&(a[o]=i[o])}function l4({transformTemplate:a},i){return C.useMemo(()=>{const s=Xo();return qo(s,i,a),Object.assign({},s.vars,s.style)},[i])}function s4(a,i){const s=a.style||{},o={};return Ld(o,s,a),Object.assign(o,l4(a,i)),o}function r4(a,i){const s={},o=s4(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=o,s}const o4={offset:"stroke-dashoffset",array:"stroke-dasharray"},u4={offset:"strokeDashoffset",array:"strokeDasharray"};function c4(a,i,s=1,o=0,c=!0){a.pathLength=1;const d=c?o4:u4;a[d.offset]=rt.transform(-o);const f=rt.transform(i),g=rt.transform(s);a[d.array]=`${f} ${g}`}function Bd(a,{attrX:i,attrY:s,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...g},m,p,y){if(qo(a,g,p),m){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:S,style:v}=a;S.transform&&(v.transform=S.transform,delete S.transform),(v.transform||S.transformOrigin)&&(v.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),v.transform&&(v.transformBox=y?.transformBox??"fill-box",delete S.transformBox),i!==void 0&&(S.x=i),s!==void 0&&(S.y=s),o!==void 0&&(S.scale=o),c!==void 0&&c4(S,c,d,f,!1)}const Vd=()=>({...Xo(),attrs:{}}),jd=a=>typeof a=="string"&&a.toLowerCase()==="svg";function f4(a,i,s,o){const c=C.useMemo(()=>{const d=Vd();return Bd(d,i,jd(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};Ld(d,a.style,a),c.style={...d,...c.style}}return c}const d4=["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 Zo(a){return typeof a!="string"||a.includes("-")?!1:!!(d4.indexOf(a)>-1||/[A-Z]/u.test(a))}function h4(a,i,s,{latestValues:o},c,d=!1){const g=(Zo(a)?f4:r4)(i,o,c,a),m=Wv(i,typeof a=="string",d),p=a!==C.Fragment?{...m,...g,ref:s}:{},{children:y}=i,S=C.useMemo(()=>de(y)?y.get():y,[y]);return C.createElement(a,{...p,children:S})}function Od(a){const i=[{},{}];return a?.values.forEach((s,o)=>{i[0][o]=s.get(),i[1][o]=s.getVelocity()}),i}function Fo(a,i,s,o){if(typeof i=="function"){const[c,d]=Od(o);i=i(s!==void 0?s:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=Od(o);i=i(s!==void 0?s:a.custom,c,d)}return i}function ps(a){return de(a)?a.get():a}function m4({scrapeMotionValuesFromProps:a,createRenderState:i},s,o,c){return{latestValues:p4(s,o,c,a),renderState:i()}}function p4(a,i,s,o){const c={},d=o(a,{});for(const v in d)c[v]=ps(d[v]);let{initial:f,animate:g}=a;const m=ms(a),p=Cd(a);i&&p&&!m&&a.inherit!==!1&&(f===void 0&&(f=i.initial),g===void 0&&(g=i.animate));let y=s?s.initial===!1:!1;y=y||f===!1;const S=y?g:f;if(S&&typeof S!="boolean"&&!hs(S)){const v=Array.isArray(S)?S:[S];for(let z=0;z<v.length;z++){const j=Fo(a,v[z]);if(j){const{transitionEnd:L,transition:O,...A}=j;for(const k in A){let G=A[k];if(Array.isArray(G)){const P=y?G.length-1:0;G=G[P]}G!==null&&(c[k]=G)}for(const k in L)c[k]=L[k]}}}return c}const Nd=a=>(i,s)=>{const o=C.useContext(ds),c=C.useContext(ns),d=()=>m4(a,i,o,c);return s?d():Ir(d)};function Ko(a,i,s){const{style:o}=a,c={};for(const d in o)(de(o[d])||i.style&&de(i.style[d])||Rd(d,a)||s?.getValue(d)?.liveStyle!==void 0)&&(c[d]=o[d]);return c}const g4=Nd({scrapeMotionValuesFromProps:Ko,createRenderState:Xo});function Hd(a,i,s){const o=Ko(a,i,s);for(const c in a)if(de(a[c])||de(i[c])){const d=_a.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=a[c]}return o}const y4=Nd({scrapeMotionValuesFromProps:Hd,createRenderState:Vd}),v4=Symbol.for("motionComponentSymbol");function qa(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function b4(a,i,s){return C.useCallback(o=>{o&&a.onMount&&a.onMount(o),i&&(o?i.mount(o):i.unmount()),s&&(typeof s=="function"?s(o):qa(s)&&(s.current=o))},[i])}const Qo=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ud="data-"+Qo("framerAppearId"),_d=C.createContext({});function S4(a,i,s,o,c){const{visualElement:d}=C.useContext(ds),f=C.useContext(Md),g=C.useContext(ns),m=C.useContext(_o).reducedMotion,p=C.useRef(null);o=o||f.renderer,!p.current&&o&&(p.current=o(a,{visualState:i,parent:d,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:m}));const y=p.current,S=C.useContext(_d);y&&!y.projection&&c&&(y.type==="html"||y.type==="svg")&&x4(p.current,s,c,S);const v=C.useRef(!1);C.useInsertionEffect(()=>{y&&v.current&&y.update(s,g)});const z=s[Ud],j=C.useRef(!!z&&!window.MotionHandoffIsComplete?.(z)&&window.MotionHasOptimisedAnimation?.(z));return c0(()=>{y&&(v.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),j.current&&y.animationState&&y.animationState.animateChanges())}),C.useEffect(()=>{y&&(!j.current&&y.animationState&&y.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(z)}),j.current=!1),y.enteringChildren=void 0)}),y}function x4(a,i,s,o){const{layoutId:c,layout:d,drag:f,dragConstraints:g,layoutScroll:m,layoutRoot:p,layoutCrossfade:y}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:Gd(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||g&&qa(g),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:m,layoutRoot:p})}function Gd(a){if(a)return a.options.allowProjection!==!1?a.projection:Gd(a.parent)}function Po(a,{forwardMotionProps:i=!1}={},s,o){s&&Pv(s);const c=Zo(a)?y4:g4;function d(g,m){let p;const y={...C.useContext(_o),...g,layoutId:T4(g)},{isStatic:S}=y,v=t4(g),z=c(g,S);if(!S&&Wr){E4();const j=M4(y);p=j.MeasureLayout,v.visualElement=S4(a,z,y,o,j.ProjectionNode)}return x.jsxs(ds.Provider,{value:v,children:[p&&v.visualElement?x.jsx(p,{visualElement:v.visualElement,...y}):null,h4(a,g,b4(z,v.visualElement,m),z,S,i)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=C.forwardRef(d);return f[v4]=a,f}function T4({layoutId:a}){const i=C.useContext(Jr).id;return i&&a!==void 0?i+"-"+a:a}function E4(a,i){C.useContext(Md).strict}function M4(a){const{drag:i,layout:s}=Ya;if(!i&&!s)return{};const o={...i,...s};return{MeasureLayout:i?.isEnabled(a)||s?.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function A4(a,i){if(typeof Proxy>"u")return Po;const s=new Map,o=(d,f)=>Po(d,f,a,i),c=(d,f)=>o(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?o:(s.has(f)||s.set(f,Po(f,void 0,a,i)),s.get(f))})}function kd({top:a,left:i,right:s,bottom:o}){return{x:{min:i,max:s},y:{min:a,max:o}}}function z4({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function C4(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function Jo(a){return a===void 0||a===1}function Io({scale:a,scaleX:i,scaleY:s}){return!Jo(a)||!Jo(i)||!Jo(s)}function ha(a){return Io(a)||Yd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Yd(a){return qd(a.x)||qd(a.y)}function qd(a){return a&&a!=="0%"}function gs(a,i,s){const o=a-s,c=i*o;return s+c}function Xd(a,i,s,o,c){return c!==void 0&&(a=gs(a,c,o)),gs(a,s,o)+i}function Wo(a,i=0,s=1,o,c){a.min=Xd(a.min,i,s,o,c),a.max=Xd(a.max,i,s,o,c)}function Zd(a,{x:i,y:s}){Wo(a.x,i.translate,i.scale,i.originPoint),Wo(a.y,s.translate,s.scale,s.originPoint)}const Fd=.999999999999,Kd=1.0000000000001;function w4(a,i,s,o=!1){const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let g=0;g<c;g++){d=s[g],f=d.projectionDelta;const{visualElement:m}=d.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Za(a,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Zd(a,f)),o&&ha(d.latestValues)&&Za(a,d.latestValues))}i.x<Kd&&i.x>Fd&&(i.x=1),i.y<Kd&&i.y>Fd&&(i.y=1)}function Xa(a,i){a.min=a.min+i,a.max=a.max+i}function Qd(a,i,s,o,c=.5){const d=Ut(a.min,a.max,c);Wo(a,i,s,d,o)}function Za(a,i){Qd(a.x,i.x,i.scaleX,i.scale,i.originX),Qd(a.y,i.y,i.scaleY,i.scale,i.originY)}function Pd(a,i){return kd(C4(a.getBoundingClientRect(),i))}function D4(a,i,s){const o=Pd(a,s),{scroll:c}=i;return c&&(Xa(o.x,c.offset.x),Xa(o.y,c.offset.y)),o}const Jd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fa=()=>({x:Jd(),y:Jd()}),Id=()=>({min:0,max:0}),It=()=>({x:Id(),y:Id()}),$o={current:null},Wd={current:!1};function R4(){if(Wd.current=!0,!!Wr)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>$o.current=a.matches;a.addEventListener("change",i),i()}else $o.current=!1}const L4=new WeakMap;function B4(a,i,s){for(const o in i){const c=i[o],d=s[o];if(de(c))a.addValue(o,c);else if(de(d))a.addValue(o,ka(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,ka(f!==void 0?f:c,{owner:a}))}}for(const o in s)i[o]===void 0&&a.removeValue(o);return i}const $d=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class V4{scrapeMotionValuesFromProps(i,s,o){return{}}constructor({parent:i,props:s,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lo,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 v=ge.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Ot.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=f;this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=p,this.parent=i,this.props=s,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=ms(s),this.isVariantNode=Cd(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:y,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const v in S){const z=S[v];m[v]!==void 0&&de(z)&&z.set(m[v])}}mount(i){this.current=i,L4.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),Wd.current||R4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$o.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Bn(this.notifyUpdate),Bn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const o=Ga.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Ya){const s=Ya[i];if(!s)continue;const{isEnabled:o,Feature:c}=s;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<$d.length;o++){const c=$d[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=B4(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const o=this.values.get(i);s!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&s!==void 0&&(o=ka(s===null?void 0:s,{owner:this}),this.addValue(i,o)),o}readValue(i,s){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(f0(o)||h0(o))?o=parseFloat(o):!kv(o)&&jn.test(s)&&(o=cd(i,s)),this.setBaseTarget(i,de(o)?o.get():o)),de(o)?o.get():o}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const d=Fo(this.props,s,this.presenceContext?.custom);d&&(o=d[i])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!de(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new ao),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){No.render(this.render)}}class th extends V4{constructor(){super(...arguments),this.KeyframeResolver=Dv}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:o}){delete s[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;de(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function eh(a,{style:i,vars:s},o,c){const d=a.style;let f;for(f in i)d[f]=i[f];c?.applyProjectionStyles(d,o);for(f in s)d.setProperty(f,s[f])}function j4(a){return window.getComputedStyle(a)}class O4 extends th{constructor(){super(...arguments),this.type="html",this.renderInstance=eh}readValueFromInstance(i,s){if(Ga.has(s))return this.projection?.isProjecting?zo(s):Py(i,s);{const o=j4(i),c=(w0(s)?o.getPropertyValue(s):o[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Pd(i,s)}build(i,s,o){qo(i,s,o.transformTemplate)}scrapeMotionValuesFromProps(i,s,o){return Ko(i,s,o)}}const nh=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 N4(a,i,s,o){eh(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(nh.has(c)?c:Qo(c),i.attrs[c])}class H4 extends th{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ga.has(s)){const o=ud(s);return o&&o.default||0}return s=nh.has(s)?s:Qo(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,o){return Hd(i,s,o)}build(i,s,o){Bd(i,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,s,o,c){N4(i,s,o,c)}mount(i){this.isSVGTag=jd(i.tagName),super.mount(i)}}const U4=(a,i)=>Zo(a)?new H4(i):new O4(i,{allowProjection:a!==C.Fragment});function Ka(a,i,s){const o=a.getProps();return Fo(o,i,s!==void 0?s:o.custom,a)}const tu=a=>Array.isArray(a);function _4(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,ka(s))}function G4(a){return tu(a)?a[a.length-1]||0:a}function k4(a,i){const s=Ka(a,i);let{transitionEnd:o={},transition:c={},...d}=s||{};d={...d,...o};for(const f in d){const g=G4(d[f]);_4(a,f,g)}}function Y4(a){return!!(de(a)&&a.add)}function eu(a,i){const s=a.getValue("willChange");if(Y4(s))return s.add(i);if(!s&&fn.WillChange){const o=new fn.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function ah(a){return a.props[Ud]}const q4=a=>a!==null;function X4(a,{repeat:i,repeatType:s="loop"},o){const c=a.filter(q4),d=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[d]}const Z4={type:"spring",stiffness:500,damping:25,restSpeed:10},F4=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),K4={type:"keyframes",duration:.8},Q4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},P4=(a,{keyframes:i})=>i.length>2?K4:Ga.has(a)?a.startsWith("scale")?F4(i[1]):Z4:Q4;function J4({when:a,delay:i,delayChildren:s,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:g,from:m,elapsed:p,...y}){return!!Object.keys(y).length}const nu=(a,i,s,o={},c,d)=>f=>{const g=Vo(o,a)||{},m=g.delay||o.delay||0;let{elapsed:p=0}=o;p=p-en(m);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...g,delay:-p,onUpdate:v=>{i.set(v),g.onUpdate&&g.onUpdate(v)},onComplete:()=>{f(),g.onComplete&&g.onComplete()},name:a,motionValue:i,element:d?void 0:c};J4(g)||Object.assign(y,P4(a,y)),y.duration&&(y.duration=en(y.duration)),y.repeatDelay&&(y.repeatDelay=en(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let S=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Bo(y),y.delay===0&&(S=!0)),(fn.instantAnimations||fn.skipAnimations)&&(S=!0,Bo(y),y.delay=0),y.allowFlatten=!g.type&&!g.ease,S&&!d&&i.get()!==void 0){const v=X4(y.keyframes,g);if(v!==void 0){Ot.update(()=>{y.onUpdate(v),y.onComplete()});return}}return g.isSync?new Eo(y):new vv(y)};function I4({protectedKeys:a,needsAnimating:i},s){const o=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,o}function ih(a,i,{delay:s=0,transitionOverride:o,type:c}={}){let{transition:d=a.getDefaultTransition(),transitionEnd:f,...g}=i;o&&(d=o);const m=[],p=c&&a.animationState&&a.animationState.getState()[c];for(const y in g){const S=a.getValue(y,a.latestValues[y]??null),v=g[y];if(v===void 0||p&&I4(p,y))continue;const z={delay:s,...Vo(d||{},y)},j=S.get();if(j!==void 0&&!S.isAnimating&&!Array.isArray(v)&&v===j&&!z.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const A=ah(a);if(A){const k=window.MotionHandoffAnimation(A,y,Ot);k!==null&&(z.startTime=k,L=!0)}}eu(a,y),S.start(nu(y,S,v,a.shouldReduceMotion&&id.has(y)?{type:!1}:z,a,L));const O=S.animation;O&&m.push(O)}return f&&Promise.all(m).then(()=>{Ot.update(()=>{f&&k4(a,f)})}),m}function lh(a,i,s,o=0,c=1){const d=Array.from(a).sort((p,y)=>p.sortNodePosition(y)).indexOf(i),f=a.size,g=(f-1)*o;return typeof s=="function"?s(d,f):c===1?d*o:g-d*o}function au(a,i,s={}){const o=Ka(a,i,s.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(c=s.transitionOverride);const d=o?()=>Promise.all(ih(a,o,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:S}=c;return W4(a,i,m,p,y,S,s)}:()=>Promise.resolve(),{when:g}=c;if(g){const[m,p]=g==="beforeChildren"?[d,f]:[f,d];return m().then(()=>p())}else return Promise.all([d(),f(s.delay)])}function W4(a,i,s=0,o=0,c=0,d=1,f){const g=[];for(const m of a.variantChildren)m.notify("AnimationStart",i),g.push(au(m,i,{...f,delay:s+(typeof o=="function"?0:o)+lh(a.variantChildren,m,o,c,d)}).then(()=>m.notify("AnimationComplete",i)));return Promise.all(g)}function $4(a,i,s={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(d=>au(a,d,s));o=Promise.all(c)}else if(typeof i=="string")o=au(a,i,s);else{const c=typeof i=="function"?Ka(a,i,s.custom):i;o=Promise.all(ih(a,c,s))}return o.then(()=>{a.notify("AnimationComplete",i)})}function sh(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let o=0;o<s;o++)if(i[o]!==a[o])return!1;return!0}const t5=ko.length;function rh(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?rh(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<t5;s++){const o=ko[s],c=a.props[o];(Qi(c)||c===!1)&&(i[o]=c)}return i}const e5=[...Go].reverse(),n5=Go.length;function a5(a){return i=>Promise.all(i.map(({animation:s,options:o})=>$4(a,s,o)))}function i5(a){let i=a5(a),s=oh(),o=!0;const c=m=>(p,y)=>{const S=Ka(a,y,m==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:v,transitionEnd:z,...j}=S;p={...p,...j,...z}}return p};function d(m){i=m(a)}function f(m){const{props:p}=a,y=rh(a.parent)||{},S=[],v=new Set;let z={},j=1/0;for(let O=0;O<n5;O++){const A=e5[O],k=s[A],G=p[A]!==void 0?p[A]:y[A],P=Qi(G),_=A===m?k.isActive:null;_===!1&&(j=O);let F=G===y[A]&&G!==p[A]&&P;if(F&&o&&a.manuallyAnimateOnMount&&(F=!1),k.protectedKeys={...z},!k.isActive&&_===null||!G&&!k.prevProp||hs(G)||typeof G=="boolean")continue;const V=l5(k.prevProp,G);let N=V||A===m&&k.isActive&&!F&&P||O>j&&P,tt=!1;const lt=Array.isArray(G)?G:[G];let ot=lt.reduce(c(A),{});_===!1&&(ot={});const{prevResolvedValues:I={}}=k,ut={...I,...ot},dt=U=>{N=!0,v.has(U)&&(tt=!0,v.delete(U)),k.needsAnimating[U]=!0;const K=a.getValue(U);K&&(K.liveStyle=!1)};for(const U in ut){const K=ot[U],nt=I[U];if(z.hasOwnProperty(U))continue;let gt=!1;tu(K)&&tu(nt)?gt=!sh(K,nt):gt=K!==nt,gt?K!=null?dt(U):v.add(U):K!==void 0&&v.has(U)?dt(U):k.protectedKeys[U]=!0}k.prevProp=G,k.prevResolvedValues=ot,k.isActive&&(z={...z,...ot}),o&&a.blockInitialAnimation&&(N=!1);const it=F&&V;N&&(!it||tt)&&S.push(...lt.map(U=>{const K={type:A};if(typeof U=="string"&&o&&!it&&a.manuallyAnimateOnMount&&a.parent){const{parent:nt}=a,gt=Ka(nt,U);if(nt.enteringChildren&&gt){const{delayChildren:Bt}=gt.transition||{};K.delay=lh(nt.enteringChildren,a,Bt)}}return{animation:U,options:K}}))}if(v.size){const O={};if(typeof p.initial!="boolean"){const A=Ka(a,Array.isArray(p.initial)?p.initial[0]:p.initial);A&&A.transition&&(O.transition=A.transition)}v.forEach(A=>{const k=a.getBaseTarget(A),G=a.getValue(A);G&&(G.liveStyle=!0),O[A]=k??null}),S.push({animation:O})}let L=!!S.length;return o&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(L=!1),o=!1,L?i(S):Promise.resolve()}function g(m,p){if(s[m].isActive===p)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(m,p)),s[m].isActive=p;const y=f(m);for(const S in s)s[S].protectedKeys={};return y}return{animateChanges:f,setActive:g,setAnimateFunction:d,getState:()=>s,reset:()=>{s=oh()}}}function l5(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!sh(i,a):!1}function ma(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oh(){return{animate:ma(!0),whileInView:ma(),whileHover:ma(),whileTap:ma(),whileDrag:ma(),whileFocus:ma(),exit:ma()}}class On{constructor(i){this.isMounted=!1,this.node=i}update(){}}class s5 extends On{constructor(i){super(i),i.animationState||(i.animationState=i5(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();hs(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let r5=0;class o5 extends On{constructor(){super(...arguments),this.id=r5++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const u5={animation:{Feature:s5},exit:{Feature:o5}};function Ji(a,i,s,o={passive:!0}){return a.addEventListener(i,s,o),()=>a.removeEventListener(i,s)}function Ii(a){return{point:{x:a.pageX,y:a.pageY}}}const c5=a=>i=>Ho(i)&&a(i,Ii(i));function Wi(a,i,s,o){return Ji(a,i,c5(s),o)}const uh=1e-4,f5=1-uh,d5=1+uh,ch=.01,h5=0-ch,m5=0+ch;function he(a){return a.max-a.min}function p5(a,i,s){return Math.abs(a-i)<=s}function fh(a,i,s,o=.5){a.origin=o,a.originPoint=Ut(i.min,i.max,a.origin),a.scale=he(s)/he(i),a.translate=Ut(s.min,s.max,a.origin)-a.originPoint,(a.scale>=f5&&a.scale<=d5||isNaN(a.scale))&&(a.scale=1),(a.translate>=h5&&a.translate<=m5||isNaN(a.translate))&&(a.translate=0)}function $i(a,i,s,o){fh(a.x,i.x,s.x,o?o.originX:void 0),fh(a.y,i.y,s.y,o?o.originY:void 0)}function dh(a,i,s){a.min=s.min+i.min,a.max=a.min+he(i)}function g5(a,i,s){dh(a.x,i.x,s.x),dh(a.y,i.y,s.y)}function hh(a,i,s){a.min=i.min-s.min,a.max=a.min+he(i)}function ys(a,i,s){hh(a.x,i.x,s.x),hh(a.y,i.y,s.y)}function He(a){return[a("x"),a("y")]}const mh=({current:a})=>a?a.ownerDocument.defaultView:null,ph=(a,i)=>Math.abs(a-i);function y5(a,i){const s=ph(a.x,i.x),o=ph(a.y,i.y);return Math.sqrt(s**2+o**2)}class gh{constructor(i,s,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=lu(this.lastMoveEventInfo,this.history),z=this.startEvent!==null,j=y5(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!z&&!j)return;const{point:L}=v,{timestamp:O}=ie;this.history.push({...L,timestamp:O});const{onStart:A,onMove:k}=this.handlers;z||(A&&A(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,v)},this.handlePointerMove=(v,z)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=iu(z,this.transformPagePoint),Ot.update(this.updatePoint,!0)},this.handlePointerUp=(v,z)=>{this.end();const{onEnd:j,onSessionEnd:L,resumeAnimation:O}=this.handlers;if(this.dragSnapToOrigin&&O&&O(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=lu(v.type==="pointercancel"?this.lastMoveEventInfo:iu(z,this.transformPagePoint),this.history);this.startEvent&&j&&j(v,A),L&&L(v,A)},!Ho(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const g=Ii(i),m=iu(g,this.transformPagePoint),{point:p}=m,{timestamp:y}=ie;this.history=[{...p,timestamp:y}];const{onSessionStart:S}=s;S&&S(i,lu(m,this.history)),this.removeListeners=_i(Wi(this.contextWindow,"pointermove",this.handlePointerMove),Wi(this.contextWindow,"pointerup",this.handlePointerUp),Wi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Bn(this.updatePoint)}}function iu(a,i){return i?{point:i(a.point)}:a}function yh(a,i){return{x:a.x-i.x,y:a.y-i.y}}function lu({point:a},i){return{point:a,delta:yh(a,vh(i)),offset:yh(a,v5(i)),velocity:b5(i,.1)}}function v5(a){return a[0]}function vh(a){return a[a.length-1]}function b5(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,o=null;const c=vh(a);for(;s>=0&&(o=a[s],!(c.timestamp-o.timestamp>en(i)));)s--;if(!o)return{x:0,y:0};const d=Ne(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function S5(a,{min:i,max:s},o){return i!==void 0&&a<i?a=o?Ut(i,a,o.min):Math.max(a,i):s!==void 0&&a>s&&(a=o?Ut(s,a,o.max):Math.min(a,s)),a}function bh(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function x5(a,{top:i,left:s,bottom:o,right:c}){return{x:bh(a.x,s,c),y:bh(a.y,i,o)}}function Sh(a,i){let s=i.min-a.min,o=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,o]=[o,s]),{min:s,max:o}}function T5(a,i){return{x:Sh(a.x,i.x),y:Sh(a.y,i.y)}}function E5(a,i){let s=.5;const o=he(a),c=he(i);return c>o?s=Gi(i.min,i.max-o,a.min):o>c&&(s=Gi(a.min,a.max-c,i.min)),cn(0,1,s)}function M5(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const su=.35;function A5(a=su){return a===!1?a=0:a===!0&&(a=su),{x:xh(a,"left","right"),y:xh(a,"top","bottom")}}function xh(a,i,s){return{min:Th(a,i),max:Th(a,s)}}function Th(a,i){return typeof a=="number"?a:a[i]||0}const z5=new WeakMap;class C5{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=S=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ii(S).point)},f=(S,v)=>{const{drag:z,dragPropagation:j,onDragStart:L}=this.getProps();if(z&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vv(z),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),He(A=>{let k=this.getAxisMotionValue(A).get()||0;if(nn.test(k)){const{projection:G}=this.visualElement;if(G&&G.layout){const P=G.layout.layoutBox[A];P&&(k=he(P)*(parseFloat(k)/100))}}this.originPoint[A]=k}),L&&Ot.postRender(()=>L(S,v)),eu(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},g=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v;const{dragPropagation:z,dragDirectionLock:j,onDirectionLock:L,onDrag:O}=this.getProps();if(!z&&!this.openDragLock)return;const{offset:A}=v;if(j&&this.currentDirection===null){this.currentDirection=w5(A),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",v.point,A),this.updateAxis("y",v.point,A),this.visualElement.render(),O&&O(S,v)},m=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v,this.stop(S,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>He(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new gh(i,{onSessionStart:d,onStart:f,onMove:g,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:mh(this.visualElement)})}stop(i,s){const o=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:g}=this.getProps();g&&Ot.postRender(()=>g(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,o){const{drag:c}=this.getProps();if(!o||!vs(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=S5(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){const{dragConstraints:i,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&qa(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=x5(o.layoutBox,i):this.constraints=!1,this.elastic=A5(s),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&He(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=M5(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!qa(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=D4(o,c.root,this.visualElement.getTransformPagePoint());let f=T5(c.layout.layoutBox,d);if(s){const g=s(z4(f));this.hasMutatedConstraints=!!g,g&&(f=kd(g))}return f}startAnimation(i){const{drag:s,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),m=this.constraints||{},p=He(y=>{if(!vs(y,s,this.currentDirection))return;let S=m&&m[y]||{};f&&(S={min:0,max:0});const v=c?200:1e6,z=c?40:1e7,j={type:"inertia",velocity:o?i[y]:0,bounceStiffness:v,bounceDamping:z,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(y,j)});return Promise.all(p).then(g)}startAxisValueAnimation(i,s){const o=this.getAxisMotionValue(i);return eu(this.visualElement,i),o.start(nu(i,o,0,s,this.visualElement,!1))}stopAnimation(){He(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){He(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),c=o[s];return c||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){He(s=>{const{drag:o}=this.getProps();if(!vs(s,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:g}=c.layout.layoutBox[s];d.set(i[s]-Ut(f,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!qa(s)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};He(f=>{const g=this.getAxisMotionValue(f);if(g&&this.constraints!==!1){const m=g.get();c[f]=E5({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),He(f=>{if(!vs(f,i,null))return;const g=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];g.set(Ut(m,p,c[f]))})}addListeners(){if(!this.visualElement.current)return;z5.set(this.visualElement,this);const i=this.visualElement.current,s=Wi(i,"pointerdown",m=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();qa(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Ot.read(o);const f=Ji(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(He(y=>{const S=this.getAxisMotionValue(y);S&&(this.originPoint[y]+=m[y].translate,S.set(S.get()+m[y].translate))}),this.visualElement.render())}));return()=>{f(),s(),d(),g&&g()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=su,dragMomentum:g=!0}=i;return{...i,drag:s,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:g}}}function vs(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function w5(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class D5 extends On{constructor(i){super(i),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new C5(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Eh=a=>(i,s)=>{a&&Ot.postRender(()=>a(i,s))};class R5 extends On{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(i){this.session=new gh(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mh(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Eh(i),onStart:Eh(s),onMove:o,onEnd:(d,f)=>{delete this.session,c&&Ot.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=Wi(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ru=!1;class L5 extends C.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=i;d&&(s.group&&s.group.add(d),o&&o.register&&c&&o.register(d),ru&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),bs.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:o,drag:c,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,ru=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Ot.postRender(()=>{const g=f.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),No.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:c}=i;ru=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Mh(a){const[i,s]=Td(),o=C.useContext(Jr);return x.jsx(L5,{...a,layoutGroup:o,switchLayoutGroup:C.useContext(_d),isPresent:i,safeToRemove:s})}function B5(a,i,s){const o=de(a)?a:ka(a);return o.start(nu("",o,i,s)),o.animation}const V5=(a,i)=>a.depth-i.depth;class j5{constructor(){this.children=[],this.isDirty=!1}add(i){$r(this.children,i),this.isDirty=!0}remove(i){to(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(V5),this.isDirty=!1,this.children.forEach(i)}}function O5(a,i){const s=ge.now(),o=({timestamp:c})=>{const d=c-s;d>=i&&(Bn(o),a(d-i))};return Ot.setup(o,!0),()=>Bn(o)}const Ah=["TopLeft","TopRight","BottomLeft","BottomRight"],N5=Ah.length,zh=a=>typeof a=="string"?parseFloat(a):a,Ch=a=>typeof a=="number"||rt.test(a);function H5(a,i,s,o,c,d){c?(a.opacity=Ut(0,s.opacity??1,U5(o)),a.opacityExit=Ut(i.opacity??1,0,_5(o))):d&&(a.opacity=Ut(i.opacity??1,s.opacity??1,o));for(let f=0;f<N5;f++){const g=`border${Ah[f]}Radius`;let m=wh(i,g),p=wh(s,g);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Ch(m)===Ch(p)?(a[g]=Math.max(Ut(zh(m),zh(p),o),0),(nn.test(p)||nn.test(m))&&(a[g]+="%")):a[g]=p}(i.rotate||s.rotate)&&(a.rotate=Ut(i.rotate||0,s.rotate||0,o))}function wh(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const U5=Dh(0,.5,x0),_5=Dh(.5,.95,Oe);function Dh(a,i,s){return o=>o<a?0:o>i?1:s(Gi(a,i,o))}function Rh(a,i){a.min=i.min,a.max=i.max}function Pe(a,i){Rh(a.x,i.x),Rh(a.y,i.y)}function Lh(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}function Bh(a,i,s,o,c){return a-=i,a=gs(a,1/s,o),c!==void 0&&(a=gs(a,1/c,o)),a}function G5(a,i=0,s=1,o=.5,c,d=a,f=a){if(nn.test(i)&&(i=parseFloat(i),i=Ut(f.min,f.max,i/100)-f.min),typeof i!="number")return;let g=Ut(d.min,d.max,o);a===d&&(g-=i),a.min=Bh(a.min,i,s,g,c),a.max=Bh(a.max,i,s,g,c)}function Vh(a,i,[s,o,c],d,f){G5(a,i[s],i[o],i[c],i.scale,d,f)}const k5=["x","scaleX","originX"],Y5=["y","scaleY","originY"];function jh(a,i,s,o){Vh(a.x,i,k5,s?s.x:void 0,o?o.x:void 0),Vh(a.y,i,Y5,s?s.y:void 0,o?o.y:void 0)}function Oh(a){return a.translate===0&&a.scale===1}function Nh(a){return Oh(a.x)&&Oh(a.y)}function Hh(a,i){return a.min===i.min&&a.max===i.max}function q5(a,i){return Hh(a.x,i.x)&&Hh(a.y,i.y)}function Uh(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function _h(a,i){return Uh(a.x,i.x)&&Uh(a.y,i.y)}function Gh(a){return he(a.x)/he(a.y)}function kh(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}class X5{constructor(){this.members=[]}add(i){$r(this.members,i),i.scheduleRender()}remove(i){if(to(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let o;for(let c=s;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){o=d;break}}return o?(this.promote(o),!0):!1}promote(i,s){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.instance&&o.scheduleRender(),i.scheduleRender(),i.resumeFrom=o,s&&(i.resumeFrom.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:o}=i;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Z5(a,i,s){let o="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=s?.z||0;if((c||d||f)&&(o=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:y,rotateX:S,rotateY:v,skewX:z,skewY:j}=s;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),S&&(o+=`rotateX(${S}deg) `),v&&(o+=`rotateY(${v}deg) `),z&&(o+=`skewX(${z}deg) `),j&&(o+=`skewY(${j}deg) `)}const g=a.x.scale*i.x,m=a.y.scale*i.y;return(g!==1||m!==1)&&(o+=`scale(${g}, ${m})`),o||"none"}const ou=["","X","Y","Z"],F5=1e3;let K5=0;function uu(a,i,s,o){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function Yh(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=ah(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",Ot,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&Yh(o)}function qh({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},g=i?.()){this.id=K5++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(J5),this.nodes.forEach(tb),this.nodes.forEach(eb),this.nodes.forEach(I5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new j5)}addEventListener(f,g){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new ao),this.eventHandlers.get(f).add(g)}notifyListeners(f,...g){const m=this.eventHandlers.get(f);m&&m.notify(...g)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Sd(f)&&!_v(f),this.instance=f;const{layoutId:g,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||g)&&(this.isLayoutDirty=!0),a){let y,S=0;const v=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{S=window.innerWidth}),a(f,()=>{const z=window.innerWidth;z!==S&&(S=z,this.root.updateBlockedByResize=!0,y&&y(),y=O5(v,250),bs.hasAnimatedSinceResize&&(bs.hasAnimatedSinceResize=!1,this.nodes.forEach(Fh)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:S,hasRelativeLayoutChanged:v,layout:z})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||p.getDefaultTransition()||sb,{onLayoutAnimationStart:L,onLayoutAnimationComplete:O}=p.getProps(),A=!this.targetLayout||!_h(this.targetLayout,z),k=!S&&v;if(this.options.layoutRoot||this.resumeFrom||k||S&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...Vo(j,"layout"),onPlay:L,onComplete:O};(p.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(y,k)}else S||Fh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=z})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Bn(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(nb),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Yh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const S=this.path[y];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:g,layout:m}=this.options;if(g===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Xh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($5),this.nodes.forEach(Q5),this.nodes.forEach(P5)):this.nodes.forEach(Zh),this.clearAllSnapshots();const g=ge.now();ie.delta=cn(0,1e3/60,g-ie.timestamp),ie.timestamp=g,ie.isProcessing=!0,so.update.process(ie),so.preRender.process(ie),so.render.process(ie),ie.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,No.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(W5),this.sharedNodes.forEach(ab)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!he(this.snapshot.measuredBox.x)&&!he(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(g=!1),g&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!Nh(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;f&&this.instance&&(g||ha(this.latestValues)||y)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const g=this.measurePageBox();let m=this.removeElementScroll(g);return f&&(m=this.removeTransform(m)),rb(m),{animationId:this.root.animationId,measuredBox:g,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return It();const g=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ob))){const{scroll:p}=this.root;p&&(Xa(g.x,p.offset.x),Xa(g.y,p.offset.y))}return g}removeElementScroll(f){const g=It();if(Pe(g,f),this.scroll?.wasRoot)return g;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:y,options:S}=p;p!==this.root&&y&&S.layoutScroll&&(y.wasRoot&&Pe(g,f),Xa(g.x,y.offset.x),Xa(g.y,y.offset.y))}return g}applyTransform(f,g=!1){const m=It();Pe(m,f);for(let p=0;p<this.path.length;p++){const y=this.path[p];!g&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Za(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),ha(y.latestValues)&&Za(m,y.latestValues)}return ha(this.latestValues)&&Za(m,this.latestValues),m}removeTransform(f){const g=It();Pe(g,f);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!ha(p.latestValues))continue;Io(p.latestValues)&&p.updateSnapshot();const y=It(),S=p.measurePageBox();Pe(y,S),jh(g,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return ha(this.latestValues)&&jh(g,this.latestValues),g}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==ie.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==g;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:S}=this.options;if(!this.layout||!(y||S))return;this.resolvedRelativeTargetAt=ie.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Pe(this.target,this.layout.layoutBox),Zd(this.target,this.targetDelta)):Pe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Io(this.parent.latestValues)||Yd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,g,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),ys(this.relativeTargetOrigin,g,m),Pe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),g=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ie.timestamp&&(m=!1),m)return;const{layout:p,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||!(p||y))return;Pe(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,v=this.treeScale.y;w4(this.layoutCorrected,this.treeScale,this.path,g),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=It());const{target:z}=f;if(!z){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lh(this.prevProjectionDelta.x,this.projectionDelta.x),Lh(this.prevProjectionDelta.y,this.projectionDelta.y)),$i(this.projectionDelta,this.layoutCorrected,z,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==v||!kh(this.projectionDelta.x,this.prevProjectionDelta.x)||!kh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",z))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fa(),this.projectionDelta=Fa(),this.projectionDeltaWithTransform=Fa()}setAnimationOrigin(f,g=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},S=Fa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const v=It(),z=m?m.source:void 0,j=this.layout?this.layout.source:void 0,L=z!==j,O=this.getStack(),A=!O||O.members.length<=1,k=!!(L&&!A&&this.options.crossfade===!0&&!this.path.some(lb));this.animationProgress=0;let G;this.mixTargetDelta=P=>{const _=P/1e3;Kh(S.x,f.x,_),Kh(S.y,f.y,_),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ys(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ib(this.relativeTarget,this.relativeTargetOrigin,v,_),G&&q5(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=It()),Pe(G,this.relativeTarget)),L&&(this.animationValues=y,H5(y,p,this.latestValues,_,k,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Bn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{bs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ka(0)),this.currentAnimation=B5(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(F5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:g,target:m,layout:p,latestValues:y}=f;if(!(!g||!m||!p)){if(this!==f&&this.layout&&p&&Wh(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||It();const S=he(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+S;const v=he(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+v}Pe(g,m),Za(g,y),$i(this.projectionDeltaWithTransform,this.layoutCorrected,g,y)}}registerSharedNode(f,g){this.sharedNodes.has(f)||this.sharedNodes.set(f,new X5),this.sharedNodes.get(f).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:g,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let g=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(g=!0),!g)return;const p={};m.z&&uu("z",f,p,this.animationValues);for(let y=0;y<ou.length;y++)uu(`rotate${ou[y]}`,f,p,this.animationValues),uu(`skew${ou[y]}`,f,p,this.animationValues);f.render();for(const y in p)f.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);f.scheduleRender()}applyProjectionStyles(f,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=ps(g?.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=ps(g?.pointerEvents)||""),this.hasProjected&&!ha(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let S=Z5(this.projectionDeltaWithTransform,this.treeScale,y);m&&(S=m(y,S)),f.transform=S;const{x:v,y:z}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${z.origin*100}% 0`,p.animationValues?f.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const j in Yo){if(y[j]===void 0)continue;const{correct:L,applyTo:O,isCSSVariable:A}=Yo[j],k=S==="none"?y[j]:L(y[j],p);if(O){const G=O.length;for(let P=0;P<G;P++)f[O[P]]=k}else A?this.options.visualElement.renderState.vars[j]=k:f[j]=k}this.options.layoutId&&(f.pointerEvents=p===this?ps(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(Xh),this.root.sharedNodes.clear()}}}function Q5(a){a.updateLayout()}function P5(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=a.layout,{animationType:c}=a.options,d=i.source!==a.layout.source;c==="size"?He(y=>{const S=d?i.measuredBox[y]:i.layoutBox[y],v=he(S);S.min=s[y].min,S.max=S.min+v}):Wh(c,i.layoutBox,s)&&He(y=>{const S=d?i.measuredBox[y]:i.layoutBox[y],v=he(s[y]);S.max=S.min+v,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[y].max=a.relativeTarget[y].min+v)});const f=Fa();$i(f,s,i.layoutBox);const g=Fa();d?$i(g,a.applyTransform(o,!0),i.measuredBox):$i(g,s,i.layoutBox);const m=!Nh(f);let p=!1;if(!a.resumeFrom){const y=a.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:S,layout:v}=y;if(S&&v){const z=It();ys(z,i.layoutBox,S.layoutBox);const j=It();ys(j,s,v.layoutBox),_h(z,j)||(p=!0),y.options.layoutRoot&&(a.relativeTarget=j,a.relativeTargetOrigin=z,a.relativeParent=y)}}}a.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:g,layoutDelta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:s}=a.options;s&&s()}a.options.transition=void 0}function J5(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function I5(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function W5(a){a.clearSnapshot()}function Xh(a){a.clearMeasurements()}function Zh(a){a.isLayoutDirty=!1}function $5(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Fh(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function tb(a){a.resolveTargetDelta()}function eb(a){a.calcProjection()}function nb(a){a.resetSkewAndRotation()}function ab(a){a.removeLeadSnapshot()}function Kh(a,i,s){a.translate=Ut(i.translate,0,s),a.scale=Ut(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Qh(a,i,s,o){a.min=Ut(i.min,s.min,o),a.max=Ut(i.max,s.max,o)}function ib(a,i,s,o){Qh(a.x,i.x,s.x,o),Qh(a.y,i.y,s.y,o)}function lb(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const sb={duration:.45,ease:[.4,0,.1,1]},Ph=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Jh=Ph("applewebkit/")&&!Ph("chrome/")?Math.round:Oe;function Ih(a){a.min=Jh(a.min),a.max=Jh(a.max)}function rb(a){Ih(a.x),Ih(a.y)}function Wh(a,i,s){return a==="position"||a==="preserve-aspect"&&!p5(Gh(i),Gh(s),.2)}function ob(a){return a!==a.root&&a.scroll?.wasRoot}const ub=qh({attachResizeListener:(a,i)=>Ji(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cu={current:void 0},$h=qh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!cu.current){const a=new ub({});a.mount(window),a.setOptions({layoutScroll:!0}),cu.current=a}return cu.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),cb={pan:{Feature:R5},drag:{Feature:D5,ProjectionNode:$h,MeasureLayout:Mh}};function tm(a,i,s){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=o[c];d&&Ot.postRender(()=>d(i,Ii(i)))}class fb extends On{mount(){const{current:i}=this.node;i&&(this.unmount=jv(i,(s,o)=>(tm(this.node,o,"Start"),c=>tm(this.node,c,"End"))))}unmount(){}}class db extends On{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=_i(Ji(this.node.current,"focus",()=>this.onFocus()),Ji(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function em(a,i,s){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=o[c];d&&Ot.postRender(()=>d(i,Ii(i)))}class hb extends On{mount(){const{current:i}=this.node;i&&(this.unmount=Uv(i,(s,o)=>(em(this.node,o,"Start"),(c,{success:d})=>em(this.node,c,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fu=new WeakMap,du=new WeakMap,mb=a=>{const i=fu.get(a.target);i&&i(a)},pb=a=>{a.forEach(mb)};function gb({root:a,...i}){const s=a||document;du.has(s)||du.set(s,{});const o=du.get(s),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(pb,{root:a,...i})),o[c]}function yb(a,i,s){const o=gb(i);return fu.set(a,s),o.observe(a),()=>{fu.delete(a),o.unobserve(a)}}const vb={some:0,all:1};class bb extends On{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:o,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:vb[c]},g=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:S}=this.node.getProps(),v=p?y:S;v&&v(m)};return yb(this.node.current,f,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(Sb(i,s))&&this.startObserver()}unmount(){}}function Sb({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const xb={...u5,...{inView:{Feature:bb},tap:{Feature:hb},focus:{Feature:db},hover:{Feature:fb}},...cb,...{layout:{ProjectionNode:$h,MeasureLayout:Mh}}},Tb=A4(xb,U4);function Eb(a="(max-width: 768px)"){const[i,s]=C.useState({isMobile:!1,isPortrait:!1});return C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=navigator?.userAgent??"",c=/iPhone|Android/i.test(o),d=window.matchMedia(a),f=window.matchMedia("(orientation: portrait)"),g=()=>s({isMobile:d.matches||c,isPortrait:f.matches});return g(),d.addEventListener("change",g),f.addEventListener("change",g),()=>{d.removeEventListener("change",g),f.removeEventListener("change",g)}},[a]),i}const nm={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{items:["MetaBtn"]},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{items:["MetaBtn"]},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},am={vod:{order:["top","upper","center","lower","bottom","seekbar"],top:[{wrapper:"Blank",items:[]},{items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"]}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},live:{order:["top","upper","center","lower","bottom","seekbar"],top:[{wrapper:"Blank",items:[]},{items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"]}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]}},im={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Mb=768,tl={pc:{live:nm.live,vod:nm.vod},mobile:{live:am.live,vod:am.vod},fullscreen:{live:im.live,vod:im.vod}},Ab={top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group",noPadding:!0},{key:"volume",items:["VolumeBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]};function zb(a){const[i,s]=Xf("isActive",!1),o=C.useRef(null),c=C.useRef(!1),d=C.useRef(!1),f=C.useRef(0),g=a.options?.controlActiveTime||3e3,[m]=qt(),{isMobile:p,isPortrait:y}=Eb(),{togglePlay:S,useTouch:v}=$t(),[z,j]=C.useState(!1),L=(()=>{const I=a.layout??tl,ut=E=>!E||typeof E!="object"?!1:"top"in E||"upper"in E||"center"in E||"lower"in E||"bottom"in E||"order"in E,dt=E=>!E||typeof E!="object"?!1:"live"in E||"vod"in E,it=(E,X)=>{const J=dt(E)?E:E?{live:E,vod:E}:void 0,W=J?.live??X?.live,ct=J?.vod??X?.vod;if(!(!W&&!ct))return{live:W,vod:ct}},Q=(E,X)=>{if(E)return(X?E.live:E.vod)??E.vod??E.live};if(ut(I))return I;const U=I,K={pc:it(tl.pc),mobile:it(tl.mobile),fullscreen:it(tl.fullscreen)},nt={pc:it(U.pc,K.pc),mobile:it(U.mobile,K.mobile),fullscreen:it(U.fullscreen,K.fullscreen),breakpoint:U.breakpoint},gt=m.isFullscreen&&nt.fullscreen?"fullscreen":null,Bt=(gt?nt[gt]:void 0)??(z?nt.mobile:nt.pc)??nt.pc??nt.mobile??nt.fullscreen;return Q(Bt,!!m.isLive)??Ab})(),O=d.current||m.isEnded,A=()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},k=()=>{A(),o.current=window.setTimeout(()=>{s(!1),c.current=!0,o.current=null},g)},G=()=>{c.current=!1,f.current=Date.now(),i||s(!0),k()},P=()=>{c.current||G()};C.useEffect(()=>{if(typeof window>"u")return;const I=a.layout??tl;if((K=>!K||typeof K!="object"?!1:"top"in K||"upper"in K||"center"in K||"lower"in K||"bottom"in K||"order"in K)(I)){j(!1);return}const it=I.breakpoint??Mb,Q=window.matchMedia(`(max-width: ${it}px)`),U=()=>j(Q.matches||p);return U(),typeof Q.addEventListener=="function"?(Q.addEventListener("change",U),()=>Q.removeEventListener("change",U)):(Q.addListener(U),()=>Q.removeListener(U))},[a.layout,p]);const _=I=>[I.top,I.upper,I.center,I.lower,I.bottom].some(dt=>dt?.some(it=>(it.items?.length?it.items:["Blank"]).includes("SeekBar"))??!1),F=(I,ut)=>{if(typeof I!="string")return C.isValidElement(I)?C.cloneElement(I,{pos:ut}):I;switch(I){case"PlayBtn":return x.jsx(r0,{isMobile:p,isPortrait:y,pos:ut,text:{play:a.t?.("common.play")??"재생",pause:a.t?.("common.pause")??"일시정지"}});case"VolumeBtn":return x.jsx(Yg,{isMobile:p,isPortrait:y,pos:ut,text:{muteOn:a.t?.("common.muteOn")??"음소거",muteOff:a.t?.("common.muteOff")??"음소거 해제"}});case"MuteBtn":return x.jsx(kg,{isMobile:p,isPortrait:y,pos:ut,text:{muteOn:a.t?.("common.muteOn")??"음소거",muteOff:a.t?.("common.muteOff")??"음소거 해제"}});case"CurrentTimeBtn":return x.jsx(Bg,{isMobile:p,isPortrait:y,pos:ut});case"DurationBtn":return x.jsx(Vg,{isMobile:p,isPortrait:y,pos:ut});case"TimeBtn":return x.jsx(jg,{isMobile:p,isPortrait:y,pos:ut});case"SubtitleBtn":return x.jsx(Gg,{isMobile:p,isPortrait:y,pos:ut,text:{captionOn:a.t?.("common.captionOn")??"자막켜기",captionOff:a.t?.("common.captionOff")??"자막 끄기"}});case"FullscreenBtn":return x.jsx(_g,{isMobile:p,isPortrait:y,pos:ut,options:a.options,text:{fullOn:a.t?.("common.fullOn")??"전체화면",fullOff:a.t?.("common.fullOff")??"전체화면 해제"}});case"PipBtn":return x.jsx(Xg,{isMobile:p,isPortrait:y,pos:ut,options:a.options,text:{miniPlayer:a.t?.("common.miniPlayer")??"미니플레이어"}});case"SkipBackBtn":return x.jsx(Rg,{isMobile:p,isPortrait:y,pos:ut,options:a.options});case"SkipForwardBtn":return x.jsx(Lg,{isMobile:p,isPortrait:y,pos:ut,options:a.options});case"MetaBtn":return x.jsx(Ng,{title:a.metaTitle??"",isMobile:p,isPortrait:y,pos:ut});case"BigPlayBtn":return O?x.jsx(Dg,{isMobile:p,isPortrait:y}):null;case"SeekBar":return x.jsx(Kf,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options,pos:ut});case"LevelSelectBtn":return x.jsx(Og,{options:a.options,text:{auto:a.t?.("common.auto")??"자동"}});case"SettingBtn":return x.jsx(qg,{isMobile:p,isPortrait:y,pos:ut,text:{setting:a.t?.("common.setting")??"설정"}});case"Blank":return x.jsx(o0,{});default:return null}},V=(I,ut,dt,it)=>{const Q=I.key??`${ut}-${it??0}`,K=(I.items?.length?I.items:["Blank"]).map((nt,gt)=>{const Bt=F(nt,dt);return Bt?x.jsx(C.Fragment,{children:Bt},`${ut}-${Q}-${nt}-${gt}`):null}).filter(nt=>nt!==null);return K.length?I.wrapper==="Blank"?x.jsx(o0,{align:I?.align,children:K},`${ut}-${Q}`):I.wrapper==="Group"?x.jsx($l,{noPadding:!(K.length>1),cap:I.cap,children:K},`${ut}-${Q}`):x.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:K},`${ut}-${Q}`):null},N=(I,ut)=>{if(!I?.length)return null;if(ut!=="bottom")return I.map((it,Q)=>V(it,ut,void 0,Q));let dt="left";return I.map((it,Q)=>{const U=it.items?.length?it.items:["Blank"],K=it.wrapper==="Blank"||U.includes("Blank"),nt=V(it,ut,dt,Q);return K&&(dt="right"),nt})},tt=!_(L),lt=L.order??["top","upper","center","seekbar","lower","bottom"],ot=()=>tt?x.jsx("div",{children:x.jsx(Kf,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options})}):null;return C.useEffect(()=>{p&&(d.current=!0)},[p]),x.jsxs(x.Fragment,{children:[m.isLoading&&x.jsx(u0,{poster:a.poster,options:a.options}),m.isWaiting&&x.jsx(u0,{}),m.isSettingModal&&x.jsx(Fg,{text:{setting:a.t?.("common.setting")??"세팅",auto:a.t?.("common.auto")??"자동",notUse:a.t?.("common.notUse")??"사용안함",quality:a.t?.("settings.quality")??"해상도",autoplay:a.t?.("settings.autoplay")??"자동재생",playbackRate:a.t?.("settings.playbackRate")??"재생 속도",captions:a.t?.("settings.captions")??"자막"},vtt:a.src?.vtt,options:a.options}),!m.isLoading&&x.jsx(x.Fragment,{children:m.initPlay?x.jsx("div",{style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},onClick:()=>{v(),A(),k()},onMouseEnter:()=>{P()},onMouseMove:()=>{G()},onTouchStart:()=>{v(),A(),k()},onMouseLeave:()=>{A(),k(),c.current=!1},children:x.jsx(Qv,{children:(i||m.isEnded)&&x.jsx(Tb.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",padding:"0.75rem",gap:"0.75rem",cursor:"default"},children:lt.map(I=>I==="top"?x.jsx("div",{style:{display:"flex",alignItems:"center"},children:N(L.top,"top")},"layout-top"):I==="upper"?x.jsx("div",{style:{display:"flex",alignItems:"center"},children:N(L.upper,"upper")},"layout-upper"):I==="center"?x.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!p&&!y&&S(),d.current=!0},onMouseLeave:()=>{d.current=!1},children:N(L.center,"center")},"layout-center"):I==="seekbar"?x.jsx("div",{children:x.jsx(C.Fragment,{children:ot()})},"layout-seekbar"):I==="lower"?x.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:N(L.lower,"lower")},"layout-lower"):I==="bottom"?x.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:N(L.bottom,"bottom")},"layout-bottom"):null)})})}):x.jsx(Zg,{poster:a.poster,options:a.options})})]})}const Cb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20style='position:%20absolute;%20width:%200;%20height:%200'%20aria-hidden='true'%20id='__SVG_SPRITE_NODE__'%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='setting'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-538%20-1762)%20translate(325%201754)%20translate(205)%20translate(8%208)'%3e%3c/path%3e%3cpath%20d='M10%2014.317c-2.38%200-4.318-1.937-4.318-4.318C5.682%207.62%207.62%205.682%2010%205.682S14.318%207.621%2014.318%2010c0%202.38-1.938%204.318-4.318%204.318zm6.519-5.746c-.171-.784-.483-1.512-.904-2.167L17.232%204.1l-.007-.007-.94-.94-.386-.387-2.306%201.617c-.653-.42-1.382-.732-2.165-.903L10.943.715H9.057L8.572%203.48c-.786.171-1.512.482-2.167.903L4.101%202.766l-.412.415-.914.912-.007.007%201.617%202.304c-.42.655-.733%201.383-.905%202.167l-2.766.486V10.942l2.766.487c.172.783.484%201.512.905%202.166l-1.617%202.302.413.415.911.913.01.009%202.303-1.619c.655.422%201.381.732%202.167.905l.485%202.766h1.886l.485-2.766c.783-.173%201.512-.483%202.165-.905l2.306%201.619.009-.01.937-.94.387-.387-1.617-2.302c.42-.654.733-1.383.904-2.166l2.767-.487V9.057l-2.767-.486z'%20transform='translate(-538%20-1762)%20translate(325%201754)%20translate(205)%20translate(8%208)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='full-view'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M15%2015L10.357%2015%2010.357%2017.143%2017.143%2017.143%2017.143%2010.357%2015%2010.357zM0%200L0%206.786%202.143%206.786%202.143%202.143%206.793%202.143%206.793%200zM10.357%200L10.357%202.143%2015%202.143%2015%206.786%2017.143%206.786%2017.143%200zM2.143%2015L2.143%2010.357%200%2010.357%200%2017.143%206.793%2017.143%206.793%2015z'%20transform='translate(-661%20-1762)%20translate(325%201754)%20translate(205)%20translate(123)%20translate(8%208)%20translate(1.429%201.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='basic-view'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M12.5%2012.5L17.143%2012.5%2017.143%2010.357%2010.357%2010.357%2010.357%2017.143%2012.5%2017.143zM6.786%206.786L6.786%200%204.643%200%204.643%204.643%200%204.643%200%206.786zM17.143%206.786L17.143%204.643%2012.5%204.643%2012.5%200%2010.357%200%2010.357%206.786zM4.643%2012.5L4.643%2017.143%206.786%2017.143%206.786%2010.357%200%2010.357%200%2012.5z'%20transform='translate(-702%20-1762)%20translate(325%201754)%20translate(205)%20translate(164)%20translate(8%208)%20translate(1.429%201.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='caption0'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M17.143%202.5H2.857C1.674%202.5.714%203.46.714%204.643v10.714c0%201.184.96%202.143%202.143%202.143h14.286c1.183%200%202.143-.96%202.143-2.143V4.643c0-1.184-.96-2.143-2.143-2.143zM3.57%204.643h11.636l-2.786%202.143h-3.85v2.143h1.065L6.85%2011.07H5V12.5l-2.143%201.643V5.357c0-.394.32-.714.714-.714zM16.43%2015.357H4.793l2.786-2.143H10V11.35l3.15-2.421H15V7.5l2.143-1.643v8.786c0%20.394-.32.714-.714.714z'%20transform='translate(-579%20-1762)%20translate(325%201754)%20translate(205)%20translate(41)%20translate(8%208)'%3e%3c/path%3e%3cpath%20d='M5%206.786H7.143V8.928999999999998H5zM11.429%2011.071H15V13.213999999999999H11.429z'%20transform='translate(-579%20-1762)%20translate(325%201754)%20translate(205)%20translate(41)%20translate(8%208)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='caption1'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M17.143%202.5H2.857C1.674%202.5.714%203.46.714%204.643v10.714c0%201.184.96%202.143%202.143%202.143h14.286c1.183%200%202.143-.96%202.143-2.143V4.643c0-1.184-.96-2.143-2.143-2.143zm0%2012.143c0%20.394-.32.714-.714.714H3.57c-.394%200-.714-.32-.714-.714V5.357c0-.394.32-.714.714-.714H16.43c.394%200%20.714.32.714.714v9.286z'%20transform='translate(-620%20-1762)%20translate(325%201754)%20translate(205)%20translate(82)%20translate(8%208)'%3e%3c/path%3e%3cpath%20d='M8.571%206.786H15V8.928999999999998H8.571zM5%206.786H7.143V8.928999999999998H5zM5%2011.071H10V13.213999999999999H5zM11.429%2011.071H15V13.213999999999999H11.429z'%20transform='translate(-620%20-1762)%20translate(325%201754)%20translate(205)%20translate(82)%20translate(8%208)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='close'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M10.912%202.293L7.132%206.073%203.353%202.293%202.293%203.353%206.072%207.133%202.293%2010.912%203.353%2011.973%207.132%208.193%2010.912%2011.973%2011.972%2010.912%208.193%207.133%2011.972%203.353z'%20transform='translate(-967%20-1848)%20translate(360%201720)%20translate(240%20110)%20translate(367%2018)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20200%20200'%20id='error0'%3e%3cdefs%3e%3cpath%20id='error0_vf42l8pu4a'%20d='M0%200L126%200%20126%20126%200%20126z'%3e%3c/path%3e%3cpath%20id='error0_rks5mj93dc'%20d='M0%20126L136%20126%20136%200%200%200z'%3e%3c/path%3e%3cpath%20id='error0_2raz0xr19e'%20d='M63%200C28.206%200%200%2028.206%200%2063s28.206%2063%2063%2063%2063-28.206%2063-63'%3e%3c/path%3e%3cpath%20id='error0_arf9x60eqg'%20d='M0.045%200.045L43%200.045%2043%2043%200.045%2043z'%3e%3c/path%3e%3cpath%20id='error0_qune5idx7i'%20d='M0.045%200.046L43%200.046%2043%2043%200.045%2043z'%3e%3c/path%3e%3c/defs%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M0%200H200V200H0z'%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)'%3e%3c/path%3e%3c/g%3e%3cg%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)'%3e%3cg%3e%3cmask%20id='error0_5gm69u4e3b'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_vf42l8pu4a'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23394252'%20d='M126%2063c0%2034.794-28.206%2063-63%2063S0%2097.794%200%2063%2028.206%200%2063%200s63%2028.206%2063%2063'%20mask='url(%23error0_5gm69u4e3b)'%3e%3c/path%3e%3c/g%3e%3cpath%20fill='%23838D9E'%20d='M103.606%2028.416H22.081c-1.45%200-2.627%201.156-2.627%202.583v65.984c0%201.426%201.177%202.582%202.627%202.582h81.525c1.45%200%202.627-1.156%202.627-2.582V30.999c0-1.427-1.177-2.583-2.627-2.583'%3e%3c/path%3e%3cmask%20id='error0_l1rycuavtd'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_rks5mj93dc'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23656C79'%20d='M27.669%2092.606L101.258%2092.606%20101.258%2090.113%2027.669%2090.113z'%20mask='url(%23error0_l1rycuavtd)'%3e%3c/path%3e%3cpath%20fill='%23323740'%20d='M31.329%2091.36c0%202.004-1.625%203.63-3.63%203.63-2.004%200-3.63-1.626-3.63-3.63%200-2.005%201.626-3.63%203.63-3.63%202.005%200%203.63%201.625%203.63%203.63'%20mask='url(%23error0_l1rycuavtd)'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)'%3e%3cmask%20id='error0_bbt3gcsxof'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_2raz0xr19e'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23333'%20d='M131%20104.522c0%2011.862-9.616%2021.478-21.478%2021.478-11.861%200-21.477-9.616-21.477-21.478%200-11.86%209.616-21.477%2021.477-21.477%2011.862%200%2021.478%209.616%2021.478%2021.477'%20mask='url(%23error0_bbt3gcsxof)'%20opacity='.2'%3e%3c/path%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23323740'%20d='M46.033%2022.974c0-12.499-10.132-22.63-22.63-22.63C10.902.343.77%2010.474.77%2022.973c0%2012.5%2010.132%2022.631%2022.631%2022.631%2012.5%200%2022.631-10.132%2022.631-22.63'%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)'%3e%3c/path%3e%3cpath%20fill='%23838D9E'%20d='M17.416%2034.777L17.416%2011.171%2035.243%2022.971z'%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)'%3e%3c/path%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)%20translate(53%2046)'%3e%3cmask%20id='error0_6837smyffh'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_arf9x60eqg'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23394252'%20d='M43%2021.522C43%2033.384%2033.384%2043%2021.522%2043%209.661%2043%20.045%2033.384.045%2021.522.045%209.662%209.661.045%2021.522.045%2033.384.045%2043%209.661%2043%2021.522'%20mask='url(%23error0_6837smyffh)'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)%20translate(53%2046)'%3e%3cmask%20id='error0_vtacl4ykgj'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_qune5idx7i'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23ACB2BD'%20d='M21.523%2037.573c-3.476%200-6.685-1.117-9.313-2.995L34.578%2012.21c1.878%202.628%202.994%205.837%202.994%209.312%200%208.864-7.186%2016.051-16.05%2016.051m-16.05-16.05c0-8.864%207.186-16.05%2016.05-16.05%203.477%200%206.686%201.117%209.314%202.995L8.466%2030.835C6.59%2028.208%205.472%2025%205.472%2021.522M21.523.046C9.663.046.047%209.661.047%2021.522.046%2033.385%209.662%2043%2021.523%2043%2033.385%2043%2043%2033.385%2043%2021.522%2043%209.662%2033.385.046%2021.523.046'%20mask='url(%23error0_vtacl4ykgj)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='license'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-rule='nonzero'%20d='M12.5%202c.552%200%201%20.448%201%201v3.504H12V6.5H2v4h5.429V12H1.5c-.513%200-.936-.386-.993-.883L.5%2011V3c0-.552.448-1%201-1zM12%203.5H2V5h10V3.5z'%20transform='translate(-941%20-874)%20translate(926%20822)%20translate(5%2045)%20translate(10%207)'%3e%3c/path%3e%3cpath%20d='M13.24%2010.12c-.09-.155-.09-.345%200-.5l.2-.365c.073-.133.081-.292.023-.432-.059-.14-.177-.246-.323-.288l-.395-.115c-.164-.048-.292-.176-.34-.34l-.115-.395c-.042-.146-.148-.264-.288-.323-.14-.058-.299-.05-.432.023l-.365.2c-.155.09-.345.09-.5%200l-.36-.2c-.133-.073-.292-.081-.432-.023-.14.059-.246.177-.288.323l-.12.395c-.048.164-.176.292-.34.34l-.395.115c-.146.047-.263.16-.315.304-.053.145-.036.305.045.436l.195.365c.09.155.09.345%200%20.5l-.195.36c-.073.132-.082.29-.025.43.058.14.175.247.32.29l.395.12c.143.041.26.144.32.28L8.88%2013l1.12.5.575-1.275.135-.07c.155-.09.345-.09.5%200l.135.07.57%201.275%201.14-.5-.625-1.4c.059-.135.174-.238.315-.28l.395-.12c.146-.042.264-.148.323-.288.058-.14.05-.299-.023-.432l-.2-.36zm-2.275.76c-.552%200-1-.448-1-1s.448-1%201-1%201%20.448%201%201-.448%201-1%201z'%20transform='translate(-941%20-874)%20translate(926%20822)%20translate(5%2045)%20translate(10%207)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20159%2026'%20id='ncp'%3e%3cg%20fill='%23FFF'%20fill-rule='evenodd'%3e%3cpath%20d='M62.524%2015.01c1.874%200%203.025%201.099%203.322%202.69h-1.642c-.271-.725-.763-1.216-1.68-1.216-1.267%200-2.017%201.112-2.017%202.624%200%201.5.75%202.625%202.017%202.625.917%200%201.409-.492%201.68-1.23h1.642c-.297%201.603-1.448%202.703-3.322%202.703-2.12%200-3.697-1.668-3.697-4.098%200-2.43%201.577-4.098%203.697-4.098M67.032%2015.14h1.655v6.476h3.697v1.46h-5.352zM76.465%2016.484c-1.254%200-2.068%201.072-2.068%202.624%200%201.551.814%202.624%202.068%202.624%201.267%200%202.094-1.073%202.094-2.624%200-1.552-.827-2.624-2.094-2.624m0%206.722c-2.21%200-3.749-1.732-3.749-4.098%200-2.379%201.539-4.098%203.749-4.098s3.762%201.72%203.762%204.098c0%202.366-1.552%204.098-3.762%204.098M81.313%2019.883V15.14h1.655v4.575c0%201.357.594%202.004%201.641%202.004%201.048%200%201.642-.647%201.642-2.004V15.14h1.654v4.743c0%202.185-1.305%203.323-3.296%203.323-1.977%200-3.296-1.138-3.296-3.323M92.129%2021.616c1.512%200%202.34-.97%202.34-2.508%200-1.551-.828-2.52-2.34-2.52H91.03v5.028h1.099zm-2.74-6.477h2.804c2.405%200%203.917%201.551%203.917%203.969%200%202.417-1.512%203.969-3.917%203.969h-2.805v-7.938zM102.386%2016.549h-1.487v2.365h1.487c.853%200%201.267-.491%201.267-1.177%200-.71-.414-1.188-1.267-1.188zm-1.487%203.774v2.754h-1.641v-7.938h3.231c1.681%200%202.792.905%202.792%202.598%200%201.681-1.11%202.586-2.792%202.586h-1.59zM106.467%2015.14h1.654v6.476h3.697v1.46h-5.351zM115.44%2019.767h1.938l-.969-2.637-.97%202.637zm1.81-4.628l3.037%207.937h-1.68l-.711-1.913h-2.973l-.698%201.913h-1.655l3.038-7.937h1.641zM119.881%2015.14h6.774v1.447h-2.56v6.49h-1.667v-6.49h-2.547zM127.817%2023.076V15.14h5.287v1.447h-3.646v2.017h3.374v1.434h-3.374v3.038zM137.736%2016.484c-1.254%200-2.068%201.072-2.068%202.624%200%201.551.814%202.624%202.068%202.624%201.267%200%202.094-1.073%202.094-2.624%200-1.552-.827-2.624-2.094-2.624m0%206.722c-2.21%200-3.748-1.732-3.748-4.098%200-2.379%201.538-4.098%203.748-4.098s3.762%201.72%203.762%204.098c0%202.366-1.551%204.098-3.762%204.098M144.35%2018.759h1.525c.827%200%201.254-.44%201.254-1.1%200-.671-.427-1.11-1.254-1.11h-1.525v2.21zm0%201.358v2.96h-1.642v-7.938h3.27c1.668%200%202.78.892%202.78%202.52%200%201.268-.698%202.07-1.81%202.34l2.094%203.077h-1.861l-1.965-2.96h-.866zM153.744%2023.076l-1.965-5.184v5.184h-1.551V15.14h1.964l2.12%205.597%202.108-5.597h1.938v7.936h-1.563v-5.184l-1.927%205.184z'%3e%3c/path%3e%3cg%3e%3cpath%20d='M.122%2024.725h23.317V1.396H.122zM38.553%2025.871c7.071.002%2012.806-5.73%2012.807-12.802C51.362%205.996%2045.63.262%2038.558.26%2031.486.258%2025.752%205.99%2025.75%2013.063c0%207.072%205.73%2012.807%2012.803%2012.808z'%3e%3c/path%3e%3c/g%3e%3cg%3e%3cpath%20d='M71.513%207.877l.882-2.465.882%202.465h-1.764zm-.51-4.95l-3.094%207.89h2.63l.373-1.045h2.966l.373%201.044h2.63l-3.094-7.89h-2.784zM87.826%207.819h3.597V5.924h-3.597V4.86h3.636V2.926h-6.15v7.89h6.227V8.882h-3.713zM80.014%208.114l-1.857-5.188h-2.63l3.095%207.89h2.785l3.094-7.89h-2.63zM64.544%207.149l-2.94-4.223h-2.436v7.89h2.553V6.593l2.94%204.223h2.436v-7.89h-2.553zM96.567%206.6h-1.354V4.937h1.354a.831.831%200%200%201%200%201.663zm1.718%201.51l.24-.1c.916-.385%201.383-1.215%201.383-2.269%200-.997-.364-1.734-1.08-2.192-.667-.425-1.531-.623-2.72-.623h-3.331v7.89h2.475V8.611h.89l1.508%202.205h2.63L98.285%208.11z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20190.15%2031.38'%20id='ncp_c'%3e%3cdefs%3e%3cstyle%3e%23ncp_c%20.cls-1{fill:none;}%23ncp_c%20.cls-2{fill:%23fff;}%23ncp_c%20.cls-3{clip-path:url(%23ncp_c_clip-path);}%23ncp_c%20.cls-4{clip-path:url(%23ncp_c_clip-path-2);}%20%3c/style%3e%3cclipPath%20id='ncp_c_clip-path'%3e%3ccircle%20class='cls-1'%20cx='46.29'%20cy='15.69'%20r='15.38'%3e%3c/circle%3e%3c/clipPath%3e%3cclipPath%20id='ncp_c_clip-path-2'%3e%3crect%20class='cls-1'%20x='0.15'%20y='1.68'%20width='28'%20height='28.01'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3cpath%20class='cls-2'%20d='M75.07,18a3.78,3.78,0,0,1,4,3.23h-2a2,2,0,0,0-2-1.46c-1.52,0-2.42,1.34-2.42,3.15s.9,3.15,2.42,3.15a2,2,0,0,0,2-1.47h2a3.78,3.78,0,0,1-4,3.24c-2.54,0-4.44-2-4.44-4.92S72.53,18,75.07,18Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M80.49,18.18h2V26h4.44v1.76H80.49Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M91.81,27.86c-2.65,0-4.5-2.08-4.5-4.92S89.16,18,91.81,18s4.52,2.07,4.52,4.92S94.47,27.86,91.81,27.86Zm0-8.07c-1.5,0-2.48,1.29-2.48,3.15s1,3.15,2.48,3.15,2.52-1.28,2.52-3.15S93.33,19.79,91.81,19.79Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M97.64,23.87V18.18h2v5.49c0,1.63.72,2.41,2,2.41s2-.78,2-2.41V18.18h2v5.69a4,4,0,1,1-7.91,0Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M107.33,18.18h3.37a4.41,4.41,0,0,1,4.7,4.76,4.41,4.41,0,0,1-4.7,4.77h-3.37ZM110.62,26c1.82,0,2.81-1.16,2.81-3s-1-3-2.81-3H109.3v6Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M121.15,24.4v3.31h-2V18.18h3.88c2,0,3.36,1.08,3.36,3.12s-1.34,3.1-3.36,3.1Zm1.79-4.53h-1.79v2.84h1.79a1.42,1.42,0,1,0,0-2.84Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M127.84,18.18h2V26h4.44v1.76h-6.42Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M140.78,18.18l3.65,9.53h-2l-.85-2.3H138l-.84,2.3h-2l3.64-9.53Zm-2.17,5.56h2.33l-1.16-3.17Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M144,18.18h8.13v1.74H149v7.79h-2V19.92H144Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M153.47,27.71V18.18h6.35v1.74h-4.38v2.42h4.06v1.72h-4.06v3.65Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M165.38,27.86c-2.65,0-4.5-2.08-4.5-4.92s1.85-4.92,4.5-4.92,4.52,2.07,4.52,4.92S168,27.86,165.38,27.86Zm0-8.07c-1.5,0-2.48,1.29-2.48,3.15s1,3.15,2.48,3.15,2.52-1.28,2.52-3.15S166.91,19.79,165.38,19.79Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M173.33,24.15v3.56h-2V18.18h3.93c2,0,3.34,1.07,3.34,3a2.68,2.68,0,0,1-2.17,2.8l2.51,3.7h-2.24l-2.35-3.56Zm0-1.63h1.83c1,0,1.5-.52,1.5-1.31s-.51-1.34-1.5-1.34h-1.83Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M184.61,27.71l-2.36-6.23v6.23h-1.87V18.18h2.36l2.55,6.72,2.53-6.72h2.33v9.53h-1.88V21.48L186,27.71Z'%3e%3c/path%3e%3cg%20class='cls-3'%3e%3cimage%20width='33'%20height='32'%20transform='translate(29.69%20-0.6)'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAgCAYAAACcuBHKAAAACXBIWXMAAAsSAAALEgHS3X78AAAF3klEQVRYR22X/5LjuA2EvwYheWZvty6XpO7B83p5hVRSuWTnxpaEzh+gZO9VOEPLskj8aDRASPz9b4YCDsDATt9/IowJkv8QbAQHsLM4+eTgL/uvjFr5+fiVrHcGX4AEFswCStDACDPYJQ7EJ+JT4r/Ad4lshTvwAWz0eAcewEKwIwSIn7zyXTvvXvnqldULX4+/IgaDt7k3gAGaVwYARghhxEMCQEDYZHt/gPZpxAfwL+BgsYCFb4abF1YPvrFy84p8Y9QXBgEOWo6AgakXA8Z8FhSwIdLwm8RBQ5Ct/Lz9mLMNk5I3w0KyIN6dDC8kCfWG/AYEaCqygB10o8fAtIFGhCHVuN8MewNM3mpj153kMY2BXcVCsNZgQcgwLMLBcDCc4AS3EjumUmNFS55DhlJrK8z/G9kfPz5MR+8GwiKdDA+yFmLGGDNhL85QmACPRmZezaAMh6Ao7GBXm3OfevOX2jhjJt04iQQmnSwk6cFSeRnpeq6zAQb2kxNtYDZXdKJUQLBJDILvMguwu8g/14ZnKoZWxHopkweiwyCPDgOB2Z8KmTxgoTPjoMUz7wMowoOSSYtDxWLY5ObEl9pgxqxjKywhawrQJNyZAZ5eneMkJI3GHzgxg/oSNAAR+FqVoY32LtC03K5e7mpYL840tJKxhZ29jAFekKK/s0yNBhvrab4xj0nRRllE17CDYENsdCY/ve3npwheroW0T1HmzCxev/+wpQ3CEPP3B0UJQhfDz9WnAa/M78LbGXNe80K9SzT0x0ThLFJ+OiAaiZOqg6ZBopoPe5ncC59DtGfPVXgB7eAEVqQd10nGP6ztDec/u0wY7vOKIF6j9RRSLzJONOZVBdonCAZNpTLNh8mnH2Nxlh3k1jCsq4hFPz1P0fMkNZ12Zznv30RN5cc0xujaA7joTHlxzMZ+Sgn6OOzkbmkzsHP6FBdIeolevEwhBq4VvHSGuCtk72lt3QYUQTDsCxsLHheXWlo8jTirW9B140ebX+cVKRXSGaKT3L1H7mP6xwO9sb0ZNj2NyhaqS0Dn+tOQntliPGjjVqyuDb5UaFLDWIVm4QubUruTcKF9naJTA5KeKLwiw0CXIRMpDazT6Kf5z5HExaEzuHP6qWHM3zCk51lh1N4BaKEblZ5i5QLWAbz1mtnKncbaS4fIScjdAmDKUIhH9I4Tgfv0N8x4gRTOvrBnzPs5CdCCNIC1DTgLFwE6iIlAOC4EoI1ZZpasbm4sk1zpi5BnCIRILPM8Gcek8gqOF8SYPIFO1wKf1fVADmQz1IvHNGBXc+J+GvGId4IiMKWVwFi3i1iyOLQiBnKjsytRJKrEMbACVRAzTTtFZxVovl514q6uQJ9Sh8WQW7TisLHWDorW6WaLOtSISAEODiWBJtaz3gnMzAp1h4K7kbleHWyGWuZirrKdRvyW37jVzsHKSmHekGaeCz65YQ1W94H/oZWfAnBQDJYQWEQNFOqygdsYHxhRMgez45b4VNcKEPmP5RfevXHXjdJ5AnbGnMm6kaTN72q4H0BFtjdAVoegoohiVs7q5uhKZyYicHNxJ3hUcA+R/17/xL12bsfGXV+4+cC+IWpWPPOphaxizMLzqWR18O0wh5KbgnAXOrmbIw8w7qbW/Qq1Yw765aeYFdlB7uMnfg/YtHVylfEU1C1g5/v3sbJUQ+tYKItPzFcnuHBAMM+PYc5MqzC2OTCHu3s5BA9iEjPIihvjuLPHAhZSUZg+Vk4oRVTxGMtkejAISsUjxJu6BfRsXClhm8qiSlcYgn4JSroV3mZBTMZbp1ztqDZ2gqK690OT+UEpmnwaJGJYJMG7kgVQFVJ31AIq2oFNLWO3OSoomXslHzm4K8Ei+ywokHAE8oHt63yQoouy2vv+E6uDnJ4hUCZhOBC7RLkN2Ax2UIjDYrfYA0JFUhyRJLp1jqsbm4qGGZthMQw3BSuDGwNZLIp+pi6970qOY4dITHHYfCI+DA+DCf65JD8/+pXwINgiOEbAGPwPpJUnmU7jmgEAAAAASUVORK5CYII='%3e%3c/image%3e%3c/g%3e%3cg%20class='cls-4'%3e%3cimage%20width='29'%20height='29'%20transform='translate(-0.31%201.4)'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAACXBIWXMAAAsSAAALEgHS3X78AAAENklEQVRIS32XXW7kNhCEv2rS68VuEOQUOXduk8vkJVnEPzNiVx66qZGNRQgTkklJ1V1VbHL0+59/eBqmYRkAZCMADCQiWSSLRZK8ceNNd+6s6locSlYshFCYQTAVEItvMRkBv8YTv+k78xV46m6BDCEIgwDhhjcmK6g9I0jqQdUQAKkkgBQQBzC5xxvwxItemIt+gQIcnd+GKgg3jLCyvi0IxCRYcj2vCg7B0sJaQPISrwySf+IH32Iyf4R4TvNMAV7bQCd8tYruYGGBDSuaIUT/4VhAjXvcSA1yvpN85TXuzKRoWIbgmuUVyyR5zgSByBOkgB7cFGDiqHfuuiGSf+OFLyHmXebJBZz9mgzSR3h11nctotEss6hoJSCyuvzokViGuGMFNyVxIA5tiuiPVRDqvJNsPUvHpXxoqgBBqqnStRewIknMTXfuuhMhE53NEh+adclSZaaQkITlDi5xuLPv7ACUZzc0A0mSxBFwtBmiQXJnfTHHbjpnek4qFlq/onR9CMBaYJFAksypxYhybjRD00kgpER2RUxFSdSSUexMLiB7LBK0quPHcyrXzCclw2LIhFUGcrlRZOkqI5vApMyho2hTsnTU/NU88PEqTkCA6Rbc3g8aR1ckFWVqLXa0Q+KIDmZ/8JpN7Ax5MHE2M7/HG8/AF4mnrCiGDTlQrBbYXdbMEYvhApKSkFlRwZ70bsCtMcDFGfFVB0PmSYuQiY5K4+CqUwgIMyTWWKXtSWuSW1fgUVcb2OJc8xITzGh3lXFA2yyuAiAgVR8VnPodWqS2ubZR9rVp9iNDOob5S7whB6EoQ5kKYEfYW48x6dJHDbQp38FUplvf1vEn5prPcZA5mCxgdKEQdrRuwhjh1i85zqyNwmQcZ3DbjCeIL3p3a3oTCORHuVNT7navDVJyH3eG4R6XNSw3/VcT8QC+AIKZX+JAHpCJIyjJ1YCAVZuyxaFkiFPLoOYkzvX80HTfX5cLgJhDSXpUhdlBWm04ATodKiD0oPoWqyj+GdjZd9o+rzNDoEVaKGvXROpi0RkrWUqWhbVwHKQWbtN4u/WTUX/exMxzSe1dw2eGVp70YqGoI4gxVmKS9UHLS4bu/w2PAlFTc98ZOI8Ocm1dBl+o88X6Vp0NJbPieJTR7db97N43N65gvkbNjxQmOSKR+7xnkSR3LXCQSm46OICMRbg29ACWPoGdSDvQPaYq+MZk10+7Nuaa9xlgapFUEbD2weta+i7U1uzlHuBRCuffos+5te5uY9W+ahiG1dmpv3OLO7Z4UxWEQ9mmuoB+xoIP4zMl+kCBZBKfpW3rk32/NV3KYqcZSRlvLeF/KK4I5l9RPykQDJJ3HUzDsBmqQ9lr3KouA+86eMrgFgeRUYDncvED55Njr8t1HpQJ9ilhUS+8qxc+yWoGDup6i3VmWif6Td3OiI9NlwGZ/wBaygtRu0bsNQAAAABJRU5ErkJggg=='%3e%3c/image%3e%3c/g%3e%3cpath%20class='cls-2'%20d='M85.26,3.51,81.54,13H84.7l.45-1.26h3.56L89.16,13h3.15L88.6,3.51Zm.61,6,1.06-3,1.06,3Z'%3e%3c/path%3e%3cpolygon%20class='cls-2'%20points='105.46%209.39%20109.78%209.39%20109.78%207.11%20105.46%207.11%20105.46%205.83%20109.82%205.83%20109.82%203.51%20102.44%203.51%20102.44%2012.99%20109.91%2012.99%20109.91%2010.66%20105.46%2010.66%20105.46%209.39'%3e%3c/polygon%3e%3cpolygon%20class='cls-2'%20points='96.08%209.74%2093.85%203.51%2090.69%203.51%2094.4%2012.99%2097.75%2012.99%20101.46%203.51%2098.31%203.51%2096.08%209.74'%3e%3c/polygon%3e%3cpolygon%20class='cls-2'%20points='77.5%208.58%2073.97%203.51%2071.05%203.51%2071.05%2012.99%2074.11%2012.99%2074.11%207.92%2077.64%2012.99%2080.56%2012.99%2080.56%203.51%2077.5%203.51%2077.5%208.58'%3e%3c/polygon%3e%3cpath%20class='cls-2'%20d='M118,9.74l.29-.12A2.75,2.75,0,0,0,120,6.89a2.91,2.91,0,0,0-1.29-2.63,6,6,0,0,0-3.27-.75h-4V13h3V10.34h1.07L117.25,13h3.16ZM116,7.93h-1.62v-2H116a1,1,0,0,1,0,2Z'%3e%3c/path%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='next'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M12.143.436H14.286000000000001V14.707H12.143zM.714.429C.32.429%200%20.749%200%201.143V14c0%20.394.32.714.714.714.143-.002.283-.046.4-.128l9.579-6.429c.204-.131.327-.357.327-.6%200-.242-.123-.468-.327-.6L1.114.53c-.12-.072-.26-.107-.4-.1z'%20transform='translate(-374%20-1762)%20translate(325%201754)%20translate(41)%20translate(8%208)%20translate(2.857%202.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2036%2036'%20id='next2'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23ff0024'%20fill-rule='nonzero'%3e%3cpath%20d='M21.857.784H25.714V26.473H21.857zM1.286.771C.576.771%200%201.347%200%202.057V25.2c0%20.71.576%201.286%201.286%201.286.257-.004.508-.084.72-.232l17.241-11.571c.367-.237.588-.644.588-1.08%200-.437-.221-.843-.588-1.08L2.006.95c-.217-.129-.468-.192-.72-.18z'%20transform='translate(-782%20-3039)%20translate(360%202790)%20translate(286%20125)%20translate(114%20102)%20translate(22%2022)%20translate(5.143%204.371)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='out-link'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-941%20-841)%20translate(926%20822)%20translate(5%2012)%20translate(10%207)'%3e%3c/path%3e%3cpath%20d='M10.005%2011.5L10.005%209.208%2011.5%209.208%2011.5%2011.375%2011.5%2013%202.625%2013%201%2013%201%202.5%202.625%202.5%204.792%202.5%204.792%203.999%202.5%203.999%202.5%2011.5z'%20transform='translate(-941%20-841)%20translate(926%20822)%20translate(5%2012)%20translate(10%207)'%3e%3c/path%3e%3cpath%20d='M11.5%201L5.5%201%205.5%202.5%2010.44%202.5%206.293%206.646%207.354%207.707%2011.5%203.561%2011.5%208.5%2013%208.5%2013%202.5%2013%201z'%20transform='translate(-941%20-841)%20translate(926%20822)%20translate(5%2012)%20translate(10%207)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022%2022'%20id='pause'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2022L22%2022%2022%200%200%200z'%20transform='translate(-808%20-1761)%20translate(325%201754)%20translate(476)%20translate(7%207)'%3e%3c/path%3e%3cpath%20d='M5.277%2019.643L8.42%2019.643%208.42%202.357%205.277%202.357zM13.58%2019.643L16.723%2019.643%2016.723%202.357%2013.58%202.357z'%20transform='translate(-808%20-1761)%20translate(325%201754)%20translate(476)%20translate(7%207)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022%2022'%20id='play'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1.014%200C.46%200%20.009.444%200%20.998v16.861c.009.554.46.998%201.014.998.172%200%20.342-.044.495-.126l15.25-8.415c.324-.178.525-.518.525-.887%200-.37-.201-.71-.525-.888L1.51.11C1.355.034%201.185-.004%201.014%200z'%20transform='translate(-767%20-1761)%20translate(325%201754)%20translate(435)%20translate(7%207)%20translate(3.143%201.571)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='prev'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M12.143.436H14.286000000000001V14.707H12.143zM.714.429C.32.429%200%20.749%200%201.143V14c0%20.394.32.714.714.714.143-.002.283-.046.4-.128l9.579-6.429c.204-.131.327-.357.327-.6%200-.242-.123-.468-.327-.6L1.114.53c-.12-.072-.26-.107-.4-.1z'%20transform='translate(-333%20-1762)%20translate(325%201754)%20matrix(-1%200%200%201%2036%200)%20translate(8%208)%20translate(2.857%202.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2036%2036'%20id='replay'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2036L36%2036%2036%200%200%200z'%20transform='translate(-782%20-4058)%20translate(360%203860)%20translate(389%20176)%20translate(11)%20translate(22%2022)'%3e%3c/path%3e%3cpath%20d='M30.978%2012.843l-3.343%201.93c.824%201.537%201.293%203.29%201.293%205.156%200%206.035-4.892%2010.929-10.928%2010.929-6.035%200-10.929-4.894-10.929-10.929%200-5.187%203.617-9.52%208.461-10.64v4.16l10.536-6.081-10.536-6.082v4.08C8.545%206.542%203.214%2012.604%203.214%2019.929c0%208.166%206.62%2014.786%2014.786%2014.786%208.167%200%2014.785-6.62%2014.785-14.786%200-2.568-.655-4.982-1.807-7.086'%20transform='translate(-782%20-4058)%20translate(360%203860)%20translate(389%20176)%20translate(11)%20translate(22%2022)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='setting-before'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-953%20-2000)%20translate(938%201984)%20translate(15%2016)'%3e%3c/path%3e%3cpath%20d='M3.97%207L8.97%2012%2010.03%2010.94%206.087%206.997%2010.027%203.058%208.97%202z'%20transform='translate(-953%20-2000)%20translate(938%201984)%20translate(15%2016)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='setting-check'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-951%20-2132)%20translate(938%201984)%20translate(1%2056)%20translate(0%2078)%20translate(12%2014)'%3e%3c/path%3e%3cpath%20d='M6.133%209.879L2.111%205.99%201.013%207.05%205.036%2010.94%206.133%2012%207.231%2010.94%2013.448%204.929%2012.351%203.868z'%20transform='translate(-951%20-2132)%20translate(938%201984)%20translate(1%2056)%20translate(0%2078)%20translate(12%2014)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='setting-more'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-1099%20-1599)%20translate(938%201538)%20translate(1%2012)%20translate(0%2033)%20translate(160%2016)'%3e%3c/path%3e%3cpath%20d='M10.031%207L5.031%202%203.97%203.061%207.913%207.003%203.973%2010.943%205.031%2012z'%20transform='translate(-1099%20-1599)%20translate(938%201538)%20translate(1%2012)%20translate(0%2033)%20translate(160%2016)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2018'%20id='up'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M6.939%204.5L2.478%200.039%203.842%20-1.325%209.666%204.499%203.842%2010.325%202.478%208.962z'%20transform='translate(-293%20-57)%20translate(58%2050)%20translate(119)%20translate(116%207)%20translate(2.929%204.5)%20rotate(90%206.072%204.5)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='volume0'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-415%20-1762)%20translate(325%201754)%20translate(82)%20translate(8%208)'%3e%3c/path%3e%3cg%3e%3cpath%20d='M9.733.163L7.408%202.079%204.362%204.587H0v9.398h4.362l3.046%202.508%202.325%201.915c.463.382%201.162.052%201.162-.549V.712c0-.6-.699-.93-1.162-.549zM18.571%207.593L17.309%206.331%2015.616%208.024%2013.924%206.331%2012.662%207.593%2014.354%209.286%2012.662%2010.978%2013.924%2012.241%2015.616%2010.549%2017.309%2012.241%2018.571%2010.978%2016.879%209.286z'%20transform='translate(-415%20-1762)%20translate(325%201754)%20translate(82)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='volume1'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-456%20-1839)%20translate(325%201831)%20translate(123)%20translate(8%208)'%3e%3c/path%3e%3cg%3e%3cpath%20d='M9.733.163L7.407%202.079%204.362%204.587H0v9.398h4.362l3.045%202.508%202.326%201.915c.463.382%201.162.052%201.162-.549V.712c0-.6-.699-.93-1.162-.549zM13.984%2013.01l-1.18-1.34c.685-.604%201.077-1.473%201.077-2.384%200-.912-.392-1.782-1.078-2.386l1.181-1.34c1.07.944%201.683%202.302%201.683%203.726s-.613%202.782-1.683%203.724'%20transform='translate(-456%20-1839)%20translate(325%201831)%20translate(123)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3cpath%20fill-opacity='.3'%20d='M15.903%2015.19l-1.18-1.34c1.311-1.155%202.063-2.819%202.063-4.564s-.752-3.41-2.063-4.565l1.18-1.34c1.696%201.495%202.668%203.647%202.668%205.905%200%202.258-.972%204.41-2.668%205.904'%20transform='translate(-456%20-1839)%20translate(325%201831)%20translate(123)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='volume2'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-497%20-1762)%20translate(325%201754)%20translate(164)%20translate(8%208)'%3e%3c/path%3e%3cg%3e%3cpath%20d='M9.733.163L7.407%202.079%204.362%204.587H0v9.398h4.362l3.045%202.508%202.326%201.915c.463.382%201.162.052%201.162-.549V.712c0-.6-.699-.93-1.162-.549zM13.984%2013.01l-1.18-1.34c.685-.604%201.077-1.473%201.077-2.384%200-.912-.392-1.782-1.078-2.386l1.181-1.34c1.07.944%201.683%202.302%201.683%203.726s-.613%202.782-1.683%203.724'%20transform='translate(-497%20-1762)%20translate(325%201754)%20translate(164)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3cpath%20d='M15.903%2015.19l-1.18-1.34c1.311-1.155%202.063-2.819%202.063-4.564s-.752-3.41-2.063-4.565l1.18-1.34c1.696%201.495%202.668%203.647%202.668%205.905%200%202.258-.972%204.41-2.668%205.904'%20transform='translate(-497%20-1762)%20translate(325%201754)%20translate(164)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20id='pip'%3e%3cpath%20d='M0%200h24v24H0V0z'%20fill='none'/%3e%3cpath%20d='M19%2011h-8v6h8v-6zm4%208V4.98C23%203.88%2022.1%203%2021%203H3c-1.1%200-2%20.88-2%201.98V19c0%201.1.9%202%202%202h18c1.1%200%202-.9%202-2zm-2%20.02H3V4.97h18v14.05z'/%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20id='subtitles'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM56,128H72a8,8,0,0,1,0,16H56a8,8,0,0,1,0-16Zm96,48H56a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm48,0H184a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H104a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20id='subtitlesOff'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM48,136a8,8,0,0,1,8-8H72a8,8,0,0,1,0,16H56A8,8,0,0,1,48,136Zm160,0a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16h96A8,8,0,0,1,208,136Zm-48,32a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16h96A8,8,0,0,1,160,168Zm48,0a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16h16A8,8,0,0,1,208,168Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3c/svg%3e";function lm(a){const{accessKey:i,platform:s="pub",stage:o="prod",isDev:c=!1,hls:d,dashjs:f,options:g,layout:m}=a,[p,y]=C.useState(null),[S,v]=C.useState([]),[z,j]=C.useState(!1),[L,O]=Xf("playerOptions",g??{}),[A,k]=C.useState(""),[G,P]=C.useState({errorCode:null,errorMessage:null,errorTitle:null}),[_,F]=C.useState(!1),V=0,N=typeof window<"u"&&window.location.host||"local";C.useEffect(()=>{if(!i)return;const dt=new O3({accessKey:i,appId:N,platform:s,stage:o,isDev:c});y(dt)},[i,N,s,o,c]),C.useEffect(()=>{if(!p||z)return;(async()=>{if(await p.initialize(),p.isInitialized()){const it=p.getValidatedOptions(g);O(it),v(it?.playlist||[]),j(!0)}})()},[p,z,g,O]),C.useEffect(()=>{const dt=globalThis;d&&(dt.Hls=d),f&&(dt.dashjs=f)},[d,f]),C.useEffect(()=>{const dt=S?.[V]?.file;if(!dt){k("");return}const it=dt.toLowerCase();it.endsWith(".m3u8")?k("hls"):it.endsWith(".mpd")?k("dash"):it.endsWith(".mp4")?k("mp4"):k("")},[S,V]),C.useEffect(()=>{if(!p||!A)return;const dt=globalThis,it=d??dt.Hls,Q=f??dt.dashjs;if(A==="hls"&&!it){const U=p.setErrorRun("E0015");F(!0),P({errorCode:U?.errorCode,errorMessage:U?.errorMessage?.desc,errorTitle:U?.errorMessage?.title})}if(A==="dash"&&!Q){const U=p.setErrorRun("E0016");F(!0),P({errorCode:U?.errorCode,errorMessage:U?.errorMessage?.desc,errorTitle:U?.errorMessage?.title})}},[A,p,d,f]);const tt=dt=>{if(!dt||typeof dt!="object")return;const it=dt;if(it?.evt=="hlsError"&&it?.data?.type=="networkError"){const Q=p.setErrorRun("E0004");F(!0),P({errorCode:Q?.errorCode,errorMessage:Q?.errorMessage?.desc,errorTitle:Q?.errorMessage?.title})}},lt=S?.[V],ot=d??globalThis.Hls,I=f??globalThis.dashjs,ut=()=>{if(!lt)return null;switch(A){case"hls":return x.jsx(J3,{src:lt,hlsLib:ot,options:L,onError:dt=>tt(dt)});case"dash":return x.jsx(I3,{src:lt,dashLib:I,options:L});case"mp4":return x.jsx(W3,{src:lt,options:L});default:return null}};return x.jsx("div",{style:{position:"relative",maxHeight:"100dvh",width:"100%",height:"100%",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},className:"vpe-root-wrap",children:_?x.jsxs("div",{style:{width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",aspectRatio:L?.aspectRatio||"16/9",position:"relative",overflow:"hidden"},children:[x.jsx("div",{style:{background:`url(${lt.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),x.jsx("div",{style:{position:"absolute",zIndex:4,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"rgba(0,0,0,0.69)"},children:x.jsxs("div",{style:{textAlign:"center"},children:[x.jsx("div",{children:x.jsx("svg",{width:"128",height:"128","aria-hidden":"true",children:x.jsx("use",{href:`${Cb}#error0`})})}),x.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:x.jsx("strong",{children:G?.errorMessage})}),G?.errorCode&&x.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",G.errorCode,")"]})]})})]}):x.jsxs(x.Fragment,{children:[x.jsx(zb,{src:lt,hlsLib:ot,dashLib:I,options:L,poster:lt?.poster,layout:m,metaTitle:lt?.description?.title,t:dt=>p?.$t(dt)??dt}),x.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:L?.aspectRatio||"16/9"},children:ut()})]})})}const sm=globalThis;sm.process||(sm.process={env:{}});let rm,hu;const wb=(()=>{if(typeof document>"u")return"";const a=[];document.currentScript instanceof HTMLScriptElement&&a.push(document.currentScript),a.push(...Array.from(document.getElementsByTagName("script")));for(const i of a)if(i.src)try{const o=new URL(i.src,window.location.href).searchParams.get("accessKey");if(o)return o}catch{continue}return""})();function Db(a){return a||wb}const Rb=a=>!a||typeof a!="object"?!1:"options"in a||"layout"in a||"platform"in a||"stage"in a||"hls"in a||"dashjs"in a||"accessKey"in a;function Lb(a){if(!a)return;const i=globalThis,s=typeof a=="object"&&a!==null&&("MediaPlayer"in a||"MediaPlayerFactory"in a),o=typeof a=="function"||typeof a=="object"&&a!==null&&("isSupported"in a||"Events"in a);if(s&&!o){i.dashjs=a;return}if(o&&!s){i.Hls=a;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function Bb(a){return typeof a!="string"||a.startsWith("#")||a.startsWith(".")||a.startsWith("[")||a.includes(" ")||a.includes(">")||a.includes(":")?a:typeof document<"u"&&document.getElementById(a)?`#${a}`:a}function Vb(a){return x.jsx(lm,{...a})}function mu(a,i,s={}){const o=typeof i=="string"?i:i?.accessKey,c=typeof i=="string"?s:i??{},d=Rb(c)?c:{options:c},f=Db(o);if(!f)throw new Error("accessKey를 찾을 수 없습니다.");const g=typeof a=="string"?document.querySelector(a):a;if(!g)throw new Error("지정한 타겟을 찾을 수 없습니다.");const m=document.createElement("div");g.appendChild(m);const p=y3.createRoot(m),y={...d,layout:d.layout??rm,platform:d.platform??hu?.platform,stage:d.stage??hu?.stage},S=(z={})=>{p.render(x.jsx(lm,{...y,...z,accessKey:f}))};return S(),{destroy:()=>{p.unmount(),m.parentNode&&m.parentNode.removeChild(m)},container:m,render:S}}class Qa{destroy;container;render;static use(i){return Lb(i),Qa}static layout(i){return rm=i,Qa}static config(i){return hu=i,Qa}constructor(i,s,o={}){const c=mu(Bb(i),s,o);this.destroy=c.destroy,this.container=c.container,this.render=c.render}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:mu},window.ncplayer=Qa),on.Ncplayer=Qa,on.VpePlayer=Vb,on.setup=mu,on.useDeviceState=Ff,Object.defineProperty(on,Symbol.toStringTag,{value:"Module"})}));