@alfatech/livechat 2026.5.1-8.1 → 2026.6.0-8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChatierHeaderMark.js +44 -0
- package/dist/main.css +1 -1
- package/dist/main.js +27 -70
- package/dist/preview.html +14 -0
- package/dist/preview.js +1 -0
- package/package.json +1 -1
- package/public/widget-manifest.json +9 -2
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function Hm(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ix=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kf={exports:{}},Eo={},qf={exports:{}},z={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ti=Symbol.for("react.element"),$m=Symbol.for("react.portal"),Gm=Symbol.for("react.fragment"),Wm=Symbol.for("react.strict_mode"),Ym=Symbol.for("react.profiler"),Qm=Symbol.for("react.provider"),Xm=Symbol.for("react.context"),bm=Symbol.for("react.forward_ref"),Zm=Symbol.for("react.suspense"),Km=Symbol.for("react.memo"),qm=Symbol.for("react.lazy"),Cu=Symbol.iterator;function Jm(e){return e===null||typeof e!="object"?null:(e=Cu&&e[Cu]||e["@@iterator"],typeof e=="function"?e:null)}var Jf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ed=Object.assign,td={};function bn(e,t,n){this.props=e,this.context=t,this.refs=td,this.updater=n||Jf}bn.prototype.isReactComponent={};bn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nd(){}nd.prototype=bn.prototype;function bl(e,t,n){this.props=e,this.context=t,this.refs=td,this.updater=n||Jf}var Zl=bl.prototype=new nd;Zl.constructor=bl;ed(Zl,bn.prototype);Zl.isPureReactComponent=!0;var Tu=Array.isArray,rd=Object.prototype.hasOwnProperty,Kl={current:null},id={key:!0,ref:!0,__self:!0,__source:!0};function od(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)rd.call(t,r)&&!id.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:ti,type:e,key:o,ref:s,props:i,_owner:Kl.current}}function e0(e,t){return{$$typeof:ti,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ql(e){return typeof e=="object"&&e!==null&&e.$$typeof===ti}function t0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Pu=/\/+/g;function Xo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?t0(""+e.key):t.toString(36)}function Di(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ti:case $m:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Xo(s,0):r,Tu(i)?(n="",e!=null&&(n=e.replace(Pu,"$&/")+"/"),Di(i,t,n,"",function(u){return u})):i!=null&&(ql(i)&&(i=e0(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Pu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Tu(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Xo(o,l);s+=Di(o,t,n,a,i)}else if(a=Jm(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Xo(o,l++),s+=Di(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function hi(e,t,n){if(e==null)return e;var r=[],i=0;return Di(e,r,"","",function(o){return t.call(n,o,i++)}),r}function n0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Se={current:null},Vi={transition:null},r0={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:Vi,ReactCurrentOwner:Kl};function sd(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:hi,forEach:function(e,t,n){hi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hi(e,function(){t++}),t},toArray:function(e){return hi(e,function(t){return t})||[]},only:function(e){if(!ql(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=bn;z.Fragment=Gm;z.Profiler=Ym;z.PureComponent=bl;z.StrictMode=Wm;z.Suspense=Zm;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r0;z.act=sd;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ed({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Kl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)rd.call(t,a)&&!id.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:ti,type:e.type,key:i,ref:o,props:r,_owner:s}};z.createContext=function(e){return e={$$typeof:Xm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qm,_context:e},e.Consumer=e};z.createElement=od;z.createFactory=function(e){var t=od.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:bm,render:e}};z.isValidElement=ql;z.lazy=function(e){return{$$typeof:qm,_payload:{_status:-1,_result:e},_init:n0}};z.memo=function(e,t){return{$$typeof:Km,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=Vi.transition;Vi.transition={};try{e()}finally{Vi.transition=t}};z.unstable_act=sd;z.useCallback=function(e,t){return Se.current.useCallback(e,t)};z.useContext=function(e){return Se.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Se.current.useDeferredValue(e)};z.useEffect=function(e,t){return Se.current.useEffect(e,t)};z.useId=function(){return Se.current.useId()};z.useImperativeHandle=function(e,t,n){return Se.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Se.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Se.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Se.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Se.current.useReducer(e,t,n)};z.useRef=function(e){return Se.current.useRef(e)};z.useState=function(e){return Se.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Se.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Se.current.useTransition()};z.version="18.3.1";qf.exports=z;var L=qf.exports;const i0=Xl(L),ox=Hm({__proto__:null,default:i0},[L]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var o0=L,s0=Symbol.for("react.element"),l0=Symbol.for("react.fragment"),a0=Object.prototype.hasOwnProperty,u0=o0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c0={key:!0,ref:!0,__self:!0,__source:!0};function ld(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)a0.call(t,r)&&!c0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:s0,type:e,key:o,ref:s,props:i,_owner:u0.current}}Eo.Fragment=l0;Eo.jsx=ld;Eo.jsxs=ld;Kf.exports=Eo;var w=Kf.exports,ad={exports:{}},De={},ud={exports:{}},cd={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(_,V){var N=_.length;_.push(V);e:for(;0<N;){var q=N-1>>>1,se=_[q];if(0<i(se,V))_[q]=V,_[N]=se,N=q;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var V=_[0],N=_.pop();if(N!==V){_[0]=N;e:for(var q=0,se=_.length,fi=se>>>1;q<fi;){var Qt=2*(q+1)-1,Qo=_[Qt],Xt=Qt+1,di=_[Xt];if(0>i(Qo,N))Xt<se&&0>i(di,Qo)?(_[q]=di,_[Xt]=N,q=Xt):(_[q]=Qo,_[Qt]=N,q=Qt);else if(Xt<se&&0>i(di,N))_[q]=di,_[Xt]=N,q=Xt;else break e}}return V}function i(_,V){var N=_.sortIndex-V.sortIndex;return N!==0?N:_.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,g=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(_){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=_)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function k(_){if(x=!1,m(_),!y)if(n(a)!==null)y=!0,ci(S);else{var V=n(u);V!==null&&ne(k,V.startTime-_)}}function S(_,V){y=!1,x&&(x=!1,p(P),P=-1),g=!0;var N=d;try{for(m(V),f=n(a);f!==null&&(!(f.expirationTime>V)||_&&!oe());){var q=f.callback;if(typeof q=="function"){f.callback=null,d=f.priorityLevel;var se=q(f.expirationTime<=V);V=e.unstable_now(),typeof se=="function"?f.callback=se:f===n(a)&&r(a),m(V)}else r(a);f=n(a)}if(f!==null)var fi=!0;else{var Qt=n(u);Qt!==null&&ne(k,Qt.startTime-V),fi=!1}return fi}finally{f=null,d=N,g=!1}}var E=!1,M=null,P=-1,F=5,D=-1;function oe(){return!(e.unstable_now()-D<F)}function xt(){if(M!==null){var _=e.unstable_now();D=_;var V=!0;try{V=M(!0,_)}finally{V?Yt():(E=!1,M=null)}}else E=!1}var Yt;if(typeof h=="function")Yt=function(){h(xt)};else if(typeof MessageChannel<"u"){var er=new MessageChannel,Su=er.port2;er.port1.onmessage=xt,Yt=function(){Su.postMessage(null)}}else Yt=function(){C(xt,0)};function ci(_){M=_,E||(E=!0,Yt())}function ne(_,V){P=C(function(){_(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,ci(S))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var N=d;d=V;try{return _()}finally{d=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,V){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var N=d;d=_;try{return V()}finally{d=N}},e.unstable_scheduleCallback=function(_,V,N){var q=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?q+N:q):N=q,_){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=N+se,_={id:c++,callback:V,priorityLevel:_,startTime:N,expirationTime:se,sortIndex:-1},N>q?(_.sortIndex=N,t(u,_),n(a)===null&&_===n(u)&&(x?(p(P),P=-1):x=!0,ne(k,N-q))):(_.sortIndex=se,t(a,_),y||g||(y=!0,ci(S))),_},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(_){var V=d;return function(){var N=d;d=V;try{return _.apply(this,arguments)}finally{d=N}}}})(cd);ud.exports=cd;var f0=ud.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var d0=L,je=f0;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fd=new Set,Ar={};function hn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(Ar[e]=t,e=0;e<t.length;e++)fd.add(t[e])}var pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ns=Object.prototype.hasOwnProperty,h0=/^[: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]*$/,Eu={},Mu={};function p0(e){return Ns.call(Mu,e)?!0:Ns.call(Eu,e)?!1:h0.test(e)?Mu[e]=!0:(Eu[e]=!0,!1)}function m0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function g0(e,t,n,r){if(t===null||typeof t>"u"||m0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new Ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jl=/[\-:]([a-z])/g;function ea(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jl,ea);de[t]=new Ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jl,ea);de[t]=new Ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jl,ea);de[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function ta(e,t,n,r){var i=de.hasOwnProperty(t)?de[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(g0(t,n,i,r)&&(n=null),r||i===null?p0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var wt=d0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pi=Symbol.for("react.element"),vn=Symbol.for("react.portal"),yn=Symbol.for("react.fragment"),na=Symbol.for("react.strict_mode"),zs=Symbol.for("react.profiler"),dd=Symbol.for("react.provider"),hd=Symbol.for("react.context"),ra=Symbol.for("react.forward_ref"),Fs=Symbol.for("react.suspense"),Is=Symbol.for("react.suspense_list"),ia=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),pd=Symbol.for("react.offscreen"),_u=Symbol.iterator;function tr(e){return e===null||typeof e!="object"?null:(e=_u&&e[_u]||e["@@iterator"],typeof e=="function"?e:null)}var b=Object.assign,bo;function cr(e){if(bo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bo=t&&t[1]||""}return`
|
|
34
|
+
`+bo+e}var Zo=!1;function Ko(e,t){if(!e||Zo)return"";Zo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cr(e):""}function v0(e){switch(e.tag){case 5:return cr(e.type);case 16:return cr("Lazy");case 13:return cr("Suspense");case 19:return cr("SuspenseList");case 0:case 2:case 15:return e=Ko(e.type,!1),e;case 11:return e=Ko(e.type.render,!1),e;case 1:return e=Ko(e.type,!0),e;default:return""}}function Os(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yn:return"Fragment";case vn:return"Portal";case zs:return"Profiler";case na:return"StrictMode";case Fs:return"Suspense";case Is:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hd:return(e.displayName||"Context")+".Consumer";case dd:return(e._context.displayName||"Context")+".Provider";case ra:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ia:return t=e.displayName||null,t!==null?t:Os(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return Os(e(t))}catch{}}return null}function y0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Os(t);case 8:return t===na?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function md(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function w0(e){var t=md(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mi(e){e._valueTracker||(e._valueTracker=w0(e))}function gd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=md(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Us(e,t){var n=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vd(e,t){t=t.checked,t!=null&&ta(e,"checked",t,!1)}function Hs(e,t){vd(e,t);var n=Ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$s(e,t.type,n):t.hasOwnProperty("defaultValue")&&$s(e,t.type,Ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $s(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fr=Array.isArray;function Vn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ft(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return b({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ru(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(fr(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ft(n)}}function yd(e,t){var n=Ft(t.value),r=Ft(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ju(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ws(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gi,xd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(gi=gi||document.createElement("div"),gi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},x0=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){x0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function kd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gr.hasOwnProperty(e)&&gr[e]?(""+t).trim():t+"px"}function Sd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=kd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var k0=b({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ys(e,t){if(t){if(k0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Qs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xs=null;function oa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bs=null,Bn=null,Nn=null;function Du(e){if(e=ii(e)){if(typeof bs!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Ro(t),bs(e.stateNode,e.type,t))}}function Cd(e){Bn?Nn?Nn.push(e):Nn=[e]:Bn=e}function Td(){if(Bn){var e=Bn,t=Nn;if(Nn=Bn=null,Du(e),t)for(e=0;e<t.length;e++)Du(t[e])}}function Pd(e,t){return e(t)}function Ed(){}var qo=!1;function Md(e,t,n){if(qo)return e(t,n);qo=!0;try{return Pd(e,t,n)}finally{qo=!1,(Bn!==null||Nn!==null)&&(Ed(),Td())}}function Rr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ro(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Zs=!1;if(pt)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Zs=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Zs=!1}function S0(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var vr=!1,bi=null,Zi=!1,Ks=null,C0={onError:function(e){vr=!0,bi=e}};function T0(e,t,n,r,i,o,s,l,a){vr=!1,bi=null,S0.apply(C0,arguments)}function P0(e,t,n,r,i,o,s,l,a){if(T0.apply(this,arguments),vr){if(vr){var u=bi;vr=!1,bi=null}else throw Error(T(198));Zi||(Zi=!0,Ks=u)}}function pn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function _d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vu(e){if(pn(e)!==e)throw Error(T(188))}function E0(e){var t=e.alternate;if(!t){if(t=pn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Vu(i),e;if(o===r)return Vu(i),t;o=o.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function Ad(e){return e=E0(e),e!==null?Ld(e):null}function Ld(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ld(e);if(t!==null)return t;e=e.sibling}return null}var Rd=je.unstable_scheduleCallback,Bu=je.unstable_cancelCallback,M0=je.unstable_shouldYield,_0=je.unstable_requestPaint,ee=je.unstable_now,A0=je.unstable_getCurrentPriorityLevel,sa=je.unstable_ImmediatePriority,jd=je.unstable_UserBlockingPriority,Ki=je.unstable_NormalPriority,L0=je.unstable_LowPriority,Dd=je.unstable_IdlePriority,Mo=null,nt=null;function R0(e){if(nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(Mo,e,void 0,(e.current.flags&128)===128)}catch{}}var Ze=Math.clz32?Math.clz32:V0,j0=Math.log,D0=Math.LN2;function V0(e){return e>>>=0,e===0?32:31-(j0(e)/D0|0)|0}var vi=64,yi=4194304;function dr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=dr(l):(o&=s,o!==0&&(r=dr(o)))}else s=n&~i,s!==0?r=dr(s):o!==0&&(r=dr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ze(t),i=1<<n,r|=e[n],t&=~i;return r}function B0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function N0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Ze(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=B0(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function qs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vd(){var e=vi;return vi<<=1,!(vi&4194240)&&(vi=64),e}function Jo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ni(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function z0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ze(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function la(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var O=0;function Bd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nd,aa,zd,Fd,Id,Js=!1,wi=[],Lt=null,Rt=null,jt=null,jr=new Map,Dr=new Map,Et=[],F0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nu(e,t){switch(e){case"focusin":case"focusout":Lt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":jr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function rr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ii(t),t!==null&&aa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function I0(e,t,n,r,i){switch(t){case"focusin":return Lt=rr(Lt,e,t,n,r,i),!0;case"dragenter":return Rt=rr(Rt,e,t,n,r,i),!0;case"mouseover":return jt=rr(jt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return jr.set(o,rr(jr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Dr.set(o,rr(Dr.get(o)||null,e,t,n,r,i)),!0}return!1}function Od(e){var t=Jt(e.target);if(t!==null){var n=pn(t);if(n!==null){if(t=n.tag,t===13){if(t=_d(n),t!==null){e.blockedOn=t,Id(e.priority,function(){zd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=el(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xs=r,n.target.dispatchEvent(r),Xs=null}else return t=ii(n),t!==null&&aa(t),e.blockedOn=n,!1;t.shift()}return!0}function zu(e,t,n){Bi(e)&&n.delete(t)}function O0(){Js=!1,Lt!==null&&Bi(Lt)&&(Lt=null),Rt!==null&&Bi(Rt)&&(Rt=null),jt!==null&&Bi(jt)&&(jt=null),jr.forEach(zu),Dr.forEach(zu)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Js||(Js=!0,je.unstable_scheduleCallback(je.unstable_NormalPriority,O0)))}function Vr(e){function t(i){return ir(i,e)}if(0<wi.length){ir(wi[0],e);for(var n=1;n<wi.length;n++){var r=wi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Lt!==null&&ir(Lt,e),Rt!==null&&ir(Rt,e),jt!==null&&ir(jt,e),jr.forEach(t),Dr.forEach(t),n=0;n<Et.length;n++)r=Et[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&(n=Et[0],n.blockedOn===null);)Od(n),n.blockedOn===null&&Et.shift()}var zn=wt.ReactCurrentBatchConfig,Ji=!0;function U0(e,t,n,r){var i=O,o=zn.transition;zn.transition=null;try{O=1,ua(e,t,n,r)}finally{O=i,zn.transition=o}}function H0(e,t,n,r){var i=O,o=zn.transition;zn.transition=null;try{O=4,ua(e,t,n,r)}finally{O=i,zn.transition=o}}function ua(e,t,n,r){if(Ji){var i=el(e,t,n,r);if(i===null)us(e,t,r,eo,n),Nu(e,r);else if(I0(i,e,t,n,r))r.stopPropagation();else if(Nu(e,r),t&4&&-1<F0.indexOf(e)){for(;i!==null;){var o=ii(i);if(o!==null&&Nd(o),o=el(e,t,n,r),o===null&&us(e,t,r,eo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else us(e,t,r,null,n)}}var eo=null;function el(e,t,n,r){if(eo=null,e=oa(r),e=Jt(e),e!==null)if(t=pn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return eo=e,null}function Ud(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(A0()){case sa:return 1;case jd:return 4;case Ki:case L0:return 16;case Dd:return 536870912;default:return 16}default:return 16}}var _t=null,ca=null,Ni=null;function Hd(){if(Ni)return Ni;var e,t=ca,n=t.length,r,i="value"in _t?_t.value:_t.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Ni=i.slice(e,1<r?1-r:void 0)}function zi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xi(){return!0}function Fu(){return!1}function Ve(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?xi:Fu,this.isPropagationStopped=Fu,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),t}var Zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fa=Ve(Zn),ri=b({},Zn,{view:0,detail:0}),$0=Ve(ri),es,ts,or,_o=b({},ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:da,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==or&&(or&&e.type==="mousemove"?(es=e.screenX-or.screenX,ts=e.screenY-or.screenY):ts=es=0,or=e),es)},movementY:function(e){return"movementY"in e?e.movementY:ts}}),Iu=Ve(_o),G0=b({},_o,{dataTransfer:0}),W0=Ve(G0),Y0=b({},ri,{relatedTarget:0}),ns=Ve(Y0),Q0=b({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),X0=Ve(Q0),b0=b({},Zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Z0=Ve(b0),K0=b({},Zn,{data:0}),Ou=Ve(K0),q0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},J0={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"},eg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eg[e])?!!t[e]:!1}function da(){return tg}var ng=b({},ri,{key:function(e){if(e.key){var t=q0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?J0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:da,charCode:function(e){return e.type==="keypress"?zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rg=Ve(ng),ig=b({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uu=Ve(ig),og=b({},ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:da}),sg=Ve(og),lg=b({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ag=Ve(lg),ug=b({},_o,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cg=Ve(ug),fg=[9,13,27,32],ha=pt&&"CompositionEvent"in window,yr=null;pt&&"documentMode"in document&&(yr=document.documentMode);var dg=pt&&"TextEvent"in window&&!yr,$d=pt&&(!ha||yr&&8<yr&&11>=yr),Hu=" ",$u=!1;function Gd(e,t){switch(e){case"keyup":return fg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function hg(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:($u=!0,Hu);case"textInput":return e=t.data,e===Hu&&$u?null:e;default:return null}}function pg(e,t){if(wn)return e==="compositionend"||!ha&&Gd(e,t)?(e=Hd(),Ni=ca=_t=null,wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $d&&t.locale!=="ko"?null:t.data;default:return null}}var mg={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 Gu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mg[e.type]:t==="textarea"}function Yd(e,t,n,r){Cd(r),t=to(t,"onChange"),0<t.length&&(n=new fa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wr=null,Br=null;function gg(e){rh(e,0)}function Ao(e){var t=Sn(e);if(gd(t))return e}function vg(e,t){if(e==="change")return t}var Qd=!1;if(pt){var rs;if(pt){var is="oninput"in document;if(!is){var Wu=document.createElement("div");Wu.setAttribute("oninput","return;"),is=typeof Wu.oninput=="function"}rs=is}else rs=!1;Qd=rs&&(!document.documentMode||9<document.documentMode)}function Yu(){wr&&(wr.detachEvent("onpropertychange",Xd),Br=wr=null)}function Xd(e){if(e.propertyName==="value"&&Ao(Br)){var t=[];Yd(t,Br,e,oa(e)),Md(gg,t)}}function yg(e,t,n){e==="focusin"?(Yu(),wr=t,Br=n,wr.attachEvent("onpropertychange",Xd)):e==="focusout"&&Yu()}function wg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ao(Br)}function xg(e,t){if(e==="click")return Ao(t)}function kg(e,t){if(e==="input"||e==="change")return Ao(t)}function Sg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qe=typeof Object.is=="function"?Object.is:Sg;function Nr(e,t){if(qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ns.call(t,i)||!qe(e[i],t[i]))return!1}return!0}function Qu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xu(e,t){var n=Qu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qu(n)}}function bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function pa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cg(e){var t=Zd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bd(n.ownerDocument.documentElement,n)){if(r!==null&&pa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Xu(n,o);var s=Xu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Tg=pt&&"documentMode"in document&&11>=document.documentMode,xn=null,tl=null,xr=null,nl=!1;function bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nl||xn==null||xn!==Xi(r)||(r=xn,"selectionStart"in r&&pa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xr&&Nr(xr,r)||(xr=r,r=to(tl,"onSelect"),0<r.length&&(t=new fa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xn)))}function ki(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kn={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionend:ki("Transition","TransitionEnd")},os={},Kd={};pt&&(Kd=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);function Lo(e){if(os[e])return os[e];if(!kn[e])return e;var t=kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kd)return os[e]=t[n];return e}var qd=Lo("animationend"),Jd=Lo("animationiteration"),eh=Lo("animationstart"),th=Lo("transitionend"),nh=new Map,Zu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ht(e,t){nh.set(e,t),hn(t,[e])}for(var ss=0;ss<Zu.length;ss++){var ls=Zu[ss],Pg=ls.toLowerCase(),Eg=ls[0].toUpperCase()+ls.slice(1);Ht(Pg,"on"+Eg)}Ht(qd,"onAnimationEnd");Ht(Jd,"onAnimationIteration");Ht(eh,"onAnimationStart");Ht("dblclick","onDoubleClick");Ht("focusin","onFocus");Ht("focusout","onBlur");Ht(th,"onTransitionEnd");On("onMouseEnter",["mouseout","mouseover"]);On("onMouseLeave",["mouseout","mouseover"]);On("onPointerEnter",["pointerout","pointerover"]);On("onPointerLeave",["pointerout","pointerover"]);hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hn("onBeforeInput",["compositionend","keypress","textInput","paste"]);hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hr="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(" "),Mg=new Set("cancel close invalid load scroll toggle".split(" ").concat(hr));function Ku(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,P0(r,t,void 0,e),e.currentTarget=null}function rh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;Ku(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;Ku(i,l,u),o=a}}}if(Zi)throw e=Ks,Zi=!1,Ks=null,e}function $(e,t){var n=t[ll];n===void 0&&(n=t[ll]=new Set);var r=e+"__bubble";n.has(r)||(ih(t,e,2,!1),n.add(r))}function as(e,t,n){var r=0;t&&(r|=4),ih(n,e,r,t)}var Si="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Si]){e[Si]=!0,fd.forEach(function(n){n!=="selectionchange"&&(Mg.has(n)||as(n,!1,e),as(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Si]||(t[Si]=!0,as("selectionchange",!1,t))}}function ih(e,t,n,r){switch(Ud(t)){case 1:var i=U0;break;case 4:i=H0;break;default:i=ua}n=i.bind(null,t,n,e),i=void 0,!Zs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function us(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Jt(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Md(function(){var u=o,c=oa(n),f=[];e:{var d=nh.get(e);if(d!==void 0){var g=fa,y=e;switch(e){case"keypress":if(zi(n)===0)break e;case"keydown":case"keyup":g=rg;break;case"focusin":y="focus",g=ns;break;case"focusout":y="blur",g=ns;break;case"beforeblur":case"afterblur":g=ns;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Iu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=W0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=sg;break;case qd:case Jd:case eh:g=X0;break;case th:g=ag;break;case"scroll":g=$0;break;case"wheel":g=cg;break;case"copy":case"cut":case"paste":g=Z0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Uu}var x=(t&4)!==0,C=!x&&e==="scroll",p=x?d!==null?d+"Capture":null:d;x=[];for(var h=u,m;h!==null;){m=h;var k=m.stateNode;if(m.tag===5&&k!==null&&(m=k,p!==null&&(k=Rr(h,p),k!=null&&x.push(Fr(h,k,m)))),C)break;h=h.return}0<x.length&&(d=new g(d,y,null,n,c),f.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==Xs&&(y=n.relatedTarget||n.fromElement)&&(Jt(y)||y[mt]))break e;if((g||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?Jt(y):null,y!==null&&(C=pn(y),y!==C||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(x=Iu,k="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=Uu,k="onPointerLeave",p="onPointerEnter",h="pointer"),C=g==null?d:Sn(g),m=y==null?d:Sn(y),d=new x(k,h+"leave",g,n,c),d.target=C,d.relatedTarget=m,k=null,Jt(c)===u&&(x=new x(p,h+"enter",y,n,c),x.target=m,x.relatedTarget=C,k=x),C=k,g&&y)t:{for(x=g,p=y,h=0,m=x;m;m=gn(m))h++;for(m=0,k=p;k;k=gn(k))m++;for(;0<h-m;)x=gn(x),h--;for(;0<m-h;)p=gn(p),m--;for(;h--;){if(x===p||p!==null&&x===p.alternate)break t;x=gn(x),p=gn(p)}x=null}else x=null;g!==null&&qu(f,d,g,x,!1),y!==null&&C!==null&&qu(f,C,y,x,!0)}}e:{if(d=u?Sn(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var S=vg;else if(Gu(d))if(Qd)S=kg;else{S=wg;var E=yg}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=xg);if(S&&(S=S(e,u))){Yd(f,S,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&$s(d,"number",d.value)}switch(E=u?Sn(u):window,e){case"focusin":(Gu(E)||E.contentEditable==="true")&&(xn=E,tl=u,xr=null);break;case"focusout":xr=tl=xn=null;break;case"mousedown":nl=!0;break;case"contextmenu":case"mouseup":case"dragend":nl=!1,bu(f,n,c);break;case"selectionchange":if(Tg)break;case"keydown":case"keyup":bu(f,n,c)}var M;if(ha)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else wn?Gd(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&($d&&n.locale!=="ko"&&(wn||P!=="onCompositionStart"?P==="onCompositionEnd"&&wn&&(M=Hd()):(_t=c,ca="value"in _t?_t.value:_t.textContent,wn=!0)),E=to(u,P),0<E.length&&(P=new Ou(P,e,null,n,c),f.push({event:P,listeners:E}),M?P.data=M:(M=Wd(n),M!==null&&(P.data=M)))),(M=dg?hg(e,n):pg(e,n))&&(u=to(u,"onBeforeInput"),0<u.length&&(c=new Ou("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=M))}rh(f,t)})}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function to(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Rr(e,n),o!=null&&r.unshift(Fr(e,o,i)),o=Rr(e,t),o!=null&&r.push(Fr(e,o,i))),e=e.return}return r}function gn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qu(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=Rr(n,o),a!=null&&s.unshift(Fr(n,a,l))):i||(a=Rr(n,o),a!=null&&s.push(Fr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var _g=/\r\n?/g,Ag=/\u0000|\uFFFD/g;function Ju(e){return(typeof e=="string"?e:""+e).replace(_g,`
|
|
38
|
+
`).replace(Ag,"")}function Ci(e,t,n){if(t=Ju(t),Ju(e)!==t&&n)throw Error(T(425))}function no(){}var rl=null,il=null;function ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sl=typeof setTimeout=="function"?setTimeout:void 0,Lg=typeof clearTimeout=="function"?clearTimeout:void 0,ec=typeof Promise=="function"?Promise:void 0,Rg=typeof queueMicrotask=="function"?queueMicrotask:typeof ec<"u"?function(e){return ec.resolve(null).then(e).catch(jg)}:sl;function jg(e){setTimeout(function(){throw e})}function cs(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Vr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Vr(t)}function Dt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function tc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Kn=Math.random().toString(36).slice(2),tt="__reactFiber$"+Kn,Ir="__reactProps$"+Kn,mt="__reactContainer$"+Kn,ll="__reactEvents$"+Kn,Dg="__reactListeners$"+Kn,Vg="__reactHandles$"+Kn;function Jt(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tc(e);e!==null;){if(n=e[tt])return n;e=tc(e)}return t}e=n,n=e.parentNode}return null}function ii(e){return e=e[tt]||e[mt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Ro(e){return e[Ir]||null}var al=[],Cn=-1;function $t(e){return{current:e}}function G(e){0>Cn||(e.current=al[Cn],al[Cn]=null,Cn--)}function U(e,t){Cn++,al[Cn]=e.current,e.current=t}var It={},ye=$t(It),Ee=$t(!1),an=It;function Un(e,t){var n=e.type.contextTypes;if(!n)return It;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function ro(){G(Ee),G(ye)}function nc(e,t,n){if(ye.current!==It)throw Error(T(168));U(ye,t),U(Ee,n)}function oh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,y0(e)||"Unknown",i));return b({},n,r)}function io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||It,an=ye.current,U(ye,e),U(Ee,Ee.current),!0}function rc(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=oh(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,G(Ee),G(ye),U(ye,e)):G(Ee),U(Ee,n)}var ct=null,jo=!1,fs=!1;function sh(e){ct===null?ct=[e]:ct.push(e)}function Bg(e){jo=!0,sh(e)}function Gt(){if(!fs&&ct!==null){fs=!0;var e=0,t=O;try{var n=ct;for(O=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ct=null,jo=!1}catch(i){throw ct!==null&&(ct=ct.slice(e+1)),Rd(sa,Gt),i}finally{O=t,fs=!1}}return null}var Tn=[],Pn=0,oo=null,so=0,ze=[],Fe=0,un=null,ft=1,dt="";function Zt(e,t){Tn[Pn++]=so,Tn[Pn++]=oo,oo=e,so=t}function lh(e,t,n){ze[Fe++]=ft,ze[Fe++]=dt,ze[Fe++]=un,un=e;var r=ft;e=dt;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var o=32-Ze(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ft=1<<32-Ze(t)+i|n<<i|r,dt=o+e}else ft=1<<o|n<<i|r,dt=e}function ma(e){e.return!==null&&(Zt(e,1),lh(e,1,0))}function ga(e){for(;e===oo;)oo=Tn[--Pn],Tn[Pn]=null,so=Tn[--Pn],Tn[Pn]=null;for(;e===un;)un=ze[--Fe],ze[Fe]=null,dt=ze[--Fe],ze[Fe]=null,ft=ze[--Fe],ze[Fe]=null}var Re=null,Le=null,W=!1,be=null;function ah(e,t){var n=Ie(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ic(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Re=e,Le=Dt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Re=e,Le=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=un!==null?{id:ft,overflow:dt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ie(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Re=e,Le=null,!0):!1;default:return!1}}function ul(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cl(e){if(W){var t=Le;if(t){var n=t;if(!ic(e,t)){if(ul(e))throw Error(T(418));t=Dt(n.nextSibling);var r=Re;t&&ic(e,t)?ah(r,n):(e.flags=e.flags&-4097|2,W=!1,Re=e)}}else{if(ul(e))throw Error(T(418));e.flags=e.flags&-4097|2,W=!1,Re=e}}}function oc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Re=e}function Ti(e){if(e!==Re)return!1;if(!W)return oc(e),W=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ol(e.type,e.memoizedProps)),t&&(t=Le)){if(ul(e))throw uh(),Error(T(418));for(;t;)ah(e,t),t=Dt(t.nextSibling)}if(oc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Le=Dt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Le=null}}else Le=Re?Dt(e.stateNode.nextSibling):null;return!0}function uh(){for(var e=Le;e;)e=Dt(e.nextSibling)}function Hn(){Le=Re=null,W=!1}function va(e){be===null?be=[e]:be.push(e)}var Ng=wt.ReactCurrentBatchConfig;function sr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Pi(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sc(e){var t=e._init;return t(e._payload)}function ch(e){function t(p,h){if(e){var m=p.deletions;m===null?(p.deletions=[h],p.flags|=16):m.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=zt(p,h),p.index=0,p.sibling=null,p}function o(p,h,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<h?(p.flags|=2,h):m):(p.flags|=2,h)):(p.flags|=1048576,h)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,h,m,k){return h===null||h.tag!==6?(h=ys(m,p.mode,k),h.return=p,h):(h=i(h,m),h.return=p,h)}function a(p,h,m,k){var S=m.type;return S===yn?c(p,h,m.props.children,k,m.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&sc(S)===h.type)?(k=i(h,m.props),k.ref=sr(p,h,m),k.return=p,k):(k=Gi(m.type,m.key,m.props,null,p.mode,k),k.ref=sr(p,h,m),k.return=p,k)}function u(p,h,m,k){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=ws(m,p.mode,k),h.return=p,h):(h=i(h,m.children||[]),h.return=p,h)}function c(p,h,m,k,S){return h===null||h.tag!==7?(h=sn(m,p.mode,k,S),h.return=p,h):(h=i(h,m),h.return=p,h)}function f(p,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=ys(""+h,p.mode,m),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case pi:return m=Gi(h.type,h.key,h.props,null,p.mode,m),m.ref=sr(p,null,h),m.return=p,m;case vn:return h=ws(h,p.mode,m),h.return=p,h;case Ct:var k=h._init;return f(p,k(h._payload),m)}if(fr(h)||tr(h))return h=sn(h,p.mode,m,null),h.return=p,h;Pi(p,h)}return null}function d(p,h,m,k){var S=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:l(p,h,""+m,k);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case pi:return m.key===S?a(p,h,m,k):null;case vn:return m.key===S?u(p,h,m,k):null;case Ct:return S=m._init,d(p,h,S(m._payload),k)}if(fr(m)||tr(m))return S!==null?null:c(p,h,m,k,null);Pi(p,m)}return null}function g(p,h,m,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return p=p.get(m)||null,l(h,p,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case pi:return p=p.get(k.key===null?m:k.key)||null,a(h,p,k,S);case vn:return p=p.get(k.key===null?m:k.key)||null,u(h,p,k,S);case Ct:var E=k._init;return g(p,h,m,E(k._payload),S)}if(fr(k)||tr(k))return p=p.get(m)||null,c(h,p,k,S,null);Pi(h,k)}return null}function y(p,h,m,k){for(var S=null,E=null,M=h,P=h=0,F=null;M!==null&&P<m.length;P++){M.index>P?(F=M,M=null):F=M.sibling;var D=d(p,M,m[P],k);if(D===null){M===null&&(M=F);break}e&&M&&D.alternate===null&&t(p,M),h=o(D,h,P),E===null?S=D:E.sibling=D,E=D,M=F}if(P===m.length)return n(p,M),W&&Zt(p,P),S;if(M===null){for(;P<m.length;P++)M=f(p,m[P],k),M!==null&&(h=o(M,h,P),E===null?S=M:E.sibling=M,E=M);return W&&Zt(p,P),S}for(M=r(p,M);P<m.length;P++)F=g(M,p,P,m[P],k),F!==null&&(e&&F.alternate!==null&&M.delete(F.key===null?P:F.key),h=o(F,h,P),E===null?S=F:E.sibling=F,E=F);return e&&M.forEach(function(oe){return t(p,oe)}),W&&Zt(p,P),S}function x(p,h,m,k){var S=tr(m);if(typeof S!="function")throw Error(T(150));if(m=S.call(m),m==null)throw Error(T(151));for(var E=S=null,M=h,P=h=0,F=null,D=m.next();M!==null&&!D.done;P++,D=m.next()){M.index>P?(F=M,M=null):F=M.sibling;var oe=d(p,M,D.value,k);if(oe===null){M===null&&(M=F);break}e&&M&&oe.alternate===null&&t(p,M),h=o(oe,h,P),E===null?S=oe:E.sibling=oe,E=oe,M=F}if(D.done)return n(p,M),W&&Zt(p,P),S;if(M===null){for(;!D.done;P++,D=m.next())D=f(p,D.value,k),D!==null&&(h=o(D,h,P),E===null?S=D:E.sibling=D,E=D);return W&&Zt(p,P),S}for(M=r(p,M);!D.done;P++,D=m.next())D=g(M,p,P,D.value,k),D!==null&&(e&&D.alternate!==null&&M.delete(D.key===null?P:D.key),h=o(D,h,P),E===null?S=D:E.sibling=D,E=D);return e&&M.forEach(function(xt){return t(p,xt)}),W&&Zt(p,P),S}function C(p,h,m,k){if(typeof m=="object"&&m!==null&&m.type===yn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case pi:e:{for(var S=m.key,E=h;E!==null;){if(E.key===S){if(S=m.type,S===yn){if(E.tag===7){n(p,E.sibling),h=i(E,m.props.children),h.return=p,p=h;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&sc(S)===E.type){n(p,E.sibling),h=i(E,m.props),h.ref=sr(p,E,m),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===yn?(h=sn(m.props.children,p.mode,k,m.key),h.return=p,p=h):(k=Gi(m.type,m.key,m.props,null,p.mode,k),k.ref=sr(p,h,m),k.return=p,p=k)}return s(p);case vn:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ws(m,p.mode,k),h.return=p,p=h}return s(p);case Ct:return E=m._init,C(p,h,E(m._payload),k)}if(fr(m))return y(p,h,m,k);if(tr(m))return x(p,h,m,k);Pi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=ys(m,p.mode,k),h.return=p,p=h),s(p)):n(p,h)}return C}var $n=ch(!0),fh=ch(!1),lo=$t(null),ao=null,En=null,ya=null;function wa(){ya=En=ao=null}function xa(e){var t=lo.current;G(lo),e._currentValue=t}function fl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fn(e,t){ao=e,ya=En=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(ya!==e)if(e={context:e,memoizedValue:t,next:null},En===null){if(ao===null)throw Error(T(308));En=e,ao.dependencies={lanes:0,firstContext:e}}else En=En.next=e;return t}var en=null;function ka(e){en===null?en=[e]:en.push(e)}function dh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ka(t)):(n.next=i.next,i.next=n),t.interleaved=n,gt(e,r)}function gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Tt=!1;function Sa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,gt(e,n)}return i=r.interleaved,i===null?(t.next=t,ka(r)):(t.next=i.next,i.next=t),r.interleaved=t,gt(e,n)}function Fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,la(e,n)}}function lc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var i=e.updateQueue;Tt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,g=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(d=t,g=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(g,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,d=typeof y=="function"?y.call(g,f,d):y,d==null)break e;f=b({},f,d);break e;case 2:Tt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);fn|=s,e.lanes=s,e.memoizedState=f}}function ac(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var oi={},rt=$t(oi),Or=$t(oi),Ur=$t(oi);function tn(e){if(e===oi)throw Error(T(174));return e}function Ca(e,t){switch(U(Ur,t),U(Or,e),U(rt,oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ws(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ws(t,e)}G(rt),U(rt,t)}function Gn(){G(rt),G(Or),G(Ur)}function ph(e){tn(Ur.current);var t=tn(rt.current),n=Ws(t,e.type);t!==n&&(U(Or,e),U(rt,n))}function Ta(e){Or.current===e&&(G(rt),G(Or))}var Y=$t(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ds=[];function Pa(){for(var e=0;e<ds.length;e++)ds[e]._workInProgressVersionPrimary=null;ds.length=0}var Ii=wt.ReactCurrentDispatcher,hs=wt.ReactCurrentBatchConfig,cn=0,X=null,re=null,le=null,fo=!1,kr=!1,Hr=0,zg=0;function he(){throw Error(T(321))}function Ea(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qe(e[n],t[n]))return!1;return!0}function Ma(e,t,n,r,i,o){if(cn=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ii.current=e===null||e.memoizedState===null?Ug:Hg,e=n(r,i),kr){o=0;do{if(kr=!1,Hr=0,25<=o)throw Error(T(301));o+=1,le=re=null,t.updateQueue=null,Ii.current=$g,e=n(r,i)}while(kr)}if(Ii.current=ho,t=re!==null&&re.next!==null,cn=0,le=re=X=null,fo=!1,t)throw Error(T(300));return e}function _a(){var e=Hr!==0;return Hr=0,e}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?X.memoizedState=le=e:le=le.next=e,le}function Ge(){if(re===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var t=le===null?X.memoizedState:le.next;if(t!==null)le=t,re=e;else{if(e===null)throw Error(T(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},le===null?X.memoizedState=le=e:le=le.next=e}return le}function $r(e,t){return typeof t=="function"?t(e):t}function ps(e){var t=Ge(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=re,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((cn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,X.lanes|=c,fn|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,qe(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,X.lanes|=o,fn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ms(e){var t=Ge(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);qe(o,t.memoizedState)||(Pe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function mh(){}function gh(e,t){var n=X,r=Ge(),i=t(),o=!qe(r.memoizedState,i);if(o&&(r.memoizedState=i,Pe=!0),r=r.queue,Aa(wh.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,Gr(9,yh.bind(null,n,r,i,t),void 0,null),ae===null)throw Error(T(349));cn&30||vh(n,t,i)}return i}function vh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yh(e,t,n,r){t.value=n,t.getSnapshot=r,xh(t)&&kh(e)}function wh(e,t,n){return n(function(){xh(t)&&kh(e)})}function xh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qe(e,n)}catch{return!0}}function kh(e){var t=gt(e,1);t!==null&&Ke(t,e,1,-1)}function uc(e){var t=et();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:e},t.queue=e,e=e.dispatch=Og.bind(null,X,e),[t.memoizedState,e]}function Gr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Sh(){return Ge().memoizedState}function Oi(e,t,n,r){var i=et();X.flags|=e,i.memoizedState=Gr(1|t,n,void 0,r===void 0?null:r)}function Do(e,t,n,r){var i=Ge();r=r===void 0?null:r;var o=void 0;if(re!==null){var s=re.memoizedState;if(o=s.destroy,r!==null&&Ea(r,s.deps)){i.memoizedState=Gr(t,n,o,r);return}}X.flags|=e,i.memoizedState=Gr(1|t,n,o,r)}function cc(e,t){return Oi(8390656,8,e,t)}function Aa(e,t){return Do(2048,8,e,t)}function Ch(e,t){return Do(4,2,e,t)}function Th(e,t){return Do(4,4,e,t)}function Ph(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Eh(e,t,n){return n=n!=null?n.concat([e]):null,Do(4,4,Ph.bind(null,t,e),n)}function La(){}function Mh(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _h(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ea(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ah(e,t,n){return cn&21?(qe(n,t)||(n=Vd(),X.lanes|=n,fn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Pe=!0),e.memoizedState=n)}function Fg(e,t){var n=O;O=n!==0&&4>n?n:4,e(!0);var r=hs.transition;hs.transition={};try{e(!1),t()}finally{O=n,hs.transition=r}}function Lh(){return Ge().memoizedState}function Ig(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rh(e))jh(t,n);else if(n=dh(e,t,n,r),n!==null){var i=ke();Ke(n,e,r,i),Dh(n,t,r)}}function Og(e,t,n){var r=Nt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rh(e))jh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,qe(l,s)){var a=t.interleaved;a===null?(i.next=i,ka(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=dh(e,t,i,r),n!==null&&(i=ke(),Ke(n,e,r,i),Dh(n,t,r))}}function Rh(e){var t=e.alternate;return e===X||t!==null&&t===X}function jh(e,t){kr=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,la(e,n)}}var ho={readContext:$e,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},Ug={readContext:$e,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:cc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oi(4194308,4,Ph.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oi(4,2,e,t)},useMemo:function(e,t){var n=et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=et();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ig.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:uc,useDebugValue:La,useDeferredValue:function(e){return et().memoizedState=e},useTransition:function(){var e=uc(!1),t=e[0];return e=Fg.bind(null,e[1]),et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=et();if(W){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ae===null)throw Error(T(349));cn&30||vh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,cc(wh.bind(null,r,o,e),[e]),r.flags|=2048,Gr(9,yh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=et(),t=ae.identifierPrefix;if(W){var n=dt,r=ft;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hg={readContext:$e,useCallback:Mh,useContext:$e,useEffect:Aa,useImperativeHandle:Eh,useInsertionEffect:Ch,useLayoutEffect:Th,useMemo:_h,useReducer:ps,useRef:Sh,useState:function(){return ps($r)},useDebugValue:La,useDeferredValue:function(e){var t=Ge();return Ah(t,re.memoizedState,e)},useTransition:function(){var e=ps($r)[0],t=Ge().memoizedState;return[e,t]},useMutableSource:mh,useSyncExternalStore:gh,useId:Lh,unstable_isNewReconciler:!1},$g={readContext:$e,useCallback:Mh,useContext:$e,useEffect:Aa,useImperativeHandle:Eh,useInsertionEffect:Ch,useLayoutEffect:Th,useMemo:_h,useReducer:ms,useRef:Sh,useState:function(){return ms($r)},useDebugValue:La,useDeferredValue:function(e){var t=Ge();return re===null?t.memoizedState=e:Ah(t,re.memoizedState,e)},useTransition:function(){var e=ms($r)[0],t=Ge().memoizedState;return[e,t]},useMutableSource:mh,useSyncExternalStore:gh,useId:Lh,unstable_isNewReconciler:!1};function Qe(e,t){if(e&&e.defaultProps){t=b({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function dl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vo={isMounted:function(e){return(e=e._reactInternals)?pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ke(),i=Nt(e),o=ht(r,i);o.payload=t,n!=null&&(o.callback=n),t=Vt(e,o,i),t!==null&&(Ke(t,e,i,r),Fi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ke(),i=Nt(e),o=ht(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Vt(e,o,i),t!==null&&(Ke(t,e,i,r),Fi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ke(),r=Nt(e),i=ht(n,r);i.tag=2,t!=null&&(i.callback=t),t=Vt(e,i,r),t!==null&&(Ke(t,e,r,n),Fi(t,e,r))}};function fc(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Nr(n,r)||!Nr(i,o):!0}function Vh(e,t,n){var r=!1,i=It,o=t.contextType;return typeof o=="object"&&o!==null?o=$e(o):(i=Me(t)?an:ye.current,r=t.contextTypes,o=(r=r!=null)?Un(e,i):It),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function dc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function hl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Sa(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=$e(o):(o=Me(t)?an:ye.current,i.context=Un(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(dl(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Vo.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Wn(e,t){try{var n="",r=t;do n+=v0(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function gs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Gg=typeof WeakMap=="function"?WeakMap:Map;function Bh(e,t,n){n=ht(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){mo||(mo=!0,Tl=r),pl(e,t)},n}function Nh(e,t,n){n=ht(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){pl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){pl(e,t),typeof r!="function"&&(Bt===null?Bt=new Set([this]):Bt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function hc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=i1.bind(null,e,t,n),t.then(e,e))}function pc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function mc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ht(-1,1),t.tag=2,Vt(n,t,1))),n.lanes|=1),e)}var Wg=wt.ReactCurrentOwner,Pe=!1;function we(e,t,n,r){t.child=e===null?fh(t,null,n,r):$n(t,e.child,n,r)}function gc(e,t,n,r,i){n=n.render;var o=t.ref;return Fn(t,i),r=Ma(e,t,n,r,o,i),n=_a(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(W&&n&&ma(t),t.flags|=1,we(e,t,r,i),t.child)}function vc(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Fa(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,zh(e,t,o,r,i)):(e=Gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Nr,n(s,r)&&e.ref===t.ref)return vt(e,t,i)}return t.flags|=1,e=zt(o,r),e.ref=t.ref,e.return=t,t.child=e}function zh(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Nr(o,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,vt(e,t,i)}return ml(e,t,n,r,i)}function Fh(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(_n,Ae),Ae|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(_n,Ae),Ae|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(_n,Ae),Ae|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(_n,Ae),Ae|=r;return we(e,t,i,n),t.child}function Ih(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ml(e,t,n,r,i){var o=Me(n)?an:ye.current;return o=Un(t,o),Fn(t,i),n=Ma(e,t,n,r,o,i),r=_a(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(W&&r&&ma(t),t.flags|=1,we(e,t,n,i),t.child)}function yc(e,t,n,r,i){if(Me(n)){var o=!0;io(t)}else o=!1;if(Fn(t,i),t.stateNode===null)Ui(e,t),Vh(t,n,r),hl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=$e(u):(u=Me(n)?an:ye.current,u=Un(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&dc(t,s,r,u),Tt=!1;var d=t.memoizedState;s.state=d,uo(t,r,s,i),a=t.memoizedState,l!==r||d!==a||Ee.current||Tt?(typeof c=="function"&&(dl(t,n,c,r),a=t.memoizedState),(l=Tt||fc(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,hh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qe(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=$e(a):(a=Me(n)?an:ye.current,a=Un(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&dc(t,s,r,a),Tt=!1,d=t.memoizedState,s.state=d,uo(t,r,s,i);var y=t.memoizedState;l!==f||d!==y||Ee.current||Tt?(typeof g=="function"&&(dl(t,n,g,r),y=t.memoizedState),(u=Tt||fc(t,n,u,r,d,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return gl(e,t,n,r,o,i)}function gl(e,t,n,r,i,o){Ih(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&rc(t,n,!1),vt(e,t,o);r=t.stateNode,Wg.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=$n(t,e.child,null,o),t.child=$n(t,null,l,o)):we(e,t,l,o),t.memoizedState=r.state,i&&rc(t,n,!0),t.child}function Oh(e){var t=e.stateNode;t.pendingContext?nc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nc(e,t.context,!1),Ca(e,t.containerInfo)}function wc(e,t,n,r,i){return Hn(),va(i),t.flags|=256,we(e,t,n,r),t.child}var vl={dehydrated:null,treeContext:null,retryLane:0};function yl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uh(e,t,n){var r=t.pendingProps,i=Y.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),U(Y,i&1),e===null)return cl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=zo(s,r,0,null),e=sn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=yl(n),t.memoizedState=vl,e):Ra(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Yg(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=zt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=zt(l,o):(o=sn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?yl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=vl,r}return o=e.child,e=o.sibling,r=zt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ra(e,t){return t=zo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ei(e,t,n,r){return r!==null&&va(r),$n(t,e.child,null,n),e=Ra(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yg(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=gs(Error(T(422))),Ei(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=zo({mode:"visible",children:r.children},i,0,null),o=sn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&$n(t,e.child,null,s),t.child.memoizedState=yl(s),t.memoizedState=vl,o);if(!(t.mode&1))return Ei(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(T(419)),r=gs(o,r,void 0),Ei(e,t,s,r)}if(l=(s&e.childLanes)!==0,Pe||l){if(r=ae,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,gt(e,i),Ke(r,e,i,-1))}return za(),r=gs(Error(T(421))),Ei(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=o1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Le=Dt(i.nextSibling),Re=t,W=!0,be=null,e!==null&&(ze[Fe++]=ft,ze[Fe++]=dt,ze[Fe++]=un,ft=e.id,dt=e.overflow,un=t),t=Ra(t,r.children),t.flags|=4096,t)}function xc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fl(e.return,t,n)}function vs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hh(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(we(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xc(e,n,t);else if(e.tag===19)xc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vs(t,!0,n,null,o);break;case"together":vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ui(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qg(e,t,n){switch(t.tag){case 3:Oh(t),Hn();break;case 5:ph(t);break;case 1:Me(t.type)&&io(t);break;case 4:Ca(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;U(lo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?Uh(e,t,n):(U(Y,Y.current&1),e=vt(e,t,n),e!==null?e.sibling:null);U(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,Fh(e,t,n)}return vt(e,t,n)}var $h,wl,Gh,Wh;$h=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};wl=function(){};Gh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,tn(rt.current);var o=null;switch(n){case"input":i=Us(e,i),r=Us(e,r),o=[];break;case"select":i=b({},i,{value:void 0}),r=b({},r,{value:void 0}),o=[];break;case"textarea":i=Gs(e,i),r=Gs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=no)}Ys(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ar.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ar.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&$("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Wh=function(e,t,n,r){n!==r&&(t.flags|=4)};function lr(e,t){if(!W)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xg(e,t,n){var r=t.pendingProps;switch(ga(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return Me(t.type)&&ro(),pe(t),null;case 3:return r=t.stateNode,Gn(),G(Ee),G(ye),Pa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ti(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,be!==null&&(Ml(be),be=null))),wl(e,t),pe(t),null;case 5:Ta(t);var i=tn(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)Gh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return pe(t),null}if(e=tn(rt.current),Ti(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[tt]=t,r[Ir]=o,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<hr.length;i++)$(hr[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":Au(r,o),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},$("invalid",r);break;case"textarea":Ru(r,o),$("invalid",r)}Ys(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Ci(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Ci(r.textContent,l,e),i=["children",""+l]):Ar.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&$("scroll",r)}switch(n){case"input":mi(r),Lu(r,o,!0);break;case"textarea":mi(r),ju(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=no)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[tt]=t,e[Ir]=r,$h(e,t,!1,!1),t.stateNode=e;e:{switch(s=Qs(n,r),n){case"dialog":$("cancel",e),$("close",e),i=r;break;case"iframe":case"object":case"embed":$("load",e),i=r;break;case"video":case"audio":for(i=0;i<hr.length;i++)$(hr[i],e);i=r;break;case"source":$("error",e),i=r;break;case"img":case"image":case"link":$("error",e),$("load",e),i=r;break;case"details":$("toggle",e),i=r;break;case"input":Au(e,r),i=Us(e,r),$("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=b({},r,{value:void 0}),$("invalid",e);break;case"textarea":Ru(e,r),i=Gs(e,r),$("invalid",e);break;default:i=r}Ys(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Sd(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&xd(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Lr(e,a):typeof a=="number"&&Lr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ar.hasOwnProperty(o)?a!=null&&o==="onScroll"&&$("scroll",e):a!=null&&ta(e,o,a,s))}switch(n){case"input":mi(e),Lu(e,r,!1);break;case"textarea":mi(e),ju(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ft(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Vn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Vn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=no)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pe(t),null;case 6:if(e&&t.stateNode!=null)Wh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=tn(Ur.current),tn(rt.current),Ti(t)){if(r=t.stateNode,n=t.memoizedProps,r[tt]=t,(o=r.nodeValue!==n)&&(e=Re,e!==null))switch(e.tag){case 3:Ci(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ci(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tt]=t,t.stateNode=r}return pe(t),null;case 13:if(G(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&Le!==null&&t.mode&1&&!(t.flags&128))uh(),Hn(),t.flags|=98560,o=!1;else if(o=Ti(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(T(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(T(317));o[tt]=t}else Hn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pe(t),o=!1}else be!==null&&(Ml(be),be=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?ie===0&&(ie=3):za())),t.updateQueue!==null&&(t.flags|=4),pe(t),null);case 4:return Gn(),wl(e,t),e===null&&zr(t.stateNode.containerInfo),pe(t),null;case 10:return xa(t.type._context),pe(t),null;case 17:return Me(t.type)&&ro(),pe(t),null;case 19:if(G(Y),o=t.memoizedState,o===null)return pe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)lr(o,!1);else{if(ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=co(e),s!==null){for(t.flags|=128,lr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(Y,Y.current&1|2),t.child}e=e.sibling}o.tail!==null&&ee()>Yn&&(t.flags|=128,r=!0,lr(o,!1),t.lanes=4194304)}else{if(!r)if(e=co(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!W)return pe(t),null}else 2*ee()-o.renderingStartTime>Yn&&n!==1073741824&&(t.flags|=128,r=!0,lr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,n=Y.current,U(Y,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return Na(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function bg(e,t){switch(ga(t),t.tag){case 1:return Me(t.type)&&ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(),G(Ee),G(ye),Pa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ta(t),null;case 13:if(G(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Y),null;case 4:return Gn(),null;case 10:return xa(t.type._context),null;case 22:case 23:return Na(),null;case 24:return null;default:return null}}var Mi=!1,ge=!1,Zg=typeof WeakSet=="function"?WeakSet:Set,A=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function xl(e,t,n){try{n()}catch(r){K(e,t,r)}}var kc=!1;function Kg(e,t){if(rl=Ji,e=Zd(),pa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(il={focusedElem:e,selectionRange:n},Ji=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,C=y.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:Qe(t.type,x),C);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(k){K(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return y=kc,kc=!1,y}function Sr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&xl(t,n,o)}i=i.next}while(i!==r)}}function Bo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yh(e){var t=e.alternate;t!==null&&(e.alternate=null,Yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tt],delete t[Ir],delete t[ll],delete t[Dg],delete t[Vg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qh(e){return e.tag===5||e.tag===3||e.tag===4}function Sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=no));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function Cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}var ue=null,Xe=!1;function kt(e,t,n){for(n=n.child;n!==null;)Xh(e,t,n),n=n.sibling}function Xh(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(Mo,n)}catch{}switch(n.tag){case 5:ge||Mn(n,t);case 6:var r=ue,i=Xe;ue=null,kt(e,t,n),ue=r,Xe=i,ue!==null&&(Xe?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Xe?(e=ue,n=n.stateNode,e.nodeType===8?cs(e.parentNode,n):e.nodeType===1&&cs(e,n),Vr(e)):cs(ue,n.stateNode));break;case 4:r=ue,i=Xe,ue=n.stateNode.containerInfo,Xe=!0,kt(e,t,n),ue=r,Xe=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&xl(n,t,s),i=i.next}while(i!==r)}kt(e,t,n);break;case 1:if(!ge&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){K(n,t,l)}kt(e,t,n);break;case 21:kt(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,kt(e,t,n),ge=r):kt(e,t,n);break;default:kt(e,t,n)}}function Cc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zg),t.forEach(function(r){var i=s1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:ue=l.stateNode,Xe=!1;break e;case 3:ue=l.stateNode.containerInfo,Xe=!0;break e;case 4:ue=l.stateNode.containerInfo,Xe=!0;break e}l=l.return}if(ue===null)throw Error(T(160));Xh(o,s,i),ue=null,Xe=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){K(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bh(t,e),t=t.sibling}function bh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(We(t,e),Je(e),r&4){try{Sr(3,e,e.return),Bo(3,e)}catch(x){K(e,e.return,x)}try{Sr(5,e,e.return)}catch(x){K(e,e.return,x)}}break;case 1:We(t,e),Je(e),r&512&&n!==null&&Mn(n,n.return);break;case 5:if(We(t,e),Je(e),r&512&&n!==null&&Mn(n,n.return),e.flags&32){var i=e.stateNode;try{Lr(i,"")}catch(x){K(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&vd(i,o),Qs(l,s);var u=Qs(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?Sd(i,f):c==="dangerouslySetInnerHTML"?xd(i,f):c==="children"?Lr(i,f):ta(i,c,f,u)}switch(l){case"input":Hs(i,o);break;case"textarea":yd(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Vn(i,!!o.multiple,g,!1):d!==!!o.multiple&&(o.defaultValue!=null?Vn(i,!!o.multiple,o.defaultValue,!0):Vn(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ir]=o}catch(x){K(e,e.return,x)}}break;case 6:if(We(t,e),Je(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){K(e,e.return,x)}}break;case 3:if(We(t,e),Je(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vr(t.containerInfo)}catch(x){K(e,e.return,x)}break;case 4:We(t,e),Je(e);break;case 13:We(t,e),Je(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Va=ee())),r&4&&Cc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ge=(u=ge)||c,We(t,e),ge=u):We(t,e),Je(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(A=e,c=e.child;c!==null;){for(f=A=c;A!==null;){switch(d=A,g=d.child,d.tag){case 0:case 11:case 14:case 15:Sr(4,d,d.return);break;case 1:Mn(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){K(r,n,x)}}break;case 5:Mn(d,d.return);break;case 22:if(d.memoizedState!==null){Pc(f);continue}}g!==null?(g.return=d,A=g):Pc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=kd("display",s))}catch(x){K(e,e.return,x)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){K(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:We(t,e),Je(e),r&4&&Cc(e);break;case 21:break;default:We(t,e),Je(e)}}function Je(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qh(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Lr(i,""),r.flags&=-33);var o=Sc(e);Cl(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Sc(e);Sl(e,l,s);break;default:throw Error(T(161))}}catch(a){K(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qg(e,t,n){A=e,Zh(e)}function Zh(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var i=A,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Mi;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||ge;l=Mi;var u=ge;if(Mi=s,(ge=a)&&!u)for(A=i;A!==null;)s=A,a=s.child,s.tag===22&&s.memoizedState!==null?Ec(i):a!==null?(a.return=s,A=a):Ec(i);for(;o!==null;)A=o,Zh(o),o=o.sibling;A=i,Mi=l,ge=u}Tc(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,A=o):Tc(e)}}function Tc(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ge||Bo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ge)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Qe(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ac(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ac(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Vr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}ge||t.flags&512&&kl(t)}catch(d){K(t,t.return,d)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Pc(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Ec(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bo(4,t)}catch(a){K(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){K(t,i,a)}}var o=t.return;try{kl(t)}catch(a){K(t,o,a)}break;case 5:var s=t.return;try{kl(t)}catch(a){K(t,s,a)}}}catch(a){K(t,t.return,a)}if(t===e){A=null;break}var l=t.sibling;if(l!==null){l.return=t.return,A=l;break}A=t.return}}var Jg=Math.ceil,po=wt.ReactCurrentDispatcher,ja=wt.ReactCurrentOwner,Oe=wt.ReactCurrentBatchConfig,I=0,ae=null,te=null,fe=0,Ae=0,_n=$t(0),ie=0,Wr=null,fn=0,No=0,Da=0,Cr=null,Te=null,Va=0,Yn=1/0,ut=null,mo=!1,Tl=null,Bt=null,_i=!1,At=null,go=0,Tr=0,Pl=null,Hi=-1,$i=0;function ke(){return I&6?ee():Hi!==-1?Hi:Hi=ee()}function Nt(e){return e.mode&1?I&2&&fe!==0?fe&-fe:Ng.transition!==null?($i===0&&($i=Vd()),$i):(e=O,e!==0||(e=window.event,e=e===void 0?16:Ud(e.type)),e):1}function Ke(e,t,n,r){if(50<Tr)throw Tr=0,Pl=null,Error(T(185));ni(e,n,r),(!(I&2)||e!==ae)&&(e===ae&&(!(I&2)&&(No|=n),ie===4&&Mt(e,fe)),_e(e,r),n===1&&I===0&&!(t.mode&1)&&(Yn=ee()+500,jo&&Gt()))}function _e(e,t){var n=e.callbackNode;N0(e,t);var r=qi(e,e===ae?fe:0);if(r===0)n!==null&&Bu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bu(n),t===1)e.tag===0?Bg(Mc.bind(null,e)):sh(Mc.bind(null,e)),Rg(function(){!(I&6)&&Gt()}),n=null;else{switch(Bd(r)){case 1:n=sa;break;case 4:n=jd;break;case 16:n=Ki;break;case 536870912:n=Dd;break;default:n=Ki}n=ip(n,Kh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kh(e,t){if(Hi=-1,$i=0,I&6)throw Error(T(327));var n=e.callbackNode;if(In()&&e.callbackNode!==n)return null;var r=qi(e,e===ae?fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=vo(e,r);else{t=r;var i=I;I|=2;var o=Jh();(ae!==e||fe!==t)&&(ut=null,Yn=ee()+500,on(e,t));do try{n1();break}catch(l){qh(e,l)}while(!0);wa(),po.current=o,I=i,te!==null?t=0:(ae=null,fe=0,t=ie)}if(t!==0){if(t===2&&(i=qs(e),i!==0&&(r=i,t=El(e,i))),t===1)throw n=Wr,on(e,0),Mt(e,r),_e(e,ee()),n;if(t===6)Mt(e,r);else{if(i=e.current.alternate,!(r&30)&&!e1(i)&&(t=vo(e,r),t===2&&(o=qs(e),o!==0&&(r=o,t=El(e,o))),t===1))throw n=Wr,on(e,0),Mt(e,r),_e(e,ee()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Kt(e,Te,ut);break;case 3:if(Mt(e,r),(r&130023424)===r&&(t=Va+500-ee(),10<t)){if(qi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ke(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=sl(Kt.bind(null,e,Te,ut),t);break}Kt(e,Te,ut);break;case 4:if(Mt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Ze(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jg(r/1960))-r,10<r){e.timeoutHandle=sl(Kt.bind(null,e,Te,ut),r);break}Kt(e,Te,ut);break;case 5:Kt(e,Te,ut);break;default:throw Error(T(329))}}}return _e(e,ee()),e.callbackNode===n?Kh.bind(null,e):null}function El(e,t){var n=Cr;return e.current.memoizedState.isDehydrated&&(on(e,t).flags|=256),e=vo(e,t),e!==2&&(t=Te,Te=n,t!==null&&Ml(t)),e}function Ml(e){Te===null?Te=e:Te.push.apply(Te,e)}function e1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!qe(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mt(e,t){for(t&=~Da,t&=~No,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ze(t),r=1<<n;e[n]=-1,t&=~r}}function Mc(e){if(I&6)throw Error(T(327));In();var t=qi(e,0);if(!(t&1))return _e(e,ee()),null;var n=vo(e,t);if(e.tag!==0&&n===2){var r=qs(e);r!==0&&(t=r,n=El(e,r))}if(n===1)throw n=Wr,on(e,0),Mt(e,t),_e(e,ee()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kt(e,Te,ut),_e(e,ee()),null}function Ba(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(Yn=ee()+500,jo&&Gt())}}function dn(e){At!==null&&At.tag===0&&!(I&6)&&In();var t=I;I|=1;var n=Oe.transition,r=O;try{if(Oe.transition=null,O=1,e)return e()}finally{O=r,Oe.transition=n,I=t,!(I&6)&&Gt()}}function Na(){Ae=_n.current,G(_n)}function on(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Lg(n)),te!==null)for(n=te.return;n!==null;){var r=n;switch(ga(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ro();break;case 3:Gn(),G(Ee),G(ye),Pa();break;case 5:Ta(r);break;case 4:Gn();break;case 13:G(Y);break;case 19:G(Y);break;case 10:xa(r.type._context);break;case 22:case 23:Na()}n=n.return}if(ae=e,te=e=zt(e.current,null),fe=Ae=t,ie=0,Wr=null,Da=No=fn=0,Te=Cr=null,en!==null){for(t=0;t<en.length;t++)if(n=en[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}en=null}return e}function qh(e,t){do{var n=te;try{if(wa(),Ii.current=ho,fo){for(var r=X.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}fo=!1}if(cn=0,le=re=X=null,kr=!1,Hr=0,ja.current=null,n===null||n.return===null){ie=1,Wr=t,te=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=fe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=pc(s);if(g!==null){g.flags&=-257,mc(g,s,l,o,t),g.mode&1&&hc(o,u,t),t=g,a=u;var y=t.updateQueue;if(y===null){var x=new Set;x.add(a),t.updateQueue=x}else y.add(a);break e}else{if(!(t&1)){hc(o,u,t),za();break e}a=Error(T(426))}}else if(W&&l.mode&1){var C=pc(s);if(C!==null){!(C.flags&65536)&&(C.flags|=256),mc(C,s,l,o,t),va(Wn(a,l));break e}}o=a=Wn(a,l),ie!==4&&(ie=2),Cr===null?Cr=[o]:Cr.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Bh(o,a,t);lc(o,p);break e;case 1:l=a;var h=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Bt===null||!Bt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=Nh(o,l,t);lc(o,k);break e}}o=o.return}while(o!==null)}tp(n)}catch(S){t=S,te===n&&n!==null&&(te=n=n.return);continue}break}while(!0)}function Jh(){var e=po.current;return po.current=ho,e===null?ho:e}function za(){(ie===0||ie===3||ie===2)&&(ie=4),ae===null||!(fn&268435455)&&!(No&268435455)||Mt(ae,fe)}function vo(e,t){var n=I;I|=2;var r=Jh();(ae!==e||fe!==t)&&(ut=null,on(e,t));do try{t1();break}catch(i){qh(e,i)}while(!0);if(wa(),I=n,po.current=r,te!==null)throw Error(T(261));return ae=null,fe=0,ie}function t1(){for(;te!==null;)ep(te)}function n1(){for(;te!==null&&!M0();)ep(te)}function ep(e){var t=rp(e.alternate,e,Ae);e.memoizedProps=e.pendingProps,t===null?tp(e):te=t,ja.current=null}function tp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bg(n,t),n!==null){n.flags&=32767,te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ie=6,te=null;return}}else if(n=Xg(n,t,Ae),n!==null){te=n;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);ie===0&&(ie=5)}function Kt(e,t,n){var r=O,i=Oe.transition;try{Oe.transition=null,O=1,r1(e,t,n,r)}finally{Oe.transition=i,O=r}return null}function r1(e,t,n,r){do In();while(At!==null);if(I&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(z0(e,o),e===ae&&(te=ae=null,fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_i||(_i=!0,ip(Ki,function(){return In(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Oe.transition,Oe.transition=null;var s=O;O=1;var l=I;I|=4,ja.current=null,Kg(e,n),bh(n,e),Cg(il),Ji=!!rl,il=rl=null,e.current=n,qg(n),_0(),I=l,O=s,Oe.transition=o}else e.current=n;if(_i&&(_i=!1,At=e,go=i),o=e.pendingLanes,o===0&&(Bt=null),R0(n.stateNode),_e(e,ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(mo)throw mo=!1,e=Tl,Tl=null,e;return go&1&&e.tag!==0&&In(),o=e.pendingLanes,o&1?e===Pl?Tr++:(Tr=0,Pl=e):Tr=0,Gt(),null}function In(){if(At!==null){var e=Bd(go),t=Oe.transition,n=O;try{if(Oe.transition=null,O=16>e?16:e,At===null)var r=!1;else{if(e=At,At=null,go=0,I&6)throw Error(T(331));var i=I;for(I|=4,A=e.current;A!==null;){var o=A,s=o.child;if(A.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(A=u;A!==null;){var c=A;switch(c.tag){case 0:case 11:case 15:Sr(8,c,o)}var f=c.child;if(f!==null)f.return=c,A=f;else for(;A!==null;){c=A;var d=c.sibling,g=c.return;if(Yh(c),c===u){A=null;break}if(d!==null){d.return=g,A=d;break}A=g}}}var y=o.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var C=x.sibling;x.sibling=null,x=C}while(x!==null)}}A=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,A=s;else e:for(;A!==null;){if(o=A,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Sr(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,A=p;break e}A=o.return}}var h=e.current;for(A=h;A!==null;){s=A;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,A=m;else e:for(s=h;A!==null;){if(l=A,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Bo(9,l)}}catch(S){K(l,l.return,S)}if(l===s){A=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,A=k;break e}A=l.return}}if(I=i,Gt(),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(Mo,e)}catch{}r=!0}return r}finally{O=n,Oe.transition=t}}return!1}function _c(e,t,n){t=Wn(n,t),t=Bh(e,t,1),e=Vt(e,t,1),t=ke(),e!==null&&(ni(e,1,t),_e(e,t))}function K(e,t,n){if(e.tag===3)_c(e,e,n);else for(;t!==null;){if(t.tag===3){_c(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bt===null||!Bt.has(r))){e=Wn(n,e),e=Nh(t,e,1),t=Vt(t,e,1),e=ke(),t!==null&&(ni(t,1,e),_e(t,e));break}}t=t.return}}function i1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ke(),e.pingedLanes|=e.suspendedLanes&n,ae===e&&(fe&n)===n&&(ie===4||ie===3&&(fe&130023424)===fe&&500>ee()-Va?on(e,0):Da|=n),_e(e,t)}function np(e,t){t===0&&(e.mode&1?(t=yi,yi<<=1,!(yi&130023424)&&(yi=4194304)):t=1);var n=ke();e=gt(e,t),e!==null&&(ni(e,t,n),_e(e,n))}function o1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),np(e,n)}function s1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),np(e,n)}var rp;rp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,Qg(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,W&&t.flags&1048576&&lh(t,so,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ui(e,t),e=t.pendingProps;var i=Un(t,ye.current);Fn(t,n),i=Ma(null,t,r,e,i,n);var o=_a();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(o=!0,io(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Sa(t),i.updater=Vo,t.stateNode=i,i._reactInternals=t,hl(t,r,e,n),t=gl(null,t,r,!0,o,n)):(t.tag=0,W&&o&&ma(t),we(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ui(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=a1(r),e=Qe(r,e),i){case 0:t=ml(null,t,r,e,n);break e;case 1:t=yc(null,t,r,e,n);break e;case 11:t=gc(null,t,r,e,n);break e;case 14:t=vc(null,t,r,Qe(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),ml(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),yc(e,t,r,i,n);case 3:e:{if(Oh(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,hh(e,t),uo(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Wn(Error(T(423)),t),t=wc(e,t,r,n,i);break e}else if(r!==i){i=Wn(Error(T(424)),t),t=wc(e,t,r,n,i);break e}else for(Le=Dt(t.stateNode.containerInfo.firstChild),Re=t,W=!0,be=null,n=fh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hn(),r===i){t=vt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return ph(t),e===null&&cl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ol(r,i)?s=null:o!==null&&ol(r,o)&&(t.flags|=32),Ih(e,t),we(e,t,s,n),t.child;case 6:return e===null&&cl(t),null;case 13:return Uh(e,t,n);case 4:return Ca(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$n(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),gc(e,t,r,i,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,U(lo,r._currentValue),r._currentValue=s,o!==null)if(qe(o.value,s)){if(o.children===i.children&&!Ee.current){t=vt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=ht(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),fl(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(T(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}we(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Fn(t,n),i=$e(i),r=r(i),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,i=Qe(r,t.pendingProps),i=Qe(r.type,i),vc(e,t,r,i,n);case 15:return zh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Ui(e,t),t.tag=1,Me(r)?(e=!0,io(t)):e=!1,Fn(t,n),Vh(t,r,i),hl(t,r,i,n),gl(null,t,r,!0,e,n);case 19:return Hh(e,t,n);case 22:return Fh(e,t,n)}throw Error(T(156,t.tag))};function ip(e,t){return Rd(e,t)}function l1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ie(e,t,n,r){return new l1(e,t,n,r)}function Fa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function a1(e){if(typeof e=="function")return Fa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ra)return 11;if(e===ia)return 14}return 2}function zt(e,t){var n=e.alternate;return n===null?(n=Ie(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Fa(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yn:return sn(n.children,i,o,t);case na:s=8,i|=8;break;case zs:return e=Ie(12,n,t,i|2),e.elementType=zs,e.lanes=o,e;case Fs:return e=Ie(13,n,t,i),e.elementType=Fs,e.lanes=o,e;case Is:return e=Ie(19,n,t,i),e.elementType=Is,e.lanes=o,e;case pd:return zo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dd:s=10;break e;case hd:s=9;break e;case ra:s=11;break e;case ia:s=14;break e;case Ct:s=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=Ie(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ie(7,e,r,t),e.lanes=n,e}function zo(e,t,n,r){return e=Ie(22,e,r,t),e.elementType=pd,e.lanes=n,e.stateNode={isHidden:!1},e}function ys(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function ws(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function u1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jo(0),this.expirationTimes=Jo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ia(e,t,n,r,i,o,s,l,a){return e=new u1(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ie(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sa(o),e}function c1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function op(e){if(!e)return It;e=e._reactInternals;e:{if(pn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Me(n))return oh(e,n,t)}return t}function sp(e,t,n,r,i,o,s,l,a){return e=Ia(n,r,!0,e,i,o,s,l,a),e.context=op(null),n=e.current,r=ke(),i=Nt(n),o=ht(r,i),o.callback=t??null,Vt(n,o,i),e.current.lanes=i,ni(e,i,r),_e(e,r),e}function Fo(e,t,n,r){var i=t.current,o=ke(),s=Nt(i);return n=op(n),t.context===null?t.context=n:t.pendingContext=n,t=ht(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vt(i,t,s),e!==null&&(Ke(e,i,s,o),Fi(e,i,s)),s}function yo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ac(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oa(e,t){Ac(e,t),(e=e.alternate)&&Ac(e,t)}function f1(){return null}var lp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ua(e){this._internalRoot=e}Io.prototype.render=Ua.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Fo(e,t,null,null)};Io.prototype.unmount=Ua.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dn(function(){Fo(null,e,null,null)}),t[mt]=null}};function Io(e){this._internalRoot=e}Io.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Et.length&&t!==0&&t<Et[n].priority;n++);Et.splice(n,0,e),n===0&&Od(e)}};function Ha(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lc(){}function d1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=yo(s);o.call(u)}}var s=sp(t,r,e,0,null,!1,!1,"",Lc);return e._reactRootContainer=s,e[mt]=s.current,zr(e.nodeType===8?e.parentNode:e),dn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=yo(a);l.call(u)}}var a=Ia(e,0,!1,null,null,!1,!1,"",Lc);return e._reactRootContainer=a,e[mt]=a.current,zr(e.nodeType===8?e.parentNode:e),dn(function(){Fo(t,a,n,r)}),a}function Uo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=yo(s);l.call(a)}}Fo(t,s,e,i)}else s=d1(n,t,e,i,r);return yo(s)}Nd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dr(t.pendingLanes);n!==0&&(la(t,n|1),_e(t,ee()),!(I&6)&&(Yn=ee()+500,Gt()))}break;case 13:dn(function(){var r=gt(e,1);if(r!==null){var i=ke();Ke(r,e,1,i)}}),Oa(e,1)}};aa=function(e){if(e.tag===13){var t=gt(e,134217728);if(t!==null){var n=ke();Ke(t,e,134217728,n)}Oa(e,134217728)}};zd=function(e){if(e.tag===13){var t=Nt(e),n=gt(e,t);if(n!==null){var r=ke();Ke(n,e,t,r)}Oa(e,t)}};Fd=function(){return O};Id=function(e,t){var n=O;try{return O=e,t()}finally{O=n}};bs=function(e,t,n){switch(t){case"input":if(Hs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ro(r);if(!i)throw Error(T(90));gd(r),Hs(r,i)}}}break;case"textarea":yd(e,n);break;case"select":t=n.value,t!=null&&Vn(e,!!n.multiple,t,!1)}};Pd=Ba;Ed=dn;var h1={usingClientEntryPoint:!1,Events:[ii,Sn,Ro,Cd,Td,Ba]},ar={findFiberByHostInstance:Jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},p1={bundleType:ar.bundleType,version:ar.version,rendererPackageName:ar.rendererPackageName,rendererConfig:ar.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ad(e),e===null?null:e.stateNode},findFiberByHostInstance:ar.findFiberByHostInstance||f1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ai.isDisabled&&Ai.supportsFiber)try{Mo=Ai.inject(p1),nt=Ai}catch{}}De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h1;De.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ha(t))throw Error(T(200));return c1(e,t,null,n)};De.createRoot=function(e,t){if(!Ha(e))throw Error(T(299));var n=!1,r="",i=lp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ia(e,1,!1,null,null,n,!1,r,i),e[mt]=t.current,zr(e.nodeType===8?e.parentNode:e),new Ua(t)};De.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Ad(t),e=e===null?null:e.stateNode,e};De.flushSync=function(e){return dn(e)};De.hydrate=function(e,t,n){if(!Oo(t))throw Error(T(200));return Uo(null,e,t,!0,n)};De.hydrateRoot=function(e,t,n){if(!Ha(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=lp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=sp(t,null,e,1,n??null,i,!1,o,s),e[mt]=t.current,zr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Io(t)};De.render=function(e,t,n){if(!Oo(t))throw Error(T(200));return Uo(null,e,t,!1,n)};De.unmountComponentAtNode=function(e){if(!Oo(e))throw Error(T(40));return e._reactRootContainer?(dn(function(){Uo(null,null,e,!1,function(){e._reactRootContainer=null,e[mt]=null})}),!0):!1};De.unstable_batchedUpdates=Ba;De.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Oo(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Uo(e,t,n,!1,r)};De.version="18.3.1-next-f1338f8080-20240426";function ap(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ap)}catch(e){console.error(e)}}ap(),ad.exports=De;var up=ad.exports;const sx=Xl(up);var m1,Rc=up;m1=Rc.createRoot,Rc.hydrateRoot;var v=(e=>(e.Border="widget_border",e.Background="widget_background",e.InputBackground="widget_input_background",e.InputText="widget_input_text",e.InputBorder="widget_input_border",e.ButtonBackground="widget_button_background",e.ButtonText="widget_button_text",e.TooltipBackground="widget_tooltip_background",e.TooltipText="widget_tooltip_text",e.TooltipBorder="widget_tooltip_border",e.HeaderBackground="widget_header_background",e.HeaderText="widget_header_text",e.HeaderBorder="widget_header_border",e.FooterBackground="widget_footer_background",e.FooterText="widget_footer_text",e.FooterBorder="widget_footer_border",e.MessageAdminBackground="widget_message_admin_background",e.MessageAdminText="widget_message_admin_text",e.MessageVisitorBackground="widget_message_visitor_background",e.MessageVisitorText="widget_message_visitor_text",e.MessageAgentBackground="widget_message_agent_background",e.MessageAgentText="widget_message_agent_text",e.GreeterTopBackground="widget_greeter_top_background",e.GreeterTopText="widget_greeter_top_text",e.GreeterBackground="widget_greeter_background",e.GreeterText="widget_greeter_text",e.GreeterBorder="widget_greeter_border",e.GreeterButtonBackground="widget_greeter_button_background",e.GreeterButtonText="widget_greeter_button_text",e.CloseButtonBackground="widget_close_button_background",e.CloseButtonText="widget_close_button_text",e.CloseButtonHover="widget_close_button_hover",e.IconColor="widget_icon_color",e.IconBackground="widget_icon_background",e.ErrorBackground="widget_error_background",e.ErrorText="widget_error_text",e.ErrorBorder="widget_error_border",e.SuccessBackground="widget_success_background",e.SuccessText="widget_success_text",e.SuccessBorder="widget_success_border",e.WarningBackground="widget_warning_background",e.WarningText="widget_warning_text",e.WarningBorder="widget_warning_border",e.LinkColor="widget_link_color",e.LinkHoverColor="widget_link_hover_color",e.DividerColor="widget_divider_color",e.ShadowColor="widget_shadow_color",e.StarActiveColor="widget_star_active_color",e.StarInactiveColor="widget_star_inactive_color",e.ModalOverlayColor="widget_modal_overlay_color",e.ChatCloseConfirmText="widget_chat_close_confirm_text",e.RatingHeaderBackground="widget_rating_header_background",e.RatingHeaderText="widget_rating_header_text",e.RatingSuccessBackground="widget_rating_success_background",e.RatingSuccessText="widget_rating_success_text",e.RatingRateConversationText="widget_rating_rate_conversation_text",e))(v||{}),B=(e=>(e.TooltipDefault="tooltip_default",e.TooltipActive="tooltip_active",e.TooltipBalloonTitle="tooltip_balloon_title",e.TooltipBalloonSub="tooltip_balloon_sub",e.TooltipBalloonGreeting="tooltip_balloon_greeting",e.CloseButtonAria="close_button_aria",e.MessagePlaceholder="message_placeholder",e.FileUploadDisabled="file_upload_disabled",e.NewMessagesNotification="new_messages_notification",e.MinimizedUnreadMessage="minimized_unread_message",e.ChatCloseConfirm="chat_close_confirm",e.ChatCloseWarning="chat_close_warning",e.ChatSettings="chat_settings",e.ChatEndConversation="chat_end_conversation",e.CancelAction="cancel_action",e.CloseAction="close_action",e.QuickActions="quick_actions",e.GreetingStartChat="greeting_start_chat",e.RateLimitMessage="rate_limit_message",e.RatingHeaderEvaluate="rating_header_evaluate",e.RatingHeaderThanks="rating_header_thanks",e.RatingDescription="rating_description",e.RatingRateConversation="rating_rate_conversation",e.RatingComment="rating_comment",e.RatingCommentPlaceholder="rating_comment_placeholder",e.RatingSubmit="rating_submit",e.RatingNewConversation="rating_new_conversation",e.RatingThankYouTitle="rating_thank_you_title",e.RatingThankYouDescription="rating_thank_you_description",e.RatingCountdown="rating_countdown",e.RatingMinimumError="rating_minimum_error",e.RatingYourScore="rating_your_score",e.PoweredBy="powered_by",e.NotificationSoundOn="notification_sound_on",e.NotificationSoundOff="notification_sound_off",e.PortalHomeTitle="portal_home_title",e.PortalMessagesTitle="portal_messages_title",e.PortalNewsTitle="portal_news_title",e.PortalHelpTitle="portal_help_title",e.PortalHomeHelpPlaceholder="portal_home_help_placeholder",e.PortalHelpSearchPlaceholder="portal_help_search_placeholder",e))(B||{}),Ue=(e=>(e.Light="light",e.Dark="dark",e.System="system",e))(Ue||{});function lx(e){return!!e&&typeof e.public_id=="string"&&typeof e.link_id=="string"&&typeof e.name=="string"&&typeof e.is_browser_notification_enabled=="boolean"&&typeof e.is_hidden_on_offline=="boolean"&&typeof e.is_upload_disabled=="boolean"}var cp={exports:{}};/*!
|
|
41
|
+
Copyright (c) 2018 Jed Watson.
|
|
42
|
+
Licensed under the MIT License (MIT), see
|
|
43
|
+
http://jedwatson.github.io/classnames
|
|
44
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var l in o)t.call(o,l)&&o[l]&&(s=i(s,l));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(cp);var g1=cp.exports;const Ho=Xl(g1);function R(){}R.Home=function(t){return w.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:w.jsx("path",{d:"M3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a1 1 0 00.707-1.707l-9-9a.999.999 0 00-1.414 0l-9 9A1 1 0 003 13zm7 7v-5h4v5h-4zm2-15.586l6 6V15l.001 5H16v-5c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v5H6v-9.586l6-6z"})})};R.Chat=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});R.Menu=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})});R.MessageTyping=({className:e="size-5",...t})=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});R.Check=function(t){return w.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",...t,children:w.jsx("path",{d:"M12.736 3.97a.733.733 0 011.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 01-1.065.02L3.217 8.384a.757.757 0 010-1.06.733.733 0 011.047 0l3.052 3.093 5.4-6.425a.247.247 0 01.02-.022z"})})};R.Website=function(t){return w.jsxs("svg",{fill:"none",viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[w.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 7a1 1 0 00-1 1v8a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1h-4zm3 2h-2v6h2V9z",clipRule:"evenodd"}),w.jsx("path",{fill:"currentColor",d:"M6 7a1 1 0 000 2h4a1 1 0 100-2H6zM6 11a1 1 0 100 2h4a1 1 0 100-2H6zM5 16a1 1 0 011-1h4a1 1 0 110 2H6a1 1 0 01-1-1z"}),w.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 3a3 3 0 00-3 3v12a3 3 0 003 3h16a3 3 0 003-3V6a3 3 0 00-3-3H4zm16 2H4a1 1 0 00-1 1v12a1 1 0 001 1h16a1 1 0 001-1V6a1 1 0 00-1-1z",clipRule:"evenodd"})]})};R.ArrowDown=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})});R.ArrowDown2=e=>w.jsxs("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...e,children:[w.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:1.5}),w.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),w.jsx("g",{id:"SVGRepo_iconCarrier",children:w.jsx("path",{d:"M903.232 256l56.768 50.432L512 768 64 306.432 120.768 256 512 659.072z",fill:"currentColor"})})]});R.ArrowLeft=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})});R.ArrowRight=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})});R.ChevronRight=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})});R.Search=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})});R.QuestionCircle=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.451.999-1.451 1.827v.75M12 17.25h.008v.008H12v-.008Zm9-5.25a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})});R.Megaphone=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.75 12c0 2.71.457 5.313 1.3 7.74m-.875-15.615a48.042 48.042 0 0 1 1.3 7.875 48.042 48.042 0 0 1-1.3 7.875"})});R.XCircle=({className:e="e-5",...t})=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})});R.X=({className:e="e-5",...t})=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})});R.PaperAirplane=({className:e="e-5",...t})=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})});R.Spin=function(t){return w.jsx("svg",{"data-name":"Layer 1",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:w.jsx("path",{d:"M6.804 15a1 1 0 00-1.366-.366l-1.732 1a1 1 0 001 1.732l1.732-1A1 1 0 006.804 15zM3.706 8.366l1.732 1a1 1 0 101-1.732l-1.732-1a1 1 0 00-1 1.732zM6 12a1 1 0 00-1-1H3a1 1 0 000 2h2a1 1 0 001-1zm11.196-3a1 1 0 001.366.366l1.732-1a1 1 0 10-1-1.732l-1.732 1A1 1 0 0017.196 9zM15 6.804a1 1 0 001.366-.366l1-1.732a1 1 0 10-1.732-1l-1 1.732A1 1 0 0015 6.804zm5.294 8.83l-1.732-1a1 1 0 10-1 1.732l1.732 1a1 1 0 001-1.732zm-3.928 1.928a1 1 0 10-1.732 1l1 1.732a1 1 0 101.732-1zM21 11h-2a1 1 0 000 2h2a1 1 0 000-2zm-9 7a1 1 0 00-1 1v2a1 1 0 002 0v-2a1 1 0 00-1-1zm-3-.804a1 1 0 00-1.366.366l-1 1.732a1 1 0 001.732 1l1-1.732A1 1 0 009 17.196zM12 2a1 1 0 00-1 1v2a1 1 0 002 0V3a1 1 0 00-1-1z"})})};R.ExternalLink=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})});R.Phone=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z"})});R.Mail=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"})});R.Star=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})});R.Plus=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})});R.History=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})});R.Eye=e=>w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:[w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]});R.Lock=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})});R.User=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})});R.Emoji=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})});R.Paperclip=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"})});R.Sparkles=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.455 2.456L21.75 6l-1.036.259a3.375 3.375 0 0 0-2.455 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"})});R.Sun=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75v-2.25m-4.773 4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"})});R.Moon=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"})});R.Monitor=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"})});R.Volume2=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.01 9.01 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"})});R.VolumeX=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 9.75 19.5 12m0 0 2.25 2.25M19.5 12l2.25-2.25M19.5 12l-2.25 2.25m-10.5-6 4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.01 9.01 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"})});R.Bot=e=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})});var Pt=(e=>(e.None="none",e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e.Full="full",e))(Pt||{});const fp=L.createContext({}),v1={[B.TooltipDefault]:"Bizimle sohbet edin!",[B.TooltipActive]:"Yeni mesajlar var!",[B.TooltipBalloonTitle]:"Canlı Destek",[B.TooltipBalloonSub]:"Size nasıl yardımcı olabilirim?",[B.TooltipBalloonGreeting]:"Merhaba, ben {name} 👋",[B.CloseButtonAria]:"Kapat",[B.MessagePlaceholder]:"Mesajınızı yazın",[B.FileUploadDisabled]:"Dosya gönderim izniniz olmadığı için yükleyemezsiniz",[B.NewMessagesNotification]:"Yeni mesajlar var!",[B.MinimizedUnreadMessage]:"{count} Yeni Mesaj",[B.ChatCloseConfirm]:"Sohbeti kapatmak istediğinizden emin misiniz?",[B.ChatCloseWarning]:"Bu işlem geri alınamaz.",[B.ChatSettings]:"Sohbet Ayarları",[B.ChatEndConversation]:"Sohbeti Sonlandır",[B.CancelAction]:"Vazgeç",[B.CloseAction]:"Kapat",[B.QuickActions]:"Hızlı işlemler",[B.GreetingStartChat]:"Sohbete başla",[B.RateLimitMessage]:"Çok fazla mesaj gönderdiniz. Lütfen {seconds} saniye bekleyin.",[B.RatingHeaderEvaluate]:"Görüşmenizi Değerlendirin",[B.RatingHeaderThanks]:"Teşekkürler!",[B.RatingDescription]:"Lütfen hizmetimizi değerlendirin. Görüşleriniz bizim için önemli.",[B.RatingRateConversation]:"Görüşmeyi puanlayın",[B.RatingComment]:"Yorumunuz (İsteğe bağlı)",[B.RatingCommentPlaceholder]:"Görüşme hakkında düşüncelerinizi paylaşın...",[B.RatingSubmit]:"Değerlendirmeyi Gönder",[B.RatingNewConversation]:"Yeni Görüşme Başlat",[B.RatingThankYouTitle]:"Değerlendirmeniz için teşekkürler!",[B.RatingThankYouDescription]:"Geri bildiriminiz bizim için çok değerli.",[B.RatingCountdown]:"Ekran {seconds} saniye içinde kapanacaktır.",[B.RatingMinimumError]:"Lütfen en az 1 yıldız seçiniz.",[B.RatingYourScore]:"Puanınız: {score}",[B.PoweredBy]:"Powered by",[B.NotificationSoundOn]:"Bildirim sesi aç",[B.NotificationSoundOff]:"Bildirim sesi kapat",[B.PortalHomeTitle]:"Merhaba",[B.PortalMessagesTitle]:"Mesajlarınız",[B.PortalNewsTitle]:"Haberler",[B.PortalHelpTitle]:"Yardım Merkezi",[B.PortalHomeHelpPlaceholder]:"Yardım ara...",[B.PortalHelpSearchPlaceholder]:"Makale ara..."},y1={[v.Background]:"#ffffff",[v.Border]:"#e2e8f0",[v.TooltipText]:"#1e40af",[v.TooltipBackground]:"#dbeafe",[v.TooltipBorder]:"#3b82f6",[v.HeaderBackground]:"#ffffff",[v.HeaderBorder]:"#e2e8f0",[v.HeaderText]:"#1e293b",[v.FooterBackground]:"#f8fafc",[v.FooterBorder]:"#e2e8f0",[v.FooterText]:"#475569",[v.MessageAdminBackground]:"#f1f5f9",[v.MessageAdminText]:"#334155",[v.MessageVisitorBackground]:"#3b82f6",[v.MessageVisitorText]:"#ffffff",[v.MessageAgentBackground]:"#ede9fe",[v.MessageAgentText]:"#5b21b6",[v.GreeterBackground]:"#ffffff",[v.GreeterText]:"#334155",[v.GreeterBorder]:"#e2e8f0",[v.GreeterTopBackground]:"linear-gradient(135deg, #3b82f6 0%, #2563eb 100%)",[v.GreeterTopText]:"#ffffff",[v.GreeterButtonBackground]:"#3b82f6",[v.GreeterButtonText]:"#ffffff",[v.ButtonBackground]:"#3b82f6",[v.ButtonText]:"#ffffff",[v.InputBackground]:"#f8fafc",[v.InputText]:"#1e293b",[v.InputBorder]:"#e2e8f0",[v.CloseButtonBackground]:"#f1f5f9",[v.CloseButtonText]:"#475569",[v.CloseButtonHover]:"#e2e8f0",[v.IconColor]:"#64748b",[v.IconBackground]:"transparent",[v.ErrorBackground]:"#fef2f2",[v.ErrorText]:"#dc2626",[v.ErrorBorder]:"#fca5a5",[v.SuccessBackground]:"#f0fdf4",[v.SuccessText]:"#16a34a",[v.SuccessBorder]:"#86efac",[v.WarningBackground]:"#fffbeb",[v.WarningText]:"#d97706",[v.WarningBorder]:"#fcd34d",[v.LinkColor]:"#2563eb",[v.LinkHoverColor]:"#1d4ed8",[v.DividerColor]:"#e2e8f0",[v.ShadowColor]:"rgba(0, 0, 0, 0.1)",[v.StarActiveColor]:"#f59e0b",[v.StarInactiveColor]:"#e2e8f0",[v.ModalOverlayColor]:"rgba(0, 0, 0, 0.4)",[v.ChatCloseConfirmText]:"#dc2626",[v.RatingHeaderBackground]:"#3b82f6",[v.RatingHeaderText]:"#ffffff",[v.RatingSuccessBackground]:"#ffffff",[v.RatingSuccessText]:"#334155",[v.RatingRateConversationText]:"#1e293b"},w1={[v.Background]:"#0a0a0a",[v.Border]:"#262626",[v.TooltipText]:"#e5e5e5",[v.TooltipBackground]:"#262626",[v.TooltipBorder]:"#404040",[v.HeaderBackground]:"#171717",[v.HeaderBorder]:"#262626",[v.HeaderText]:"#fafafa",[v.FooterBackground]:"#0a0a0a",[v.FooterBorder]:"#262626",[v.FooterText]:"#a3a3a3",[v.MessageAdminBackground]:"#262626",[v.MessageAdminText]:"#e5e5e5",[v.MessageVisitorBackground]:"#171717",[v.MessageVisitorText]:"#e5e5e5",[v.MessageAgentBackground]:"#5b21b6",[v.MessageAgentText]:"#e9d5ff",[v.GreeterBackground]:"#171717",[v.GreeterText]:"#e5e5e5",[v.GreeterBorder]:"#262626",[v.GreeterTopBackground]:"linear-gradient(135deg, #262626 0%, #171717 100%)",[v.GreeterTopText]:"#fafafa",[v.GreeterButtonBackground]:"#3b82f6",[v.GreeterButtonText]:"#ffffff",[v.ButtonBackground]:"#3b82f6",[v.ButtonText]:"#ffffff",[v.InputBackground]:"#171717",[v.InputText]:"#e5e5e5",[v.InputBorder]:"#3f3f3f",[v.CloseButtonBackground]:"#262626",[v.CloseButtonText]:"#a3a3a3",[v.CloseButtonHover]:"#404040",[v.IconColor]:"#a3a3a3",[v.IconBackground]:"transparent",[v.ErrorBackground]:"#450a0a",[v.ErrorText]:"#fca5a5",[v.ErrorBorder]:"#7f1d1d",[v.SuccessBackground]:"#052e16",[v.SuccessText]:"#86efac",[v.SuccessBorder]:"#14532d",[v.WarningBackground]:"#451a03",[v.WarningText]:"#fcd34d",[v.WarningBorder]:"#78350f",[v.LinkColor]:"#3b82f6",[v.LinkHoverColor]:"#60a5fa",[v.DividerColor]:"#262626",[v.ShadowColor]:"rgba(0, 0, 0, 0.4)",[v.StarActiveColor]:"#f59e0b",[v.StarInactiveColor]:"#404040",[v.ModalOverlayColor]:"rgba(0, 0, 0, 0.7)",[v.ChatCloseConfirmText]:"#fca5a5",[v.RatingHeaderBackground]:"#171717",[v.RatingHeaderText]:"#fafafa",[v.RatingSuccessBackground]:"#171717",[v.RatingSuccessText]:"#e5e5e5",[v.RatingRateConversationText]:"#e5e5e5"},x1={[Pt.None]:"0px",[Pt.Sm]:"var(--radius-sm)",[Pt.Md]:"var(--radius-md)",[Pt.Lg]:"var(--radius-lg)",[Pt.Xl]:"var(--radius-lg)",[Pt.Full]:"calc(infinity * 1px)"},k1=e=>{const t={...v1};if(!e||!e.appearance||!e.appearance.design||!e.appearance.design.texts)return t;for(const n in e.appearance.design.texts){const r=n;e.appearance.design.texts[r]&&(t[r]=e.appearance.design.texts[r])}return t};function S1(e,t){const n=e.replace(/^#/,"");if(n.length!==6)return e;const r=Math.max(0,Math.round(Number.parseInt(n.slice(0,2),16)*(1-t))),i=Math.max(0,Math.round(Number.parseInt(n.slice(2,4),16)*(1-t))),o=Math.max(0,Math.round(Number.parseInt(n.slice(4,6),16)*(1-t)));return`#${r.toString(16).padStart(2,"0")}${i.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}const xs="#ffffff";function C1(e){const t=S1(e,.2);return{[v.ButtonBackground]:t,[v.ButtonText]:xs,[v.GreeterButtonBackground]:t,[v.GreeterButtonText]:xs,[v.MessageVisitorBackground]:t,[v.MessageVisitorText]:xs}}const T1=(e,t)=>{var i,o;const r={...t==="dark"?w1:y1};if(t==="dark")return r;if((o=(i=e==null?void 0:e.appearance)==null?void 0:i.design)!=null&&o.colors){const s=e.appearance.design.colors,l=s.main_color;if(l){const a=C1(l);for(const u of Object.keys(a))a[u]&&(r[u]=a[u])}for(const a in s){if(a==="main_color"||a==="secondary_color"||a==="accent_color")continue;const u=a;s[a]&&a in r&&(r[u]=s[a])}}return r},dp="lc:theme:mode";function hp(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function pp(){try{const e=localStorage.getItem(dp);if(e==="light"||e==="dark"||e==="system")return e}catch{}return Ue.System}function ax(){const e=pp(),t=hp();return e===Ue.System?t:e}function ux({children:e,widget:t,modeOverride:n}){const[r,i]=L.useState(pp),[o,s]=L.useState(hp);L.useEffect(()=>{const C=window.matchMedia("(prefers-color-scheme: dark)"),p=h=>{s(h.matches?"dark":"light")};return C.addEventListener("change",p),()=>C.removeEventListener("change",p)},[]);const l=n??r,a=l===Ue.System?o:l,u=L.useCallback(C=>{i(C);try{localStorage.setItem(dp,C)}catch{}},[]),c=T1(t,a),f=k1(t),d=t&&t.appearance&&t.appearance.design&&t.appearance.design.border_radius?t.appearance.design.border_radius:Pt.Md,g=C=>c[C],y=C=>f[C],x=()=>x1[d];return w.jsx(fp.Provider,{value:{colors:c,texts:f,getColor:g,getText:y,getRadius:x,mode:l,resolvedMode:a,setMode:u},children:e})}const at=()=>L.useContext(fp),cx=()=>at().getText,mp=L.createContext({});function P1(e){const t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}const $a=typeof window<"u",E1=$a?L.useLayoutEffect:L.useEffect,Ga=L.createContext(null),gp=L.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function M1(e=!0){const t=L.useContext(Ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=L.useId();L.useEffect(()=>{if(e)return i(o)},[e]);const s=L.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}function Wa(e,t){e.indexOf(t)===-1&&e.push(t)}function Ya(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let _l=()=>{};const Al={skipAnimations:!1,useManualTiming:!1};function Qa(e){let t;return()=>(t===void 0&&(t=e()),t)}const He=e=>e,Yr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Xa{constructor(){this.subscriptions=[]}add(t){return Wa(this.subscriptions,t),()=>Ya(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const it=e=>e*1e3,ot=e=>e/1e3;function vp(e,t){return t?e*(1e3/t):0}const _1=Qa(()=>window.ScrollTimeline!==void 0);class A1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(_1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class L1 extends A1{then(t,n){return this.finished.finally(t).then(()=>{})}}const jc={value:null,addProjectionMetrics:null},ba=e=>Array.isArray(e)&&typeof e[0]=="number",R1={};function j1(e,t){const n=Qa(e);return()=>R1[t]??n()}const Qr=j1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(o/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},pr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ll={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pr([0,.65,.55,1]),circOut:pr([.55,0,1,.45]),backIn:pr([.31,.01,.66,-.59]),backOut:pr([.33,1.53,.69,.99])};function wp(e,t){if(e)return typeof e=="function"&&Qr()?yp(e,t):ba(e)?pr(e):Array.isArray(e)?e.map(n=>wp(n,t)||Ll.easeOut):Ll[e]}function D1(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l="easeInOut",times:a}={},u=void 0){const c={[t]:n};a&&(c.offset=a);const f=wp(l,i);return Array.isArray(f)&&(c.easing=f),e.animate(c,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal",pseudoElement:u})}function Za(e){return typeof e=="function"&&"applyToOptions"in e}function Ka(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const wo=2e4;function qa(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<wo;)t+=n,r=e.next(t);return t>=wo?1/0:t}function V1(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(qa(r),wo);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:ot(i)}}function xp(e){return!!(typeof e=="function"&&Qr()||!e||typeof e=="string"&&(e in Ll||Qr())||ba(e)||Array.isArray(e)&&e.every(xp))}function Dc(e,t){e.timeline=t,e.onfinish=null}const Li=["read","resolveKeyframes","update","preRender","render","postRender"];function B1(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},a=0;function u(f){s.has(f)&&(c.schedule(f),e()),a++,f(l)}const c={schedule:(f,d=!1,g=!1)=>{const x=g&&i?n:r;return d&&s.add(f),x.has(f)||x.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(l=f,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&jc.value&&jc.value.frameloop[t].push(a),a=0,n.clear(),i=!1,o&&(o=!1,c.process(f))}};return c}const N1=40;function kp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Li.reduce((p,h)=>(p[h]=B1(o,t?h:void 0),p),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:f,postRender:d}=s,g=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,N1),1),i.timestamp=p,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Li.reduce((p,h)=>{const m=s[h];return p[h]=(k,S=!1,E=!1)=>(n||y(),m.schedule(k,S,E)),p},{}),cancel:p=>{for(let h=0;h<Li.length;h++)s[Li[h]].cancel(p)},state:i,steps:s}}const{schedule:Ja,cancel:fx}=kp(queueMicrotask,!1),{schedule:H,cancel:Ot,state:ce,steps:ks}=kp(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0);let Wi;function z1(){Wi=void 0}const st={now:()=>(Wi===void 0&&st.set(ce.isProcessing||Al.useManualTiming?ce.timestamp:performance.now()),Wi),set:e=>{Wi=e,queueMicrotask(z1)}},Ye={x:!1,y:!1};function Sp(){return Ye.x||Ye.y}function F1(e){return e==="x"||e==="y"?Ye[e]?null:(Ye[e]=!0,()=>{Ye[e]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}function I1(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Cp(e,t){const n=I1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Vc(e){return!(e.pointerType==="touch"||Sp())}function O1(e,t,n={}){const[r,i,o]=Cp(e,n),s=l=>{if(!Vc(l))return;const{target:a}=l,u=t(a,l);if(typeof u!="function"||!a)return;const c=f=>{Vc(f)&&(u(f),a.removeEventListener("pointerleave",c))};a.addEventListener("pointerleave",c,i)};return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const Tp=(e,t)=>t?e===t?!0:Tp(e,t.parentElement):!1,eu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,U1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function H1(e){return U1.has(e.tagName)||e.tabIndex!==-1}const mr=new WeakSet;function Bc(e){return t=>{t.key==="Enter"&&e(t)}}function Ss(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const $1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Bc(()=>{if(mr.has(n))return;Ss(n,"down");const i=Bc(()=>{Ss(n,"up")}),o=()=>Ss(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Nc(e){return eu(e)&&!Sp()}function G1(e,t,n={}){const[r,i,o]=Cp(e,n),s=l=>{const a=l.currentTarget;if(!Nc(l)||mr.has(a))return;mr.add(a);const u=t(a,l),c=(g,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!Nc(g)||!mr.has(a))&&(mr.delete(a),typeof u=="function"&&u(g,{success:y}))},f=g=>{c(g,a===window||a===document||n.useGlobalTarget||Tp(a,g.target))},d=g=>{c(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l instanceof HTMLElement&&(l.addEventListener("focus",u=>$1(u,i)),!H1(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}const zc=30,W1=e=>!isNaN(parseFloat(e));class Y1{constructor(t,n={}){this.version="12.7.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=st.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=st.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=W1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Xa);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=st.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zc);return vp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xr(e,t){return new Y1(e,t)}const Pp=L.createContext({strict:!1}),Fc={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"]},Qn={};for(const e in Fc)Qn[e]={isEnabled:t=>Fc[e].some(n=>!!t[n])};function Q1(e){for(const t in e)Qn[t]={...Qn[t],...e[t]}}const X1=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 xo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||X1.has(e)}let Ep=e=>!xo(e);function b1(e){e&&(Ep=t=>t.startsWith("on")?!xo(t):e(t))}try{b1(require("@emotion/is-prop-valid").default)}catch{}function Z1(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ep(i)||n===!0&&xo(i)||!t&&!xo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function K1(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const $o=L.createContext({});function Go(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function br(e){return typeof e=="string"||Array.isArray(e)}const tu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nu=["initial",...tu];function Wo(e){return Go(e.animate)||nu.some(t=>br(e[t]))}function Mp(e){return!!(Wo(e)||e.variants)}function q1(e,t){if(Wo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||br(n)?n:void 0,animate:br(r)?r:void 0}}return e.inherit!==!1?t:{}}function J1(e){const{initial:t,animate:n}=q1(e,L.useContext($o));return L.useMemo(()=>({initial:t,animate:n}),[Ic(t),Ic(n)])}function Ic(e){return Array.isArray(e)?e.join(" "):e}const ev=Symbol.for("motionComponentSymbol");function An(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tv(e,t,n){return L.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):An(n)&&(n.current=r))},[t])}const ru=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nv="framerAppearId",_p="data-"+ru(nv),Ap=L.createContext({});function rv(e,t,n,r,i){var x,C;const{visualElement:o}=L.useContext($o),s=L.useContext(Pp),l=L.useContext(Ga),a=L.useContext(gp).reducedMotion,u=L.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:a}));const c=u.current,f=L.useContext(Ap);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&iv(u.current,n,i,f);const d=L.useRef(!1);L.useInsertionEffect(()=>{c&&d.current&&c.update(n,l)});const g=n[_p],y=L.useRef(!!g&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,g))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,g)));return E1(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),Ja.render(c.render),y.current&&c.animationState&&c.animationState.animateChanges())}),L.useEffect(()=>{c&&(!y.current&&c.animationState&&c.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)==null||p.call(window,g)}),y.current=!1))}),c}function iv(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:l,layoutScroll:a,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Lp(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&An(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:a,layoutRoot:u})}function Lp(e){if(e)return e.options.allowProjection!==!1?e.projection:Lp(e.parent)}function ov({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Q1(e);function o(l,a){let u;const c={...L.useContext(gp),...l,layoutId:sv(l)},{isStatic:f}=c,d=J1(l),g=r(l,f);if(!f&&$a){lv();const y=av(c);u=y.MeasureLayout,d.visualElement=rv(i,g,c,t,y.ProjectionNode)}return w.jsxs($o.Provider,{value:d,children:[u&&d.visualElement?w.jsx(u,{visualElement:d.visualElement,...c}):null,n(i,l,tv(g,d.visualElement,a),g,f,d.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const s=L.forwardRef(o);return s[ev]=i,s}function sv({layoutId:e}){const t=L.useContext(mp).id;return t&&e!==void 0?t+"-"+e:e}function lv(e,t){L.useContext(Pp).strict}function av(e){const{drag:t,layout:n}=Qn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Rp=e=>t=>typeof t=="string"&&t.startsWith(e),iu=Rp("--"),uv=Rp("var(--"),ou=e=>uv(e)?cv.test(e.split("/*")[0].trim()):!1,cv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zr={};function fv(e){for(const t in e)Zr[t]=e[t],iu(t)&&(Zr[t].isCSSVariable=!0)}const qn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mn=new Set(qn);function jp(e,{layout:t,layoutId:n}){return mn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zr[e]||e==="opacity")}const ve=e=>!!(e&&e.getVelocity),Dp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,yt=(e,t,n)=>n>t?t:n<e?e:n,Jn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Kr={...Jn,transform:e=>yt(0,1,e)},Ri={...Jn,default:1},si=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),St=si("deg"),lt=si("%"),j=si("px"),dv=si("vh"),hv=si("vw"),Oc={...lt,parse:e=>lt.parse(e)/100,transform:e=>lt.transform(e*100)},pv={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j},mv={rotate:St,rotateX:St,rotateY:St,rotateZ:St,scale:Ri,scaleX:Ri,scaleY:Ri,scaleZ:Ri,skew:St,skewX:St,skewY:St,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Kr,originX:Oc,originY:Oc,originZ:j},Uc={...Jn,transform:Math.round},su={...pv,...mv,zIndex:Uc,size:j,fillOpacity:Kr,strokeOpacity:Kr,numOctaves:Uc},gv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vv=qn.length;function yv(e,t,n){let r="",i=!0;for(let o=0;o<vv;o++){const s=qn[o],l=e[s];if(l===void 0)continue;let a=!0;if(typeof l=="number"?a=l===(s.startsWith("scale")?1:0):a=parseFloat(l)===0,!a||n){const u=Dp(l,su[s]);if(!a){i=!1;const c=gv[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function lu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,l=!1;for(const a in t){const u=t[a];if(mn.has(a)){s=!0;continue}else if(iu(a)){i[a]=u;continue}else{const c=Dp(u,su[a]);a.startsWith("origin")?(l=!0,o[a]=c):r[a]=c}}if(t.transform||(s||n?r.transform=yv(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:a="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${a} ${u} ${c}`}}const au=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vp(e,t,n){for(const r in t)!ve(t[r])&&!jp(r,n)&&(e[r]=t[r])}function wv({transformTemplate:e},t){return L.useMemo(()=>{const n=au();return lu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xv(e,t){const n=e.style||{},r={};return Vp(r,n,e),Object.assign(r,wv(e,t)),r}function kv(e,t){const n={},r=xv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Sv=["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 uu(e){return typeof e!="string"||e.includes("-")?!1:!!(Sv.indexOf(e)>-1||/[A-Z]/u.test(e))}const Cv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tv={offset:"strokeDashoffset",array:"strokeDasharray"};function Pv(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Cv:Tv;e[o.offset]=j.transform(-r);const s=j.transform(t),l=j.transform(n);e[o.array]=`${s} ${l}`}function Hc(e,t,n){return typeof e=="string"?e:j.transform(t+n*e)}function Ev(e,t,n){const r=Hc(t,e.x,e.width),i=Hc(n,e.y,e.height);return`${r} ${i}`}function cu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f){if(lu(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:g,dimensions:y}=e;d.transform&&(y&&(g.transform=d.transform),delete d.transform),y&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Ev(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Pv(d,s,l,a,!1)}const Bp=()=>({...au(),attrs:{}}),fu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Mv(e,t,n,r){const i=L.useMemo(()=>{const o=Bp();return cu(o,t,fu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Vp(o,e.style,e),i.style={...o,...i.style}}return i}function _v(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(uu(n)?Mv:kv)(r,o,s,n),u=Z1(r,typeof n=="string",e),c=n!==L.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=L.useMemo(()=>ve(f)?f.get():f,[f]);return L.createElement(n,{...c,children:d})}}function $c(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function du(e,t,n,r){if(typeof t=="function"){const[i,o]=$c(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=$c(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Rl=e=>Array.isArray(e),Av=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Lv=e=>Rl(e)?e[e.length-1]||0:e;function Yi(e){const t=ve(e)?e.get():e;return Av(t)?t.toValue():t}function Rv({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:jv(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const Np=e=>(t,n)=>{const r=L.useContext($o),i=L.useContext(Ga),o=()=>Rv(e,t,r,i);return n?o():P1(o)};function jv(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Yi(o[d]);let{initial:s,animate:l}=e;const a=Wo(e),u=Mp(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;if(f&&typeof f!="boolean"&&!Go(f)){const d=Array.isArray(f)?f:[f];for(let g=0;g<d.length;g++){const y=du(e,d[g]);if(y){const{transitionEnd:x,transition:C,...p}=y;for(const h in p){let m=p[h];if(Array.isArray(m)){const k=c?m.length-1:0;m=m[k]}m!==null&&(i[h]=m)}for(const h in x)i[h]=x[h]}}}return i}function hu(e,t,n){var o;const{style:r}=e,i={};for(const s in r)(ve(r[s])||t.style&&ve(t.style[s])||jp(s,e)||((o=n==null?void 0:n.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const Dv={useVisualState:Np({scrapeMotionValuesFromProps:hu,createRenderState:au})};function zp(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Fp(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Ip=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 Op(e,t,n,r){Fp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ip.has(i)?i:ru(i),t.attrs[i])}function Up(e,t,n){const r=hu(e,t,n);for(const i in e)if(ve(e[i])||ve(t[i])){const o=qn.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Gc=["x","y","width","height","cx","cy","r"],Vv={useVisualState:Np({scrapeMotionValuesFromProps:Up,createRenderState:Bp,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(mn.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<Gc.length;l++){const a=Gc[l];e[a]!==t[a]&&(s=!0)}s&&H.read(()=>{zp(n,r),H.render(()=>{cu(r,i,fu(n.tagName),e.transformTemplate),Op(n,r)})})}})};function Bv(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...uu(r)?Vv:Dv,preloadedFeatures:e,useRender:_v(i),createVisualElement:t,Component:r};return ov(s)}}function qr(e,t,n){const r=e.getProps();return du(r,t,n!==void 0?n:r.custom,e)}const Hp=new Set(["width","height","top","left","right","bottom",...qn]);function Nv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xr(n))}function zv(e,t){const n=qr(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=Lv(o[s]);Nv(e,s,l)}}function Fv(e){return!!(ve(e)&&e.add)}function jl(e,t){const n=e.getValue("willChange");if(Fv(n))return n.add(t);if(!n&&Al.WillChange){const r=new Al.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function $p(e){return e.props[_p]}const Gp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Iv=1e-7,Ov=12;function Uv(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=Gp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Iv&&++l<Ov);return s}function li(e,t,n,r){if(e===t&&n===r)return He;const i=o=>Uv(o,0,1,e,n);return o=>o===0||o===1?o:Gp(i(o),t,r)}const Wp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yp=e=>t=>1-e(1-t),Qp=li(.33,1.53,.69,.99),pu=Yp(Qp),Xp=Wp(pu),bp=e=>(e*=2)<1?.5*pu(e):.5*(2-Math.pow(2,-10*(e-1))),mu=e=>1-Math.sin(Math.acos(e)),Zp=Yp(mu),Kp=Wp(mu),qp=e=>/^0[^.\s]+$/u.test(e);function Hv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||qp(e):!0}const Pr=e=>Math.round(e*1e5)/1e5,gu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $v(e){return e==null}const Gv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vu=(e,t)=>n=>!!(typeof n=="string"&&Gv.test(n)&&n.startsWith(e)||t&&!$v(n)&&Object.prototype.hasOwnProperty.call(n,t)),Jp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(gu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Wv=e=>yt(0,255,e),Cs={...Jn,transform:e=>Math.round(Wv(e))},nn={test:vu("rgb","red"),parse:Jp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cs.transform(e)+", "+Cs.transform(t)+", "+Cs.transform(n)+", "+Pr(Kr.transform(r))+")"};function Yv(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Dl={test:vu("#"),parse:Yv,transform:nn.transform},Ln={test:vu("hsl","hue"),parse:Jp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+lt.transform(Pr(t))+", "+lt.transform(Pr(n))+", "+Pr(Kr.transform(r))+")"},me={test:e=>nn.test(e)||Dl.test(e)||Ln.test(e),parse:e=>nn.test(e)?nn.parse(e):Ln.test(e)?Ln.parse(e):Dl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nn.transform(e):Ln.transform(e)},Qv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(gu))==null?void 0:t.length)||0)+(((n=e.match(Qv))==null?void 0:n.length)||0)>0}const em="number",tm="color",bv="var",Zv="var(",Wc="${}",Kv=/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 Jr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(Kv,a=>(me.test(a)?(r.color.push(o),i.push(tm),n.push(me.parse(a))):a.startsWith(Zv)?(r.var.push(o),i.push(bv),n.push(a)):(r.number.push(o),i.push(em),n.push(parseFloat(a))),++o,Wc)).split(Wc);return{values:n,split:l,indexes:r,types:i}}function nm(e){return Jr(e).values}function rm(e){const{split:t,types:n}=Jr(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const l=n[s];l===em?o+=Pr(i[s]):l===tm?o+=me.transform(i[s]):o+=i[s]}return o}}const qv=e=>typeof e=="number"?0:e;function Jv(e){const t=nm(e);return rm(e)(t.map(qv))}const Ut={test:Xv,parse:nm,createTransformer:rm,getAnimatableNone:Jv},ey=new Set(["brightness","contrast","saturate","opacity"]);function ty(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gu)||[];if(!r)return e;const i=n.replace(r,"");let o=ey.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const ny=/\b([a-z-]*)\(.*?\)/gu,Vl={...Ut,getAnimatableNone:e=>{const t=e.match(ny);return t?t.map(ty).join(" "):e}},ry={...su,color:me,backgroundColor:me,outlineColor:me,fill:me,stroke:me,borderColor:me,borderTopColor:me,borderRightColor:me,borderBottomColor:me,borderLeftColor:me,filter:Vl,WebkitFilter:Vl},im=e=>ry[e];function om(e,t){let n=im(e);return n!==Vl&&(n=Ut),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iy=new Set(["auto","none","0"]);function oy(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!iy.has(o)&&Jr(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=om(n,i)}const rn=e=>e*180/Math.PI,Bl=e=>{const t=rn(Math.atan2(e[1],e[0]));return Nl(t)},sy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bl,rotateZ:Bl,skewX:e=>rn(Math.atan(e[1])),skewY:e=>rn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Nl=e=>(e=e%360,e<0&&(e+=360),e),Yc=Bl,Qc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Xc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ly={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Qc,scaleY:Xc,scale:e=>(Qc(e)+Xc(e))/2,rotateX:e=>Nl(rn(Math.atan2(e[6],e[5]))),rotateY:e=>Nl(rn(Math.atan2(-e[2],e[0]))),rotateZ:Yc,rotate:Yc,skewX:e=>rn(Math.atan(e[4])),skewY:e=>rn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bc(e){return e.includes("scale")?1:0}function zl(e,t){if(!e||e==="none")return bc(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ly,i=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sy,i=l}if(!i)return bc(t);const o=r[t],s=i[1].split(",").map(uy);return typeof o=="function"?o(s):s[o]}const ay=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zl(n,t)};function uy(e){return parseFloat(e.trim())}const Zc=e=>e===Jn||e===j,cy=new Set(["x","y","z"]),fy=qn.filter(e=>!cy.has(e));function dy(e){const t=[];return fy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>zl(t,"x"),y:(e,{transform:t})=>zl(t,"y")};Xn.translateX=Xn.x;Xn.translateY=Xn.y;const ln=new Set;let Fl=!1,Il=!1;function sm(){if(Il){const e=Array.from(ln).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=dy(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))==null||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Il=!1,Fl=!1,ln.forEach(e=>e.complete()),ln.clear()}function lm(){ln.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Il=!0)})}function hy(){lm(),sm()}class yu{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ln.add(this),Fl||(Fl=!0,H.read(lm),H.resolveKeyframes(sm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,l);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ln.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ln.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const am=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),py=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function my(e){const t=py.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function um(e,t,n=1){const[r,i]=my(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return am(s)?parseFloat(s):s}return ou(i)?um(i,t,n+1):i}const cm=e=>t=>t.test(e),gy={test:e=>e==="auto",parse:e=>e},fm=[Jn,j,lt,St,hv,dv,gy],Kc=e=>fm.find(cm(e));class dm extends yu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),ou(u))){const c=um(u,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Hp.has(r)||t.length!==2)return;const[i,o]=t,s=Kc(i),l=Kc(o);if(s!==l)if(Zc(s)&&Zc(l))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Hv(t[i])&&r.push(i);r.length&&oy(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Xn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const qc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ut.test(e)||e==="0")&&!e.startsWith("url("));function vy(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function yy(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=qc(i,t),l=qc(o,t);return!s||!l?!1:vy(e)||(n==="spring"||Za(n))&&r}const wy=e=>e!==null;function Yo(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(wy),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const xy=40;class hm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=st.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>xy?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hy(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=st.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!yy(t,r,i,o))if(s)this.options.duration=0;else{a&&a(Yo(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Q=(e,t,n)=>e+(t-e)*n;function Ts(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ky({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=Ts(a,l,e+1/3),o=Ts(a,l,e),s=Ts(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function ko(e,t){return n=>n>0?t:e}const Ps=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Sy=[Dl,nn,Ln],Cy=e=>Sy.find(t=>t.test(e));function Jc(e){const t=Cy(e);if(!t)return!1;let n=t.parse(e);return t===Ln&&(n=ky(n)),n}const ef=(e,t)=>{const n=Jc(e),r=Jc(t);if(!n||!r)return ko(e,t);const i={...n};return o=>(i.red=Ps(n.red,r.red,o),i.green=Ps(n.green,r.green,o),i.blue=Ps(n.blue,r.blue,o),i.alpha=Q(n.alpha,r.alpha,o),nn.transform(i))},Ty=(e,t)=>n=>t(e(n)),ai=(...e)=>e.reduce(Ty),Ol=new Set(["none","hidden"]);function Py(e,t){return Ol.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ey(e,t){return n=>Q(e,t,n)}function wu(e){return typeof e=="number"?Ey:typeof e=="string"?ou(e)?ko:me.test(e)?ef:Ay:Array.isArray(e)?pm:typeof e=="object"?me.test(e)?ef:My:ko}function pm(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>wu(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function My(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function _y(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],l=e.values[s]??0;n[i]=l,r[o]++}return n}const Ay=(e,t)=>{const n=Ut.createTransformer(t),r=Jr(e),i=Jr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ol.has(e)&&!i.values.length||Ol.has(t)&&!r.values.length?Py(e,t):ai(pm(_y(r,i),i.values),n):ko(e,t)};function mm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Q(e,t,n):wu(e)(e,t)}const Ly=5;function gm(e,t,n){const r=Math.max(t-Ly,0);return vp(n-e(r),t-r)}const Z={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},Es=.001;function Ry({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,o,s=1-t;s=yt(Z.minDamping,Z.maxDamping,s),e=yt(Z.minDuration,Z.maxDuration,ot(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,g=Ul(u,s),y=Math.exp(-f);return Es-d/g*y},o=u=>{const f=u*s*e,d=f*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),x=Ul(Math.pow(u,2),s);return(-i(u)+Es>0?-1:1)*((d-g)*y)/x}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Es+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=Dy(i,o,l);if(e=it(e),isNaN(a))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const jy=12;function Dy(e,t,n){let r=n;for(let i=1;i<jy;i++)r=r-e(r)/t(r);return r}function Ul(e,t){return e*Math.sqrt(1-t*t)}const Vy=["duration","bounce"],By=["stiffness","damping","mass"];function tf(e,t){return t.some(n=>e[n]!==void 0)}function Ny(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!tf(e,By)&&tf(e,Vy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*yt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Z.mass,stiffness:i,damping:o}}else{const n=Ry(e);t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function So(e=Z.visualDuration,t=Z.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:a,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=Ny({...n,velocity:-ot(n.velocity||0)}),y=d||0,x=u/(2*Math.sqrt(a*c)),C=s-o,p=ot(Math.sqrt(a/c)),h=Math.abs(C)<5;r||(r=h?Z.restSpeed.granular:Z.restSpeed.default),i||(i=h?Z.restDelta.granular:Z.restDelta.default);let m;if(x<1){const S=Ul(p,x);m=E=>{const M=Math.exp(-x*p*E);return s-M*((y+x*p*C)/S*Math.sin(S*E)+C*Math.cos(S*E))}}else if(x===1)m=S=>s-Math.exp(-p*S)*(C+(y+p*C)*S);else{const S=p*Math.sqrt(x*x-1);m=E=>{const M=Math.exp(-x*p*E),P=Math.min(S*E,300);return s-M*((y+x*p*C)*Math.sinh(P)+S*C*Math.cosh(P))/S}}const k={calculatedDuration:g&&f||null,next:S=>{const E=m(S);if(g)l.done=S>=f;else{let M=0;x<1&&(M=S===0?it(y):gm(m,S,E));const P=Math.abs(M)<=r,F=Math.abs(s-E)<=i;l.done=P&&F}return l.value=l.done?s:E,l},toString:()=>{const S=Math.min(qa(k),wo),E=yp(M=>k.next(S*M).value,S,30);return S+"ms "+E},toTransition:()=>{}};return k}So.applyToOptions=e=>{const t=V1(e,100,So);return e.ease=Qr()?t.ease:"easeOut",e.duration=it(t.duration),e.type="keyframes",e};function nf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=P=>l!==void 0&&P<l||a!==void 0&&P>a,y=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let x=n*t;const C=f+x,p=s===void 0?C:s(C);p!==C&&(x=p-f);const h=P=>-x*Math.exp(-P/r),m=P=>p+h(P),k=P=>{const F=h(P),D=m(P);d.done=Math.abs(F)<=u,d.value=d.done?p:D};let S,E;const M=P=>{g(d.value)&&(S=P,E=So({keyframes:[d.value,y(d.value)],velocity:gm(m,P,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:P=>{let F=!1;return!E&&S===void 0&&(F=!0,k(P),M(P)),S!==void 0&&P>=S?E.next(P-S):(!F&&k(P),d)}}}const zy=li(.42,0,1,1),Fy=li(0,0,.58,1),vm=li(.42,0,.58,1),Iy=e=>Array.isArray(e)&&typeof e[0]!="number",rf={linear:He,easeIn:zy,easeInOut:vm,easeOut:Fy,circIn:mu,circInOut:Kp,circOut:Zp,backIn:pu,backInOut:Xp,backOut:Qp,anticipate:bp},of=e=>{if(ba(e)){_l(e.length===4);const[t,n,r,i]=e;return li(t,n,r,i)}else if(typeof e=="string")return _l(rf[e]!==void 0),rf[e];return e};function Oy(e,t,n){const r=[],i=n||mm,o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||He:t;l=ai(a,l)}r.push(l)}return r}function Uy(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(_l(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Oy(t,r,i),a=l.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(a>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Yr(e[f],e[f+1],c);return l[f](d)};return n?c=>u(yt(e[0],e[o-1],c)):u}function Hy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Yr(0,t,r);e.push(Q(n,1,i))}}function $y(e){const t=[0];return Hy(t,e.length-1),t}function Gy(e,t){return e.map(n=>n*t)}function Wy(e,t){return e.map(()=>t||vm).splice(0,e.length-1)}function Co({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Iy(r)?r.map(of):of(r),o={done:!1,value:t[0]},s=Gy(n&&n.length===t.length?n:$y(t),e),l=Uy(s,t,{ease:Array.isArray(i)?i:Wy(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}const Yy=e=>{const t=({timestamp:n})=>e(n);return{start:()=>H.update(t,!0),stop:()=>Ot(t),now:()=>ce.isProcessing?ce.timestamp:st.now()}},Qy={decay:nf,inertia:nf,tween:Co,keyframes:Co,spring:So},Xy=e=>e/100;class xu extends hm{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||yu,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=Za(n)?n:Qy[n]||Co;let a,u;l!==Co&&typeof t[0]!="number"&&(a=ai(Xy,mm(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=qa(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:g,repeatType:y,repeatDelay:x,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-d*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,k=o;if(g){const P=Math.min(this.currentTime,c)/f;let F=Math.floor(P),D=P%1;!D&&P>=1&&(D=1),D===1&&F--,F=Math.min(F,g+1),!!(F%2)&&(y==="reverse"?(D=1-D,x&&(D-=x/f)):y==="mirror"&&(k=s)),m=yt(0,1,D)*f}const S=h?{done:!1,value:a[0]}:k.next(m);l&&(S.value=l(S.value));let{done:E}=S;!h&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&i!==void 0&&(S.value=Yo(a,this.options,i)),C&&C(S.value),M&&this.finish(),S}get duration(){const{resolved:t}=this;return t?ot(t.calculatedDuration):0}get time(){return ot(this.currentTime)}set time(t){t=it(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ot(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Yy,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}}const by=new Set(["opacity","clipPath","filter","transform"]),Zy=Qa(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),To=10,Ky=2e4;function qy(e){return Za(e.type)||e.type==="spring"||!xp(e.ease)}function Jy(e,t){const n=new xu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<Ky;)r=n.sample(o),i.push(r.value),o+=To;return{times:void 0,keyframes:i,duration:o-To,ease:"linear"}}const ym={anticipate:bp,backInOut:Xp,circInOut:Kp};function e2(e){return e in ym}class sf extends hm{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new dm(o,(s,l)=>this.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Qr()&&e2(o)&&(o=ym[o]),qy(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,element:y,...x}=this.options,C=Jy(t,x);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,o=C.ease,s="keyframes"}const c=D1(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Dc(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Yo(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ot(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ot(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=it(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}get finished(){return this.resolved.animation.finished}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return He;const{animation:r}=n;Dc(r,t)}return He}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...g}=this.options,y=new xu({...g,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),x=it(this.time);u.setWithVelocity(y.sample(x-To).value,y.sample(x).value,To)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return Zy()&&r&&by.has(r)&&(r!=="transform"||!u)&&!a&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const t2={type:"spring",stiffness:500,damping:25,restSpeed:10},n2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),r2={type:"keyframes",duration:.8},i2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o2=(e,{keyframes:t})=>t.length>2?r2:mn.has(e)?e.startsWith("scale")?n2(t[1]):t2:i2;function s2({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const ku=(e,t,n,r={},i,o)=>s=>{const l=Ka(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-it(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:d=>{t.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};s2(l)||(c={...c,...o2(e,c)}),c.duration&&(c.duration=it(c.duration)),c.repeatDelay&&(c.repeatDelay=it(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),c.allowFlatten=!l.type&&!l.ease,f&&!o&&t.get()!==void 0){const d=Yo(c.keyframes,l);if(d!==void 0)return H.update(()=>{c.onUpdate(d),c.onComplete()}),new L1([])}return!o&&sf.supports(c)?new sf(c):new xu(c)};function l2({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(o=r);const a=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in l){const f=e.getValue(c,e.latestValues[c]??null),d=l[c];if(d===void 0||u&&l2(u,c))continue;const g={delay:n,...Ka(o||{},c)};let y=!1;if(window.MotionHandoffAnimation){const C=$p(e);if(C){const p=window.MotionHandoffAnimation(C,c,H);p!==null&&(g.startTime=p,y=!0)}}jl(e,c),f.start(ku(c,f,d,e.shouldReduceMotion&&Hp.has(c)?{type:!1}:g,e,y));const x=f.animation;x&&a.push(x)}return s&&Promise.all(a).then(()=>{H.update(()=>{s&&zv(e,s)})}),a}function Hl(e,t,n={}){var a;const r=qr(e,t,n.type==="exit"?(a=e.presenceContext)==null?void 0:a.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(wm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return a2(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[o,s]:[s,o];return u().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function a2(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(u2).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Hl(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function u2(e,t){return e.sortNodePosition(t)}function c2(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Hl(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Hl(e,t,n);else{const i=typeof t=="function"?qr(e,t,n.custom):t;r=Promise.all(wm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function xm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const f2=nu.length;function km(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?km(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<f2;n++){const r=nu[n],i=e.props[r];(br(i)||i===!1)&&(t[r]=i)}return t}const d2=[...tu].reverse(),h2=tu.length;function p2(e){return t=>Promise.all(t.map(({animation:n,options:r})=>c2(e,n,r)))}function m2(e){let t=p2(e),n=lf(),r=!0;const i=a=>(u,c)=>{var d;const f=qr(e,c,a==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:y,...x}=f;u={...u,...x,...y}}return u};function o(a){t=a(e)}function s(a){const{props:u}=e,c=km(e.parent)||{},f=[],d=new Set;let g={},y=1/0;for(let C=0;C<h2;C++){const p=d2[C],h=n[p],m=u[p]!==void 0?u[p]:c[p],k=br(m),S=p===a?h.isActive:null;S===!1&&(y=C);let E=m===c[p]&&m!==u[p]&&k;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),h.protectedKeys={...g},!h.isActive&&S===null||!m&&!h.prevProp||Go(m)||typeof m=="boolean")continue;const M=g2(h.prevProp,m);let P=M||p===a&&h.isActive&&!E&&k||C>y&&k,F=!1;const D=Array.isArray(m)?m:[m];let oe=D.reduce(i(p),{});S===!1&&(oe={});const{prevResolvedValues:xt={}}=h,Yt={...xt,...oe},er=ne=>{P=!0,d.has(ne)&&(F=!0,d.delete(ne)),h.needsAnimating[ne]=!0;const _=e.getValue(ne);_&&(_.liveStyle=!1)};for(const ne in Yt){const _=oe[ne],V=xt[ne];if(g.hasOwnProperty(ne))continue;let N=!1;Rl(_)&&Rl(V)?N=!xm(_,V):N=_!==V,N?_!=null?er(ne):d.add(ne):_!==void 0&&d.has(ne)?er(ne):h.protectedKeys[ne]=!0}h.prevProp=m,h.prevResolvedValues=oe,h.isActive&&(g={...g,...oe}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(E&&M)||F)&&f.push(...D.map(ne=>({animation:ne,options:{type:p}})))}if(d.size){const C={};if(typeof u.initial!="boolean"){const p=qr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(C.transition=p.transition)}d.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),C[p]=h??null}),f.push({animation:C})}let x=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function l(a,u){var f;if(n[a].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var g;return(g=d.animationState)==null?void 0:g.setActive(a,u)}),n[a].isActive=u;const c=s(a);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=lf(),r=!0}}}function g2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xm(t,e):!1}function bt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lf(){return{animate:bt(!0),whileInView:bt(),whileHover:bt(),whileTap:bt(),whileDrag:bt(),whileFocus:bt(),exit:bt()}}class Wt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class v2 extends Wt{constructor(t){super(t),t.animationState||(t.animationState=m2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Go(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let y2=0;class w2 extends Wt{constructor(){super(...arguments),this.id=y2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const x2={animation:{Feature:v2},exit:{Feature:w2}};function ei(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ui(e){return{point:{x:e.pageX,y:e.pageY}}}const k2=e=>t=>eu(t)&&e(t,ui(t));function Er(e,t,n,r){return ei(e,t,k2(n),r)}function Sm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function S2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C2(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Cm=1e-4,T2=1-Cm,P2=1+Cm,Tm=.01,E2=0-Tm,M2=0+Tm;function xe(e){return e.max-e.min}function _2(e,t,n){return Math.abs(e-t)<=n}function af(e,t,n,r=.5){e.origin=r,e.originPoint=Q(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),e.translate=Q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=T2&&e.scale<=P2||isNaN(e.scale))&&(e.scale=1),(e.translate>=E2&&e.translate<=M2||isNaN(e.translate))&&(e.translate=0)}function Mr(e,t,n,r){af(e.x,t.x,n.x,r?r.originX:void 0),af(e.y,t.y,n.y,r?r.originY:void 0)}function uf(e,t,n){e.min=n.min+t.min,e.max=e.min+xe(t)}function A2(e,t,n){uf(e.x,t.x,n.x),uf(e.y,t.y,n.y)}function cf(e,t,n){e.min=t.min-n.min,e.max=e.min+xe(t)}function _r(e,t,n){cf(e.x,t.x,n.x),cf(e.y,t.y,n.y)}const ff=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rn=()=>({x:ff(),y:ff()}),df=()=>({min:0,max:0}),J=()=>({x:df(),y:df()});function Ne(e){return[e("x"),e("y")]}function Ms(e){return e===void 0||e===1}function $l({scale:e,scaleX:t,scaleY:n}){return!Ms(e)||!Ms(t)||!Ms(n)}function qt(e){return $l(e)||Pm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Pm(e){return hf(e.x)||hf(e.y)}function hf(e){return e&&e!=="0%"}function Po(e,t,n){const r=e-n,i=t*r;return n+i}function pf(e,t,n,r,i){return i!==void 0&&(e=Po(e,i,r)),Po(e,n,r)+t}function Gl(e,t=0,n=1,r,i){e.min=pf(e.min,t,n,r,i),e.max=pf(e.max,t,n,r,i)}function Em(e,{x:t,y:n}){Gl(e.x,t.translate,t.scale,t.originPoint),Gl(e.y,n.translate,n.scale,n.originPoint)}const mf=.999999999999,gf=1.0000000000001;function L2(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&a.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Dn(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Em(e,s)),r&&qt(o.latestValues)&&Dn(e,o.latestValues))}t.x<gf&&t.x>mf&&(t.x=1),t.y<gf&&t.y>mf&&(t.y=1)}function jn(e,t){e.min=e.min+t,e.max=e.max+t}function vf(e,t,n,r,i=.5){const o=Q(e.min,e.max,i);Gl(e,t,n,o,r)}function Dn(e,t){vf(e.x,t.x,t.scaleX,t.scale,t.originX),vf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Mm(e,t){return Sm(C2(e.getBoundingClientRect(),t))}function R2(e,t,n){const r=Mm(e,n),{scroll:i}=t;return i&&(jn(r.x,i.offset.x),jn(r.y,i.offset.y)),r}const _m=({current:e})=>e?e.ownerDocument.defaultView:null,yf=(e,t)=>Math.abs(e-t);function j2(e,t){const n=yf(e.x,t.x),r=yf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Am{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=As(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=j2(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:y}=f,{timestamp:x}=ce;this.history.push({...y,timestamp:x});const{onStart:C,onMove:p}=this.handlers;d||(C&&C(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=_s(d,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=As(f.type==="pointercancel"?this.lastMoveEventInfo:_s(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,C),y&&y(f,C)},!eu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=ui(t),l=_s(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=ce;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,As(l,this.history)),this.removeListeners=ai(Er(this.contextWindow,"pointermove",this.handlePointerMove),Er(this.contextWindow,"pointerup",this.handlePointerUp),Er(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function _s(e,t){return t?{point:t(e.point)}:e}function wf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function As({point:e},t){return{point:e,delta:wf(e,Lm(t)),offset:wf(e,D2(t)),velocity:V2(t,.1)}}function D2(e){return e[0]}function Lm(e){return e[e.length-1]}function V2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Lm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>it(t)));)n--;if(!r)return{x:0,y:0};const o=ot(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function B2(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Q(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Q(n,e,r.max):Math.min(e,n)),e}function xf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function N2(e,{top:t,left:n,bottom:r,right:i}){return{x:xf(e.x,n,i),y:xf(e.y,t,r)}}function kf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function z2(e,t){return{x:kf(e.x,t.x),y:kf(e.y,t.y)}}function F2(e,t){let n=.5;const r=xe(e),i=xe(t);return i>r?n=Yr(t.min,t.max-r,e.min):r>i&&(n=Yr(e.min,e.max-i,t.min)),yt(0,1,n)}function I2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Wl=.35;function O2(e=Wl){return e===!1?e=0:e===!0&&(e=Wl),{x:Sf(e,"left","right"),y:Sf(e,"top","bottom")}}function Sf(e,t,n){return{min:Cf(e,t),max:Cf(e,n)}}function Cf(e,t){return typeof e=="number"?e:e[t]||0}const U2=new WeakMap;class H2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ui(c).point)},o=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:y}=this.getProps();if(d&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F1(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ne(C=>{let p=this.getAxisMotionValue(C).get()||0;if(lt.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[C];m&&(p=xe(m)*(parseFloat(p)/100))}}this.originPoint[C]=p}),y&&H.postRender(()=>y(c,f)),jl(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:y,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:C}=f;if(g&&this.currentDirection===null){this.currentDirection=$2(C),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),x&&x(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Ne(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)==null?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Am(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:_m(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&H.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ji(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=B2(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&An(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=N2(r.layoutBox,t):this.constraints=!1,this.elastic=O2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ne(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=I2(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!An(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=R2(r,i.root,this.visualElement.getTransformPagePoint());let s=z2(i.layout.layoutBox,o);if(n){const l=n(S2(s));this.hasMutatedConstraints=!!l,l&&(s=Sm(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Ne(c=>{if(!ji(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return jl(this.visualElement,t),r.start(ku(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ne(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ne(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ne(n=>{const{drag:r}=this.getProps();if(!ji(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-Q(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!An(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ne(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const a=l.get();i[s]=F2({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ne(s=>{if(!ji(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(Q(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;U2.set(this.visualElement,this);const t=this.visualElement.current,n=Er(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();An(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);const s=ei(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ne(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Wl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function ji(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class G2 extends Wt{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new H2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const Tf=e=>(t,n)=>{e&&H.postRender(()=>e(t,n))};class W2 extends Wt{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new Am(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_m(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Tf(t),onStart:Tf(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&H.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Er(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ur={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const n=Pf(e,t.target.x),r=Pf(e,t.target.y);return`${n}% ${r}%`}},Y2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ut.parse(e);if(i.length>5)return r;const o=Ut.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=Q(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class Q2 extends L.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;fv(X2),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||H.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ja.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rm(e){const[t,n]=M1(),r=L.useContext(mp);return w.jsx(Q2,{...e,layoutGroup:r,switchLayoutGroup:L.useContext(Ap),isPresent:t,safeToRemove:n})}const X2={borderRadius:{...ur,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ur,borderTopRightRadius:ur,borderBottomLeftRadius:ur,borderBottomRightRadius:ur,boxShadow:Y2};function b2(e,t,n){const r=ve(e)?e:Xr(e);return r.start(ku("",r,t,n)),r.animation}function Z2(e){return e instanceof SVGElement&&e.tagName!=="svg"}const K2=(e,t)=>e.depth-t.depth;class q2{constructor(){this.children=[],this.isDirty=!1}add(t){Wa(this.children,t),this.isDirty=!0}remove(t){Ya(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(K2),this.isDirty=!1,this.children.forEach(t)}}function J2(e,t){const n=st.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ot(r),e(o-t))};return H.read(r,!0),()=>Ot(r)}const jm=["TopLeft","TopRight","BottomLeft","BottomRight"],ew=jm.length,Ef=e=>typeof e=="string"?parseFloat(e):e,Mf=e=>typeof e=="number"||j.test(e);function tw(e,t,n,r,i,o){i?(e.opacity=Q(0,n.opacity??1,nw(r)),e.opacityExit=Q(t.opacity??1,0,rw(r))):o&&(e.opacity=Q(t.opacity??1,n.opacity??1,r));for(let s=0;s<ew;s++){const l=`border${jm[s]}Radius`;let a=_f(t,l),u=_f(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Mf(a)===Mf(u)?(e[l]=Math.max(Q(Ef(a),Ef(u),r),0),(lt.test(u)||lt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Q(t.rotate||0,n.rotate||0,r))}function _f(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const nw=Dm(0,.5,Zp),rw=Dm(.5,.95,He);function Dm(e,t,n){return r=>r<e?0:r>t?1:n(Yr(e,t,r))}function Af(e,t){e.min=t.min,e.max=t.max}function Be(e,t){Af(e.x,t.x),Af(e.y,t.y)}function Lf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Rf(e,t,n,r,i){return e-=t,e=Po(e,1/n,r),i!==void 0&&(e=Po(e,1/i,r)),e}function iw(e,t=0,n=1,r=.5,i,o=e,s=e){if(lt.test(t)&&(t=parseFloat(t),t=Q(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=Q(o.min,o.max,r);e===o&&(l-=t),e.min=Rf(e.min,t,n,l,i),e.max=Rf(e.max,t,n,l,i)}function jf(e,t,[n,r,i],o,s){iw(e,t[n],t[r],t[i],t.scale,o,s)}const ow=["x","scaleX","originX"],sw=["y","scaleY","originY"];function Df(e,t,n,r){jf(e.x,t,ow,n?n.x:void 0,r?r.x:void 0),jf(e.y,t,sw,n?n.y:void 0,r?r.y:void 0)}function Vf(e){return e.translate===0&&e.scale===1}function Vm(e){return Vf(e.x)&&Vf(e.y)}function Bf(e,t){return e.min===t.min&&e.max===t.max}function lw(e,t){return Bf(e.x,t.x)&&Bf(e.y,t.y)}function Nf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Bm(e,t){return Nf(e.x,t.x)&&Nf(e.y,t.y)}function zf(e){return xe(e.x)/xe(e.y)}function Ff(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aw{constructor(){this.members=[]}add(t){Wa(this.members,t),t.scheduleRender()}remove(t){if(Ya(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function uw(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const Ls=["","X","Y","Z"],cw={visibility:"hidden"},If=1e3;let fw=0;function Rs(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Nm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=$p(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Nm(r)}function zm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=fw++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(pw),this.nodes.forEach(ww),this.nodes.forEach(xw),this.nodes.forEach(mw)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new q2)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Xa),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const a=this.eventHandlers.get(s);a&&a.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Z2(s),this.instance=s;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=J2(d,250),Qi.hasAnimatedSinceResize&&(Qi.hasAnimatedSinceResize=!1,this.nodes.forEach(Uf))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeLayoutChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||Pw,{onLayoutAnimationStart:C,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Bm(this.targetLayout,y),m=!d&&g;if(this.options.layoutRoot||this.resumeFrom||m||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const k={...Ka(x,"layout"),onPlay:C,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else d||Uf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ot(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(kw),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Of);return}this.isUpdating||this.nodes.forEach(vw),this.isUpdating=!1,this.nodes.forEach(yw),this.nodes.forEach(dw),this.nodes.forEach(hw),this.clearAllSnapshots();const l=st.now();ce.delta=yt(0,1e3/60,l-ce.timestamp),ce.timestamp=l,ce.isProcessing=!0,ks.update.process(ce),ks.preRender.process(ce),ks.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ja.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gw),this.sharedNodes.forEach(Sw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(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 a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l){const a=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Vm(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(l||qt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return s&&(a=this.removeTransform(a)),Ew(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return J();const l=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Mw))){const{scroll:c}=this.root;c&&(jn(l.x,c.offset.x),jn(l.y,c.offset.y))}return l}removeElementScroll(s){var a;const l=J();if(Be(l,s),(a=this.scroll)!=null&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Be(l,s),jn(l.x,f.offset.x),jn(l.y,f.offset.y))}return l}applyTransform(s,l=!1){const a=J();Be(a,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Dn(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),qt(c.latestValues)&&Dn(a,c.latestValues)}return qt(this.latestValues)&&Dn(a,this.latestValues),a}removeTransform(s){const l=J();Be(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!qt(u.latestValues))continue;$l(u.latestValues)&&u.updateSnapshot();const c=J(),f=u.measurePageBox();Be(c,f),Df(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return qt(this.latestValues)&&Df(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var d;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const a=!!this.resumingFrom||this!==l;if(!(s||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=ce.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),_r(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),A2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Be(this.target,this.layout.layoutBox),Em(this.target,this.targetDelta)):Be(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),_r(this.relativeTargetOrigin,this.target,g.target),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||$l(this.parent.latestValues)||Pm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var y;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let a=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(a=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(a=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(a=!1),a)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Be(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;L2(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=J());const{target:g}=s;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lf(this.prevProjectionDelta.x,this.projectionDelta.x),Lf(this.prevProjectionDelta.y,this.projectionDelta.y)),Mr(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Ff(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ff(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rn(),this.projectionDelta=Rn(),this.projectionDeltaWithTransform=Rn()}setAnimationOrigin(s,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},f=Rn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=J(),g=a?a.source:void 0,y=this.layout?this.layout.source:void 0,x=g!==y,C=this.getStack(),p=!C||C.members.length<=1,h=!!(x&&!p&&this.options.crossfade===!0&&!this.path.some(Tw));this.animationProgress=0;let m;this.mixTargetDelta=k=>{const S=k/1e3;Hf(f.x,s.x,S),Hf(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_r(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Cw(this.relativeTarget,this.relativeTargetOrigin,d,S),m&&lw(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=J()),Be(m,this.relativeTarget)),x&&(this.animationValues=c,tw(c,u,this.latestValues,S,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Qi.hasAnimatedSinceResize=!0,this.currentAnimation=b2(0,If,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(If),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&Fm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||J();const f=xe(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=xe(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}Be(l,a),Dn(l,c),Mr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new aw),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var l;const{layoutId:s}=this.options;return s?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:s}=this.options;return s?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&Rs("z",s,u,this.animationValues);for(let c=0;c<Ls.length;c++)Rs(`rotate${Ls[c]}`,s,u,this.animationValues),Rs(`skew${Ls[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){if(!this.instance||this.isSVG)return;if(!this.isVisible)return cw;const l={visibility:""},a=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Yi(s==null?void 0:s.pointerEvents)||"",l.transform=a?a(this.latestValues,""):"none",l;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Yi(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!qt(this.latestValues)&&(g.transform=a?a({},""):"none",this.hasProjected=!1),g}const c=u.animationValues||u.latestValues;this.applyTransformsToTarget(),l.transform=uw(this.projectionDeltaWithTransform,this.treeScale,c),a&&(l.transform=a(c,l.transform));const{x:f,y:d}=this.projectionDelta;l.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?l.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:l.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const g in Zr){if(c[g]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:C}=Zr[g],p=l.transform==="none"?c[g]:y(c[g],u);if(x){const h=x.length;for(let m=0;m<h;m++)l[x[m]]=p}else C?this.options.visualElement.renderState.vars[g]=p:l[g]=p}return this.options.layoutId&&(l.pointerEvents=u===this?Yi(s==null?void 0:s.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Of),this.root.sharedNodes.clear()}}}function dw(e){e.updateLayout()}function hw(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?Ne(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],g=xe(d);d.min=r[f].min,d.max=d.min+g}):Fm(o,t.layoutBox,r)&&Ne(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],g=xe(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=Rn();Mr(l,r,t.layoutBox);const a=Rn();s?Mr(a,e.applyTransform(i,!0),t.measuredBox):Mr(a,r,t.layoutBox);const u=!Vm(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const y=J();_r(y,t.layoutBox,d.layoutBox);const x=J();_r(x,r,g.layoutBox),Bm(y,x)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pw(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gw(e){e.clearSnapshot()}function Of(e){e.clearMeasurements()}function vw(e){e.isLayoutDirty=!1}function yw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ww(e){e.resolveTargetDelta()}function xw(e){e.calcProjection()}function kw(e){e.resetSkewAndRotation()}function Sw(e){e.removeLeadSnapshot()}function Hf(e,t,n){e.translate=Q(t.translate,0,n),e.scale=Q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $f(e,t,n,r){e.min=Q(t.min,n.min,r),e.max=Q(t.max,n.max,r)}function Cw(e,t,n,r){$f(e.x,t.x,n.x,r),$f(e.y,t.y,n.y,r)}function Tw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Pw={duration:.45,ease:[.4,0,.1,1]},Gf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wf=Gf("applewebkit/")&&!Gf("chrome/")?Math.round:He;function Yf(e){e.min=Wf(e.min),e.max=Wf(e.max)}function Ew(e){Yf(e.x),Yf(e.y)}function Fm(e,t,n){return e==="position"||e==="preserve-aspect"&&!_2(zf(t),zf(n),.2)}function Mw(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const _w=zm({attachResizeListener:(e,t)=>ei(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),js={current:void 0},Im=zm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!js.current){const e=new _w({});e.mount(window),e.setOptions({layoutScroll:!0}),js.current=e}return js.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Aw={pan:{Feature:W2},drag:{Feature:G2,ProjectionNode:Im,MeasureLayout:Rm}};function Qf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&H.postRender(()=>o(t,ui(t)))}class Lw extends Wt{mount(){const{current:t}=this.node;t&&(this.unmount=O1(t,(n,r)=>(Qf(this.node,r,"Start"),i=>Qf(this.node,i,"End"))))}unmount(){}}class Rw extends Wt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ai(ei(this.node.current,"focus",()=>this.onFocus()),ei(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xf(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&H.postRender(()=>o(t,ui(t)))}class jw extends Wt{mount(){const{current:t}=this.node;t&&(this.unmount=G1(t,(n,r)=>(Xf(this.node,r,"Start"),(i,{success:o})=>Xf(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Yl=new WeakMap,Ds=new WeakMap,Dw=e=>{const t=Yl.get(e.target);t&&t(e)},Vw=e=>{e.forEach(Dw)};function Bw({root:e,...t}){const n=e||document;Ds.has(n)||Ds.set(n,{});const r=Ds.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Vw,{root:e,...t})),r[i]}function Nw(e,t,n){const r=Bw(t);return Yl.set(e,n),r.observe(e),()=>{Yl.delete(e),r.unobserve(e)}}const zw={some:0,all:1};class Fw extends Wt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:zw[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return Nw(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Iw(t,n))&&this.startObserver()}unmount(){}}function Iw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ow={inView:{Feature:Fw},tap:{Feature:jw},focus:{Feature:Rw},hover:{Feature:Lw}},Uw={layout:{ProjectionNode:Im,MeasureLayout:Rm}},Ql={current:null},Om={current:!1};function Hw(){if(Om.current=!0,!!$a)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ql.current=e.matches;e.addListener(t),t()}else Ql.current=!1}const $w=[...fm,me,Ut],Gw=e=>$w.find(cm(e)),Ww=new WeakMap;function Yw(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ve(i))e.addValue(r,i);else if(ve(o))e.addValue(r,Xr(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Xr(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Qw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=st.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,H.render(this.render,!1,!0))};const{latestValues:a,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Wo(n),this.isVariantNode=Mp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in d){const y=d[g];a[g]!==void 0&&ve(y)&&y.set(a[g],!1)}}mount(t){this.current=t,Ww.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Om.current||Hw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ql.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=mn.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Qn){const n=Qn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<bf.length;r++){const i=bf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Yw(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(am(r)||qp(r))?r=parseFloat(r):!Gw(r)&&Ut.test(n)&&(r=om(t,n)),this.setBaseTarget(t,ve(r)?r.get():r)),ve(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=du(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ve(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xa),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Um extends Qw{constructor(){super(...arguments),this.KeyframeResolver=dm}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Xw(e){return window.getComputedStyle(e)}class bw extends Um{constructor(){super(...arguments),this.type="html",this.renderInstance=Fp}readValueFromInstance(t,n){if(mn.has(n))return ay(t,n);{const r=Xw(t),i=(iu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Mm(t,n)}build(t,n,r){lu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return hu(t,n,r)}}class Zw extends Um{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=J,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&zp(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mn.has(n)){const r=im(n);return r&&r.default||0}return n=Ip.has(n)?n:ru(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Up(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&H.postRender(this.updateDimensions)}build(t,n,r){cu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Op(t,n,r,i)}mount(t){this.isSVGTag=fu(t.tagName),super.mount(t)}}const Kw=(e,t)=>uu(e)?new Zw(t):new bw(t,{allowProjection:e!==L.Fragment}),qw=Bv({...x2,...Ow,...Aw,...Uw},Kw),Jw=K1(qw);function hx({variant:e="block",className:t=""}){const n=at(),r=n.getText,l=`text-[10px] flex items-center justify-center gap-1 transition-opacity hover:opacity-80 ${e==="block"?"w-full py-1.5 px-3 text-center":""} ${t}`.trim(),a=e==="block"?{color:n.getColor(v.FooterText)}:{color:n.getColor(v.FooterText)};return w.jsxs("a",{href:"https://www.chatier.app",target:"_blank",rel:"noopener noreferrer",className:l,style:a,children:[w.jsx("span",{children:r(B.PoweredBy)}),w.jsx("span",{className:"font-semibold",children:"Chatier"})]})}const Vs=[Ue.Light,Ue.Dark,Ue.System];function ex(e){switch(e){case Ue.Light:return R.Sun;case Ue.Dark:return R.Moon;case Ue.System:return R.Monitor;default:return R.Monitor}}function tx(){const e=at(),{mode:t,setMode:n}=e,r=()=>{const o=Vs.indexOf(t),s=Vs[(o+1)%Vs.length];n(s)},i=ex(t);return w.jsx("button",{type:"button",onClick:r,className:"flex items-center justify-center p-1.5 rounded-md hover:opacity-80 transition-opacity",style:{backgroundColor:"transparent",color:e.getColor(v.HeaderText)},title:t===Ue.Light?"Açık tema":t===Ue.Dark?"Koyu tema":"Sistem",children:w.jsx(i,{className:"size-5"})})}const nx=e=>{if(!e)return"";try{return new Intl.DateTimeFormat("tr-TR",{day:"2-digit",month:"short"}).format(new Date(e))}catch{return""}};function px({activeTab:e,onChange:t,visibleTabs:n}){const r=at(),o=[{key:"home",label:"Ana Sayfa",icon:w.jsx(R.Home,{className:"size-5"})},{key:"messages",label:"Mesajlar",icon:w.jsx(R.MessageTyping,{className:"size-5"})},{key:"news",label:"Haberler",icon:w.jsx(R.Megaphone,{className:"size-5"})},{key:"help",label:"Yardım",icon:w.jsx(R.QuestionCircle,{className:"size-5"})}].filter(s=>!n||n.includes(s.key));return w.jsx("nav",{className:"mx-3 mb-3 mt-2 grid rounded-full border p-1 shadow-lg",style:{gridTemplateColumns:`repeat(${o.length}, minmax(0, 1fr))`,backgroundColor:r.getColor(v.FooterBackground),borderColor:r.getColor(v.FooterBorder),boxShadow:`0 14px 32px ${r.getColor(v.ShadowColor)}`},children:o.map(s=>{const l=e===s.key;return w.jsxs("button",{type:"button",onClick:()=>t(s.key),className:Ho("flex min-w-0 flex-col items-center gap-1 rounded-full px-1 py-2 text-[11px] font-semibold transition-colors",!l&&"hover:opacity-80"),style:{color:l?r.getColor(v.ButtonBackground):r.getColor(v.FooterText),backgroundColor:l?r.getColor(v.InputBackground):"transparent"},children:[w.jsx("span",{children:s.icon}),w.jsx("span",{className:"truncate",children:s.label})]},s.key)})})}function mx({onClick:e,loading:t}){const n=at(),[r,i]=L.useState(!1);return w.jsxs("button",{type:"button",onClick:e,disabled:t,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),className:"flex w-full items-center gap-3 rounded-xl border px-4 py-3 text-left shadow-sm transition-shadow focus-visible:outline-none disabled:opacity-60",style:{backgroundColor:n.getColor(v.GreeterBackground),borderColor:n.getColor(v.GreeterBorder),boxShadow:r?`0 12px 28px ${n.getColor(v.ShadowColor)}`:`0 8px 20px ${n.getColor(v.ShadowColor)}`},children:[w.jsx("span",{className:"flex size-10 shrink-0 items-center justify-center rounded-full",style:{backgroundColor:n.getColor(v.InputBackground),color:n.getColor(v.ButtonBackground)},children:w.jsx(R.PaperAirplane,{className:"size-5"})}),w.jsxs("span",{className:"min-w-0 flex-1",children:[w.jsx("span",{className:"block text-sm font-bold",style:{color:n.getColor(v.GreeterText)},children:"Bize bir mesaj gönderin"}),w.jsx("span",{className:"mt-1 block text-xs font-medium leading-5",style:{color:n.getColor(v.FooterText)},children:"Ekibimiz en kısa sürede dönecektir."})]}),w.jsx(R.ChevronRight,{className:"size-5 shrink-0",style:{color:n.getColor(v.IconColor)}})]})}function gx({title:e}){const t=at();return w.jsxs("header",{className:"flex shrink-0 items-start justify-between px-5 pb-4 pt-5",children:[w.jsx("div",{className:"flex min-w-0 flex-col gap-5",children:w.jsx("div",{children:w.jsx("h1",{className:"text-[1.4rem] font-black leading-tight",style:{color:t.getColor(v.HeaderText)},children:e})})}),w.jsx(tx,{})]})}function vx({value:e,onChange:t,onSubmit:n,loading:r}){const i=at();return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),n()},className:"flex h-11 items-center gap-2 rounded-full border px-5 shadow-sm",style:{backgroundColor:i.getColor(v.InputBackground),borderColor:i.getColor(v.InputBorder)},children:[w.jsx("input",{value:e,onChange:o=>t(o.target.value),placeholder:"Mesajınızı yazın...",className:"min-w-0 flex-1 bg-transparent text-base font-semibold outline-none placeholder:opacity-60",style:{color:i.getColor(v.InputText)}}),w.jsx("button",{type:"submit",disabled:!e.trim()||r,className:"flex size-7 shrink-0 items-center justify-center rounded-full transition-colors disabled:opacity-40",style:{backgroundColor:i.getColor(v.ButtonBackground),color:i.getColor(v.ButtonText)},children:r?w.jsx(R.Spin,{className:"size-4 animate-spin"}):w.jsx(R.ArrowDown,{className:"size-5 rotate-180"})})]})}function yx({article:e,onClick:t,compact:n}){const r=at(),[i,o]=L.useState(!1);return w.jsxs("button",{type:"button",onClick:t,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),className:"group overflow-hidden rounded-2xl border text-left shadow-sm transition-shadow focus-visible:outline-none",style:{backgroundColor:r.getColor(v.GreeterBackground),borderColor:r.getColor(v.GreeterBorder),boxShadow:i?`0 12px 28px ${r.getColor(v.ShadowColor)}`:void 0},children:[e.cover_image_url&&w.jsx("img",{src:e.cover_image_url,alt:"",className:Ho("w-full object-cover transition-[filter] duration-200 group-hover:brightness-95",n?"h-32":"h-40")}),w.jsxs("div",{className:"p-5",children:[w.jsx("div",{className:"mb-2 text-xs font-bold uppercase",style:{color:r.getColor(v.LinkColor)},children:nx(e.published_at||e.updated_at)}),w.jsx("h3",{className:"line-clamp-2 text-lg font-black leading-tight",style:{color:r.getColor(v.GreeterText)},children:e.title}),!n&&w.jsx("p",{className:"mt-3 line-clamp-2 text-sm leading-6",style:{color:r.getColor(v.FooterText)},children:e.content_text})]})]})}function wx({categories:e,query:t,onOpen:n,limit:r,path:i,onPathChange:o}){const s=at(),[l,a]=L.useState([]),u=i??l,c=o??a,f=(t==null?void 0:t.trim().toLocaleLowerCase("tr-TR"))??"",d=m=>f?`${m.title} ${m.content_text}`.toLocaleLowerCase("tr-TR").includes(f):!0,g=m=>m.flatMap(k=>[...k.articles??[],...g(k.children??[])]),y=g(e);if(r){const m=y.filter(d).slice(0,r);return m.length===0?w.jsx("div",{className:"rounded-2xl border p-5 text-center text-sm font-medium",style:{backgroundColor:s.getColor(v.GreeterBackground),borderColor:s.getColor(v.GreeterBorder),color:s.getColor(v.FooterText)},children:"Yardım içeriği bulunamadı."}):w.jsx("div",{className:"rounded-2xl border p-2",style:{backgroundColor:s.getColor(v.GreeterBackground),borderColor:s.getColor(v.GreeterBorder)},children:m.map(k=>w.jsx(Bs,{article:k,onOpen:n},k._id))})}const x=u[u.length-1]??null,C=x?x.children??[]:e,p=x?(x.articles??[]).filter(d):[],h=f?y.filter(d):[];return f?w.jsx("div",{className:"rounded-2xl border p-2",style:{backgroundColor:s.getColor(v.GreeterBackground),borderColor:s.getColor(v.GreeterBorder)},children:h.length===0?w.jsx("div",{className:"p-4 text-center text-sm font-medium",style:{color:s.getColor(v.FooterText)},children:"Yardım içeriği bulunamadı."}):h.map(m=>w.jsx(Bs,{article:m,onOpen:n},m._id))}):e.length===0?w.jsx("div",{className:"rounded-2xl border p-5 text-center text-sm font-medium",style:{backgroundColor:s.getColor(v.GreeterBackground),borderColor:s.getColor(v.GreeterBorder),color:s.getColor(v.FooterText)},children:"Henüz yardım kategorisi yok."}):w.jsxs("div",{className:"space-y-3",children:[x&&w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsxs("button",{type:"button",onClick:()=>c(u.slice(0,-1)),className:"flex items-center gap-1 rounded-lg px-2 py-1 text-xs font-bold transition-opacity hover:opacity-80",style:{color:s.getColor(v.LinkColor)},children:[w.jsx(R.ArrowLeft,{className:"size-4"}),"Geri"]}),w.jsx("span",{className:"min-w-0 truncate text-xs font-semibold",style:{color:s.getColor(v.FooterText)},children:u.map(m=>m.title).join(" / ")})]}),C.length>0?w.jsx("div",{className:"rounded-2xl border p-2",style:{backgroundColor:s.getColor(v.GreeterBackground),borderColor:s.getColor(v.GreeterBorder)},children:C.map(m=>w.jsxs("button",{type:"button",onClick:()=>c([...u,m]),className:"flex w-full items-center gap-3 rounded-lg px-2 py-2.5 text-left transition-opacity hover:opacity-80",children:[w.jsxs("span",{className:"min-w-0 flex-1",children:[w.jsx("span",{className:"block truncate text-sm font-bold",style:{color:s.getColor(v.GreeterText)},children:m.title}),w.jsx("span",{className:"mt-0.5 block truncate text-xs",style:{color:s.getColor(v.FooterText)},children:(m.children??[]).length>0?`${m.children.length} alt kategori`:`${(m.articles??[]).length} içerik`})]}),w.jsx(R.ChevronRight,{className:"size-4 shrink-0",style:{color:s.getColor(v.IconColor)}})]},m._id??m.title))}):x&&p.length===0&&w.jsx("div",{className:"rounded-2xl border p-4 text-center text-sm font-medium",style:{backgroundColor:s.getColor(v.GreeterBackground),borderColor:s.getColor(v.GreeterBorder),color:s.getColor(v.FooterText)},children:"Bu kategoride içerik yok."}),x&&p.length>0&&w.jsxs("section",{className:"rounded-2xl border p-2",style:{backgroundColor:s.getColor(v.GreeterBackground),borderColor:s.getColor(v.GreeterBorder)},children:[w.jsxs("h3",{className:"px-2 pb-1 text-xs font-black uppercase tracking-wider",style:{color:s.getColor(v.FooterText)},children:[x.title," içerikleri"]}),p.map(m=>w.jsx(Bs,{article:m,onOpen:n},m._id))]})]})}function Bs({article:e,onOpen:t}){const n=at();return w.jsxs("button",{type:"button",onClick:()=>t(e),className:"flex w-full items-center gap-3 rounded-lg px-2 py-2 text-left transition-colors hover:opacity-80",children:[w.jsx("span",{className:"line-clamp-1 flex-1 text-sm font-semibold",style:{color:n.getColor(v.GreeterText)},children:e.title}),w.jsx(R.ChevronRight,{className:"size-4 shrink-0",style:{color:n.getColor(v.IconColor)}})]})}const Zf=[["#6366f1","#8b5cf6"],["#3b82f6","#06b6d4"],["#10b981","#34d399"],["#f59e0b","#f97316"],["#ef4444","#f472b6"],["#8b5cf6","#ec4899"],["#14b8a6","#22d3ee"],["#f43f5e","#fb923c"]];function xx({name:e,avatar:t,className:n="text-neutral-500",textColor:r,subtitle:i}){const o=L.useMemo(()=>{const s=e.charCodeAt(0)||0,l=Zf[s%Zf.length];return`linear-gradient(135deg, ${l[0]}, ${l[1]})`},[e]);return w.jsxs(Jw.div,{initial:{opacity:.8},animate:{opacity:1},className:"flex gap-2 items-center",children:[w.jsx("div",{className:"min-w-max",children:w.jsxs("span",{children:[t&&w.jsx("img",{className:"size-10 rounded-full border border-white/20 shadow-sm",src:t,"aria-label":e}),!t&&w.jsx("div",{className:"size-10 rounded-full flex items-center justify-center font-semibold text-white shadow-sm",style:{background:o},children:e.charAt(0).toUpperCase()})]})}),w.jsxs("div",{className:"flex flex-col",children:[w.jsx("span",{className:Ho("line-clamp-1 font-medium",n),style:r?{color:r}:void 0,children:e}),i&&w.jsx("span",{className:"text-xs opacity-75 line-clamp-1",style:r?{color:r}:void 0,children:i})]})]})}function rx({className:e,sizePx:t=36,"aria-hidden":n=!0}){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1389 1350",width:t,height:t,className:Ho("shrink-0",e),"aria-hidden":n,focusable:"false",children:w.jsx("g",{transform:"translate(0,1350) scale(0.1,-0.1)",fill:"currentColor",stroke:"none",children:w.jsx("path",{d:"M6395 13484 c-630 -49 -1143 -142 -1678 -303 -589 -178 -1181 -458 -1687 -798 -786 -527 -1550 -1309 -2022 -2068 -697 -1122 -1053 -2468 -998 -3774 29 -689 123 -1222 336 -1905 204 -650 363 -1007 660 -1479 258 -410 531 -746 928 -1143 434 -433 838 -759 1271 -1025 906 -558 1911 -872 3100 -971 223 -18 798 -15 1030 6 1408 126 2688 653 3748 1541 440 368 859 810 1162 1223 33 45 63 81 68 82 4 0 296 -145 649 -321 354 -177 653 -322 666 -322 32 0 62 31 62 63 0 38 -1715 2749 -1750 2767 -33 17 -3703 19 -3747 2 -15 -5 -31 -16 -35 -22 -14 -22 -8 -74 10 -89 9 -9 329 -172 710 -362 380 -190 692 -350 692 -354 0 -18 -321 -322 -440 -417 -542 -433 -1157 -699 -1839 -795 -610 -87 -1281 -13 -1841 202 -58 22 -129 49 -159 59 -29 11 -99 43 -154 70 -87 44 -106 50 -140 45 -22 -4 -177 -65 -346 -137 -168 -72 -508 -216 -756 -319 -247 -104 -475 -200 -505 -214 -66 -31 -94 -32 -120 -6 -24 24 -26 67 -4 118 9 20 108 305 220 632 112 327 231 672 264 766 33 93 60 175 60 181 0 5 -22 39 -49 75 -28 36 -88 123 -134 194 -313 477 -507 1007 -584 1591 -26 198 -26 740 0 933 112 830 463 1561 1032 2148 613 633 1363 1009 2251 1129 189 25 735 25 924 0 812 -110 1495 -428 2097 -976 312 -284 621 -692 804 -1063 53 -107 67 -113 178 -73 185 67 2538 1039 2575 1063 39 26 41 31 40 75 0 39 -18 82 -98 245 -301 607 -678 1135 -1181 1650 -1165 1196 -2582 1886 -4225 2058 -147 15 -909 28 -1045 18z"})})})}function kx({color:e,borderColor:t,backgroundColor:n,sizePx:r=28}){return w.jsx("div",{className:"flex size-[46px] shrink-0 items-center justify-center overflow-hidden rounded-[14px] border border-solid",style:{borderColor:t,backgroundColor:n,color:e},"aria-hidden":!0,children:w.jsx(rx,{sizePx:r})})}export{kx as C,wx as H,R as I,mp as L,gp as M,yx as N,Ga as P,vx as Q,ox as R,tx as T,v as W,i0 as a,sx as b,Ho as c,P1 as d,M1 as e,E1 as f,Xl as g,hx as h,ix as i,w as j,px as k,gx as l,Jw as m,mx as n,Ue as o,cx as p,B as q,L as r,xx as s,rx as t,at as u,ux as v,ax as w,lx as x,m1 as y};
|