From 7fc570e281771bf07e92a4f46bb434464ba71fab Mon Sep 17 00:00:00 2001 From: p32929 Date: Sun, 20 Oct 2024 21:15:10 +0400 Subject: [PATCH] Updates --- .../{index-DixhykW3.js => index-CI4KQ-5-.js} | 58 +++++++++---------- index.html | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) rename assets/{index-DixhykW3.js => index-CI4KQ-5-.js} (82%) diff --git a/assets/index-DixhykW3.js b/assets/index-CI4KQ-5-.js similarity index 82% rename from assets/index-DixhykW3.js rename to assets/index-CI4KQ-5-.js index 625ebc7..2459f98 100644 --- a/assets/index-DixhykW3.js +++ b/assets/index-CI4KQ-5-.js @@ -6,7 +6,7 @@ var fT=Object.defineProperty;var dT=(e,t,n)=>t in e?fT(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ns=Symbol.for("react.element"),hT=Symbol.for("react.portal"),mT=Symbol.for("react.fragment"),vT=Symbol.for("react.strict_mode"),gT=Symbol.for("react.profiler"),yT=Symbol.for("react.provider"),wT=Symbol.for("react.context"),bT=Symbol.for("react.forward_ref"),xT=Symbol.for("react.suspense"),ST=Symbol.for("react.memo"),ET=Symbol.for("react.lazy"),Yh=Symbol.iterator;function TT(e){return e===null||typeof e!="object"?null:(e=Yh&&e[Yh]||e["@@iterator"],typeof e=="function"?e:null)}var Iy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oy=Object.assign,My={};function pi(e,t,n){this.props=e,this.context=t,this.refs=My,this.updater=n||Iy}pi.prototype.isReactComponent={};pi.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")};pi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ny(){}Ny.prototype=pi.prototype;function Vd(e,t,n){this.props=e,this.context=t,this.refs=My,this.updater=n||Iy}var Ud=Vd.prototype=new Ny;Ud.constructor=Vd;Oy(Ud,pi.prototype);Ud.isPureReactComponent=!0;var Xh=Array.isArray,Dy=Object.prototype.hasOwnProperty,zd={current:null},Ly={key:!0,ref:!0,__self:!0,__source:!0};function jy(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Dy.call(t,r)&&!Ly.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1t in e?fT(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(M,R){var N=M.length;M.push(R);e:for(;0>>1,Y=M[G];if(0>>1;Go(ce,N))veo(Se,ce)?(M[G]=Se,M[ve]=N,G=ve):(M[G]=ce,M[J]=N,G=J);else if(veo(Se,N))M[G]=Se,M[ve]=N,G=ve;else break e}}return R}function o(M,R){var N=M.sortIndex-R.sortIndex;return N!==0?N:M.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],l=[],c=1,f=null,d=3,m=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(M){for(var R=n(l);R!==null;){if(R.callback===null)r(l);else if(R.startTime<=M)r(l),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(l)}}function b(M){if(y=!1,v(M),!g)if(n(u)!==null)g=!0,$(E);else{var R=n(l);R!==null&&W(b,R.startTime-M)}}function E(M,R){g=!1,y&&(y=!1,h(T),T=-1),m=!0;var N=d;try{for(v(R),f=n(u);f!==null&&(!(f.expirationTime>R)||M&&!z());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var Y=G(f.expirationTime<=R);R=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(u)&&r(u),v(R)}else r(u);f=n(u)}if(f!==null)var te=!0;else{var J=n(l);J!==null&&W(b,J.startTime-R),te=!1}return te}finally{f=null,d=N,m=!1}}var C=!1,k=null,T=-1,O=5,D=-1;function z(){return!(e.unstable_now()-DM||125G?(M.sortIndex=N,t(l,M),n(u)===null&&M===n(l)&&(y?(h(T),T=-1):y=!0,W(b,N-G))):(M.sortIndex=Y,t(u,M),g||m||(g=!0,$(E))),M},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(M){var R=d;return function(){var N=d;d=R;try{return M.apply(this,arguments)}finally{d=N}}}})(By);zy.exports=By;var LT=zy.exports;/** + */(function(e){function t(M,R){var N=M.length;M.push(R);e:for(;0>>1,Y=M[G];if(0>>1;Go(ce,N))veo(Se,ce)?(M[G]=Se,M[ve]=N,G=ve):(M[G]=ce,M[J]=N,G=J);else if(veo(Se,N))M[G]=Se,M[ve]=N,G=ve;else break e}}return R}function o(M,R){var N=M.sortIndex-R.sortIndex;return N!==0?N:M.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],l=[],c=1,f=null,d=3,m=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(M){for(var R=n(l);R!==null;){if(R.callback===null)r(l);else if(R.startTime<=M)r(l),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(l)}}function b(M){if(y=!1,v(M),!g)if(n(u)!==null)g=!0,$(E);else{var R=n(l);R!==null&&W(b,R.startTime-M)}}function E(M,R){g=!1,y&&(y=!1,h(T),T=-1),m=!0;var N=d;try{for(v(R),f=n(u);f!==null&&(!(f.expirationTime>R)||M&&!z());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var Y=G(f.expirationTime<=R);R=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(u)&&r(u),v(R)}else r(u);f=n(u)}if(f!==null)var te=!0;else{var J=n(l);J!==null&&W(b,J.startTime-R),te=!1}return te}finally{f=null,d=N,m=!1}}var P=!1,k=null,T=-1,O=5,D=-1;function z(){return!(e.unstable_now()-DM||125G?(M.sortIndex=N,t(l,M),n(u)===null&&M===n(l)&&(y?(h(T),T=-1):y=!0,W(b,N-G))):(M.sortIndex=Y,t(u,M),g||m||(g=!0,$(E))),M},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(M){var R=d;return function(){var N=d;d=R;try{return M.apply(this,arguments)}finally{d=N}}}})(By);zy.exports=By;var LT=zy.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var fT=Object.defineProperty;var dT=(e,t,n)=>t in e?fT(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jT=w,Mt=LT;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sf=Object.prototype.hasOwnProperty,FT=/^[: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]*$/,Zh={},Jh={};function VT(e){return sf.call(Jh,e)?!0:sf.call(Zh,e)?!1:FT.test(e)?Jh[e]=!0:(Zh[e]=!0,!1)}function UT(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 zT(e,t,n,r){if(t===null||typeof t>"u"||UT(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 vt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new vt(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){ot[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $d=/[\-:]([a-z])/g;function Wd(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($d,Wd);ot[t]=new vt(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($d,Wd);ot[t]=new vt(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($d,Wd);ot[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gd(e,t,n,r){var o=ot.hasOwnProperty(t)?ot[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sf=Object.prototype.hasOwnProperty,FT=/^[: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]*$/,Zh={},Jh={};function VT(e){return sf.call(Jh,e)?!0:sf.call(Zh,e)?!1:FT.test(e)?Jh[e]=!0:(Zh[e]=!0,!1)}function UT(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 zT(e,t,n,r){if(t===null||typeof t>"u"||UT(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 mt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new mt(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){ot[e]=new mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $d=/[\-:]([a-z])/g;function Wd(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($d,Wd);ot[t]=new mt(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($d,Wd);ot[t]=new mt(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($d,Wd);ot[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new mt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gd(e,t,n,r){var o=ot.hasOwnProperty(t)?ot[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var u=` -`+o[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{Qu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function BT(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=Zu(e.type,!1),e;case 11:return e=Zu(e.type.render,!1),e;case 1:return e=Zu(e.type,!0),e;default:return""}}function cf(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 So:return"Fragment";case xo:return"Portal";case af:return"Profiler";case Hd:return"StrictMode";case lf:return"Suspense";case uf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gy:return(e.displayName||"Context")+".Consumer";case Wy:return(e._context.displayName||"Context")+".Provider";case Kd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qd:return t=e.displayName||null,t!==null?t:cf(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return cf(e(t))}catch{}}return null}function $T(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 cf(t);case 8:return t===Hd?"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 xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ky(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function WT(e){var t=Ky(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 ra(e){e._valueTracker||(e._valueTracker=WT(e))}function qy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ky(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function al(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 ff(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(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 Yy(e,t){t=t.checked,t!=null&&Gd(e,"checked",t,!1)}function df(e,t){Yy(e,t);var n=xr(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")?pf(e,t.type,n):t.hasOwnProperty("defaultValue")&&pf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nm(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 pf(e,t,n){(t!=="number"||al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ji=Array.isArray;function Vo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=oa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function as(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},GT=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){GT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function Jy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function e0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var HT=_e({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 vf(e,t){if(t){if(HT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function gf(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 yf=null;function Yd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wf=null,Uo=null,zo=null;function im(e){if(e=js(e)){if(typeof wf!="function")throw Error(U(280));var t=e.stateNode;t&&(t=tu(t),wf(e.stateNode,e.type,t))}}function t0(e){Uo?zo?zo.push(e):zo=[e]:Uo=e}function n0(){if(Uo){var e=Uo,t=zo;if(zo=Uo=null,im(e),t)for(e=0;e>>=0,e===0?32:31-(rC(e)/oC|0)|0}var ia=64,sa=4194304;function Fi(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 fl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Fi(a):(i&=s,i!==0&&(r=Fi(i)))}else s=n&~o,s!==0?r=Fi(s):i!==0&&(r=Fi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rn(t),e[t]=n}function lC(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=Gi),hm=" ",mm=!1;function S0(e,t){switch(e){case"keyup":return LC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function FC(e,t){switch(e){case"compositionend":return E0(t);case"keypress":return t.which!==32?null:(mm=!0,hm);case"textInput":return e=t.data,e===hm&&mm?null:e;default:return null}}function VC(e,t){if(Eo)return e==="compositionend"||!rp&&S0(e,t)?(e=b0(),Ua=ep=ur=null,Eo=!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)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=wm(n)}}function k0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?k0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _0(){for(var e=window,t=al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=al(e.document)}return t}function op(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 qC(e){var t=_0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&k0(n.ownerDocument.documentElement,n)){if(r!==null&&op(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=bm(n,i);var s=bm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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=document.documentMode,To=null,Cf=null,Ki=null,Pf=!1;function xm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pf||To==null||To!==al(r)||(r=To,"selectionStart"in r&&op(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}),Ki&&ps(Ki,r)||(Ki=r,r=hl(Cf,"onSelect"),0ko||(e.current=Of[ko],Of[ko]=null,ko--)}function he(e,t){ko++,Of[ko]=e.current,e.current=t}var Sr={},ct=Ir(Sr),Tt=Ir(!1),Yr=Sr;function Zo(e,t){var n=e.type.contextTypes;if(!n)return Sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ct(e){return e=e.childContextTypes,e!=null}function vl(){we(Tt),we(ct)}function _m(e,t,n){if(ct.current!==Sr)throw Error(U(168));he(ct,t),he(Tt,n)}function j0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,$T(e)||"Unknown",o));return _e({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,Yr=ct.current,he(ct,e),he(Tt,Tt.current),!0}function Am(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=j0(e,t,Yr),r.__reactInternalMemoizedMergedChildContext=e,we(Tt),we(ct),he(ct,e)):we(Tt),he(Tt,n)}var In=null,nu=!1,dc=!1;function F0(e){In===null?In=[e]:In.push(e)}function sP(e){nu=!0,F0(e)}function Or(){if(!dc&&In!==null){dc=!0;var e=0,t=ae;try{var n=In;for(ae=1;e>=s,o-=s,On=1<<32-rn(t)+o|n<T?(O=k,k=null):O=k.sibling;var D=d(h,k,v[T],b);if(D===null){k===null&&(k=O);break}e&&k&&D.alternate===null&&t(h,k),p=i(D,p,T),C===null?E=D:C.sibling=D,C=D,k=O}if(T===v.length)return n(h,k),xe&&Lr(h,T),E;if(k===null){for(;TT?(O=k,k=null):O=k.sibling;var z=d(h,k,D.value,b);if(z===null){k===null&&(k=O);break}e&&k&&z.alternate===null&&t(h,k),p=i(z,p,T),C===null?E=z:C.sibling=z,C=z,k=O}if(D.done)return n(h,k),xe&&Lr(h,T),E;if(k===null){for(;!D.done;T++,D=v.next())D=f(h,D.value,b),D!==null&&(p=i(D,p,T),C===null?E=D:C.sibling=D,C=D);return xe&&Lr(h,T),E}for(k=r(h,k);!D.done;T++,D=v.next())D=m(k,h,T,D.value,b),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?T:D.key),p=i(D,p,T),C===null?E=D:C.sibling=D,C=D);return e&&k.forEach(function(F){return t(h,F)}),xe&&Lr(h,T),E}function x(h,p,v,b){if(typeof v=="object"&&v!==null&&v.type===So&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case na:e:{for(var E=v.key,C=p;C!==null;){if(C.key===E){if(E=v.type,E===So){if(C.tag===7){n(h,C.sibling),p=o(C,v.props.children),p.return=h,h=p;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rr&&Om(E)===C.type){n(h,C.sibling),p=o(C,v.props),p.ref=Ai(h,C,v),p.return=h,h=p;break e}n(h,C);break}else t(h,C);C=C.sibling}v.type===So?(p=Kr(v.props.children,h.mode,b,v.key),p.return=h,h=p):(b=qa(v.type,v.key,v.props,null,h.mode,b),b.ref=Ai(h,p,v),b.return=h,h=b)}return s(h);case xo:e:{for(C=v.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=o(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=bc(v,h.mode,b),p.return=h,h=p}return s(h);case rr:return C=v._init,x(h,p,C(v._payload),b)}if(ji(v))return g(h,p,v,b);if(Ti(v))return y(h,p,v,b);pa(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,v),p.return=h,h=p):(n(h,p),p=wc(v,h.mode,b),p.return=h,h=p),s(h)):n(h,p)}return x}var ei=B0(!0),$0=B0(!1),bl=Ir(null),xl=null,Ro=null,lp=null;function up(){lp=Ro=xl=null}function cp(e){var t=bl.current;we(bl),e._currentValue=t}function Df(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 $o(e,t){xl=e,lp=Ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Et=!0),e.firstContext=null)}function Xt(e){var t=e._currentValue;if(lp!==e)if(e={context:e,memoizedValue:t,next:null},Ro===null){if(xl===null)throw Error(U(308));Ro=e,xl.dependencies={lanes:0,firstContext:e}}else Ro=Ro.next=e;return t}var Br=null;function fp(e){Br===null?Br=[e]:Br.push(e)}function W0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,fp(t)):(n.next=o.next,o.next=n),t.interleaved=n,$n(e,r)}function $n(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 or=!1;function dp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function G0(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 Dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,$n(e,n)}return o=r.interleaved,o===null?(t.next=t,fp(r)):(t.next=o.next,o.next=t),r.interleaved=t,$n(e,n)}function Ba(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,Qd(e,n)}}function Mm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Sl(e,t,n,r){var o=e.updateQueue;or=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,l=u.next;u.next=null,s===null?i=l:s.next=l,s=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=l:a.next=l,c.lastBaseUpdate=u))}if(i!==null){var f=o.baseState;s=0,c=l=u=null,a=i;do{var d=a.lane,m=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(d=t,m=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(m,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(m,f,d):g,d==null)break e;f=_e({},f,d);break e;case 2:or=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else m={eventTime:m,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(l=c=m,u=f):c=c.next=m,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(c===null&&(u=f),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Zr|=s,e.lanes=s,e.memoizedState=f}}function Nm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=hc.transition;hc.transition={};try{e(!1),t()}finally{ae=n,hc.transition=r}}function lw(){return Qt().memoizedState}function cP(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uw(e))cw(t,n);else if(n=W0(e,t,n,r),n!==null){var o=pt();on(n,e,r,o),fw(n,t,r)}}function fP(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uw(e))cw(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ln(a,s)){var u=t.interleaved;u===null?(o.next=o,fp(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=W0(e,t,o,r),n!==null&&(o=pt(),on(n,e,r,o),fw(n,t,r))}}function uw(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function cw(e,t){qi=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qd(e,n)}}var Cl={readContext:Xt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},dP={readContext:Xt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Xt,useEffect:Lm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wa(4194308,4,rw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wa(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vn();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=cP.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Dm,useDebugValue:bp,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Dm(!1),t=e[0];return e=uP.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=vn();if(xe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Xe===null)throw Error(U(349));Qr&30||Y0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lm(Q0.bind(null,r,i,e),[e]),r.flags|=2048,xs(9,X0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vn(),t=Xe.identifierPrefix;if(xe){var n=Mn,r=On;n=(r&~(1<<32-rn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ws++,0")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{Qu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function BT(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=Zu(e.type,!1),e;case 11:return e=Zu(e.type.render,!1),e;case 1:return e=Zu(e.type,!0),e;default:return""}}function cf(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 So:return"Fragment";case xo:return"Portal";case af:return"Profiler";case Hd:return"StrictMode";case lf:return"Suspense";case uf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gy:return(e.displayName||"Context")+".Consumer";case Wy:return(e._context.displayName||"Context")+".Provider";case Kd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qd:return t=e.displayName||null,t!==null?t:cf(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return cf(e(t))}catch{}}return null}function $T(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 cf(t);case 8:return t===Hd?"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 xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ky(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function WT(e){var t=Ky(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 ra(e){e._valueTracker||(e._valueTracker=WT(e))}function qy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ky(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function al(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 ff(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(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 Yy(e,t){t=t.checked,t!=null&&Gd(e,"checked",t,!1)}function df(e,t){Yy(e,t);var n=xr(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")?pf(e,t.type,n):t.hasOwnProperty("defaultValue")&&pf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nm(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 pf(e,t,n){(t!=="number"||al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ji=Array.isArray;function Vo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=oa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function as(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},GT=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){GT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function Jy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function e0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var HT=_e({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 vf(e,t){if(t){if(HT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function gf(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 yf=null;function Yd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wf=null,Uo=null,zo=null;function im(e){if(e=js(e)){if(typeof wf!="function")throw Error(U(280));var t=e.stateNode;t&&(t=tu(t),wf(e.stateNode,e.type,t))}}function t0(e){Uo?zo?zo.push(e):zo=[e]:Uo=e}function n0(){if(Uo){var e=Uo,t=zo;if(zo=Uo=null,im(e),t)for(e=0;e>>=0,e===0?32:31-(rP(e)/oP|0)|0}var ia=64,sa=4194304;function Fi(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 fl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Fi(a):(i&=s,i!==0&&(r=Fi(i)))}else s=n&~o,s!==0?r=Fi(s):i!==0&&(r=Fi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rn(t),e[t]=n}function lP(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=Gi),hm=" ",mm=!1;function S0(e,t){switch(e){case"keyup":return LP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function FP(e,t){switch(e){case"compositionend":return E0(t);case"keypress":return t.which!==32?null:(mm=!0,hm);case"textInput":return e=t.data,e===hm&&mm?null:e;default:return null}}function VP(e,t){if(Eo)return e==="compositionend"||!rp&&S0(e,t)?(e=b0(),Ua=ep=ur=null,Eo=!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)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=wm(n)}}function k0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?k0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _0(){for(var e=window,t=al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=al(e.document)}return t}function op(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 qP(e){var t=_0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&k0(n.ownerDocument.documentElement,n)){if(r!==null&&op(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=bm(n,i);var s=bm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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=document.documentMode,To=null,Pf=null,Ki=null,Cf=!1;function xm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cf||To==null||To!==al(r)||(r=To,"selectionStart"in r&&op(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}),Ki&&ps(Ki,r)||(Ki=r,r=hl(Pf,"onSelect"),0ko||(e.current=Of[ko],Of[ko]=null,ko--)}function he(e,t){ko++,Of[ko]=e.current,e.current=t}var Sr={},ct=Ir(Sr),Et=Ir(!1),Yr=Sr;function Zo(e,t){var n=e.type.contextTypes;if(!n)return Sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Tt(e){return e=e.childContextTypes,e!=null}function vl(){we(Et),we(ct)}function _m(e,t,n){if(ct.current!==Sr)throw Error(U(168));he(ct,t),he(Et,n)}function j0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,$T(e)||"Unknown",o));return _e({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,Yr=ct.current,he(ct,e),he(Et,Et.current),!0}function Am(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=j0(e,t,Yr),r.__reactInternalMemoizedMergedChildContext=e,we(Et),we(ct),he(ct,e)):we(Et),he(Et,n)}var In=null,nu=!1,dc=!1;function F0(e){In===null?In=[e]:In.push(e)}function sC(e){nu=!0,F0(e)}function Or(){if(!dc&&In!==null){dc=!0;var e=0,t=ae;try{var n=In;for(ae=1;e>=s,o-=s,On=1<<32-rn(t)+o|n<T?(O=k,k=null):O=k.sibling;var D=d(h,k,v[T],b);if(D===null){k===null&&(k=O);break}e&&k&&D.alternate===null&&t(h,k),p=i(D,p,T),P===null?E=D:P.sibling=D,P=D,k=O}if(T===v.length)return n(h,k),xe&&Lr(h,T),E;if(k===null){for(;TT?(O=k,k=null):O=k.sibling;var z=d(h,k,D.value,b);if(z===null){k===null&&(k=O);break}e&&k&&z.alternate===null&&t(h,k),p=i(z,p,T),P===null?E=z:P.sibling=z,P=z,k=O}if(D.done)return n(h,k),xe&&Lr(h,T),E;if(k===null){for(;!D.done;T++,D=v.next())D=f(h,D.value,b),D!==null&&(p=i(D,p,T),P===null?E=D:P.sibling=D,P=D);return xe&&Lr(h,T),E}for(k=r(h,k);!D.done;T++,D=v.next())D=m(k,h,T,D.value,b),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?T:D.key),p=i(D,p,T),P===null?E=D:P.sibling=D,P=D);return e&&k.forEach(function(F){return t(h,F)}),xe&&Lr(h,T),E}function x(h,p,v,b){if(typeof v=="object"&&v!==null&&v.type===So&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case na:e:{for(var E=v.key,P=p;P!==null;){if(P.key===E){if(E=v.type,E===So){if(P.tag===7){n(h,P.sibling),p=o(P,v.props.children),p.return=h,h=p;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rr&&Om(E)===P.type){n(h,P.sibling),p=o(P,v.props),p.ref=Ai(h,P,v),p.return=h,h=p;break e}n(h,P);break}else t(h,P);P=P.sibling}v.type===So?(p=Kr(v.props.children,h.mode,b,v.key),p.return=h,h=p):(b=qa(v.type,v.key,v.props,null,h.mode,b),b.ref=Ai(h,p,v),b.return=h,h=b)}return s(h);case xo:e:{for(P=v.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=o(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=bc(v,h.mode,b),p.return=h,h=p}return s(h);case rr:return P=v._init,x(h,p,P(v._payload),b)}if(ji(v))return g(h,p,v,b);if(Ti(v))return y(h,p,v,b);pa(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,v),p.return=h,h=p):(n(h,p),p=wc(v,h.mode,b),p.return=h,h=p),s(h)):n(h,p)}return x}var ei=B0(!0),$0=B0(!1),bl=Ir(null),xl=null,Ro=null,lp=null;function up(){lp=Ro=xl=null}function cp(e){var t=bl.current;we(bl),e._currentValue=t}function Df(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 $o(e,t){xl=e,lp=Ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(St=!0),e.firstContext=null)}function Xt(e){var t=e._currentValue;if(lp!==e)if(e={context:e,memoizedValue:t,next:null},Ro===null){if(xl===null)throw Error(U(308));Ro=e,xl.dependencies={lanes:0,firstContext:e}}else Ro=Ro.next=e;return t}var Br=null;function fp(e){Br===null?Br=[e]:Br.push(e)}function W0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,fp(t)):(n.next=o.next,o.next=n),t.interleaved=n,$n(e,r)}function $n(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 or=!1;function dp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function G0(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 Dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,$n(e,n)}return o=r.interleaved,o===null?(t.next=t,fp(r)):(t.next=o.next,o.next=t),r.interleaved=t,$n(e,n)}function Ba(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,Qd(e,n)}}function Mm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Sl(e,t,n,r){var o=e.updateQueue;or=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,l=u.next;u.next=null,s===null?i=l:s.next=l,s=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=l:a.next=l,c.lastBaseUpdate=u))}if(i!==null){var f=o.baseState;s=0,c=l=u=null,a=i;do{var d=a.lane,m=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(d=t,m=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(m,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(m,f,d):g,d==null)break e;f=_e({},f,d);break e;case 2:or=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else m={eventTime:m,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(l=c=m,u=f):c=c.next=m,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(c===null&&(u=f),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Zr|=s,e.lanes=s,e.memoizedState=f}}function Nm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=hc.transition;hc.transition={};try{e(!1),t()}finally{ae=n,hc.transition=r}}function lw(){return Qt().memoizedState}function cC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uw(e))cw(t,n);else if(n=W0(e,t,n,r),n!==null){var o=dt();on(n,e,r,o),fw(n,t,r)}}function fC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uw(e))cw(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ln(a,s)){var u=t.interleaved;u===null?(o.next=o,fp(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=W0(e,t,o,r),n!==null&&(o=dt(),on(n,e,r,o),fw(n,t,r))}}function uw(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function cw(e,t){qi=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qd(e,n)}}var Pl={readContext:Xt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},dC={readContext:Xt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Xt,useEffect:Lm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wa(4194308,4,rw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wa(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vn();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=cC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Dm,useDebugValue:bp,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Dm(!1),t=e[0];return e=uC.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=vn();if(xe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Xe===null)throw Error(U(349));Qr&30||Y0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lm(Q0.bind(null,r,i,e),[e]),r.flags|=2048,xs(9,X0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vn(),t=Xe.identifierPrefix;if(xe){var n=Mn,r=On;n=(r&~(1<<32-rn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ws++,0<\/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[gn]=t,e[vs]=r,xw(e,t,!1,!1),t.stateNode=e;e:{switch(s=gf(n,r),n){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;ori&&(t.flags|=128,r=!0,Ri(i,!1),t.lanes=4194304)}else{if(!r)if(e=El(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return st(t),null}else 2*Me()-i.renderingStartTime>ri&&n!==1073741824&&(t.flags|=128,r=!0,Ri(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=Ce.current,he(Ce,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Pp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function bP(e,t){switch(sp(t),t.tag){case 1:return Ct(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ti(),we(Tt),we(ct),mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hp(t),null;case 13:if(we(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Ce),null;case 4:return ti(),null;case 10:return cp(t.type._context),null;case 22:case 23:return Pp(),null;case 24:return null;default:return null}}var ma=!1,lt=!1,xP=typeof WeakSet=="function"?WeakSet:Set,H=null;function Io(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Wf(e,t,n){try{n()}catch(r){Re(e,t,r)}}var Km=!1;function SP(e,t){if(kf=dl,e=_0(),op(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++l===o&&(a=s),d===i&&++c===r&&(u=s),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:e,selectionRange:n},dl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Jt(t.type,y),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(b){Re(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return g=Km,Km=!1,g}function Yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wf(t,n,i)}o=o.next}while(o!==r)}}function iu(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 Gf(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 Tw(e){var t=e.alternate;t!==null&&(e.alternate=null,Tw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gn],delete t[vs],delete t[If],delete t[oP],delete t[iP])),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 Cw(e){return e.tag===5||e.tag===3||e.tag===4}function qm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cw(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 Hf(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=ml));else if(r!==4&&(e=e.child,e!==null))for(Hf(e,t,n),e=e.sibling;e!==null;)Hf(e,t,n),e=e.sibling}function Kf(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(Kf(e,t,n),e=e.sibling;e!==null;)Kf(e,t,n),e=e.sibling}var et=null,en=!1;function Zn(e,t,n){for(n=n.child;n!==null;)Pw(e,t,n),n=n.sibling}function Pw(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Ql,n)}catch{}switch(n.tag){case 5:lt||Io(n,t);case 6:var r=et,o=en;et=null,Zn(e,t,n),et=r,en=o,et!==null&&(en?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(en?(e=et,n=n.stateNode,e.nodeType===8?fc(e.parentNode,n):e.nodeType===1&&fc(e,n),fs(e)):fc(et,n.stateNode));break;case 4:r=et,o=en,et=n.stateNode.containerInfo,en=!0,Zn(e,t,n),et=r,en=o;break;case 0:case 11:case 14:case 15:if(!lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Wf(n,t,s),o=o.next}while(o!==r)}Zn(e,t,n);break;case 1:if(!lt&&(Io(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Re(n,t,a)}Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:n.mode&1?(lt=(r=lt)||n.memoizedState!==null,Zn(e,t,n),lt=r):Zn(e,t,n);break;default:Zn(e,t,n)}}function Ym(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xP),t.forEach(function(r){var o=IP.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*TP(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,_l=0,oe&6)throw Error(U(331));var o=oe;for(oe|=4,H=e.current;H!==null;){var i=H,s=i.child;if(H.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uMe()-Tp?Hr(e,0):Ep|=n),Pt(e,t)}function Nw(e,t){t===0&&(e.mode&1?(t=sa,sa<<=1,!(sa&130023424)&&(sa=4194304)):t=1);var n=pt();e=$n(e,t),e!==null&&(Ds(e,t,n),Pt(e,n))}function RP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nw(e,n)}function IP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Nw(e,n)}var Dw;Dw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)Et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Et=!1,yP(e,t,n);Et=!!(e.flags&131072)}else Et=!1,xe&&t.flags&1048576&&V0(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ga(e,t),e=t.pendingProps;var o=Zo(t,ct.current);$o(t,n),o=gp(null,t,r,e,o,n);var i=yp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(r)?(i=!0,gl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dp(t),o.updater=ou,t.stateNode=o,o._reactInternals=t,jf(t,r,e,n),t=Uf(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&ip(t),ft(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ga(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=MP(r),e=Jt(r,e),o){case 0:t=Vf(null,t,r,e,n);break e;case 1:t=Wm(null,t,r,e,n);break e;case 11:t=Bm(null,t,r,e,n);break e;case 14:t=$m(null,t,r,Jt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Vf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Wm(e,t,r,o,n);case 3:e:{if(yw(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,G0(e,t),Sl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ni(Error(U(423)),t),t=Gm(e,t,r,n,o);break e}else if(r!==o){o=ni(Error(U(424)),t),t=Gm(e,t,r,n,o);break e}else for(Rt=hr(t.stateNode.containerInfo.firstChild),It=t,xe=!0,tn=null,n=$0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jo(),r===o){t=Wn(e,t,n);break e}ft(e,t,r,n)}t=t.child}return t;case 5:return H0(t),e===null&&Nf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Af(r,o)?s=null:i!==null&&Af(r,i)&&(t.flags|=32),gw(e,t),ft(e,t,s,n),t.child;case 6:return e===null&&Nf(t),null;case 13:return ww(e,t,n);case 4:return pp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ei(t,null,r,n):ft(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Bm(e,t,r,o,n);case 7:return ft(e,t,t.pendingProps,n),t.child;case 8:return ft(e,t,t.pendingProps.children,n),t.child;case 12:return ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(ln(i.value,s)){if(i.children===o.children&&!Tt.current){t=Wn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Dn(-1,n&-n),u.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Df(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Df(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ft(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$o(t,n),o=Xt(o),r=r(o),t.flags|=1,ft(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),$m(e,t,r,o,n);case 15:return mw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Ga(e,t),t.tag=1,Ct(r)?(e=!0,gl(t)):e=!1,$o(t,n),dw(t,r,o),jf(t,r,o,n),Uf(null,t,r,!0,e,n);case 19:return bw(e,t,n);case 22:return vw(e,t,n)}throw Error(U(156,t.tag))};function Lw(e,t){return u0(e,t)}function OP(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 Ht(e,t,n,r){return new OP(e,t,n,r)}function _p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MP(e){if(typeof e=="function")return _p(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kd)return 11;if(e===qd)return 14}return 2}function yr(e,t){var n=e.alternate;return n===null?(n=Ht(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 qa(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")_p(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case So:return Kr(n.children,o,i,t);case Hd:s=8,o|=8;break;case af:return e=Ht(12,n,t,o|2),e.elementType=af,e.lanes=i,e;case lf:return e=Ht(13,n,t,o),e.elementType=lf,e.lanes=i,e;case uf:return e=Ht(19,n,t,o),e.elementType=uf,e.lanes=i,e;case Hy:return au(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wy:s=10;break e;case Gy:s=9;break e;case Kd:s=11;break e;case qd:s=14;break e;case rr:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Ht(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kr(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function au(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=Hy,e.lanes=n,e.stateNode={isHidden:!1},e}function wc(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function bc(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NP(e,t,n,r,o){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=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ap(e,t,n,r,o,i,s,a,u){return e=new NP(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dp(i),e}function DP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uw)}catch(e){console.error(e)}}Uw(),Uy.exports=Lt;var vi=Uy.exports;const UP=_y(vi);var rv=vi;of.createRoot=rv.createRoot,of.hydrateRoot=rv.hydrateRoot;const zP={theme:"system",setTheme:()=>null},BP=w.createContext(zP);function $P({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,i]=w.useState(()=>localStorage.getItem(n)||t);w.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(u);return}a.classList.add(o)},[o]);const s={theme:o,setTheme:a=>{localStorage.setItem(n,a),i(a)}};return S.jsx(BP.Provider,{...r,value:s,children:e})}class $t{}Qn($t,"initialInformation",{name:"Fayaz Bin Salam",occupation:"Software Engineer"}),Qn($t,"directMessageItems",[{name:"WhatsApp",link:"https://api.whatsapp.com/send?phone=8801796306262"},{name:"Messenger",link:"https://m.me/p32929"},{name:"Telegram",link:"https://t.me/p32929"}]),Qn($t,"about",[{text:"Information",shouldNotSort:!0,arr:[{title:"Name",desc:"Fayaz Bin Salam",logo:"https://cdn-icons-png.flaticon.com/128/1077/1077012.png"},{title:"Work Experience",desc:"7+ years",logo:"https://cdn-icons-png.flaticon.com/128/3281/3281289.png"},{title:"Languages",desc:"Bengali, English, Hindi, Urdu, Chittagonian etc",logo:"https://cdn-icons-png.flaticon.com/128/3898/3898150.png"},{title:"Nationality",desc:"Bangladeshi",logo:"https://cdn-icons-png.flaticon.com/128/11701/11701027.png"},{title:"Resume",desc:"Click the link icon to view/download",link:"https://docs.google.com/document/d/1vRgTCQ-UvzjGXK7s-TR5VpmjHZ7OmSmOs5G69znPhqA/edit?usp=sharing",logo:"https://cdn-icons-png.flaticon.com/128/909/909212.png"}]},{text:"Experiences",arr:[{title:"Aqary International Group",desc:"Golang Developer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/92b039b2-9f42-4248-9803-b27e435d2d03"},{title:"Horizon Group of Companies",desc:"Front End Developer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/b385229a-3084-4952-84f3-134e627cc3e7"},{title:"6sense Bangladesh",desc:"Full Stack Developer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/80aebbb6-456a-4bba-8f32-eb48373cf76d"},{title:"Rich Information Technology",desc:"Lead Software Engineer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/6b35eee6-669c-42ee-934b-d9555176490b"},{title:"Fiverr",desc:"Freelance Software Engineer",logo:"https://cdn.worldvectorlogo.com/logos/fiverr-1.svg"},{title:"Upwork",desc:"Freelance Software Engineer",logo:"https://cdn.worldvectorlogo.com/logos/upwork-roundedsquare-1.svg"}]}]),Qn($t,"skills",[{text:"Programming / Markup Languages",arr:[{title:"C",logo:"https://seeklogo.com/images/C/c-logo-672525892C-seeklogo.com.png"},{title:"C++",logo:"https://seeklogo.com/images/C/c-logo-1B1817C041-seeklogo.com.png"},{title:"Java",logo:"https://www.vectorlogo.zone/logos/java/java-icon.svg"},{title:"Python",logo:"https://www.vectorlogo.zone/logos/python/python-icon.svg"},{title:"JavaScript",logo:"https://www.vectorlogo.zone/logos/javascript/javascript-icon.svg"},{title:"Rust",logo:"https://www.rustacean.net/assets/rustacean-flat-gesture.svg"},{title:"HTML",logo:"https://www.vectorlogo.zone/logos/w3_html5/w3_html5-icon.svg"},{title:"CSS",logo:"https://seeklogo.com/images/C/css3-logo-F1923C8D0E-seeklogo.com.png"},{title:"TypeScript",logo:"https://www.vectorlogo.zone/logos/typescriptlang/typescriptlang-icon.svg"},{title:"Kotlin",logo:"https://www.vectorlogo.zone/logos/kotlinlang/kotlinlang-icon.svg"},{title:"Dart",logo:"https://www.vectorlogo.zone/logos/dartlang/dartlang-icon.svg"},{title:"Go",logo:"https://go.dev/blog/go-brand/Go-Logo/SVG/Go-Logo_Blue.svg"}]},{text:"Databases",arr:[{title:"MongoDB",logo:"https://cdn.iconscout.com/icon/free/png-128/mongodb-3521676-2945120.png"},{title:"SQL",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/ffeb437f-0d63-40e5-9bc3-041d5715d67e"},{title:"DynamoDB",logo:"https://cdn.worldvectorlogo.com/logos/aws-dynamodb.svg"},{title:"PostgreSQL",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/b0b84cdf-ac60-4f7b-b665-99ea7e8854da"}]},{text:"UI Component Libraries",arr:[{title:"Ant Design",logo:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"},{title:"Material-UI",logo:"https://mui.com/static/logo.png"},{title:"Shadcn",logo:"https://ui.shadcn.com/favicon.ico"},{title:"Tailwind CSS",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Tailwind_CSS_Logo.svg/512px-Tailwind_CSS_Logo.svg.png?20230715030042"},{title:"Bootstrap",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Bootstrap_logo.svg/512px-Bootstrap_logo.svg.png"}]},{text:"Libraries / Frameworks / Techs",arr:[{title:"Prisma",logo:"https://www.svgrepo.com/show/374002/prisma.svg"},{title:"Android App Development",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg"},{title:"NodeJS",logo:"https://www.vectorlogo.zone/logos/nodejs/nodejs-icon.svg"},{title:"ExpressJS",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f38ec9f9-a921-4c96-8fb3-f2a598c1d0b4"},{title:"ReactJS",logo:"https://www.vectorlogo.zone/logos/reactjs/reactjs-icon.svg"},{title:"Redux",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/77226ad4-1e3a-46ac-b287-e41ee5b5fec7"},{title:"React Native",logo:"https://d33wubrfki0l68.cloudfront.net/554c3b0e09cf167f0281fda839a5433f2040b349/ecfc9/img/header_logo.svg"},{title:"ElectronJS",logo:"https://www.vectorlogo.zone/logos/electronjs/electronjs-icon.svg"},{title:"Angular2+",logo:"https://angular.io/assets/images/logos/angular/angular.svg"},{title:"Mongoose",logo:"https://avatars.githubusercontent.com/u/7552965?s=200&v=4"},{title:"NextJS",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/1b988896-5ab2-42b4-a4f3-153d42c6488c"},{title:"OpenCV",logo:"https://www.vectorlogo.zone/logos/opencv/opencv-icon.svg"},{title:"Firebase",logo:"https://www.vectorlogo.zone/logos/firebase/firebase-icon.svg"},{title:"Flutter",logo:"https://www.vectorlogo.zone/logos/flutterio/flutterio-icon.svg"},{title:"Beautiful soup",logo:"https://github.com/3r4y/react-portfolio-template/assets/6418354/c9199eab-529b-4314-a990-c46deba899e9"},{title:"Numpy",logo:"https://numpy.org/images/logo.svg"},{title:"Tauri",logo:"https://raw.githubusercontent.com/tauri-apps/tauri/HEAD/app-icon.png"},{title:"VueJS",logo:"https://vuejs.org/images/logo.png"},{title:"Pandas",logo:"https://pandas.pydata.org/static/img/pandas_white.svg"},{title:"Matplotlib",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f5e59574-2fee-4ef3-86f6-31a331065f60"},{title:"Socket.io",logo:"https://socket.io/images/logo-dark.svg"},{title:"Flask",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/2183bb2b-7680-49f1-a626-b1f647e7d656"},{title:"Docker",logo:"https://cdn.iconscout.com/icon/free/png-128/docker-226091.png"},{title:"Git",logo:"https://www.vectorlogo.zone/logos/git-scm/git-scm-icon.svg"},{title:"Expo",logo:"https://www.vectorlogo.zone/logos/expoio/expoio-icon.svg"},{title:"NgInx",logo:"https://www.vectorlogo.zone/logos/nginx/nginx-icon.svg"},{title:"NestJS",logo:"https://d33wubrfki0l68.cloudfront.net/e937e774cbbe23635999615ad5d7732decad182a/26072/logo-small.ede75a6b.svg"}]},{text:"Others",arr:[{title:"Vim",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/Vimlogo.svg/544px-Vimlogo.svg.png?20150726190850"},{title:"Android Studio",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Android_Studio_Icon_3.6.svg/512px-Android_Studio_Icon_3.6.svg.png?20210301045217"},{title:"VS Code",logo:"https://cdn.icon-icons.com/icons2/2107/PNG/512/file_type_vscode_icon_130084.png"},{title:"Jira",logo:"https://cdn.iconscout.com/icon/free/png-128/jira-3628861-3030001.png"},{title:"AWS",logo:"https://cdn.iconscout.com/icon/free/png-128/aws-1869025-1583149.png"},{title:"DigitalOcean",logo:"https://www.vectorlogo.zone/logos/digitalocean/digitalocean-icon.svg"},{title:"Figma",logo:"https://www.vectorlogo.zone/logos/figma/figma-icon.svg"},{title:"Heroku",logo:"https://www.vectorlogo.zone/logos/heroku/heroku-icon.svg"},{title:"Yarn",logo:"https://www.vectorlogo.zone/logos/yarnpkg/yarnpkg-icon.svg"},{title:"npm",logo:"https://www.vectorlogo.zone/logos/npmjs/npmjs-icon.svg"},{title:"Tampermonkey",logo:"https://www.tampermonkey.net/images/ricon48.png"},{title:"Greasemonkey",logo:"https://addons.mozilla.org/user-media/addon_icons/0/748-64.png?modified=1531822767"},{title:"Linux",logo:"https://www.freepnglogos.com/uploads/linux-png/file-icons-flat-linux-svg-wikimedia-commons-6.png"},{title:"Adobe Photoshop",logo:"https://www.adobe.com/content/dam/cc/icons/photoshop-mobile.svg"}]}]),Qn($t,"projects",[{text:"Web Apps",arr:[{title:"Duas",link:"https://p32929.github.io/duas/",logo:"https://p32929.github.io/duas/favicon.png",desc:"A collection of duas I try to regularly recite - created using flutter web"},{title:"Sha1ToMd5",link:"https://p32929.github.io/Sha1ToMd5/",logo:"https://github.com/user-attachments/assets/6d63227d-1b72-4c22-9923-b2a4c96d4b68",desc:"A simple utility tool to convert Google Play Release APK Sha1 value to MD5 for Facebook login to work. "},{title:"dobd.xyz",link:"https://admui.vercel.app",logo:"https://admui.vercel.app/android-chrome-512x512.png",desc:"Best online downloader for YouTube, Facebook, Instagram, Tiktok and more"},{title:"s3cr3tm3",link:"https://s3cr3tm3.netlify.app/",logo:"https://user-images.githubusercontent.com/6418354/173877444-59dbdd3d-1b5d-4b92-ad53-30fada9362d2.png",desc:"Share secret messages secretely"},{title:"OrderZesty",logo:"https://orderzesty.com/wp-content/uploads/2021/10/Zesty-icon@3x-300x300.png",desc:"Personal chef service delivering fresh signature meals.",link:"https://orderzesty.com/"},{title:"DramaDB",logo:"https://dramadb.vercel.app/apple-icon.png",desc:"A serverless hobby project that lets you filter Asian drama by country, genre, status, year and popularity",link:"https://dramadb.vercel.app/"},{title:"Sh0Sh0",logo:"https://github.com/3r4y/react-portfolio-template/assets/6418354/a159e1d8-fabc-4f58-9391-0c3be4d14d7e",desc:"A beautifully created Absolutely FREE URL shortener for everyone made using React Shadcn Firebase. ",link:"https://sh0sh0.netlify.app/"},{title:"BreakingMars",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/8b6c5a1c-fc31-44a8-822e-73814ff57ac3",desc:"#1 Leading & Effortless Prospect Perceiving Platform",link:"https://web.archive.org/web/20220413085335/https://www.breakingmars.com/"},{title:"Voomnow",desc:"Next generation audio recorder",logo:"https://user-images.githubusercontent.com/6418354/173876916-e27cb77f-49f1-4190-be54-4c1ddaa2973d.svg",link:"https://web.archive.org/web/20220326215025/https://www.voomnow.com/"},{title:"Shajao",logo:"https://sdn.signalhire.co/storage/company/1dfc/9704/f9d3/ff49/cdce/31bb/c4d7/0628.webp",desc:"Framing Happiness",link:"https://web.archive.org/web/20191222090655/https://shajao.com/"},{title:"ChargeOnSite",logo:"https://static.wixstatic.com/media/182a81_c4e4ee2bac6d4389a866239475519bdf~mv2.png/v1/fill/w_192%2Ch_192%2Clg_1%2Cusm_0.66_1.00_0.01/182a81_c4e4ee2bac6d4389a866239475519bdf~mv2.png",desc:"Charge OnSite",link:"https://www.chargeonsite.com/"},{title:"MathFinity",logo:"https://p32929.github.io/mathfinity/icons/Icon-192.png",desc:"Simple, infinite & fun math game for everyone",link:"https://p32929.github.io/mathfinity/"}]},{text:"iOS Apps",arr:[{title:"Adblock for YT",link:"https://apps.apple.com/au/app/adblock-for-youtube/id1592568016",logo:"https://is2-ssl.mzstatic.com/image/thumb/Purple126/v4/65/7e/a8/657ea8d9-c3aa-6951-38c8-948c05cd96c3/AppIcon-0-0-85-220-0-0-0-0-4-0-0-0-2x-sRGB-0-0-0-0-0.png/246x0w.webp",desc:"Removes ads from YT videos, embedded videos on third party websites and streams."},{title:"Al Quran by Quran Touch",link:"https://apps.apple.com/gb/app/al-quran-by-quran-touch/id585240351",logo:"https://is3-ssl.mzstatic.com/image/thumb/Purple112/v4/9d/7e/ed/9d7eedd6-e567-5251-bed6-dce7e868bb57/AppIcon-0-1x_U007emarketing-0-10-0-85-220.png/246x0w.webp",desc:"The most comprehensive Muslim App!"}]},{text:"Android Apps",arr:[{title:"Al Quran by Quran Touch",link:"https://www.apkmonk.com/app/com.qurantouch.qurantouchhd.app/",logo:"https://is3-ssl.mzstatic.com/image/thumb/Purple112/v4/9d/7e/ed/9d7eedd6-e567-5251-bed6-dce7e868bb57/AppIcon-0-1x_U007emarketing-0-10-0-85-220.png/246x0w.webp",desc:"The most comprehensive Muslim App!"},{title:"Thamao",logo:"https://cdn.apkmonk.com/logos/com.thamao_150x150.png",desc:"বাংলাদেশে স্মার্টফোনের চুরি এবার অসম্ভব",link:"https://www.apkmonk.com/app/com.thamao/"},{title:"Desplash",logo:"https://lh3.googleusercontent.com/ILrto9KguXlr-clbhYKUonpnHszgNp_N5Qvc8_u9QaM71oaqNKcYql2sV3sqZ7nqzsc=s180",desc:"Automatic Free High Quality Wallpapers powered by Unsplash.com",link:"https://www.xda-developers.com/desplash-wallpaper-app-unsplash/"},{title:"The Great Postman",logo:"https://lh3.googleusercontent.com/ni-lk3b2nTMZyC7r1wYBW6cm9eYqGAN-t6fXV-kD0lSyw1lO3kenC1We71fZjSryvFII=s180",desc:"Powerful, Lightweight REST API client for Android",link:"https://apkcombo.com/es/rest-api-client-the-great-postman/p32929.greatpostman/"},{title:"Sleepy - Addiction Remover",logo:"https://user-images.githubusercontent.com/6418354/192146268-29e1bac2-e477-4010-ae03-96adecbf07e6.png",desc:"The one and only EFFECTIVE addiction remover on Google Play store",link:"https://apkcombo.com/es/sleepy-phone-addiction-controller/p32929.lazyphone/"},{title:"Best CGPA Calculator",logo:"https://user-images.githubusercontent.com/6418354/192146303-6e04c9ac-ffb2-4931-bb10-ef54ff7af382.png",desc:"A simple yet effective CGPA Calculator for University students",link:"https://apkcombo.com/es/cgpa-calculator-for-update-see-the-description/p32929.cgpa_calculator/"},{title:"Buy Sell BD",logo:"https://image.winudf.com/v2/image1/cDMyOTI5LmJ1eXNlbGxiZF9pY29uXzE1NTkyOTQ5NjVfMDYz/icon.png?w=170&fakeurl=1",desc:"A better & more reliable alternative for Bikroy.com - A marketplace app for buying-selling new/used goods",link:"https://apkcombo.com/es/buy-sell-bd-buy-sell-everything-easily-in-bd/p32929.buysellbd/"},{title:"ExIn",logo:"https://lh3.googleusercontent.com/X8mRJd7JajvDXoW7NaluKt2IvC3osH6czkTPoWeSYJ96U2LWLKT4xiFgvNouwf-UvEk=s180",desc:"A Simple & user friendly income-expense tracker ",link:"https://apkcombo.com/es/exin-discontinued/p32929.exin/"},{title:"I am free",logo:"https://image.winudf.com/v2/image1/cDMyOTI5LmltZnJlZV9pY29uXzE1NzY4ODAwNzVfMDU3/icon.png?w=170&fakeurl=1",desc:"বেকার মুক্ত বাংলাদেশ গড়ার লক্ষ্যে - I am FREE",link:"https://apkcombo.com/es/i-am-free/p32929.imfree/"},{title:"Awesome NCTB",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5uY3RiX2ljb25fMTU3NjU3MjcwNF8wMjI/icon.png?fakeurl=1",desc:"Download NCTB Books easily and Free",link:"https://apkcombo.com/es/awesome-nctb/org.richit.nctb/"},{title:"বৃক্ষ ( Brikkho )",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5icmlra2hvX2ljb25fMTU3MDEyMTU0Ml8wODA/icon.png?fakeurl=1",desc:"Learn about trees in your fingertips",link:"https://apkcombo.com/es/%E0%A6%AC%E0%A7%83%E0%A6%95%E0%A7%8D%E0%A6%B7-brikkho/org.richit.brikkho/"},{title:"IQQuiz",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5pcXF1aXphcHBfaWNvbl8xNTcxMDE0NzcxXzA2Mg/icon.png?fakeurl=1",desc:"A simple IQ game",link:"https://apkcombo.com/es/iqquiz/org.richit.iqquizapp/"},{title:"BirdsLover",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5iaXJkc2xvdmVyX2ljb25fMTU3MjAwNDIxNl8wOTE/icon.png?fakeurl=1",desc:"Learn about birds in your fingertips",link:"https://apkcombo.com/es/birdslover/org.richit.birdslover/"},{title:"Animal Lover",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5hbmltYWxfaWNvbl8xNTc3MjkyMzIzXzAyMw/icon.png?fakeurl=1",desc:"Learn about birds in your fingertips",link:"https://apkcombo.com/es/animal-lover/org.richit.animal/"},{title:"Jibanananda Recitation (Abritti)",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5qaWJvbmFuZG9rb2JpdGFzb21vZ3JvX2ljb25fMTU3MDEwNDExNF8wNDc/icon.png?fakeurl=1",desc:"50+ poems of Jibanananda Das with audio recitation",link:"https://apkcombo.com/es/jibanananda-recitation-abritti/org.richit.jibonandokobitasomogro/"},{title:"MathLover (Simple, Infinite, Math game)",logo:"https://lh3.googleusercontent.com/GaisH_-MeK2c_ct4kp5qbqxbJPE-q4isTdZswR4CocgB8sLNCFk4beXdlmaaFuveKUwd",desc:"MathLover is a simple, infinite mathematical problem solving game for everyone.",link:"https://apkcombo.com/es/mathlover-simple-infinite-math-game/org.richit.mathblitz/"},{title:"Hospitals BD",logo:"https://lh3.googleusercontent.com/MMfY8vG1YfAFh1w6iHEp8NXCwl-NSCUDmfPkUAWmqhSGfO3JR7vBvw_XZzV8JxrDag",desc:"Get nearest Hospital Information in Bangladesh in your fingertips",link:"https://apkcombo.com/es/hospitals-bd/org.richit.contacthospitals/"},{title:"BirthdayBot",logo:"https://cdn.iconscout.com/icon/premium/png-256-thumb/gift-2990371-2484427.png",desc:"Birthday wishing apps, made for individual people...",link:"https://github.com/p32929/my_android_apps/releases/tag/all"}]},{text:"Desktop Apps",arr:[{title:"PotatoTimer",logo:"https://raw.githubusercontent.com/p32929/PotatoTimer/master/resources/icon.ico",desc:"A pomotodo app that forces you to take a break - created using ElectronJS",link:"https://github.com/p32929/Electron-Pomotodo"},{title:"Pomota",logo:"https://github.com/p32929/pomota/blob/master/src-tauri/icons/128x128.png?raw=true",desc:"A simple user-friendly cross-platform tauri based pomodoro timer app that forces you to take a break",link:"https://github.com/p32929/pomota"},{title:"google calender widget",logo:"https://duckduckgo.com/i/e2d8001c.png",desc:"An unofficial google calendar desktop widget for Windows, Mac and Linux ",link:"https://github.com/p32929/google-calender-widget"},{title:"MacJuiceMonitor",logo:"https://github.com/user-attachments/assets/21b4d0ac-1734-4d42-9da4-e873628a022a",desc:"Your essential tool for keeping track of all your Bluetooth-connected devices' battery levels, conveniently located in the macOS menu bar",link:"https://github.com/p32929/mac-juice-monitor"}]},{text:"Command Line Interfaces ( CLIs )",arr:[{title:"Shortcut Virus Remover",logo:"https://cdn-icons-png.flaticon.com/128/3223/3223766.png",desc:"Shortcut virus remover script for Windows",link:"https://github.com/p32929/Shortcut-Virus-Remover"},{title:"Fay",logo:"https://crates.io/assets/cargo.png",desc:"A simple cross platform CLI app written in Rust to automate multiple shell ( bash or cmd ) commands",link:"https://crates.io/crates/fay"},{title:"SIIN",logo:"https://crates.io/assets/cargo.png",desc:"A batch installer that downloads and installs a list of apps, written in Rust ( Kinda like Ninite )",link:"https://crates.io/crates/siin"}]},{text:"Automations",arr:[{title:"Dingtone Bot",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f24e64e7-ef7a-4d2d-a7d9-55f4797043cf",desc:"A bot made using Python and UIAutomator2 to automate watching ads on certain apps to get credits",link:"https://drive.google.com/file/d/159D_tco3qkpgh2a3CWz-f0ixPEpeUN8V/view?usp=sharing"},{title:"Indeed-Linkedin bot",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f24e64e7-ef7a-4d2d-a7d9-55f4797043cf",desc:"An automation bot created using playwright to automate applying jobs on Indeed and Linkedin",link:"https://drive.google.com/file/d/10Xc4Y0Z5KXxKhb9StF3bQfivYHHeNZsa/view?usp=sharing"}]},{text:"Libraries / Packages / Crates",arr:[{title:"AndroidEasySQL-Library",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"An Easier & Lazier approach to SQL database for Android",link:"https://github.com/p32929/AndroidEasySQL-Library"},{title:"AndroidAppLockscreen",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"An Easier & Lazier approach to getting runtime permission in Android ",link:"https://github.com/p32929/AndroidAppLockscreen"},{title:"Manufacturer Battery Optimization",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"Simple helper class for Android Battery Optimization ignoring in some devices",link:"https://gist.github.com/p32929/41e7af650f6a2c11e9306ab600fb9b03"},{title:"MyHouse Ads Android",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A library for cross promoting own apps within own apps - for Android",link:"https://github.com/p32929/MyHouseAdsAndroid"},{title:"House Ads 2",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A library ( V2 ) for cross promoting own apps within own apps - for Android",link:"https://github.com/p32929/HouseAds2"},{title:"Android App Updater",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A simple, Lightweight App Updater Library for Android",link:"https://github.com/p32929/AndroidAppUpdater"},{title:"Office About",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A simple about screen library for Android for a Team of people",link:"https://github.com/p32929/OfficeAbout"},{title:"Json Viewer Android",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A simple JSON Viewer for Android"},{title:"Android Receivers Library",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A library for simpler BroadcastReceiver implementations"},{title:"Fay",logo:"https://crates.io/assets/cargo.png",desc:"A simple cross platform CLI app written in Rust to automate multiple shell ( bash or cmd ) commands",link:"https://crates.io/crates/fay"},{title:"fayfetch",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:"A simple wrapper for Fetch",link:"https://www.npmjs.com/package/fayfetch"},{title:"fjsondb",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:"A fast and simple JSON database for NodeJS",link:"https://www.npmjs.com/package/fjsondb"},{title:"str_template",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:"A fast and simple string templating library, written in TypeScript ( Supports both Client side and Server side JavaScript / TypeScript )",link:"https://www.npmjs.com/package/str-template-ts"},{title:"use-megamind",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:" A simple react hook for managing asynchronous function calls with ease on the client side ",link:"https://github.com/p32929/use-megamind"},{title:"EasiestDB",logo:"https://cdn.iconscout.com/icon/free/png-256/free-flutter-3521432-2944876.png",desc:"The Easiest and the Laziest approach to Flutter SQL Database.",link:"https://pub.dev/packages/easiestdb"},{title:"Simply Wifi",logo:"https://cdn.iconscout.com/icon/free/png-256/free-flutter-3521432-2944876.png",desc:"A simplified version of the wifi_iot package",link:"https://pub.dev/packages/simply_wifi"},{title:"audio_duration",logo:"https://cdn.iconscout.com/icon/free/png-256/free-flutter-3521432-2944876.png",desc:"Just a simple flutter package to get the duration of any audio file ( like: mp3 ) in milliseconds",link:"https://pub.dev/packages/audio_duration"}]},{text:"Extensions / Plugins / Addons",arr:[{title:"vscode nvim leave insertmode",logo:"https://code.visualstudio.com/assets/images/code-stable.png",desc:"This basic VSCode extension ensures that neovim is in normal mode switching between text editor panels.",link:"https://marketplace.visualstudio.com/items?itemName=p32929.vscode-nvim-leave-insertmode"},{title:"one console log",logo:"https://code.visualstudio.com/assets/images/code-stable.png",desc:"A modified version of the turbo-console-log that adds only one line of console instead of multiples.",link:"https://marketplace.visualstudio.com/items?itemName=p32929.one-console-log"},{title:"Home",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/e/e1/Google_Chrome_icon_%28February_2022%29.svg/800px-Google_Chrome_icon_%28February_2022%29.svg.png",desc:"A Simple homepage extension created using Shadcn, React, TypeScript, usm-redux etc ",link:"https://github.com/p32929/Home"},{title:"obsidotion",logo:"https://obsidian.md/images/obsidian-logo-gradient.svg",desc:"Asimple obsidian plugin that syncs from/to obsidian/notion ",link:"https://github.com/p32929/obsidotion"}]}]),Qn($t,"contacts",[{text:"Contact me",arr:[{title:"WhatsApp ( Recommended )",logo:"https://user-images.githubusercontent.com/6418354/155842184-b064bf36-de8e-4317-8f8e-cb7755eed995.png",link:"https://api.whatsapp.com/send?phone=8801796306262",desc:"+8801796306262"},{title:"Email",logo:"https://cdn3d.iconscout.com/3d/premium/thumb/email-address-4437044-3684811.png",desc:"p32929.ceo@gmail.com",link:"mailto:p32929.ceo@gmail.com"},{title:"Telegram",logo:"https://cdn-icons-png.flaticon.com/128/2111/2111646.png",desc:"@p32929",link:"https://t.me/p32929"}]},{text:"Others",arr:[{title:"Anywhere on the internet",logo:"https://user-images.githubusercontent.com/6418354/155840900-91ac076a-8d2b-45dc-b346-66f72d376d4b.png",desc:"@p32929"},{title:"GitHub",logo:"https://cdn-icons-png.flaticon.com/128/1051/1051275.png",link:"https://github.com/p32929/"},{title:"LinkedIn",logo:"https://user-images.githubusercontent.com/6418354/155841027-8698cb12-7ddd-4604-a4ea-c618ddbc1cd8.png",link:"https://www.linkedin.com/in/p32929/"},{title:"Facebook",logo:"https://user-images.githubusercontent.com/6418354/155840898-9e2327aa-a280-45e3-8266-8268242abda4.png",link:"https://www.facebook.com/p32929"},{title:"Twitter",logo:"https://user-images.githubusercontent.com/6418354/155841031-532d5d6e-797a-4da1-8064-48d266b69ab2.png",link:"https://twitter.com/p32929"},{title:"Instagram",logo:"https://user-images.githubusercontent.com/6418354/155841023-0b842621-56a3-42ec-81f1-3944034b09c7.png",link:"https://www.instagram.com/p32929/"},{title:"Fiverr",logo:"https://cdn.worldvectorlogo.com/logos/fiverr-1.svg",link:"https://www.fiverr.com/users/fayazbinsalam/"},{title:"Upwork",logo:"https://cdn.worldvectorlogo.com/logos/upwork-roundedsquare-1.svg",link:"https://www.upwork.com/freelancers/~017dbf657b99b0c1c1"},{title:"Medium",logo:"https://seeklogo.com/images/M/medium-logo-93CDCF6451-seeklogo.com.png",link:"https://medium.com/@p32929_77176"},{title:"xda",logo:"https://www.svgrepo.com/show/331651/xda-developers.svg",link:"https://forum.xda-developers.com/m/p32929.5346826/"},{title:"Product Hunt",logo:"https://seeklogo.com/images/P/product-hunt-logo-A144953C4C-seeklogo.com.png?v=637846885100000000",link:"https://www.producthunt.com/@p32929"},{title:"UVA Online Judge",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/5e21914b-9dfd-4394-bfa3-d2e216e8ce39",link:"https://uhunt.onlinejudge.org/id/590978"},{title:"URI Online Judge",logo:"https://user-images.githubusercontent.com/26368939/110052090-be0a0b00-7d35-11eb-8827-993190a9568e.png",link:"https://www.beecrowd.com.br/judge/en/profile/76542"},{title:"Buy Me a Coffee",logo:"https://cdn.iconscout.com/icon/free/png-256/free-buymeacoffee-3628667-3029892.png",link:"https://www.buymeacoffee.com/p32929"},{title:"Skype",logo:"https://user-images.githubusercontent.com/6418354/155840899-62c1fe8e-66a6-4492-9acc-5bd504ac21ef.png",desc:"p32929",link:"skype:p32929?chat"}]},{text:"Thank you for visiting my portfolio",arr:[{title:"Click on the link button",desc:"To create your own portfolio. It will only take around 3 minutes",logo:"https://cdn.iconscout.com/icon/premium/png-256-thumb/gift-2990371-2484427.png",link:"https://github.com/p32929/p32929.github.io/"}]}]);const Kt={initialInformation:$t.initialInformation,directMessageItems:$t.directMessageItems,routes:[{name:"About",items:$t.about},{name:"Skills",items:$t.skills},{name:"Projects",items:$t.projects},{name:"Contact",items:$t.contacts}]};function zw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=KP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Mp);return a[0]===""&&a.length!==1&&a.shift(),Bw(a,t)||HP(s)},getConflictingClassGroupIds:(s,a)=>{const u=n[s]||[];return a&&r[s]?[...u,...r[s]]:u}}},Bw=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Bw(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Mp);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},ov=/^\[(.+)\]$/,HP=e=>{if(ov.test(e)){const t=ov.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},KP=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return YP(Object.entries(e.classGroups),n).forEach(([i,s])=>{Zf(s,r,i,t)}),r},Zf=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:iv(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(qP(o)){Zf(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Zf(s,iv(t,i),n,r)})})},iv=(e,t)=>{let n=e;return t.split(Mp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},qP=e=>e.isThemeGetter,YP=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,XP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},$w="!",QP=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const u=[];let l=0,c=0,f;for(let x=0;xc?f-c:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:s}):s},ZP=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},JP=e=>({cache:XP(e.cacheSize),parseClassName:QP(e),...GP(e)}),ek=/\s+/,tk=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(ek);let a="";for(let u=s.length-1;u>=0;u-=1){const l=s[u],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:m}=n(l);let g=!!m,y=r(g?d.substring(0,m):d);if(!y){if(!g){a=l+(a.length>0?" "+a:a);continue}if(y=r(d),!y){a=l+(a.length>0?" "+a:a);continue}g=!1}const x=ZP(c).join(":"),h=f?x+$w:x,p=h+y;if(i.includes(p))continue;i.push(p);const v=o(y,g);for(let b=0;b0?" "+a:a)}return a};function nk(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=JP(l),r=n.cache.get,o=n.cache.set,i=a,a(u)}function a(u){const l=r(u);if(l)return l;const c=tk(u,n);return o(u,c),c}return function(){return i(nk.apply(null,arguments))}}const ge=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Gw=/^\[(?:([a-z-]+):)?(.+)\]$/i,ok=/^\d+\/\d+$/,ik=new Set(["px","full","screen"]),sk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ak=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ck=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_n=e=>Go(e)||ik.has(e)||ok.test(e),Jn=e=>gi(e,"length",yk),Go=e=>!!e&&!Number.isNaN(Number(e)),xc=e=>gi(e,"number",Go),Oi=e=>!!e&&Number.isInteger(Number(e)),fk=e=>e.endsWith("%")&&Go(e.slice(0,-1)),ee=e=>Gw.test(e),er=e=>sk.test(e),dk=new Set(["length","size","percentage"]),pk=e=>gi(e,dk,Hw),hk=e=>gi(e,"position",Hw),mk=new Set(["image","url"]),vk=e=>gi(e,mk,bk),gk=e=>gi(e,"",wk),Mi=()=>!0,gi=(e,t,n)=>{const r=Gw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},yk=e=>ak.test(e)&&!lk.test(e),Hw=()=>!1,wk=e=>uk.test(e),bk=e=>ck.test(e),xk=()=>{const e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),o=ge("borderColor"),i=ge("borderRadius"),s=ge("borderSpacing"),a=ge("borderWidth"),u=ge("contrast"),l=ge("grayscale"),c=ge("hueRotate"),f=ge("invert"),d=ge("gap"),m=ge("gradientColorStops"),g=ge("gradientColorStopPositions"),y=ge("inset"),x=ge("margin"),h=ge("opacity"),p=ge("padding"),v=ge("saturate"),b=ge("scale"),E=ge("sepia"),C=ge("skew"),k=ge("space"),T=ge("translate"),O=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",ee,t],F=()=>[ee,t],K=()=>["",_n,Jn],V=()=>["auto",Go,ee],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",ee],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Go,ee];return{cacheSize:500,separator:":",theme:{colors:[Mi],spacing:[_n,Jn],blur:["none","",er,ee],brightness:G(),borderColor:[e],borderRadius:["none","","full",er,ee],borderSpacing:F(),borderWidth:K(),contrast:G(),grayscale:R(),hueRotate:G(),invert:R(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[fk,Jn],inset:z(),margin:z(),opacity:G(),padding:F(),saturate:G(),scale:G(),sepia:R(),skew:G(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[er]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),ee]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oi,ee]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ee]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Oi,ee]}],"grid-cols":[{"grid-cols":[Mi]}],"col-start-end":[{col:["auto",{span:["full",Oi,ee]},ee]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[Mi]}],"row-start-end":[{row:["auto",{span:[Oi,ee]},ee]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ee,t]}],"min-w":[{"min-w":[ee,t,"min","max","fit"]}],"max-w":[{"max-w":[ee,t,"none","full","min","max","fit","prose",{screen:[er]},er]}],h:[{h:[ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",er,Jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xc]}],"font-family":[{font:[Mi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ee]}],"line-clamp":[{"line-clamp":["none",Go,xc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_n,ee]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_n,Jn]}],"underline-offset":[{"underline-offset":["auto",_n,ee]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),hk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[_n,ee]}],"outline-w":[{outline:[_n,Jn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[_n,Jn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",er,gk]}],"shadow-color":[{shadow:[Mi]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",er,ee]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ee]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Oi,ee]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_n,Jn,xc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Sk=rk(xk);function ie(...e){return Sk(WP(e))}const Jf=(e,t)=>{const n=e.length;if(t<0&&(t+=n),t>=0&&t{var t;(t=document.getElementById(e))==null||t.scrollIntoView({behavior:"smooth"}),console.log("Scrolled")},Es=e=>{const t=["http","skype:","mailto:"];for(var n=0;n{const e=[];Kt.directMessageItems.forEach(n=>{Es(n.link)&&e.push(n.link)});const t=n=>{n.forEach(r=>{r.link&&Es(r.link)&&e.push(r.link),r.arr&&t(r.arr)})};if(Kt.routes.forEach(n=>{t(n.items)}),e.length>0){const n=Math.floor(Math.random()*e.length);return e[n]}else return null},Vs=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Vs.displayName="Card";const Tk=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("flex flex-col space-y-1.5 p-6",e),...t}));Tk.displayName="CardHeader";const Kw=w.forwardRef(({className:e,...t},n)=>S.jsx("h3",{ref:n,className:ie("font-semibold leading-none tracking-tight",e),...t}));Kw.displayName="CardTitle";const qw=w.forwardRef(({className:e,...t},n)=>S.jsx("p",{ref:n,className:ie("text-sm text-muted-foreground",e),...t}));qw.displayName="CardDescription";const du=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("p-6 pt-0",e),...t}));du.displayName="CardContent";const Ck=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("flex items-center p-6 pt-0",e),...t}));Ck.displayName="CardFooter";function Pk(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function pu(...e){return t=>e.forEach(n=>Pk(n,t))}function $e(...e){return w.useCallback(pu(...e),e)}var eo=w.forwardRef((e,t)=>{const{children:n,...r}=e,o=w.Children.toArray(n),i=o.find(_k);if(i){const s=i.props.children,a=o.map(u=>u===i?w.Children.count(s)>1?w.Children.only(null):w.isValidElement(s)?s.props.children:null:u);return S.jsx(ed,{...r,ref:t,children:w.isValidElement(s)?w.cloneElement(s,void 0,a):null})}return S.jsx(ed,{...r,ref:t,children:n})});eo.displayName="Slot";var ed=w.forwardRef((e,t)=>{const{children:n,...r}=e;if(w.isValidElement(n)){const o=Rk(n);return w.cloneElement(n,{...Ak(r,n.props),ref:t?pu(t,o):o})}return w.Children.count(n)>1?w.Children.only(null):null});ed.displayName="SlotClone";var kk=({children:e})=>S.jsx(S.Fragment,{children:e});function _k(e){return w.isValidElement(e)&&e.type===kk}function Ak(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Rk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Yw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,av=Ik,Xw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return av(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(l=>{const c=n==null?void 0:n[l],f=i==null?void 0:i[l];if(c===null)return null;const d=sv(c)||sv(f);return o[l][d]}),a=n&&Object.entries(n).reduce((l,c)=>{let[f,d]=c;return d===void 0||(l[f]=d),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,c)=>{let{class:f,className:d,...m}=c;return Object.entries(m).every(g=>{let[y,x]=g;return Array.isArray(x)?x.includes({...i,...a}[y]):{...i,...a}[y]===x})?[...l,f,d]:l},[]);return av(e,s,u,n==null?void 0:n.class,n==null?void 0:n.className)},Ok=Xw("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),wn=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?eo:"button";return S.jsx(s,{className:ie(Ok({variant:t,size:n,className:e})),ref:i,...o})});wn.displayName="Button";/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function gc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ff(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var mC=typeof WeakMap=="function"?WeakMap:Map;function pw(e,t,n){n=Dn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kl||(kl=!0,qf=r),Ff(e,t)},n}function hw(e,t,n){n=Dn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ff(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ff(e,t),typeof r!="function"&&(vr===null?vr=new Set([this]):vr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Vm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new mC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=AC.bind(null,e,t,n),t.then(e,e))}function Um(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 zm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=Dn(-1,1),t.tag=2,mr(n,t,1))),n.lanes|=1),e)}var vC=Kn.ReactCurrentOwner,St=!1;function ft(e,t,n,r){t.child=e===null?$0(t,null,n,r):ei(t,e.child,n,r)}function Bm(e,t,n,r,o){n=n.render;var i=t.ref;return $o(t,o),r=gp(e,t,n,r,i,o),n=yp(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wn(e,t,o)):(xe&&n&&ip(t),t.flags|=1,ft(e,t,r,o),t.child)}function $m(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!_p(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,mw(e,t,i,r,o)):(e=qa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ps,n(s,r)&&e.ref===t.ref)return Wn(e,t,o)}return t.flags|=1,e=yr(i,r),e.ref=t.ref,e.return=t,t.child=e}function mw(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ps(i,r)&&e.ref===t.ref)if(St=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(St=!0);else return t.lanes=e.lanes,Wn(e,t,o)}return Vf(e,t,n,r,o)}function vw(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},he(Oo,Ct),Ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,he(Oo,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,he(Oo,Ct),Ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,he(Oo,Ct),Ct|=r;return ft(e,t,o,n),t.child}function gw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vf(e,t,n,r,o){var i=Tt(n)?Yr:ct.current;return i=Zo(t,i),$o(t,o),n=gp(e,t,n,r,i,o),r=yp(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wn(e,t,o)):(xe&&r&&ip(t),t.flags|=1,ft(e,t,n,o),t.child)}function Wm(e,t,n,r,o){if(Tt(n)){var i=!0;gl(t)}else i=!1;if($o(t,o),t.stateNode===null)Ga(e,t),dw(t,n,r),jf(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=n.contextType;typeof l=="object"&&l!==null?l=Xt(l):(l=Tt(n)?Yr:ct.current,l=Zo(t,l));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==l)&&Fm(t,s,r,l),or=!1;var d=t.memoizedState;s.state=d,Sl(t,r,s,o),u=t.memoizedState,a!==r||d!==u||Et.current||or?(typeof c=="function"&&(Lf(t,n,c,r),u=t.memoizedState),(a=or||jm(t,n,a,r,d,u,l))?(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=u),s.props=r,s.state=u,s.context=l,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,G0(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Jt(t.type,a),s.props=l,f=t.pendingProps,d=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Xt(u):(u=Tt(n)?Yr:ct.current,u=Zo(t,u));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==u)&&Fm(t,s,r,u),or=!1,d=t.memoizedState,s.state=d,Sl(t,r,s,o);var g=t.memoizedState;a!==f||d!==g||Et.current||or?(typeof m=="function"&&(Lf(t,n,m,r),g=t.memoizedState),(l=or||jm(t,n,l,r,d,g,u)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=u,r=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Uf(e,t,n,r,i,o)}function Uf(e,t,n,r,o,i){gw(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Am(t,n,!1),Wn(e,t,i);r=t.stateNode,vC.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ei(t,e.child,null,i),t.child=ei(t,null,a,i)):ft(e,t,a,i),t.memoizedState=r.state,o&&Am(t,n,!0),t.child}function yw(e){var t=e.stateNode;t.pendingContext?_m(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_m(e,t.context,!1),pp(e,t.containerInfo)}function Gm(e,t,n,r,o){return Jo(),ap(o),t.flags|=256,ft(e,t,n,r),t.child}var zf={dehydrated:null,treeContext:null,retryLane:0};function Bf(e){return{baseLanes:e,cachePool:null,transitions:null}}function ww(e,t,n){var r=t.pendingProps,o=Pe.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),he(Pe,o&1),e===null)return Nf(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,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=au(s,r,0,null),e=Kr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Bf(n),t.memoizedState=zf,e):xp(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return gC(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=yr(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=yr(a,i):(i=Kr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Bf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=zf,r}return i=e.child,e=i.sibling,r=yr(i,{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 xp(e,t){return t=au({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ha(e,t,n,r){return r!==null&&ap(r),ei(t,e.child,null,n),e=xp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gC(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=gc(Error(U(422))),ha(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=au({mode:"visible",children:r.children},o,0,null),i=Kr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ei(t,e.child,null,s),t.child.memoizedState=Bf(s),t.memoizedState=zf,i);if(!(t.mode&1))return ha(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(U(419)),r=gc(i,r,void 0),ha(e,t,s,r)}if(a=(s&e.childLanes)!==0,St||a){if(r=Xe,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,$n(e,o),on(r,e,o,-1))}return kp(),r=gc(Error(U(421))),ha(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=RC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Rt=hr(o.nextSibling),It=t,xe=!0,tn=null,e!==null&&(zt[Bt++]=On,zt[Bt++]=Mn,zt[Bt++]=Xr,On=e.id,Mn=e.overflow,Xr=t),t=xp(t,r.children),t.flags|=4096,t)}function Hm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Df(e.return,t,n)}function yc(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function bw(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ft(e,t,r.children,n),r=Pe.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&&Hm(e,n,t);else if(e.tag===19)Hm(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(he(Pe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&El(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),yc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&El(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}yc(t,!0,n,null,i);break;case"together":yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ga(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=yr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yC(e,t,n){switch(t.tag){case 3:yw(t),Jo();break;case 5:H0(t);break;case 1:Tt(t.type)&&gl(t);break;case 4:pp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;he(bl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(he(Pe,Pe.current&1),t.flags|=128,null):n&t.child.childLanes?ww(e,t,n):(he(Pe,Pe.current&1),e=Wn(e,t,n),e!==null?e.sibling:null);he(Pe,Pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bw(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),he(Pe,Pe.current),r)break;return null;case 22:case 23:return t.lanes=0,vw(e,t,n)}return Wn(e,t,n)}var xw,$f,Sw,Ew;xw=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}};$f=function(){};Sw=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,$r(En.current);var i=null;switch(n){case"input":o=ff(e,o),r=ff(e,r),i=[];break;case"select":o=_e({},o,{value:void 0}),r=_e({},r,{value:void 0}),i=[];break;case"textarea":o=hf(e,o),r=hf(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ml)}vf(n,r);var s;n=null;for(l in o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var a=o[l];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ss.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in r){var u=r[l];if(a=o!=null?o[l]:void 0,r.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(i||(i=[]),i.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(ss.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&ye("scroll",e),i||a===u||(i=[])):(i=i||[]).push(l,u))}n&&(i=i||[]).push("style",n);var l=i;(t.updateQueue=l)&&(t.flags|=4)}};Ew=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ri(e,t){if(!xe)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 st(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function wC(e,t,n){var r=t.pendingProps;switch(sp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return Tt(t.type)&&vl(),st(t),null;case 3:return r=t.stateNode,ti(),we(Et),we(ct),mp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(da(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,tn!==null&&(Qf(tn),tn=null))),$f(e,t),st(t),null;case 5:hp(t);var o=$r(ys.current);if(n=t.type,e!==null&&t.stateNode!=null)Sw(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return st(t),null}if(e=$r(En.current),da(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[gn]=t,r[vs]=i,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(o=0;o<\/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[gn]=t,e[vs]=r,xw(e,t,!1,!1),t.stateNode=e;e:{switch(s=gf(n,r),n){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;ori&&(t.flags|=128,r=!0,Ri(i,!1),t.lanes=4194304)}else{if(!r)if(e=El(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return st(t),null}else 2*Me()-i.renderingStartTime>ri&&n!==1073741824&&(t.flags|=128,r=!0,Ri(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=Pe.current,he(Pe,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Cp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function bC(e,t){switch(sp(t),t.tag){case 1:return Tt(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ti(),we(Et),we(ct),mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hp(t),null;case 13:if(we(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Pe),null;case 4:return ti(),null;case 10:return cp(t.type._context),null;case 22:case 23:return Cp(),null;case 24:return null;default:return null}}var ma=!1,lt=!1,xC=typeof WeakSet=="function"?WeakSet:Set,H=null;function Io(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Wf(e,t,n){try{n()}catch(r){Re(e,t,r)}}var Km=!1;function SC(e,t){if(kf=dl,e=_0(),op(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++l===o&&(a=s),d===i&&++c===r&&(u=s),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:e,selectionRange:n},dl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Jt(t.type,y),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(b){Re(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return g=Km,Km=!1,g}function Yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wf(t,n,i)}o=o.next}while(o!==r)}}function iu(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 Gf(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 Tw(e){var t=e.alternate;t!==null&&(e.alternate=null,Tw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gn],delete t[vs],delete t[If],delete t[oC],delete t[iC])),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 Pw(e){return e.tag===5||e.tag===3||e.tag===4}function qm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pw(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 Hf(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=ml));else if(r!==4&&(e=e.child,e!==null))for(Hf(e,t,n),e=e.sibling;e!==null;)Hf(e,t,n),e=e.sibling}function Kf(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(Kf(e,t,n),e=e.sibling;e!==null;)Kf(e,t,n),e=e.sibling}var et=null,en=!1;function Zn(e,t,n){for(n=n.child;n!==null;)Cw(e,t,n),n=n.sibling}function Cw(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Ql,n)}catch{}switch(n.tag){case 5:lt||Io(n,t);case 6:var r=et,o=en;et=null,Zn(e,t,n),et=r,en=o,et!==null&&(en?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(en?(e=et,n=n.stateNode,e.nodeType===8?fc(e.parentNode,n):e.nodeType===1&&fc(e,n),fs(e)):fc(et,n.stateNode));break;case 4:r=et,o=en,et=n.stateNode.containerInfo,en=!0,Zn(e,t,n),et=r,en=o;break;case 0:case 11:case 14:case 15:if(!lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Wf(n,t,s),o=o.next}while(o!==r)}Zn(e,t,n);break;case 1:if(!lt&&(Io(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Re(n,t,a)}Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:n.mode&1?(lt=(r=lt)||n.memoizedState!==null,Zn(e,t,n),lt=r):Zn(e,t,n);break;default:Zn(e,t,n)}}function Ym(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xC),t.forEach(function(r){var o=IC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*TC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,_l=0,oe&6)throw Error(U(331));var o=oe;for(oe|=4,H=e.current;H!==null;){var i=H,s=i.child;if(H.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uMe()-Tp?Hr(e,0):Ep|=n),Pt(e,t)}function Nw(e,t){t===0&&(e.mode&1?(t=sa,sa<<=1,!(sa&130023424)&&(sa=4194304)):t=1);var n=dt();e=$n(e,t),e!==null&&(Ds(e,t,n),Pt(e,n))}function RC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nw(e,n)}function IC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Nw(e,n)}var Dw;Dw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)St=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return St=!1,yC(e,t,n);St=!!(e.flags&131072)}else St=!1,xe&&t.flags&1048576&&V0(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ga(e,t),e=t.pendingProps;var o=Zo(t,ct.current);$o(t,n),o=gp(null,t,r,e,o,n);var i=yp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(r)?(i=!0,gl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dp(t),o.updater=ou,t.stateNode=o,o._reactInternals=t,jf(t,r,e,n),t=Uf(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&ip(t),ft(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ga(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=MC(r),e=Jt(r,e),o){case 0:t=Vf(null,t,r,e,n);break e;case 1:t=Wm(null,t,r,e,n);break e;case 11:t=Bm(null,t,r,e,n);break e;case 14:t=$m(null,t,r,Jt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Vf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Wm(e,t,r,o,n);case 3:e:{if(yw(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,G0(e,t),Sl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ni(Error(U(423)),t),t=Gm(e,t,r,n,o);break e}else if(r!==o){o=ni(Error(U(424)),t),t=Gm(e,t,r,n,o);break e}else for(Rt=hr(t.stateNode.containerInfo.firstChild),It=t,xe=!0,tn=null,n=$0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jo(),r===o){t=Wn(e,t,n);break e}ft(e,t,r,n)}t=t.child}return t;case 5:return H0(t),e===null&&Nf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Af(r,o)?s=null:i!==null&&Af(r,i)&&(t.flags|=32),gw(e,t),ft(e,t,s,n),t.child;case 6:return e===null&&Nf(t),null;case 13:return ww(e,t,n);case 4:return pp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ei(t,null,r,n):ft(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Bm(e,t,r,o,n);case 7:return ft(e,t,t.pendingProps,n),t.child;case 8:return ft(e,t,t.pendingProps.children,n),t.child;case 12:return ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(ln(i.value,s)){if(i.children===o.children&&!Et.current){t=Wn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Dn(-1,n&-n),u.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Df(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Df(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ft(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$o(t,n),o=Xt(o),r=r(o),t.flags|=1,ft(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),$m(e,t,r,o,n);case 15:return mw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Ga(e,t),t.tag=1,Tt(r)?(e=!0,gl(t)):e=!1,$o(t,n),dw(t,r,o),jf(t,r,o,n),Uf(null,t,r,!0,e,n);case 19:return bw(e,t,n);case 22:return vw(e,t,n)}throw Error(U(156,t.tag))};function Lw(e,t){return u0(e,t)}function OC(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 Ht(e,t,n,r){return new OC(e,t,n,r)}function _p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MC(e){if(typeof e=="function")return _p(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kd)return 11;if(e===qd)return 14}return 2}function yr(e,t){var n=e.alternate;return n===null?(n=Ht(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 qa(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")_p(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case So:return Kr(n.children,o,i,t);case Hd:s=8,o|=8;break;case af:return e=Ht(12,n,t,o|2),e.elementType=af,e.lanes=i,e;case lf:return e=Ht(13,n,t,o),e.elementType=lf,e.lanes=i,e;case uf:return e=Ht(19,n,t,o),e.elementType=uf,e.lanes=i,e;case Hy:return au(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wy:s=10;break e;case Gy:s=9;break e;case Kd:s=11;break e;case qd:s=14;break e;case rr:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Ht(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kr(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function au(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=Hy,e.lanes=n,e.stateNode={isHidden:!1},e}function wc(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function bc(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NC(e,t,n,r,o){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=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ap(e,t,n,r,o,i,s,a,u){return e=new NC(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dp(i),e}function DC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uw)}catch(e){console.error(e)}}Uw(),Uy.exports=Lt;var vi=Uy.exports;const UC=_y(vi);var rv=vi;of.createRoot=rv.createRoot,of.hydrateRoot=rv.hydrateRoot;const zC={theme:"system",setTheme:()=>null},BC=w.createContext(zC);function $C({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,i]=w.useState(()=>localStorage.getItem(n)||t);w.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(u);return}a.classList.add(o)},[o]);const s={theme:o,setTheme:a=>{localStorage.setItem(n,a),i(a)}};return S.jsx(BC.Provider,{...r,value:s,children:e})}class $t{}Qn($t,"initialInformation",{name:"Fayaz Bin Salam",occupation:"Software Engineer"}),Qn($t,"directMessageItems",[{name:"WhatsApp",link:"https://api.whatsapp.com/send?phone=8801796306262"},{name:"Messenger",link:"https://m.me/p32929"},{name:"Telegram",link:"https://t.me/p32929"}]),Qn($t,"about",[{text:"Information",shouldNotSort:!0,arr:[{title:"Name",desc:"Fayaz Bin Salam",logo:"https://cdn-icons-png.flaticon.com/128/1077/1077012.png"},{title:"Work Experience",desc:"7+ years",logo:"https://cdn-icons-png.flaticon.com/128/3281/3281289.png"},{title:"Languages",desc:"Bengali, English, Hindi, Urdu, Chittagonian etc",logo:"https://cdn-icons-png.flaticon.com/128/3898/3898150.png"},{title:"Nationality",desc:"Bangladeshi",logo:"https://cdn-icons-png.flaticon.com/128/11701/11701027.png"},{title:"Resume",desc:"Click the link icon to view/download",link:"https://docs.google.com/document/d/1vRgTCQ-UvzjGXK7s-TR5VpmjHZ7OmSmOs5G69znPhqA/edit?usp=sharing",logo:"https://cdn-icons-png.flaticon.com/128/909/909212.png"}]},{text:"Experiences",arr:[{title:"Aqary International Group",desc:"Golang Developer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/92b039b2-9f42-4248-9803-b27e435d2d03"},{title:"Horizon Group of Companies",desc:"Front End Developer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/b385229a-3084-4952-84f3-134e627cc3e7"},{title:"6sense Bangladesh",desc:"Full Stack Developer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/80aebbb6-456a-4bba-8f32-eb48373cf76d"},{title:"Rich Information Technology",desc:"Lead Software Engineer",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/6b35eee6-669c-42ee-934b-d9555176490b"},{title:"Fiverr",desc:"Freelance Software Engineer",logo:"https://cdn.worldvectorlogo.com/logos/fiverr-1.svg"},{title:"Upwork",desc:"Freelance Software Engineer",logo:"https://cdn.worldvectorlogo.com/logos/upwork-roundedsquare-1.svg"}]}]),Qn($t,"skills",[{text:"Programming / Markup Languages",arr:[{title:"C",logo:"https://seeklogo.com/images/C/c-logo-672525892C-seeklogo.com.png"},{title:"C++",logo:"https://seeklogo.com/images/C/c-logo-1B1817C041-seeklogo.com.png"},{title:"Java",logo:"https://www.vectorlogo.zone/logos/java/java-icon.svg"},{title:"Python",logo:"https://www.vectorlogo.zone/logos/python/python-icon.svg"},{title:"JavaScript",logo:"https://www.vectorlogo.zone/logos/javascript/javascript-icon.svg"},{title:"Rust",logo:"https://www.rustacean.net/assets/rustacean-flat-gesture.svg"},{title:"HTML",logo:"https://www.vectorlogo.zone/logos/w3_html5/w3_html5-icon.svg"},{title:"CSS",logo:"https://seeklogo.com/images/C/css3-logo-F1923C8D0E-seeklogo.com.png"},{title:"TypeScript",logo:"https://www.vectorlogo.zone/logos/typescriptlang/typescriptlang-icon.svg"},{title:"Kotlin",logo:"https://www.vectorlogo.zone/logos/kotlinlang/kotlinlang-icon.svg"},{title:"Dart",logo:"https://www.vectorlogo.zone/logos/dartlang/dartlang-icon.svg"},{title:"Go",logo:"https://go.dev/blog/go-brand/Go-Logo/SVG/Go-Logo_Blue.svg"}]},{text:"Databases",arr:[{title:"MongoDB",logo:"https://cdn.iconscout.com/icon/free/png-128/mongodb-3521676-2945120.png"},{title:"SQL",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/ffeb437f-0d63-40e5-9bc3-041d5715d67e"},{title:"DynamoDB",logo:"https://cdn.worldvectorlogo.com/logos/aws-dynamodb.svg"},{title:"PostgreSQL",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/b0b84cdf-ac60-4f7b-b665-99ea7e8854da"}]},{text:"UI Component Libraries",arr:[{title:"Ant Design",logo:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"},{title:"Material-UI",logo:"https://mui.com/static/logo.png"},{title:"Shadcn",logo:"https://ui.shadcn.com/favicon.ico"},{title:"Tailwind CSS",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Tailwind_CSS_Logo.svg/512px-Tailwind_CSS_Logo.svg.png?20230715030042"},{title:"Bootstrap",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Bootstrap_logo.svg/512px-Bootstrap_logo.svg.png"}]},{text:"Libraries / Frameworks / Techs",arr:[{title:"Prisma",logo:"https://www.svgrepo.com/show/374002/prisma.svg"},{title:"Android App Development",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg"},{title:"NodeJS",logo:"https://www.vectorlogo.zone/logos/nodejs/nodejs-icon.svg"},{title:"ExpressJS",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f38ec9f9-a921-4c96-8fb3-f2a598c1d0b4"},{title:"ReactJS",logo:"https://www.vectorlogo.zone/logos/reactjs/reactjs-icon.svg"},{title:"Redux",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/77226ad4-1e3a-46ac-b287-e41ee5b5fec7"},{title:"React Native",logo:"https://d33wubrfki0l68.cloudfront.net/554c3b0e09cf167f0281fda839a5433f2040b349/ecfc9/img/header_logo.svg"},{title:"ElectronJS",logo:"https://www.vectorlogo.zone/logos/electronjs/electronjs-icon.svg"},{title:"Angular2+",logo:"https://angular.io/assets/images/logos/angular/angular.svg"},{title:"Mongoose",logo:"https://avatars.githubusercontent.com/u/7552965?s=200&v=4"},{title:"NextJS",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/1b988896-5ab2-42b4-a4f3-153d42c6488c"},{title:"OpenCV",logo:"https://www.vectorlogo.zone/logos/opencv/opencv-icon.svg"},{title:"Firebase",logo:"https://www.vectorlogo.zone/logos/firebase/firebase-icon.svg"},{title:"Flutter",logo:"https://www.vectorlogo.zone/logos/flutterio/flutterio-icon.svg"},{title:"Beautiful soup",logo:"https://github.com/3r4y/react-portfolio-template/assets/6418354/c9199eab-529b-4314-a990-c46deba899e9"},{title:"Numpy",logo:"https://numpy.org/images/logo.svg"},{title:"Tauri",logo:"https://raw.githubusercontent.com/tauri-apps/tauri/HEAD/app-icon.png"},{title:"VueJS",logo:"https://vuejs.org/images/logo.png"},{title:"Pandas",logo:"https://pandas.pydata.org/static/img/pandas_white.svg"},{title:"Matplotlib",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f5e59574-2fee-4ef3-86f6-31a331065f60"},{title:"Socket.io",logo:"https://socket.io/images/logo-dark.svg"},{title:"Flask",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/2183bb2b-7680-49f1-a626-b1f647e7d656"},{title:"Docker",logo:"https://cdn.iconscout.com/icon/free/png-128/docker-226091.png"},{title:"Git",logo:"https://www.vectorlogo.zone/logos/git-scm/git-scm-icon.svg"},{title:"Expo",logo:"https://www.vectorlogo.zone/logos/expoio/expoio-icon.svg"},{title:"NgInx",logo:"https://www.vectorlogo.zone/logos/nginx/nginx-icon.svg"},{title:"NestJS",logo:"https://d33wubrfki0l68.cloudfront.net/e937e774cbbe23635999615ad5d7732decad182a/26072/logo-small.ede75a6b.svg"}]},{text:"Others",arr:[{title:"Vim",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/Vimlogo.svg/544px-Vimlogo.svg.png?20150726190850"},{title:"Android Studio",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Android_Studio_Icon_3.6.svg/512px-Android_Studio_Icon_3.6.svg.png?20210301045217"},{title:"VS Code",logo:"https://cdn.icon-icons.com/icons2/2107/PNG/512/file_type_vscode_icon_130084.png"},{title:"Jira",logo:"https://cdn.iconscout.com/icon/free/png-128/jira-3628861-3030001.png"},{title:"AWS",logo:"https://cdn.iconscout.com/icon/free/png-128/aws-1869025-1583149.png"},{title:"DigitalOcean",logo:"https://www.vectorlogo.zone/logos/digitalocean/digitalocean-icon.svg"},{title:"Figma",logo:"https://www.vectorlogo.zone/logos/figma/figma-icon.svg"},{title:"Heroku",logo:"https://www.vectorlogo.zone/logos/heroku/heroku-icon.svg"},{title:"Yarn",logo:"https://www.vectorlogo.zone/logos/yarnpkg/yarnpkg-icon.svg"},{title:"npm",logo:"https://www.vectorlogo.zone/logos/npmjs/npmjs-icon.svg"},{title:"Tampermonkey",logo:"https://www.tampermonkey.net/images/ricon48.png"},{title:"Greasemonkey",logo:"https://addons.mozilla.org/user-media/addon_icons/0/748-64.png?modified=1531822767"},{title:"Linux",logo:"https://www.freepnglogos.com/uploads/linux-png/file-icons-flat-linux-svg-wikimedia-commons-6.png"},{title:"Adobe Photoshop",logo:"https://www.adobe.com/content/dam/cc/icons/photoshop-mobile.svg"}]}]),Qn($t,"projects",[{text:"Web Apps",arr:[{title:"Duas",link:"https://p32929.github.io/duas/",logo:"https://p32929.github.io/duas/favicon.png",desc:"A collection of duas I try to regularly recite - created using flutter web"},{title:"Sha1ToMd5",link:"https://p32929.github.io/Sha1ToMd5/",logo:"https://github.com/user-attachments/assets/6d63227d-1b72-4c22-9923-b2a4c96d4b68",desc:"A simple utility tool to convert Google Play Release APK Sha1 value to MD5 for Facebook login to work. "},{title:"dobd.xyz",link:"https://admui.vercel.app",logo:"https://admui.vercel.app/android-chrome-512x512.png",desc:"Best online downloader for YouTube, Facebook, Instagram, Tiktok and more"},{title:"s3cr3tm3",link:"https://s3cr3tm3.netlify.app/",logo:"https://user-images.githubusercontent.com/6418354/173877444-59dbdd3d-1b5d-4b92-ad53-30fada9362d2.png",desc:"Share secret messages secretely"},{title:"OrderZesty",logo:"https://orderzesty.com/wp-content/uploads/2021/10/Zesty-icon@3x-300x300.png",desc:"Personal chef service delivering fresh signature meals.",link:"https://orderzesty.com/"},{title:"DramaDB",logo:"https://dramadb.vercel.app/apple-icon.png",desc:"A serverless hobby project that lets you filter Asian drama by country, genre, status, year and popularity",link:"https://dramadb.vercel.app/"},{title:"Sh0Sh0",logo:"https://github.com/3r4y/react-portfolio-template/assets/6418354/a159e1d8-fabc-4f58-9391-0c3be4d14d7e",desc:"A beautifully created Absolutely FREE URL shortener for everyone made using React Shadcn Firebase. ",link:"https://sh0sh0.netlify.app/"},{title:"BreakingMars",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/8b6c5a1c-fc31-44a8-822e-73814ff57ac3",desc:"#1 Leading & Effortless Prospect Perceiving Platform",link:"https://web.archive.org/web/20220413085335/https://www.breakingmars.com/"},{title:"Voomnow",desc:"Next generation audio recorder",logo:"https://user-images.githubusercontent.com/6418354/173876916-e27cb77f-49f1-4190-be54-4c1ddaa2973d.svg",link:"https://web.archive.org/web/20220326215025/https://www.voomnow.com/"},{title:"Shajao",logo:"https://sdn.signalhire.co/storage/company/1dfc/9704/f9d3/ff49/cdce/31bb/c4d7/0628.webp",desc:"Framing Happiness",link:"https://web.archive.org/web/20191222090655/https://shajao.com/"},{title:"ChargeOnSite",logo:"https://static.wixstatic.com/media/182a81_c4e4ee2bac6d4389a866239475519bdf~mv2.png/v1/fill/w_192%2Ch_192%2Clg_1%2Cusm_0.66_1.00_0.01/182a81_c4e4ee2bac6d4389a866239475519bdf~mv2.png",desc:"Charge OnSite",link:"https://www.chargeonsite.com/"},{title:"MathFinity",logo:"https://p32929.github.io/mathfinity/icons/Icon-192.png",desc:"Simple, infinite & fun math game for everyone",link:"https://p32929.github.io/mathfinity/"}]},{text:"iOS Apps",arr:[{title:"Adblock for YT",link:"https://apps.apple.com/au/app/adblock-for-youtube/id1592568016",logo:"https://is2-ssl.mzstatic.com/image/thumb/Purple126/v4/65/7e/a8/657ea8d9-c3aa-6951-38c8-948c05cd96c3/AppIcon-0-0-85-220-0-0-0-0-4-0-0-0-2x-sRGB-0-0-0-0-0.png/246x0w.webp",desc:"Removes ads from YT videos, embedded videos on third party websites and streams."},{title:"Al Quran by Quran Touch",link:"https://apps.apple.com/gb/app/al-quran-by-quran-touch/id585240351",logo:"https://is3-ssl.mzstatic.com/image/thumb/Purple112/v4/9d/7e/ed/9d7eedd6-e567-5251-bed6-dce7e868bb57/AppIcon-0-1x_U007emarketing-0-10-0-85-220.png/246x0w.webp",desc:"The most comprehensive Muslim App!"}]},{text:"Android Apps",arr:[{title:"Al Quran by Quran Touch",link:"https://www.apkmonk.com/app/com.qurantouch.qurantouchhd.app/",logo:"https://is3-ssl.mzstatic.com/image/thumb/Purple112/v4/9d/7e/ed/9d7eedd6-e567-5251-bed6-dce7e868bb57/AppIcon-0-1x_U007emarketing-0-10-0-85-220.png/246x0w.webp",desc:"The most comprehensive Muslim App!"},{title:"Thamao",logo:"https://cdn.apkmonk.com/logos/com.thamao_150x150.png",desc:"বাংলাদেশে স্মার্টফোনের চুরি এবার অসম্ভব",link:"https://www.apkmonk.com/app/com.thamao/"},{title:"Desplash",logo:"https://lh3.googleusercontent.com/ILrto9KguXlr-clbhYKUonpnHszgNp_N5Qvc8_u9QaM71oaqNKcYql2sV3sqZ7nqzsc=s180",desc:"Automatic Free High Quality Wallpapers powered by Unsplash.com",link:"https://www.xda-developers.com/desplash-wallpaper-app-unsplash/"},{title:"The Great Postman",logo:"https://lh3.googleusercontent.com/ni-lk3b2nTMZyC7r1wYBW6cm9eYqGAN-t6fXV-kD0lSyw1lO3kenC1We71fZjSryvFII=s180",desc:"Powerful, Lightweight REST API client for Android",link:"https://apkcombo.com/es/rest-api-client-the-great-postman/p32929.greatpostman/"},{title:"Sleepy - Addiction Remover",logo:"https://user-images.githubusercontent.com/6418354/192146268-29e1bac2-e477-4010-ae03-96adecbf07e6.png",desc:"The one and only EFFECTIVE addiction remover on Google Play store",link:"https://apkcombo.com/es/sleepy-phone-addiction-controller/p32929.lazyphone/"},{title:"Best CGPA Calculator",logo:"https://user-images.githubusercontent.com/6418354/192146303-6e04c9ac-ffb2-4931-bb10-ef54ff7af382.png",desc:"A simple yet effective CGPA Calculator for University students",link:"https://apkcombo.com/es/cgpa-calculator-for-update-see-the-description/p32929.cgpa_calculator/"},{title:"Buy Sell BD",logo:"https://image.winudf.com/v2/image1/cDMyOTI5LmJ1eXNlbGxiZF9pY29uXzE1NTkyOTQ5NjVfMDYz/icon.png?w=170&fakeurl=1",desc:"A better & more reliable alternative for Bikroy.com - A marketplace app for buying-selling new/used goods",link:"https://apkcombo.com/es/buy-sell-bd-buy-sell-everything-easily-in-bd/p32929.buysellbd/"},{title:"ExIn",logo:"https://lh3.googleusercontent.com/X8mRJd7JajvDXoW7NaluKt2IvC3osH6czkTPoWeSYJ96U2LWLKT4xiFgvNouwf-UvEk=s180",desc:"A Simple & user friendly income-expense tracker ",link:"https://apkcombo.com/es/exin-discontinued/p32929.exin/"},{title:"I am free",logo:"https://image.winudf.com/v2/image1/cDMyOTI5LmltZnJlZV9pY29uXzE1NzY4ODAwNzVfMDU3/icon.png?w=170&fakeurl=1",desc:"বেকার মুক্ত বাংলাদেশ গড়ার লক্ষ্যে - I am FREE",link:"https://apkcombo.com/es/i-am-free/p32929.imfree/"},{title:"Awesome NCTB",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5uY3RiX2ljb25fMTU3NjU3MjcwNF8wMjI/icon.png?fakeurl=1",desc:"Download NCTB Books easily and Free",link:"https://apkcombo.com/es/awesome-nctb/org.richit.nctb/"},{title:"বৃক্ষ ( Brikkho )",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5icmlra2hvX2ljb25fMTU3MDEyMTU0Ml8wODA/icon.png?fakeurl=1",desc:"Learn about trees in your fingertips",link:"https://apkcombo.com/es/%E0%A6%AC%E0%A7%83%E0%A6%95%E0%A7%8D%E0%A6%B7-brikkho/org.richit.brikkho/"},{title:"IQQuiz",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5pcXF1aXphcHBfaWNvbl8xNTcxMDE0NzcxXzA2Mg/icon.png?fakeurl=1",desc:"A simple IQ game",link:"https://apkcombo.com/es/iqquiz/org.richit.iqquizapp/"},{title:"BirdsLover",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5iaXJkc2xvdmVyX2ljb25fMTU3MjAwNDIxNl8wOTE/icon.png?fakeurl=1",desc:"Learn about birds in your fingertips",link:"https://apkcombo.com/es/birdslover/org.richit.birdslover/"},{title:"Animal Lover",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5hbmltYWxfaWNvbl8xNTc3MjkyMzIzXzAyMw/icon.png?fakeurl=1",desc:"Learn about birds in your fingertips",link:"https://apkcombo.com/es/animal-lover/org.richit.animal/"},{title:"Jibanananda Recitation (Abritti)",logo:"https://image.winudf.com/v2/image1/b3JnLnJpY2hpdC5qaWJvbmFuZG9rb2JpdGFzb21vZ3JvX2ljb25fMTU3MDEwNDExNF8wNDc/icon.png?fakeurl=1",desc:"50+ poems of Jibanananda Das with audio recitation",link:"https://apkcombo.com/es/jibanananda-recitation-abritti/org.richit.jibonandokobitasomogro/"},{title:"MathLover (Simple, Infinite, Math game)",logo:"https://lh3.googleusercontent.com/GaisH_-MeK2c_ct4kp5qbqxbJPE-q4isTdZswR4CocgB8sLNCFk4beXdlmaaFuveKUwd",desc:"MathLover is a simple, infinite mathematical problem solving game for everyone.",link:"https://apkcombo.com/es/mathlover-simple-infinite-math-game/org.richit.mathblitz/"},{title:"Hospitals BD",logo:"https://lh3.googleusercontent.com/MMfY8vG1YfAFh1w6iHEp8NXCwl-NSCUDmfPkUAWmqhSGfO3JR7vBvw_XZzV8JxrDag",desc:"Get nearest Hospital Information in Bangladesh in your fingertips",link:"https://apkcombo.com/es/hospitals-bd/org.richit.contacthospitals/"},{title:"BirthdayBot",logo:"https://cdn.iconscout.com/icon/premium/png-256-thumb/gift-2990371-2484427.png",desc:"Birthday wishing apps, made for individual people...",link:"https://github.com/p32929/my_android_apps/releases/tag/all"}]},{text:"Desktop Apps",arr:[{title:"PotatoTimer",logo:"https://raw.githubusercontent.com/p32929/PotatoTimer/master/resources/icon.ico",desc:"A pomotodo app that forces you to take a break - created using ElectronJS",link:"https://github.com/p32929/Electron-Pomotodo"},{title:"Pomota",logo:"https://github.com/p32929/pomota/blob/master/src-tauri/icons/128x128.png?raw=true",desc:"A simple user-friendly cross-platform tauri based pomodoro timer app that forces you to take a break",link:"https://github.com/p32929/pomota"},{title:"google calender widget",logo:"https://duckduckgo.com/i/e2d8001c.png",desc:"An unofficial google calendar desktop widget for Windows, Mac and Linux ",link:"https://github.com/p32929/google-calender-widget"},{title:"MacJuiceMonitor",logo:"https://github.com/user-attachments/assets/21b4d0ac-1734-4d42-9da4-e873628a022a",desc:"Your essential tool for keeping track of all your Bluetooth-connected devices' battery levels, conveniently located in the macOS menu bar",link:"https://github.com/p32929/mac-juice-monitor"}]},{text:"Command Line Interfaces ( CLIs )",arr:[{title:"Shortcut Virus Remover",logo:"https://cdn-icons-png.flaticon.com/128/3223/3223766.png",desc:"Shortcut virus remover script for Windows",link:"https://github.com/p32929/Shortcut-Virus-Remover"},{title:"Fay",logo:"https://crates.io/assets/cargo.png",desc:"A simple cross platform CLI app written in Rust to automate multiple shell ( bash or cmd ) commands",link:"https://crates.io/crates/fay"},{title:"SIIN",logo:"https://crates.io/assets/cargo.png",desc:"A batch installer that downloads and installs a list of apps, written in Rust ( Kinda like Ninite )",link:"https://crates.io/crates/siin"}]},{text:"Automations",arr:[{title:"Dingtone Bot",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f24e64e7-ef7a-4d2d-a7d9-55f4797043cf",desc:"A bot made using Python and UIAutomator2 to automate watching ads on certain apps to get credits",link:"https://drive.google.com/file/d/159D_tco3qkpgh2a3CWz-f0ixPEpeUN8V/view?usp=sharing"},{title:"Indeed-Linkedin bot",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/f24e64e7-ef7a-4d2d-a7d9-55f4797043cf",desc:"An automation bot created using playwright to automate applying jobs on Indeed and Linkedin",link:"https://drive.google.com/file/d/10Xc4Y0Z5KXxKhb9StF3bQfivYHHeNZsa/view?usp=sharing"}]},{text:"Libraries / Packages / Crates",arr:[{title:"AndroidEasySQL-Library",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"An Easier & Lazier approach to SQL database for Android",link:"https://github.com/p32929/AndroidEasySQL-Library"},{title:"AndroidAppLockscreen",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"An Easier & Lazier approach to getting runtime permission in Android ",link:"https://github.com/p32929/AndroidAppLockscreen"},{title:"Manufacturer Battery Optimization",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"Simple helper class for Android Battery Optimization ignoring in some devices",link:"https://gist.github.com/p32929/41e7af650f6a2c11e9306ab600fb9b03"},{title:"MyHouse Ads Android",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A library for cross promoting own apps within own apps - for Android",link:"https://github.com/p32929/MyHouseAdsAndroid"},{title:"House Ads 2",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A library ( V2 ) for cross promoting own apps within own apps - for Android",link:"https://github.com/p32929/HouseAds2"},{title:"Android App Updater",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A simple, Lightweight App Updater Library for Android",link:"https://github.com/p32929/AndroidAppUpdater"},{title:"Office About",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A simple about screen library for Android for a Team of people",link:"https://github.com/p32929/OfficeAbout"},{title:"Json Viewer Android",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A simple JSON Viewer for Android"},{title:"Android Receivers Library",logo:"https://www.vectorlogo.zone/logos/android/android-icon.svg",desc:"A library for simpler BroadcastReceiver implementations"},{title:"Fay",logo:"https://crates.io/assets/cargo.png",desc:"A simple cross platform CLI app written in Rust to automate multiple shell ( bash or cmd ) commands",link:"https://crates.io/crates/fay"},{title:"fayfetch",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:"A simple wrapper for Fetch",link:"https://www.npmjs.com/package/fayfetch"},{title:"fjsondb",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:"A fast and simple JSON database for NodeJS",link:"https://www.npmjs.com/package/fjsondb"},{title:"str_template",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:"A fast and simple string templating library, written in TypeScript ( Supports both Client side and Server side JavaScript / TypeScript )",link:"https://www.npmjs.com/package/str-template-ts"},{title:"use-megamind",logo:"https://avatars.githubusercontent.com/u/6078720?s=200&v=4",desc:" A simple react hook for managing asynchronous function calls with ease on the client side ",link:"https://github.com/p32929/use-megamind"},{title:"EasiestDB",logo:"https://cdn.iconscout.com/icon/free/png-256/free-flutter-3521432-2944876.png",desc:"The Easiest and the Laziest approach to Flutter SQL Database.",link:"https://pub.dev/packages/easiestdb"},{title:"Simply Wifi",logo:"https://cdn.iconscout.com/icon/free/png-256/free-flutter-3521432-2944876.png",desc:"A simplified version of the wifi_iot package",link:"https://pub.dev/packages/simply_wifi"},{title:"audio_duration",logo:"https://cdn.iconscout.com/icon/free/png-256/free-flutter-3521432-2944876.png",desc:"Just a simple flutter package to get the duration of any audio file ( like: mp3 ) in milliseconds",link:"https://pub.dev/packages/audio_duration"}]},{text:"Extensions / Plugins / Addons",arr:[{title:"vscode nvim leave insertmode",logo:"https://code.visualstudio.com/assets/images/code-stable.png",desc:"This basic VSCode extension ensures that neovim is in normal mode switching between text editor panels.",link:"https://marketplace.visualstudio.com/items?itemName=p32929.vscode-nvim-leave-insertmode"},{title:"one console log",logo:"https://code.visualstudio.com/assets/images/code-stable.png",desc:"A modified version of the turbo-console-log that adds only one line of console instead of multiples.",link:"https://marketplace.visualstudio.com/items?itemName=p32929.one-console-log"},{title:"Home",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/e/e1/Google_Chrome_icon_%28February_2022%29.svg/800px-Google_Chrome_icon_%28February_2022%29.svg.png",desc:"A Simple homepage extension created using Shadcn, React, TypeScript, usm-redux etc ",link:"https://github.com/p32929/Home"},{title:"obsidotion",logo:"https://obsidian.md/images/obsidian-logo-gradient.svg",desc:"Asimple obsidian plugin that syncs from/to obsidian/notion ",link:"https://github.com/p32929/obsidotion"}]}]),Qn($t,"contacts",[{text:"Contact me",arr:[{title:"WhatsApp ( Recommended )",logo:"https://user-images.githubusercontent.com/6418354/155842184-b064bf36-de8e-4317-8f8e-cb7755eed995.png",link:"https://api.whatsapp.com/send?phone=8801796306262",desc:"+8801796306262"},{title:"Email",logo:"https://cdn3d.iconscout.com/3d/premium/thumb/email-address-4437044-3684811.png",desc:"p32929.ceo@gmail.com",link:"mailto:p32929.ceo@gmail.com"},{title:"Telegram",logo:"https://cdn-icons-png.flaticon.com/128/2111/2111646.png",desc:"@p32929",link:"https://t.me/p32929"}]},{text:"Others",arr:[{title:"Anywhere on the internet",logo:"https://user-images.githubusercontent.com/6418354/155840900-91ac076a-8d2b-45dc-b346-66f72d376d4b.png",desc:"@p32929"},{title:"GitHub",logo:"https://cdn-icons-png.flaticon.com/128/1051/1051275.png",link:"https://github.com/p32929/"},{title:"LinkedIn",logo:"https://user-images.githubusercontent.com/6418354/155841027-8698cb12-7ddd-4604-a4ea-c618ddbc1cd8.png",link:"https://www.linkedin.com/in/p32929/"},{title:"Facebook",logo:"https://user-images.githubusercontent.com/6418354/155840898-9e2327aa-a280-45e3-8266-8268242abda4.png",link:"https://www.facebook.com/p32929"},{title:"Twitter",logo:"https://user-images.githubusercontent.com/6418354/155841031-532d5d6e-797a-4da1-8064-48d266b69ab2.png",link:"https://twitter.com/p32929"},{title:"Instagram",logo:"https://user-images.githubusercontent.com/6418354/155841023-0b842621-56a3-42ec-81f1-3944034b09c7.png",link:"https://www.instagram.com/p32929/"},{title:"Fiverr",logo:"https://cdn.worldvectorlogo.com/logos/fiverr-1.svg",link:"https://www.fiverr.com/users/fayazbinsalam/"},{title:"Upwork",logo:"https://cdn.worldvectorlogo.com/logos/upwork-roundedsquare-1.svg",link:"https://www.upwork.com/freelancers/~017dbf657b99b0c1c1"},{title:"Medium",logo:"https://seeklogo.com/images/M/medium-logo-93CDCF6451-seeklogo.com.png",link:"https://medium.com/@p32929_77176"},{title:"xda",logo:"https://www.svgrepo.com/show/331651/xda-developers.svg",link:"https://forum.xda-developers.com/m/p32929.5346826/"},{title:"Product Hunt",logo:"https://seeklogo.com/images/P/product-hunt-logo-A144953C4C-seeklogo.com.png?v=637846885100000000",link:"https://www.producthunt.com/@p32929"},{title:"UVA Online Judge",logo:"https://github.com/p32929/portfolio-v2/assets/6418354/5e21914b-9dfd-4394-bfa3-d2e216e8ce39",link:"https://uhunt.onlinejudge.org/id/590978"},{title:"URI Online Judge",logo:"https://user-images.githubusercontent.com/26368939/110052090-be0a0b00-7d35-11eb-8827-993190a9568e.png",link:"https://www.beecrowd.com.br/judge/en/profile/76542"},{title:"Buy Me a Coffee",logo:"https://cdn.iconscout.com/icon/free/png-256/free-buymeacoffee-3628667-3029892.png",link:"https://www.buymeacoffee.com/p32929"},{title:"Skype",logo:"https://user-images.githubusercontent.com/6418354/155840899-62c1fe8e-66a6-4492-9acc-5bd504ac21ef.png",desc:"p32929",link:"skype:p32929?chat"}]},{text:"Thank you for visiting my portfolio",arr:[{title:"Click on the link button",desc:"To create your own portfolio. It will only take around 3 minutes",logo:"https://cdn.iconscout.com/icon/premium/png-256-thumb/gift-2990371-2484427.png",link:"https://github.com/p32929/p32929.github.io/"}]}]);const Kt={initialInformation:$t.initialInformation,directMessageItems:$t.directMessageItems,routes:[{name:"About",items:$t.about},{name:"Skills",items:$t.skills},{name:"Projects",items:$t.projects},{name:"Contact",items:$t.contacts}]};function zw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=KC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Mp);return a[0]===""&&a.length!==1&&a.shift(),Bw(a,t)||HC(s)},getConflictingClassGroupIds:(s,a)=>{const u=n[s]||[];return a&&r[s]?[...u,...r[s]]:u}}},Bw=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Bw(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Mp);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},ov=/^\[(.+)\]$/,HC=e=>{if(ov.test(e)){const t=ov.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},KC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return YC(Object.entries(e.classGroups),n).forEach(([i,s])=>{Zf(s,r,i,t)}),r},Zf=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:iv(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(qC(o)){Zf(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Zf(s,iv(t,i),n,r)})})},iv=(e,t)=>{let n=e;return t.split(Mp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},qC=e=>e.isThemeGetter,YC=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,XC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},$w="!",QC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const u=[];let l=0,c=0,f;for(let x=0;xc?f-c:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:s}):s},ZC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},JC=e=>({cache:XC(e.cacheSize),parseClassName:QC(e),...GC(e)}),ek=/\s+/,tk=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(ek);let a="";for(let u=s.length-1;u>=0;u-=1){const l=s[u],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:m}=n(l);let g=!!m,y=r(g?d.substring(0,m):d);if(!y){if(!g){a=l+(a.length>0?" "+a:a);continue}if(y=r(d),!y){a=l+(a.length>0?" "+a:a);continue}g=!1}const x=ZC(c).join(":"),h=f?x+$w:x,p=h+y;if(i.includes(p))continue;i.push(p);const v=o(y,g);for(let b=0;b0?" "+a:a)}return a};function nk(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=JC(l),r=n.cache.get,o=n.cache.set,i=a,a(u)}function a(u){const l=r(u);if(l)return l;const c=tk(u,n);return o(u,c),c}return function(){return i(nk.apply(null,arguments))}}const ge=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Gw=/^\[(?:([a-z-]+):)?(.+)\]$/i,ok=/^\d+\/\d+$/,ik=new Set(["px","full","screen"]),sk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ak=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ck=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_n=e=>Go(e)||ik.has(e)||ok.test(e),Jn=e=>gi(e,"length",yk),Go=e=>!!e&&!Number.isNaN(Number(e)),xc=e=>gi(e,"number",Go),Oi=e=>!!e&&Number.isInteger(Number(e)),fk=e=>e.endsWith("%")&&Go(e.slice(0,-1)),ee=e=>Gw.test(e),er=e=>sk.test(e),dk=new Set(["length","size","percentage"]),pk=e=>gi(e,dk,Hw),hk=e=>gi(e,"position",Hw),mk=new Set(["image","url"]),vk=e=>gi(e,mk,bk),gk=e=>gi(e,"",wk),Mi=()=>!0,gi=(e,t,n)=>{const r=Gw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},yk=e=>ak.test(e)&&!lk.test(e),Hw=()=>!1,wk=e=>uk.test(e),bk=e=>ck.test(e),xk=()=>{const e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),o=ge("borderColor"),i=ge("borderRadius"),s=ge("borderSpacing"),a=ge("borderWidth"),u=ge("contrast"),l=ge("grayscale"),c=ge("hueRotate"),f=ge("invert"),d=ge("gap"),m=ge("gradientColorStops"),g=ge("gradientColorStopPositions"),y=ge("inset"),x=ge("margin"),h=ge("opacity"),p=ge("padding"),v=ge("saturate"),b=ge("scale"),E=ge("sepia"),P=ge("skew"),k=ge("space"),T=ge("translate"),O=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",ee,t],F=()=>[ee,t],K=()=>["",_n,Jn],V=()=>["auto",Go,ee],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",ee],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Go,ee];return{cacheSize:500,separator:":",theme:{colors:[Mi],spacing:[_n,Jn],blur:["none","",er,ee],brightness:G(),borderColor:[e],borderRadius:["none","","full",er,ee],borderSpacing:F(),borderWidth:K(),contrast:G(),grayscale:R(),hueRotate:G(),invert:R(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[fk,Jn],inset:z(),margin:z(),opacity:G(),padding:F(),saturate:G(),scale:G(),sepia:R(),skew:G(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[er]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),ee]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oi,ee]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ee]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Oi,ee]}],"grid-cols":[{"grid-cols":[Mi]}],"col-start-end":[{col:["auto",{span:["full",Oi,ee]},ee]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[Mi]}],"row-start-end":[{row:["auto",{span:[Oi,ee]},ee]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ee,t]}],"min-w":[{"min-w":[ee,t,"min","max","fit"]}],"max-w":[{"max-w":[ee,t,"none","full","min","max","fit","prose",{screen:[er]},er]}],h:[{h:[ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",er,Jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xc]}],"font-family":[{font:[Mi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ee]}],"line-clamp":[{"line-clamp":["none",Go,xc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_n,ee]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_n,Jn]}],"underline-offset":[{"underline-offset":["auto",_n,ee]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),hk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[_n,ee]}],"outline-w":[{outline:[_n,Jn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[_n,Jn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",er,gk]}],"shadow-color":[{shadow:[Mi]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",er,ee]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ee]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Oi,ee]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_n,Jn,xc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Sk=rk(xk);function ie(...e){return Sk(WC(e))}const Jf=(e,t)=>{const n=e.length;if(t<0&&(t+=n),t>=0&&t{var t;(t=document.getElementById(e))==null||t.scrollIntoView({behavior:"smooth"}),console.log("Scrolled")},Es=e=>{const t=["http","skype:","mailto:"];for(var n=0;n{const e=[];Kt.directMessageItems.forEach(n=>{Es(n.link)&&e.push(n.link)});const t=n=>{n.forEach(r=>{r.link&&Es(r.link)&&e.push(r.link),r.arr&&t(r.arr)})};if(Kt.routes.forEach(n=>{t(n.items)}),e.length>0){const n=Math.floor(Math.random()*e.length);return e[n]}else return null},Vs=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Vs.displayName="Card";const Tk=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("flex flex-col space-y-1.5 p-6",e),...t}));Tk.displayName="CardHeader";const Kw=w.forwardRef(({className:e,...t},n)=>S.jsx("h3",{ref:n,className:ie("font-semibold leading-none tracking-tight",e),...t}));Kw.displayName="CardTitle";const qw=w.forwardRef(({className:e,...t},n)=>S.jsx("p",{ref:n,className:ie("text-sm text-muted-foreground",e),...t}));qw.displayName="CardDescription";const du=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("p-6 pt-0",e),...t}));du.displayName="CardContent";const Pk=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:ie("flex items-center p-6 pt-0",e),...t}));Pk.displayName="CardFooter";function Ck(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function pu(...e){return t=>e.forEach(n=>Ck(n,t))}function $e(...e){return w.useCallback(pu(...e),e)}var eo=w.forwardRef((e,t)=>{const{children:n,...r}=e,o=w.Children.toArray(n),i=o.find(_k);if(i){const s=i.props.children,a=o.map(u=>u===i?w.Children.count(s)>1?w.Children.only(null):w.isValidElement(s)?s.props.children:null:u);return S.jsx(ed,{...r,ref:t,children:w.isValidElement(s)?w.cloneElement(s,void 0,a):null})}return S.jsx(ed,{...r,ref:t,children:n})});eo.displayName="Slot";var ed=w.forwardRef((e,t)=>{const{children:n,...r}=e;if(w.isValidElement(n)){const o=Rk(n);return w.cloneElement(n,{...Ak(r,n.props),ref:t?pu(t,o):o})}return w.Children.count(n)>1?w.Children.only(null):null});ed.displayName="SlotClone";var kk=({children:e})=>S.jsx(S.Fragment,{children:e});function _k(e){return w.isValidElement(e)&&e.type===kk}function Ak(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Rk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Yw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,av=Ik,Xw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return av(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(l=>{const c=n==null?void 0:n[l],f=i==null?void 0:i[l];if(c===null)return null;const d=sv(c)||sv(f);return o[l][d]}),a=n&&Object.entries(n).reduce((l,c)=>{let[f,d]=c;return d===void 0||(l[f]=d),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,c)=>{let{class:f,className:d,...m}=c;return Object.entries(m).every(g=>{let[y,x]=g;return Array.isArray(x)?x.includes({...i,...a}[y]):{...i,...a}[y]===x})?[...l,f,d]:l},[]);return av(e,s,u,n==null?void 0:n.class,n==null?void 0:n.className)},Ok=Xw("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),wn=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?eo:"button";return S.jsx(s,{className:ie(Ok({variant:t,size:n,className:e})),ref:i,...o})});wn.displayName="Button";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -47,82 +47,82 @@ Error generating stack: `+i.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Nk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),gt=(e,t)=>{const n=w.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,...l},c)=>w.createElement("svg",{ref:c,...Mk,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:["lucide",`lucide-${Nk(e)}`,a].join(" "),...l},[...t.map(([f,d])=>w.createElement(f,d)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/** + */const Nk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),vt=(e,t)=>{const n=w.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,...l},c)=>w.createElement("svg",{ref:c,...Mk,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:["lucide",`lucide-${Nk(e)}`,a].join(" "),...l},[...t.map(([f,d])=>w.createElement(f,d)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Dk=gt("Asterisk",[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]]);/** + */const Dk=vt("Asterisk",[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Lk=gt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const Lk=vt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const jk=gt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + */const jk=vt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Fk=gt("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/** + */const Fk=vt("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Vk=gt("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** + */const Vk=vt("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Uk=gt("ImageOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]);/** + */const Uk=vt("ImageOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const zk=gt("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** + */const zk=vt("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Bk=gt("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** + */const Bk=vt("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $k=gt("PersonStanding",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]]);/** + */const $k=vt("PersonStanding",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Wk=gt("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** + */const Wk=vt("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Gk=gt("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/** + */const Gk=vt("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Hk=gt("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/** + */const Hk=vt("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Kk=gt("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** + */const Kk=vt("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const qk=gt("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** + */const qk=vt("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Qw=gt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Us=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),hu=w.createContext({}),mu=w.createContext(null),Np=typeof window<"u",vu=Np?w.useLayoutEffect:w.useEffect,Zw=w.createContext({strict:!1}),gu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Yk="framerAppearId",Jw="data-"+gu(Yk),Xk={skipAnimations:!1,useManualTiming:!1};function Qk(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(u.schedule(l),e()),l(s)}const u={schedule:(l,c=!1,f=!1)=>{const m=f&&r?t:n;return c&&i.add(l),m.has(l)||m.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(s=l,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,u.process(l))}};return u}const ya=["read","resolveKeyframes","update","preRender","render","postRender"],Zk=40;function eb(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ya.reduce((h,p)=>(h[p]=Qk(i),h),{}),{read:a,resolveKeyframes:u,update:l,preRender:c,render:f,postRender:d}=s,m=()=>{const h=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,Zk),1),o.timestamp=h,o.isProcessing=!0,a.process(o),u.process(o),l.process(o),c.process(o),f.process(o),d.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:ya.reduce((h,p)=>{const v=s[p];return h[p]=(b,E=!1,C=!1)=>(n||g(),v.schedule(b,E,C)),h},{}),cancel:h=>{for(let p=0;p{f&&f.update(n,u)});const m=n[Jw],g=w.useRef(!!m&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,m)));return vu(()=>{f&&(f.updateFeatures(),Dp.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())}),w.useEffect(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current=!1,lv||(lv=!0,queueMicrotask(e_)))}),f}function e_(){window.MotionHandoffIsComplete=!0}function t_(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nb(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Mo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function nb(e){if(e)return e.options.allowProjection!==!1?e.projection:nb(e.parent)}function n_(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Mo(n)&&(n.current=r))},[t])}function Ts(e){return typeof e=="string"||Array.isArray(e)}function Cs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Lp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jp=["initial",...Lp];function yu(e){return Cs(e.animate)||jp.some(t=>Ts(e[t]))}function rb(e){return!!(yu(e)||e.variants)}function r_(e,t){if(yu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ts(n)?n:void 0,animate:Ts(r)?r:void 0}}return e.inherit!==!1?t:{}}function o_(e){const{initial:t,animate:n}=r_(e,w.useContext(hu));return w.useMemo(()=>({initial:t,animate:n}),[uv(t),uv(n)])}function uv(e){return Array.isArray(e)?e.join(" "):e}const cv={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"]},oi={};for(const e in cv)oi[e]={isEnabled:t=>cv[e].some(n=>!!t[n])};function i_(e){for(const t in e)oi[t]={...oi[t],...e[t]}}const Fp=w.createContext({}),s_=Symbol.for("motionComponentSymbol"),ut=e=>e;let td=ut;function a_({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&i_(e);function i(a,u){let l;const c={...w.useContext(Us),...a,layoutId:l_(a)},{isStatic:f}=c,d=o_(a),m=r(a,f);if(!f&&Np){u_();const g=c_(c);l=g.MeasureLayout,d.visualElement=Jk(o,m,c,t,g.ProjectionNode)}return S.jsxs(hu.Provider,{value:d,children:[l&&d.visualElement?S.jsx(l,{visualElement:d.visualElement,...c}):null,n(o,a,n_(m,d.visualElement,u),m,f,d.visualElement)]})}const s=w.forwardRef(i);return s[s_]=o,s}function l_({layoutId:e}){const t=w.useContext(Fp).id;return t&&e!==void 0?t+"-"+e:e}function u_(e,t){w.useContext(Zw).strict}function c_(e){const{drag:t,layout:n}=oi;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}}function f_(e){function t(r,o={}){return a_(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const d_=["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 Vp(e){return typeof e!="string"||e.includes("-")?!1:!!(d_.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ol={};function p_(e){Object.assign(Ol,e)}const zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mr=new Set(zs);function ob(e,{layout:t,layoutId:n}){return Mr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ol[e]||e==="opacity")}const Ye=e=>!!(e&&e.getVelocity),ib=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Er=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Zi={...yi,transform:e=>Er(0,1,e)},wa={...yi,default:1},Ji=e=>Math.round(e*1e5)/1e5,Up=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,h_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,m_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Bs(e){return typeof e=="string"}function v_(e){return e==null}const $s=e=>({test:t=>Bs(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tr=$s("deg"),Tn=$s("%"),X=$s("px"),g_=$s("vh"),y_=$s("vw"),fv={...Tn,parse:e=>Tn.parse(e)/100,transform:e=>Tn.transform(e*100)},dv={...yi,transform:Math.round},zp={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,size:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,rotate:tr,rotateX:tr,rotateY:tr,rotateZ:tr,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:tr,skewX:tr,skewY:tr,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:Zi,originX:fv,originY:fv,originZ:X,zIndex:dv,backgroundPositionX:X,backgroundPositionY:X,fillOpacity:Zi,strokeOpacity:Zi,numOctaves:dv},w_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},b_=zs.length;function x_(e,t,n){let r="",o=!0;for(let i=0;it=>typeof t=="string"&&t.startsWith(e),ab=sb("--"),S_=sb("var(--"),Bp=e=>S_(e)?E_.test(e.split("/*")[0].trim()):!1,E_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function $p(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const u in t){const l=t[u];if(Mr.has(u)){s=!0;continue}else if(ab(u)){o[u]=l;continue}else{const c=ib(l,zp[u]);u.startsWith("origin")?(a=!0,i[u]=c):r[u]=c}}if(t.transform||(s||n?r.transform=x_(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=i;r.transformOrigin=`${u} ${l} ${c}`}}const Wp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lb(e,t,n){for(const r in t)!Ye(t[r])&&!ob(r,n)&&(e[r]=t[r])}function T_({transformTemplate:e},t){return w.useMemo(()=>{const n=Wp();return $p(n,t,e),Object.assign({},n.vars,n.style)},[t])}function C_(e,t){const n=e.style||{},r={};return lb(r,n,e),Object.assign(r,T_(e,t)),r}function P_(e,t){const n={},r=C_(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 k_=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||k_.has(e)}let ub=e=>!Ml(e);function __(e){e&&(ub=t=>t.startsWith("on")?!Ml(t):e(t))}try{__(require("@emotion/is-prop-valid").default)}catch{}function A_(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ub(o)||n===!0&&Ml(o)||!t&&!Ml(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function pv(e,t,n){return typeof e=="string"?e:X.transform(t+n*e)}function R_(e,t,n){const r=pv(t,e.x,e.width),o=pv(n,e.y,e.height);return`${r} ${o}`}const I_={offset:"stroke-dashoffset",array:"stroke-dasharray"},O_={offset:"strokeDashoffset",array:"strokeDasharray"};function M_(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?I_:O_;e[i.offset]=X.transform(-r);const s=X.transform(t),a=X.transform(n);e[i.array]=`${s} ${a}`}function Gp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:u=0,...l},c,f){if($p(e,l,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m,dimensions:g}=e;d.transform&&(g&&(m.transform=d.transform),delete d.transform),g&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=R_(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&M_(d,s,a,u,!1)}const cb=()=>({...Wp(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function N_(e,t,n,r){const o=w.useMemo(()=>{const i=cb();return Gp(i,t,Hp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};lb(i,e.style,e),o.style={...i,...o.style}}return o}function D_(e=!1){return(n,r,o,{latestValues:i},s)=>{const u=(Vp(n)?N_:P_)(r,i,s,n),l=A_(r,typeof n=="string",e),c=n!==w.Fragment?{...l,...u,ref:o}:{},{children:f}=r,d=w.useMemo(()=>Ye(f)?f.get():f,[f]);return w.createElement(n,{...c,children:d})}}function fb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const db=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 pb(e,t,n,r){fb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(db.has(o)?o:gu(o),t.attrs[o])}function Kp(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ye(o[s])||t.style&&Ye(t.style[s])||ob(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function hb(e,t,n){const r=Kp(e,t,n);for(const o in e)if(Ye(e[o])||Ye(t[o])){const i=zs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function hv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qp(e,t,n,r){if(typeof t=="function"){const[o,i]=hv(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=hv(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Ws(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const nd=e=>Array.isArray(e),L_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),j_=e=>nd(e)?e[e.length-1]||0:e;function Ya(e){const t=Ye(e)?e.get():e;return L_(t)?t.toValue():t}const mb=new Set(["opacity","clipPath","filter","transform"]);function vb(e){if(Mr.has(e))return"transform";if(mb.has(e))return gu(e)}function wu(e,t){e.indexOf(t)===-1&&e.push(t)}function bu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function F_({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const u={latestValues:U_(o,i,s,a?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(o,l,u)),u}const gb=e=>(t,n)=>{const r=w.useContext(hu),o=w.useContext(mu),i=()=>F_(e,t,r,o,n);return n?i():Ws(i)};function V_(e,t){const n=vb(t);n&&wu(e,n)}function mv(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const p in x){let v=x[p];if(Array.isArray(v)){const b=g?v.length-1:0;v=v[b]}v!==null&&(s[p]=v)}for(const p in h)s[p]=h[p]}),u&&(f&&c!==!1&&!Cs(f)&&mv(e,f,x=>{for(const h in x)V_(a,h)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:se,cancel:Cn,state:Ke,steps:Sc}=eb(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),z_={useVisualState:gb({scrapeMotionValuesFromProps:hb,createRenderState:cb,onMount:(e,t,{renderState:n,latestValues:r})=>{se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),se.render(()=>{Gp(n,r,Hp(t.tagName),e.transformTemplate),pb(t,n)})}})},B_={useVisualState:gb({applyWillChange:!0,scrapeMotionValuesFromProps:Kp,createRenderState:Wp})};function $_(e,{forwardMotionProps:t=!1},n,r){return{...Vp(e)?z_:B_,preloadedFeatures:n,useRender:D_(t),createVisualElement:r,Component:e}}function Nn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const yb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const W_=e=>t=>yb(t)&&e(t,xu(t));function Ln(e,t,n,r){return Nn(e,t,W_(n),r)}const G_=(e,t)=>n=>t(e(n)),jn=(...e)=>e.reduce(G_);function wb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const vv=wb("dragHorizontal"),gv=wb("dragVertical");function bb(e){let t=!1;if(e==="y")t=gv();else if(e==="x")t=vv();else{const n=vv(),r=gv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function xb(){const e=bb(!0);return e?(e(),!1):!0}class Nr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function yv(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||xb())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const u=a[r];u&&se.postRender(()=>u(i,s))};return Ln(e.current,n,o,{passive:!e.getProps()[r]})}class H_ extends Nr{mount(){this.unmount=jn(yv(this.node,!0),yv(this.node,!1))}unmount(){}}class K_ extends Nr{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=jn(Nn(this.node.current,"focus",()=>this.onFocus()),Nn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Sb=(e,t)=>t?e===t?!0:Sb(e,t.parentElement):!1;function Ec(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,xu(n))}class q_ extends Nr{constructor(){super(...arguments),this.removeStartListeners=ut,this.removeEndListeners=ut,this.removeAccessibleListeners=ut,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Ln(window,"pointerup",(a,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),d=!f&&!Sb(this.node.current,a.target)?c:l;d&&se.update(()=>d(a,u))},{passive:!(r.onTap||r.onPointerUp)}),s=Ln(window,"pointercancel",(a,u)=>this.cancelPress(a,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ec("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&se.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Nn(this.node.current,"keyup",s),Ec("down",(a,u)=>{this.startPress(a,u)})},n=Nn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ec("cancel",(i,s)=>this.cancelPress(i,s))},o=Nn(this.node.current,"blur",r);this.removeAccessibleListeners=jn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&se.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&se.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ln(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Nn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const rd=new WeakMap,Tc=new WeakMap,Y_=e=>{const t=rd.get(e.target);t&&t(e)},X_=e=>{e.forEach(Y_)};function Q_({root:e,...t}){const n=e||document;Tc.has(n)||Tc.set(n,{});const r=Tc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(X_,{root:e,...t})),r[o]}function Z_(e,t,n){const r=Q_(t);return rd.set(e,n),r.observe(e),()=>{rd.delete(e),r.unobserve(e)}}const J_={some:0,all:1};class e2 extends Nr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:J_[o]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return Z_(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(t2(t,n))&&this.startObserver()}unmount(){}}function t2({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const n2={inView:{Feature:e2},tap:{Feature:q_},focus:{Feature:K_},hover:{Feature:H_}};function Eb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,Vn=e=>e/1e3,r2={type:"spring",stiffness:500,damping:25,restSpeed:10},o2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i2={type:"keyframes",duration:.8},s2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},a2=(e,{keyframes:t})=>t.length>2?i2:Mr.has(e)?e.startsWith("scale")?o2(t[1]):r2:s2;function l2({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function Yp(e,t){return e[t]||e.default||e}const u2=e=>e!==null;function Eu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(u2),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Tb=e=>/^0[^.\s]+$/u.test(e);function c2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Tb(e):!0}const Cb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),f2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function d2(e){const t=f2.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Pb(e,t,n=1){const[r,o]=d2(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Cb(s)?parseFloat(s):s}return Bp(o)?Pb(o,t,n+1):o}const p2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wv=e=>e===yi||e===X,bv=(e,t)=>parseFloat(e.split(", ")[t]),xv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return bv(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?bv(i[1],e):0}},h2=new Set(["x","y","z"]),m2=zs.filter(e=>!h2.has(e));function v2(e){const t=[];return m2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ii={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:xv(4,13),y:xv(5,14)};ii.translateX=ii.x;ii.translateY=ii.y;const kb=e=>t=>t.test(e),g2={test:e=>e==="auto",parse:e=>e},_b=[yi,X,Tn,tr,y_,g_,g2],Sv=e=>_b.find(kb(e)),qr=new Set;let od=!1,id=!1;function Ab(){if(id){const e=Array.from(qr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=v2(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,od=!1,qr.forEach(e=>e.complete()),qr.clear()}function Rb(){qr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function y2(){Rb(),Ab()}class Xp{constructor(t,n,r,o,i,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=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qr.add(this),od||(od=!0,se.read(Rb),se.resolveKeyframes(Ab))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Bs(n)&&m_.test(n)&&n.startsWith(e)||t&&!v_(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ib=(e,t,n)=>r=>{if(!Bs(r))return r;const[o,i,s,a]=r.match(Up);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},w2=e=>Er(0,255,e),Cc={...yi,transform:e=>Math.round(w2(e))},Wr={test:Qp("rgb","red"),parse:Ib("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cc.transform(e)+", "+Cc.transform(t)+", "+Cc.transform(n)+", "+Ji(Zi.transform(r))+")"};function b2(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const sd={test:Qp("#"),parse:b2,transform:Wr.transform},No={test:Qp("hsl","hue"),parse:Ib("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Tn.transform(Ji(t))+", "+Tn.transform(Ji(n))+", "+Ji(Zi.transform(r))+")"},at={test:e=>Wr.test(e)||sd.test(e)||No.test(e),parse:e=>Wr.test(e)?Wr.parse(e):No.test(e)?No.parse(e):sd.parse(e),transform:e=>Bs(e)?e:e.hasOwnProperty("red")?Wr.transform(e):No.transform(e)};function x2(e){var t,n;return isNaN(e)&&Bs(e)&&(((t=e.match(Up))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(h_))===null||n===void 0?void 0:n.length)||0)>0}const Ob="number",Mb="color",S2="var",E2="var(",Ev="${}",T2=/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 Ps(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(T2,u=>(at.test(u)?(r.color.push(i),o.push(Mb),n.push(at.parse(u))):u.startsWith(E2)?(r.var.push(i),o.push(S2),n.push(u)):(r.number.push(i),o.push(Ob),n.push(parseFloat(u))),++i,Ev)).split(Ev);return{values:n,split:a,indexes:r,types:o}}function Nb(e){return Ps(e).values}function Db(e){const{split:t,types:n}=Ps(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function P2(e){const t=Nb(e);return Db(e)(t.map(C2))}const Tr={test:x2,parse:Nb,createTransformer:Db,getAnimatableNone:P2},k2=new Set(["brightness","contrast","saturate","opacity"]);function _2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Up)||[];if(!r)return e;const o=n.replace(r,"");let i=k2.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const A2=/\b([a-z-]*)\(.*?\)/gu,ad={...Tr,getAnimatableNone:e=>{const t=e.match(A2);return t?t.map(_2).join(" "):e}},R2={...zp,color:at,backgroundColor:at,outlineColor:at,fill:at,stroke:at,borderColor:at,borderTopColor:at,borderRightColor:at,borderBottomColor:at,borderLeftColor:at,filter:ad,WebkitFilter:ad},Zp=e=>R2[e];function Lb(e,t){let n=Zp(e);return n!==ad&&(n=Tr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I2=new Set(["auto","none","0"]);function O2(e,t,n){let r=0,o;for(;r{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function Fb(e){let t;return()=>(t===void 0&&(t=e()),t)}let Xa;function M2(){Xa=void 0}const Un={now:()=>(Xa===void 0&&Un.set(Ke.isProcessing||Xk.useManualTiming?Ke.timestamp:performance.now()),Xa),set:e=>{Xa=e,queueMicrotask(M2)}},Tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tr.test(e)||e==="0")&&!e.startsWith("url("));function N2(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nL2?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&y2(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Un.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:u,isGenerator:l}=this.options;if(!l&&!D2(t,r,o,i))if(s)this.options.duration=0;else{u==null||u(Eu(t,this.options,n)),a==null||a(),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)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Ub(e,t){return t?e*(1e3/t):0}const j2=5;function zb(e,t,n){const r=Math.max(t-j2,0);return Ub(n-e(r),t-r)}const Pc=.001,F2=.01,V2=10,U2=.05,z2=1;function B2({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Er(U2,z2,s),e=Er(F2,V2,Vn(e)),s<1?(o=l=>{const c=l*s,f=c*e,d=c-n,m=ld(l,s),g=Math.exp(-f);return Pc-d/m*g},i=l=>{const f=l*s*e,d=f*n+n,m=Math.pow(s,2)*Math.pow(l,2)*e,g=Math.exp(-f),y=ld(Math.pow(l,2),s);return(-o(l)+Pc>0?-1:1)*((d-m)*g)/y}):(o=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-Pc+c*f},i=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=W2(o,i,a);if(e=Fn(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const $2=12;function W2(e,t,n){let r=n;for(let o=1;o<$2;o++)r=r-e(r)/t(r);return r}function ld(e,t){return e*Math.sqrt(1-t*t)}const G2=["duration","bounce"],H2=["stiffness","damping","mass"];function Cv(e,t){return t.some(n=>e[n]!==void 0)}function K2(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Cv(e,H2)&&Cv(e,G2)){const n=B2(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Bb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:u,mass:l,duration:c,velocity:f,isResolvedFromDuration:d}=K2({...r,velocity:-Vn(r.velocity||0)}),m=f||0,g=u/(2*Math.sqrt(a*l)),y=i-o,x=Vn(Math.sqrt(a/l)),h=Math.abs(y)<5;n||(n=h?.01:2),t||(t=h?.005:.5);let p;if(g<1){const v=ld(x,g);p=b=>{const E=Math.exp(-g*x*b);return i-E*((m+g*x*y)/v*Math.sin(v*b)+y*Math.cos(v*b))}}else if(g===1)p=v=>i-Math.exp(-x*v)*(y+(m+x*y)*v);else{const v=x*Math.sqrt(g*g-1);p=b=>{const E=Math.exp(-g*x*b),C=Math.min(v*b,300);return i-E*((m+g*x*y)*Math.sinh(C)+v*y*Math.cosh(C))/v}}return{calculatedDuration:d&&c||null,next:v=>{const b=p(v);if(d)s.done=v>=c;else{let E=0;g<1&&(E=v===0?Fn(m):zb(p,v,b));const C=Math.abs(E)<=n,k=Math.abs(i-b)<=t;s.done=C&&k}return s.value=s.done?i:b,s}}}function Pv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},m=T=>a!==void 0&&Tu,g=T=>a===void 0?u:u===void 0||Math.abs(a-T)-y*Math.exp(-T/r),v=T=>h+p(T),b=T=>{const O=p(T),D=v(T);d.done=Math.abs(O)<=l,d.value=d.done?h:D};let E,C;const k=T=>{m(d.value)&&(E=T,C=Bb({keyframes:[d.value,g(d.value)],velocity:zb(v,T,d.value),damping:o,stiffness:i,restDelta:l,restSpeed:c}))};return k(0),{calculatedDuration:null,next:T=>{let O=!1;return!C&&E===void 0&&(O=!0,b(T),k(T)),E!==void 0&&T>=E?C.next(T-E):(!O&&b(T),d)}}}const $b=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q2=1e-7,Y2=12;function X2(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=$b(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>q2&&++aX2(i,0,1,e,n);return i=>i===0||i===1?i:$b(o(i),t,r)}const Q2=Gs(.42,0,1,1),Z2=Gs(0,0,.58,1),Wb=Gs(.42,0,.58,1),J2=e=>Array.isArray(e)&&typeof e[0]!="number",Gb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hb=e=>t=>1-e(1-t),Jp=e=>1-Math.sin(Math.acos(e)),Kb=Hb(Jp),eA=Gb(Jp),qb=Gs(.33,1.53,.69,.99),eh=Hb(qb),tA=Gb(eh),nA=e=>(e*=2)<1?.5*eh(e):.5*(2-Math.pow(2,-10*(e-1))),kv={linear:ut,easeIn:Q2,easeInOut:Wb,easeOut:Z2,circIn:Jp,circInOut:eA,circOut:Kb,backIn:eh,backInOut:tA,backOut:qb,anticipate:nA},_v=e=>{if(Array.isArray(e)){td(e.length===4);const[t,n,r,o]=e;return Gs(t,n,r,o)}else if(typeof e=="string")return td(kv[e]!==void 0),kv[e];return e},ks=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Pe=(e,t,n)=>e+(t-e)*n;function kc(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 rA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;o=kc(u,a,e+1/3),i=kc(u,a,e),s=kc(u,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Nl(e,t){return n=>n>0?t:e}const _c=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},oA=[sd,Wr,No],iA=e=>oA.find(t=>t.test(e));function Av(e){const t=iA(e);if(!t)return!1;let n=t.parse(e);return t===No&&(n=rA(n)),n}const Rv=(e,t)=>{const n=Av(e),r=Av(t);if(!n||!r)return Nl(e,t);const o={...n};return i=>(o.red=_c(n.red,r.red,i),o.green=_c(n.green,r.green,i),o.blue=_c(n.blue,r.blue,i),o.alpha=Pe(n.alpha,r.alpha,i),Wr.transform(o))},ud=new Set(["none","hidden"]);function sA(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function aA(e,t){return n=>Pe(e,t,n)}function th(e){return typeof e=="number"?aA:typeof e=="string"?Bp(e)?Nl:at.test(e)?Rv:cA:Array.isArray(e)?Yb:typeof e=="object"?at.test(e)?Rv:lA:Nl}function Yb(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>th(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function uA(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=Tr.createTransformer(t),r=Ps(e),o=Ps(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?ud.has(e)&&!o.values.length||ud.has(t)&&!r.values.length?sA(e,t):jn(Yb(uA(r,o),o.values),n):Nl(e,t)};function Xb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):th(e)(e,t)}function fA(e,t,n){const r=[],o=n||Xb,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fA(t,r,o),a=s.length,u=l=>{let c=0;if(a>1)for(;cu(Er(e[0],e[i-1],l)):u}function dA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ks(0,t,r);e.push(Pe(n,1,o))}}function pA(e){const t=[0];return dA(t,e.length-1),t}function hA(e,t){return e.map(n=>n*t)}function mA(e,t){return e.map(()=>t||Wb).splice(0,e.length-1)}function Dl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=J2(r)?r.map(_v):_v(r),i={done:!1,value:t[0]},s=hA(n&&n.length===t.length?n:pA(t),e),a=Qb(s,t,{ease:Array.isArray(o)?o:mA(t,o)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const Iv=2e4;function vA(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Iv?1/0:t}const gA=e=>{const t=({timestamp:n})=>e(n);return{start:()=>se.update(t,!0),stop:()=>Cn(t),now:()=>Ke.isProcessing?Ke.timestamp:Un.now()}},yA={decay:Pv,inertia:Pv,tween:Dl,keyframes:Dl,spring:Bb},wA=e=>e/100;class Tu extends Vb{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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Xp,a=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=yA[n]||Dl;let u,l;a!==Dl&&typeof t[0]!="number"&&(u=jn(wA,Xb(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=vA(c));const{calculatedDuration:f}=c,d=f+o,m=d*(r+1)-o;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:f,resolvedDuration:d,totalDuration:m}}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:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:d,repeat:m,repeatType:g,repeatDelay:y,onUpdate:x}=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 h=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,b=i;if(m){const T=Math.min(this.currentTime,c)/f;let O=Math.floor(T),D=T%1;!D&&T>=1&&(D=1),D===1&&O--,O=Math.min(O,m+1),!!(O%2)&&(g==="reverse"?(D=1-D,y&&(D-=y/f)):g==="mirror"&&(b=s)),v=Er(0,1,D)*f}const E=p?{done:!1,value:u[0]}:b.next(v);a&&(E.value=a(E.value));let{done:C}=E;!p&&l!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return k&&o!==void 0&&(E.value=Eu(u,this.options,o)),x&&x(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Vn(t.calculatedDuration):0}get time(){return Vn(this.currentTime)}set time(t){t=Fn(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=Vn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=gA,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";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)}}function bA(e){return new Tu(e)}const Zb=e=>Array.isArray(e)&&typeof e[0]=="number";function Jb(e){return!!(!e||typeof e=="string"&&e in nh||Zb(e)||Array.isArray(e)&&e.every(Jb))}const Ui=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ui([0,.65,.55,1]),circOut:Ui([.55,0,1,.45]),backIn:Ui([.31,.01,.66,-.59]),backOut:Ui([.33,1.53,.69,.99])};function xA(e){return e1(e)||nh.easeOut}function e1(e){if(e)return Zb(e)?Ui(e):Array.isArray(e)?e.map(xA):nh[e]}function SA(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=e1(a);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const EA=Fb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ll=10,TA=2e4;function CA(e){return e.type==="spring"||!Jb(e.ease)}function PA(e,t){const n=new Tu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(CA(this.options)){const{onComplete:d,onUpdate:m,motionValue:g,element:y,...x}=this.options,h=PA(t,x);t=h.keyframes,t.length===1&&(t[1]=t[0]),o=h.duration,i=h.times,s=h.ease,a="keyframes"}const f=SA(u.owner.current,l,t,{...this.options,duration:o,times:i,ease:s});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(f.timeline=this.pendingTimeline,this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;u.set(Eu(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Vn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Vn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}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 ut;const{animation:r}=n;r.timeline=t,r.onfinish=null}return ut}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:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:f,element:d,...m}=this.options,g=new Tu({...m,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=Fn(this.time);l.setWithVelocity(g.sample(y-Ll).value,g.sample(y).value,Ll)}const{onStop:u}=this.options;u&&u(),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:o,repeatType:i,damping:s,type:a}=t;return EA()&&r&&mb.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function kA(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return se.update(r,!0),()=>Cn(r)}const _A=Fb(()=>window.ScrollTimeline!==void 0);class AA{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(_A()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),kA(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),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;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const rh=(e,t,n,r={},o,i,s)=>a=>{const u=Yp(r,e)||{},l=u.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fn(l);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-c,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};l2(u)||(f={...f,...a2(e,f)}),f.duration&&(f.duration=Fn(f.duration)),f.repeatDelay&&(f.repeatDelay=Fn(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let d=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const m=Eu(f.keyframes,u);if(m!==void 0)return se.update(()=>{f.onUpdate(m),f.onComplete()}),new AA([])}return!i&&Ov.supports(f)?new Ov(f):new Tu(f)};class oh{constructor(){this.subscriptions=[]}add(t){return wu(this.subscriptions,t),()=>bu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e)),es={current:void 0};class t1{constructor(t,n={}){this.version="11.3.28",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Un.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Un.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=RA(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 oh);const r=this.events[t].add(n);return t==="change"?()=>{r(),se.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 es.current&&es.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mv);return Ub(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 si(e,t){return new t1(e,t)}function IA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,si(n))}function OA(e,t){const n=Su(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=j_(i[s]);IA(e,s,a)}}function n1(e){return e.getProps()[Jw]}class MA extends t1{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=vb(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(bu(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function NA(e){return!!(Ye(e)&&e.add)}function cd(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new MA("auto"),e.addValue("willChange",r)),NA(r))return r.add(t)}function DA({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function r1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...u}=t;r&&(s=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const f in u){const d=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),m=u[f];if(m===void 0||c&&DA(c,f))continue;const g={delay:n,...Yp(s||{},f)};let y=!1;if(window.MotionHandoffAnimation){const h=n1(e);if(h){const p=window.MotionHandoffAnimation(h,f,se);p!==null&&(g.startTime=p,y=!0)}}d.start(rh(f,d,m,e.shouldReduceMotion&&Mr.has(f)?{type:!1}:g,e,y,cd(e,f)));const x=d.animation;x&&l.push(x)}return a&&Promise.all(l).then(()=>{se.update(()=>{a&&OA(e,a)})}),l}function fd(e,t,n={}){var r;const o=Su(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(r1(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return LA(e,t,c+l,f,d,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[l,c]=u==="beforeChildren"?[s,a]:[a,s];return l().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function LA(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,u=o===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(jA).forEach((l,c)=>{l.notify("AnimationStart",t),s.push(fd(l,t,{...i,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function jA(e,t){return e.sortNodePosition(t)}function FA(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>fd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=fd(e,t,n);else{const o=typeof t=="function"?Su(e,t,n.custom):t;r=Promise.all(r1(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const VA=[...Lp].reverse(),UA=Lp.length;function zA(e){return t=>Promise.all(t.map(({animation:n,options:r})=>FA(e,n,r)))}function BA(e){let t=zA(e),n=Nv(),r=!0;const o=u=>(l,c)=>{var f;const d=Su(e,c,u==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:m,transitionEnd:g,...y}=d;l={...l,...y,...g}}return l};function i(u){t=u(e)}function s(u){const l=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set;let m={},g=1/0;for(let x=0;xg&&b,O=!1;const D=Array.isArray(v)?v:[v];let z=D.reduce(o(h),{});E===!1&&(z={});const{prevResolvedValues:F={}}=p,K={...F,...z},V=B=>{T=!0,d.has(B)&&(O=!0,d.delete(B)),p.needsAnimating[B]=!0;const $=e.getValue(B);$&&($.liveStyle=!1)};for(const B in K){const $=z[B],W=F[B];if(m.hasOwnProperty(B))continue;let M=!1;nd($)&&nd(W)?M=!Eb($,W):M=$!==W,M?$!=null?V(B):d.add(B):$!==void 0&&d.has(B)?V(B):p.protectedKeys[B]=!0}p.prevProp=v,p.prevResolvedValues=z,p.isActive&&(m={...m,...z}),r&&e.blockInitialAnimation&&(T=!1),T&&(!C||O)&&f.push(...D.map(B=>({animation:B,options:{type:h}})))}if(d.size){const x={};d.forEach(h=>{const p=e.getBaseTarget(h),v=e.getValue(h);v&&(v.liveStyle=!0),x[h]=p??null}),f.push({animation:x})}let y=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(u,l)}),n[u].isActive=l;const f=s(u);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Nv(),r=!0}}}function $A(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Eb(t,e):!1}function Dr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nv(){return{animate:Dr(!0),whileInView:Dr(),whileHover:Dr(),whileTap:Dr(),whileDrag:Dr(),whileFocus:Dr(),exit:Dr()}}class WA extends Nr{constructor(t){super(t),t.animationState||(t.animationState=BA(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Cs(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===void 0||t.call(this)}}let GA=0;class HA extends Nr{constructor(){super(...arguments),this.id=GA++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const KA={animation:{Feature:WA},exit:{Feature:HA}},Dv=(e,t)=>Math.abs(e-t);function qA(e,t){const n=Dv(e.x,t.x),r=Dv(e.y,t.y);return Math.sqrt(n**2+r**2)}class o1{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!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=Rc(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=qA(f.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:g}=f,{timestamp:y}=Ke;this.history.push({...g,timestamp:y});const{onStart:x,onMove:h}=this.handlers;d||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ac(d,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Rc(f.type==="pointercancel"?this.lastMoveEventInfo:Ac(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,x),g&&g(f,x)},!yb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=xu(t),a=Ac(s,this.transformPagePoint),{point:u}=a,{timestamp:l}=Ke;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Rc(a,this.history)),this.removeListeners=jn(Ln(this.contextWindow,"pointermove",this.handlePointerMove),Ln(this.contextWindow,"pointerup",this.handlePointerUp),Ln(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cn(this.updatePoint)}}function Ac(e,t){return t?{point:t(e.point)}:e}function Lv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rc({point:e},t){return{point:e,delta:Lv(e,i1(t)),offset:Lv(e,YA(t)),velocity:XA(t,.1)}}function YA(e){return e[0]}function i1(e){return e[e.length-1]}function XA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=i1(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Fn(t)));)n--;if(!r)return{x:0,y:0};const i=Vn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const s1=1e-4,QA=1-s1,ZA=1+s1,a1=.01,JA=0-a1,eR=0+a1;function Nt(e){return e.max-e.min}function tR(e,t,n){return Math.abs(e-t)<=n}function jv(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QA&&e.scale<=ZA||isNaN(e.scale))&&(e.scale=1),(e.translate>=JA&&e.translate<=eR||isNaN(e.translate))&&(e.translate=0)}function ts(e,t,n,r){jv(e.x,t.x,n.x,r?r.originX:void 0),jv(e.y,t.y,n.y,r?r.originY:void 0)}function Fv(e,t,n){e.min=n.min+t.min,e.max=e.min+Nt(t)}function nR(e,t,n){Fv(e.x,t.x,n.x),Fv(e.y,t.y,n.y)}function Vv(e,t,n){e.min=t.min-n.min,e.max=e.min+Nt(t)}function ns(e,t,n){Vv(e.x,t.x,n.x),Vv(e.y,t.y,n.y)}function rR(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Pe(n,e,r.max):Math.min(e,n)),e}function Uv(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 oR(e,{top:t,left:n,bottom:r,right:o}){return{x:Uv(e.x,n,o),y:Uv(e.y,t,r)}}function zv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ks(t.min,t.max-r,e.min):r>o&&(n=ks(e.min,e.max-o,t.min)),Er(0,1,n)}function aR(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 dd=.35;function lR(e=dd){return e===!1?e=0:e===!0&&(e=dd),{x:Bv(e,"left","right"),y:Bv(e,"top","bottom")}}function Bv(e,t,n){return{min:$v(e,t),max:$v(e,n)}}function $v(e,t){return typeof e=="number"?e:e[t]||0}const Wv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Do=()=>({x:Wv(),y:Wv()}),Gv=()=>({min:0,max:0}),Oe=()=>({x:Gv(),y:Gv()});function Ut(e){return[e("x"),e("y")]}function l1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cR(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}}function Ic(e){return e===void 0||e===1}function pd({scale:e,scaleX:t,scaleY:n}){return!Ic(e)||!Ic(t)||!Ic(n)}function Fr(e){return pd(e)||u1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function u1(e){return Hv(e.x)||Hv(e.y)}function Hv(e){return e&&e!=="0%"}function jl(e,t,n){const r=e-n,o=t*r;return n+o}function Kv(e,t,n,r,o){return o!==void 0&&(e=jl(e,o,r)),jl(e,n,r)+t}function hd(e,t=0,n=1,r,o){e.min=Kv(e.min,t,n,r,o),e.max=Kv(e.max,t,n,r,o)}function c1(e,{x:t,y:n}){hd(e.x,t.translate,t.scale,t.originPoint),hd(e.y,n.translate,n.scale,n.originPoint)}const qv=.999999999999,Yv=1.0000000000001;function fR(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aqv&&(t.x=1),t.yqv&&(t.y=1)}function Lo(e,t){e.min=e.min+t,e.max=e.max+t}function Xv(e,t,n,r,o=.5){const i=Pe(e.min,e.max,o);hd(e,t,n,i,r)}function jo(e,t){Xv(e.x,t.x,t.scaleX,t.scale,t.originX),Xv(e.y,t.y,t.scaleY,t.scale,t.originY)}function f1(e,t){return l1(cR(e.getBoundingClientRect(),t))}function dR(e,t,n){const r=f1(e,n),{scroll:o}=t;return o&&(Lo(r.x,o.offset.x),Lo(r.y,o.offset.y)),r}const d1=({current:e})=>e?e.ownerDocument.defaultView:null,pR=new WeakMap;class hR{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Oe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xu(c,"page").point)},i=(c,f)=>{var d;const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=bb(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ut(h=>{let p=this.getAxisMotionValue(h).get()||0;if(Tn.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[h];b&&(p=Nt(b)*(parseFloat(p)/100))}}this.originPoint[h]=p}),y&&se.postRender(()=>y(c,f)),(d=this.removeWillChange)===null||d===void 0||d.call(this),this.removeWillChange=cd(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:x}=f;if(m&&this.currentDirection===null){this.currentDirection=mR(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&y(c,f)},a=(c,f)=>this.stop(c,f),u=()=>Ut(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new o1(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:d1(this.visualElement)})}stop(t,n){var r;(r=this.removeWillChange)===null||r===void 0||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&se.postRender(()=>s(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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ba(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=rR(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Mo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=oR(o.layoutBox,n):this.constraints=!1,this.elastic=lR(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ut(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=aR(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Mo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=dR(r,o.root,this.visualElement.getTransformPagePoint());let s=iR(o.layout.layoutBox,i);if(n){const a=n(uR(s));this.hasMutatedConstraints=!!a,a&&(s=l1(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=Ut(c=>{if(!ba(c,n,this.currentDirection))return;let f=u&&u[c]||{};s&&(f={min:0,max:0});const d=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(rh(t,r,0,n,this.visualElement,!1,cd(this.visualElement,t)))}stopAnimation(){Ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ut(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ut(n=>{const{drag:r}=this.getProps();if(!ba(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Pe(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Mo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ut(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const u=a.get();o[s]=sR({min:u,max:u},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ut(s=>{if(!ba(s,t,null))return;const a=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];a.set(Pe(u,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;pR.set(this.visualElement,this);const t=this.visualElement.current,n=Ln(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Mo(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),se.read(r);const s=Nn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Ut(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=dd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vR extends Nr{constructor(t){super(t),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new hR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qv=e=>(t,n)=>{e&&se.postRender(()=>e(t,n))};class gR extends Nr{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(t){this.session=new o1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:d1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Qv(t),onStart:Qv(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&se.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ln(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function yR(){const e=w.useContext(mu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=w.useId();w.useEffect(()=>r(o),[]);const i=w.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const Qa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ni={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(X.test(e))e=parseFloat(e);else return e;const n=Zv(e,t.target.x),r=Zv(e,t.target.y);return`${n}% ${r}%`}},wR={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Tr.parse(e);if(o.length>5)return r;const i=Tr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=u;const l=Pe(a,u,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}};class bR extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;p_(xR),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Qa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Dp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function p1(e){const[t,n]=yR(),r=w.useContext(Fp);return S.jsx(bR,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(tb),isPresent:t,safeToRemove:n})}const xR={borderRadius:{...Ni,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ni,borderTopRightRadius:Ni,borderBottomLeftRadius:Ni,borderBottomRightRadius:Ni,boxShadow:wR},h1=["TopLeft","TopRight","BottomLeft","BottomRight"],SR=h1.length,Jv=e=>typeof e=="string"?parseFloat(e):e,eg=e=>typeof e=="number"||X.test(e);function ER(e,t,n,r,o,i){o?(e.opacity=Pe(0,n.opacity!==void 0?n.opacity:1,TR(r)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,CR(r))):i&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ks(e,t,r))}function ng(e,t){e.min=t.min,e.max=t.max}function Vt(e,t){ng(e.x,t.x),ng(e.y,t.y)}function rg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function og(e,t,n,r,o){return e-=t,e=jl(e,1/n,r),o!==void 0&&(e=jl(e,1/o,r)),e}function PR(e,t=0,n=1,r=.5,o,i=e,s=e){if(Tn.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(i.min,i.max,r);e===i&&(a-=t),e.min=og(e.min,t,n,a,o),e.max=og(e.max,t,n,a,o)}function ig(e,t,[n,r,o],i,s){PR(e,t[n],t[r],t[o],t.scale,i,s)}const kR=["x","scaleX","originX"],_R=["y","scaleY","originY"];function sg(e,t,n,r){ig(e.x,t,kR,n?n.x:void 0,r?r.x:void 0),ig(e.y,t,_R,n?n.y:void 0,r?r.y:void 0)}function ag(e){return e.translate===0&&e.scale===1}function v1(e){return ag(e.x)&&ag(e.y)}function lg(e,t){return e.min===t.min&&e.max===t.max}function AR(e,t){return lg(e.x,t.x)&&lg(e.y,t.y)}function ug(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function g1(e,t){return ug(e.x,t.x)&&ug(e.y,t.y)}function cg(e){return Nt(e.x)/Nt(e.y)}function fg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class RR{constructor(){this.members=[]}add(t){wu(this.members,t),t.scheduleRender()}remove(t){if(bu(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 IR(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:f,rotateY:d,skewX:m,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const OR=(e,t)=>e.depth-t.depth;class MR{constructor(){this.children=[],this.isDirty=!1}add(t){wu(this.children,t),this.isDirty=!0}remove(t){bu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OR),this.isDirty=!1,this.children.forEach(t)}}function NR(e,t){const n=Un.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Cn(r),e(i-t))};return se.read(r,!0),()=>Cn(r)}function DR(e){return e instanceof SVGElement&&e.tagName!=="svg"}function LR(e,t,n){const r=Ye(e)?e:si(e);return r.start(rh("",r,t,n)),r.animation}const Vr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zi=typeof window<"u"&&window.MotionDebug!==void 0,Oc=["","X","Y","Z"],jR={visibility:"hidden"},dg=1e3;let FR=0;function Mc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function y1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?window.MotionHasOptimisedTransformAnimation(n1(t))?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?y1(e.parent):!1:!1}function w1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=FR++,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,zi&&(Vr.totalNodes=Vr.resolvedTargetDeltas=Vr.recalculatedProjection=0),this.nodes.forEach(zR),this.nodes.forEach(HR),this.nodes.forEach(KR),this.nodes.forEach(BR),zi&&window.MotionDebug.record(Vr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=NR(d,250),Qa.hasAnimatedSinceResize&&(Qa.hasAnimatedSinceResize=!1,this.nodes.forEach(hg))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||ZR,{onLayoutAnimationStart:x,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!g1(this.targetLayout,g)||m,v=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const b={...Yp(y,"layout"),onPlay:x,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else d||hg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,Cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(qR),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.MotionHandoffCancelAll&&y1(this)&&window.MotionHandoffCancelAll(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const E=b/1e3;mg(f.x,s.x,E),mg(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ns(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),XR(this.relativeTarget,this.relativeTargetOrigin,d,E),v&&AR(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Oe()),Vt(v,this.relativeTarget)),y&&(this.animationValues=c,ER(c,l,this.latestValues,E,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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&&(Cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{Qa.hasAnimatedSinceResize=!0,this.currentAnimation=LR(0,dg,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},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(dg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:c}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&b1(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Oe();const f=Nt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;const d=Nt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+d}Vt(a,u),jo(a,c),ts(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new RR),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&Mc("z",s,l,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(pg),this.root.sharedNodes.clear()}}}function VR(e){e.updateLayout()}function UR(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Ut(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Nt(d);d.min=r[f].min,d.max=d.min+m}):b1(i,n.layoutBox,r)&&Ut(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Nt(r[f]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const a=Do();ts(a,r,n.layoutBox);const u=Do();s?ts(u,e.applyTransform(o,!0),n.measuredBox):ts(u,r,n.layoutBox);const l=!v1(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:m}=f;if(d&&m){const g=Oe();ns(g,n.layoutBox,d.layoutBox);const y=Oe();ns(y,r,m.layoutBox),g1(g,y)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zR(e){zi&&Vr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $R(e){e.clearSnapshot()}function pg(e){e.clearMeasurements()}function WR(e){e.isLayoutDirty=!1}function GR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HR(e){e.resolveTargetDelta()}function KR(e){e.calcProjection()}function qR(e){e.resetSkewAndRotation()}function YR(e){e.removeLeadSnapshot()}function mg(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vg(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function XR(e,t,n,r){vg(e.x,t.x,n.x,r),vg(e.y,t.y,n.y,r)}function QR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZR={duration:.45,ease:[.4,0,.1,1]},gg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yg=gg("applewebkit/")&&!gg("chrome/")?Math.round:ut;function wg(e){e.min=yg(e.min),e.max=yg(e.max)}function JR(e){wg(e.x),wg(e.y)}function b1(e,t,n){return e==="position"||e==="preserve-aspect"&&!tR(cg(t),cg(n),.2)}function eI(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const tI=w1({attachResizeListener:(e,t)=>Nn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nc={current:void 0},x1=w1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nc.current){const e=new tI({});e.mount(window),e.setOptions({layoutScroll:!0}),Nc.current=e}return Nc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nI={pan:{Feature:gR},drag:{Feature:vR,ProjectionNode:x1,MeasureLayout:p1}},md={current:null},S1={current:!1};function rI(){if(S1.current=!0,!!Np)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>md.current=e.matches;e.addListener(t),t()}else md.current=!1}function oI(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ye(o))e.addValue(r,o);else if(Ye(i))e.addValue(r,si(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,si(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bg=new WeakMap,iI=[..._b,at,Tr],sI=e=>iI.find(kb(e)),xg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],aI=jp.length;class lI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,se.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=yu(n),this.isVariantNode=rb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];u[d]!==void 0&&Ye(m)&&m.set(u[d],!1)}}mount(t){this.current=t,bg.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)),S1.current||rI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:md.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bg.delete(this.current),this.projection&&this.projection.unmount(),Cn(this.notifyUpdate),Cn(this.render),this.valueSubscriptions.forEach(t=>t()),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){const r=Mr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&se.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),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 oi){const n=oi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Oe()}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;rn.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=si(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Cb(o)||Tb(o))?o=parseFloat(o):!sI(o)&&Tr.test(n)&&(o=Lb(t,n)),this.setBaseTarget(t,Ye(o)?o.get():o)),Ye(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=qp(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class E1 extends lI{constructor(){super(...arguments),this.KeyframeResolver=jb}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]}}function uI(e){return window.getComputedStyle(e)}class cI extends E1{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=fb}readValueFromInstance(t,n){if(Mr.has(n)){const r=Zp(n);return r&&r.default||0}else{const r=uI(t),o=(ab(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return f1(t,n)}build(t,n,r){$p(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Kp(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class fI extends E1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Oe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mr.has(n)){const r=Zp(n);return r&&r.default||0}return n=db.has(n)?n:gu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hb(t,n,r)}build(t,n,r){Gp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){pb(t,n,r,o)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const dI=(e,t)=>Vp(e)?new fI(t):new cI(t,{allowProjection:e!==w.Fragment}),pI={layout:{ProjectionNode:x1,MeasureLayout:p1}},hI={...KA,...n2,...nI,...pI},vd=f_((e,t)=>$_(e,t,hI,dI));class mI extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function vI({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=w.useContext(Us);return w.useInsertionEffect(()=>{const{width:s,height:a,top:u,left:l}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + */const Qw=vt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Us=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),hu=w.createContext({}),mu=w.createContext(null),Np=typeof window<"u",vu=Np?w.useLayoutEffect:w.useEffect,Zw=w.createContext({strict:!1}),gu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Yk="framerAppearId",Jw="data-"+gu(Yk),Xk={skipAnimations:!1,useManualTiming:!1};function Qk(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(u.schedule(l),e()),l(s)}const u={schedule:(l,c=!1,f=!1)=>{const m=f&&r?t:n;return c&&i.add(l),m.has(l)||m.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(s=l,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,u.process(l))}};return u}const ya=["read","resolveKeyframes","update","preRender","render","postRender"],Zk=40;function eb(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ya.reduce((h,p)=>(h[p]=Qk(i),h),{}),{read:a,resolveKeyframes:u,update:l,preRender:c,render:f,postRender:d}=s,m=()=>{const h=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,Zk),1),o.timestamp=h,o.isProcessing=!0,a.process(o),u.process(o),l.process(o),c.process(o),f.process(o),d.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:ya.reduce((h,p)=>{const v=s[p];return h[p]=(b,E=!1,P=!1)=>(n||g(),v.schedule(b,E,P)),h},{}),cancel:h=>{for(let p=0;p{f&&f.update(n,u)});const m=n[Jw],g=w.useRef(!!m&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,m)));return vu(()=>{f&&(f.updateFeatures(),Dp.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())}),w.useEffect(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current=!1,lv||(lv=!0,queueMicrotask(e_)))}),f}function e_(){window.MotionHandoffIsComplete=!0}function t_(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nb(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Mo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function nb(e){if(e)return e.options.allowProjection!==!1?e.projection:nb(e.parent)}function n_(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Mo(n)&&(n.current=r))},[t])}function Ts(e){return typeof e=="string"||Array.isArray(e)}function Ps(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Lp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jp=["initial",...Lp];function yu(e){return Ps(e.animate)||jp.some(t=>Ts(e[t]))}function rb(e){return!!(yu(e)||e.variants)}function r_(e,t){if(yu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ts(n)?n:void 0,animate:Ts(r)?r:void 0}}return e.inherit!==!1?t:{}}function o_(e){const{initial:t,animate:n}=r_(e,w.useContext(hu));return w.useMemo(()=>({initial:t,animate:n}),[uv(t),uv(n)])}function uv(e){return Array.isArray(e)?e.join(" "):e}const cv={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"]},oi={};for(const e in cv)oi[e]={isEnabled:t=>cv[e].some(n=>!!t[n])};function i_(e){for(const t in e)oi[t]={...oi[t],...e[t]}}const Fp=w.createContext({}),s_=Symbol.for("motionComponentSymbol"),ut=e=>e;let td=ut;function a_({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&i_(e);function i(a,u){let l;const c={...w.useContext(Us),...a,layoutId:l_(a)},{isStatic:f}=c,d=o_(a),m=r(a,f);if(!f&&Np){u_();const g=c_(c);l=g.MeasureLayout,d.visualElement=Jk(o,m,c,t,g.ProjectionNode)}return S.jsxs(hu.Provider,{value:d,children:[l&&d.visualElement?S.jsx(l,{visualElement:d.visualElement,...c}):null,n(o,a,n_(m,d.visualElement,u),m,f,d.visualElement)]})}const s=w.forwardRef(i);return s[s_]=o,s}function l_({layoutId:e}){const t=w.useContext(Fp).id;return t&&e!==void 0?t+"-"+e:e}function u_(e,t){w.useContext(Zw).strict}function c_(e){const{drag:t,layout:n}=oi;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}}function f_(e){function t(r,o={}){return a_(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const d_=["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 Vp(e){return typeof e!="string"||e.includes("-")?!1:!!(d_.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ol={};function p_(e){Object.assign(Ol,e)}const zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mr=new Set(zs);function ob(e,{layout:t,layoutId:n}){return Mr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ol[e]||e==="opacity")}const Ye=e=>!!(e&&e.getVelocity),ib=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Er=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Zi={...yi,transform:e=>Er(0,1,e)},wa={...yi,default:1},Ji=e=>Math.round(e*1e5)/1e5,Up=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,h_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,m_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Bs(e){return typeof e=="string"}function v_(e){return e==null}const $s=e=>({test:t=>Bs(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tr=$s("deg"),Tn=$s("%"),X=$s("px"),g_=$s("vh"),y_=$s("vw"),fv={...Tn,parse:e=>Tn.parse(e)/100,transform:e=>Tn.transform(e*100)},dv={...yi,transform:Math.round},zp={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,size:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,rotate:tr,rotateX:tr,rotateY:tr,rotateZ:tr,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:tr,skewX:tr,skewY:tr,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:Zi,originX:fv,originY:fv,originZ:X,zIndex:dv,backgroundPositionX:X,backgroundPositionY:X,fillOpacity:Zi,strokeOpacity:Zi,numOctaves:dv},w_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},b_=zs.length;function x_(e,t,n){let r="",o=!0;for(let i=0;it=>typeof t=="string"&&t.startsWith(e),ab=sb("--"),S_=sb("var(--"),Bp=e=>S_(e)?E_.test(e.split("/*")[0].trim()):!1,E_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function $p(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const u in t){const l=t[u];if(Mr.has(u)){s=!0;continue}else if(ab(u)){o[u]=l;continue}else{const c=ib(l,zp[u]);u.startsWith("origin")?(a=!0,i[u]=c):r[u]=c}}if(t.transform||(s||n?r.transform=x_(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=i;r.transformOrigin=`${u} ${l} ${c}`}}const Wp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lb(e,t,n){for(const r in t)!Ye(t[r])&&!ob(r,n)&&(e[r]=t[r])}function T_({transformTemplate:e},t){return w.useMemo(()=>{const n=Wp();return $p(n,t,e),Object.assign({},n.vars,n.style)},[t])}function P_(e,t){const n=e.style||{},r={};return lb(r,n,e),Object.assign(r,T_(e,t)),r}function C_(e,t){const n={},r=P_(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 k_=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||k_.has(e)}let ub=e=>!Ml(e);function __(e){e&&(ub=t=>t.startsWith("on")?!Ml(t):e(t))}try{__(require("@emotion/is-prop-valid").default)}catch{}function A_(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ub(o)||n===!0&&Ml(o)||!t&&!Ml(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function pv(e,t,n){return typeof e=="string"?e:X.transform(t+n*e)}function R_(e,t,n){const r=pv(t,e.x,e.width),o=pv(n,e.y,e.height);return`${r} ${o}`}const I_={offset:"stroke-dashoffset",array:"stroke-dasharray"},O_={offset:"strokeDashoffset",array:"strokeDasharray"};function M_(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?I_:O_;e[i.offset]=X.transform(-r);const s=X.transform(t),a=X.transform(n);e[i.array]=`${s} ${a}`}function Gp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:u=0,...l},c,f){if($p(e,l,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m,dimensions:g}=e;d.transform&&(g&&(m.transform=d.transform),delete d.transform),g&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=R_(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&M_(d,s,a,u,!1)}const cb=()=>({...Wp(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function N_(e,t,n,r){const o=w.useMemo(()=>{const i=cb();return Gp(i,t,Hp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};lb(i,e.style,e),o.style={...i,...o.style}}return o}function D_(e=!1){return(n,r,o,{latestValues:i},s)=>{const u=(Vp(n)?N_:C_)(r,i,s,n),l=A_(r,typeof n=="string",e),c=n!==w.Fragment?{...l,...u,ref:o}:{},{children:f}=r,d=w.useMemo(()=>Ye(f)?f.get():f,[f]);return w.createElement(n,{...c,children:d})}}function fb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const db=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 pb(e,t,n,r){fb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(db.has(o)?o:gu(o),t.attrs[o])}function Kp(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ye(o[s])||t.style&&Ye(t.style[s])||ob(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function hb(e,t,n){const r=Kp(e,t,n);for(const o in e)if(Ye(e[o])||Ye(t[o])){const i=zs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function hv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qp(e,t,n,r){if(typeof t=="function"){const[o,i]=hv(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=hv(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Ws(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const nd=e=>Array.isArray(e),L_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),j_=e=>nd(e)?e[e.length-1]||0:e;function Ya(e){const t=Ye(e)?e.get():e;return L_(t)?t.toValue():t}const mb=new Set(["opacity","clipPath","filter","transform"]);function vb(e){if(Mr.has(e))return"transform";if(mb.has(e))return gu(e)}function wu(e,t){e.indexOf(t)===-1&&e.push(t)}function bu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function F_({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const u={latestValues:U_(o,i,s,a?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(o,l,u)),u}const gb=e=>(t,n)=>{const r=w.useContext(hu),o=w.useContext(mu),i=()=>F_(e,t,r,o,n);return n?i():Ws(i)};function V_(e,t){const n=vb(t);n&&wu(e,n)}function mv(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const p in x){let v=x[p];if(Array.isArray(v)){const b=g?v.length-1:0;v=v[b]}v!==null&&(s[p]=v)}for(const p in h)s[p]=h[p]}),u&&(f&&c!==!1&&!Ps(f)&&mv(e,f,x=>{for(const h in x)V_(a,h)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:se,cancel:Pn,state:Ke,steps:Sc}=eb(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),z_={useVisualState:gb({scrapeMotionValuesFromProps:hb,createRenderState:cb,onMount:(e,t,{renderState:n,latestValues:r})=>{se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),se.render(()=>{Gp(n,r,Hp(t.tagName),e.transformTemplate),pb(t,n)})}})},B_={useVisualState:gb({applyWillChange:!0,scrapeMotionValuesFromProps:Kp,createRenderState:Wp})};function $_(e,{forwardMotionProps:t=!1},n,r){return{...Vp(e)?z_:B_,preloadedFeatures:n,useRender:D_(t),createVisualElement:r,Component:e}}function Nn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const yb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const W_=e=>t=>yb(t)&&e(t,xu(t));function Ln(e,t,n,r){return Nn(e,t,W_(n),r)}const G_=(e,t)=>n=>t(e(n)),jn=(...e)=>e.reduce(G_);function wb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const vv=wb("dragHorizontal"),gv=wb("dragVertical");function bb(e){let t=!1;if(e==="y")t=gv();else if(e==="x")t=vv();else{const n=vv(),r=gv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function xb(){const e=bb(!0);return e?(e(),!1):!0}class Nr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function yv(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||xb())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const u=a[r];u&&se.postRender(()=>u(i,s))};return Ln(e.current,n,o,{passive:!e.getProps()[r]})}class H_ extends Nr{mount(){this.unmount=jn(yv(this.node,!0),yv(this.node,!1))}unmount(){}}class K_ extends Nr{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=jn(Nn(this.node.current,"focus",()=>this.onFocus()),Nn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Sb=(e,t)=>t?e===t?!0:Sb(e,t.parentElement):!1;function Ec(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,xu(n))}class q_ extends Nr{constructor(){super(...arguments),this.removeStartListeners=ut,this.removeEndListeners=ut,this.removeAccessibleListeners=ut,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Ln(window,"pointerup",(a,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),d=!f&&!Sb(this.node.current,a.target)?c:l;d&&se.update(()=>d(a,u))},{passive:!(r.onTap||r.onPointerUp)}),s=Ln(window,"pointercancel",(a,u)=>this.cancelPress(a,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ec("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&se.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Nn(this.node.current,"keyup",s),Ec("down",(a,u)=>{this.startPress(a,u)})},n=Nn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ec("cancel",(i,s)=>this.cancelPress(i,s))},o=Nn(this.node.current,"blur",r);this.removeAccessibleListeners=jn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&se.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&se.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ln(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Nn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const rd=new WeakMap,Tc=new WeakMap,Y_=e=>{const t=rd.get(e.target);t&&t(e)},X_=e=>{e.forEach(Y_)};function Q_({root:e,...t}){const n=e||document;Tc.has(n)||Tc.set(n,{});const r=Tc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(X_,{root:e,...t})),r[o]}function Z_(e,t,n){const r=Q_(t);return rd.set(e,n),r.observe(e),()=>{rd.delete(e),r.unobserve(e)}}const J_={some:0,all:1};class e2 extends Nr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:J_[o]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return Z_(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(t2(t,n))&&this.startObserver()}unmount(){}}function t2({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const n2={inView:{Feature:e2},tap:{Feature:q_},focus:{Feature:K_},hover:{Feature:H_}};function Eb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,Vn=e=>e/1e3,r2={type:"spring",stiffness:500,damping:25,restSpeed:10},o2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i2={type:"keyframes",duration:.8},s2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},a2=(e,{keyframes:t})=>t.length>2?i2:Mr.has(e)?e.startsWith("scale")?o2(t[1]):r2:s2;function l2({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function Yp(e,t){return e[t]||e.default||e}const u2=e=>e!==null;function Eu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(u2),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Tb=e=>/^0[^.\s]+$/u.test(e);function c2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Tb(e):!0}const Pb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),f2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function d2(e){const t=f2.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Cb(e,t,n=1){const[r,o]=d2(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Pb(s)?parseFloat(s):s}return Bp(o)?Cb(o,t,n+1):o}const p2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wv=e=>e===yi||e===X,bv=(e,t)=>parseFloat(e.split(", ")[t]),xv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return bv(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?bv(i[1],e):0}},h2=new Set(["x","y","z"]),m2=zs.filter(e=>!h2.has(e));function v2(e){const t=[];return m2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ii={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:xv(4,13),y:xv(5,14)};ii.translateX=ii.x;ii.translateY=ii.y;const kb=e=>t=>t.test(e),g2={test:e=>e==="auto",parse:e=>e},_b=[yi,X,Tn,tr,y_,g_,g2],Sv=e=>_b.find(kb(e)),qr=new Set;let od=!1,id=!1;function Ab(){if(id){const e=Array.from(qr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=v2(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,od=!1,qr.forEach(e=>e.complete()),qr.clear()}function Rb(){qr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function y2(){Rb(),Ab()}class Xp{constructor(t,n,r,o,i,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=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qr.add(this),od||(od=!0,se.read(Rb),se.resolveKeyframes(Ab))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Bs(n)&&m_.test(n)&&n.startsWith(e)||t&&!v_(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ib=(e,t,n)=>r=>{if(!Bs(r))return r;const[o,i,s,a]=r.match(Up);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},w2=e=>Er(0,255,e),Pc={...yi,transform:e=>Math.round(w2(e))},Wr={test:Qp("rgb","red"),parse:Ib("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Pc.transform(e)+", "+Pc.transform(t)+", "+Pc.transform(n)+", "+Ji(Zi.transform(r))+")"};function b2(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const sd={test:Qp("#"),parse:b2,transform:Wr.transform},No={test:Qp("hsl","hue"),parse:Ib("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Tn.transform(Ji(t))+", "+Tn.transform(Ji(n))+", "+Ji(Zi.transform(r))+")"},at={test:e=>Wr.test(e)||sd.test(e)||No.test(e),parse:e=>Wr.test(e)?Wr.parse(e):No.test(e)?No.parse(e):sd.parse(e),transform:e=>Bs(e)?e:e.hasOwnProperty("red")?Wr.transform(e):No.transform(e)};function x2(e){var t,n;return isNaN(e)&&Bs(e)&&(((t=e.match(Up))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(h_))===null||n===void 0?void 0:n.length)||0)>0}const Ob="number",Mb="color",S2="var",E2="var(",Ev="${}",T2=/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 Cs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(T2,u=>(at.test(u)?(r.color.push(i),o.push(Mb),n.push(at.parse(u))):u.startsWith(E2)?(r.var.push(i),o.push(S2),n.push(u)):(r.number.push(i),o.push(Ob),n.push(parseFloat(u))),++i,Ev)).split(Ev);return{values:n,split:a,indexes:r,types:o}}function Nb(e){return Cs(e).values}function Db(e){const{split:t,types:n}=Cs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function C2(e){const t=Nb(e);return Db(e)(t.map(P2))}const Tr={test:x2,parse:Nb,createTransformer:Db,getAnimatableNone:C2},k2=new Set(["brightness","contrast","saturate","opacity"]);function _2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Up)||[];if(!r)return e;const o=n.replace(r,"");let i=k2.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const A2=/\b([a-z-]*)\(.*?\)/gu,ad={...Tr,getAnimatableNone:e=>{const t=e.match(A2);return t?t.map(_2).join(" "):e}},R2={...zp,color:at,backgroundColor:at,outlineColor:at,fill:at,stroke:at,borderColor:at,borderTopColor:at,borderRightColor:at,borderBottomColor:at,borderLeftColor:at,filter:ad,WebkitFilter:ad},Zp=e=>R2[e];function Lb(e,t){let n=Zp(e);return n!==ad&&(n=Tr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I2=new Set(["auto","none","0"]);function O2(e,t,n){let r=0,o;for(;r{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function Fb(e){let t;return()=>(t===void 0&&(t=e()),t)}let Xa;function M2(){Xa=void 0}const Un={now:()=>(Xa===void 0&&Un.set(Ke.isProcessing||Xk.useManualTiming?Ke.timestamp:performance.now()),Xa),set:e=>{Xa=e,queueMicrotask(M2)}},Tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tr.test(e)||e==="0")&&!e.startsWith("url("));function N2(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nL2?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&y2(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Un.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:u,isGenerator:l}=this.options;if(!l&&!D2(t,r,o,i))if(s)this.options.duration=0;else{u==null||u(Eu(t,this.options,n)),a==null||a(),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)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Ub(e,t){return t?e*(1e3/t):0}const j2=5;function zb(e,t,n){const r=Math.max(t-j2,0);return Ub(n-e(r),t-r)}const Cc=.001,F2=.01,V2=10,U2=.05,z2=1;function B2({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Er(U2,z2,s),e=Er(F2,V2,Vn(e)),s<1?(o=l=>{const c=l*s,f=c*e,d=c-n,m=ld(l,s),g=Math.exp(-f);return Cc-d/m*g},i=l=>{const f=l*s*e,d=f*n+n,m=Math.pow(s,2)*Math.pow(l,2)*e,g=Math.exp(-f),y=ld(Math.pow(l,2),s);return(-o(l)+Cc>0?-1:1)*((d-m)*g)/y}):(o=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-Cc+c*f},i=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=W2(o,i,a);if(e=Fn(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const $2=12;function W2(e,t,n){let r=n;for(let o=1;o<$2;o++)r=r-e(r)/t(r);return r}function ld(e,t){return e*Math.sqrt(1-t*t)}const G2=["duration","bounce"],H2=["stiffness","damping","mass"];function Pv(e,t){return t.some(n=>e[n]!==void 0)}function K2(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Pv(e,H2)&&Pv(e,G2)){const n=B2(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Bb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:u,mass:l,duration:c,velocity:f,isResolvedFromDuration:d}=K2({...r,velocity:-Vn(r.velocity||0)}),m=f||0,g=u/(2*Math.sqrt(a*l)),y=i-o,x=Vn(Math.sqrt(a/l)),h=Math.abs(y)<5;n||(n=h?.01:2),t||(t=h?.005:.5);let p;if(g<1){const v=ld(x,g);p=b=>{const E=Math.exp(-g*x*b);return i-E*((m+g*x*y)/v*Math.sin(v*b)+y*Math.cos(v*b))}}else if(g===1)p=v=>i-Math.exp(-x*v)*(y+(m+x*y)*v);else{const v=x*Math.sqrt(g*g-1);p=b=>{const E=Math.exp(-g*x*b),P=Math.min(v*b,300);return i-E*((m+g*x*y)*Math.sinh(P)+v*y*Math.cosh(P))/v}}return{calculatedDuration:d&&c||null,next:v=>{const b=p(v);if(d)s.done=v>=c;else{let E=0;g<1&&(E=v===0?Fn(m):zb(p,v,b));const P=Math.abs(E)<=n,k=Math.abs(i-b)<=t;s.done=P&&k}return s.value=s.done?i:b,s}}}function Cv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},m=T=>a!==void 0&&Tu,g=T=>a===void 0?u:u===void 0||Math.abs(a-T)-y*Math.exp(-T/r),v=T=>h+p(T),b=T=>{const O=p(T),D=v(T);d.done=Math.abs(O)<=l,d.value=d.done?h:D};let E,P;const k=T=>{m(d.value)&&(E=T,P=Bb({keyframes:[d.value,g(d.value)],velocity:zb(v,T,d.value),damping:o,stiffness:i,restDelta:l,restSpeed:c}))};return k(0),{calculatedDuration:null,next:T=>{let O=!1;return!P&&E===void 0&&(O=!0,b(T),k(T)),E!==void 0&&T>=E?P.next(T-E):(!O&&b(T),d)}}}const $b=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q2=1e-7,Y2=12;function X2(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=$b(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>q2&&++aX2(i,0,1,e,n);return i=>i===0||i===1?i:$b(o(i),t,r)}const Q2=Gs(.42,0,1,1),Z2=Gs(0,0,.58,1),Wb=Gs(.42,0,.58,1),J2=e=>Array.isArray(e)&&typeof e[0]!="number",Gb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hb=e=>t=>1-e(1-t),Jp=e=>1-Math.sin(Math.acos(e)),Kb=Hb(Jp),eA=Gb(Jp),qb=Gs(.33,1.53,.69,.99),eh=Hb(qb),tA=Gb(eh),nA=e=>(e*=2)<1?.5*eh(e):.5*(2-Math.pow(2,-10*(e-1))),kv={linear:ut,easeIn:Q2,easeInOut:Wb,easeOut:Z2,circIn:Jp,circInOut:eA,circOut:Kb,backIn:eh,backInOut:tA,backOut:qb,anticipate:nA},_v=e=>{if(Array.isArray(e)){td(e.length===4);const[t,n,r,o]=e;return Gs(t,n,r,o)}else if(typeof e=="string")return td(kv[e]!==void 0),kv[e];return e},ks=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ce=(e,t,n)=>e+(t-e)*n;function kc(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 rA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;o=kc(u,a,e+1/3),i=kc(u,a,e),s=kc(u,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Nl(e,t){return n=>n>0?t:e}const _c=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},oA=[sd,Wr,No],iA=e=>oA.find(t=>t.test(e));function Av(e){const t=iA(e);if(!t)return!1;let n=t.parse(e);return t===No&&(n=rA(n)),n}const Rv=(e,t)=>{const n=Av(e),r=Av(t);if(!n||!r)return Nl(e,t);const o={...n};return i=>(o.red=_c(n.red,r.red,i),o.green=_c(n.green,r.green,i),o.blue=_c(n.blue,r.blue,i),o.alpha=Ce(n.alpha,r.alpha,i),Wr.transform(o))},ud=new Set(["none","hidden"]);function sA(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function aA(e,t){return n=>Ce(e,t,n)}function th(e){return typeof e=="number"?aA:typeof e=="string"?Bp(e)?Nl:at.test(e)?Rv:cA:Array.isArray(e)?Yb:typeof e=="object"?at.test(e)?Rv:lA:Nl}function Yb(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>th(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function uA(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=Tr.createTransformer(t),r=Cs(e),o=Cs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?ud.has(e)&&!o.values.length||ud.has(t)&&!r.values.length?sA(e,t):jn(Yb(uA(r,o),o.values),n):Nl(e,t)};function Xb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ce(e,t,n):th(e)(e,t)}function fA(e,t,n){const r=[],o=n||Xb,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fA(t,r,o),a=s.length,u=l=>{let c=0;if(a>1)for(;cu(Er(e[0],e[i-1],l)):u}function dA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ks(0,t,r);e.push(Ce(n,1,o))}}function pA(e){const t=[0];return dA(t,e.length-1),t}function hA(e,t){return e.map(n=>n*t)}function mA(e,t){return e.map(()=>t||Wb).splice(0,e.length-1)}function Dl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=J2(r)?r.map(_v):_v(r),i={done:!1,value:t[0]},s=hA(n&&n.length===t.length?n:pA(t),e),a=Qb(s,t,{ease:Array.isArray(o)?o:mA(t,o)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const Iv=2e4;function vA(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Iv?1/0:t}const gA=e=>{const t=({timestamp:n})=>e(n);return{start:()=>se.update(t,!0),stop:()=>Pn(t),now:()=>Ke.isProcessing?Ke.timestamp:Un.now()}},yA={decay:Cv,inertia:Cv,tween:Dl,keyframes:Dl,spring:Bb},wA=e=>e/100;class Tu extends Vb{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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Xp,a=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=yA[n]||Dl;let u,l;a!==Dl&&typeof t[0]!="number"&&(u=jn(wA,Xb(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=vA(c));const{calculatedDuration:f}=c,d=f+o,m=d*(r+1)-o;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:f,resolvedDuration:d,totalDuration:m}}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:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:d,repeat:m,repeatType:g,repeatDelay:y,onUpdate:x}=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 h=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,b=i;if(m){const T=Math.min(this.currentTime,c)/f;let O=Math.floor(T),D=T%1;!D&&T>=1&&(D=1),D===1&&O--,O=Math.min(O,m+1),!!(O%2)&&(g==="reverse"?(D=1-D,y&&(D-=y/f)):g==="mirror"&&(b=s)),v=Er(0,1,D)*f}const E=p?{done:!1,value:u[0]}:b.next(v);a&&(E.value=a(E.value));let{done:P}=E;!p&&l!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return k&&o!==void 0&&(E.value=Eu(u,this.options,o)),x&&x(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Vn(t.calculatedDuration):0}get time(){return Vn(this.currentTime)}set time(t){t=Fn(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=Vn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=gA,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";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)}}function bA(e){return new Tu(e)}const Zb=e=>Array.isArray(e)&&typeof e[0]=="number";function Jb(e){return!!(!e||typeof e=="string"&&e in nh||Zb(e)||Array.isArray(e)&&e.every(Jb))}const Ui=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ui([0,.65,.55,1]),circOut:Ui([.55,0,1,.45]),backIn:Ui([.31,.01,.66,-.59]),backOut:Ui([.33,1.53,.69,.99])};function xA(e){return e1(e)||nh.easeOut}function e1(e){if(e)return Zb(e)?Ui(e):Array.isArray(e)?e.map(xA):nh[e]}function SA(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=e1(a);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const EA=Fb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ll=10,TA=2e4;function PA(e){return e.type==="spring"||!Jb(e.ease)}function CA(e,t){const n=new Tu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(PA(this.options)){const{onComplete:d,onUpdate:m,motionValue:g,element:y,...x}=this.options,h=CA(t,x);t=h.keyframes,t.length===1&&(t[1]=t[0]),o=h.duration,i=h.times,s=h.ease,a="keyframes"}const f=SA(u.owner.current,l,t,{...this.options,duration:o,times:i,ease:s});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(f.timeline=this.pendingTimeline,this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;u.set(Eu(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Vn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Vn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}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 ut;const{animation:r}=n;r.timeline=t,r.onfinish=null}return ut}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:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:f,element:d,...m}=this.options,g=new Tu({...m,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=Fn(this.time);l.setWithVelocity(g.sample(y-Ll).value,g.sample(y).value,Ll)}const{onStop:u}=this.options;u&&u(),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:o,repeatType:i,damping:s,type:a}=t;return EA()&&r&&mb.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function kA(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return se.update(r,!0),()=>Pn(r)}const _A=Fb(()=>window.ScrollTimeline!==void 0);class AA{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(_A()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),kA(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),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;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const rh=(e,t,n,r={},o,i,s)=>a=>{const u=Yp(r,e)||{},l=u.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fn(l);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-c,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};l2(u)||(f={...f,...a2(e,f)}),f.duration&&(f.duration=Fn(f.duration)),f.repeatDelay&&(f.repeatDelay=Fn(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let d=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const m=Eu(f.keyframes,u);if(m!==void 0)return se.update(()=>{f.onUpdate(m),f.onComplete()}),new AA([])}return!i&&Ov.supports(f)?new Ov(f):new Tu(f)};class oh{constructor(){this.subscriptions=[]}add(t){return wu(this.subscriptions,t),()=>bu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e)),es={current:void 0};class t1{constructor(t,n={}){this.version="11.3.28",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Un.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Un.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=RA(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 oh);const r=this.events[t].add(n);return t==="change"?()=>{r(),se.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 es.current&&es.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mv);return Ub(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 si(e,t){return new t1(e,t)}function IA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,si(n))}function OA(e,t){const n=Su(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=j_(i[s]);IA(e,s,a)}}function n1(e){return e.getProps()[Jw]}class MA extends t1{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=vb(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(bu(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function NA(e){return!!(Ye(e)&&e.add)}function cd(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new MA("auto"),e.addValue("willChange",r)),NA(r))return r.add(t)}function DA({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function r1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...u}=t;r&&(s=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const f in u){const d=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),m=u[f];if(m===void 0||c&&DA(c,f))continue;const g={delay:n,...Yp(s||{},f)};let y=!1;if(window.MotionHandoffAnimation){const h=n1(e);if(h){const p=window.MotionHandoffAnimation(h,f,se);p!==null&&(g.startTime=p,y=!0)}}d.start(rh(f,d,m,e.shouldReduceMotion&&Mr.has(f)?{type:!1}:g,e,y,cd(e,f)));const x=d.animation;x&&l.push(x)}return a&&Promise.all(l).then(()=>{se.update(()=>{a&&OA(e,a)})}),l}function fd(e,t,n={}){var r;const o=Su(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(r1(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return LA(e,t,c+l,f,d,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[l,c]=u==="beforeChildren"?[s,a]:[a,s];return l().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function LA(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,u=o===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(jA).forEach((l,c)=>{l.notify("AnimationStart",t),s.push(fd(l,t,{...i,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function jA(e,t){return e.sortNodePosition(t)}function FA(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>fd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=fd(e,t,n);else{const o=typeof t=="function"?Su(e,t,n.custom):t;r=Promise.all(r1(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const VA=[...Lp].reverse(),UA=Lp.length;function zA(e){return t=>Promise.all(t.map(({animation:n,options:r})=>FA(e,n,r)))}function BA(e){let t=zA(e),n=Nv(),r=!0;const o=u=>(l,c)=>{var f;const d=Su(e,c,u==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:m,transitionEnd:g,...y}=d;l={...l,...y,...g}}return l};function i(u){t=u(e)}function s(u){const l=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set;let m={},g=1/0;for(let x=0;xg&&b,O=!1;const D=Array.isArray(v)?v:[v];let z=D.reduce(o(h),{});E===!1&&(z={});const{prevResolvedValues:F={}}=p,K={...F,...z},V=B=>{T=!0,d.has(B)&&(O=!0,d.delete(B)),p.needsAnimating[B]=!0;const $=e.getValue(B);$&&($.liveStyle=!1)};for(const B in K){const $=z[B],W=F[B];if(m.hasOwnProperty(B))continue;let M=!1;nd($)&&nd(W)?M=!Eb($,W):M=$!==W,M?$!=null?V(B):d.add(B):$!==void 0&&d.has(B)?V(B):p.protectedKeys[B]=!0}p.prevProp=v,p.prevResolvedValues=z,p.isActive&&(m={...m,...z}),r&&e.blockInitialAnimation&&(T=!1),T&&(!P||O)&&f.push(...D.map(B=>({animation:B,options:{type:h}})))}if(d.size){const x={};d.forEach(h=>{const p=e.getBaseTarget(h),v=e.getValue(h);v&&(v.liveStyle=!0),x[h]=p??null}),f.push({animation:x})}let y=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(u,l)}),n[u].isActive=l;const f=s(u);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Nv(),r=!0}}}function $A(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Eb(t,e):!1}function Dr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nv(){return{animate:Dr(!0),whileInView:Dr(),whileHover:Dr(),whileTap:Dr(),whileDrag:Dr(),whileFocus:Dr(),exit:Dr()}}class WA extends Nr{constructor(t){super(t),t.animationState||(t.animationState=BA(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ps(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===void 0||t.call(this)}}let GA=0;class HA extends Nr{constructor(){super(...arguments),this.id=GA++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const KA={animation:{Feature:WA},exit:{Feature:HA}},Dv=(e,t)=>Math.abs(e-t);function qA(e,t){const n=Dv(e.x,t.x),r=Dv(e.y,t.y);return Math.sqrt(n**2+r**2)}class o1{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!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=Rc(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=qA(f.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:g}=f,{timestamp:y}=Ke;this.history.push({...g,timestamp:y});const{onStart:x,onMove:h}=this.handlers;d||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ac(d,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Rc(f.type==="pointercancel"?this.lastMoveEventInfo:Ac(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,x),g&&g(f,x)},!yb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=xu(t),a=Ac(s,this.transformPagePoint),{point:u}=a,{timestamp:l}=Ke;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Rc(a,this.history)),this.removeListeners=jn(Ln(this.contextWindow,"pointermove",this.handlePointerMove),Ln(this.contextWindow,"pointerup",this.handlePointerUp),Ln(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Pn(this.updatePoint)}}function Ac(e,t){return t?{point:t(e.point)}:e}function Lv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rc({point:e},t){return{point:e,delta:Lv(e,i1(t)),offset:Lv(e,YA(t)),velocity:XA(t,.1)}}function YA(e){return e[0]}function i1(e){return e[e.length-1]}function XA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=i1(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Fn(t)));)n--;if(!r)return{x:0,y:0};const i=Vn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const s1=1e-4,QA=1-s1,ZA=1+s1,a1=.01,JA=0-a1,eR=0+a1;function Nt(e){return e.max-e.min}function tR(e,t,n){return Math.abs(e-t)<=n}function jv(e,t,n,r=.5){e.origin=r,e.originPoint=Ce(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),e.translate=Ce(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QA&&e.scale<=ZA||isNaN(e.scale))&&(e.scale=1),(e.translate>=JA&&e.translate<=eR||isNaN(e.translate))&&(e.translate=0)}function ts(e,t,n,r){jv(e.x,t.x,n.x,r?r.originX:void 0),jv(e.y,t.y,n.y,r?r.originY:void 0)}function Fv(e,t,n){e.min=n.min+t.min,e.max=e.min+Nt(t)}function nR(e,t,n){Fv(e.x,t.x,n.x),Fv(e.y,t.y,n.y)}function Vv(e,t,n){e.min=t.min-n.min,e.max=e.min+Nt(t)}function ns(e,t,n){Vv(e.x,t.x,n.x),Vv(e.y,t.y,n.y)}function rR(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ce(n,e,r.max):Math.min(e,n)),e}function Uv(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 oR(e,{top:t,left:n,bottom:r,right:o}){return{x:Uv(e.x,n,o),y:Uv(e.y,t,r)}}function zv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ks(t.min,t.max-r,e.min):r>o&&(n=ks(e.min,e.max-o,t.min)),Er(0,1,n)}function aR(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 dd=.35;function lR(e=dd){return e===!1?e=0:e===!0&&(e=dd),{x:Bv(e,"left","right"),y:Bv(e,"top","bottom")}}function Bv(e,t,n){return{min:$v(e,t),max:$v(e,n)}}function $v(e,t){return typeof e=="number"?e:e[t]||0}const Wv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Do=()=>({x:Wv(),y:Wv()}),Gv=()=>({min:0,max:0}),Oe=()=>({x:Gv(),y:Gv()});function Ut(e){return[e("x"),e("y")]}function l1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cR(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}}function Ic(e){return e===void 0||e===1}function pd({scale:e,scaleX:t,scaleY:n}){return!Ic(e)||!Ic(t)||!Ic(n)}function Fr(e){return pd(e)||u1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function u1(e){return Hv(e.x)||Hv(e.y)}function Hv(e){return e&&e!=="0%"}function jl(e,t,n){const r=e-n,o=t*r;return n+o}function Kv(e,t,n,r,o){return o!==void 0&&(e=jl(e,o,r)),jl(e,n,r)+t}function hd(e,t=0,n=1,r,o){e.min=Kv(e.min,t,n,r,o),e.max=Kv(e.max,t,n,r,o)}function c1(e,{x:t,y:n}){hd(e.x,t.translate,t.scale,t.originPoint),hd(e.y,n.translate,n.scale,n.originPoint)}const qv=.999999999999,Yv=1.0000000000001;function fR(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aqv&&(t.x=1),t.yqv&&(t.y=1)}function Lo(e,t){e.min=e.min+t,e.max=e.max+t}function Xv(e,t,n,r,o=.5){const i=Ce(e.min,e.max,o);hd(e,t,n,i,r)}function jo(e,t){Xv(e.x,t.x,t.scaleX,t.scale,t.originX),Xv(e.y,t.y,t.scaleY,t.scale,t.originY)}function f1(e,t){return l1(cR(e.getBoundingClientRect(),t))}function dR(e,t,n){const r=f1(e,n),{scroll:o}=t;return o&&(Lo(r.x,o.offset.x),Lo(r.y,o.offset.y)),r}const d1=({current:e})=>e?e.ownerDocument.defaultView:null,pR=new WeakMap;class hR{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Oe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xu(c,"page").point)},i=(c,f)=>{var d;const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=bb(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ut(h=>{let p=this.getAxisMotionValue(h).get()||0;if(Tn.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[h];b&&(p=Nt(b)*(parseFloat(p)/100))}}this.originPoint[h]=p}),y&&se.postRender(()=>y(c,f)),(d=this.removeWillChange)===null||d===void 0||d.call(this),this.removeWillChange=cd(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:x}=f;if(m&&this.currentDirection===null){this.currentDirection=mR(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&y(c,f)},a=(c,f)=>this.stop(c,f),u=()=>Ut(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new o1(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:d1(this.visualElement)})}stop(t,n){var r;(r=this.removeWillChange)===null||r===void 0||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&se.postRender(()=>s(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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ba(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=rR(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Mo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=oR(o.layoutBox,n):this.constraints=!1,this.elastic=lR(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ut(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=aR(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Mo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=dR(r,o.root,this.visualElement.getTransformPagePoint());let s=iR(o.layout.layoutBox,i);if(n){const a=n(uR(s));this.hasMutatedConstraints=!!a,a&&(s=l1(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=Ut(c=>{if(!ba(c,n,this.currentDirection))return;let f=u&&u[c]||{};s&&(f={min:0,max:0});const d=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(rh(t,r,0,n,this.visualElement,!1,cd(this.visualElement,t)))}stopAnimation(){Ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ut(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ut(n=>{const{drag:r}=this.getProps();if(!ba(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Ce(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Mo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ut(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const u=a.get();o[s]=sR({min:u,max:u},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ut(s=>{if(!ba(s,t,null))return;const a=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];a.set(Ce(u,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;pR.set(this.visualElement,this);const t=this.visualElement.current,n=Ln(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Mo(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),se.read(r);const s=Nn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Ut(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=dd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vR extends Nr{constructor(t){super(t),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new hR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qv=e=>(t,n)=>{e&&se.postRender(()=>e(t,n))};class gR extends Nr{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(t){this.session=new o1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:d1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Qv(t),onStart:Qv(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&se.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ln(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function yR(){const e=w.useContext(mu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=w.useId();w.useEffect(()=>r(o),[]);const i=w.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const Qa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ni={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(X.test(e))e=parseFloat(e);else return e;const n=Zv(e,t.target.x),r=Zv(e,t.target.y);return`${n}% ${r}%`}},wR={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Tr.parse(e);if(o.length>5)return r;const i=Tr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=u;const l=Ce(a,u,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}};class bR extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;p_(xR),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Qa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Dp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function p1(e){const[t,n]=yR(),r=w.useContext(Fp);return S.jsx(bR,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(tb),isPresent:t,safeToRemove:n})}const xR={borderRadius:{...Ni,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ni,borderTopRightRadius:Ni,borderBottomLeftRadius:Ni,borderBottomRightRadius:Ni,boxShadow:wR},h1=["TopLeft","TopRight","BottomLeft","BottomRight"],SR=h1.length,Jv=e=>typeof e=="string"?parseFloat(e):e,eg=e=>typeof e=="number"||X.test(e);function ER(e,t,n,r,o,i){o?(e.opacity=Ce(0,n.opacity!==void 0?n.opacity:1,TR(r)),e.opacityExit=Ce(t.opacity!==void 0?t.opacity:1,0,PR(r))):i&&(e.opacity=Ce(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ks(e,t,r))}function ng(e,t){e.min=t.min,e.max=t.max}function Vt(e,t){ng(e.x,t.x),ng(e.y,t.y)}function rg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function og(e,t,n,r,o){return e-=t,e=jl(e,1/n,r),o!==void 0&&(e=jl(e,1/o,r)),e}function CR(e,t=0,n=1,r=.5,o,i=e,s=e){if(Tn.test(t)&&(t=parseFloat(t),t=Ce(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Ce(i.min,i.max,r);e===i&&(a-=t),e.min=og(e.min,t,n,a,o),e.max=og(e.max,t,n,a,o)}function ig(e,t,[n,r,o],i,s){CR(e,t[n],t[r],t[o],t.scale,i,s)}const kR=["x","scaleX","originX"],_R=["y","scaleY","originY"];function sg(e,t,n,r){ig(e.x,t,kR,n?n.x:void 0,r?r.x:void 0),ig(e.y,t,_R,n?n.y:void 0,r?r.y:void 0)}function ag(e){return e.translate===0&&e.scale===1}function v1(e){return ag(e.x)&&ag(e.y)}function lg(e,t){return e.min===t.min&&e.max===t.max}function AR(e,t){return lg(e.x,t.x)&&lg(e.y,t.y)}function ug(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function g1(e,t){return ug(e.x,t.x)&&ug(e.y,t.y)}function cg(e){return Nt(e.x)/Nt(e.y)}function fg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class RR{constructor(){this.members=[]}add(t){wu(this.members,t),t.scheduleRender()}remove(t){if(bu(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 IR(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:f,rotateY:d,skewX:m,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const OR=(e,t)=>e.depth-t.depth;class MR{constructor(){this.children=[],this.isDirty=!1}add(t){wu(this.children,t),this.isDirty=!0}remove(t){bu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OR),this.isDirty=!1,this.children.forEach(t)}}function NR(e,t){const n=Un.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Pn(r),e(i-t))};return se.read(r,!0),()=>Pn(r)}function DR(e){return e instanceof SVGElement&&e.tagName!=="svg"}function LR(e,t,n){const r=Ye(e)?e:si(e);return r.start(rh("",r,t,n)),r.animation}const Vr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zi=typeof window<"u"&&window.MotionDebug!==void 0,Oc=["","X","Y","Z"],jR={visibility:"hidden"},dg=1e3;let FR=0;function Mc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function y1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?window.MotionHasOptimisedTransformAnimation(n1(t))?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?y1(e.parent):!1:!1}function w1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=FR++,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,zi&&(Vr.totalNodes=Vr.resolvedTargetDeltas=Vr.recalculatedProjection=0),this.nodes.forEach(zR),this.nodes.forEach(HR),this.nodes.forEach(KR),this.nodes.forEach(BR),zi&&window.MotionDebug.record(Vr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=NR(d,250),Qa.hasAnimatedSinceResize&&(Qa.hasAnimatedSinceResize=!1,this.nodes.forEach(hg))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||ZR,{onLayoutAnimationStart:x,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!g1(this.targetLayout,g)||m,v=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const b={...Yp(y,"layout"),onPlay:x,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else d||hg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,Pn(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(qR),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.MotionHandoffCancelAll&&y1(this)&&window.MotionHandoffCancelAll(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const E=b/1e3;mg(f.x,s.x,E),mg(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ns(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),XR(this.relativeTarget,this.relativeTargetOrigin,d,E),v&&AR(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Oe()),Vt(v,this.relativeTarget)),y&&(this.animationValues=c,ER(c,l,this.latestValues,E,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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&&(Pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{Qa.hasAnimatedSinceResize=!0,this.currentAnimation=LR(0,dg,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},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(dg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:c}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&b1(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Oe();const f=Nt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;const d=Nt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+d}Vt(a,u),jo(a,c),ts(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new RR),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&Mc("z",s,l,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(pg),this.root.sharedNodes.clear()}}}function VR(e){e.updateLayout()}function UR(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Ut(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Nt(d);d.min=r[f].min,d.max=d.min+m}):b1(i,n.layoutBox,r)&&Ut(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Nt(r[f]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const a=Do();ts(a,r,n.layoutBox);const u=Do();s?ts(u,e.applyTransform(o,!0),n.measuredBox):ts(u,r,n.layoutBox);const l=!v1(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:m}=f;if(d&&m){const g=Oe();ns(g,n.layoutBox,d.layoutBox);const y=Oe();ns(y,r,m.layoutBox),g1(g,y)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zR(e){zi&&Vr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $R(e){e.clearSnapshot()}function pg(e){e.clearMeasurements()}function WR(e){e.isLayoutDirty=!1}function GR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HR(e){e.resolveTargetDelta()}function KR(e){e.calcProjection()}function qR(e){e.resetSkewAndRotation()}function YR(e){e.removeLeadSnapshot()}function mg(e,t,n){e.translate=Ce(t.translate,0,n),e.scale=Ce(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vg(e,t,n,r){e.min=Ce(t.min,n.min,r),e.max=Ce(t.max,n.max,r)}function XR(e,t,n,r){vg(e.x,t.x,n.x,r),vg(e.y,t.y,n.y,r)}function QR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZR={duration:.45,ease:[.4,0,.1,1]},gg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yg=gg("applewebkit/")&&!gg("chrome/")?Math.round:ut;function wg(e){e.min=yg(e.min),e.max=yg(e.max)}function JR(e){wg(e.x),wg(e.y)}function b1(e,t,n){return e==="position"||e==="preserve-aspect"&&!tR(cg(t),cg(n),.2)}function eI(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const tI=w1({attachResizeListener:(e,t)=>Nn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nc={current:void 0},x1=w1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nc.current){const e=new tI({});e.mount(window),e.setOptions({layoutScroll:!0}),Nc.current=e}return Nc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nI={pan:{Feature:gR},drag:{Feature:vR,ProjectionNode:x1,MeasureLayout:p1}},md={current:null},S1={current:!1};function rI(){if(S1.current=!0,!!Np)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>md.current=e.matches;e.addListener(t),t()}else md.current=!1}function oI(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ye(o))e.addValue(r,o);else if(Ye(i))e.addValue(r,si(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,si(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bg=new WeakMap,iI=[..._b,at,Tr],sI=e=>iI.find(kb(e)),xg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],aI=jp.length;class lI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,se.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=yu(n),this.isVariantNode=rb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];u[d]!==void 0&&Ye(m)&&m.set(u[d],!1)}}mount(t){this.current=t,bg.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)),S1.current||rI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:md.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bg.delete(this.current),this.projection&&this.projection.unmount(),Pn(this.notifyUpdate),Pn(this.render),this.valueSubscriptions.forEach(t=>t()),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){const r=Mr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&se.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),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 oi){const n=oi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Oe()}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;rn.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=si(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Pb(o)||Tb(o))?o=parseFloat(o):!sI(o)&&Tr.test(n)&&(o=Lb(t,n)),this.setBaseTarget(t,Ye(o)?o.get():o)),Ye(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=qp(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class E1 extends lI{constructor(){super(...arguments),this.KeyframeResolver=jb}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]}}function uI(e){return window.getComputedStyle(e)}class cI extends E1{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=fb}readValueFromInstance(t,n){if(Mr.has(n)){const r=Zp(n);return r&&r.default||0}else{const r=uI(t),o=(ab(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return f1(t,n)}build(t,n,r){$p(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Kp(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class fI extends E1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Oe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mr.has(n)){const r=Zp(n);return r&&r.default||0}return n=db.has(n)?n:gu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hb(t,n,r)}build(t,n,r){Gp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){pb(t,n,r,o)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const dI=(e,t)=>Vp(e)?new fI(t):new cI(t,{allowProjection:e!==w.Fragment}),pI={layout:{ProjectionNode:x1,MeasureLayout:p1}},hI={...KA,...n2,...nI,...pI},vd=f_((e,t)=>$_(e,t,hI,dI));class mI extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function vI({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=w.useContext(Us);return w.useInsertionEffect(()=>{const{width:s,height:a,top:u,left:l}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; @@ -130,18 +130,18 @@ Error generating stack: `+i.message+` top: ${u}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),S.jsx(mI,{isPresent:t,childRef:r,sizeRef:o,children:w.cloneElement(e,{ref:r})})}const gI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Ws(yI),u=w.useId(),l=w.useMemo(()=>({id:u,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const f of a.values())if(!f)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?[Math.random()]:[n]);return w.useMemo(()=>{a.forEach((c,f)=>a.set(f,!1))},[n]),w.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=S.jsx(vI,{isPresent:n,children:e})),S.jsx(mu.Provider,{value:l,children:e})};function yI(){return new Map}const xa=e=>e.key||"";function Sg(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const T1=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=w.useMemo(()=>Sg(e),[e]),u=a.map(xa),l=w.useRef(!0),c=w.useRef(a),f=Ws(()=>new Map),[d,m]=w.useState(a),[g,y]=w.useState(a);vu(()=>{l.current=!1,c.current=a;for(let p=0;p{const v=xa(p),b=a===g||u.includes(v),E=()=>{if(f.has(v))f.set(v,!0);else return;let C=!0;f.forEach(k=>{k||(C=!1)}),C&&(h==null||h(),y(c.current),o&&o())};return S.jsx(gI,{isPresent:b,initial:!l.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:E,children:p},v)})})};function ih(e){const t=Ws(()=>si(e)),{isStatic:n}=w.useContext(Us);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}const wI=e=>e&&typeof e=="object"&&e.mix,bI=e=>wI(e)?e.mix:void 0;function xI(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],s=e[3+n],a=Qb(o,i,{mixer:bI(i[0]),...s});return t?a(r):a}function C1(e,t){const n=ih(t()),r=()=>n.set(t());return r(),vu(()=>{const o=()=>se.preRender(r,!1,!0),i=e.map(s=>s.on("change",o));return()=>{i.forEach(s=>s()),Cn(r)}}),n}function SI(e){es.current=[],e();const t=C1(es.current,e);return es.current=void 0,t}function Eg(e,t,n,r){if(typeof e=="function")return SI(e);const o=typeof t=="function"?t:xI(t,n,r);return Array.isArray(e)?Tg(e,o):Tg([e],([i])=>o(i))}function Tg(e,t){const n=Ws(()=>[]);return C1(e,()=>{n.length=0;const r=e.length;for(let o=0;o{}),a=()=>{const l=r.current;l&&l.time===0&&l.sample(Ke.delta),u(),r.current=bA({keyframes:[o.get(),i.current],velocity:o.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:s.current})},u=()=>{r.current&&r.current.stop()};return w.useInsertionEffect(()=>o.attach((l,c)=>n?c(l):(i.current=l,s.current=c,se.update(a),o.get()),u),[JSON.stringify(t)]),vu(()=>{if(Ye(e))return e.on("change",l=>o.set(Cg(l)))},[o]),o}var Be=function(){return Be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Sa(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,wi)},DI=function(){function e(t){this.client=t,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(t,n){var r,o;return tt(this,void 0,void 0,function(){return nt(this,function(i){switch(i.label){case 0:return this.plugins.some(function(s){return s.name===t.name})?(n.loggerProvider.warn("Plugin with name ".concat(t.name," already exists, skipping registration")),[2]):(t.name===void 0&&(t.name=wi(),n.loggerProvider.warn(`Plugin name is undefined. + `),()=>{document.head.removeChild(c)}},[t]),S.jsx(mI,{isPresent:t,childRef:r,sizeRef:o,children:w.cloneElement(e,{ref:r})})}const gI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Ws(yI),u=w.useId(),l=w.useMemo(()=>({id:u,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const f of a.values())if(!f)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?[Math.random()]:[n]);return w.useMemo(()=>{a.forEach((c,f)=>a.set(f,!1))},[n]),w.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=S.jsx(vI,{isPresent:n,children:e})),S.jsx(mu.Provider,{value:l,children:e})};function yI(){return new Map}const xa=e=>e.key||"";function Sg(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const T1=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=w.useMemo(()=>Sg(e),[e]),u=a.map(xa),l=w.useRef(!0),c=w.useRef(a),f=Ws(()=>new Map),[d,m]=w.useState(a),[g,y]=w.useState(a);vu(()=>{l.current=!1,c.current=a;for(let p=0;p{const v=xa(p),b=a===g||u.includes(v),E=()=>{if(f.has(v))f.set(v,!0);else return;let P=!0;f.forEach(k=>{k||(P=!1)}),P&&(h==null||h(),y(c.current),o&&o())};return S.jsx(gI,{isPresent:b,initial:!l.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:E,children:p},v)})})};function ih(e){const t=Ws(()=>si(e)),{isStatic:n}=w.useContext(Us);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}const wI=e=>e&&typeof e=="object"&&e.mix,bI=e=>wI(e)?e.mix:void 0;function xI(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],s=e[3+n],a=Qb(o,i,{mixer:bI(i[0]),...s});return t?a(r):a}function P1(e,t){const n=ih(t()),r=()=>n.set(t());return r(),vu(()=>{const o=()=>se.preRender(r,!1,!0),i=e.map(s=>s.on("change",o));return()=>{i.forEach(s=>s()),Pn(r)}}),n}function SI(e){es.current=[],e();const t=P1(es.current,e);return es.current=void 0,t}function Eg(e,t,n,r){if(typeof e=="function")return SI(e);const o=typeof t=="function"?t:xI(t,n,r);return Array.isArray(e)?Tg(e,o):Tg([e],([i])=>o(i))}function Tg(e,t){const n=Ws(()=>[]);return P1(e,()=>{n.length=0;const r=e.length;for(let o=0;o{}),a=()=>{const l=r.current;l&&l.time===0&&l.sample(Ke.delta),u(),r.current=bA({keyframes:[o.get(),i.current],velocity:o.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:s.current})},u=()=>{r.current&&r.current.stop()};return w.useInsertionEffect(()=>o.attach((l,c)=>n?c(l):(i.current=l,s.current=c,se.update(a),o.get()),u),[JSON.stringify(t)]),vu(()=>{if(Ye(e))return e.on("change",l=>o.set(Pg(l)))},[o]),o}var Be=function(){return Be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Sa(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,wi)},DI=function(){function e(t){this.client=t,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(t,n){var r,o;return tt(this,void 0,void 0,function(){return nt(this,function(i){switch(i.label){case 0:return this.plugins.some(function(s){return s.name===t.name})?(n.loggerProvider.warn("Plugin with name ".concat(t.name," already exists, skipping registration")),[2]):(t.name===void 0&&(t.name=wi(),n.loggerProvider.warn(`Plugin name is undefined. Generating a random UUID for plugin name: `.concat(t.name,`. - Set a name for the plugin to prevent it from being added multiple times.`))),t.type=(r=t.type)!==null&&r!==void 0?r:"enrichment",[4,(o=t.setup)===null||o===void 0?void 0:o.call(t,n,this.client)]);case 1:return i.sent(),this.plugins.push(t),[2]}})})},e.prototype.deregister=function(t){var n;return tt(this,void 0,void 0,function(){var r,o;return nt(this,function(i){switch(i.label){case 0:return r=this.plugins.findIndex(function(s){return s.name===t}),o=this.plugins[r],this.plugins.splice(r,1),[4,(n=o.teardown)===null||n===void 0?void 0:n.call(o)];case 1:return i.sent(),[2]}})})},e.prototype.reset=function(t){this.applying=!1;var n=this.plugins;n.map(function(r){var o;return(o=r.teardown)===null||o===void 0?void 0:o.call(r)}),this.plugins=[],this.client=t},e.prototype.push=function(t){var n=this;return new Promise(function(r){n.queue.push([t,r]),n.scheduleApply(0)})},e.prototype.scheduleApply=function(t){var n=this;this.applying||(this.applying=!0,setTimeout(function(){n.apply(n.queue.shift()).then(function(){n.applying=!1,n.queue.length>0&&n.scheduleApply(0)})},t))},e.prototype.apply=function(t){return tt(this,void 0,void 0,function(){var n,r,o,i,s,a,u,m,g,l,c,f,d,m,g,y,x,h,p,v,b,E;return nt(this,function(C){switch(C.label){case 0:if(!t)return[2];n=Gr(t,1),r=n[0],o=Gr(t,2),i=o[1],s=this.plugins.filter(function(k){return k.type==="before"}),C.label=1;case 1:C.trys.push([1,6,7,8]),a=ai(s),u=a.next(),C.label=2;case 2:return u.done?[3,5]:(m=u.value,m.execute?[4,m.execute(Be({},r))]:[3,4]);case 3:if(g=C.sent(),g===null)return i({event:r,code:0,message:""}),[2];r=g,C.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return l=C.sent(),p={error:l},[3,8];case 7:try{u&&!u.done&&(v=a.return)&&v.call(a)}finally{if(p)throw p.error}return[7];case 8:c=this.plugins.filter(function(k){return k.type==="enrichment"||k.type===void 0}),C.label=9;case 9:C.trys.push([9,14,15,16]),f=ai(c),d=f.next(),C.label=10;case 10:return d.done?[3,13]:(m=d.value,m.execute?[4,m.execute(Be({},r))]:[3,12]);case 11:if(g=C.sent(),g===null)return i({event:r,code:0,message:""}),[2];r=g,C.label=12;case 12:return d=f.next(),[3,10];case 13:return[3,16];case 14:return y=C.sent(),b={error:y},[3,16];case 15:try{d&&!d.done&&(E=f.return)&&E.call(f)}finally{if(b)throw b.error}return[7];case 16:return x=this.plugins.filter(function(k){return k.type==="destination"}),h=x.map(function(k){var T=Be({},r);return k.execute(T).catch(function(O){return Ho(T,0,String(O))})}),Promise.all(h).then(function(k){var T=Gr(k,1),O=T[0],D=O||Ho(r,100,"Event not tracked, no destination plugins on the instance");i(D)}),[2]}})})},e.prototype.flush=function(){return tt(this,void 0,void 0,function(){var t,n,r,o=this;return nt(this,function(i){switch(i.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map(function(s){return o.apply(s)}))];case 1:return i.sent(),n=this.plugins.filter(function(s){return s.type==="destination"}),r=n.map(function(s){return s.flush&&s.flush()}),[4,Promise.all(r)];case 2:return i.sent(),[2]}})})},e}(),kg="-",Cu="AMP",LI="".concat(Cu,"_unsent"),P1="https://api2.amplitude.com/2/httpapi",jI="https://api.eu.amplitude.com/2/httpapi",FI="https://api2.amplitude.com/batch",VI="https://api.eu.amplitude.com/batch",UI=1e3,gd=function(e){if(Object.keys(e).length>UI)return!1;for(var t in e){var n=e[t];if(!k1(t,n))return!1}return!0},k1=function(e,t){var n,r;if(typeof e!="string")return!1;if(Array.isArray(t)){var o=!0;try{for(var i=ai(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(Array.isArray(a))return!1;if(typeof a=="object")o=o&&gd(a);else if(!["number","string"].includes(typeof a))return!1;if(!o)return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}else{if(t==null)return!1;if(typeof t=="object")return gd(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},Vl=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return Be({},this._properties)},e.prototype.set=function(t,n){return this._safeSet(He.SET,t,n),this},e.prototype.setOnce=function(t,n){return this._safeSet(He.SET_ONCE,t,n),this},e.prototype.append=function(t,n){return this._safeSet(He.APPEND,t,n),this},e.prototype.prepend=function(t,n){return this._safeSet(He.PREPEND,t,n),this},e.prototype.postInsert=function(t,n){return this._safeSet(He.POSTINSERT,t,n),this},e.prototype.preInsert=function(t,n){return this._safeSet(He.PREINSERT,t,n),this},e.prototype.remove=function(t,n){return this._safeSet(He.REMOVE,t,n),this},e.prototype.add=function(t,n){return this._safeSet(He.ADD,t,n),this},e.prototype.unset=function(t){return this._safeSet(He.UNSET,t,kg),this},e.prototype.clearAll=function(){return this._properties={},this._properties[He.CLEAR_ALL]=kg,this},e.prototype._safeSet=function(t,n,r){if(this._validate(t,n,r)){var o=this._properties[t];return o===void 0&&(o={},this._properties[t]=o),o[n]=r,this._propertySet.add(n),!0}return!1},e.prototype._validate=function(t,n,r){return this._properties[He.CLEAR_ALL]!==void 0||this._propertySet.has(n)?!1:t===He.ADD?typeof r=="number":t!==He.UNSET&&t!==He.REMOVE?k1(n,r):!0},e}(),zI=function(e,t,n){var r=typeof e=="string"?{event_type:e}:e;return Be(Be(Be({},r),n),t&&{event_properties:t})},_1=function(e,t){var n=Be(Be({},t),{event_type:li.IDENTIFY,user_properties:e.getUserProperties()});return n},BI=function(e,t,n,r){var o,i=Be(Be({},r),{event_type:li.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(o={},o[e]=t,o)});return i},$I=function(e,t,n){var r,o=new Vl;o.set(e,t);var i=Be(Be({},n),{event_type:li.IDENTIFY,user_properties:o.getUserProperties(),groups:(r={},r[e]=t,r)});return i},WI=function(e,t){return Be(Be({},t),{event_type:li.REVENUE,event_properties:e.getEventProperties()})},bt=function(e){return{promise:e||Promise.resolve()}},GI=function(){function e(t){t===void 0&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new DI(this),this.name=t}return e.prototype._init=function(t){return tt(this,void 0,void 0,function(){return nt(this,function(n){switch(n.label){case 0:return this.config=t,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return n.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(t){return tt(this,void 0,void 0,function(){var n,r,o,i,s,a,u,l;return nt(this,function(c){switch(c.label){case 0:n=this[t],this[t]=[],c.label=1;case 1:c.trys.push([1,8,9,10]),r=ai(n),o=r.next(),c.label=2;case 2:return o.done?[3,7]:(i=o.value,s=i(),s&&"promise"in s?[4,s.promise]:[3,4]);case 3:return c.sent(),[3,6];case 4:return[4,s];case 5:c.sent(),c.label=6;case 6:return o=r.next(),[3,2];case 7:return[3,10];case 8:return a=c.sent(),u={error:a},[3,10];case 9:try{o&&!o.done&&(l=r.return)&&l.call(r)}finally{if(u)throw u.error}return[7];case 10:return this[t].length?[4,this.runQueuedFunctions(t)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[2]}})})},e.prototype.track=function(t,n,r){var o=zI(t,n,r);return bt(this.dispatch(o))},e.prototype.identify=function(t,n){var r=_1(t,n);return bt(this.dispatch(r))},e.prototype.groupIdentify=function(t,n,r,o){var i=BI(t,n,r,o);return bt(this.dispatch(i))},e.prototype.setGroup=function(t,n,r){var o=$I(t,n,r);return bt(this.dispatch(o))},e.prototype.revenue=function(t,n){var r=WI(t,n);return bt(this.dispatch(r))},e.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),bt())},e.prototype._addPlugin=function(t){return bt(this.timeline.register(t,this.config))},e.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),bt())},e.prototype._removePlugin=function(t){return bt(this.timeline.deregister(t))},e.prototype.dispatchWithCallback=function(t,n){if(!this.isReady)return n(Ho(t,0,RI));this.process(t).then(n)},e.prototype.dispatch=function(t){return tt(this,void 0,void 0,function(){var n=this;return nt(this,function(r){return this.isReady?[2,this.process(t)]:[2,new Promise(function(o){n.dispatchQ.push(n.dispatchWithCallback.bind(n,t,o))})]})})},e.prototype.process=function(t){return tt(this,void 0,void 0,function(){var o,n,r,o;return nt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.config.optOut?[2,Ho(t,0,kI)]:[4,this.timeline.push(t)];case 1:return o=i.sent(),o.code===200?this.config.loggerProvider.log(o.message):o.code===100?this.config.loggerProvider.warn(o.message):this.config.loggerProvider.error(o.message),[2,o];case 2:return n=i.sent(),r=String(n),this.config.loggerProvider.error(r),o=Ho(t,0,r),[2,o];case 3:return[2]}})})},e.prototype.setOptOut=function(t){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!t));return}this._setOptOut(t)},e.prototype._setOptOut=function(t){this.config.optOut=!!t},e.prototype.flush=function(){return bt(this.timeline.flush())},e}(),HI=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(t){return this.productId=t,this},e.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},e.prototype.setPrice=function(t){return this.price=t,this},e.prototype.setRevenueType=function(t){return this.revenueType=t,this},e.prototype.setRevenue=function(t){return this.revenue=t,this},e.prototype.setEventProperties=function(t){return gd(t)&&(this.properties=t),this},e.prototype.getEventProperties=function(){var t=this.properties?Be({},this.properties):{};return t[Ur.REVENUE_PRODUCT_ID]=this.productId,t[Ur.REVENUE_QUANTITY]=this.quantity,t[Ur.REVENUE_PRICE]=this.price,t[Ur.REVENUE_TYPE]=this.revenueType,t[Ur.REVENUE]=this.revenue,t},e}(),KI=function(e,t){var n=Math.max(t,1);return e.reduce(function(r,o,i){var s=Math.floor(i/n);return r[s]||(r[s]=[]),r[s].push(o),r},[])},Ea="Amplitude Logger ",A1=function(){function e(){this.logLevel=_t.None}return e.prototype.disable=function(){this.logLevel=_t.None},e.prototype.enable=function(t){t===void 0&&(t=_t.Warn),this.logLevel=t},e.prototype.log=function(){for(var t=[],n=0;n0&&Promise.all(r.map(function(s){return o.execute(s)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(t){var n=this;return t.insert_id||(t.insert_id=wi()),new Promise(function(r){var o={event:t,attempts:0,callback:function(i){return r(i)},timeout:0};n.addToQueue(o)})},e.prototype.getTryableList=function(t){var n=this;return t.filter(function(r){return r.attempts0&&n.schedule(t)})},t))},e.prototype.flush=function(t){return t===void 0&&(t=!1),tt(this,void 0,void 0,function(){var n,r,o,i=this;return nt(this,function(s){switch(s.label){case 0:return this.config.offline?(this.config.loggerProvider.debug("Skipping flush while offline."),[2]):(n=[],r=[],this.queue.forEach(function(a){return a.timeout===0?n.push(a):r.push(a)}),this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),o=KI(n,this.config.flushQueueSize),[4,Promise.all(o.map(function(a){return i.send(a,t)}))]);case 1:return s.sent(),this.scheduleTryable(r),[2]}})})},e.prototype.send=function(t,n){return n===void 0&&(n=!0),tt(this,void 0,void 0,function(){var r,o,i,s,a;return nt(this,function(u){switch(u.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,_I)];r={api_key:this.config.apiKey,events:t.map(function(l){var c=l.event;c.extra;var f=EI(c,["extra"]);return f}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new I1,u.label=1;case 1:return u.trys.push([1,3,,4]),o=R1(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(o,r)];case 2:return i=u.sent(),i===null?(this.fulfillRequest(t,0,CI),[2]):n?(this.handleResponse(i,t),[3,4]):("body"in i?this.fulfillRequest(t,i.statusCode,"".concat(i.status,": ").concat(Ta(i))):this.fulfillRequest(t,i.statusCode,i.status),[2]);case 3:return s=u.sent(),a=XI(s),this.config.loggerProvider.error(a),this.handleResponse({status:Ae.Failed,statusCode:0},t),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(t,n){var r=t.status;switch(r){case Ae.Success:{this.handleSuccessResponse(t,n);break}case Ae.Invalid:{this.handleInvalidResponse(t,n);break}case Ae.PayloadTooLarge:{this.handlePayloadTooLargeResponse(t,n);break}case Ae.RateLimit:{this.handleRateLimitResponse(t,n);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(r,"' provided for ").concat(n.length,' events"}')),this.handleOtherResponse(n);break}}},e.prototype.handleSuccessResponse=function(t,n){this.fulfillRequest(n,t.statusCode,TI)},e.prototype.handleInvalidResponse=function(t,n){var r=this;if(t.body.missingField||t.body.error.startsWith(AI)){this.fulfillRequest(n,t.statusCode,t.body.error);return}var o=Sa(Sa(Sa(Sa([],Gr(Object.values(t.body.eventsWithInvalidFields)),!1),Gr(Object.values(t.body.eventsWithMissingFields)),!1),Gr(Object.values(t.body.eventsWithInvalidIdLengths)),!1),Gr(t.body.silencedEvents),!1).flat(),i=new Set(o),s=n.filter(function(u,l){if(i.has(l)){r.fulfillRequest([u],t.statusCode,t.body.error);return}return!0});s.length>0&&this.config.loggerProvider.warn(Ta(t));var a=this.getTryableList(s);this.scheduleTryable(a)},e.prototype.handlePayloadTooLargeResponse=function(t,n){if(n.length===1){this.fulfillRequest(n,t.statusCode,t.body.error);return}this.config.loggerProvider.warn(Ta(t)),this.config.flushQueueSize/=2;var r=this.getTryableList(n);this.scheduleTryable(r)},e.prototype.handleRateLimitResponse=function(t,n){var r=this,o=Object.keys(t.body.exceededDailyQuotaUsers),i=Object.keys(t.body.exceededDailyQuotaDevices),s=t.body.throttledEvents,a=new Set(o),u=new Set(i),l=new Set(s),c=n.filter(function(d,m){if(d.event.user_id&&a.has(d.event.user_id)||d.event.device_id&&u.has(d.event.device_id)){r.fulfillRequest([d],t.statusCode,t.body.error);return}return l.has(m)&&(d.timeout=r.throttleTimeout),!0});c.length>0&&this.config.loggerProvider.warn(Ta(t));var f=this.getTryableList(c);this.scheduleTryable(f)},e.prototype.handleOtherResponse=function(t){var n=this,r=t.map(function(i){return i.timeout=i.attempts*n.retryTimeout,i}),o=this.getTryableList(r);this.scheduleTryable(o)},e.prototype.fulfillRequest=function(t,n,r){this.removeEvents(t),t.forEach(function(o){return o.callback(Ho(o.event,n,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var t=this.queue.map(function(n){return n.event});this.config.storageProvider.set(this.storageKey,t)}},e.prototype.removeEvents=function(t){this.queue=this.queue.filter(function(n){return!t.some(function(r){return r.event.insert_id===n.event.insert_id})}),this.saveEvents()},e}(),ZI=function(e){var t=new Error().stack||"";return t.split(` -`).slice(2+e).map(function(n){return n.trim()})},De=function(e){return function(){var t=Be({},e.config),n=t.loggerProvider,r=t.logLevel;return{logger:n,logLevel:r}}},JI=function(e,t){var n,r;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");try{for(var o=ai(t.split(".")),i=o.next();!i.done;i=o.next()){var s=i.value;if(s in e)e=e[s];else return}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},Le=function(e,t){return function(){var n,r,o={};try{for(var i=ai(t),s=i.next();!s.done;s=i.next()){var a=s.value;o[a]=JI(e,a)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}},je=function(e,t,n,r,o){return o===void 0&&(o=null),function(){for(var i=[],s=0;s=200&&t<300?Ae.Success:t===429?Ae.RateLimit:t===413?Ae.PayloadTooLarge:t===408?Ae.Timeout:t>=400&&t<500?Ae.Invalid:t>=500?Ae.Failed:Ae.Unknown},e}(),yd=function(e,t){return yd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},yd(e,t)};function bi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Fe=function(){return Fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}var wd=function(e,t){return wd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},wd(e,t)};function tO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nn=function(){return nn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}var sn=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},Ul=function(){var e,t=sn();if(!(!((e=t==null?void 0:t.location)===null||e===void 0)&&e.search))return{};var n=t.location.search.substring(1).split("&").filter(Boolean),r=n.reduce(function(o,i){var s=i.split("=",2),a=Ag(s[0]),u=Ag(s[1]);return u&&(o[a]=u),o},{});return r},Ag=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},nO="utm_campaign",rO="utm_content",oO="utm_id",iO="utm_medium",sO="utm_source",aO="utm_term",Rg="dclid",Ig="fbclid",Og="gbraid",Mg="gclid",Ng="ko_click_id",Dg="li_fat_id",Lg="msclkid",jg="rtd_cid",Fg="ttclid",Vg="twclid",Ug="wbraid",ku={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},M1=function(){function e(){}return e.prototype.parse=function(){return Wt(this,void 0,void 0,function(){return Gt(this,function(t){return[2,nn(nn(nn(nn({},ku),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=Ul(),n=t[nO],r=t[rO],o=t[oO],i=t[iO],s=t[sO],a=t[aO];return{utm_campaign:n,utm_content:r,utm_id:o,utm_medium:i,utm_source:s,utm_term:a}},e.prototype.getReferrer=function(){var t,n,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=(n=(t=r.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&n!==void 0?n:void 0}catch{}return r},e.prototype.getClickIds=function(){var t,n=Ul();return t={},t[Rg]=n[Rg],t[Ig]=n[Ig],t[Og]=n[Og],t[Mg]=n[Mg],t[Ng]=n[Ng],t[Dg]=n[Dg],t[Lg]=n[Lg],t[jg]=n[jg],t[Fg]=n[Fg],t[Vg]=n[Vg],t[Ug]=n[Ug],t},e}(),N1=function(e,t,n){return t===void 0&&(t=""),n===void 0&&(n=10),[Cu,t,e.substring(0,n)].filter(Boolean).join("_")},lO=function(e){return"".concat(Cu.toLowerCase(),"_").concat(e.substring(0,6))},zg=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},uO=function(e){return Object.values(e).every(function(t){return!t})},cO=function(e,t,n,r){r===void 0&&(r=!0),e.referrer;var o=e.referring_domain,i=_g(e,["referrer","referring_domain"]),s=t||{};s.referrer;var a=s.referring_domain,u=_g(s,["referrer","referring_domain"]);if(fO(n.excludeReferrers,e.referring_domain)||!r&&uO(e)&&t)return!1;var l=JSON.stringify(i)!==JSON.stringify(u),c=zg(o||"")!==zg(a||"");return!t||l||c},fO=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=""),e.some(function(n){return n instanceof RegExp?n.test(t):n===t})},dO=function(e,t){var n=nn(nn({},ku),e),r=Object.entries(n).reduce(function(o,i){var s,a=O1(i,2),u=a[0],l=a[1];return o.setOnce("initial_".concat(u),(s=l??t.initialEmptyValue)!==null&&s!==void 0?s:"EMPTY"),l?o.set(u,l):o.unset(u)},new Vl);return _1(r)},pO=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},hO=function(e,t,n){return n===void 0&&(n=10),[Cu,t,e.substring(0,n)].filter(Boolean).join("_")},D1=function(e,t){t===void 0&&(t=Date.now());var n=Date.now(),r=n-t;return r>e},mO=function(){function e(t,n){var r;this.shouldTrackNewCampaign=!1,this.options=nn({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:pO((r=n.cookieOptions)===null||r===void 0?void 0:r.domain)},t),this.storage=n.cookieStorage,this.storageKey=hO(n.apiKey,"MKTG"),this.currentCampaign=ku,this.sessionTimeout=n.sessionTimeout,this.lastEventTime=n.lastEventTime,n.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return Wt(this,void 0,void 0,function(){var t,n;return Gt(this,function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return n=O1.apply(void 0,[r.sent(),2]),this.currentCampaign=n[0],this.previousCampaign=n[1],t=this.lastEventTime?D1(this.sessionTimeout,this.lastEventTime):!0,cO(this.currentCampaign,this.previousCampaign,this.options,t)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return Wt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,Promise.all([new M1().parse(),this.storage.get(this.storageKey)])];case 1:return[2,t.sent()]}})})},e.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var n=dO(this.currentCampaign,this.options);return t&&(n.event_id=t),n},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),bd=function(){function e(t){this.options=nn({},t)}return e.prototype.isEnabled=function(){return Wt(this,void 0,void 0,function(){var t,n,r;return Gt(this,function(o){switch(o.label){case 0:if(!sn())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return o.sent(),[4,t.get(n)];case 3:return r=o.sent(),[2,r===e.testValue];case 4:return o.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){var n;return Wt(this,void 0,void 0,function(){var r,o;return Gt(this,function(i){switch(i.label){case 0:return[4,this.getRaw(t)];case 1:if(r=i.sent(),!r)return[2,void 0];try{return o=(n=vO(r))!==null&&n!==void 0?n:gO(r),o===void 0?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(r)),[2,void 0]):[2,JSON.parse(o)]}catch{return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(r)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(t){var n,r;return Wt(this,void 0,void 0,function(){var o,i,s;return Gt(this,function(a){return o=sn(),i=(r=(n=o==null?void 0:o.document)===null||n===void 0?void 0:n.cookie.split("; "))!==null&&r!==void 0?r:[],s=i.find(function(u){return u.indexOf(t+"=")===0}),s?[2,s.substring(t.length+1)]:[2,void 0]})})},e.prototype.set=function(t,n){var r;return Wt(this,void 0,void 0,function(){var o,i,s,a,u,l,c;return Gt(this,function(f){try{o=(r=this.options.expirationDays)!==null&&r!==void 0?r:0,i=n!==null?o:-1,s=void 0,i&&(a=new Date,a.setTime(a.getTime()+i*24*60*60*1e3),s=a),u="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(n)))),s&&(u+="; expires=".concat(s.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite)),l=sn(),l&&(l.document.cookie=u)}catch(d){c=d instanceof Error?d.message:String(d),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(c))}return[2]})})},e.prototype.remove=function(t){return Wt(this,void 0,void 0,function(){return Gt(this,function(n){switch(n.label){case 0:return[4,this.set(t,null)];case 1:return n.sent(),[2]}})})},e.prototype.reset=function(){return Wt(this,void 0,void 0,function(){return Gt(this,function(t){return[2]})})},e}(),vO=function(e){try{return decodeURIComponent(atob(e))}catch{return}},gO=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},yO=function(e){tO(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(n,r){return Wt(this,void 0,void 0,function(){var o,i,s;return Gt(this,function(a){switch(a.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return o={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(r),method:"POST"},[4,fetch(n,o)];case 1:return i=a.sent(),[4,i.text()];case 2:s=a.sent();try{return[2,this.buildResponse(JSON.parse(s))]}catch{return[2,this.buildResponse({code:i.status})]}return[2]}})})},t}(Pu),wO=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:bO(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),bO=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},xO=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(n){t(n)}),this.queue=[])},e}(),ir=function(){return ir=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return"";var o=navigator.userLanguage;return(r=(n=(t=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:navigator.language)!==null&&n!==void 0?n:o)!==null&&r!==void 0?r:""},Hs=function(e,t){return typeof e=="boolean"?e:(e==null?void 0:e[t])!==!1},L1=function(e){return Hs(e,"attribution")},IO=function(e){return Hs(e,"fileDownloads")},OO=function(e){return Hs(e,"formInteractions")},j1=function(e){return Hs(e,"pageViews")},Bg=function(e){return Hs(e,"sessions")},F1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},MO=function(e){if(F1(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},NO=function(e){var t=function(){return!1},n=void 0,r,o=e.pageCounter,i=j1(e.defaultTracking);return i&&(t=void 0,r=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(r=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:n,eventType:r,pageCounter:o}},DO=function(e){return L1(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?nn({},e.defaultTracking.attribution):{}},Dc=function(e,t){for(var n=0;nCa?(i=r.length-Ca,[4,e.prototype.set.call(this,n,r.slice(0,Ca))]):[3,2];case 1:return s.sent(),(o=this.loggerProvider)===null||o===void 0||o.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(Ca,".")),[3,4];case 2:return[4,e.prototype.set.call(this,n,r)];case 3:s.sent(),s.label=4;case 4:return[2]}})})},t}(V1),UO=function(e){bi(t,e);function t(){var n;return e.call(this,(n=sn())===null||n===void 0?void 0:n.sessionStorage)||this}return t}(V1),zO=function(e){bi(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={done:4},n}return t.prototype.send=function(n,r){return de(this,void 0,void 0,function(){var o=this;return pe(this,function(i){return[2,new Promise(function(s,a){typeof XMLHttpRequest>"u"&&a(new Error("XHRTransport is not supported."));var u=new XMLHttpRequest;u.open("POST",n,!0),u.onreadystatechange=function(){if(u.readyState===o.state.done){var l=u.responseText;try{s(o.buildResponse(JSON.parse(l)))}catch{s(o.buildResponse({code:u.status}))}}},u.setRequestHeader("Content-Type","application/json"),u.setRequestHeader("Accept","*/*"),u.send(JSON.stringify(r))})]})})},t}(Pu),BO=function(e){bi(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(n,r){return de(this,void 0,void 0,function(){var o=this;return pe(this,function(i){return[2,new Promise(function(s,a){var u=sn();if(!(u!=null&&u.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var l=JSON.stringify(r),c=u.navigator.sendBeacon(n,JSON.stringify(r));return s(c?o.buildResponse({code:200,events_ingested:r.events.length,payload_size_bytes:l.length,server_upload_time:Date.now()}):o.buildResponse({code:500}))}catch(f){a(f)}})]})})},t}(Pu),$O=function(e,t,n){return n===void 0&&(n=!0),de(void 0,void 0,void 0,function(){var r,o,i,s,a,u,l,c,f;return pe(this,function(d){switch(d.label){case 0:return r=lO(e),[4,t.getRaw(r)];case 1:return o=d.sent(),o?n?[4,t.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:d.sent(),d.label=3;case 3:return i=eO(o.split("."),6),s=i[0],a=i[1],u=i[2],l=i[3],c=i[4],f=i[5],[2,{deviceId:s,userId:WO(a),sessionId:jc(l),lastEventId:jc(f),lastEventTime:jc(c),optOut:!!u}]}})})},jc=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},WO=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},fn="[Amplitude]",$g="".concat(fn," Form Started"),GO="".concat(fn," Form Submitted"),HO="".concat(fn," File Downloaded"),Wg="session_start",Gg="session_end",KO="".concat(fn," File Extension"),qO="".concat(fn," File Name"),YO="".concat(fn," Link ID"),XO="".concat(fn," Link Text"),QO="".concat(fn," Link URL"),Fc="".concat(fn," Form ID"),Vc="".concat(fn," Form Name"),Uc="".concat(fn," Form Destination"),zl="cookie",ZO="US",JO=function(e){bi(t,e);function t(n,r,o,i,s,a,u,l,c,f,d,m,g,y,x,h,p,v,b,E,C,k,T,O,D,z,F,K,V,B,$,W,M,R){o===void 0&&(o=new sh),i===void 0&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),l===void 0&&(l=1e3),c===void 0&&(c=5),f===void 0&&(f=30),d===void 0&&(d=zl),h===void 0&&(h=new A1),p===void 0&&(p=_t.Warn),b===void 0&&(b=!1),E===void 0&&(E=!1),T===void 0&&(T=""),O===void 0&&(O=ZO),z===void 0&&(z=30*60*1e3),F===void 0&&(F=new U1({loggerProvider:h})),K===void 0&&(K={ipAddress:!0,language:!0,platform:!0}),V===void 0&&(V="fetch"),B===void 0&&(B=!1),$===void 0&&($=!1);var N=e.call(this,{apiKey:n,storageProvider:F,transportProvider:z1(V)})||this;return N.apiKey=n,N.appVersion=r,N.cookieOptions=i,N.defaultTracking=s,N.autocapture=a,N.flushIntervalMillis=l,N.flushMaxRetries=c,N.flushQueueSize=f,N.identityStorage=d,N.ingestionMetadata=m,N.instanceName=g,N.loggerProvider=h,N.logLevel=p,N.minIdLength=v,N.offline=b,N.partnerId=C,N.plan=k,N.serverUrl=T,N.serverZone=O,N.sessionTimeout=z,N.storageProvider=F,N.trackingOptions=K,N.transport=V,N.useBatch=B,N.fetchRemoteConfig=$,N._optOut=!1,N._cookieStorage=o,N.deviceId=u,N.lastEventId=y,N.lastEventTime=x,N.optOut=E,N.sessionId=D,N.pageCounter=M,N.userId=W,N.debugLogsEnabled=R,N.loggerProvider.enable(R?_t.Debug:N.logLevel),N}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(n){this._cookieStorage!==n&&(this._cookieStorage=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(n){this._deviceId!==n&&(this._deviceId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(n){this._userId!==n&&(this._userId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(n){this._sessionId!==n&&(this._sessionId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(n){this._optOut!==n&&(this._optOut=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(n){this._lastEventTime!==n&&(this._lastEventTime=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(n){this._lastEventId!==n&&(this._lastEventId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(n){this._pageCounter!==n&&(this._pageCounter=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(n){this._debugLogsEnabled!==n&&(this._debugLogsEnabled=n,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var n={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(N1(this.apiKey),n)},t}(qI),eM=function(e,t,n){return t===void 0&&(t={}),de(void 0,void 0,void 0,function(){var r,o,i,s,a,u,l,c,f,d,m,g,y,x,h,p,v,b,E,C,k,T,O,D,z,F,K,V,B,$,W,M,R,N,G,Y,te,J,ce,ve,Se,Qe,be;return pe(this,function(Ie){switch(Ie.label){case 0:return r=t.identityStorage||zl,E={},r===zl?[3,1]:(i="",[3,5]);case 1:return(k=(C=t.cookieOptions)===null||C===void 0?void 0:C.domain)!==null&&k!==void 0?(s=k,[3,4]):[3,2];case 2:return[4,nM()];case 3:s=Ie.sent(),Ie.label=4;case 4:i=s,Ie.label=5;case 5:return o=Fe.apply(void 0,[(E.domain=i,E.expiration=365,E.sameSite="Lax",E.secure=!1,E.upgrade=!0,E),t.cookieOptions]),a=tM(t.identityStorage,o),[4,$O(e,a,(O=(T=t.cookieOptions)===null||T===void 0?void 0:T.upgrade)!==null&&O!==void 0?O:!0)];case 6:return u=Ie.sent(),[4,a.get(N1(e))];case 7:return l=Ie.sent(),c=Ul(),f=(V=(K=(F=(z=(D=t.deviceId)!==null&&D!==void 0?D:c.ampDeviceId)!==null&&z!==void 0?z:c.deviceId)!==null&&F!==void 0?F:l==null?void 0:l.deviceId)!==null&&K!==void 0?K:u.deviceId)!==null&&V!==void 0?V:wi(),d=(B=l==null?void 0:l.lastEventId)!==null&&B!==void 0?B:u.lastEventId,m=($=l==null?void 0:l.lastEventTime)!==null&&$!==void 0?$:u.lastEventTime,g=(M=(W=t.optOut)!==null&&W!==void 0?W:l==null?void 0:l.optOut)!==null&&M!==void 0?M:u.optOut,y=(R=l==null?void 0:l.sessionId)!==null&&R!==void 0?R:u.sessionId,x=(G=(N=t.userId)!==null&&N!==void 0?N:l==null?void 0:l.userId)!==null&&G!==void 0?G:u.userId,n.previousSessionDeviceId=(Y=l==null?void 0:l.deviceId)!==null&&Y!==void 0?Y:u.deviceId,n.previousSessionUserId=(te=l==null?void 0:l.userId)!==null&&te!==void 0?te:u.userId,h={ipAddress:(ce=(J=t.trackingOptions)===null||J===void 0?void 0:J.ipAddress)!==null&&ce!==void 0?ce:!0,language:(Se=(ve=t.trackingOptions)===null||ve===void 0?void 0:ve.language)!==null&&Se!==void 0?Se:!0,platform:(be=(Qe=t.trackingOptions)===null||Qe===void 0?void 0:Qe.platform)!==null&&be!==void 0?be:!0},p=l==null?void 0:l.pageCounter,v=l==null?void 0:l.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),b=new JO(e,t.appVersion,a,o,t.defaultTracking,t.autocapture,f,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,d,m,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,g,t.partnerId,t.plan,t.serverUrl,t.serverZone,y,t.sessionTimeout,t.storageProvider,h,t.transport,t.useBatch,t.fetchRemoteConfig,x,p,v),[4,b.storageProvider.isEnabled()];case 8:return Ie.sent()||(b.loggerProvider.warn("Storage provider ".concat(b.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),b.storageProvider=new sh),[2,b]}})})},tM=function(e,t){switch(e===void 0&&(e=zl),t===void 0&&(t={}),e){case"localStorage":return new U1;case"sessionStorage":return new UO;case"none":return new sh;case"cookie":default:return new bd(Fe(Fe({},t),{expirationDays:t.expiration}))}},z1=function(e){return e==="xhr"?new zO:e==="beacon"?new BO:new yO},nM=function(e){return de(void 0,void 0,void 0,function(){var t,n,r,o,i,i,s,a,u,l;return pe(this,function(c){switch(c.label){case 0:return[4,new bd().isEnabled()];case 1:if(!c.sent()||typeof location>"u"||!location.hostname)return[2,""];for(t=location.hostname,n=t.split("."),r=[],o="AMP_TLDTEST",i=n.length-2;i>=0;--i)r.push(n.slice(i).join("."));i=0,c.label=2;case 2:return i0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Hg(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u"||typeof s=="function"&&s()},m=typeof location<"u"?location.href:null,g=function(){return go(void 0,void 0,void 0,function(){var h,p,v,b;return yo(this,function(E){switch(E.label){case 0:return h=location.href,p=lM(a,h,m||"")&&d(),m=h,p?(r==null||r.log("Tracking page view event"),t!=null?[3,1]:[3,3]):[3,4];case 1:return b=(v=t).track,[4,f()];case 2:b.apply(v,[E.sent()]),E.label=3;case 3:E.label=4;case 4:return[2]}})})},y=function(){g()},x={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(h,p){return go(void 0,void 0,void 0,function(){var v,b;return yo(this,function(E){switch(E.label){case 0:return t=p,i=h,r=h.loggerProvider,r.log("Installing @amplitude/plugin-page-view-tracking-browser"),n&&(n.addEventListener("popstate",y),o=n.history.pushState,n.history.pushState=new Proxy(n.history.pushState,{apply:function(C,k,T){var O=xd(T,3),D=O[0],z=O[1],F=O[2];C.apply(k,[D,z,F]),g()}})),d()?(r.log("Tracking page view event"),b=(v=t).track,[4,f()]):[3,2];case 1:b.apply(v,[E.sent()]),E.label=2;case 2:return[2]}})})},execute:function(h){return go(void 0,void 0,void 0,function(){var p;return yo(this,function(v){switch(v.label){case 0:return s==="attribution"&&aM(h)?(r==null||r.log("Enriching campaign event to page view event with campaign parameters"),[4,f()]):[3,2];case 1:p=v.sent(),h.event_type=p.event_type,h.event_properties=sr(sr({},h.event_properties),p.event_properties),v.label=2;case 2:return i&&h.event_type===l&&(i.pageCounter=i.pageCounter?i.pageCounter+1:1,h.event_properties=sr(sr({},h.event_properties),{"[Amplitude] Page Counter":i.pageCounter})),[2,h]}})})},teardown:function(){return go(void 0,void 0,void 0,function(){return yo(this,function(h){return n&&(n.removeEventListener("popstate",y),o&&(n.history.pushState=o)),[2]})})}};return x},sM=function(){return go(void 0,void 0,void 0,function(){var e;return yo(this,function(t){switch(t.label){case 0:return e=rM,[4,new M1().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},aM=function(e){if(e.event_type==="$identify"&&e.user_properties){var t=e.user_properties,n=t[He.SET]||{},r=t[He.UNSET]||{},o=Hg(Hg([],xd(Object.keys(n)),!1),xd(Object.keys(r)),!1);return Object.keys(ku).every(function(i){return o.includes(i)})}return!1},lM=function(e,t,n){switch(e){case"pathOnly":{if(n=="")return!0;var r=new URL(t),o=new URL(n),i=r.origin+r.pathname,s=o.origin+o.pathname;return i!==s}default:return t!==n}},uM=function(){var e,t=[],n=function(l,c,f){l.addEventListener(c,f),t.push({element:l,type:c,handler:f})},r=function(){t.forEach(function(l){var c=l.element,f=l.type,d=l.handler;c==null||c.removeEventListener(f,d)}),t=[]},o="@amplitude/plugin-form-interaction-tracking-browser",i="enrichment",s=function(l,c){return de(void 0,void 0,void 0,function(){var f;return pe(this,function(d){return(f=sn())===null||f===void 0||f.addEventListener("load",function(){if(!c){l.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var m=function(y){var x=!1;n(y,"change",function(){var h;x||c.track($g,(h={},h[Fc]=po(y.id),h[Vc]=po(y.name),h[Uc]=y.action,h)),x=!0}),n(y,"submit",function(){var h,p;x||c.track($g,(h={},h[Fc]=po(y.id),h[Vc]=po(y.name),h[Uc]=y.action,h)),c.track(GO,(p={},p[Fc]=po(y.id),p[Vc]=po(y.name),p[Uc]=y.action,p)),x=!1})},g=Array.from(document.getElementsByTagName("form"));g.forEach(m),typeof MutationObserver<"u"&&(e=new MutationObserver(function(y){y.forEach(function(x){x.addedNodes.forEach(function(h){h.nodeName==="FORM"&&m(h),"querySelectorAll"in h&&typeof h.querySelectorAll=="function"&&Array.from(h.querySelectorAll("form")).map(m)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}}),[2]})})},a=function(l){return de(void 0,void 0,void 0,function(){return pe(this,function(c){return[2,l]})})},u=function(){return de(void 0,void 0,void 0,function(){return pe(this,function(l){return e==null||e.disconnect(),r(),[2]})})};return{name:o,type:i,setup:s,execute:a,teardown:u}},po=function(e){if(typeof e=="string")return e},cM=function(){var e,t=[],n=function(l,c,f){l.addEventListener(c,f),t.push({element:l,type:c,handler:f})},r=function(){t.forEach(function(l){var c=l.element,f=l.type,d=l.handler;c==null||c.removeEventListener(f,d)}),t=[]},o="@amplitude/plugin-file-download-tracking-browser",i="enrichment",s=function(l,c){return de(void 0,void 0,void 0,function(){var f;return pe(this,function(d){return(f=sn())===null||f===void 0||f.addEventListener("load",function(){if(!c){l.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var m=function(x){var h;try{h=new URL(x.href,window.location.href)}catch{return}var p=g.exec(h.href),v=p==null?void 0:p[1];v&&n(x,"click",function(){var b;v&&c.track(HO,(b={},b[KO]=v,b[qO]=h.pathname,b[YO]=x.id,b[XO]=x.text,b[QO]=x.href,b))})},g=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/,y=Array.from(document.getElementsByTagName("a"));y.forEach(m),typeof MutationObserver<"u"&&(e=new MutationObserver(function(x){x.forEach(function(h){h.addedNodes.forEach(function(p){p.nodeName==="A"&&m(p),"querySelectorAll"in p&&typeof p.querySelectorAll=="function"&&Array.from(p.querySelectorAll("a")).map(m)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}}),[2]})})},a=function(l){return de(void 0,void 0,void 0,function(){return pe(this,function(c){return[2,l]})})},u=function(){return de(void 0,void 0,void 0,function(){return pe(this,function(l){return e==null||e.disconnect(),r(),[2]})})};return{name:o,type:i,setup:s,execute:a,teardown:u}},Kg=!1,fM=function(e){if(!(Kg||e.defaultTracking!==void 0)){var t=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example: + Set a name for the plugin to prevent it from being added multiple times.`))),t.type=(r=t.type)!==null&&r!==void 0?r:"enrichment",[4,(o=t.setup)===null||o===void 0?void 0:o.call(t,n,this.client)]);case 1:return i.sent(),this.plugins.push(t),[2]}})})},e.prototype.deregister=function(t){var n;return tt(this,void 0,void 0,function(){var r,o;return nt(this,function(i){switch(i.label){case 0:return r=this.plugins.findIndex(function(s){return s.name===t}),o=this.plugins[r],this.plugins.splice(r,1),[4,(n=o.teardown)===null||n===void 0?void 0:n.call(o)];case 1:return i.sent(),[2]}})})},e.prototype.reset=function(t){this.applying=!1;var n=this.plugins;n.map(function(r){var o;return(o=r.teardown)===null||o===void 0?void 0:o.call(r)}),this.plugins=[],this.client=t},e.prototype.push=function(t){var n=this;return new Promise(function(r){n.queue.push([t,r]),n.scheduleApply(0)})},e.prototype.scheduleApply=function(t){var n=this;this.applying||(this.applying=!0,setTimeout(function(){n.apply(n.queue.shift()).then(function(){n.applying=!1,n.queue.length>0&&n.scheduleApply(0)})},t))},e.prototype.apply=function(t){return tt(this,void 0,void 0,function(){var n,r,o,i,s,a,u,m,g,l,c,f,d,m,g,y,x,h,p,v,b,E;return nt(this,function(P){switch(P.label){case 0:if(!t)return[2];n=Gr(t,1),r=n[0],o=Gr(t,2),i=o[1],s=this.plugins.filter(function(k){return k.type==="before"}),P.label=1;case 1:P.trys.push([1,6,7,8]),a=ai(s),u=a.next(),P.label=2;case 2:return u.done?[3,5]:(m=u.value,m.execute?[4,m.execute(Be({},r))]:[3,4]);case 3:if(g=P.sent(),g===null)return i({event:r,code:0,message:""}),[2];r=g,P.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return l=P.sent(),p={error:l},[3,8];case 7:try{u&&!u.done&&(v=a.return)&&v.call(a)}finally{if(p)throw p.error}return[7];case 8:c=this.plugins.filter(function(k){return k.type==="enrichment"||k.type===void 0}),P.label=9;case 9:P.trys.push([9,14,15,16]),f=ai(c),d=f.next(),P.label=10;case 10:return d.done?[3,13]:(m=d.value,m.execute?[4,m.execute(Be({},r))]:[3,12]);case 11:if(g=P.sent(),g===null)return i({event:r,code:0,message:""}),[2];r=g,P.label=12;case 12:return d=f.next(),[3,10];case 13:return[3,16];case 14:return y=P.sent(),b={error:y},[3,16];case 15:try{d&&!d.done&&(E=f.return)&&E.call(f)}finally{if(b)throw b.error}return[7];case 16:return x=this.plugins.filter(function(k){return k.type==="destination"}),h=x.map(function(k){var T=Be({},r);return k.execute(T).catch(function(O){return Ho(T,0,String(O))})}),Promise.all(h).then(function(k){var T=Gr(k,1),O=T[0],D=O||Ho(r,100,"Event not tracked, no destination plugins on the instance");i(D)}),[2]}})})},e.prototype.flush=function(){return tt(this,void 0,void 0,function(){var t,n,r,o=this;return nt(this,function(i){switch(i.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map(function(s){return o.apply(s)}))];case 1:return i.sent(),n=this.plugins.filter(function(s){return s.type==="destination"}),r=n.map(function(s){return s.flush&&s.flush()}),[4,Promise.all(r)];case 2:return i.sent(),[2]}})})},e}(),kg="-",Pu="AMP",LI="".concat(Pu,"_unsent"),C1="https://api2.amplitude.com/2/httpapi",jI="https://api.eu.amplitude.com/2/httpapi",FI="https://api2.amplitude.com/batch",VI="https://api.eu.amplitude.com/batch",UI=1e3,gd=function(e){if(Object.keys(e).length>UI)return!1;for(var t in e){var n=e[t];if(!k1(t,n))return!1}return!0},k1=function(e,t){var n,r;if(typeof e!="string")return!1;if(Array.isArray(t)){var o=!0;try{for(var i=ai(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(Array.isArray(a))return!1;if(typeof a=="object")o=o&&gd(a);else if(!["number","string"].includes(typeof a))return!1;if(!o)return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}else{if(t==null)return!1;if(typeof t=="object")return gd(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},Vl=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return Be({},this._properties)},e.prototype.set=function(t,n){return this._safeSet(He.SET,t,n),this},e.prototype.setOnce=function(t,n){return this._safeSet(He.SET_ONCE,t,n),this},e.prototype.append=function(t,n){return this._safeSet(He.APPEND,t,n),this},e.prototype.prepend=function(t,n){return this._safeSet(He.PREPEND,t,n),this},e.prototype.postInsert=function(t,n){return this._safeSet(He.POSTINSERT,t,n),this},e.prototype.preInsert=function(t,n){return this._safeSet(He.PREINSERT,t,n),this},e.prototype.remove=function(t,n){return this._safeSet(He.REMOVE,t,n),this},e.prototype.add=function(t,n){return this._safeSet(He.ADD,t,n),this},e.prototype.unset=function(t){return this._safeSet(He.UNSET,t,kg),this},e.prototype.clearAll=function(){return this._properties={},this._properties[He.CLEAR_ALL]=kg,this},e.prototype._safeSet=function(t,n,r){if(this._validate(t,n,r)){var o=this._properties[t];return o===void 0&&(o={},this._properties[t]=o),o[n]=r,this._propertySet.add(n),!0}return!1},e.prototype._validate=function(t,n,r){return this._properties[He.CLEAR_ALL]!==void 0||this._propertySet.has(n)?!1:t===He.ADD?typeof r=="number":t!==He.UNSET&&t!==He.REMOVE?k1(n,r):!0},e}(),zI=function(e,t,n){var r=typeof e=="string"?{event_type:e}:e;return Be(Be(Be({},r),n),t&&{event_properties:t})},_1=function(e,t){var n=Be(Be({},t),{event_type:li.IDENTIFY,user_properties:e.getUserProperties()});return n},BI=function(e,t,n,r){var o,i=Be(Be({},r),{event_type:li.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(o={},o[e]=t,o)});return i},$I=function(e,t,n){var r,o=new Vl;o.set(e,t);var i=Be(Be({},n),{event_type:li.IDENTIFY,user_properties:o.getUserProperties(),groups:(r={},r[e]=t,r)});return i},WI=function(e,t){return Be(Be({},t),{event_type:li.REVENUE,event_properties:e.getEventProperties()})},wt=function(e){return{promise:e||Promise.resolve()}},GI=function(){function e(t){t===void 0&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new DI(this),this.name=t}return e.prototype._init=function(t){return tt(this,void 0,void 0,function(){return nt(this,function(n){switch(n.label){case 0:return this.config=t,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return n.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(t){return tt(this,void 0,void 0,function(){var n,r,o,i,s,a,u,l;return nt(this,function(c){switch(c.label){case 0:n=this[t],this[t]=[],c.label=1;case 1:c.trys.push([1,8,9,10]),r=ai(n),o=r.next(),c.label=2;case 2:return o.done?[3,7]:(i=o.value,s=i(),s&&"promise"in s?[4,s.promise]:[3,4]);case 3:return c.sent(),[3,6];case 4:return[4,s];case 5:c.sent(),c.label=6;case 6:return o=r.next(),[3,2];case 7:return[3,10];case 8:return a=c.sent(),u={error:a},[3,10];case 9:try{o&&!o.done&&(l=r.return)&&l.call(r)}finally{if(u)throw u.error}return[7];case 10:return this[t].length?[4,this.runQueuedFunctions(t)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[2]}})})},e.prototype.track=function(t,n,r){var o=zI(t,n,r);return wt(this.dispatch(o))},e.prototype.identify=function(t,n){var r=_1(t,n);return wt(this.dispatch(r))},e.prototype.groupIdentify=function(t,n,r,o){var i=BI(t,n,r,o);return wt(this.dispatch(i))},e.prototype.setGroup=function(t,n,r){var o=$I(t,n,r);return wt(this.dispatch(o))},e.prototype.revenue=function(t,n){var r=WI(t,n);return wt(this.dispatch(r))},e.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),wt())},e.prototype._addPlugin=function(t){return wt(this.timeline.register(t,this.config))},e.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),wt())},e.prototype._removePlugin=function(t){return wt(this.timeline.deregister(t))},e.prototype.dispatchWithCallback=function(t,n){if(!this.isReady)return n(Ho(t,0,RI));this.process(t).then(n)},e.prototype.dispatch=function(t){return tt(this,void 0,void 0,function(){var n=this;return nt(this,function(r){return this.isReady?[2,this.process(t)]:[2,new Promise(function(o){n.dispatchQ.push(n.dispatchWithCallback.bind(n,t,o))})]})})},e.prototype.process=function(t){return tt(this,void 0,void 0,function(){var o,n,r,o;return nt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.config.optOut?[2,Ho(t,0,kI)]:[4,this.timeline.push(t)];case 1:return o=i.sent(),o.code===200?this.config.loggerProvider.log(o.message):o.code===100?this.config.loggerProvider.warn(o.message):this.config.loggerProvider.error(o.message),[2,o];case 2:return n=i.sent(),r=String(n),this.config.loggerProvider.error(r),o=Ho(t,0,r),[2,o];case 3:return[2]}})})},e.prototype.setOptOut=function(t){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!t));return}this._setOptOut(t)},e.prototype._setOptOut=function(t){this.config.optOut=!!t},e.prototype.flush=function(){return wt(this.timeline.flush())},e}(),HI=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(t){return this.productId=t,this},e.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},e.prototype.setPrice=function(t){return this.price=t,this},e.prototype.setRevenueType=function(t){return this.revenueType=t,this},e.prototype.setRevenue=function(t){return this.revenue=t,this},e.prototype.setEventProperties=function(t){return gd(t)&&(this.properties=t),this},e.prototype.getEventProperties=function(){var t=this.properties?Be({},this.properties):{};return t[Ur.REVENUE_PRODUCT_ID]=this.productId,t[Ur.REVENUE_QUANTITY]=this.quantity,t[Ur.REVENUE_PRICE]=this.price,t[Ur.REVENUE_TYPE]=this.revenueType,t[Ur.REVENUE]=this.revenue,t},e}(),KI=function(e,t){var n=Math.max(t,1);return e.reduce(function(r,o,i){var s=Math.floor(i/n);return r[s]||(r[s]=[]),r[s].push(o),r},[])},Ea="Amplitude Logger ",A1=function(){function e(){this.logLevel=kt.None}return e.prototype.disable=function(){this.logLevel=kt.None},e.prototype.enable=function(t){t===void 0&&(t=kt.Warn),this.logLevel=t},e.prototype.log=function(){for(var t=[],n=0;n0&&Promise.all(r.map(function(s){return o.execute(s)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(t){var n=this;return t.insert_id||(t.insert_id=wi()),new Promise(function(r){var o={event:t,attempts:0,callback:function(i){return r(i)},timeout:0};n.addToQueue(o)})},e.prototype.getTryableList=function(t){var n=this;return t.filter(function(r){return r.attempts0&&n.schedule(t)})},t))},e.prototype.flush=function(t){return t===void 0&&(t=!1),tt(this,void 0,void 0,function(){var n,r,o,i=this;return nt(this,function(s){switch(s.label){case 0:return this.config.offline?(this.config.loggerProvider.debug("Skipping flush while offline."),[2]):(n=[],r=[],this.queue.forEach(function(a){return a.timeout===0?n.push(a):r.push(a)}),this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),o=KI(n,this.config.flushQueueSize),[4,Promise.all(o.map(function(a){return i.send(a,t)}))]);case 1:return s.sent(),this.scheduleTryable(r),[2]}})})},e.prototype.send=function(t,n){return n===void 0&&(n=!0),tt(this,void 0,void 0,function(){var r,o,i,s,a;return nt(this,function(u){switch(u.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,_I)];r={api_key:this.config.apiKey,events:t.map(function(l){var c=l.event;c.extra;var f=EI(c,["extra"]);return f}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new I1,u.label=1;case 1:return u.trys.push([1,3,,4]),o=R1(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(o,r)];case 2:return i=u.sent(),i===null?(this.fulfillRequest(t,0,PI),[2]):n?(this.handleResponse(i,t),[3,4]):("body"in i?this.fulfillRequest(t,i.statusCode,"".concat(i.status,": ").concat(Ta(i))):this.fulfillRequest(t,i.statusCode,i.status),[2]);case 3:return s=u.sent(),a=XI(s),this.config.loggerProvider.error(a),this.handleResponse({status:Ae.Failed,statusCode:0},t),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(t,n){var r=t.status;switch(r){case Ae.Success:{this.handleSuccessResponse(t,n);break}case Ae.Invalid:{this.handleInvalidResponse(t,n);break}case Ae.PayloadTooLarge:{this.handlePayloadTooLargeResponse(t,n);break}case Ae.RateLimit:{this.handleRateLimitResponse(t,n);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(r,"' provided for ").concat(n.length,' events"}')),this.handleOtherResponse(n);break}}},e.prototype.handleSuccessResponse=function(t,n){this.fulfillRequest(n,t.statusCode,TI)},e.prototype.handleInvalidResponse=function(t,n){var r=this;if(t.body.missingField||t.body.error.startsWith(AI)){this.fulfillRequest(n,t.statusCode,t.body.error);return}var o=Sa(Sa(Sa(Sa([],Gr(Object.values(t.body.eventsWithInvalidFields)),!1),Gr(Object.values(t.body.eventsWithMissingFields)),!1),Gr(Object.values(t.body.eventsWithInvalidIdLengths)),!1),Gr(t.body.silencedEvents),!1).flat(),i=new Set(o),s=n.filter(function(u,l){if(i.has(l)){r.fulfillRequest([u],t.statusCode,t.body.error);return}return!0});s.length>0&&this.config.loggerProvider.warn(Ta(t));var a=this.getTryableList(s);this.scheduleTryable(a)},e.prototype.handlePayloadTooLargeResponse=function(t,n){if(n.length===1){this.fulfillRequest(n,t.statusCode,t.body.error);return}this.config.loggerProvider.warn(Ta(t)),this.config.flushQueueSize/=2;var r=this.getTryableList(n);this.scheduleTryable(r)},e.prototype.handleRateLimitResponse=function(t,n){var r=this,o=Object.keys(t.body.exceededDailyQuotaUsers),i=Object.keys(t.body.exceededDailyQuotaDevices),s=t.body.throttledEvents,a=new Set(o),u=new Set(i),l=new Set(s),c=n.filter(function(d,m){if(d.event.user_id&&a.has(d.event.user_id)||d.event.device_id&&u.has(d.event.device_id)){r.fulfillRequest([d],t.statusCode,t.body.error);return}return l.has(m)&&(d.timeout=r.throttleTimeout),!0});c.length>0&&this.config.loggerProvider.warn(Ta(t));var f=this.getTryableList(c);this.scheduleTryable(f)},e.prototype.handleOtherResponse=function(t){var n=this,r=t.map(function(i){return i.timeout=i.attempts*n.retryTimeout,i}),o=this.getTryableList(r);this.scheduleTryable(o)},e.prototype.fulfillRequest=function(t,n,r){this.removeEvents(t),t.forEach(function(o){return o.callback(Ho(o.event,n,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var t=this.queue.map(function(n){return n.event});this.config.storageProvider.set(this.storageKey,t)}},e.prototype.removeEvents=function(t){this.queue=this.queue.filter(function(n){return!t.some(function(r){return r.event.insert_id===n.event.insert_id})}),this.saveEvents()},e}(),ZI=function(e){var t=new Error().stack||"";return t.split(` +`).slice(2+e).map(function(n){return n.trim()})},De=function(e){return function(){var t=Be({},e.config),n=t.loggerProvider,r=t.logLevel;return{logger:n,logLevel:r}}},JI=function(e,t){var n,r;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");try{for(var o=ai(t.split(".")),i=o.next();!i.done;i=o.next()){var s=i.value;if(s in e)e=e[s];else return}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},Le=function(e,t){return function(){var n,r,o={};try{for(var i=ai(t),s=i.next();!s.done;s=i.next()){var a=s.value;o[a]=JI(e,a)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}},je=function(e,t,n,r,o){return o===void 0&&(o=null),function(){for(var i=[],s=0;s=200&&t<300?Ae.Success:t===429?Ae.RateLimit:t===413?Ae.PayloadTooLarge:t===408?Ae.Timeout:t>=400&&t<500?Ae.Invalid:t>=500?Ae.Failed:Ae.Unknown},e}(),yd=function(e,t){return yd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},yd(e,t)};function bi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Fe=function(){return Fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}var wd=function(e,t){return wd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},wd(e,t)};function tO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nn=function(){return nn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}var sn=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},Ul=function(){var e,t=sn();if(!(!((e=t==null?void 0:t.location)===null||e===void 0)&&e.search))return{};var n=t.location.search.substring(1).split("&").filter(Boolean),r=n.reduce(function(o,i){var s=i.split("=",2),a=Ag(s[0]),u=Ag(s[1]);return u&&(o[a]=u),o},{});return r},Ag=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},nO="utm_campaign",rO="utm_content",oO="utm_id",iO="utm_medium",sO="utm_source",aO="utm_term",Rg="dclid",Ig="fbclid",Og="gbraid",Mg="gclid",Ng="ko_click_id",Dg="li_fat_id",Lg="msclkid",jg="rtd_cid",Fg="ttclid",Vg="twclid",Ug="wbraid",ku={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},M1=function(){function e(){}return e.prototype.parse=function(){return Wt(this,void 0,void 0,function(){return Gt(this,function(t){return[2,nn(nn(nn(nn({},ku),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=Ul(),n=t[nO],r=t[rO],o=t[oO],i=t[iO],s=t[sO],a=t[aO];return{utm_campaign:n,utm_content:r,utm_id:o,utm_medium:i,utm_source:s,utm_term:a}},e.prototype.getReferrer=function(){var t,n,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=(n=(t=r.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&n!==void 0?n:void 0}catch{}return r},e.prototype.getClickIds=function(){var t,n=Ul();return t={},t[Rg]=n[Rg],t[Ig]=n[Ig],t[Og]=n[Og],t[Mg]=n[Mg],t[Ng]=n[Ng],t[Dg]=n[Dg],t[Lg]=n[Lg],t[jg]=n[jg],t[Fg]=n[Fg],t[Vg]=n[Vg],t[Ug]=n[Ug],t},e}(),N1=function(e,t,n){return t===void 0&&(t=""),n===void 0&&(n=10),[Pu,t,e.substring(0,n)].filter(Boolean).join("_")},lO=function(e){return"".concat(Pu.toLowerCase(),"_").concat(e.substring(0,6))},zg=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},uO=function(e){return Object.values(e).every(function(t){return!t})},cO=function(e,t,n,r){r===void 0&&(r=!0),e.referrer;var o=e.referring_domain,i=_g(e,["referrer","referring_domain"]),s=t||{};s.referrer;var a=s.referring_domain,u=_g(s,["referrer","referring_domain"]);if(fO(n.excludeReferrers,e.referring_domain)||!r&&uO(e)&&t)return!1;var l=JSON.stringify(i)!==JSON.stringify(u),c=zg(o||"")!==zg(a||"");return!t||l||c},fO=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=""),e.some(function(n){return n instanceof RegExp?n.test(t):n===t})},dO=function(e,t){var n=nn(nn({},ku),e),r=Object.entries(n).reduce(function(o,i){var s,a=O1(i,2),u=a[0],l=a[1];return o.setOnce("initial_".concat(u),(s=l??t.initialEmptyValue)!==null&&s!==void 0?s:"EMPTY"),l?o.set(u,l):o.unset(u)},new Vl);return _1(r)},pO=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},hO=function(e,t,n){return n===void 0&&(n=10),[Pu,t,e.substring(0,n)].filter(Boolean).join("_")},D1=function(e,t){t===void 0&&(t=Date.now());var n=Date.now(),r=n-t;return r>e},mO=function(){function e(t,n){var r;this.shouldTrackNewCampaign=!1,this.options=nn({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:pO((r=n.cookieOptions)===null||r===void 0?void 0:r.domain)},t),this.storage=n.cookieStorage,this.storageKey=hO(n.apiKey,"MKTG"),this.currentCampaign=ku,this.sessionTimeout=n.sessionTimeout,this.lastEventTime=n.lastEventTime,n.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return Wt(this,void 0,void 0,function(){var t,n;return Gt(this,function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return n=O1.apply(void 0,[r.sent(),2]),this.currentCampaign=n[0],this.previousCampaign=n[1],t=this.lastEventTime?D1(this.sessionTimeout,this.lastEventTime):!0,cO(this.currentCampaign,this.previousCampaign,this.options,t)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return Wt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,Promise.all([new M1().parse(),this.storage.get(this.storageKey)])];case 1:return[2,t.sent()]}})})},e.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var n=dO(this.currentCampaign,this.options);return t&&(n.event_id=t),n},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),bd=function(){function e(t){this.options=nn({},t)}return e.prototype.isEnabled=function(){return Wt(this,void 0,void 0,function(){var t,n,r;return Gt(this,function(o){switch(o.label){case 0:if(!sn())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return o.sent(),[4,t.get(n)];case 3:return r=o.sent(),[2,r===e.testValue];case 4:return o.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){var n;return Wt(this,void 0,void 0,function(){var r,o;return Gt(this,function(i){switch(i.label){case 0:return[4,this.getRaw(t)];case 1:if(r=i.sent(),!r)return[2,void 0];try{return o=(n=vO(r))!==null&&n!==void 0?n:gO(r),o===void 0?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(r)),[2,void 0]):[2,JSON.parse(o)]}catch{return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(r)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(t){var n,r;return Wt(this,void 0,void 0,function(){var o,i,s;return Gt(this,function(a){return o=sn(),i=(r=(n=o==null?void 0:o.document)===null||n===void 0?void 0:n.cookie.split("; "))!==null&&r!==void 0?r:[],s=i.find(function(u){return u.indexOf(t+"=")===0}),s?[2,s.substring(t.length+1)]:[2,void 0]})})},e.prototype.set=function(t,n){var r;return Wt(this,void 0,void 0,function(){var o,i,s,a,u,l,c;return Gt(this,function(f){try{o=(r=this.options.expirationDays)!==null&&r!==void 0?r:0,i=n!==null?o:-1,s=void 0,i&&(a=new Date,a.setTime(a.getTime()+i*24*60*60*1e3),s=a),u="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(n)))),s&&(u+="; expires=".concat(s.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite)),l=sn(),l&&(l.document.cookie=u)}catch(d){c=d instanceof Error?d.message:String(d),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(c))}return[2]})})},e.prototype.remove=function(t){return Wt(this,void 0,void 0,function(){return Gt(this,function(n){switch(n.label){case 0:return[4,this.set(t,null)];case 1:return n.sent(),[2]}})})},e.prototype.reset=function(){return Wt(this,void 0,void 0,function(){return Gt(this,function(t){return[2]})})},e}(),vO=function(e){try{return decodeURIComponent(atob(e))}catch{return}},gO=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},yO=function(e){tO(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(n,r){return Wt(this,void 0,void 0,function(){var o,i,s;return Gt(this,function(a){switch(a.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return o={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(r),method:"POST"},[4,fetch(n,o)];case 1:return i=a.sent(),[4,i.text()];case 2:s=a.sent();try{return[2,this.buildResponse(JSON.parse(s))]}catch{return[2,this.buildResponse({code:i.status})]}return[2]}})})},t}(Cu),wO=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:bO(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),bO=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},xO=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(n){t(n)}),this.queue=[])},e}(),ir=function(){return ir=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return"";var o=navigator.userLanguage;return(r=(n=(t=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:navigator.language)!==null&&n!==void 0?n:o)!==null&&r!==void 0?r:""},Hs=function(e,t){return typeof e=="boolean"?e:(e==null?void 0:e[t])!==!1},L1=function(e){return Hs(e,"attribution")},IO=function(e){return Hs(e,"fileDownloads")},OO=function(e){return Hs(e,"formInteractions")},j1=function(e){return Hs(e,"pageViews")},Bg=function(e){return Hs(e,"sessions")},F1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},MO=function(e){if(F1(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},NO=function(e){var t=function(){return!1},n=void 0,r,o=e.pageCounter,i=j1(e.defaultTracking);return i&&(t=void 0,r=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(r=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:n,eventType:r,pageCounter:o}},DO=function(e){return L1(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?nn({},e.defaultTracking.attribution):{}},Dc=function(e,t){for(var n=0;nPa?(i=r.length-Pa,[4,e.prototype.set.call(this,n,r.slice(0,Pa))]):[3,2];case 1:return s.sent(),(o=this.loggerProvider)===null||o===void 0||o.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(Pa,".")),[3,4];case 2:return[4,e.prototype.set.call(this,n,r)];case 3:s.sent(),s.label=4;case 4:return[2]}})})},t}(V1),UO=function(e){bi(t,e);function t(){var n;return e.call(this,(n=sn())===null||n===void 0?void 0:n.sessionStorage)||this}return t}(V1),zO=function(e){bi(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={done:4},n}return t.prototype.send=function(n,r){return de(this,void 0,void 0,function(){var o=this;return pe(this,function(i){return[2,new Promise(function(s,a){typeof XMLHttpRequest>"u"&&a(new Error("XHRTransport is not supported."));var u=new XMLHttpRequest;u.open("POST",n,!0),u.onreadystatechange=function(){if(u.readyState===o.state.done){var l=u.responseText;try{s(o.buildResponse(JSON.parse(l)))}catch{s(o.buildResponse({code:u.status}))}}},u.setRequestHeader("Content-Type","application/json"),u.setRequestHeader("Accept","*/*"),u.send(JSON.stringify(r))})]})})},t}(Cu),BO=function(e){bi(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(n,r){return de(this,void 0,void 0,function(){var o=this;return pe(this,function(i){return[2,new Promise(function(s,a){var u=sn();if(!(u!=null&&u.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var l=JSON.stringify(r),c=u.navigator.sendBeacon(n,JSON.stringify(r));return s(c?o.buildResponse({code:200,events_ingested:r.events.length,payload_size_bytes:l.length,server_upload_time:Date.now()}):o.buildResponse({code:500}))}catch(f){a(f)}})]})})},t}(Cu),$O=function(e,t,n){return n===void 0&&(n=!0),de(void 0,void 0,void 0,function(){var r,o,i,s,a,u,l,c,f;return pe(this,function(d){switch(d.label){case 0:return r=lO(e),[4,t.getRaw(r)];case 1:return o=d.sent(),o?n?[4,t.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:d.sent(),d.label=3;case 3:return i=eO(o.split("."),6),s=i[0],a=i[1],u=i[2],l=i[3],c=i[4],f=i[5],[2,{deviceId:s,userId:WO(a),sessionId:jc(l),lastEventId:jc(f),lastEventTime:jc(c),optOut:!!u}]}})})},jc=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},WO=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},fn="[Amplitude]",$g="".concat(fn," Form Started"),GO="".concat(fn," Form Submitted"),HO="".concat(fn," File Downloaded"),Wg="session_start",Gg="session_end",KO="".concat(fn," File Extension"),qO="".concat(fn," File Name"),YO="".concat(fn," Link ID"),XO="".concat(fn," Link Text"),QO="".concat(fn," Link URL"),Fc="".concat(fn," Form ID"),Vc="".concat(fn," Form Name"),Uc="".concat(fn," Form Destination"),zl="cookie",ZO="US",JO=function(e){bi(t,e);function t(n,r,o,i,s,a,u,l,c,f,d,m,g,y,x,h,p,v,b,E,P,k,T,O,D,z,F,K,V,B,$,W,M,R){o===void 0&&(o=new sh),i===void 0&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),l===void 0&&(l=1e3),c===void 0&&(c=5),f===void 0&&(f=30),d===void 0&&(d=zl),h===void 0&&(h=new A1),p===void 0&&(p=kt.Warn),b===void 0&&(b=!1),E===void 0&&(E=!1),T===void 0&&(T=""),O===void 0&&(O=ZO),z===void 0&&(z=30*60*1e3),F===void 0&&(F=new U1({loggerProvider:h})),K===void 0&&(K={ipAddress:!0,language:!0,platform:!0}),V===void 0&&(V="fetch"),B===void 0&&(B=!1),$===void 0&&($=!1);var N=e.call(this,{apiKey:n,storageProvider:F,transportProvider:z1(V)})||this;return N.apiKey=n,N.appVersion=r,N.cookieOptions=i,N.defaultTracking=s,N.autocapture=a,N.flushIntervalMillis=l,N.flushMaxRetries=c,N.flushQueueSize=f,N.identityStorage=d,N.ingestionMetadata=m,N.instanceName=g,N.loggerProvider=h,N.logLevel=p,N.minIdLength=v,N.offline=b,N.partnerId=P,N.plan=k,N.serverUrl=T,N.serverZone=O,N.sessionTimeout=z,N.storageProvider=F,N.trackingOptions=K,N.transport=V,N.useBatch=B,N.fetchRemoteConfig=$,N._optOut=!1,N._cookieStorage=o,N.deviceId=u,N.lastEventId=y,N.lastEventTime=x,N.optOut=E,N.sessionId=D,N.pageCounter=M,N.userId=W,N.debugLogsEnabled=R,N.loggerProvider.enable(R?kt.Debug:N.logLevel),N}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(n){this._cookieStorage!==n&&(this._cookieStorage=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(n){this._deviceId!==n&&(this._deviceId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(n){this._userId!==n&&(this._userId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(n){this._sessionId!==n&&(this._sessionId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(n){this._optOut!==n&&(this._optOut=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(n){this._lastEventTime!==n&&(this._lastEventTime=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(n){this._lastEventId!==n&&(this._lastEventId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(n){this._pageCounter!==n&&(this._pageCounter=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(n){this._debugLogsEnabled!==n&&(this._debugLogsEnabled=n,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var n={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(N1(this.apiKey),n)},t}(qI),eM=function(e,t,n){return t===void 0&&(t={}),de(void 0,void 0,void 0,function(){var r,o,i,s,a,u,l,c,f,d,m,g,y,x,h,p,v,b,E,P,k,T,O,D,z,F,K,V,B,$,W,M,R,N,G,Y,te,J,ce,ve,Se,Qe,be;return pe(this,function(Ie){switch(Ie.label){case 0:return r=t.identityStorage||zl,E={},r===zl?[3,1]:(i="",[3,5]);case 1:return(k=(P=t.cookieOptions)===null||P===void 0?void 0:P.domain)!==null&&k!==void 0?(s=k,[3,4]):[3,2];case 2:return[4,nM()];case 3:s=Ie.sent(),Ie.label=4;case 4:i=s,Ie.label=5;case 5:return o=Fe.apply(void 0,[(E.domain=i,E.expiration=365,E.sameSite="Lax",E.secure=!1,E.upgrade=!0,E),t.cookieOptions]),a=tM(t.identityStorage,o),[4,$O(e,a,(O=(T=t.cookieOptions)===null||T===void 0?void 0:T.upgrade)!==null&&O!==void 0?O:!0)];case 6:return u=Ie.sent(),[4,a.get(N1(e))];case 7:return l=Ie.sent(),c=Ul(),f=(V=(K=(F=(z=(D=t.deviceId)!==null&&D!==void 0?D:c.ampDeviceId)!==null&&z!==void 0?z:c.deviceId)!==null&&F!==void 0?F:l==null?void 0:l.deviceId)!==null&&K!==void 0?K:u.deviceId)!==null&&V!==void 0?V:wi(),d=(B=l==null?void 0:l.lastEventId)!==null&&B!==void 0?B:u.lastEventId,m=($=l==null?void 0:l.lastEventTime)!==null&&$!==void 0?$:u.lastEventTime,g=(M=(W=t.optOut)!==null&&W!==void 0?W:l==null?void 0:l.optOut)!==null&&M!==void 0?M:u.optOut,y=(R=l==null?void 0:l.sessionId)!==null&&R!==void 0?R:u.sessionId,x=(G=(N=t.userId)!==null&&N!==void 0?N:l==null?void 0:l.userId)!==null&&G!==void 0?G:u.userId,n.previousSessionDeviceId=(Y=l==null?void 0:l.deviceId)!==null&&Y!==void 0?Y:u.deviceId,n.previousSessionUserId=(te=l==null?void 0:l.userId)!==null&&te!==void 0?te:u.userId,h={ipAddress:(ce=(J=t.trackingOptions)===null||J===void 0?void 0:J.ipAddress)!==null&&ce!==void 0?ce:!0,language:(Se=(ve=t.trackingOptions)===null||ve===void 0?void 0:ve.language)!==null&&Se!==void 0?Se:!0,platform:(be=(Qe=t.trackingOptions)===null||Qe===void 0?void 0:Qe.platform)!==null&&be!==void 0?be:!0},p=l==null?void 0:l.pageCounter,v=l==null?void 0:l.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),b=new JO(e,t.appVersion,a,o,t.defaultTracking,t.autocapture,f,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,d,m,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,g,t.partnerId,t.plan,t.serverUrl,t.serverZone,y,t.sessionTimeout,t.storageProvider,h,t.transport,t.useBatch,t.fetchRemoteConfig,x,p,v),[4,b.storageProvider.isEnabled()];case 8:return Ie.sent()||(b.loggerProvider.warn("Storage provider ".concat(b.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),b.storageProvider=new sh),[2,b]}})})},tM=function(e,t){switch(e===void 0&&(e=zl),t===void 0&&(t={}),e){case"localStorage":return new U1;case"sessionStorage":return new UO;case"none":return new sh;case"cookie":default:return new bd(Fe(Fe({},t),{expirationDays:t.expiration}))}},z1=function(e){return e==="xhr"?new zO:e==="beacon"?new BO:new yO},nM=function(e){return de(void 0,void 0,void 0,function(){var t,n,r,o,i,i,s,a,u,l;return pe(this,function(c){switch(c.label){case 0:return[4,new bd().isEnabled()];case 1:if(!c.sent()||typeof location>"u"||!location.hostname)return[2,""];for(t=location.hostname,n=t.split("."),r=[],o="AMP_TLDTEST",i=n.length-2;i>=0;--i)r.push(n.slice(i).join("."));i=0,c.label=2;case 2:return i0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Hg(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u"||typeof s=="function"&&s()},m=typeof location<"u"?location.href:null,g=function(){return go(void 0,void 0,void 0,function(){var h,p,v,b;return yo(this,function(E){switch(E.label){case 0:return h=location.href,p=lM(a,h,m||"")&&d(),m=h,p?(r==null||r.log("Tracking page view event"),t!=null?[3,1]:[3,3]):[3,4];case 1:return b=(v=t).track,[4,f()];case 2:b.apply(v,[E.sent()]),E.label=3;case 3:E.label=4;case 4:return[2]}})})},y=function(){g()},x={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(h,p){return go(void 0,void 0,void 0,function(){var v,b;return yo(this,function(E){switch(E.label){case 0:return t=p,i=h,r=h.loggerProvider,r.log("Installing @amplitude/plugin-page-view-tracking-browser"),n&&(n.addEventListener("popstate",y),o=n.history.pushState,n.history.pushState=new Proxy(n.history.pushState,{apply:function(P,k,T){var O=xd(T,3),D=O[0],z=O[1],F=O[2];P.apply(k,[D,z,F]),g()}})),d()?(r.log("Tracking page view event"),b=(v=t).track,[4,f()]):[3,2];case 1:b.apply(v,[E.sent()]),E.label=2;case 2:return[2]}})})},execute:function(h){return go(void 0,void 0,void 0,function(){var p;return yo(this,function(v){switch(v.label){case 0:return s==="attribution"&&aM(h)?(r==null||r.log("Enriching campaign event to page view event with campaign parameters"),[4,f()]):[3,2];case 1:p=v.sent(),h.event_type=p.event_type,h.event_properties=sr(sr({},h.event_properties),p.event_properties),v.label=2;case 2:return i&&h.event_type===l&&(i.pageCounter=i.pageCounter?i.pageCounter+1:1,h.event_properties=sr(sr({},h.event_properties),{"[Amplitude] Page Counter":i.pageCounter})),[2,h]}})})},teardown:function(){return go(void 0,void 0,void 0,function(){return yo(this,function(h){return n&&(n.removeEventListener("popstate",y),o&&(n.history.pushState=o)),[2]})})}};return x},sM=function(){return go(void 0,void 0,void 0,function(){var e;return yo(this,function(t){switch(t.label){case 0:return e=rM,[4,new M1().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},aM=function(e){if(e.event_type==="$identify"&&e.user_properties){var t=e.user_properties,n=t[He.SET]||{},r=t[He.UNSET]||{},o=Hg(Hg([],xd(Object.keys(n)),!1),xd(Object.keys(r)),!1);return Object.keys(ku).every(function(i){return o.includes(i)})}return!1},lM=function(e,t,n){switch(e){case"pathOnly":{if(n=="")return!0;var r=new URL(t),o=new URL(n),i=r.origin+r.pathname,s=o.origin+o.pathname;return i!==s}default:return t!==n}},uM=function(){var e,t=[],n=function(l,c,f){l.addEventListener(c,f),t.push({element:l,type:c,handler:f})},r=function(){t.forEach(function(l){var c=l.element,f=l.type,d=l.handler;c==null||c.removeEventListener(f,d)}),t=[]},o="@amplitude/plugin-form-interaction-tracking-browser",i="enrichment",s=function(l,c){return de(void 0,void 0,void 0,function(){var f;return pe(this,function(d){return(f=sn())===null||f===void 0||f.addEventListener("load",function(){if(!c){l.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var m=function(y){var x=!1;n(y,"change",function(){var h;x||c.track($g,(h={},h[Fc]=po(y.id),h[Vc]=po(y.name),h[Uc]=y.action,h)),x=!0}),n(y,"submit",function(){var h,p;x||c.track($g,(h={},h[Fc]=po(y.id),h[Vc]=po(y.name),h[Uc]=y.action,h)),c.track(GO,(p={},p[Fc]=po(y.id),p[Vc]=po(y.name),p[Uc]=y.action,p)),x=!1})},g=Array.from(document.getElementsByTagName("form"));g.forEach(m),typeof MutationObserver<"u"&&(e=new MutationObserver(function(y){y.forEach(function(x){x.addedNodes.forEach(function(h){h.nodeName==="FORM"&&m(h),"querySelectorAll"in h&&typeof h.querySelectorAll=="function"&&Array.from(h.querySelectorAll("form")).map(m)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}}),[2]})})},a=function(l){return de(void 0,void 0,void 0,function(){return pe(this,function(c){return[2,l]})})},u=function(){return de(void 0,void 0,void 0,function(){return pe(this,function(l){return e==null||e.disconnect(),r(),[2]})})};return{name:o,type:i,setup:s,execute:a,teardown:u}},po=function(e){if(typeof e=="string")return e},cM=function(){var e,t=[],n=function(l,c,f){l.addEventListener(c,f),t.push({element:l,type:c,handler:f})},r=function(){t.forEach(function(l){var c=l.element,f=l.type,d=l.handler;c==null||c.removeEventListener(f,d)}),t=[]},o="@amplitude/plugin-file-download-tracking-browser",i="enrichment",s=function(l,c){return de(void 0,void 0,void 0,function(){var f;return pe(this,function(d){return(f=sn())===null||f===void 0||f.addEventListener("load",function(){if(!c){l.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var m=function(x){var h;try{h=new URL(x.href,window.location.href)}catch{return}var p=g.exec(h.href),v=p==null?void 0:p[1];v&&n(x,"click",function(){var b;v&&c.track(HO,(b={},b[KO]=v,b[qO]=h.pathname,b[YO]=x.id,b[XO]=x.text,b[QO]=x.href,b))})},g=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/,y=Array.from(document.getElementsByTagName("a"));y.forEach(m),typeof MutationObserver<"u"&&(e=new MutationObserver(function(x){x.forEach(function(h){h.addedNodes.forEach(function(p){p.nodeName==="A"&&m(p),"querySelectorAll"in p&&typeof p.querySelectorAll=="function"&&Array.from(p.querySelectorAll("a")).map(m)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}}),[2]})})},a=function(l){return de(void 0,void 0,void 0,function(){return pe(this,function(c){return[2,l]})})},u=function(){return de(void 0,void 0,void 0,function(){return pe(this,function(l){return e==null||e.disconnect(),r(),[2]})})};return{name:o,type:i,setup:s,execute:a,teardown:u}},Kg=!1,fM=function(e){if(!(Kg||e.defaultTracking!==void 0)){var t=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example: amplitude.init(, { defaultTracking: true, }); -Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(t),Kg=!0}},dM=function(){var e="@amplitude/plugin-network-checker-browser",t="before",n=sn(),r=[],o=function(u,l){n&&(n.addEventListener(u,l),r.push({type:u,handler:l}))},i=function(){r.forEach(function(u){var l=u.type,c=u.handler;n&&n.removeEventListener(l,c)}),r=[]},s=function(u,l){return de(void 0,void 0,void 0,function(){return pe(this,function(c){return typeof navigator>"u"?(u.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),u.offline=!1,[2]):(u.offline=!navigator.onLine,o("online",function(){u.loggerProvider.debug("Network connectivity changed to online."),u.offline=!1,setTimeout(function(){l.flush()},u.flushIntervalMillis)}),o("offline",function(){u.loggerProvider.debug("Network connectivity changed to offline."),u.offline=!0}),[2])})})},a=function(){return de(void 0,void 0,void 0,function(){return pe(this,function(u){return i(),[2]})})};return{name:e,type:t,setup:s,teardown:a}},Bl=function(){return Bl=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var hM="Network error occurred, remote config fetch failed",mM="Remote config successfully fetched",vM="Remote config fetch rejected due to exceeded retry count",qg="Remote config fetch rejected due to timeout after 5 seconds",Yg="Unexpected error occurred",gM="https://sr-client-cfg.amplitude.com/config",yM="https://sr-client-cfg.stag2.amplitude.com/config",wM="https://sr-client-cfg.eu.amplitude.com/config",bM=function(){function e(t){var n=t.localConfig,r=t.configKeys,o=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(i,s,a){return wo(o,void 0,void 0,function(){var u,l,c;return bo(this,function(f){switch(f.label){case 0:return u=Date.now(),[4,this.fetchWithTimeout(a)];case 1:return l=f.sent(),l&&(c=l.configs&&l.configs[i],c)?(this.metrics.fetchTimeAPISuccess=Date.now()-u,[2,c[s]]):(this.metrics.fetchTimeAPIFail=Date.now()-u,[2,void 0])}})})},this.fetchWithTimeout=function(i){return wo(o,void 0,void 0,function(){var s,a,u;return bo(this,function(l){switch(l.label){case 0:return s=new AbortController,a=setTimeout(function(){return s.abort()},5e3),[4,this.fetchRemoteConfig(s.signal,i)];case 1:return u=l.sent(),clearTimeout(a),[2,u]}})})},this.fetchRemoteConfig=function(i,s){return wo(o,void 0,void 0,function(){var a,u,l,c,f,d,m,g,y,x,h,p,v;return bo(this,function(b){switch(b.label){case 0:if(s===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:vM})];if(i.aborted)return[2,this.completeRequest({err:qg})];s!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=s,this.attempts=0),b.label=1;case 1:b.trys.push([1,3,,4]),a=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(u=pM(this.configKeys),l=u.next();!l.done;l=u.next())c=l.value,a.append("config_keys",c)}catch(E){h={error:E}}finally{try{l&&!l.done&&(p=u.return)&&p.call(u)}finally{if(h)throw h.error}}return s&&a.set("session_id",String(s)),f={headers:{Accept:"*/*"},method:"GET"},d="".concat(this.getServerUrl(),"?").concat(a.toString()),this.attempts+=1,[4,fetch(d,Bl(Bl({},f),{signal:i}))];case 2:if(m=b.sent(),m===null)return[2,this.completeRequest({err:Yg})];switch(g=new Pu().buildStatus(m.status),g){case Ae.Success:return this.attempts=0,[2,this.parseAndStoreConfig(m)];case Ae.Failed:return[2,this.retryFetch(i,s)];default:return[2,this.completeRequest({err:hM})]}case 3:return y=b.sent(),x=y,i.aborted?[2,this.completeRequest({err:qg})]:[2,this.completeRequest({err:(v=x.message)!==null&&v!==void 0?v:Yg})];case 4:return[2]}})})},this.retryFetch=function(i,s){return wo(o,void 0,void 0,function(){var a=this;return bo(this,function(u){switch(u.label){case 0:return[4,new Promise(function(l){return setTimeout(l,a.attempts*a.retryTimeout)})];case 1:return u.sent(),[2,this.fetchRemoteConfig(i,s)]}})})},this.parseAndStoreConfig=function(i){return wo(o,void 0,void 0,function(){var s;return bo(this,function(a){switch(a.label){case 0:return[4,i.json()];case 1:return s=a.sent(),this.completeRequest({success:mM}),[2,s]}})})},this.localConfig=n,this.configKeys=r}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===Fl.STAGING?yM:this.localConfig.serverZone===Fl.EU?wM:gM},e.prototype.completeRequest=function(t){var n=t.err,r=t.success;if(n)throw new Error(n);r&&this.localConfig.loggerProvider.log(r)},e}(),xM=function(e){var t=e.localConfig,n=e.configKeys;return wo(void 0,void 0,void 0,function(){return bo(this,function(r){return[2,new bM({localConfig:t,configKeys:n})]})})},SM=xM,EM=function(){function e(t){this.config=t,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return de(this,void 0,void 0,function(){var t;return pe(this,function(n){switch(n.label){case 0:return t=this,[4,SM({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return t.remoteConfigFetch=n.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var t,n,r,o;return de(this,void 0,void 0,function(){var i,s,a;return pe(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),s=this.remoteConfigFetch,s?[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)]:[3,2];case 1:s=u.sent(),u.label=2;case 2:return i=s,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(i,null,2)),i&&"autocapture"in i&&(typeof i.autocapture=="boolean"&&(this.config.autocapture=i.autocapture),typeof i.autocapture=="object"&&(this.config.autocapture===void 0&&(this.config.autocapture=i.autocapture),typeof this.config.autocapture=="boolean"&&(this.config.autocapture=Fe({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},i.autocapture)),typeof this.config.autocapture=="object"&&(this.config.autocapture=Fe(Fe({},this.config.autocapture),i.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),(t=(o=this.config).requestMetadata)!==null&&t!==void 0||(o.requestMetadata=new I1),!((n=this.remoteConfigFetch)===null||n===void 0)&&n.metrics.fetchTimeAPISuccess&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),!((r=this.remoteConfigFetch)===null||r===void 0)&&r.metrics.fetchTimeAPIFail&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return a=u.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",a),[3,4];case 4:return[2,this.config]}})})},e}(),TM=function(e){return de(void 0,void 0,void 0,function(){var t;return pe(this,function(n){switch(n.label){case 0:return t=new EM(e),[4,t.initialize()];case 1:return n.sent(),[2,t]}})})},ui=function(){return ui=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function an(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function to(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ci(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function fi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r1||u(m,y)})},g&&(o[m]=g(o[m])))}function u(m,g){try{l(r[m](g))}catch(y){d(i[0][3],y)}}function l(m){m.value instanceof Ko?Promise.resolve(m.value.v).then(c,f):d(i[0][2],m)}function c(m){u("next",m)}function f(m){u("throw",m)}function d(m,g){m(g),i.shift(),i.length&&u(i[0][0],i[0][1])}}function GM(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof As=="function"?As(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}}function me(e){return typeof e=="function"}function q1(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Bc=q1(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: +Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(t),Kg=!0}},dM=function(){var e="@amplitude/plugin-network-checker-browser",t="before",n=sn(),r=[],o=function(u,l){n&&(n.addEventListener(u,l),r.push({type:u,handler:l}))},i=function(){r.forEach(function(u){var l=u.type,c=u.handler;n&&n.removeEventListener(l,c)}),r=[]},s=function(u,l){return de(void 0,void 0,void 0,function(){return pe(this,function(c){return typeof navigator>"u"?(u.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),u.offline=!1,[2]):(u.offline=!navigator.onLine,o("online",function(){u.loggerProvider.debug("Network connectivity changed to online."),u.offline=!1,setTimeout(function(){l.flush()},u.flushIntervalMillis)}),o("offline",function(){u.loggerProvider.debug("Network connectivity changed to offline."),u.offline=!0}),[2])})})},a=function(){return de(void 0,void 0,void 0,function(){return pe(this,function(u){return i(),[2]})})};return{name:e,type:t,setup:s,teardown:a}},Bl=function(){return Bl=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var hM="Network error occurred, remote config fetch failed",mM="Remote config successfully fetched",vM="Remote config fetch rejected due to exceeded retry count",qg="Remote config fetch rejected due to timeout after 5 seconds",Yg="Unexpected error occurred",gM="https://sr-client-cfg.amplitude.com/config",yM="https://sr-client-cfg.stag2.amplitude.com/config",wM="https://sr-client-cfg.eu.amplitude.com/config",bM=function(){function e(t){var n=t.localConfig,r=t.configKeys,o=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(i,s,a){return wo(o,void 0,void 0,function(){var u,l,c;return bo(this,function(f){switch(f.label){case 0:return u=Date.now(),[4,this.fetchWithTimeout(a)];case 1:return l=f.sent(),l&&(c=l.configs&&l.configs[i],c)?(this.metrics.fetchTimeAPISuccess=Date.now()-u,[2,c[s]]):(this.metrics.fetchTimeAPIFail=Date.now()-u,[2,void 0])}})})},this.fetchWithTimeout=function(i){return wo(o,void 0,void 0,function(){var s,a,u;return bo(this,function(l){switch(l.label){case 0:return s=new AbortController,a=setTimeout(function(){return s.abort()},5e3),[4,this.fetchRemoteConfig(s.signal,i)];case 1:return u=l.sent(),clearTimeout(a),[2,u]}})})},this.fetchRemoteConfig=function(i,s){return wo(o,void 0,void 0,function(){var a,u,l,c,f,d,m,g,y,x,h,p,v;return bo(this,function(b){switch(b.label){case 0:if(s===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:vM})];if(i.aborted)return[2,this.completeRequest({err:qg})];s!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=s,this.attempts=0),b.label=1;case 1:b.trys.push([1,3,,4]),a=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(u=pM(this.configKeys),l=u.next();!l.done;l=u.next())c=l.value,a.append("config_keys",c)}catch(E){h={error:E}}finally{try{l&&!l.done&&(p=u.return)&&p.call(u)}finally{if(h)throw h.error}}return s&&a.set("session_id",String(s)),f={headers:{Accept:"*/*"},method:"GET"},d="".concat(this.getServerUrl(),"?").concat(a.toString()),this.attempts+=1,[4,fetch(d,Bl(Bl({},f),{signal:i}))];case 2:if(m=b.sent(),m===null)return[2,this.completeRequest({err:Yg})];switch(g=new Cu().buildStatus(m.status),g){case Ae.Success:return this.attempts=0,[2,this.parseAndStoreConfig(m)];case Ae.Failed:return[2,this.retryFetch(i,s)];default:return[2,this.completeRequest({err:hM})]}case 3:return y=b.sent(),x=y,i.aborted?[2,this.completeRequest({err:qg})]:[2,this.completeRequest({err:(v=x.message)!==null&&v!==void 0?v:Yg})];case 4:return[2]}})})},this.retryFetch=function(i,s){return wo(o,void 0,void 0,function(){var a=this;return bo(this,function(u){switch(u.label){case 0:return[4,new Promise(function(l){return setTimeout(l,a.attempts*a.retryTimeout)})];case 1:return u.sent(),[2,this.fetchRemoteConfig(i,s)]}})})},this.parseAndStoreConfig=function(i){return wo(o,void 0,void 0,function(){var s;return bo(this,function(a){switch(a.label){case 0:return[4,i.json()];case 1:return s=a.sent(),this.completeRequest({success:mM}),[2,s]}})})},this.localConfig=n,this.configKeys=r}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===Fl.STAGING?yM:this.localConfig.serverZone===Fl.EU?wM:gM},e.prototype.completeRequest=function(t){var n=t.err,r=t.success;if(n)throw new Error(n);r&&this.localConfig.loggerProvider.log(r)},e}(),xM=function(e){var t=e.localConfig,n=e.configKeys;return wo(void 0,void 0,void 0,function(){return bo(this,function(r){return[2,new bM({localConfig:t,configKeys:n})]})})},SM=xM,EM=function(){function e(t){this.config=t,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return de(this,void 0,void 0,function(){var t;return pe(this,function(n){switch(n.label){case 0:return t=this,[4,SM({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return t.remoteConfigFetch=n.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var t,n,r,o;return de(this,void 0,void 0,function(){var i,s,a;return pe(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),s=this.remoteConfigFetch,s?[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)]:[3,2];case 1:s=u.sent(),u.label=2;case 2:return i=s,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(i,null,2)),i&&"autocapture"in i&&(typeof i.autocapture=="boolean"&&(this.config.autocapture=i.autocapture),typeof i.autocapture=="object"&&(this.config.autocapture===void 0&&(this.config.autocapture=i.autocapture),typeof this.config.autocapture=="boolean"&&(this.config.autocapture=Fe({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},i.autocapture)),typeof this.config.autocapture=="object"&&(this.config.autocapture=Fe(Fe({},this.config.autocapture),i.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),(t=(o=this.config).requestMetadata)!==null&&t!==void 0||(o.requestMetadata=new I1),!((n=this.remoteConfigFetch)===null||n===void 0)&&n.metrics.fetchTimeAPISuccess&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),!((r=this.remoteConfigFetch)===null||r===void 0)&&r.metrics.fetchTimeAPIFail&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return a=u.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",a),[3,4];case 4:return[2,this.config]}})})},e}(),TM=function(e){return de(void 0,void 0,void 0,function(){var t;return pe(this,function(n){switch(n.label){case 0:return t=new EM(e),[4,t.initialize()];case 1:return n.sent(),[2,t]}})})},ui=function(){return ui=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function an(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function to(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ci(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function fi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r1||u(m,y)})},g&&(o[m]=g(o[m])))}function u(m,g){try{l(r[m](g))}catch(y){d(i[0][3],y)}}function l(m){m.value instanceof Ko?Promise.resolve(m.value.v).then(c,f):d(i[0][2],m)}function c(m){u("next",m)}function f(m){u("throw",m)}function d(m,g){m(g),i.shift(),i.length&&u(i[0][0],i[0][1])}}function GM(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof As=="function"?As(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}}function me(e){return typeof e=="function"}function q1(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Bc=q1(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: `+n.map(function(r,o){return o+1+") "+r.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=n}});function Cd(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _u=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=As(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(y){t={error:y}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(me(c))try{c()}catch(y){i=y instanceof Bc?y.errors:[y]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=As(f),m=d.next();!m.done;m=d.next()){var g=m.value;try{Xg(g)}catch(y){i=i??[],y instanceof Bc?i=fi(fi([],ci(i)),ci(y.errors)):i.push(y)}}}catch(y){r={error:y}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(i)throw new Bc(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Xg(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Cd(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Cd(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();_u.EMPTY;function Y1(e){return e instanceof _u||e&&"closed"in e&&me(e.remove)&&me(e.add)&&me(e.unsubscribe)}function Xg(e){me(e)?e():e.unsubscribe()}var X1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Q1={setTimeout:function(e,t){for(var n=[],r=2;r0&&h(o)},void 0,void 0,function(){g!=null&&g.closed||g==null||g.unsubscribe(),y=null})),!x&&h(r!=null?typeof r=="number"?r:+r-u.now():o)})}function CN(e){throw new EN(e)}function bn(e,t){return dn(function(n,r){var o=0;n.subscribe(Dt(r,function(i){r.next(e.call(t,i,o++))}))})}var PN=Array.isArray;function kN(e,t){return PN(t)?e.apply(void 0,fi([],ci(t))):e(t)}function _N(e){return bn(function(t){return kN(e,t)})}function AN(e,t,n,r,o,i,s,a){var u=[],l=0,c=0,f=!1,d=function(){f&&!u.length&&!l&&t.complete()},m=function(y){return l0&&(r=o[0]),Iu(r)}else throw new Error("Selector was not found.")}function HN(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function ka(e,t,n){for(var r=null,o=[],i=e,s=0,a=function(){var l,c,f=Aa(KN(i))||Aa.apply(void 0,to([],an(qN(i)),!1))||Aa.apply(void 0,to([],an(YN(i)),!1))||Aa(XN(i))||[ny()],d=QN(i);if(t=="all")d&&(f=f.concat(f.filter(Wc).map(function(h){return _a(h,d)})));else if(t=="two")f=f.slice(0,1),d&&(f=f.concat(f.filter(Wc).map(function(h){return _a(h,d)})));else if(t=="one"){var m=an(f=f.slice(0,1),1),g=m[0];d&&Wc(g)&&(f=[_a(g,d)])}else t=="none"&&(f=[ny()],d&&(f=[_a(f[0],d)]));try{for(var y=(l=void 0,Cr(f)),x=y.next();!x.done;x=y.next()){var g=x.value;g.level=s}}catch(h){l={error:h}}finally{try{x&&!x.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}if(o.push(f),o.length>=Pn.seedMinLength&&(r=ey(o,n),r))return"break";i=i.parentElement,s++};i;){var u=a();if(u==="break")break}return r||(r=ey(o,n)),!r&&n?n():r}function ey(e,t){var n,r,o=e.reduce(function(l,c){return l*c.length},1);if(o>Pn.threshold)return t?t():null;var i=wx(yx(e));try{for(var s=Cr(i),a=s.next();!a.done;a=s.next()){var u=a.value;if(gx(u))return u}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return null}function Iu(e){for(var t=e[0],n=t.name,r=1;r ").concat(n):n="".concat(e[r].name," ").concat(n),t=e[r]}return n}function ty(e){return e.map(function(t){return t.penalty}).reduce(function(t,n){return t+n},0)}function gx(e){var t=Iu(e);switch(fh.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function KN(e){var t=e.getAttribute("id");return t&&Pn.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}function qN(e){var t=Array.from(e.attributes).filter(function(n){return Pn.attr(n.name,n.value)});return t.map(function(n){return{name:"[".concat(CSS.escape(n.name),'="').concat(CSS.escape(n.value),'"]'),penalty:.5}})}function YN(e){var t=Array.from(e.classList).filter(Pn.className);return t.map(function(n){return{name:"."+CSS.escape(n),penalty:1}})}function XN(e){var t=e.tagName.toLowerCase();return Pn.tagName(t)?{name:t,penalty:2}:null}function ny(){return{name:"*",penalty:3}}function QN(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}function _a(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Wc(e){return e.name!=="html"&&!e.name.startsWith("#")}function Aa(){for(var e=[],t=0;t0?n:null}function ZN(e){return e!=null}function yx(e,t){var n,r,o,i,s,a;return t===void 0&&(t=[]),rs(this,function(u){switch(u.label){case 0:if(!(e.length>0))return[3,9];u.label=1;case 1:u.trys.push([1,6,7,8]),n=Cr(e[0]),r=n.next(),u.label=2;case 2:return r.done?[3,5]:(o=r.value,[5,Cr(yx(e.slice(1,e.length),t.concat(o)))]);case 3:u.sent(),u.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return i=u.sent(),s={error:i},[3,8];case 7:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case 8:return[3,11];case 9:return[4,t];case 10:u.sent(),u.label=11;case 11:return[2]}})}function wx(e){return to([],an(e),!1).sort(function(t,n){return ty(t)-ty(n)})}function bx(e,t,n){var r,o,i;return n===void 0&&(n={counter:0,visited:new Map}),rs(this,function(s){switch(s.label){case 0:if(!(e.length>2&&e.length>Pn.optimizedMinLength))return[3,5];r=1,s.label=1;case 1:return rPn.maxNumberOfTries?[2]:(n.counter+=1,o=to([],an(e),!1),o.splice(r,1),i=Iu(o),n.visited.has(i)?[2]:gx(o)&&JN(o,t)?[4,o]:[3,4]):[3,5];case 2:return s.sent(),n.visited.set(i,!0),[5,Cr(bx(o,t,n))];case 3:s.sent(),s.label=4;case 4:return r++,[3,1];case 5:return[2]}})}function JN(e,t){return fh.querySelector(Iu(e))===t}var eD=["input","select","textarea"],Gc=function(e,t){return function(n,r){var o,i,s,a=e.pageUrlAllowlist,u=e.shouldTrackEventResolver,l=(i=(o=r==null?void 0:r.tagName)===null||o===void 0?void 0:o.toLowerCase)===null||i===void 0?void 0:i.call(o);if(!l)return!1;if(u)return u(n,r);if(!nD(window.location.href,a))return!1;var c=String(r==null?void 0:r.getAttribute("type"))||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}if(t){var f=t.some(function(m){var g;return!!(!((g=r==null?void 0:r.matches)===null||g===void 0)&&g.call(r,m))});if(!f)return!1}switch(l){case"input":case"select":case"textarea":return n==="change"||n==="click";default:{var d=(s=window==null?void 0:window.getComputedStyle)===null||s===void 0?void 0:s.call(window,r);return d&&d.getPropertyValue("cursor")==="pointer"&&n==="click"?!0:n==="click"}}}},xx=function(e){if(e==null)return!1;if(typeof e=="string"){var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var n=/(^\d{3}-?\d{2}-?\d{4}$)/;if(n.test(e))return!1}return!0},tD=function(e){return!!e&&e.nodeType===3},Sx=function(e){var t,n,r,o=(n=(t=e==null?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||n===void 0?void 0:n.call(t),i=e instanceof HTMLElement?((r=e.getAttribute("contenteditable"))===null||r===void 0?void 0:r.toLowerCase())==="true":!1;return!eD.includes(o)&&!i},dh=function(e){var t="";return Sx(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(n){var r="";tD(n)?n.textContent&&(r=n.textContent):r=dh(n),t+=r.split(/(\s+)/).filter(xx).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},Ex=function(e,t){var n,r,o="";try{return o=GN(e,{className:function(c){return c!==Ed},maxNumberOfTries:1e3}),o}catch(c){if(t){var i=c;t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(i.toString()))}}var s=(r=(n=e==null?void 0:e.tagName)===null||n===void 0?void 0:n.toLowerCase)===null||r===void 0?void 0:r.call(n);s&&(o=s);var a=e.getAttribute("id"),u=e.getAttribute("class");if(a)o="#".concat(a);else if(u){var l=u.split(" ").filter(function(c){return c!==Ed}).join(".");l&&(o="".concat(o,".").concat(l))}return o},nD=function(e,t){return!t||!t.length?!0:t.some(function(n){return typeof n=="string"?e===n:e.match(n)})},rD=function(e,t){return e.getAttributeNames().reduce(function(n,r){if(r.startsWith(t)){var o=r.replace(t,""),i=e.getAttribute(r);o&&(n[o]=i||"")}return n},{})},oD=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},Tx=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return oD(r)||(t[n]=r),t},{})},Cx=function(e){var t=e.parentElement;if(!t)return"";var n;try{n=t.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{n=null}if(n){var r=n.textContent||"";return xx(r)?r:""}return Cx(t)},ph=function(e,t){return e?t.some(function(n){var r;return(r=e==null?void 0:e.matches)===null||r===void 0?void 0:r.call(e,n)})?e:ph(e==null?void 0:e.parentElement,t):null},iD=function(e,t){var n,r,o;if(!e)return{};var i=(o=(r=e==null?void 0:e.tagName)===null||r===void 0?void 0:r.toLowerCase)===null||o===void 0?void 0:o.call(r),s=Ex(e,t),a=(n={},n[B1]=i,n[$1]=dh(e),n[W1]=s,n[G1]=window.location.href.split("?")[0],n);return Tx(a)},sD=function(e){return new Promise(function(t,n){var r;try{var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.addEventListener("load",function(){t({status:!0})},{once:!0}),o.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),(r=document.head)===null||r===void 0||r.appendChild(o)}catch(i){n(i)}})};function aD(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var hh=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)},lD=function(){function e(t){var n=t===void 0?{}:t,r=n.origin,o=r===void 0?el:r,i=this;this.endpoint=el,this.requestCallbacks={},this.onSelect=function(s){i.notify({action:"element-selected",data:s})},this.onTrack=function(s,a){s==="selector-mode-changed"?i.notify({action:"track-selector-mode-changed",data:a}):s==="selector-moved"&&i.notify({action:"track-selector-moved",data:a})},this.endpoint=o}return e.prototype.notify=function(t){var n,r,o,i;(r=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,"Message sent: ",JSON.stringify(t)),(i=(o=window.opener)===null||o===void 0?void 0:o.postMessage)===null||i===void 0||i.call(o,t,this.endpoint)},e.prototype.sendRequest=function(t,n,r){var o=this;r===void 0&&(r={timeout:15e3});var i=aD(),s={id:i,action:t,args:n},a=new Promise(function(u,l){o.requestCallbacks[i]={resolve:u,reject:l},o.notify(s),(r==null?void 0:r.timeout)>0&&setTimeout(function(){l(new Error("".concat(t," timed out (id: ").concat(i,")"))),delete o.requestCallbacks[i]},r.timeout)});return a},e.prototype.handleResponse=function(t){var n;if(!this.requestCallbacks[t.id]){(n=this.logger)===null||n===void 0||n.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.setup=function(t){var n=this,r=t===void 0?{}:t,o=r.logger,i=r.endpoint,s=r.isElementSelectable,a=r.cssSelectorAllowlist,u=r.actionClickAllowlist;this.logger=o,i&&this.endpoint===el&&(this.endpoint=i);var l=null;window.addEventListener("message",function(c){var f,d,m,g,y;if((d=(f=n.logger)===null||f===void 0?void 0:f.debug)===null||d===void 0||d.call(f,"Message received: ",JSON.stringify(c)),n.endpoint===c.origin){var x=c==null?void 0:c.data,h=x==null?void 0:x.action;if(h)if("id"in x)(g=(m=n.logger)===null||m===void 0?void 0:m.debug)===null||g===void 0||g.call(m,"Received Response to previous request: ",JSON.stringify(c)),n.handleResponse(x);else if(h==="ping")n.notify({action:"pong"});else if(h==="initialize-visual-tagging-selector"){var p=x==null?void 0:x.data;sD(BM).then(function(){var v;l=(v=window==null?void 0:window.amplitudeVisualTaggingSelector)===null||v===void 0?void 0:v.call(window,{getEventTagProps:iD,isElementSelectable:function(b){return s?s((p==null?void 0:p.actionType)||"click",b):!0},onTrack:n.onTrack,onSelect:n.onSelect,visualHighlightClass:Ed,messenger:n,cssSelectorAllowlist:a,actionClickAllowlist:u}),n.notify({action:"selector-loaded"})}).catch(function(){var v;(v=n.logger)===null||v===void 0||v.warn("Failed to initialize visual tagging selector")})}else h==="close-visual-tagging-selector"&&((y=l==null?void 0:l.close)===null||y===void 0||y.call(l))}}),this.notify({action:"page-loaded"})},e}(),uD=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],cD=["type"],fD=["svg","path","g"],dD=["password","hidden"],pD=128,hD=1024;function mD(e){var t,n,r,o,i,s;if(e===null)return null;var a=String(e.tagName).toLowerCase(),u={tag:a},l=Array.from((o=(r=e.parentElement)===null||r===void 0?void 0:r.children)!==null&&o!==void 0?o:[]);l.length&&(u.index=l.indexOf(e),u.indexOfType=l.filter(function(b){return b.tagName===e.tagName}).indexOf(e));var c=(s=(i=e.previousElementSibling)===null||i===void 0?void 0:i.tagName)===null||s===void 0?void 0:s.toLowerCase();c&&(u.prevSib=String(c));var f=e.getAttribute("id");f&&(u.id=String(f));var d=Array.from(e.classList);d.length&&(u.classes=d);var m={},g=Array.from(e.attributes),y=g.filter(function(b){return!uD.includes(b.name)}),x=!Sx(e);if(!dD.includes(String(e.getAttribute("type")))&&!fD.includes(a))try{for(var h=Cr(y),p=h.next();!p.done;p=h.next()){var v=p.value;x&&!cD.includes(v.name)||(m[v.name]=String(v.value).substring(0,pD))}}catch(b){t={error:b}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return Object.keys(m).length&&(u.attrs=m),u}function vD(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&n.tagName!=="HTML";)t.push(n),n=n.parentElement;return t}var gD=function(e){var t=[];if(!e)return[];var n=vD(e);return t=yD(n.map(function(r){return mD(r)}),hD),t};function yD(e,t){for(var n=0,r=0;rt)return e.slice(0,r)}return e}function tl(e,t){t===void 0&&(t=!1);try{if(e==null)return t?"None":null;if(typeof e=="string")return t?(e=e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r"),e.includes('"')?"'".concat(e,"'"):e.includes("'")?'"'.concat(e.replace(/'/g,"\\'"),'"'):"'".concat(e,"'")):e;if(typeof e=="boolean")return e?"True":"False";if(Array.isArray(e)){var n=e.map(function(i){return tl(i,!0)});return"[".concat(n.join(", "),"]")}else if(typeof e=="object"){var r=Object.entries(e).filter(function(i){var s=an(i,1),a=s[0];return a!=null}).map(function(i){var s=an(i,2),a=s[0],u=s[1];return"".concat(String(tl(a,!0)),": ").concat(String(tl(u,!0)))}),o="{".concat(r.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return e.toString()}catch{return null}}var wD=5;function bD(e){var t=e.amplitude,n=e.allObservables,r=e.options,o=e.shouldTrackEvent,i=n.clickObservable,s=i.pipe($N(),br(function(c){var f=an(c,2),d=f[0],m=f[1],g=d.event.target!==m.event.target,y=Math.abs(m.event.screenX-d.event.screenX)<=20&&Math.abs(m.event.screenY-d.event.screenY)<=20;return g&&!y})),a=i.pipe(VN(r.debounceTime),bn(function(){return"timeout"})),u=mx(s,a),l=i.pipe(BN(0),br(hh),br(function(c){return o("click",c.closestTrackedAncestor)}),FN(u));return l.subscribe(function(c){var f,d,m=(c.length>=wD,Sd);try{for(var g=Cr(c),y=g.next();!y.done;y=g.next()){var x=y.value;t==null||t.track(m,x.targetElementProperties,{time:x.timestamp})}}catch(h){f={error:h}}finally{try{y&&!y.done&&(d=g.return)&&d.call(g)}finally{if(f)throw f.error}}})}function xD(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,o=e.shouldTrackEvent,i=n.changeObservable,s=i.pipe(br(hh),br(function(a){return o("change",a.closestTrackedAncestor)}));return s.subscribe(function(a){t==null||t.track(PM,r("change",a.closestTrackedAncestor))})}function SD(e){var t=e.amplitude,n=e.allObservables,r=e.options,o=e.getEventProperties,i=e.shouldTrackEvent,s=e.shouldTrackActionClick,a=n.clickObservable,u=n.mutationObservable,l=n.navigateObservable,c=a.pipe(br(function(g){return!i("click",g.closestTrackedAncestor)}),bn(function(g){var y=ph(g.event.target,r.actionClickAllowlist);return g.closestTrackedAncestor=y,g.closestTrackedAncestor!==null&&(g.targetElementProperties=o(g.type,g.closestTrackedAncestor)),g}),br(hh),br(function(g){return s("click",g.closestTrackedAncestor)})),f=[u];l&&f.push(l);var d=mx.apply(void 0,to([],an(f),!1)),m=c.pipe(WN(function(g){return d.pipe(vx(1),TN({first:500,with:function(){return uh}}),bn(function(){return g}))}));return m.subscribe(function(g){t==null||t.track(Sd,o("click",g.closestTrackedAncestor),{time:g.timestamp})})}var Fo;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"})(Fo||(Fo={}));function ED(e){return e.type==="click"||e.type==="change"}var TD=function(e){var t,n,r;e===void 0&&(e={});var o=e.dataAttributePrefix,i=o===void 0?MI:o,s=e.visualTaggingOptions,a=s===void 0?{enabled:!0,messenger:new lD}:s;e.cssSelectorAllowlist=(t=e.cssSelectorAllowlist)!==null&&t!==void 0?t:OI,e.actionClickAllowlist=(n=e.actionClickAllowlist)!==null&&n!==void 0?n:NI,e.debounceTime=(r=e.debounceTime)!==null&&r!==void 0?r:0;var u=CM,l="enrichment",c=[],f=void 0,d=function(){var p,v=os(document,"click",{capture:!0}).pipe(bn(function(k){return g(k,"click")})),b=os(document,"change",{capture:!0}).pipe(bn(function(k){return g(k,"change")})),E;window.navigation&&(E=os(window.navigation,"navigate").pipe(bn(function(k){return g(k,"navigate")})));var C=new Ft(function(k){var T=new MutationObserver(function(O){k.next(O)});return T.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return T.disconnect()}}).pipe(bn(function(k){return g(k,"mutation")}));return p={},p[Fo.ClickObservable]=v,p[Fo.ChangeObservable]=b,p[Fo.NavigateObservable]=E,p[Fo.MutationObservable]=C,p},m=function(p,v){var b,E,C,k=(C=(E=v==null?void 0:v.tagName)===null||E===void 0?void 0:E.toLowerCase)===null||C===void 0?void 0:C.call(E),T=typeof v.getBoundingClientRect=="function"?v.getBoundingClientRect():{left:null,top:null},O=v.getAttribute("aria-label"),D=rD(v,i),z=Cx(v),F=Ex(v,f),K=(b={},b[kM]=v.getAttribute("id")||"",b[_M]=v.getAttribute("class"),b[AM]=gD(v),b[B1]=k,b[$1]=dh(v),b[IM]=T.left==null?null:Math.round(T.left),b[OM]=T.top==null?null:Math.round(T.top),b[MM]=O,b[NM]=D,b[W1]=F,b[DM]=z,b[G1]=window.location.href.split("?")[0],b[LM]=typeof document<"u"&&document.title||"",b[jM]=window.innerHeight,b[FM]=window.innerWidth,b);return k==="a"&&p==="click"&&v instanceof HTMLAnchorElement&&(K[RM]=v.href),Tx(K)},g=function(p,v){var b={event:p,timestamp:Date.now(),type:v};if(ED(b)&&b.event.target!==null){var E=ph(b.event.target,e.cssSelectorAllowlist);return E&&(b.closestTrackedAncestor=E,b.targetElementProperties=m(b.type,E)),b}return b},y=function(p,v){return zc(void 0,void 0,void 0,function(){var b,E,C,k,T,O,D,z,F,K;return rs(this,function(V){return f=p.loggerProvider,typeof document>"u"?[2]:(b=Gc(e,e.cssSelectorAllowlist),E=Gc(e,e.actionClickAllowlist),C=d(),k=bD({allObservables:C,options:e,amplitude:v,shouldTrackEvent:b}),c.push(k),T=xD({allObservables:C,getEventProperties:m,amplitude:v,shouldTrackEvent:b}),c.push(T),O=SD({allObservables:C,options:e,getEventProperties:m,amplitude:v,shouldTrackEvent:b,shouldTrackActionClick:E}),c.push(O),(F=p==null?void 0:p.loggerProvider)===null||F===void 0||F.log("".concat(u," has been successfully added.")),window.opener&&a.enabled&&(D=e.cssSelectorAllowlist,z=e.actionClickAllowlist,(K=a.messenger)===null||K===void 0||K.setup(ui(ui({logger:p==null?void 0:p.loggerProvider},(p==null?void 0:p.serverZone)&&{endpoint:zM[p.serverZone]}),{isElementSelectable:Gc(e,to(to([],an(D),!1),an(z),!1)),cssSelectorAllowlist:D,actionClickAllowlist:z}))),[2])})})},x=function(p){return zc(void 0,void 0,void 0,function(){return rs(this,function(v){return[2,p]})})},h=function(){return zc(void 0,void 0,void 0,function(){var p,v,b,E,C;return rs(this,function(k){try{for(p=Cr(c),v=p.next();!v.done;v=p.next())b=v.value,b.unsubscribe()}catch(T){E={error:T}}finally{try{v&&!v.done&&(C=p.return)&&C.call(p)}finally{if(E)throw E.error}}return[2]})})};return{name:u,type:l,setup:y,execute:x,teardown:h}},CD=function(e){bi(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,o){n===void 0&&(n="");var i,s;return arguments.length>2?(i=r,s=o):typeof r=="string"?(i=r,s=void 0):(i=r==null?void 0:r.userId,s=r),bt(this._init(Fe(Fe({},s),{userId:i,apiKey:n})))},t.prototype._init=function(n){var r,o,i;return de(this,void 0,void 0,function(){var s,a,u,l,c,f,d=this;return pe(this,function(m){switch(m.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,eM(n.apiKey,n,this)]);case 1:return s=m.sent(),n.fetchRemoteConfig?[4,TM(s)]:[3,4];case 2:return a=m.sent(),[4,a.generateJoinedConfig()];case 3:s=m.sent(),m.label=4;case 4:return[4,e.prototype._init.call(this,s)];case 5:return m.sent(),this.logBrowserOptions(s),L1(this.config.defaultTracking)?(u=DO(this.config),this.webAttribution=new mO(u,this.config),[4,this.webAttribution.init()]):[3,7];case 6:m.sent(),m.label=7;case 7:return l=Ul(),c=Number.isNaN(Number(l.ampSessionId))?void 0:Number(l.ampSessionId),this.setSessionId((i=(o=(r=n.sessionId)!==null&&r!==void 0?r:c)!==null&&o!==void 0?o:this.config.sessionId)!==null&&i!==void 0?i:Date.now()),f=_s(n.instanceName),f.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===II?[3,9]:[4,this.add(dM()).promise];case 8:m.sent(),m.label=9;case 9:return[4,this.add(new QI).promise];case 10:return m.sent(),[4,this.add(new VO).promise];case 11:return m.sent(),[4,this.add(new AO).promise];case 12:return m.sent(),fM(this.config),IO(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(cM()).promise]):[3,14];case 13:m.sent(),m.label=14;case 14:return OO(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(uM()).promise]):[3,16];case 15:m.sent(),m.label=16;case 16:return j1(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(iM(NO(this.config))).promise]):[3,18];case 17:m.sent(),m.label=18;case 18:return F1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(TD(MO(this.config))).promise]):[3,20];case 19:m.sent(),m.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return m.sent(),f.eventBridge.setEventReceiver(function(g){d.track(g.eventType,g.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.userId},t.prototype.setUserId=function(n){if(!this.config){this.q.push(this.setUserId.bind(this,n));return}this.config.loggerProvider.debug("function setUserId: ",n),(n!==this.config.userId||n===void 0)&&(this.config.userId=n,kO(n,this.config.instanceName))},t.prototype.getDeviceId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.deviceId},t.prototype.setDeviceId=function(n){if(!this.config){this.q.push(this.setDeviceId.bind(this,n));return}this.config.loggerProvider.debug("function setDeviceId: ",n),this.config.deviceId=n,_O(n,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId(wi()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.sessionId},t.prototype.setSessionId=function(n){var r,o=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,n)),bt(Promise.resolve());if(n===this.config.sessionId)return bt(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",n);var i=this.getSessionId(),s=this.config.lastEventTime,a=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1;this.config.sessionId=n,this.config.lastEventTime=void 0,this.config.pageCounter=0,Bg(this.config.defaultTracking)&&(i&&s&&o.push(this.track(Gg,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:i,time:s+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var u=this.trackCampaignEventIfNeeded(++a,o);return Bg(this.config.defaultTracking)&&o.push(this.track(Wg,void 0,{event_id:u?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,bt(Promise.all(o))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(n){if(!this.config){this.q.push(this.setTransport.bind(this,n));return}this.config.transportProvider=z1(n)},t.prototype.identify=function(n,r){if(Lc(n)){var o=n._q;n._q=[],n=Dc(new Vl,o)}return r!=null&&r.user_id&&this.setUserId(r.user_id),r!=null&&r.device_id&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,n,r)},t.prototype.groupIdentify=function(n,r,o,i){if(Lc(o)){var s=o._q;o._q=[],o=Dc(new Vl,s)}return e.prototype.groupIdentify.call(this,n,r,o,i)},t.prototype.revenue=function(n,r){if(Lc(n)){var o=n._q;n._q=[],n=Dc(new HI,o)}return e.prototype.revenue.call(this,n,r)},t.prototype.trackCampaignEventIfNeeded=function(n,r){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var o=this.webAttribution.generateCampaignEvent(n);return r?r.push(this.track(o).promise):this.track(o),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(n){return de(this,void 0,void 0,function(){var r,o,i;return pe(this,function(s){return r=Date.now(),o=D1(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),n.event_type!==Wg&&n.event_type!==Gg&&(!n.session_id||n.session_id===this.getSessionId())&&(o||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):o||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,n)]})})},t.prototype.logBrowserOptions=function(n){try{var r=Fe(Fe({},n),{apiKey:n.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(r))}catch(o){this.config.loggerProvider.error("Error logging browser config",o)}},t}(GI),PD=function(){var e=new CD;return{init:je(e.init.bind(e),"init",De(e),Le(e,["config"])),add:je(e.add.bind(e),"add",De(e),Le(e,["config.apiKey","timeline.plugins"])),remove:je(e.remove.bind(e),"remove",De(e),Le(e,["config.apiKey","timeline.plugins"])),track:je(e.track.bind(e),"track",De(e),Le(e,["config.apiKey","timeline.queue.length"])),logEvent:je(e.logEvent.bind(e),"logEvent",De(e),Le(e,["config.apiKey","timeline.queue.length"])),identify:je(e.identify.bind(e),"identify",De(e),Le(e,["config.apiKey","timeline.queue.length"])),groupIdentify:je(e.groupIdentify.bind(e),"groupIdentify",De(e),Le(e,["config.apiKey","timeline.queue.length"])),setGroup:je(e.setGroup.bind(e),"setGroup",De(e),Le(e,["config.apiKey","timeline.queue.length"])),revenue:je(e.revenue.bind(e),"revenue",De(e),Le(e,["config.apiKey","timeline.queue.length"])),flush:je(e.flush.bind(e),"flush",De(e),Le(e,["config.apiKey","timeline.queue.length"])),getUserId:je(e.getUserId.bind(e),"getUserId",De(e),Le(e,["config","config.userId"])),setUserId:je(e.setUserId.bind(e),"setUserId",De(e),Le(e,["config","config.userId"])),getDeviceId:je(e.getDeviceId.bind(e),"getDeviceId",De(e),Le(e,["config","config.deviceId"])),setDeviceId:je(e.setDeviceId.bind(e),"setDeviceId",De(e),Le(e,["config","config.deviceId"])),reset:je(e.reset.bind(e),"reset",De(e),Le(e,["config","config.userId","config.deviceId"])),getSessionId:je(e.getSessionId.bind(e),"getSessionId",De(e),Le(e,["config"])),setSessionId:je(e.setSessionId.bind(e),"setSessionId",De(e),Le(e,["config"])),extendSession:je(e.extendSession.bind(e),"extendSession",De(e),Le(e,["config"])),setOptOut:je(e.setOptOut.bind(e),"setOptOut",De(e),Le(e,["config"])),setTransport:je(e.setTransport.bind(e),"setTransport",De(e),Le(e,["config"]))}};const Px=PD();var kD=Px.init,_D=Px.track;const St={hovered_on_person_icon:"hovered_on_person_icon",clicked_on_person_icon:"clicked_on_person_icon",clicked_on_left_navigation_route:"clicked_on_left_navigation_route",clicked_on_goto_top:"clicked_on_goto_top",opened_share_dialog:"opened_share_dialog",opened_direct_message_dropdown:"opened_direct_message_dropdown",clicked_direct_message_item:"clicked_direct_message_item",clicked_github_icon:"clicked_github_icon",clicked_on_share_item:"clicked_on_share_item",clicked_goto_next_section:"clicked_goto_next_section",clicked_goto_prev_section:"clicked_goto_prev_section",hovered_on_item:"hovered_on_item",clicked_on_item:"clicked_on_item"};class dt{static initialize(){this.isInitialized||(kD("50e81488cd17b72ddf984a542dd6d71d",{defaultTracking:{pageViews:!1,sessions:!0},autocapture:!0}),this.isInitialized=!0)}static getBrowserInfo(){const{userAgent:t}=navigator;return t}static getScreenResolution(){return`${window.screen.width}x${window.screen.height}`}static getCurrentPageUrl(){return window.location.href}static logEvent(t,n={}){this.initialize();const r=this.getBrowserInfo(),o=this.getScreenResolution(),i=this.getCurrentPageUrl(),s={...n,browserInfo:r,screenResolution:o,pageUrl:i};_D(t,s)}static trackCustomEvent(t,n){this.logEvent(t,n)}}Qn(dt,"isInitialized",!1);const AD=e=>{const[t,n]=w.useState(!1),r={stiffness:100,damping:5},o=ih(0),i=Eg(o,[-100,100],[-45,45]),s=Eg(o,[-100,100],[-50,50]),a=Pg(i,r),u=Pg(s,r);w.useEffect(()=>{t||o.set(0)},[t]);const l=f=>{const d=f.currentTarget.offsetWidth/2;o.set(f.nativeEvent.offsetX-d)},c=()=>{const f=Ek();dt.trackCustomEvent(St.clicked_on_person_icon,{link:f}),window.open(f??"","_blank")};return S.jsx(Vs,{className:"lg:w-1/3 xl:w-1/3 2xl:w-1/4 h-full p-0 m-0 lg:block hidden ",children:S.jsxs(du,{className:"p-0 m-0 flex flex-col h-full justify-between",children:[S.jsxs("div",{className:"flex flex-col w-full items-center p-10",children:[S.jsx("div",{className:"w-28 h-28 border-2 rounded-md my-8 p-2 relative",children:S.jsxs("div",{className:"w-full h-full cursor-pointer",onMouseEnter:()=>{n(!0),dt.trackCustomEvent(St.hovered_on_person_icon,{isHovered:t})},onMouseLeave:()=>{n(!1),dt.trackCustomEvent(St.hovered_on_person_icon,{isHovered:t})},onClick:c,onMouseMove:l,children:[S.jsx(T1,{children:t&&S.jsxs(S.Fragment,{children:[S.jsxs(vd.div,{initial:{opacity:0,y:20,scale:.6},animate:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:260,damping:10}},exit:{opacity:0,y:20,scale:.6},style:{translateX:u,rotate:a,whiteSpace:"nowrap"},className:"absolute -top-16 left-1/2 -translate-x-1/2 flex text-xs flex-col items-center justify-center rounded-md bg-black z-50 shadow-xl px-4 py-2",children:[S.jsx("div",{className:"absolute inset-x-10 z-30 w-[50%] -bottom-px bg-gradient-to-r from-transparent via-emerald-500 to-transparent h-px "}),S.jsx("div",{className:"absolute left-10 w-[70%] z-30 -bottom-px bg-gradient-to-r from-transparent via-sky-500 to-transparent h-1"}),S.jsx("p",{className:"font-semibold text-primary relative z-30 text-base",children:"Are you feeling lucky today?"}),S.jsx("p",{className:"text-primary text-sm text-center font-normal",children:"Click to feel even more lucky..."})]},"tooltip"),S.jsx(vd.span,{className:"absolute inset-0 h-full w-full block ring-4 ring-white bg-blue-500 bg-opacity-10 rounded cursor-pointer",layoutId:"hoverBackground",initial:{opacity:0},animate:{opacity:1,transition:{duration:.5}},exit:{opacity:0,transition:{duration:.5}}})]})}),S.jsx($k,{className:ie("w-full h-full ",t?"glowing-person-icon":"")})]})}),S.jsx("h1",{className:"text-xl font-extrabold tracking-normal ",children:Kt.initialInformation.name}),S.jsx("h1",{className:"text-sm font-extrabold tracking-normal mt-0.5",children:Kt.initialInformation.occupation})]}),S.jsx("div",{className:"flex flex-col w-full p-3 gap-y-2",children:Kt.routes.map(f=>{const d=()=>{Il(`section-${f.name.toLowerCase()}`),dt.trackCustomEvent(St.clicked_on_left_navigation_route,{name:f.name})};return S.jsx(wn,{variant:"outline",onClick:d,children:f.name},f.name)})})]})})};var RD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ue=RD.reduce((e,t)=>{const n=w.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?eo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function mh(e,t){e&&vi.flushSync(()=>e.dispatchEvent(t))}var ID="Separator",ry="horizontal",OD=["horizontal","vertical"],kx=w.forwardRef((e,t)=>{const{decorative:n,orientation:r=ry,...o}=e,i=MD(r)?r:ry,a=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return S.jsx(ue.div,{"data-orientation":i,...a,...o,ref:t})});kx.displayName=ID;function MD(e){return OD.includes(e)}var _x=kx;const Ax=w.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>S.jsx(_x,{ref:o,decorative:n,orientation:t,className:ie("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ax.displayName=_x.displayName;const ND=e=>{const t=()=>{const i=`section-${r().toLowerCase()}`;dt.trackCustomEvent(St.clicked_goto_prev_section,{section:i}),Il(i)},n=()=>{const i=`section-${o().toLowerCase()}`;dt.trackCustomEvent(St.clicked_goto_next_section,{section:i}),Il(i)},r=()=>Jf(Kt.routes,(e.index-1)%Kt.routes.length).name,o=()=>Jf(Kt.routes,(e.index+1)%Kt.routes.length).name;return S.jsxs("div",{className:"flex flex-col bg-primary-foreground mb-2 sticky top-0 z-10 ",children:[S.jsxs("div",{className:"flex flex-row items-center px-4 py-2 justify-between",children:[S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(Kk,{className:"mr-2 h-4 w-4"}),S.jsx("h1",{className:"text-lg uppercase font-extrabold tracking-wider",children:e.name})]}),S.jsxs("div",{className:"flex flex-row items-center lg:hidden",children:[S.jsx(wn,{variant:"ghost",size:"icon",onClick:t,title:`Goto ${r()} Section`,children:S.jsx(Gk,{className:"h-4 w-4"})}),S.jsx(wn,{variant:"ghost",size:"icon",onClick:n,title:`Goto ${o()} Section`,children:S.jsx(Hk,{className:"h-4 w-4"})})]})]}),S.jsx(Ax,{className:"w-full"})]})};var Rx={exports:{}};(()=>{var e={181:(o,i,s)=>{var a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,m=typeof self=="object"&&self&&self.Object===Object&&self,g=d||m||Function("return this")(),y=Object.prototype.toString,x=Math.max,h=Math.min,p=function(){return g.Date.now()};function v(E){var C=typeof E;return!!E&&(C=="object"||C=="function")}function b(E){if(typeof E=="number")return E;if(function(T){return typeof T=="symbol"||function(O){return!!O&&typeof O=="object"}(T)&&y.call(T)=="[object Symbol]"}(E))return NaN;if(v(E)){var C=typeof E.valueOf=="function"?E.valueOf():E;E=v(C)?C+"":C}if(typeof E!="string")return E===0?E:+E;E=E.replace(a,"");var k=l.test(E);return k||c.test(E)?f(E.slice(2),k?2:8):u.test(E)?NaN:+E}o.exports=function(E,C,k){var T,O,D,z,F,K,V=0,B=!1,$=!1,W=!0;if(typeof E!="function")throw new TypeError("Expected a function");function M(te){var J=T,ce=O;return T=O=void 0,V=te,z=E.apply(ce,J)}function R(te){var J=te-K;return K===void 0||J>=C||J<0||$&&te-V>=D}function N(){var te=p();if(R(te))return G(te);F=setTimeout(N,function(J){var ce=C-(J-K);return $?h(ce,D-(J-V)):ce}(te))}function G(te){return F=void 0,W&&T?M(te):(T=O=void 0,z)}function Y(){var te=p(),J=R(te);if(T=arguments,O=this,K=te,J){if(F===void 0)return function(ce){return V=ce,F=setTimeout(N,C),B?M(ce):z}(K);if($)return F=setTimeout(N,C),M(K)}return F===void 0&&(F=setTimeout(N,C)),z}return C=b(C)||0,v(k)&&(B=!!k.leading,D=($="maxWait"in k)?x(b(k.maxWait)||0,C):D,W="trailing"in k?!!k.trailing:W),Y.cancel=function(){F!==void 0&&clearTimeout(F),V=0,T=K=O=F=void 0},Y.flush=function(){return F===void 0?z:G(p())},Y}},858:(o,i,s)=>{var a="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,m=/^0o[0-7]+$/i,g=parseInt,y=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,x=typeof self=="object"&&self&&self.Object===Object&&self,h=y||x||Function("return this")(),p=Object.prototype.toString,v=Math.max,b=Math.min,E=function(){return h.Date.now()};function C(T){var O=typeof T;return!!T&&(O=="object"||O=="function")}function k(T){if(typeof T=="number")return T;if(function(z){return typeof z=="symbol"||function(F){return!!F&&typeof F=="object"}(z)&&p.call(z)==l}(T))return u;if(C(T)){var O=typeof T.valueOf=="function"?T.valueOf():T;T=C(O)?O+"":O}if(typeof T!="string")return T===0?T:+T;T=T.replace(c,"");var D=d.test(T);return D||m.test(T)?g(T.slice(2),D?2:8):f.test(T)?u:+T}o.exports=function(T,O,D){var z=!0,F=!0;if(typeof T!="function")throw new TypeError(a);return C(D)&&(z="leading"in D?!!D.leading:z,F="trailing"in D?!!D.trailing:F),function(K,V,B){var $,W,M,R,N,G,Y=0,te=!1,J=!1,ce=!0;if(typeof K!="function")throw new TypeError(a);function ve(We){var wt=$,Ne=W;return $=W=void 0,Y=We,R=K.apply(Ne,wt)}function Se(We){var wt=We-G;return G===void 0||wt>=V||wt<0||J&&We-Y>=M}function Qe(){var We=E();if(Se(We))return be(We);N=setTimeout(Qe,function(wt){var Ne=V-(wt-G);return J?b(Ne,M-(wt-Y)):Ne}(We))}function be(We){return N=void 0,ce&&$?ve(We):($=W=void 0,R)}function Ie(){var We=E(),wt=Se(We);if($=arguments,W=this,G=We,wt){if(N===void 0)return function(Ne){return Y=Ne,N=setTimeout(Qe,V),te?ve(Ne):R}(G);if(J)return N=setTimeout(Qe,V),ve(G)}return N===void 0&&(N=setTimeout(Qe,V)),R}return V=k(V)||0,C(B)&&(te=!!B.leading,M=(J="maxWait"in B)?v(k(B.maxWait)||0,V):M,ce="trailing"in B?!!B.trailing:ce),Ie.cancel=function(){N!==void 0&&clearTimeout(N),Y=0,$=G=W=N=void 0},Ie.flush=function(){return N===void 0?R:be(E())},Ie}(T,O,{leading:z,maxWait:O,trailing:F})}},694:(o,i,s)=>{var a=s(925);function u(){}function l(){}l.resetWarningCache=u,o.exports=function(){function c(m,g,y,x,h,p){if(p!==a){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}function f(){return c}c.isRequired=c;var d={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:u};return d.PropTypes=d,d}},556:(o,i,s)=>{o.exports=s(694)()},925:o=>{o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var s in i)n.o(i,s)&&!n.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:i[s]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>$h,LazyLoadImage:()=>cT,trackWindowScroll:()=>te});const o=w;var i=n.n(o),s=n(556);function a(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function u(I){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},u(I)}function l(I,P){var A=Object.keys(I);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(I);P&&(j=j.filter(function(_){return Object.getOwnPropertyDescriptor(I,_).enumerable})),A.push.apply(A,j)}return A}function c(I,P,A){return(P=d(P))in I?Object.defineProperty(I,P,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[P]=A,I}function f(I,P){for(var A=0;A0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,L=this.placeholder.getBoundingClientRect(),Z=this.placeholder.style,q=parseInt(Z.getPropertyValue("margin-left"),10)||0,ne=parseInt(Z.getPropertyValue("margin-top"),10)||0;return{bottom:_.y+L.bottom+ne,left:_.x+L.left+q,right:_.x+L.right+q,top:_.y+L.top+ne}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var _=this.props,L=_.scrollPosition,Z=_.threshold,q=this.getPlaceholderBoundingBox(L),ne=L.y+window.innerHeight,le=L.x,Ee=L.x+window.innerWidth,Te=L.y;return Te-Z<=q.bottom&&ne+Z>=q.top&&le-Z<=q.right&&Ee+Z>=q.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var _=this,L=this.props,Z=L.className,q=L.height,ne=L.placeholder,le=L.style,Ee=L.width;if(ne&&typeof ne.type!="function")return i().cloneElement(ne,{ref:function(fe){return _.placeholder=fe}});var Te=function(fe){for(var Ze=1;Ze"u"?0:window.scrollX||window.pageXOffset},Y=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const te=function(I){var P=function(A){function j(Z){var q;if(function(le,Ee){if(!(le instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,j),(q=$(this,j,[Z])).useIntersectionObserver=Z.useIntersectionObserver&&a(),q.useIntersectionObserver)return W(q);var ne=q.onChangeScroll.bind(q);return Z.delayMethod==="debounce"?q.delayedScroll=C()(ne,Z.delayTime):Z.delayMethod==="throttle"&&(q.delayedScroll=T()(ne,Z.delayTime)),q.state={scrollPosition:{x:G(),y:Y()}},q.baseComponentRef=i().createRef(),q}return function(Z,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(q&&q.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),q&&N(Z,q)}(j,A),_=j,L=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||D(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=D(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:G(),y:Y()}})}},{key:"render",value:function(){var Z=this.props,q=(Z.delayMethod,Z.delayTime,function(le,Ee){if(le==null)return{};var Te,fe,Ze=function(Je,qu){if(Je==null)return{};var qh={};for(var ea in Je)if({}.hasOwnProperty.call(Je,ea)){if(qu.indexOf(ea)>=0)continue;qh[ea]=Je[ea]}return qh}(le,Ee);if(Object.getOwnPropertySymbols){var Ge=Object.getOwnPropertySymbols(le);for(fe=0;fe=0||{}.propertyIsEnumerable.call(le,Te)&&(Ze[Te]=le[Te])}return Ze}(Z,F)),ne=this.useIntersectionObserver?null:this.state.scrollPosition;return i().createElement(I,K({forwardRef:this.baseComponentRef,scrollPosition:ne},q))}}],L&&V(_.prototype,L),Object.defineProperty(_,"prototype",{writable:!1}),_;var _,L}(i().Component);return P.propTypes={delayMethod:s.PropTypes.oneOf(["debounce","throttle"]),delayTime:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool},P.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},P};function J(I){return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},J(I)}function ce(I,P){for(var A=0;A=0&&Number.isFinite(ne.y)&&ne.y>=0),L}return function(_,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(L&&L.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),L&&Xn(_,L)}(P,I),A=P,(j=[{key:"componentDidUpdate",value:function(_,L){L.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var _=this.props,L=_.className,Z=_.delayMethod,q=_.delayTime,ne=_.height,le=_.placeholder,Ee=_.scrollPosition,Te=_.style,fe=_.threshold,Ze=_.useIntersectionObserver,Ge=_.width;return this.isScrollTracked||Ze&&a()?i().createElement(b,{className:L,height:ne,onVisible:this.onVisible,placeholder:le,scrollPosition:Ee,style:Te,threshold:fe,useIntersectionObserver:Ze,width:Ge}):i().createElement(wt,{className:L,delayMethod:Z,delayTime:q,height:ne,onVisible:this.onVisible,placeholder:le,style:Te,threshold:fe,width:Ge})}}])&&Xs(A.prototype,j),Object.defineProperty(A,"prototype",{writable:!1}),A;var A,j}(i().Component);Gu.propTypes={afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool},Gu.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const $h=Gu;function co(I){return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},co(I)}var sT=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Wh(I,P){var A=Object.keys(I);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(I);P&&(j=j.filter(function(_){return Object.getOwnPropertyDescriptor(I,_).enumerable})),A.push.apply(A,j)}return A}function Gh(I){for(var P=1;P=0)continue;Ge[Je]=fe[Je]}return Ge}(Z,q);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(Z);for(le=0;le=0||{}.propertyIsEnumerable.call(Z,ne)&&(Ee[ne]=Z[ne])}return Ee}(_,sT));return i().createElement("img",Zs({},L,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var _=this.props,L=_.beforeLoad,Z=_.className,q=_.delayMethod,ne=_.delayTime,le=_.height,Ee=_.placeholder,Te=_.scrollPosition,fe=_.style,Ze=_.threshold,Ge=_.useIntersectionObserver,Je=_.visibleByDefault,qu=_.width;return i().createElement($h,{beforeLoad:L,className:Z,delayMethod:q,delayTime:ne,height:le,placeholder:Ee,scrollPosition:Te,style:fe,threshold:Ze,useIntersectionObserver:Ge,visibleByDefault:Je,width:qu},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(_){var L=this.props,Z=L.effect,q=L.height,ne=L.placeholderSrc,le=L.width,Ee=L.wrapperClassName,Te=L.wrapperProps,fe=this.state.loaded,Ze=fe?" lazy-load-image-loaded":"",Ge=fe||!ne?{}:{backgroundImage:"url(".concat(ne,")"),backgroundSize:"100% 100%"};return i().createElement("span",Zs({className:Ee+" lazy-load-image-background "+Z+Ze,style:Gh(Gh({},Ge),{},{color:"transparent",display:"inline-block",height:q,width:le})},Te),_)}},{key:"render",value:function(){var _=this.props,L=_.effect,Z=_.placeholderSrc,q=_.visibleByDefault,ne=_.wrapperClassName,le=_.wrapperProps,Ee=this.getLazyLoadImage();return(L||Z)&&!q||ne||le?this.getWrappedLazyLoadImage(Ee):Ee}}],j&&lT(A.prototype,j),Object.defineProperty(A,"prototype",{writable:!1}),A;var A,j}(i().Component);Ku.propTypes={onLoad:s.PropTypes.func,afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,delayMethod:s.PropTypes.string,delayTime:s.PropTypes.number,effect:s.PropTypes.string,placeholderSrc:s.PropTypes.string,threshold:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool,wrapperClassName:s.PropTypes.string,wrapperProps:s.PropTypes.object},Ku.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const cT=Ku})(),Rx.exports=r})();var DD=Rx.exports;const LD=e=>{const{url:t,isHovering:n,title:r,description:o}=e;return w.useEffect(()=>{n&&dt.trackCustomEvent(St.hovered_on_item,{url:t,title:r,description:o})},[n]),t&&Es(e.url??"")?S.jsx(wn,{variant:"ghost",size:"icon",className:"hover:bg-transparent",children:S.jsx(zk,{className:ie("h-4 w-4",n?"glowing-icon animate-bounce":"")})}):S.jsx(S.Fragment,{})},jD=e=>{const t=e.item;let[n,r]=w.useState(null);const[o,i]=w.useState(!1),s=()=>{if(t.link){const u=t.link;dt.trackCustomEvent(St.clicked_on_item,{link:u}),window.open(u,"_blank")}},a=t.title===n;return S.jsxs("div",{className:ie("w-full sm:w-full md:w-1/2 xl:w-1/2 2xl:w-1/3 p-1 relative group block",Es(e.item.link??"")?"cursor-pointer":"cursor-not-allowed"),onMouseEnter:()=>r(t.title),onMouseLeave:()=>r(null),onClick:s,children:[S.jsx(T1,{children:a&&S.jsx(vd.span,{className:ie("absolute inset-0 h-full w-full block bg-opacity-15 rounded-xl",Es(e.item.link??"")?"bg-green-500":"bg-red-500"),layoutId:"hoverBackground",initial:{opacity:0},animate:{opacity:1,transition:{duration:.15}},exit:{opacity:0,transition:{duration:.15,delay:.2}}})}),S.jsxs(Vs,{className:"h-full flex flex-row w-full p-4 items-center",children:[S.jsx("div",{className:"w-8 h-8 flex min-w-8 min-h-8",children:o?S.jsx(Uk,{className:"w-full h-full"}):S.jsx(DD.LazyLoadImage,{className:"mr-4 object-contain",src:t.logo,onError:()=>i(!0)})}),S.jsxs("div",{className:"flex flex-col ml-3 w-full gap-y-1",children:[S.jsx(Kw,{children:t.title}),S.jsx(qw,{children:t.desc})]}),S.jsx(LD,{url:t.link,isHovering:a,title:t.title,description:t.desc??""})]})]})},FD=e=>S.jsx("div",{className:"flex flex-col pb-4 w-full",children:e.items.map(t=>{const n=()=>t.shouldNotSort?t.arr:t.arr.sort((r,o)=>r.title.localeCompare(o.title));return S.jsxs("div",{className:"flex flex-col",children:[S.jsxs("div",{className:"flex flex-row items-center px-4 py-3",children:[S.jsx(Dk,{className:"mr-2 h-4 w-4"}),S.jsx("h1",{className:"text-sm font-bold tracking-wider",children:t.text})]}),S.jsx("div",{className:"flex flex-row flex-wrap pl-2 pr-2 w-full",children:n().map(r=>S.jsx(jD,{item:r,title:t.text}))})]})})}),VD=({index:e,item:t})=>S.jsxs("div",{className:"flex flex-col w-full",id:`section-${t.name.toLowerCase()}`,children:[S.jsx(ND,{name:t.name,index:e}),S.jsx(FD,{items:t.items})]});function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function UD(e,t){const n=w.createContext(t);function r(i){const{children:s,...a}=i,u=w.useMemo(()=>a,Object.values(a));return S.jsx(n.Provider,{value:u,children:s})}function o(i){const s=w.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function so(e,t=[]){let n=[];function r(i,s){const a=w.createContext(s),u=n.length;n=[...n,s];function l(f){const{scope:d,children:m,...g}=f,y=(d==null?void 0:d[e][u])||a,x=w.useMemo(()=>g,Object.values(g));return S.jsx(y.Provider,{value:x,children:m})}function c(f,d){const m=(d==null?void 0:d[e][u])||a,g=w.useContext(m);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,c]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(a){const u=(a==null?void 0:a[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,zD(o,...t)]}function zD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:u,scopeName:l})=>{const f=u(i)[`__scope${l}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function ht(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ou({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=BD({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=ht(n),u=w.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else o(l)},[i,e,o,a]);return[s,u]}function BD({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),i=ht(t);return w.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function vh(e){const t=e+"CollectionProvider",[n,r]=so(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:y}=m,x=An.useRef(null),h=An.useRef(new Map).current;return S.jsx(o,{scope:g,itemMap:h,collectionRef:x,children:y})};s.displayName=t;const a=e+"CollectionSlot",u=An.forwardRef((m,g)=>{const{scope:y,children:x}=m,h=i(a,y),p=$e(g,h.collectionRef);return S.jsx(eo,{ref:p,children:x})});u.displayName=a;const l=e+"CollectionItemSlot",c="data-radix-collection-item",f=An.forwardRef((m,g)=>{const{scope:y,children:x,...h}=m,p=An.useRef(null),v=$e(g,p),b=i(l,y);return An.useEffect(()=>(b.itemMap.set(p,{ref:p,...h}),()=>void b.itemMap.delete(p))),S.jsx(eo,{[c]:"",ref:v,children:x})});f.displayName=l;function d(m){const g=i(e+"CollectionConsumer",m);return An.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const h=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((b,E)=>h.indexOf(b.ref.current)-h.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},d,r]}var $D=w.createContext(void 0);function Ix(e){const t=w.useContext($D);return e||t||"ltr"}function WD(e,t=globalThis==null?void 0:globalThis.document){const n=ht(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var GD="DismissableLayer",Ad="dismissableLayer.update",HD="dismissableLayer.pointerDownOutside",KD="dismissableLayer.focusOutside",oy,Ox=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mu=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,l=w.useContext(Ox),[c,f]=w.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=w.useState({}),g=$e(t,k=>f(k)),y=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=c?y.indexOf(c):-1,v=l.layersWithOutsidePointerEventsDisabled.size>0,b=p>=h,E=YD(k=>{const T=k.target,O=[...l.branches].some(D=>D.contains(T));!b||O||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},d),C=XD(k=>{const T=k.target;[...l.branches].some(D=>D.contains(T))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},d);return WD(k=>{p===l.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},d),w.useEffect(()=>{if(c)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(oy=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),iy(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=oy)}},[c,d,n,l]),w.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),iy())},[c,l]),w.useEffect(()=>{const k=()=>m({});return document.addEventListener(Ad,k),()=>document.removeEventListener(Ad,k)},[]),S.jsx(ue.div,{...u,ref:g,style:{pointerEvents:v?b?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Mu.displayName=GD;var qD="DismissableLayerBranch",Mx=w.forwardRef((e,t)=>{const n=w.useContext(Ox),r=w.useRef(null),o=$e(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(ue.div,{...e,ref:o})});Mx.displayName=qD;function YD(e,t=globalThis==null?void 0:globalThis.document){const n=ht(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){Nx(HD,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XD(e,t=globalThis==null?void 0:globalThis.document){const n=ht(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&Nx(KD,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function iy(){const e=new CustomEvent(Ad);document.dispatchEvent(e)}function Nx(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mh(o,i):o.dispatchEvent(i)}var QD=Mu,ZD=Mx,Hc=0;function Dx(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sy()),document.body.insertAdjacentElement("beforeend",e[1]??sy()),Hc++,()=>{Hc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hc--}},[])}function sy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Kc="focusScope.autoFocusOnMount",qc="focusScope.autoFocusOnUnmount",ay={bubbles:!1,cancelable:!0},JD="FocusScope",gh=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=w.useState(null),l=ht(o),c=ht(i),f=w.useRef(null),d=$e(t,y=>u(y)),m=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let y=function(v){if(m.paused||!a)return;const b=v.target;a.contains(b)?f.current=b:nr(f.current,{select:!0})},x=function(v){if(m.paused||!a)return;const b=v.relatedTarget;b!==null&&(a.contains(b)||nr(f.current,{select:!0}))},h=function(v){if(document.activeElement===document.body)for(const E of v)E.removedNodes.length>0&&nr(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const p=new MutationObserver(h);return a&&p.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),p.disconnect()}}},[r,a,m.paused]),w.useEffect(()=>{if(a){uy.add(m);const y=document.activeElement;if(!a.contains(y)){const h=new CustomEvent(Kc,ay);a.addEventListener(Kc,l),a.dispatchEvent(h),h.defaultPrevented||(eL(iL(Lx(a)),{select:!0}),document.activeElement===y&&nr(a))}return()=>{a.removeEventListener(Kc,l),setTimeout(()=>{const h=new CustomEvent(qc,ay);a.addEventListener(qc,c),a.dispatchEvent(h),h.defaultPrevented||nr(y??document.body,{select:!0}),a.removeEventListener(qc,c),uy.remove(m)},0)}}},[a,l,c,m]);const g=w.useCallback(y=>{if(!n&&!r||m.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(x&&h){const p=y.currentTarget,[v,b]=tL(p);v&&b?!y.shiftKey&&h===b?(y.preventDefault(),n&&nr(v,{select:!0})):y.shiftKey&&h===v&&(y.preventDefault(),n&&nr(b,{select:!0})):h===p&&y.preventDefault()}},[n,r,m.paused]);return S.jsx(ue.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});gh.displayName=JD;function eL(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(nr(r,{select:t}),document.activeElement!==n)return}function tL(e){const t=Lx(e),n=ly(t,e),r=ly(t.reverse(),e);return[n,r]}function Lx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ly(e,t){for(const n of e)if(!nL(n,{upTo:t}))return n}function nL(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rL(e){return e instanceof HTMLInputElement&&"select"in e}function nr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rL(e)&&t&&e.select()}}var uy=oL();function oL(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cy(e,t),e.unshift(t)},remove(t){var n;e=cy(e,t),(n=e[0])==null||n.resume()}}}function cy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function iL(e){return e.filter(t=>t.tagName!=="A")}var Pr=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},sL=AT.useId||(()=>{}),aL=0;function qo(e){const[t,n]=w.useState(sL());return Pr(()=>{n(r=>r??String(aL++))},[e]),t?`radix-${t}`:""}const lL=["top","right","bottom","left"],xn=Math.min,At=Math.max,$l=Math.round,Ra=Math.floor,kr=e=>({x:e,y:e}),uL={left:"right",right:"left",bottom:"top",top:"bottom"},cL={start:"end",end:"start"};function Rd(e,t,n){return At(e,xn(t,n))}function Gn(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Si(e){return e.split("-")[1]}function yh(e){return e==="x"?"y":"x"}function wh(e){return e==="y"?"height":"width"}function _r(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function bh(e){return yh(_r(e))}function fL(e,t,n){n===void 0&&(n=!1);const r=Si(e),o=bh(e),i=wh(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wl(s)),[s,Wl(s)]}function dL(e){const t=Wl(e);return[Id(e),t,Id(t)]}function Id(e){return e.replace(/start|end/g,t=>cL[t])}function pL(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function hL(e,t,n,r){const o=Si(e);let i=pL(Hn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Id)))),i}function Wl(e){return e.replace(/left|right|bottom|top/g,t=>uL[t])}function mL(e){return{top:0,right:0,bottom:0,left:0,...e}}function jx(e){return typeof e!="number"?mL(e):{top:e,right:e,bottom:e,left:e}}function Gl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function fy(e,t,n){let{reference:r,floating:o}=e;const i=_r(t),s=bh(t),a=wh(s),u=Hn(t),l=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:c,y:r.y-o.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Si(t)){case"start":m[s]-=d*(n&&l?-1:1);break;case"end":m[s]+=d*(n&&l?-1:1);break}return m}const vL=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=fy(l,r,u),d=r,m={},g=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:l,padding:c=0}=Gn(e,t)||{};if(l==null)return{};const f=jx(c),d={x:n,y:r},m=bh(o),g=wh(m),y=await s.getDimensions(l),x=m==="y",h=x?"top":"left",p=x?"bottom":"right",v=x?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[m]-d[m]-i.floating[g],E=d[m]-i.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let k=C?C[v]:0;(!k||!await(s.isElement==null?void 0:s.isElement(C)))&&(k=a.floating[v]||i.floating[g]);const T=b/2-E/2,O=k/2-y[g]/2-1,D=xn(f[h],O),z=xn(f[p],O),F=D,K=k-y[g]-z,V=k/2-y[g]/2+T,B=Rd(F,V,K),$=!u.arrow&&Si(o)!=null&&V!==B&&i.reference[g]/2-(VV<=0)){var z,F;const V=(((z=i.flip)==null?void 0:z.index)||0)+1,B=k[V];if(B)return{data:{index:V,overflows:D},reset:{placement:B}};let $=(F=D.filter(W=>W.overflows[0]<=0).sort((W,M)=>W.overflows[1]-M.overflows[1])[0])==null?void 0:F.placement;if(!$)switch(m){case"bestFit":{var K;const W=(K=D.filter(M=>{if(C){const R=_r(M.placement);return R===p||R==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(R=>R>0).reduce((R,N)=>R+N,0)]).sort((M,R)=>M[1]-R[1])[0])==null?void 0:K[0];W&&($=W);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function dy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function py(e){return lL.some(t=>e[t]>=0)}const wL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gn(e,t);switch(r){case"referenceHidden":{const i=await Rs(t,{...o,elementContext:"reference"}),s=dy(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:py(s)}}}case"escaped":{const i=await Rs(t,{...o,altBoundary:!0}),s=dy(i,n.floating);return{data:{escapedOffsets:s,escaped:py(s)}}}default:return{}}}}};async function bL(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Hn(n),a=Si(n),u=_r(n)==="y",l=["left","top"].includes(s)?-1:1,c=i&&u?-1:1,f=Gn(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),u?{x:m*c,y:d*l}:{x:d*l,y:m*c}}const xL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await bL(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},SL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:h,y:p}=x;return{x:h,y:p}}},...u}=Gn(e,t),l={x:n,y:r},c=await Rs(t,u),f=_r(Hn(o)),d=yh(f);let m=l[d],g=l[f];if(i){const x=d==="y"?"top":"left",h=d==="y"?"bottom":"right",p=m+c[x],v=m-c[h];m=Rd(p,m,v)}if(s){const x=f==="y"?"top":"left",h=f==="y"?"bottom":"right",p=g+c[x],v=g-c[h];g=Rd(p,g,v)}const y=a.fn({...t,[d]:m,[f]:g});return{...y,data:{x:y.x-n,y:y.y-r}}}}},EL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=Gn(e,t),c={x:n,y:r},f=_r(o),d=yh(f);let m=c[d],g=c[f];const y=Gn(a,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const v=d==="y"?"height":"width",b=i.reference[d]-i.floating[v]+x.mainAxis,E=i.reference[d]+i.reference[v]-x.mainAxis;mE&&(m=E)}if(l){var h,p;const v=d==="y"?"width":"height",b=["top","left"].includes(Hn(o)),E=i.reference[f]-i.floating[v]+(b&&((h=s.offset)==null?void 0:h[f])||0)+(b?0:x.crossAxis),C=i.reference[f]+i.reference[v]+(b?0:((p=s.offset)==null?void 0:p[f])||0)-(b?x.crossAxis:0);gC&&(g=C)}return{[d]:m,[f]:g}}}},TL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Gn(e,t),u=await Rs(t,a),l=Hn(n),c=Si(n),f=_r(n)==="y",{width:d,height:m}=r.floating;let g,y;l==="top"||l==="bottom"?(g=l,y=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=l,g=c==="end"?"top":"bottom");const x=m-u.top-u.bottom,h=d-u.left-u.right,p=xn(m-u[g],x),v=xn(d-u[y],h),b=!t.middlewareData.shift;let E=p,C=v;if(f?C=c||b?xn(v,h):h:E=c||b?xn(p,x):x,b&&!c){const T=At(u.left,0),O=At(u.right,0),D=At(u.top,0),z=At(u.bottom,0);f?C=d-2*(T!==0||O!==0?T+O:At(u.left,u.right)):E=m-2*(D!==0||z!==0?D+z:At(u.top,u.bottom))}await s({...t,availableWidth:C,availableHeight:E});const k=await o.getDimensions(i.floating);return d!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function Ei(e){return Fx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qn(e){var t;return(t=(Fx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fx(e){return e instanceof Node||e instanceof Ot(e).Node}function un(e){return e instanceof Element||e instanceof Ot(e).Element}function kn(e){return e instanceof HTMLElement||e instanceof Ot(e).HTMLElement}function hy(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function Ks(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function CL(e){return["table","td","th"].includes(Ei(e))}function Nu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xh(e){const t=Sh(),n=un(e)?cn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function PL(e){let t=Ar(e);for(;kn(t)&&!di(t);){if(xh(t))return t;if(Nu(t))return null;t=Ar(t)}return null}function Sh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function di(e){return["html","body","#document"].includes(Ei(e))}function cn(e){return Ot(e).getComputedStyle(e)}function Du(e){return un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ar(e){if(Ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hy(e)&&e.host||qn(e);return hy(t)?t.host:t}function Vx(e){const t=Ar(e);return di(t)?e.ownerDocument?e.ownerDocument.body:e.body:kn(t)&&Ks(t)?t:Vx(t)}function Is(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vx(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ot(o);if(i){const a=Od(s);return t.concat(s,s.visualViewport||[],Ks(o)?o:[],a&&n?Is(a):[])}return t.concat(o,Is(o,[],n))}function Od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ux(e){const t=cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=$l(n)!==i||$l(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Eh(e){return un(e)?e:e.contextElement}function Yo(e){const t=Eh(e);if(!kn(t))return kr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ux(t);let s=(i?$l(n.width):n.width)/r,a=(i?$l(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const kL=kr(0);function zx(e){const t=Ot(e);return!Sh()||!t.visualViewport?kL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _L(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function no(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Eh(e);let s=kr(1);t&&(r?un(r)&&(s=Yo(r)):s=Yo(e));const a=_L(i,n,r)?zx(i):kr(0);let u=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=Ot(i),m=r&&un(r)?Ot(r):r;let g=d,y=Od(g);for(;y&&r&&m!==g;){const x=Yo(y),h=y.getBoundingClientRect(),p=cn(y),v=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*x.x,b=h.top+(y.clientTop+parseFloat(p.paddingTop))*x.y;u*=x.x,l*=x.y,c*=x.x,f*=x.y,u+=v,l+=b,g=Ot(y),y=Od(g)}}return Gl({width:c,height:f,x:u,y:l})}function AL(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=qn(r),a=t?Nu(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},l=kr(1);const c=kr(0),f=kn(r);if((f||!f&&!i)&&((Ei(r)!=="body"||Ks(s))&&(u=Du(r)),kn(r))){const d=no(r);l=Yo(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+c.x,y:n.y*l.y-u.scrollTop*l.y+c.y}}function RL(e){return Array.from(e.getClientRects())}function Bx(e){return no(qn(e)).left+Du(e).scrollLeft}function IL(e){const t=qn(e),n=Du(e),r=e.ownerDocument.body,o=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Bx(e);const a=-n.scrollTop;return cn(r).direction==="rtl"&&(s+=At(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function OL(e,t){const n=Ot(e),r=qn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const l=Sh();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:a,y:u}}function ML(e,t){const n=no(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=kn(e)?Yo(e):kr(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:s,height:a,x:u,y:l}}function my(e,t,n){let r;if(t==="viewport")r=OL(e,n);else if(t==="document")r=IL(qn(e));else if(un(t))r=ML(t,n);else{const o=zx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Gl(r)}function $x(e,t){const n=Ar(e);return n===t||!un(n)||di(n)?!1:cn(n).position==="fixed"||$x(n,t)}function NL(e,t){const n=t.get(e);if(n)return n;let r=Is(e,[],!1).filter(a=>un(a)&&Ei(a)!=="body"),o=null;const i=cn(e).position==="fixed";let s=i?Ar(e):e;for(;un(s)&&!di(s);){const a=cn(s),u=xh(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ks(s)&&!u&&$x(e,s))?r=r.filter(c=>c!==s):o=a,s=Ar(s)}return t.set(e,r),r}function DL(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Nu(t)?[]:NL(t,this._c):[].concat(n),r],a=s[0],u=s.reduce((l,c)=>{const f=my(t,c,o);return l.top=At(f.top,l.top),l.right=xn(f.right,l.right),l.bottom=xn(f.bottom,l.bottom),l.left=At(f.left,l.left),l},my(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function LL(e){const{width:t,height:n}=Ux(e);return{width:t,height:n}}function jL(e,t,n){const r=kn(t),o=qn(t),i=n==="fixed",s=no(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=kr(0);if(r||!r&&!i)if((Ei(t)!=="body"||Ks(o))&&(a=Du(t)),r){const f=no(t,!0,i,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else o&&(u.x=Bx(o));const l=s.left+a.scrollLeft-u.x,c=s.top+a.scrollTop-u.y;return{x:l,y:c,width:s.width,height:s.height}}function Yc(e){return cn(e).position==="static"}function vy(e,t){return!kn(e)||cn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Wx(e,t){const n=Ot(e);if(Nu(e))return n;if(!kn(e)){let o=Ar(e);for(;o&&!di(o);){if(un(o)&&!Yc(o))return o;o=Ar(o)}return n}let r=vy(e,t);for(;r&&CL(r)&&Yc(r);)r=vy(r,t);return r&&di(r)&&Yc(r)&&!xh(r)?n:r||PL(e)||n}const FL=async function(e){const t=this.getOffsetParent||Wx,n=this.getDimensions,r=await n(e.floating);return{reference:jL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function VL(e){return cn(e).direction==="rtl"}const UL={convertOffsetParentRelativeRectToViewportRelativeRect:AL,getDocumentElement:qn,getClippingRect:DL,getOffsetParent:Wx,getElementRects:FL,getClientRects:RL,getDimensions:LL,getScale:Yo,isElement:un,isRTL:VL};function zL(e,t){let n=null,r;const o=qn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const{left:l,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const m=Ra(c),g=Ra(o.clientWidth-(l+f)),y=Ra(o.clientHeight-(c+d)),x=Ra(l),p={rootMargin:-m+"px "+-g+"px "+-y+"px "+-x+"px",threshold:At(0,xn(1,u))||1};let v=!0;function b(E){const C=E[0].intersectionRatio;if(C!==u){if(!v)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(b,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,p)}n.observe(e)}return s(!0),i}function BL(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Eh(e),c=o||i?[...l?Is(l):[],...Is(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const f=l&&a?zL(l,n):null;let d=-1,m=null;s&&(m=new ResizeObserver(h=>{let[p]=h;p&&p.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let g,y=u?no(e):null;u&&x();function x(){const h=no(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&n(),y=h,g=requestAnimationFrame(x)}return n(),()=>{var h;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(h=m)==null||h.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const $L=xL,WL=SL,GL=yL,HL=TL,KL=wL,gy=gL,qL=EL,YL=(e,t,n)=>{const r=new Map,o={platform:UL,...n},i={...o.platform,_c:r};return vL(e,t,{...o,platform:i})};var nl=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Hl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Hl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Gx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yy(e,t){const n=Gx(e);return Math.round(t*n)/n}function wy(e){const t=w.useRef(e);return nl(()=>{t.current=e}),t}function XL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[c,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=w.useState(r);Hl(d,r)||m(r);const[g,y]=w.useState(null),[x,h]=w.useState(null),p=w.useCallback(W=>{W!==C.current&&(C.current=W,y(W))},[]),v=w.useCallback(W=>{W!==k.current&&(k.current=W,h(W))},[]),b=i||g,E=s||x,C=w.useRef(null),k=w.useRef(null),T=w.useRef(c),O=u!=null,D=wy(u),z=wy(o),F=w.useCallback(()=>{if(!C.current||!k.current)return;const W={placement:t,strategy:n,middleware:d};z.current&&(W.platform=z.current),YL(C.current,k.current,W).then(M=>{const R={...M,isPositioned:!0};K.current&&!Hl(T.current,R)&&(T.current=R,vi.flushSync(()=>{f(R)}))})},[d,t,n,z]);nl(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(W=>({...W,isPositioned:!1})))},[l]);const K=w.useRef(!1);nl(()=>(K.current=!0,()=>{K.current=!1}),[]),nl(()=>{if(b&&(C.current=b),E&&(k.current=E),b&&E){if(D.current)return D.current(b,E,F);F()}},[b,E,F,D,O]);const V=w.useMemo(()=>({reference:C,floating:k,setReference:p,setFloating:v}),[p,v]),B=w.useMemo(()=>({reference:b,floating:E}),[b,E]),$=w.useMemo(()=>{const W={position:n,left:0,top:0};if(!B.floating)return W;const M=yy(B.floating,c.x),R=yy(B.floating,c.y);return a?{...W,transform:"translate("+M+"px, "+R+"px)",...Gx(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:R}},[n,a,B.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:F,refs:V,elements:B,floatingStyles:$}),[c,F,V,B,$])}const QL=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?gy({element:r.current,padding:o}).fn(n):{}:r?gy({element:r,padding:o}).fn(n):{}}}},ZL=(e,t)=>({...$L(e),options:[e,t]}),JL=(e,t)=>({...WL(e),options:[e,t]}),ej=(e,t)=>({...qL(e),options:[e,t]}),tj=(e,t)=>({...GL(e),options:[e,t]}),nj=(e,t)=>({...HL(e),options:[e,t]}),rj=(e,t)=>({...KL(e),options:[e,t]}),oj=(e,t)=>({...QL(e),options:[e,t]});var ij="Arrow",Hx=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(ue.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hx.displayName=ij;var sj=Hx;function aj(e){const[t,n]=w.useState(void 0);return Pr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Th="Popper",[Kx,qx]=so(Th),[lj,Yx]=Kx(Th),Xx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=w.useState(null);return S.jsx(lj,{scope:t,anchor:r,onAnchorChange:o,children:n})};Xx.displayName=Th;var Qx="PopperAnchor",Zx=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Yx(Qx,n),s=w.useRef(null),a=$e(t,s);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:S.jsx(ue.div,{...o,ref:a})});Zx.displayName=Qx;var Ch="PopperContent",[uj,cj]=Kx(Ch),Jx=w.forwardRef((e,t)=>{var Se,Qe,be,Ie,We,wt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:g,...y}=e,x=Yx(Ch,n),[h,p]=w.useState(null),v=$e(t,Ne=>p(Ne)),[b,E]=w.useState(null),C=aj(b),k=(C==null?void 0:C.width)??0,T=(C==null?void 0:C.height)??0,O=r+(i!=="center"?"-"+i:""),D=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(l)?l:[l],F=z.length>0,K={padding:D,boundary:z.filter(dj),altBoundary:F},{refs:V,floatingStyles:B,placement:$,isPositioned:W,middlewareData:M}=XL({strategy:"fixed",placement:O,whileElementsMounted:(...Ne)=>BL(...Ne,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[ZL({mainAxis:o+T,alignmentAxis:s}),u&&JL({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ej():void 0,...K}),u&&tj({...K}),nj({...K,apply:({elements:Ne,rects:Xs,availableWidth:$u,availableHeight:Wu})=>{const{width:Qs,height:uo}=Xs.reference,Xn=Ne.floating.style;Xn.setProperty("--radix-popper-available-width",`${$u}px`),Xn.setProperty("--radix-popper-available-height",`${Wu}px`),Xn.setProperty("--radix-popper-anchor-width",`${Qs}px`),Xn.setProperty("--radix-popper-anchor-height",`${uo}px`)}}),b&&oj({element:b,padding:a}),pj({arrowWidth:k,arrowHeight:T}),d&&rj({strategy:"referenceHidden",...K})]}),[R,N]=nS($),G=ht(g);Pr(()=>{W&&(G==null||G())},[W,G]);const Y=(Se=M.arrow)==null?void 0:Se.x,te=(Qe=M.arrow)==null?void 0:Qe.y,J=((be=M.arrow)==null?void 0:be.centerOffset)!==0,[ce,ve]=w.useState();return Pr(()=>{h&&ve(window.getComputedStyle(h).zIndex)},[h]),S.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:W?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(Ie=M.transformOrigin)==null?void 0:Ie.x,(We=M.transformOrigin)==null?void 0:We.y].join(" "),...((wt=M.hide)==null?void 0:wt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(uj,{scope:n,placedSide:R,onArrowChange:E,arrowX:Y,arrowY:te,shouldHideArrow:J,children:S.jsx(ue.div,{"data-side":R,"data-align":N,...y,ref:v,style:{...y.style,animation:W?void 0:"none"}})})})});Jx.displayName=Ch;var eS="PopperArrow",fj={top:"bottom",right:"left",bottom:"top",left:"right"},tS=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=cj(eS,r),s=fj[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(sj,{...o,ref:n,style:{...o.style,display:"block"}})})});tS.displayName=eS;function dj(e){return e!==null}var pj=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,c]=nS(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((h=o.arrow)==null?void 0:h.x)??0)+a/2,m=(((p=o.arrow)==null?void 0:p.y)??0)+u/2;let g="",y="";return l==="bottom"?(g=s?f:`${d}px`,y=`${-u}px`):l==="top"?(g=s?f:`${d}px`,y=`${r.floating.height+u}px`):l==="right"?(g=`${-u}px`,y=s?f:`${m}px`):l==="left"&&(g=`${r.floating.width+u}px`,y=s?f:`${m}px`),{data:{x:g,y}}}});function nS(e){const[t,n="center"]=e.split("-");return[t,n]}var hj=Xx,mj=Zx,vj=Jx,gj=tS,yj="Portal",Lu=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=w.useState(!1);Pr(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?UP.createPortal(S.jsx(ue.div,{...r,ref:t}),s):null});Lu.displayName=yj;function wj(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Yn=e=>{const{present:t,children:n}=e,r=bj(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=$e(r.ref,xj(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};Yn.displayName="Presence";function bj(e){const[t,n]=w.useState(),r=w.useRef({}),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[a,u]=wj(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const l=Ia(r.current);i.current=a==="mounted"?l:"none"},[a]),Pr(()=>{const l=r.current,c=o.current;if(c!==e){const d=i.current,m=Ia(l);e?u("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&d!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Pr(()=>{if(t){const l=f=>{const m=Ia(r.current).includes(f.animationName);f.target===t&&m&&vi.flushSync(()=>u("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=Ia(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Ia(e){return(e==null?void 0:e.animationName)||"none"}function xj(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xc="rovingFocusGroup.onEntryFocus",Sj={bubbles:!1,cancelable:!0},ju="RovingFocusGroup",[Md,rS,Ej]=vh(ju),[Tj,oS]=so(ju,[Ej]),[Cj,Pj]=Tj(ju),iS=w.forwardRef((e,t)=>S.jsx(Md.Provider,{scope:e.__scopeRovingFocusGroup,children:S.jsx(Md.Slot,{scope:e.__scopeRovingFocusGroup,children:S.jsx(kj,{...e,ref:t})})}));iS.displayName=ju;var kj=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...f}=e,d=w.useRef(null),m=$e(t,d),g=Ix(i),[y=null,x]=Ou({prop:s,defaultProp:a,onChange:u}),[h,p]=w.useState(!1),v=ht(l),b=rS(n),E=w.useRef(!1),[C,k]=w.useState(0);return w.useEffect(()=>{const T=d.current;if(T)return T.addEventListener(Xc,v),()=>T.removeEventListener(Xc,v)},[v]),S.jsx(Cj,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:y,onItemFocus:w.useCallback(T=>x(T),[x]),onItemShiftTab:w.useCallback(()=>p(!0),[]),onFocusableItemAdd:w.useCallback(()=>k(T=>T+1),[]),onFocusableItemRemove:w.useCallback(()=>k(T=>T-1),[]),children:S.jsx(ue.div,{tabIndex:h||C===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{E.current=!0}),onFocus:Q(e.onFocus,T=>{const O=!E.current;if(T.target===T.currentTarget&&O&&!h){const D=new CustomEvent(Xc,Sj);if(T.currentTarget.dispatchEvent(D),!D.defaultPrevented){const z=b().filter($=>$.focusable),F=z.find($=>$.active),K=z.find($=>$.id===y),B=[F,K,...z].filter(Boolean).map($=>$.ref.current);lS(B,c)}}E.current=!1}),onBlur:Q(e.onBlur,()=>p(!1))})})}),sS="RovingFocusGroupItem",aS=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=qo(),u=i||a,l=Pj(sS,n),c=l.currentTabStopId===u,f=rS(n),{onFocusableItemAdd:d,onFocusableItemRemove:m}=l;return w.useEffect(()=>{if(r)return d(),()=>m()},[r,d,m]),S.jsx(Md.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:S.jsx(ue.span,{tabIndex:c?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Q(e.onMouseDown,g=>{r?l.onItemFocus(u):g.preventDefault()}),onFocus:Q(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Rj(g,l.orientation,l.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let h=f().filter(p=>p.focusable).map(p=>p.ref.current);if(y==="last")h.reverse();else if(y==="prev"||y==="next"){y==="prev"&&h.reverse();const p=h.indexOf(g.currentTarget);h=l.loop?Ij(h,p+1):h.slice(p+1)}setTimeout(()=>lS(h))}})})})});aS.displayName=sS;var _j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Aj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Rj(e,t,n){const r=Aj(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _j[r]}function lS(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ij(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Oj=iS,Mj=aS,Nj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ho=new WeakMap,Oa=new WeakMap,Ma={},Qc=0,uS=function(e){return e&&(e.host||uS(e.parentNode))},Dj=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Lj=function(e,t,n,r){var o=Dj(t,Array.isArray(e)?e:[e]);Ma[n]||(Ma[n]=new WeakMap);var i=Ma[n],s=[],a=new Set,u=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var c=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var m=d.getAttribute(r),g=m!==null&&m!=="false",y=(ho.get(d)||0)+1,x=(i.get(d)||0)+1;ho.set(d,y),i.set(d,x),s.push(d),y===1&&g&&Oa.set(d,!0),x===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",d,h)}})};return c(t),a.clear(),Qc++,function(){s.forEach(function(f){var d=ho.get(f)-1,m=i.get(f)-1;ho.set(f,d),i.set(f,m),d||(Oa.has(f)||f.removeAttribute(r),Oa.delete(f)),m||f.removeAttribute(n)}),Qc--,Qc||(ho=new WeakMap,ho=new WeakMap,Oa=new WeakMap,Ma={})}},cS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Nj(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Lj(r,o,n,"aria-hidden")):function(){return null}},rl="right-scroll-bar-position",ol="width-before-scroll-bar",jj="with-scroll-bars-hidden",Fj="--removed-body-scroll-bar-size";function Zc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vj(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Uj=typeof window<"u"?w.useLayoutEffect:w.useEffect,by=new WeakMap;function zj(e,t){var n=Vj(null,function(r){return e.forEach(function(o){return Zc(o,r)})});return Uj(function(){var r=by.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Zc(a,null)}),i.forEach(function(a){o.has(a)||Zc(a,s)})}by.set(n,e)},[e]),n}function Bj(e){return e}function $j(e,t){t===void 0&&(t=Bj);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var c=s;s=[],c.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(c){s.push(c),l()},filter:function(c){return s=s.filter(c),n}}}};return o}function Wj(e){e===void 0&&(e={});var t=$j(null);return t.options=yn({async:!0,ssr:!1},e),t}var fS=function(e){var t=e.sideCar,n=H1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,yn({},n))};fS.isSideCarExport=!0;function Gj(e,t){return e.useMedium(t),fS}var dS=Wj(),Jc=function(){},Fu=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:Jc,onWheelCapture:Jc,onTouchMoveCapture:Jc}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,x=e.as,h=x===void 0?"div":x,p=e.gapMode,v=H1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=d,E=zj([n,t]),C=yn(yn({},v),o);return w.createElement(w.Fragment,null,c&&w.createElement(b,{sideCar:dS,removeScrollBar:l,shards:f,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:p}),s?w.cloneElement(w.Children.only(a),yn(yn({},C),{ref:E})):w.createElement(h,yn({},C,{className:u,ref:E}),a))});Fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fu.classNames={fullWidth:ol,zeroRight:rl};var Hj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hj();return t&&e.setAttribute("nonce",t),e}function qj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xj=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kj())&&(qj(t,n),Yj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qj=function(){var e=Xj();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pS=function(){var e=Qj(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Zj={left:0,top:0,right:0,gap:0},ef=function(e){return parseInt(e||"",10)||0},Jj=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ef(n),ef(r),ef(o)]},e3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Zj;var t=Jj(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},t3=pS(),Xo="data-scroll-locked",n3=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` + `):"",this.name="UnsubscriptionError",this.errors=n}});function Pd(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _u=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=As(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(y){t={error:y}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(me(c))try{c()}catch(y){i=y instanceof Bc?y.errors:[y]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=As(f),m=d.next();!m.done;m=d.next()){var g=m.value;try{Xg(g)}catch(y){i=i??[],y instanceof Bc?i=fi(fi([],ci(i)),ci(y.errors)):i.push(y)}}}catch(y){r={error:y}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(i)throw new Bc(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Xg(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Pd(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Pd(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();_u.EMPTY;function Y1(e){return e instanceof _u||e&&"closed"in e&&me(e.remove)&&me(e.add)&&me(e.unsubscribe)}function Xg(e){me(e)?e():e.unsubscribe()}var X1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Q1={setTimeout:function(e,t){for(var n=[],r=2;r0&&h(o)},void 0,void 0,function(){g!=null&&g.closed||g==null||g.unsubscribe(),y=null})),!x&&h(r!=null?typeof r=="number"?r:+r-u.now():o)})}function PN(e){throw new EN(e)}function bn(e,t){return dn(function(n,r){var o=0;n.subscribe(Dt(r,function(i){r.next(e.call(t,i,o++))}))})}var CN=Array.isArray;function kN(e,t){return CN(t)?e.apply(void 0,fi([],ci(t))):e(t)}function _N(e){return bn(function(t){return kN(e,t)})}function AN(e,t,n,r,o,i,s,a){var u=[],l=0,c=0,f=!1,d=function(){f&&!u.length&&!l&&t.complete()},m=function(y){return l0&&(r=o[0]),Iu(r)}else throw new Error("Selector was not found.")}function HN(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function ka(e,t,n){for(var r=null,o=[],i=e,s=0,a=function(){var l,c,f=Aa(KN(i))||Aa.apply(void 0,to([],an(qN(i)),!1))||Aa.apply(void 0,to([],an(YN(i)),!1))||Aa(XN(i))||[ny()],d=QN(i);if(t=="all")d&&(f=f.concat(f.filter(Wc).map(function(h){return _a(h,d)})));else if(t=="two")f=f.slice(0,1),d&&(f=f.concat(f.filter(Wc).map(function(h){return _a(h,d)})));else if(t=="one"){var m=an(f=f.slice(0,1),1),g=m[0];d&&Wc(g)&&(f=[_a(g,d)])}else t=="none"&&(f=[ny()],d&&(f=[_a(f[0],d)]));try{for(var y=(l=void 0,Pr(f)),x=y.next();!x.done;x=y.next()){var g=x.value;g.level=s}}catch(h){l={error:h}}finally{try{x&&!x.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}if(o.push(f),o.length>=Cn.seedMinLength&&(r=ey(o,n),r))return"break";i=i.parentElement,s++};i;){var u=a();if(u==="break")break}return r||(r=ey(o,n)),!r&&n?n():r}function ey(e,t){var n,r,o=e.reduce(function(l,c){return l*c.length},1);if(o>Cn.threshold)return t?t():null;var i=wx(yx(e));try{for(var s=Pr(i),a=s.next();!a.done;a=s.next()){var u=a.value;if(gx(u))return u}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return null}function Iu(e){for(var t=e[0],n=t.name,r=1;r ").concat(n):n="".concat(e[r].name," ").concat(n),t=e[r]}return n}function ty(e){return e.map(function(t){return t.penalty}).reduce(function(t,n){return t+n},0)}function gx(e){var t=Iu(e);switch(fh.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function KN(e){var t=e.getAttribute("id");return t&&Cn.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}function qN(e){var t=Array.from(e.attributes).filter(function(n){return Cn.attr(n.name,n.value)});return t.map(function(n){return{name:"[".concat(CSS.escape(n.name),'="').concat(CSS.escape(n.value),'"]'),penalty:.5}})}function YN(e){var t=Array.from(e.classList).filter(Cn.className);return t.map(function(n){return{name:"."+CSS.escape(n),penalty:1}})}function XN(e){var t=e.tagName.toLowerCase();return Cn.tagName(t)?{name:t,penalty:2}:null}function ny(){return{name:"*",penalty:3}}function QN(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}function _a(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Wc(e){return e.name!=="html"&&!e.name.startsWith("#")}function Aa(){for(var e=[],t=0;t0?n:null}function ZN(e){return e!=null}function yx(e,t){var n,r,o,i,s,a;return t===void 0&&(t=[]),rs(this,function(u){switch(u.label){case 0:if(!(e.length>0))return[3,9];u.label=1;case 1:u.trys.push([1,6,7,8]),n=Pr(e[0]),r=n.next(),u.label=2;case 2:return r.done?[3,5]:(o=r.value,[5,Pr(yx(e.slice(1,e.length),t.concat(o)))]);case 3:u.sent(),u.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return i=u.sent(),s={error:i},[3,8];case 7:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case 8:return[3,11];case 9:return[4,t];case 10:u.sent(),u.label=11;case 11:return[2]}})}function wx(e){return to([],an(e),!1).sort(function(t,n){return ty(t)-ty(n)})}function bx(e,t,n){var r,o,i;return n===void 0&&(n={counter:0,visited:new Map}),rs(this,function(s){switch(s.label){case 0:if(!(e.length>2&&e.length>Cn.optimizedMinLength))return[3,5];r=1,s.label=1;case 1:return rCn.maxNumberOfTries?[2]:(n.counter+=1,o=to([],an(e),!1),o.splice(r,1),i=Iu(o),n.visited.has(i)?[2]:gx(o)&&JN(o,t)?[4,o]:[3,4]):[3,5];case 2:return s.sent(),n.visited.set(i,!0),[5,Pr(bx(o,t,n))];case 3:s.sent(),s.label=4;case 4:return r++,[3,1];case 5:return[2]}})}function JN(e,t){return fh.querySelector(Iu(e))===t}var eD=["input","select","textarea"],Gc=function(e,t){return function(n,r){var o,i,s,a=e.pageUrlAllowlist,u=e.shouldTrackEventResolver,l=(i=(o=r==null?void 0:r.tagName)===null||o===void 0?void 0:o.toLowerCase)===null||i===void 0?void 0:i.call(o);if(!l)return!1;if(u)return u(n,r);if(!nD(window.location.href,a))return!1;var c=String(r==null?void 0:r.getAttribute("type"))||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}if(t){var f=t.some(function(m){var g;return!!(!((g=r==null?void 0:r.matches)===null||g===void 0)&&g.call(r,m))});if(!f)return!1}switch(l){case"input":case"select":case"textarea":return n==="change"||n==="click";default:{var d=(s=window==null?void 0:window.getComputedStyle)===null||s===void 0?void 0:s.call(window,r);return d&&d.getPropertyValue("cursor")==="pointer"&&n==="click"?!0:n==="click"}}}},xx=function(e){if(e==null)return!1;if(typeof e=="string"){var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var n=/(^\d{3}-?\d{2}-?\d{4}$)/;if(n.test(e))return!1}return!0},tD=function(e){return!!e&&e.nodeType===3},Sx=function(e){var t,n,r,o=(n=(t=e==null?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||n===void 0?void 0:n.call(t),i=e instanceof HTMLElement?((r=e.getAttribute("contenteditable"))===null||r===void 0?void 0:r.toLowerCase())==="true":!1;return!eD.includes(o)&&!i},dh=function(e){var t="";return Sx(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(n){var r="";tD(n)?n.textContent&&(r=n.textContent):r=dh(n),t+=r.split(/(\s+)/).filter(xx).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},Ex=function(e,t){var n,r,o="";try{return o=GN(e,{className:function(c){return c!==Ed},maxNumberOfTries:1e3}),o}catch(c){if(t){var i=c;t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(i.toString()))}}var s=(r=(n=e==null?void 0:e.tagName)===null||n===void 0?void 0:n.toLowerCase)===null||r===void 0?void 0:r.call(n);s&&(o=s);var a=e.getAttribute("id"),u=e.getAttribute("class");if(a)o="#".concat(a);else if(u){var l=u.split(" ").filter(function(c){return c!==Ed}).join(".");l&&(o="".concat(o,".").concat(l))}return o},nD=function(e,t){return!t||!t.length?!0:t.some(function(n){return typeof n=="string"?e===n:e.match(n)})},rD=function(e,t){return e.getAttributeNames().reduce(function(n,r){if(r.startsWith(t)){var o=r.replace(t,""),i=e.getAttribute(r);o&&(n[o]=i||"")}return n},{})},oD=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},Tx=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return oD(r)||(t[n]=r),t},{})},Px=function(e){var t=e.parentElement;if(!t)return"";var n;try{n=t.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{n=null}if(n){var r=n.textContent||"";return xx(r)?r:""}return Px(t)},ph=function(e,t){return e?t.some(function(n){var r;return(r=e==null?void 0:e.matches)===null||r===void 0?void 0:r.call(e,n)})?e:ph(e==null?void 0:e.parentElement,t):null},iD=function(e,t){var n,r,o;if(!e)return{};var i=(o=(r=e==null?void 0:e.tagName)===null||r===void 0?void 0:r.toLowerCase)===null||o===void 0?void 0:o.call(r),s=Ex(e,t),a=(n={},n[B1]=i,n[$1]=dh(e),n[W1]=s,n[G1]=window.location.href.split("?")[0],n);return Tx(a)},sD=function(e){return new Promise(function(t,n){var r;try{var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.addEventListener("load",function(){t({status:!0})},{once:!0}),o.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),(r=document.head)===null||r===void 0||r.appendChild(o)}catch(i){n(i)}})};function aD(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var hh=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)},lD=function(){function e(t){var n=t===void 0?{}:t,r=n.origin,o=r===void 0?el:r,i=this;this.endpoint=el,this.requestCallbacks={},this.onSelect=function(s){i.notify({action:"element-selected",data:s})},this.onTrack=function(s,a){s==="selector-mode-changed"?i.notify({action:"track-selector-mode-changed",data:a}):s==="selector-moved"&&i.notify({action:"track-selector-moved",data:a})},this.endpoint=o}return e.prototype.notify=function(t){var n,r,o,i;(r=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,"Message sent: ",JSON.stringify(t)),(i=(o=window.opener)===null||o===void 0?void 0:o.postMessage)===null||i===void 0||i.call(o,t,this.endpoint)},e.prototype.sendRequest=function(t,n,r){var o=this;r===void 0&&(r={timeout:15e3});var i=aD(),s={id:i,action:t,args:n},a=new Promise(function(u,l){o.requestCallbacks[i]={resolve:u,reject:l},o.notify(s),(r==null?void 0:r.timeout)>0&&setTimeout(function(){l(new Error("".concat(t," timed out (id: ").concat(i,")"))),delete o.requestCallbacks[i]},r.timeout)});return a},e.prototype.handleResponse=function(t){var n;if(!this.requestCallbacks[t.id]){(n=this.logger)===null||n===void 0||n.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.setup=function(t){var n=this,r=t===void 0?{}:t,o=r.logger,i=r.endpoint,s=r.isElementSelectable,a=r.cssSelectorAllowlist,u=r.actionClickAllowlist;this.logger=o,i&&this.endpoint===el&&(this.endpoint=i);var l=null;window.addEventListener("message",function(c){var f,d,m,g,y;if((d=(f=n.logger)===null||f===void 0?void 0:f.debug)===null||d===void 0||d.call(f,"Message received: ",JSON.stringify(c)),n.endpoint===c.origin){var x=c==null?void 0:c.data,h=x==null?void 0:x.action;if(h)if("id"in x)(g=(m=n.logger)===null||m===void 0?void 0:m.debug)===null||g===void 0||g.call(m,"Received Response to previous request: ",JSON.stringify(c)),n.handleResponse(x);else if(h==="ping")n.notify({action:"pong"});else if(h==="initialize-visual-tagging-selector"){var p=x==null?void 0:x.data;sD(BM).then(function(){var v;l=(v=window==null?void 0:window.amplitudeVisualTaggingSelector)===null||v===void 0?void 0:v.call(window,{getEventTagProps:iD,isElementSelectable:function(b){return s?s((p==null?void 0:p.actionType)||"click",b):!0},onTrack:n.onTrack,onSelect:n.onSelect,visualHighlightClass:Ed,messenger:n,cssSelectorAllowlist:a,actionClickAllowlist:u}),n.notify({action:"selector-loaded"})}).catch(function(){var v;(v=n.logger)===null||v===void 0||v.warn("Failed to initialize visual tagging selector")})}else h==="close-visual-tagging-selector"&&((y=l==null?void 0:l.close)===null||y===void 0||y.call(l))}}),this.notify({action:"page-loaded"})},e}(),uD=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],cD=["type"],fD=["svg","path","g"],dD=["password","hidden"],pD=128,hD=1024;function mD(e){var t,n,r,o,i,s;if(e===null)return null;var a=String(e.tagName).toLowerCase(),u={tag:a},l=Array.from((o=(r=e.parentElement)===null||r===void 0?void 0:r.children)!==null&&o!==void 0?o:[]);l.length&&(u.index=l.indexOf(e),u.indexOfType=l.filter(function(b){return b.tagName===e.tagName}).indexOf(e));var c=(s=(i=e.previousElementSibling)===null||i===void 0?void 0:i.tagName)===null||s===void 0?void 0:s.toLowerCase();c&&(u.prevSib=String(c));var f=e.getAttribute("id");f&&(u.id=String(f));var d=Array.from(e.classList);d.length&&(u.classes=d);var m={},g=Array.from(e.attributes),y=g.filter(function(b){return!uD.includes(b.name)}),x=!Sx(e);if(!dD.includes(String(e.getAttribute("type")))&&!fD.includes(a))try{for(var h=Pr(y),p=h.next();!p.done;p=h.next()){var v=p.value;x&&!cD.includes(v.name)||(m[v.name]=String(v.value).substring(0,pD))}}catch(b){t={error:b}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return Object.keys(m).length&&(u.attrs=m),u}function vD(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&n.tagName!=="HTML";)t.push(n),n=n.parentElement;return t}var gD=function(e){var t=[];if(!e)return[];var n=vD(e);return t=yD(n.map(function(r){return mD(r)}),hD),t};function yD(e,t){for(var n=0,r=0;rt)return e.slice(0,r)}return e}function tl(e,t){t===void 0&&(t=!1);try{if(e==null)return t?"None":null;if(typeof e=="string")return t?(e=e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r"),e.includes('"')?"'".concat(e,"'"):e.includes("'")?'"'.concat(e.replace(/'/g,"\\'"),'"'):"'".concat(e,"'")):e;if(typeof e=="boolean")return e?"True":"False";if(Array.isArray(e)){var n=e.map(function(i){return tl(i,!0)});return"[".concat(n.join(", "),"]")}else if(typeof e=="object"){var r=Object.entries(e).filter(function(i){var s=an(i,1),a=s[0];return a!=null}).map(function(i){var s=an(i,2),a=s[0],u=s[1];return"".concat(String(tl(a,!0)),": ").concat(String(tl(u,!0)))}),o="{".concat(r.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return e.toString()}catch{return null}}var wD=5;function bD(e){var t=e.amplitude,n=e.allObservables,r=e.options,o=e.shouldTrackEvent,i=n.clickObservable,s=i.pipe($N(),br(function(c){var f=an(c,2),d=f[0],m=f[1],g=d.event.target!==m.event.target,y=Math.abs(m.event.screenX-d.event.screenX)<=20&&Math.abs(m.event.screenY-d.event.screenY)<=20;return g&&!y})),a=i.pipe(VN(r.debounceTime),bn(function(){return"timeout"})),u=mx(s,a),l=i.pipe(BN(0),br(hh),br(function(c){return o("click",c.closestTrackedAncestor)}),FN(u));return l.subscribe(function(c){var f,d,m=(c.length>=wD,Sd);try{for(var g=Pr(c),y=g.next();!y.done;y=g.next()){var x=y.value;t==null||t.track(m,x.targetElementProperties,{time:x.timestamp})}}catch(h){f={error:h}}finally{try{y&&!y.done&&(d=g.return)&&d.call(g)}finally{if(f)throw f.error}}})}function xD(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,o=e.shouldTrackEvent,i=n.changeObservable,s=i.pipe(br(hh),br(function(a){return o("change",a.closestTrackedAncestor)}));return s.subscribe(function(a){t==null||t.track(CM,r("change",a.closestTrackedAncestor))})}function SD(e){var t=e.amplitude,n=e.allObservables,r=e.options,o=e.getEventProperties,i=e.shouldTrackEvent,s=e.shouldTrackActionClick,a=n.clickObservable,u=n.mutationObservable,l=n.navigateObservable,c=a.pipe(br(function(g){return!i("click",g.closestTrackedAncestor)}),bn(function(g){var y=ph(g.event.target,r.actionClickAllowlist);return g.closestTrackedAncestor=y,g.closestTrackedAncestor!==null&&(g.targetElementProperties=o(g.type,g.closestTrackedAncestor)),g}),br(hh),br(function(g){return s("click",g.closestTrackedAncestor)})),f=[u];l&&f.push(l);var d=mx.apply(void 0,to([],an(f),!1)),m=c.pipe(WN(function(g){return d.pipe(vx(1),TN({first:500,with:function(){return uh}}),bn(function(){return g}))}));return m.subscribe(function(g){t==null||t.track(Sd,o("click",g.closestTrackedAncestor),{time:g.timestamp})})}var Fo;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"})(Fo||(Fo={}));function ED(e){return e.type==="click"||e.type==="change"}var TD=function(e){var t,n,r;e===void 0&&(e={});var o=e.dataAttributePrefix,i=o===void 0?MI:o,s=e.visualTaggingOptions,a=s===void 0?{enabled:!0,messenger:new lD}:s;e.cssSelectorAllowlist=(t=e.cssSelectorAllowlist)!==null&&t!==void 0?t:OI,e.actionClickAllowlist=(n=e.actionClickAllowlist)!==null&&n!==void 0?n:NI,e.debounceTime=(r=e.debounceTime)!==null&&r!==void 0?r:0;var u=PM,l="enrichment",c=[],f=void 0,d=function(){var p,v=os(document,"click",{capture:!0}).pipe(bn(function(k){return g(k,"click")})),b=os(document,"change",{capture:!0}).pipe(bn(function(k){return g(k,"change")})),E;window.navigation&&(E=os(window.navigation,"navigate").pipe(bn(function(k){return g(k,"navigate")})));var P=new Ft(function(k){var T=new MutationObserver(function(O){k.next(O)});return T.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return T.disconnect()}}).pipe(bn(function(k){return g(k,"mutation")}));return p={},p[Fo.ClickObservable]=v,p[Fo.ChangeObservable]=b,p[Fo.NavigateObservable]=E,p[Fo.MutationObservable]=P,p},m=function(p,v){var b,E,P,k=(P=(E=v==null?void 0:v.tagName)===null||E===void 0?void 0:E.toLowerCase)===null||P===void 0?void 0:P.call(E),T=typeof v.getBoundingClientRect=="function"?v.getBoundingClientRect():{left:null,top:null},O=v.getAttribute("aria-label"),D=rD(v,i),z=Px(v),F=Ex(v,f),K=(b={},b[kM]=v.getAttribute("id")||"",b[_M]=v.getAttribute("class"),b[AM]=gD(v),b[B1]=k,b[$1]=dh(v),b[IM]=T.left==null?null:Math.round(T.left),b[OM]=T.top==null?null:Math.round(T.top),b[MM]=O,b[NM]=D,b[W1]=F,b[DM]=z,b[G1]=window.location.href.split("?")[0],b[LM]=typeof document<"u"&&document.title||"",b[jM]=window.innerHeight,b[FM]=window.innerWidth,b);return k==="a"&&p==="click"&&v instanceof HTMLAnchorElement&&(K[RM]=v.href),Tx(K)},g=function(p,v){var b={event:p,timestamp:Date.now(),type:v};if(ED(b)&&b.event.target!==null){var E=ph(b.event.target,e.cssSelectorAllowlist);return E&&(b.closestTrackedAncestor=E,b.targetElementProperties=m(b.type,E)),b}return b},y=function(p,v){return zc(void 0,void 0,void 0,function(){var b,E,P,k,T,O,D,z,F,K;return rs(this,function(V){return f=p.loggerProvider,typeof document>"u"?[2]:(b=Gc(e,e.cssSelectorAllowlist),E=Gc(e,e.actionClickAllowlist),P=d(),k=bD({allObservables:P,options:e,amplitude:v,shouldTrackEvent:b}),c.push(k),T=xD({allObservables:P,getEventProperties:m,amplitude:v,shouldTrackEvent:b}),c.push(T),O=SD({allObservables:P,options:e,getEventProperties:m,amplitude:v,shouldTrackEvent:b,shouldTrackActionClick:E}),c.push(O),(F=p==null?void 0:p.loggerProvider)===null||F===void 0||F.log("".concat(u," has been successfully added.")),window.opener&&a.enabled&&(D=e.cssSelectorAllowlist,z=e.actionClickAllowlist,(K=a.messenger)===null||K===void 0||K.setup(ui(ui({logger:p==null?void 0:p.loggerProvider},(p==null?void 0:p.serverZone)&&{endpoint:zM[p.serverZone]}),{isElementSelectable:Gc(e,to(to([],an(D),!1),an(z),!1)),cssSelectorAllowlist:D,actionClickAllowlist:z}))),[2])})})},x=function(p){return zc(void 0,void 0,void 0,function(){return rs(this,function(v){return[2,p]})})},h=function(){return zc(void 0,void 0,void 0,function(){var p,v,b,E,P;return rs(this,function(k){try{for(p=Pr(c),v=p.next();!v.done;v=p.next())b=v.value,b.unsubscribe()}catch(T){E={error:T}}finally{try{v&&!v.done&&(P=p.return)&&P.call(p)}finally{if(E)throw E.error}}return[2]})})};return{name:u,type:l,setup:y,execute:x,teardown:h}},PD=function(e){bi(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,o){n===void 0&&(n="");var i,s;return arguments.length>2?(i=r,s=o):typeof r=="string"?(i=r,s=void 0):(i=r==null?void 0:r.userId,s=r),wt(this._init(Fe(Fe({},s),{userId:i,apiKey:n})))},t.prototype._init=function(n){var r,o,i;return de(this,void 0,void 0,function(){var s,a,u,l,c,f,d=this;return pe(this,function(m){switch(m.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,eM(n.apiKey,n,this)]);case 1:return s=m.sent(),n.fetchRemoteConfig?[4,TM(s)]:[3,4];case 2:return a=m.sent(),[4,a.generateJoinedConfig()];case 3:s=m.sent(),m.label=4;case 4:return[4,e.prototype._init.call(this,s)];case 5:return m.sent(),this.logBrowserOptions(s),L1(this.config.defaultTracking)?(u=DO(this.config),this.webAttribution=new mO(u,this.config),[4,this.webAttribution.init()]):[3,7];case 6:m.sent(),m.label=7;case 7:return l=Ul(),c=Number.isNaN(Number(l.ampSessionId))?void 0:Number(l.ampSessionId),this.setSessionId((i=(o=(r=n.sessionId)!==null&&r!==void 0?r:c)!==null&&o!==void 0?o:this.config.sessionId)!==null&&i!==void 0?i:Date.now()),f=_s(n.instanceName),f.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===II?[3,9]:[4,this.add(dM()).promise];case 8:m.sent(),m.label=9;case 9:return[4,this.add(new QI).promise];case 10:return m.sent(),[4,this.add(new VO).promise];case 11:return m.sent(),[4,this.add(new AO).promise];case 12:return m.sent(),fM(this.config),IO(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(cM()).promise]):[3,14];case 13:m.sent(),m.label=14;case 14:return OO(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(uM()).promise]):[3,16];case 15:m.sent(),m.label=16;case 16:return j1(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(iM(NO(this.config))).promise]):[3,18];case 17:m.sent(),m.label=18;case 18:return F1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(TD(MO(this.config))).promise]):[3,20];case 19:m.sent(),m.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return m.sent(),f.eventBridge.setEventReceiver(function(g){d.track(g.eventType,g.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.userId},t.prototype.setUserId=function(n){if(!this.config){this.q.push(this.setUserId.bind(this,n));return}this.config.loggerProvider.debug("function setUserId: ",n),(n!==this.config.userId||n===void 0)&&(this.config.userId=n,kO(n,this.config.instanceName))},t.prototype.getDeviceId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.deviceId},t.prototype.setDeviceId=function(n){if(!this.config){this.q.push(this.setDeviceId.bind(this,n));return}this.config.loggerProvider.debug("function setDeviceId: ",n),this.config.deviceId=n,_O(n,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId(wi()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.sessionId},t.prototype.setSessionId=function(n){var r,o=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,n)),wt(Promise.resolve());if(n===this.config.sessionId)return wt(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",n);var i=this.getSessionId(),s=this.config.lastEventTime,a=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1;this.config.sessionId=n,this.config.lastEventTime=void 0,this.config.pageCounter=0,Bg(this.config.defaultTracking)&&(i&&s&&o.push(this.track(Gg,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:i,time:s+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var u=this.trackCampaignEventIfNeeded(++a,o);return Bg(this.config.defaultTracking)&&o.push(this.track(Wg,void 0,{event_id:u?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,wt(Promise.all(o))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(n){if(!this.config){this.q.push(this.setTransport.bind(this,n));return}this.config.transportProvider=z1(n)},t.prototype.identify=function(n,r){if(Lc(n)){var o=n._q;n._q=[],n=Dc(new Vl,o)}return r!=null&&r.user_id&&this.setUserId(r.user_id),r!=null&&r.device_id&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,n,r)},t.prototype.groupIdentify=function(n,r,o,i){if(Lc(o)){var s=o._q;o._q=[],o=Dc(new Vl,s)}return e.prototype.groupIdentify.call(this,n,r,o,i)},t.prototype.revenue=function(n,r){if(Lc(n)){var o=n._q;n._q=[],n=Dc(new HI,o)}return e.prototype.revenue.call(this,n,r)},t.prototype.trackCampaignEventIfNeeded=function(n,r){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var o=this.webAttribution.generateCampaignEvent(n);return r?r.push(this.track(o).promise):this.track(o),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(n){return de(this,void 0,void 0,function(){var r,o,i;return pe(this,function(s){return r=Date.now(),o=D1(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),n.event_type!==Wg&&n.event_type!==Gg&&(!n.session_id||n.session_id===this.getSessionId())&&(o||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):o||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,n)]})})},t.prototype.logBrowserOptions=function(n){try{var r=Fe(Fe({},n),{apiKey:n.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(r))}catch(o){this.config.loggerProvider.error("Error logging browser config",o)}},t}(GI),CD=function(){var e=new PD;return{init:je(e.init.bind(e),"init",De(e),Le(e,["config"])),add:je(e.add.bind(e),"add",De(e),Le(e,["config.apiKey","timeline.plugins"])),remove:je(e.remove.bind(e),"remove",De(e),Le(e,["config.apiKey","timeline.plugins"])),track:je(e.track.bind(e),"track",De(e),Le(e,["config.apiKey","timeline.queue.length"])),logEvent:je(e.logEvent.bind(e),"logEvent",De(e),Le(e,["config.apiKey","timeline.queue.length"])),identify:je(e.identify.bind(e),"identify",De(e),Le(e,["config.apiKey","timeline.queue.length"])),groupIdentify:je(e.groupIdentify.bind(e),"groupIdentify",De(e),Le(e,["config.apiKey","timeline.queue.length"])),setGroup:je(e.setGroup.bind(e),"setGroup",De(e),Le(e,["config.apiKey","timeline.queue.length"])),revenue:je(e.revenue.bind(e),"revenue",De(e),Le(e,["config.apiKey","timeline.queue.length"])),flush:je(e.flush.bind(e),"flush",De(e),Le(e,["config.apiKey","timeline.queue.length"])),getUserId:je(e.getUserId.bind(e),"getUserId",De(e),Le(e,["config","config.userId"])),setUserId:je(e.setUserId.bind(e),"setUserId",De(e),Le(e,["config","config.userId"])),getDeviceId:je(e.getDeviceId.bind(e),"getDeviceId",De(e),Le(e,["config","config.deviceId"])),setDeviceId:je(e.setDeviceId.bind(e),"setDeviceId",De(e),Le(e,["config","config.deviceId"])),reset:je(e.reset.bind(e),"reset",De(e),Le(e,["config","config.userId","config.deviceId"])),getSessionId:je(e.getSessionId.bind(e),"getSessionId",De(e),Le(e,["config"])),setSessionId:je(e.setSessionId.bind(e),"setSessionId",De(e),Le(e,["config"])),extendSession:je(e.extendSession.bind(e),"extendSession",De(e),Le(e,["config"])),setOptOut:je(e.setOptOut.bind(e),"setOptOut",De(e),Le(e,["config"])),setTransport:je(e.setTransport.bind(e),"setTransport",De(e),Le(e,["config"]))}};const Cx=CD();var kD=Cx.init,_D=Cx.track;const At={hovered_on_person_icon:"hovered_on_person_icon",clicked_on_person_icon:"clicked_on_person_icon",clicked_on_left_navigation_route:"clicked_on_left_navigation_route",clicked_on_goto_top:"clicked_on_goto_top",opened_share_dialog:"opened_share_dialog",opened_direct_message_dropdown:"opened_direct_message_dropdown",clicked_direct_message_item:"clicked_direct_message_item",clicked_github_icon:"clicked_github_icon",clicked_on_share_item:"clicked_on_share_item",clicked_goto_next_section:"clicked_goto_next_section",clicked_goto_prev_section:"clicked_goto_prev_section",hovered_on_item:"hovered_on_item",clicked_on_item:"clicked_on_item"};class xt{static initialize(){this.isInitialized||(kD("50e81488cd17b72ddf984a542dd6d71d",{defaultTracking:{pageViews:!1,sessions:!0},autocapture:!0}),this.isInitialized=!0)}static getBrowserInfo(){const{userAgent:t}=navigator;return t}static getScreenResolution(){return`${window.screen.width}x${window.screen.height}`}static getCurrentPageUrl(){return window.location.href}static logEvent(t,n={}){this.initialize();const r=this.getBrowserInfo(),o=this.getScreenResolution(),i=this.getCurrentPageUrl(),s={...n,browserInfo:r,screenResolution:o,pageUrl:i};_D(t,s)}static trackCustomEvent(t,n){this.logEvent(t,n)}}Qn(xt,"isInitialized",!1);const AD=e=>{const[t,n]=w.useState(!1),r={stiffness:100,damping:5},o=ih(0),i=Eg(o,[-100,100],[-45,45]),s=Eg(o,[-100,100],[-50,50]),a=Cg(i,r),u=Cg(s,r);w.useEffect(()=>{t||o.set(0)},[t]);const l=f=>{const d=f.currentTarget.offsetWidth/2;o.set(f.nativeEvent.offsetX-d)},c=()=>{const f=Ek();xt.trackCustomEvent(At.clicked_on_person_icon,{link:f}),window.open(f??"","_blank")};return S.jsx(Vs,{className:"lg:w-1/3 xl:w-1/3 2xl:w-1/4 h-full p-0 m-0 lg:block hidden ",children:S.jsxs(du,{className:"p-0 m-0 flex flex-col h-full justify-between",children:[S.jsxs("div",{className:"flex flex-col w-full items-center p-10",children:[S.jsx("div",{className:"w-28 h-28 border-2 rounded-md my-8 p-2 relative",children:S.jsxs("div",{className:"w-full h-full cursor-pointer",onMouseEnter:()=>{n(!0),xt.trackCustomEvent(At.hovered_on_person_icon,{isHovered:t})},onMouseLeave:()=>{n(!1),xt.trackCustomEvent(At.hovered_on_person_icon,{isHovered:t})},onClick:c,onMouseMove:l,children:[S.jsx(T1,{children:t&&S.jsxs(S.Fragment,{children:[S.jsxs(vd.div,{initial:{opacity:0,y:20,scale:.6},animate:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:260,damping:10}},exit:{opacity:0,y:20,scale:.6},style:{translateX:u,rotate:a,whiteSpace:"nowrap"},className:"absolute -top-16 left-1/2 -translate-x-1/2 flex text-xs flex-col items-center justify-center rounded-md bg-black z-50 shadow-xl px-4 py-2",children:[S.jsx("div",{className:"absolute inset-x-10 z-30 w-[50%] -bottom-px bg-gradient-to-r from-transparent via-emerald-500 to-transparent h-px "}),S.jsx("div",{className:"absolute left-10 w-[70%] z-30 -bottom-px bg-gradient-to-r from-transparent via-sky-500 to-transparent h-1"}),S.jsx("p",{className:"font-semibold text-primary relative z-30 text-base",children:"Are you feeling lucky today?"}),S.jsx("p",{className:"text-primary text-sm text-center font-normal",children:"Click to feel even more lucky..."})]},"tooltip"),S.jsx(vd.span,{className:"absolute inset-0 h-full w-full block ring-4 ring-white bg-blue-500 bg-opacity-10 rounded cursor-pointer",layoutId:"hoverBackground",initial:{opacity:0},animate:{opacity:1,transition:{duration:.5}},exit:{opacity:0,transition:{duration:.5}}})]})}),S.jsx($k,{className:ie("w-full h-full ",t?"glowing-person-icon":"")})]})}),S.jsx("h1",{className:"text-xl font-extrabold tracking-normal ",children:Kt.initialInformation.name}),S.jsx("h1",{className:"text-sm font-extrabold tracking-normal mt-0.5",children:Kt.initialInformation.occupation})]}),S.jsx("div",{className:"flex flex-col w-full p-3 gap-y-2",children:Kt.routes.map(f=>{const d=()=>{Il(`section-${f.name.toLowerCase()}`),xt.trackCustomEvent(At.clicked_on_left_navigation_route,{name:f.name})};return S.jsx(wn,{variant:"outline",onClick:d,children:f.name},f.name)})})]})})};var RD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ue=RD.reduce((e,t)=>{const n=w.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?eo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function mh(e,t){e&&vi.flushSync(()=>e.dispatchEvent(t))}var ID="Separator",ry="horizontal",OD=["horizontal","vertical"],kx=w.forwardRef((e,t)=>{const{decorative:n,orientation:r=ry,...o}=e,i=MD(r)?r:ry,a=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return S.jsx(ue.div,{"data-orientation":i,...a,...o,ref:t})});kx.displayName=ID;function MD(e){return OD.includes(e)}var _x=kx;const Ax=w.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>S.jsx(_x,{ref:o,decorative:n,orientation:t,className:ie("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ax.displayName=_x.displayName;const ND=e=>{const t=()=>{const i=`section-${r().toLowerCase()}`;xt.trackCustomEvent(At.clicked_goto_prev_section,{section:i}),Il(i)},n=()=>{const i=`section-${o().toLowerCase()}`;xt.trackCustomEvent(At.clicked_goto_next_section,{section:i}),Il(i)},r=()=>Jf(Kt.routes,(e.index-1)%Kt.routes.length).name,o=()=>Jf(Kt.routes,(e.index+1)%Kt.routes.length).name;return S.jsxs("div",{className:"flex flex-col bg-primary-foreground mb-2 sticky top-0 z-10 ",children:[S.jsxs("div",{className:"flex flex-row items-center px-4 py-2 justify-between",children:[S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(Kk,{className:"mr-2 h-4 w-4"}),S.jsx("h1",{className:"text-lg uppercase font-extrabold tracking-wider",children:e.name})]}),S.jsxs("div",{className:"flex flex-row items-center lg:hidden",children:[S.jsx(wn,{variant:"ghost",size:"icon",onClick:t,title:`Goto ${r()} Section`,children:S.jsx(Gk,{className:"h-4 w-4"})}),S.jsx(wn,{variant:"ghost",size:"icon",onClick:n,title:`Goto ${o()} Section`,children:S.jsx(Hk,{className:"h-4 w-4"})})]})]}),S.jsx(Ax,{className:"w-full"})]})};var Rx={exports:{}};(()=>{var e={181:(o,i,s)=>{var a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,m=typeof self=="object"&&self&&self.Object===Object&&self,g=d||m||Function("return this")(),y=Object.prototype.toString,x=Math.max,h=Math.min,p=function(){return g.Date.now()};function v(E){var P=typeof E;return!!E&&(P=="object"||P=="function")}function b(E){if(typeof E=="number")return E;if(function(T){return typeof T=="symbol"||function(O){return!!O&&typeof O=="object"}(T)&&y.call(T)=="[object Symbol]"}(E))return NaN;if(v(E)){var P=typeof E.valueOf=="function"?E.valueOf():E;E=v(P)?P+"":P}if(typeof E!="string")return E===0?E:+E;E=E.replace(a,"");var k=l.test(E);return k||c.test(E)?f(E.slice(2),k?2:8):u.test(E)?NaN:+E}o.exports=function(E,P,k){var T,O,D,z,F,K,V=0,B=!1,$=!1,W=!0;if(typeof E!="function")throw new TypeError("Expected a function");function M(te){var J=T,ce=O;return T=O=void 0,V=te,z=E.apply(ce,J)}function R(te){var J=te-K;return K===void 0||J>=P||J<0||$&&te-V>=D}function N(){var te=p();if(R(te))return G(te);F=setTimeout(N,function(J){var ce=P-(J-K);return $?h(ce,D-(J-V)):ce}(te))}function G(te){return F=void 0,W&&T?M(te):(T=O=void 0,z)}function Y(){var te=p(),J=R(te);if(T=arguments,O=this,K=te,J){if(F===void 0)return function(ce){return V=ce,F=setTimeout(N,P),B?M(ce):z}(K);if($)return F=setTimeout(N,P),M(K)}return F===void 0&&(F=setTimeout(N,P)),z}return P=b(P)||0,v(k)&&(B=!!k.leading,D=($="maxWait"in k)?x(b(k.maxWait)||0,P):D,W="trailing"in k?!!k.trailing:W),Y.cancel=function(){F!==void 0&&clearTimeout(F),V=0,T=K=O=F=void 0},Y.flush=function(){return F===void 0?z:G(p())},Y}},858:(o,i,s)=>{var a="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,m=/^0o[0-7]+$/i,g=parseInt,y=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,x=typeof self=="object"&&self&&self.Object===Object&&self,h=y||x||Function("return this")(),p=Object.prototype.toString,v=Math.max,b=Math.min,E=function(){return h.Date.now()};function P(T){var O=typeof T;return!!T&&(O=="object"||O=="function")}function k(T){if(typeof T=="number")return T;if(function(z){return typeof z=="symbol"||function(F){return!!F&&typeof F=="object"}(z)&&p.call(z)==l}(T))return u;if(P(T)){var O=typeof T.valueOf=="function"?T.valueOf():T;T=P(O)?O+"":O}if(typeof T!="string")return T===0?T:+T;T=T.replace(c,"");var D=d.test(T);return D||m.test(T)?g(T.slice(2),D?2:8):f.test(T)?u:+T}o.exports=function(T,O,D){var z=!0,F=!0;if(typeof T!="function")throw new TypeError(a);return P(D)&&(z="leading"in D?!!D.leading:z,F="trailing"in D?!!D.trailing:F),function(K,V,B){var $,W,M,R,N,G,Y=0,te=!1,J=!1,ce=!0;if(typeof K!="function")throw new TypeError(a);function ve(We){var yt=$,Ne=W;return $=W=void 0,Y=We,R=K.apply(Ne,yt)}function Se(We){var yt=We-G;return G===void 0||yt>=V||yt<0||J&&We-Y>=M}function Qe(){var We=E();if(Se(We))return be(We);N=setTimeout(Qe,function(yt){var Ne=V-(yt-G);return J?b(Ne,M-(yt-Y)):Ne}(We))}function be(We){return N=void 0,ce&&$?ve(We):($=W=void 0,R)}function Ie(){var We=E(),yt=Se(We);if($=arguments,W=this,G=We,yt){if(N===void 0)return function(Ne){return Y=Ne,N=setTimeout(Qe,V),te?ve(Ne):R}(G);if(J)return N=setTimeout(Qe,V),ve(G)}return N===void 0&&(N=setTimeout(Qe,V)),R}return V=k(V)||0,P(B)&&(te=!!B.leading,M=(J="maxWait"in B)?v(k(B.maxWait)||0,V):M,ce="trailing"in B?!!B.trailing:ce),Ie.cancel=function(){N!==void 0&&clearTimeout(N),Y=0,$=G=W=N=void 0},Ie.flush=function(){return N===void 0?R:be(E())},Ie}(T,O,{leading:z,maxWait:O,trailing:F})}},694:(o,i,s)=>{var a=s(925);function u(){}function l(){}l.resetWarningCache=u,o.exports=function(){function c(m,g,y,x,h,p){if(p!==a){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}function f(){return c}c.isRequired=c;var d={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:u};return d.PropTypes=d,d}},556:(o,i,s)=>{o.exports=s(694)()},925:o=>{o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var s in i)n.o(i,s)&&!n.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:i[s]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>$h,LazyLoadImage:()=>cT,trackWindowScroll:()=>te});const o=w;var i=n.n(o),s=n(556);function a(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function u(I){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(I)}function l(I,C){var A=Object.keys(I);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(I);C&&(j=j.filter(function(_){return Object.getOwnPropertyDescriptor(I,_).enumerable})),A.push.apply(A,j)}return A}function c(I,C,A){return(C=d(C))in I?Object.defineProperty(I,C,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[C]=A,I}function f(I,C){for(var A=0;A0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,L=this.placeholder.getBoundingClientRect(),Z=this.placeholder.style,q=parseInt(Z.getPropertyValue("margin-left"),10)||0,ne=parseInt(Z.getPropertyValue("margin-top"),10)||0;return{bottom:_.y+L.bottom+ne,left:_.x+L.left+q,right:_.x+L.right+q,top:_.y+L.top+ne}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var _=this.props,L=_.scrollPosition,Z=_.threshold,q=this.getPlaceholderBoundingBox(L),ne=L.y+window.innerHeight,le=L.x,Ee=L.x+window.innerWidth,Te=L.y;return Te-Z<=q.bottom&&ne+Z>=q.top&&le-Z<=q.right&&Ee+Z>=q.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var _=this,L=this.props,Z=L.className,q=L.height,ne=L.placeholder,le=L.style,Ee=L.width;if(ne&&typeof ne.type!="function")return i().cloneElement(ne,{ref:function(fe){return _.placeholder=fe}});var Te=function(fe){for(var Ze=1;Ze"u"?0:window.scrollX||window.pageXOffset},Y=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const te=function(I){var C=function(A){function j(Z){var q;if(function(le,Ee){if(!(le instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,j),(q=$(this,j,[Z])).useIntersectionObserver=Z.useIntersectionObserver&&a(),q.useIntersectionObserver)return W(q);var ne=q.onChangeScroll.bind(q);return Z.delayMethod==="debounce"?q.delayedScroll=P()(ne,Z.delayTime):Z.delayMethod==="throttle"&&(q.delayedScroll=T()(ne,Z.delayTime)),q.state={scrollPosition:{x:G(),y:Y()}},q.baseComponentRef=i().createRef(),q}return function(Z,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(q&&q.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),q&&N(Z,q)}(j,A),_=j,L=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||D(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=D(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:G(),y:Y()}})}},{key:"render",value:function(){var Z=this.props,q=(Z.delayMethod,Z.delayTime,function(le,Ee){if(le==null)return{};var Te,fe,Ze=function(Je,qu){if(Je==null)return{};var qh={};for(var ea in Je)if({}.hasOwnProperty.call(Je,ea)){if(qu.indexOf(ea)>=0)continue;qh[ea]=Je[ea]}return qh}(le,Ee);if(Object.getOwnPropertySymbols){var Ge=Object.getOwnPropertySymbols(le);for(fe=0;fe=0||{}.propertyIsEnumerable.call(le,Te)&&(Ze[Te]=le[Te])}return Ze}(Z,F)),ne=this.useIntersectionObserver?null:this.state.scrollPosition;return i().createElement(I,K({forwardRef:this.baseComponentRef,scrollPosition:ne},q))}}],L&&V(_.prototype,L),Object.defineProperty(_,"prototype",{writable:!1}),_;var _,L}(i().Component);return C.propTypes={delayMethod:s.PropTypes.oneOf(["debounce","throttle"]),delayTime:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool},C.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},C};function J(I){return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},J(I)}function ce(I,C){for(var A=0;A=0&&Number.isFinite(ne.y)&&ne.y>=0),L}return function(_,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(L&&L.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),L&&Xn(_,L)}(C,I),A=C,(j=[{key:"componentDidUpdate",value:function(_,L){L.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var _=this.props,L=_.className,Z=_.delayMethod,q=_.delayTime,ne=_.height,le=_.placeholder,Ee=_.scrollPosition,Te=_.style,fe=_.threshold,Ze=_.useIntersectionObserver,Ge=_.width;return this.isScrollTracked||Ze&&a()?i().createElement(b,{className:L,height:ne,onVisible:this.onVisible,placeholder:le,scrollPosition:Ee,style:Te,threshold:fe,useIntersectionObserver:Ze,width:Ge}):i().createElement(yt,{className:L,delayMethod:Z,delayTime:q,height:ne,onVisible:this.onVisible,placeholder:le,style:Te,threshold:fe,width:Ge})}}])&&Xs(A.prototype,j),Object.defineProperty(A,"prototype",{writable:!1}),A;var A,j}(i().Component);Gu.propTypes={afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool},Gu.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const $h=Gu;function co(I){return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},co(I)}var sT=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Wh(I,C){var A=Object.keys(I);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(I);C&&(j=j.filter(function(_){return Object.getOwnPropertyDescriptor(I,_).enumerable})),A.push.apply(A,j)}return A}function Gh(I){for(var C=1;C=0)continue;Ge[Je]=fe[Je]}return Ge}(Z,q);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(Z);for(le=0;le=0||{}.propertyIsEnumerable.call(Z,ne)&&(Ee[ne]=Z[ne])}return Ee}(_,sT));return i().createElement("img",Zs({},L,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var _=this.props,L=_.beforeLoad,Z=_.className,q=_.delayMethod,ne=_.delayTime,le=_.height,Ee=_.placeholder,Te=_.scrollPosition,fe=_.style,Ze=_.threshold,Ge=_.useIntersectionObserver,Je=_.visibleByDefault,qu=_.width;return i().createElement($h,{beforeLoad:L,className:Z,delayMethod:q,delayTime:ne,height:le,placeholder:Ee,scrollPosition:Te,style:fe,threshold:Ze,useIntersectionObserver:Ge,visibleByDefault:Je,width:qu},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(_){var L=this.props,Z=L.effect,q=L.height,ne=L.placeholderSrc,le=L.width,Ee=L.wrapperClassName,Te=L.wrapperProps,fe=this.state.loaded,Ze=fe?" lazy-load-image-loaded":"",Ge=fe||!ne?{}:{backgroundImage:"url(".concat(ne,")"),backgroundSize:"100% 100%"};return i().createElement("span",Zs({className:Ee+" lazy-load-image-background "+Z+Ze,style:Gh(Gh({},Ge),{},{color:"transparent",display:"inline-block",height:q,width:le})},Te),_)}},{key:"render",value:function(){var _=this.props,L=_.effect,Z=_.placeholderSrc,q=_.visibleByDefault,ne=_.wrapperClassName,le=_.wrapperProps,Ee=this.getLazyLoadImage();return(L||Z)&&!q||ne||le?this.getWrappedLazyLoadImage(Ee):Ee}}],j&&lT(A.prototype,j),Object.defineProperty(A,"prototype",{writable:!1}),A;var A,j}(i().Component);Ku.propTypes={onLoad:s.PropTypes.func,afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,delayMethod:s.PropTypes.string,delayTime:s.PropTypes.number,effect:s.PropTypes.string,placeholderSrc:s.PropTypes.string,threshold:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool,wrapperClassName:s.PropTypes.string,wrapperProps:s.PropTypes.object},Ku.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const cT=Ku})(),Rx.exports=r})();var DD=Rx.exports;const LD=e=>{const{url:t,isHovering:n,title:r,description:o}=e;return t&&Es(e.url??"")?S.jsx(wn,{variant:"ghost",size:"icon",className:"hover:bg-transparent",children:S.jsx(zk,{className:ie("h-4 w-4",n?"glowing-icon animate-bounce":"")})}):S.jsx(S.Fragment,{})},jD=e=>{const t=e.item;let[n,r]=w.useState(null);const[o,i]=w.useState(!1),s=()=>{if(t.link){const u=t.link;xt.trackCustomEvent(At.clicked_on_item,{link:u}),window.open(u,"_blank")}},a=t.title===n;return S.jsxs("div",{className:ie("w-full sm:w-full md:w-1/2 xl:w-1/2 2xl:w-1/3 p-1 relative group block",Es(e.item.link??"")?"cursor-pointer":"cursor-not-allowed"),onMouseEnter:()=>r(t.title),onMouseLeave:()=>r(null),onClick:s,children:[S.jsx(T1,{children:a&&S.jsx(vd.span,{className:ie("absolute inset-0 h-full w-full block bg-opacity-15 rounded-xl",Es(e.item.link??"")?"bg-green-500":"bg-red-500"),layoutId:"hoverBackground",initial:{opacity:0},animate:{opacity:1,transition:{duration:.15}},exit:{opacity:0,transition:{duration:.15,delay:.2}}})}),S.jsxs(Vs,{className:"h-full flex flex-row w-full p-4 items-center",children:[S.jsx("div",{className:"w-8 h-8 flex min-w-8 min-h-8",children:o?S.jsx(Uk,{className:"w-full h-full"}):S.jsx(DD.LazyLoadImage,{className:"mr-4 object-contain",src:t.logo,onError:()=>i(!0)})}),S.jsxs("div",{className:"flex flex-col ml-3 w-full gap-y-1",children:[S.jsx(Kw,{children:t.title}),S.jsx(qw,{children:t.desc})]}),S.jsx(LD,{url:t.link,isHovering:a,title:t.title,description:t.desc??""})]})]})},FD=e=>S.jsx("div",{className:"flex flex-col pb-4 w-full",children:e.items.map(t=>{const n=()=>t.shouldNotSort?t.arr:t.arr.sort((r,o)=>r.title.localeCompare(o.title));return S.jsxs("div",{className:"flex flex-col",children:[S.jsxs("div",{className:"flex flex-row items-center px-4 py-3",children:[S.jsx(Dk,{className:"mr-2 h-4 w-4"}),S.jsx("h1",{className:"text-sm font-bold tracking-wider",children:t.text})]}),S.jsx("div",{className:"flex flex-row flex-wrap pl-2 pr-2 w-full",children:n().map(r=>S.jsx(jD,{item:r,title:t.text}))})]})})}),VD=({index:e,item:t})=>S.jsxs("div",{className:"flex flex-col w-full",id:`section-${t.name.toLowerCase()}`,children:[S.jsx(ND,{name:t.name,index:e}),S.jsx(FD,{items:t.items})]});function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function UD(e,t){const n=w.createContext(t);function r(i){const{children:s,...a}=i,u=w.useMemo(()=>a,Object.values(a));return S.jsx(n.Provider,{value:u,children:s})}function o(i){const s=w.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function so(e,t=[]){let n=[];function r(i,s){const a=w.createContext(s),u=n.length;n=[...n,s];function l(f){const{scope:d,children:m,...g}=f,y=(d==null?void 0:d[e][u])||a,x=w.useMemo(()=>g,Object.values(g));return S.jsx(y.Provider,{value:x,children:m})}function c(f,d){const m=(d==null?void 0:d[e][u])||a,g=w.useContext(m);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,c]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(a){const u=(a==null?void 0:a[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,zD(o,...t)]}function zD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:u,scopeName:l})=>{const f=u(i)[`__scope${l}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pt(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ou({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=BD({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=pt(n),u=w.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else o(l)},[i,e,o,a]);return[s,u]}function BD({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),i=pt(t);return w.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function vh(e){const t=e+"CollectionProvider",[n,r]=so(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:y}=m,x=An.useRef(null),h=An.useRef(new Map).current;return S.jsx(o,{scope:g,itemMap:h,collectionRef:x,children:y})};s.displayName=t;const a=e+"CollectionSlot",u=An.forwardRef((m,g)=>{const{scope:y,children:x}=m,h=i(a,y),p=$e(g,h.collectionRef);return S.jsx(eo,{ref:p,children:x})});u.displayName=a;const l=e+"CollectionItemSlot",c="data-radix-collection-item",f=An.forwardRef((m,g)=>{const{scope:y,children:x,...h}=m,p=An.useRef(null),v=$e(g,p),b=i(l,y);return An.useEffect(()=>(b.itemMap.set(p,{ref:p,...h}),()=>void b.itemMap.delete(p))),S.jsx(eo,{[c]:"",ref:v,children:x})});f.displayName=l;function d(m){const g=i(e+"CollectionConsumer",m);return An.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const h=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((b,E)=>h.indexOf(b.ref.current)-h.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},d,r]}var $D=w.createContext(void 0);function Ix(e){const t=w.useContext($D);return e||t||"ltr"}function WD(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var GD="DismissableLayer",Ad="dismissableLayer.update",HD="dismissableLayer.pointerDownOutside",KD="dismissableLayer.focusOutside",oy,Ox=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mu=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,l=w.useContext(Ox),[c,f]=w.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=w.useState({}),g=$e(t,k=>f(k)),y=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=c?y.indexOf(c):-1,v=l.layersWithOutsidePointerEventsDisabled.size>0,b=p>=h,E=YD(k=>{const T=k.target,O=[...l.branches].some(D=>D.contains(T));!b||O||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},d),P=XD(k=>{const T=k.target;[...l.branches].some(D=>D.contains(T))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},d);return WD(k=>{p===l.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},d),w.useEffect(()=>{if(c)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(oy=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),iy(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=oy)}},[c,d,n,l]),w.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),iy())},[c,l]),w.useEffect(()=>{const k=()=>m({});return document.addEventListener(Ad,k),()=>document.removeEventListener(Ad,k)},[]),S.jsx(ue.div,{...u,ref:g,style:{pointerEvents:v?b?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Mu.displayName=GD;var qD="DismissableLayerBranch",Mx=w.forwardRef((e,t)=>{const n=w.useContext(Ox),r=w.useRef(null),o=$e(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(ue.div,{...e,ref:o})});Mx.displayName=qD;function YD(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){Nx(HD,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XD(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&Nx(KD,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function iy(){const e=new CustomEvent(Ad);document.dispatchEvent(e)}function Nx(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mh(o,i):o.dispatchEvent(i)}var QD=Mu,ZD=Mx,Hc=0;function Dx(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sy()),document.body.insertAdjacentElement("beforeend",e[1]??sy()),Hc++,()=>{Hc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hc--}},[])}function sy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Kc="focusScope.autoFocusOnMount",qc="focusScope.autoFocusOnUnmount",ay={bubbles:!1,cancelable:!0},JD="FocusScope",gh=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=w.useState(null),l=pt(o),c=pt(i),f=w.useRef(null),d=$e(t,y=>u(y)),m=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let y=function(v){if(m.paused||!a)return;const b=v.target;a.contains(b)?f.current=b:nr(f.current,{select:!0})},x=function(v){if(m.paused||!a)return;const b=v.relatedTarget;b!==null&&(a.contains(b)||nr(f.current,{select:!0}))},h=function(v){if(document.activeElement===document.body)for(const E of v)E.removedNodes.length>0&&nr(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const p=new MutationObserver(h);return a&&p.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),p.disconnect()}}},[r,a,m.paused]),w.useEffect(()=>{if(a){uy.add(m);const y=document.activeElement;if(!a.contains(y)){const h=new CustomEvent(Kc,ay);a.addEventListener(Kc,l),a.dispatchEvent(h),h.defaultPrevented||(eL(iL(Lx(a)),{select:!0}),document.activeElement===y&&nr(a))}return()=>{a.removeEventListener(Kc,l),setTimeout(()=>{const h=new CustomEvent(qc,ay);a.addEventListener(qc,c),a.dispatchEvent(h),h.defaultPrevented||nr(y??document.body,{select:!0}),a.removeEventListener(qc,c),uy.remove(m)},0)}}},[a,l,c,m]);const g=w.useCallback(y=>{if(!n&&!r||m.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(x&&h){const p=y.currentTarget,[v,b]=tL(p);v&&b?!y.shiftKey&&h===b?(y.preventDefault(),n&&nr(v,{select:!0})):y.shiftKey&&h===v&&(y.preventDefault(),n&&nr(b,{select:!0})):h===p&&y.preventDefault()}},[n,r,m.paused]);return S.jsx(ue.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});gh.displayName=JD;function eL(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(nr(r,{select:t}),document.activeElement!==n)return}function tL(e){const t=Lx(e),n=ly(t,e),r=ly(t.reverse(),e);return[n,r]}function Lx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ly(e,t){for(const n of e)if(!nL(n,{upTo:t}))return n}function nL(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rL(e){return e instanceof HTMLInputElement&&"select"in e}function nr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rL(e)&&t&&e.select()}}var uy=oL();function oL(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cy(e,t),e.unshift(t)},remove(t){var n;e=cy(e,t),(n=e[0])==null||n.resume()}}}function cy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function iL(e){return e.filter(t=>t.tagName!=="A")}var Cr=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},sL=AT.useId||(()=>{}),aL=0;function qo(e){const[t,n]=w.useState(sL());return Cr(()=>{n(r=>r??String(aL++))},[e]),t?`radix-${t}`:""}const lL=["top","right","bottom","left"],xn=Math.min,_t=Math.max,$l=Math.round,Ra=Math.floor,kr=e=>({x:e,y:e}),uL={left:"right",right:"left",bottom:"top",top:"bottom"},cL={start:"end",end:"start"};function Rd(e,t,n){return _t(e,xn(t,n))}function Gn(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Si(e){return e.split("-")[1]}function yh(e){return e==="x"?"y":"x"}function wh(e){return e==="y"?"height":"width"}function _r(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function bh(e){return yh(_r(e))}function fL(e,t,n){n===void 0&&(n=!1);const r=Si(e),o=bh(e),i=wh(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wl(s)),[s,Wl(s)]}function dL(e){const t=Wl(e);return[Id(e),t,Id(t)]}function Id(e){return e.replace(/start|end/g,t=>cL[t])}function pL(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function hL(e,t,n,r){const o=Si(e);let i=pL(Hn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Id)))),i}function Wl(e){return e.replace(/left|right|bottom|top/g,t=>uL[t])}function mL(e){return{top:0,right:0,bottom:0,left:0,...e}}function jx(e){return typeof e!="number"?mL(e):{top:e,right:e,bottom:e,left:e}}function Gl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function fy(e,t,n){let{reference:r,floating:o}=e;const i=_r(t),s=bh(t),a=wh(s),u=Hn(t),l=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:c,y:r.y-o.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Si(t)){case"start":m[s]-=d*(n&&l?-1:1);break;case"end":m[s]+=d*(n&&l?-1:1);break}return m}const vL=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=fy(l,r,u),d=r,m={},g=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:l,padding:c=0}=Gn(e,t)||{};if(l==null)return{};const f=jx(c),d={x:n,y:r},m=bh(o),g=wh(m),y=await s.getDimensions(l),x=m==="y",h=x?"top":"left",p=x?"bottom":"right",v=x?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[m]-d[m]-i.floating[g],E=d[m]-i.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let k=P?P[v]:0;(!k||!await(s.isElement==null?void 0:s.isElement(P)))&&(k=a.floating[v]||i.floating[g]);const T=b/2-E/2,O=k/2-y[g]/2-1,D=xn(f[h],O),z=xn(f[p],O),F=D,K=k-y[g]-z,V=k/2-y[g]/2+T,B=Rd(F,V,K),$=!u.arrow&&Si(o)!=null&&V!==B&&i.reference[g]/2-(VV<=0)){var z,F;const V=(((z=i.flip)==null?void 0:z.index)||0)+1,B=k[V];if(B)return{data:{index:V,overflows:D},reset:{placement:B}};let $=(F=D.filter(W=>W.overflows[0]<=0).sort((W,M)=>W.overflows[1]-M.overflows[1])[0])==null?void 0:F.placement;if(!$)switch(m){case"bestFit":{var K;const W=(K=D.filter(M=>{if(P){const R=_r(M.placement);return R===p||R==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(R=>R>0).reduce((R,N)=>R+N,0)]).sort((M,R)=>M[1]-R[1])[0])==null?void 0:K[0];W&&($=W);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function dy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function py(e){return lL.some(t=>e[t]>=0)}const wL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gn(e,t);switch(r){case"referenceHidden":{const i=await Rs(t,{...o,elementContext:"reference"}),s=dy(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:py(s)}}}case"escaped":{const i=await Rs(t,{...o,altBoundary:!0}),s=dy(i,n.floating);return{data:{escapedOffsets:s,escaped:py(s)}}}default:return{}}}}};async function bL(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Hn(n),a=Si(n),u=_r(n)==="y",l=["left","top"].includes(s)?-1:1,c=i&&u?-1:1,f=Gn(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),u?{x:m*c,y:d*l}:{x:d*l,y:m*c}}const xL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await bL(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},SL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:h,y:p}=x;return{x:h,y:p}}},...u}=Gn(e,t),l={x:n,y:r},c=await Rs(t,u),f=_r(Hn(o)),d=yh(f);let m=l[d],g=l[f];if(i){const x=d==="y"?"top":"left",h=d==="y"?"bottom":"right",p=m+c[x],v=m-c[h];m=Rd(p,m,v)}if(s){const x=f==="y"?"top":"left",h=f==="y"?"bottom":"right",p=g+c[x],v=g-c[h];g=Rd(p,g,v)}const y=a.fn({...t,[d]:m,[f]:g});return{...y,data:{x:y.x-n,y:y.y-r}}}}},EL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=Gn(e,t),c={x:n,y:r},f=_r(o),d=yh(f);let m=c[d],g=c[f];const y=Gn(a,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const v=d==="y"?"height":"width",b=i.reference[d]-i.floating[v]+x.mainAxis,E=i.reference[d]+i.reference[v]-x.mainAxis;mE&&(m=E)}if(l){var h,p;const v=d==="y"?"width":"height",b=["top","left"].includes(Hn(o)),E=i.reference[f]-i.floating[v]+(b&&((h=s.offset)==null?void 0:h[f])||0)+(b?0:x.crossAxis),P=i.reference[f]+i.reference[v]+(b?0:((p=s.offset)==null?void 0:p[f])||0)-(b?x.crossAxis:0);gP&&(g=P)}return{[d]:m,[f]:g}}}},TL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Gn(e,t),u=await Rs(t,a),l=Hn(n),c=Si(n),f=_r(n)==="y",{width:d,height:m}=r.floating;let g,y;l==="top"||l==="bottom"?(g=l,y=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=l,g=c==="end"?"top":"bottom");const x=m-u.top-u.bottom,h=d-u.left-u.right,p=xn(m-u[g],x),v=xn(d-u[y],h),b=!t.middlewareData.shift;let E=p,P=v;if(f?P=c||b?xn(v,h):h:E=c||b?xn(p,x):x,b&&!c){const T=_t(u.left,0),O=_t(u.right,0),D=_t(u.top,0),z=_t(u.bottom,0);f?P=d-2*(T!==0||O!==0?T+O:_t(u.left,u.right)):E=m-2*(D!==0||z!==0?D+z:_t(u.top,u.bottom))}await s({...t,availableWidth:P,availableHeight:E});const k=await o.getDimensions(i.floating);return d!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function Ei(e){return Fx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qn(e){var t;return(t=(Fx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fx(e){return e instanceof Node||e instanceof Ot(e).Node}function un(e){return e instanceof Element||e instanceof Ot(e).Element}function kn(e){return e instanceof HTMLElement||e instanceof Ot(e).HTMLElement}function hy(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function Ks(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function PL(e){return["table","td","th"].includes(Ei(e))}function Nu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xh(e){const t=Sh(),n=un(e)?cn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function CL(e){let t=Ar(e);for(;kn(t)&&!di(t);){if(xh(t))return t;if(Nu(t))return null;t=Ar(t)}return null}function Sh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function di(e){return["html","body","#document"].includes(Ei(e))}function cn(e){return Ot(e).getComputedStyle(e)}function Du(e){return un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ar(e){if(Ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hy(e)&&e.host||qn(e);return hy(t)?t.host:t}function Vx(e){const t=Ar(e);return di(t)?e.ownerDocument?e.ownerDocument.body:e.body:kn(t)&&Ks(t)?t:Vx(t)}function Is(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vx(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ot(o);if(i){const a=Od(s);return t.concat(s,s.visualViewport||[],Ks(o)?o:[],a&&n?Is(a):[])}return t.concat(o,Is(o,[],n))}function Od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ux(e){const t=cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=$l(n)!==i||$l(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Eh(e){return un(e)?e:e.contextElement}function Yo(e){const t=Eh(e);if(!kn(t))return kr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ux(t);let s=(i?$l(n.width):n.width)/r,a=(i?$l(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const kL=kr(0);function zx(e){const t=Ot(e);return!Sh()||!t.visualViewport?kL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _L(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function no(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Eh(e);let s=kr(1);t&&(r?un(r)&&(s=Yo(r)):s=Yo(e));const a=_L(i,n,r)?zx(i):kr(0);let u=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=Ot(i),m=r&&un(r)?Ot(r):r;let g=d,y=Od(g);for(;y&&r&&m!==g;){const x=Yo(y),h=y.getBoundingClientRect(),p=cn(y),v=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*x.x,b=h.top+(y.clientTop+parseFloat(p.paddingTop))*x.y;u*=x.x,l*=x.y,c*=x.x,f*=x.y,u+=v,l+=b,g=Ot(y),y=Od(g)}}return Gl({width:c,height:f,x:u,y:l})}function AL(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=qn(r),a=t?Nu(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},l=kr(1);const c=kr(0),f=kn(r);if((f||!f&&!i)&&((Ei(r)!=="body"||Ks(s))&&(u=Du(r)),kn(r))){const d=no(r);l=Yo(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+c.x,y:n.y*l.y-u.scrollTop*l.y+c.y}}function RL(e){return Array.from(e.getClientRects())}function Bx(e){return no(qn(e)).left+Du(e).scrollLeft}function IL(e){const t=qn(e),n=Du(e),r=e.ownerDocument.body,o=_t(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=_t(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Bx(e);const a=-n.scrollTop;return cn(r).direction==="rtl"&&(s+=_t(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function OL(e,t){const n=Ot(e),r=qn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const l=Sh();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:a,y:u}}function ML(e,t){const n=no(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=kn(e)?Yo(e):kr(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:s,height:a,x:u,y:l}}function my(e,t,n){let r;if(t==="viewport")r=OL(e,n);else if(t==="document")r=IL(qn(e));else if(un(t))r=ML(t,n);else{const o=zx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Gl(r)}function $x(e,t){const n=Ar(e);return n===t||!un(n)||di(n)?!1:cn(n).position==="fixed"||$x(n,t)}function NL(e,t){const n=t.get(e);if(n)return n;let r=Is(e,[],!1).filter(a=>un(a)&&Ei(a)!=="body"),o=null;const i=cn(e).position==="fixed";let s=i?Ar(e):e;for(;un(s)&&!di(s);){const a=cn(s),u=xh(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ks(s)&&!u&&$x(e,s))?r=r.filter(c=>c!==s):o=a,s=Ar(s)}return t.set(e,r),r}function DL(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Nu(t)?[]:NL(t,this._c):[].concat(n),r],a=s[0],u=s.reduce((l,c)=>{const f=my(t,c,o);return l.top=_t(f.top,l.top),l.right=xn(f.right,l.right),l.bottom=xn(f.bottom,l.bottom),l.left=_t(f.left,l.left),l},my(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function LL(e){const{width:t,height:n}=Ux(e);return{width:t,height:n}}function jL(e,t,n){const r=kn(t),o=qn(t),i=n==="fixed",s=no(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=kr(0);if(r||!r&&!i)if((Ei(t)!=="body"||Ks(o))&&(a=Du(t)),r){const f=no(t,!0,i,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else o&&(u.x=Bx(o));const l=s.left+a.scrollLeft-u.x,c=s.top+a.scrollTop-u.y;return{x:l,y:c,width:s.width,height:s.height}}function Yc(e){return cn(e).position==="static"}function vy(e,t){return!kn(e)||cn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Wx(e,t){const n=Ot(e);if(Nu(e))return n;if(!kn(e)){let o=Ar(e);for(;o&&!di(o);){if(un(o)&&!Yc(o))return o;o=Ar(o)}return n}let r=vy(e,t);for(;r&&PL(r)&&Yc(r);)r=vy(r,t);return r&&di(r)&&Yc(r)&&!xh(r)?n:r||CL(e)||n}const FL=async function(e){const t=this.getOffsetParent||Wx,n=this.getDimensions,r=await n(e.floating);return{reference:jL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function VL(e){return cn(e).direction==="rtl"}const UL={convertOffsetParentRelativeRectToViewportRelativeRect:AL,getDocumentElement:qn,getClippingRect:DL,getOffsetParent:Wx,getElementRects:FL,getClientRects:RL,getDimensions:LL,getScale:Yo,isElement:un,isRTL:VL};function zL(e,t){let n=null,r;const o=qn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const{left:l,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const m=Ra(c),g=Ra(o.clientWidth-(l+f)),y=Ra(o.clientHeight-(c+d)),x=Ra(l),p={rootMargin:-m+"px "+-g+"px "+-y+"px "+-x+"px",threshold:_t(0,xn(1,u))||1};let v=!0;function b(E){const P=E[0].intersectionRatio;if(P!==u){if(!v)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(b,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,p)}n.observe(e)}return s(!0),i}function BL(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Eh(e),c=o||i?[...l?Is(l):[],...Is(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const f=l&&a?zL(l,n):null;let d=-1,m=null;s&&(m=new ResizeObserver(h=>{let[p]=h;p&&p.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let g,y=u?no(e):null;u&&x();function x(){const h=no(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&n(),y=h,g=requestAnimationFrame(x)}return n(),()=>{var h;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(h=m)==null||h.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const $L=xL,WL=SL,GL=yL,HL=TL,KL=wL,gy=gL,qL=EL,YL=(e,t,n)=>{const r=new Map,o={platform:UL,...n},i={...o.platform,_c:r};return vL(e,t,{...o,platform:i})};var nl=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Hl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Hl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Gx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yy(e,t){const n=Gx(e);return Math.round(t*n)/n}function wy(e){const t=w.useRef(e);return nl(()=>{t.current=e}),t}function XL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[c,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=w.useState(r);Hl(d,r)||m(r);const[g,y]=w.useState(null),[x,h]=w.useState(null),p=w.useCallback(W=>{W!==P.current&&(P.current=W,y(W))},[]),v=w.useCallback(W=>{W!==k.current&&(k.current=W,h(W))},[]),b=i||g,E=s||x,P=w.useRef(null),k=w.useRef(null),T=w.useRef(c),O=u!=null,D=wy(u),z=wy(o),F=w.useCallback(()=>{if(!P.current||!k.current)return;const W={placement:t,strategy:n,middleware:d};z.current&&(W.platform=z.current),YL(P.current,k.current,W).then(M=>{const R={...M,isPositioned:!0};K.current&&!Hl(T.current,R)&&(T.current=R,vi.flushSync(()=>{f(R)}))})},[d,t,n,z]);nl(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(W=>({...W,isPositioned:!1})))},[l]);const K=w.useRef(!1);nl(()=>(K.current=!0,()=>{K.current=!1}),[]),nl(()=>{if(b&&(P.current=b),E&&(k.current=E),b&&E){if(D.current)return D.current(b,E,F);F()}},[b,E,F,D,O]);const V=w.useMemo(()=>({reference:P,floating:k,setReference:p,setFloating:v}),[p,v]),B=w.useMemo(()=>({reference:b,floating:E}),[b,E]),$=w.useMemo(()=>{const W={position:n,left:0,top:0};if(!B.floating)return W;const M=yy(B.floating,c.x),R=yy(B.floating,c.y);return a?{...W,transform:"translate("+M+"px, "+R+"px)",...Gx(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:R}},[n,a,B.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:F,refs:V,elements:B,floatingStyles:$}),[c,F,V,B,$])}const QL=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?gy({element:r.current,padding:o}).fn(n):{}:r?gy({element:r,padding:o}).fn(n):{}}}},ZL=(e,t)=>({...$L(e),options:[e,t]}),JL=(e,t)=>({...WL(e),options:[e,t]}),ej=(e,t)=>({...qL(e),options:[e,t]}),tj=(e,t)=>({...GL(e),options:[e,t]}),nj=(e,t)=>({...HL(e),options:[e,t]}),rj=(e,t)=>({...KL(e),options:[e,t]}),oj=(e,t)=>({...QL(e),options:[e,t]});var ij="Arrow",Hx=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(ue.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hx.displayName=ij;var sj=Hx;function aj(e){const[t,n]=w.useState(void 0);return Cr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Th="Popper",[Kx,qx]=so(Th),[lj,Yx]=Kx(Th),Xx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=w.useState(null);return S.jsx(lj,{scope:t,anchor:r,onAnchorChange:o,children:n})};Xx.displayName=Th;var Qx="PopperAnchor",Zx=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Yx(Qx,n),s=w.useRef(null),a=$e(t,s);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:S.jsx(ue.div,{...o,ref:a})});Zx.displayName=Qx;var Ph="PopperContent",[uj,cj]=Kx(Ph),Jx=w.forwardRef((e,t)=>{var Se,Qe,be,Ie,We,yt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:g,...y}=e,x=Yx(Ph,n),[h,p]=w.useState(null),v=$e(t,Ne=>p(Ne)),[b,E]=w.useState(null),P=aj(b),k=(P==null?void 0:P.width)??0,T=(P==null?void 0:P.height)??0,O=r+(i!=="center"?"-"+i:""),D=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(l)?l:[l],F=z.length>0,K={padding:D,boundary:z.filter(dj),altBoundary:F},{refs:V,floatingStyles:B,placement:$,isPositioned:W,middlewareData:M}=XL({strategy:"fixed",placement:O,whileElementsMounted:(...Ne)=>BL(...Ne,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[ZL({mainAxis:o+T,alignmentAxis:s}),u&&JL({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ej():void 0,...K}),u&&tj({...K}),nj({...K,apply:({elements:Ne,rects:Xs,availableWidth:$u,availableHeight:Wu})=>{const{width:Qs,height:uo}=Xs.reference,Xn=Ne.floating.style;Xn.setProperty("--radix-popper-available-width",`${$u}px`),Xn.setProperty("--radix-popper-available-height",`${Wu}px`),Xn.setProperty("--radix-popper-anchor-width",`${Qs}px`),Xn.setProperty("--radix-popper-anchor-height",`${uo}px`)}}),b&&oj({element:b,padding:a}),pj({arrowWidth:k,arrowHeight:T}),d&&rj({strategy:"referenceHidden",...K})]}),[R,N]=nS($),G=pt(g);Cr(()=>{W&&(G==null||G())},[W,G]);const Y=(Se=M.arrow)==null?void 0:Se.x,te=(Qe=M.arrow)==null?void 0:Qe.y,J=((be=M.arrow)==null?void 0:be.centerOffset)!==0,[ce,ve]=w.useState();return Cr(()=>{h&&ve(window.getComputedStyle(h).zIndex)},[h]),S.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:W?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(Ie=M.transformOrigin)==null?void 0:Ie.x,(We=M.transformOrigin)==null?void 0:We.y].join(" "),...((yt=M.hide)==null?void 0:yt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(uj,{scope:n,placedSide:R,onArrowChange:E,arrowX:Y,arrowY:te,shouldHideArrow:J,children:S.jsx(ue.div,{"data-side":R,"data-align":N,...y,ref:v,style:{...y.style,animation:W?void 0:"none"}})})})});Jx.displayName=Ph;var eS="PopperArrow",fj={top:"bottom",right:"left",bottom:"top",left:"right"},tS=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=cj(eS,r),s=fj[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(sj,{...o,ref:n,style:{...o.style,display:"block"}})})});tS.displayName=eS;function dj(e){return e!==null}var pj=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,c]=nS(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((h=o.arrow)==null?void 0:h.x)??0)+a/2,m=(((p=o.arrow)==null?void 0:p.y)??0)+u/2;let g="",y="";return l==="bottom"?(g=s?f:`${d}px`,y=`${-u}px`):l==="top"?(g=s?f:`${d}px`,y=`${r.floating.height+u}px`):l==="right"?(g=`${-u}px`,y=s?f:`${m}px`):l==="left"&&(g=`${r.floating.width+u}px`,y=s?f:`${m}px`),{data:{x:g,y}}}});function nS(e){const[t,n="center"]=e.split("-");return[t,n]}var hj=Xx,mj=Zx,vj=Jx,gj=tS,yj="Portal",Lu=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=w.useState(!1);Cr(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?UC.createPortal(S.jsx(ue.div,{...r,ref:t}),s):null});Lu.displayName=yj;function wj(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Yn=e=>{const{present:t,children:n}=e,r=bj(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=$e(r.ref,xj(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};Yn.displayName="Presence";function bj(e){const[t,n]=w.useState(),r=w.useRef({}),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[a,u]=wj(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const l=Ia(r.current);i.current=a==="mounted"?l:"none"},[a]),Cr(()=>{const l=r.current,c=o.current;if(c!==e){const d=i.current,m=Ia(l);e?u("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&d!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Cr(()=>{if(t){const l=f=>{const m=Ia(r.current).includes(f.animationName);f.target===t&&m&&vi.flushSync(()=>u("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=Ia(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Ia(e){return(e==null?void 0:e.animationName)||"none"}function xj(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xc="rovingFocusGroup.onEntryFocus",Sj={bubbles:!1,cancelable:!0},ju="RovingFocusGroup",[Md,rS,Ej]=vh(ju),[Tj,oS]=so(ju,[Ej]),[Pj,Cj]=Tj(ju),iS=w.forwardRef((e,t)=>S.jsx(Md.Provider,{scope:e.__scopeRovingFocusGroup,children:S.jsx(Md.Slot,{scope:e.__scopeRovingFocusGroup,children:S.jsx(kj,{...e,ref:t})})}));iS.displayName=ju;var kj=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...f}=e,d=w.useRef(null),m=$e(t,d),g=Ix(i),[y=null,x]=Ou({prop:s,defaultProp:a,onChange:u}),[h,p]=w.useState(!1),v=pt(l),b=rS(n),E=w.useRef(!1),[P,k]=w.useState(0);return w.useEffect(()=>{const T=d.current;if(T)return T.addEventListener(Xc,v),()=>T.removeEventListener(Xc,v)},[v]),S.jsx(Pj,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:y,onItemFocus:w.useCallback(T=>x(T),[x]),onItemShiftTab:w.useCallback(()=>p(!0),[]),onFocusableItemAdd:w.useCallback(()=>k(T=>T+1),[]),onFocusableItemRemove:w.useCallback(()=>k(T=>T-1),[]),children:S.jsx(ue.div,{tabIndex:h||P===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{E.current=!0}),onFocus:Q(e.onFocus,T=>{const O=!E.current;if(T.target===T.currentTarget&&O&&!h){const D=new CustomEvent(Xc,Sj);if(T.currentTarget.dispatchEvent(D),!D.defaultPrevented){const z=b().filter($=>$.focusable),F=z.find($=>$.active),K=z.find($=>$.id===y),B=[F,K,...z].filter(Boolean).map($=>$.ref.current);lS(B,c)}}E.current=!1}),onBlur:Q(e.onBlur,()=>p(!1))})})}),sS="RovingFocusGroupItem",aS=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=qo(),u=i||a,l=Cj(sS,n),c=l.currentTabStopId===u,f=rS(n),{onFocusableItemAdd:d,onFocusableItemRemove:m}=l;return w.useEffect(()=>{if(r)return d(),()=>m()},[r,d,m]),S.jsx(Md.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:S.jsx(ue.span,{tabIndex:c?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Q(e.onMouseDown,g=>{r?l.onItemFocus(u):g.preventDefault()}),onFocus:Q(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Rj(g,l.orientation,l.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let h=f().filter(p=>p.focusable).map(p=>p.ref.current);if(y==="last")h.reverse();else if(y==="prev"||y==="next"){y==="prev"&&h.reverse();const p=h.indexOf(g.currentTarget);h=l.loop?Ij(h,p+1):h.slice(p+1)}setTimeout(()=>lS(h))}})})})});aS.displayName=sS;var _j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Aj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Rj(e,t,n){const r=Aj(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _j[r]}function lS(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ij(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Oj=iS,Mj=aS,Nj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ho=new WeakMap,Oa=new WeakMap,Ma={},Qc=0,uS=function(e){return e&&(e.host||uS(e.parentNode))},Dj=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Lj=function(e,t,n,r){var o=Dj(t,Array.isArray(e)?e:[e]);Ma[n]||(Ma[n]=new WeakMap);var i=Ma[n],s=[],a=new Set,u=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var c=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var m=d.getAttribute(r),g=m!==null&&m!=="false",y=(ho.get(d)||0)+1,x=(i.get(d)||0)+1;ho.set(d,y),i.set(d,x),s.push(d),y===1&&g&&Oa.set(d,!0),x===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",d,h)}})};return c(t),a.clear(),Qc++,function(){s.forEach(function(f){var d=ho.get(f)-1,m=i.get(f)-1;ho.set(f,d),i.set(f,m),d||(Oa.has(f)||f.removeAttribute(r),Oa.delete(f)),m||f.removeAttribute(n)}),Qc--,Qc||(ho=new WeakMap,ho=new WeakMap,Oa=new WeakMap,Ma={})}},cS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Nj(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Lj(r,o,n,"aria-hidden")):function(){return null}},rl="right-scroll-bar-position",ol="width-before-scroll-bar",jj="with-scroll-bars-hidden",Fj="--removed-body-scroll-bar-size";function Zc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vj(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Uj=typeof window<"u"?w.useLayoutEffect:w.useEffect,by=new WeakMap;function zj(e,t){var n=Vj(null,function(r){return e.forEach(function(o){return Zc(o,r)})});return Uj(function(){var r=by.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Zc(a,null)}),i.forEach(function(a){o.has(a)||Zc(a,s)})}by.set(n,e)},[e]),n}function Bj(e){return e}function $j(e,t){t===void 0&&(t=Bj);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var c=s;s=[],c.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(c){s.push(c),l()},filter:function(c){return s=s.filter(c),n}}}};return o}function Wj(e){e===void 0&&(e={});var t=$j(null);return t.options=yn({async:!0,ssr:!1},e),t}var fS=function(e){var t=e.sideCar,n=H1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,yn({},n))};fS.isSideCarExport=!0;function Gj(e,t){return e.useMedium(t),fS}var dS=Wj(),Jc=function(){},Fu=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:Jc,onWheelCapture:Jc,onTouchMoveCapture:Jc}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,x=e.as,h=x===void 0?"div":x,p=e.gapMode,v=H1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=d,E=zj([n,t]),P=yn(yn({},v),o);return w.createElement(w.Fragment,null,c&&w.createElement(b,{sideCar:dS,removeScrollBar:l,shards:f,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:p}),s?w.cloneElement(w.Children.only(a),yn(yn({},P),{ref:E})):w.createElement(h,yn({},P,{className:u,ref:E}),a))});Fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fu.classNames={fullWidth:ol,zeroRight:rl};var Hj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hj();return t&&e.setAttribute("nonce",t),e}function qj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xj=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kj())&&(qj(t,n),Yj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qj=function(){var e=Xj();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pS=function(){var e=Qj(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Zj={left:0,top:0,right:0,gap:0},ef=function(e){return parseInt(e||"",10)||0},Jj=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ef(n),ef(r),ef(o)]},e3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Zj;var t=Jj(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},t3=pS(),Xo="data-scroll-locked",n3=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(jj,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; @@ -181,8 +181,8 @@ Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-de `)},xy=function(){var e=parseInt(document.body.getAttribute(Xo)||"0",10);return isFinite(e)?e:0},r3=function(){w.useEffect(function(){return document.body.setAttribute(Xo,(xy()+1).toString()),function(){var e=xy()-1;e<=0?document.body.removeAttribute(Xo):document.body.setAttribute(Xo,e.toString())}},[])},o3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;r3();var i=w.useMemo(function(){return e3(o)},[o]);return w.createElement(t3,{styles:n3(i,!t,o,n?"":"!important")})},Nd=!1;if(typeof window<"u")try{var Na=Object.defineProperty({},"passive",{get:function(){return Nd=!0,!0}});window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{Nd=!1}var mo=Nd?{passive:!1}:!1,i3=function(e){return e.tagName==="TEXTAREA"},hS=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!i3(e)&&n[t]==="visible")},s3=function(e){return hS(e,"overflowY")},a3=function(e){return hS(e,"overflowX")},Sy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=mS(e,r);if(o){var i=vS(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},l3=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},u3=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},mS=function(e,t){return e==="v"?s3(t):a3(t)},vS=function(e,t){return e==="v"?l3(t):u3(t)},c3=function(e,t){return e==="h"&&t==="rtl"?-1:1},f3=function(e,t,n,r,o){var i=c3(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,u=t.contains(a),l=!1,c=s>0,f=0,d=0;do{var m=vS(e,a),g=m[0],y=m[1],x=m[2],h=y-x-i*g;(g||h)&&mS(e,a)&&(f+=h,d+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(c&&(Math.abs(f)<1||!o)||!c&&(Math.abs(d)<1||!o))&&(l=!0),l},Da=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ey=function(e){return[e.deltaX,e.deltaY]},Ty=function(e){return e&&"current"in e?e.current:e},d3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},p3=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},h3=0,vo=[];function m3(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),o=w.useState(h3++)[0],i=w.useState(pS)[0],s=w.useRef(e);w.useEffect(function(){s.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=fi([e.lockRef.current],(e.shards||[]).map(Ty),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=w.useCallback(function(y,x){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var h=Da(y),p=n.current,v="deltaX"in y?y.deltaX:p[0]-h[0],b="deltaY"in y?y.deltaY:p[1]-h[1],E,C=y.target,k=Math.abs(v)>Math.abs(b)?"h":"v";if("touches"in y&&k==="h"&&C.type==="range")return!1;var T=Sy(k,C);if(!T)return!0;if(T?E=k:(E=k==="v"?"h":"v",T=Sy(k,C)),!T)return!1;if(!r.current&&"changedTouches"in y&&(v||b)&&(r.current=E),!E)return!0;var O=r.current||E;return f3(O,x,y,O==="h"?v:b,!0)},[]),u=w.useCallback(function(y){var x=y;if(!(!vo.length||vo[vo.length-1]!==i)){var h="deltaY"in x?Ey(x):Da(x),p=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&d3(E.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var v=(s.current.shards||[]).map(Ty).filter(Boolean).filter(function(E){return E.contains(x.target)}),b=v.length>0?a(x,v[0]):!s.current.noIsolation;b&&x.cancelable&&x.preventDefault()}}},[]),l=w.useCallback(function(y,x,h,p){var v={name:y,delta:x,target:h,should:p,shadowParent:v3(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(b){return b!==v})},1)},[]),c=w.useCallback(function(y){n.current=Da(y),r.current=void 0},[]),f=w.useCallback(function(y){l(y.type,Ey(y),y.target,a(y,e.lockRef.current))},[]),d=w.useCallback(function(y){l(y.type,Da(y),y.target,a(y,e.lockRef.current))},[]);w.useEffect(function(){return vo.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",u,mo),document.addEventListener("touchmove",u,mo),document.addEventListener("touchstart",c,mo),function(){vo=vo.filter(function(y){return y!==i}),document.removeEventListener("wheel",u,mo),document.removeEventListener("touchmove",u,mo),document.removeEventListener("touchstart",c,mo)}},[]);var m=e.removeScrollBar,g=e.inert;return w.createElement(w.Fragment,null,g?w.createElement(i,{styles:p3(o)}):null,m?w.createElement(o3,{gapMode:e.gapMode}):null)}function v3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const g3=Gj(dS,m3);var Ph=w.forwardRef(function(e,t){return w.createElement(Fu,yn({},e,{ref:t,sideCar:g3}))});Ph.classNames=Fu.classNames;var Dd=["Enter"," "],y3=["ArrowDown","PageUp","Home"],gS=["ArrowUp","PageDown","End"],w3=[...y3,...gS],b3={ltr:[...Dd,"ArrowRight"],rtl:[...Dd,"ArrowLeft"]},x3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qs="Menu",[Os,S3,E3]=vh(qs),[ao,yS]=so(qs,[E3,qx,oS]),Vu=qx(),wS=oS(),[T3,lo]=ao(qs),[C3,Ys]=ao(qs),bS=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=Vu(t),[u,l]=w.useState(null),c=w.useRef(!1),f=ht(i),d=Ix(o);return w.useEffect(()=>{const m=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),S.jsx(hj,{...a,children:S.jsx(T3,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:l,children:S.jsx(C3,{scope:t,onClose:w.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:s,children:r})})})};bS.displayName=qs;var P3="MenuAnchor",kh=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vu(n);return S.jsx(mj,{...o,...r,ref:t})});kh.displayName=P3;var _h="MenuPortal",[k3,xS]=ao(_h,{forceMount:void 0}),SS=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=lo(_h,t);return S.jsx(k3,{scope:t,forceMount:n,children:S.jsx(Yn,{present:n||i.open,children:S.jsx(Lu,{asChild:!0,container:o,children:r})})})};SS.displayName=_h;var Yt="MenuContent",[_3,Ah]=ao(Yt),ES=w.forwardRef((e,t)=>{const n=xS(Yt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=lo(Yt,e.__scopeMenu),s=Ys(Yt,e.__scopeMenu);return S.jsx(Os.Provider,{scope:e.__scopeMenu,children:S.jsx(Yn,{present:r||i.open,children:S.jsx(Os.Slot,{scope:e.__scopeMenu,children:s.modal?S.jsx(A3,{...o,ref:t}):S.jsx(R3,{...o,ref:t})})})})}),A3=w.forwardRef((e,t)=>{const n=lo(Yt,e.__scopeMenu),r=w.useRef(null),o=$e(t,r);return w.useEffect(()=>{const i=r.current;if(i)return cS(i)},[]),S.jsx(Rh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),R3=w.forwardRef((e,t)=>{const n=lo(Yt,e.__scopeMenu);return S.jsx(Rh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Rh=w.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:m,disableOutsideScroll:g,...y}=e,x=lo(Yt,n),h=Ys(Yt,n),p=Vu(n),v=wS(n),b=S3(n),[E,C]=w.useState(null),k=w.useRef(null),T=$e(t,k,x.onContentChange),O=w.useRef(0),D=w.useRef(""),z=w.useRef(0),F=w.useRef(null),K=w.useRef("right"),V=w.useRef(0),B=g?Ph:w.Fragment,$=g?{as:eo,allowPinchZoom:!0}:void 0,W=R=>{var Se,Qe;const N=D.current+R,G=b().filter(be=>!be.disabled),Y=document.activeElement,te=(Se=G.find(be=>be.ref.current===Y))==null?void 0:Se.textValue,J=G.map(be=>be.textValue),ce=B3(J,N,te),ve=(Qe=G.find(be=>be.textValue===ce))==null?void 0:Qe.ref.current;(function be(Ie){D.current=Ie,window.clearTimeout(O.current),Ie!==""&&(O.current=window.setTimeout(()=>be(""),1e3))})(N),ve&&setTimeout(()=>ve.focus())};w.useEffect(()=>()=>window.clearTimeout(O.current),[]),Dx();const M=w.useCallback(R=>{var G,Y;return K.current===((G=F.current)==null?void 0:G.side)&&W3(R,(Y=F.current)==null?void 0:Y.area)},[]);return S.jsx(_3,{scope:n,searchRef:D,onItemEnter:w.useCallback(R=>{M(R)&&R.preventDefault()},[M]),onItemLeave:w.useCallback(R=>{var N;M(R)||((N=k.current)==null||N.focus(),C(null))},[M]),onTriggerLeave:w.useCallback(R=>{M(R)&&R.preventDefault()},[M]),pointerGraceTimerRef:z,onPointerGraceIntentChange:w.useCallback(R=>{F.current=R},[]),children:S.jsx(B,{...$,children:S.jsx(gh,{asChild:!0,trapped:o,onMountAutoFocus:Q(i,R=>{var N;R.preventDefault(),(N=k.current)==null||N.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:S.jsx(Mu,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:m,children:S.jsx(Oj,{asChild:!0,...v,dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:C,onEntryFocus:Q(u,R=>{h.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:S.jsx(vj,{role:"menu","aria-orientation":"vertical","data-state":VS(x.open),"data-radix-menu-content":"",dir:h.dir,...p,...y,ref:T,style:{outline:"none",...y.style},onKeyDown:Q(y.onKeyDown,R=>{const G=R.target.closest("[data-radix-menu-content]")===R.currentTarget,Y=R.ctrlKey||R.altKey||R.metaKey,te=R.key.length===1;G&&(R.key==="Tab"&&R.preventDefault(),!Y&&te&&W(R.key));const J=k.current;if(R.target!==J||!w3.includes(R.key))return;R.preventDefault();const ve=b().filter(Se=>!Se.disabled).map(Se=>Se.ref.current);gS.includes(R.key)&&ve.reverse(),U3(ve)}),onBlur:Q(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(O.current),D.current="")}),onPointerMove:Q(e.onPointerMove,Ms(R=>{const N=R.target,G=V.current!==R.clientX;if(R.currentTarget.contains(N)&&G){const Y=R.clientX>V.current?"right":"left";K.current=Y,V.current=R.clientX}}))})})})})})})});ES.displayName=Yt;var I3="MenuGroup",Ih=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return S.jsx(ue.div,{role:"group",...r,ref:t})});Ih.displayName=I3;var O3="MenuLabel",TS=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return S.jsx(ue.div,{...r,ref:t})});TS.displayName=O3;var Kl="MenuItem",Cy="menu.itemSelect",Uu=w.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=w.useRef(null),s=Ys(Kl,e.__scopeMenu),a=Ah(Kl,e.__scopeMenu),u=$e(t,i),l=w.useRef(!1),c=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(Cy,{bubbles:!0,cancelable:!0});f.addEventListener(Cy,m=>r==null?void 0:r(m),{once:!0}),mh(f,d),d.defaultPrevented?l.current=!1:s.onClose()}};return S.jsx(CS,{...o,ref:u,disabled:n,onClick:Q(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),l.current=!0},onPointerUp:Q(e.onPointerUp,f=>{var d;l.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:Q(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||Dd.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Uu.displayName=Kl;var CS=w.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=Ah(Kl,n),a=wS(n),u=w.useRef(null),l=$e(t,u),[c,f]=w.useState(!1),[d,m]=w.useState("");return w.useEffect(()=>{const g=u.current;g&&m((g.textContent??"").trim())},[i.children]),S.jsx(Os.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:S.jsx(Mj,{asChild:!0,...a,focusable:!r,children:S.jsx(ue.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:l,onPointerMove:Q(e.onPointerMove,Ms(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Q(e.onPointerLeave,Ms(g=>s.onItemLeave(g))),onFocus:Q(e.onFocus,()=>f(!0)),onBlur:Q(e.onBlur,()=>f(!1))})})})}),M3="MenuCheckboxItem",PS=w.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return S.jsx(IS,{scope:e.__scopeMenu,checked:n,children:S.jsx(Uu,{role:"menuitemcheckbox","aria-checked":ql(n)?"mixed":n,...o,ref:t,"data-state":Mh(n),onSelect:Q(o.onSelect,()=>r==null?void 0:r(ql(n)?!0:!n),{checkForDefaultPrevented:!1})})})});PS.displayName=M3;var kS="MenuRadioGroup",[N3,D3]=ao(kS,{value:void 0,onValueChange:()=>{}}),_S=w.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=ht(r);return S.jsx(N3,{scope:e.__scopeMenu,value:n,onValueChange:i,children:S.jsx(Ih,{...o,ref:t})})});_S.displayName=kS;var AS="MenuRadioItem",RS=w.forwardRef((e,t)=>{const{value:n,...r}=e,o=D3(AS,e.__scopeMenu),i=n===o.value;return S.jsx(IS,{scope:e.__scopeMenu,checked:i,children:S.jsx(Uu,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Mh(i),onSelect:Q(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});RS.displayName=AS;var Oh="MenuItemIndicator",[IS,L3]=ao(Oh,{checked:!1}),OS=w.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=L3(Oh,n);return S.jsx(Yn,{present:r||ql(i.checked)||i.checked===!0,children:S.jsx(ue.span,{...o,ref:t,"data-state":Mh(i.checked)})})});OS.displayName=Oh;var j3="MenuSeparator",MS=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return S.jsx(ue.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});MS.displayName=j3;var F3="MenuArrow",NS=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vu(n);return S.jsx(gj,{...o,...r,ref:t})});NS.displayName=F3;var V3="MenuSub",[RF,DS]=ao(V3),Bi="MenuSubTrigger",LS=w.forwardRef((e,t)=>{const n=lo(Bi,e.__scopeMenu),r=Ys(Bi,e.__scopeMenu),o=DS(Bi,e.__scopeMenu),i=Ah(Bi,e.__scopeMenu),s=w.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=i,l={__scopeMenu:e.__scopeMenu},c=w.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return w.useEffect(()=>c,[c]),w.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),u(null)}},[a,u]),S.jsx(kh,{asChild:!0,...l,children:S.jsx(CS,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":VS(n.open),...e,ref:pu(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Q(e.onPointerMove,Ms(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:Q(e.onPointerLeave,Ms(f=>{var m,g;c();const d=(m=n.content)==null?void 0:m.getBoundingClientRect();if(d){const y=(g=n.content)==null?void 0:g.dataset.side,x=y==="right",h=x?-5:5,p=d[x?"left":"right"],v=d[x?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+h,y:f.clientY},{x:p,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x:p,y:d.bottom}],side:y}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Q(e.onKeyDown,f=>{var m;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||b3[r.dir].includes(f.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),f.preventDefault())})})})});LS.displayName=Bi;var jS="MenuSubContent",FS=w.forwardRef((e,t)=>{const n=xS(Yt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=lo(Yt,e.__scopeMenu),s=Ys(Yt,e.__scopeMenu),a=DS(jS,e.__scopeMenu),u=w.useRef(null),l=$e(t,u);return S.jsx(Os.Provider,{scope:e.__scopeMenu,children:S.jsx(Yn,{present:r||i.open,children:S.jsx(Os.Slot,{scope:e.__scopeMenu,children:S.jsx(Rh,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var f;s.isUsingKeyboardRef.current&&((f=u.current)==null||f.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:Q(e.onFocusOutside,c=>{c.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Q(e.onEscapeKeyDown,c=>{s.onClose(),c.preventDefault()}),onKeyDown:Q(e.onKeyDown,c=>{var m;const f=c.currentTarget.contains(c.target),d=x3[s.dir].includes(c.key);f&&d&&(i.onOpenChange(!1),(m=a.trigger)==null||m.focus(),c.preventDefault())})})})})})});FS.displayName=jS;function VS(e){return e?"open":"closed"}function ql(e){return e==="indeterminate"}function Mh(e){return ql(e)?"indeterminate":e?"checked":"unchecked"}function U3(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function z3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function B3(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=z3(e,Math.max(i,0));o.length===1&&(s=s.filter(l=>l!==n));const u=s.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function $3(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=c>r&&n<(l-a)*(r-u)/(c-u)+a&&(o=!o)}return o}function W3(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return $3(n,t)}function Ms(e){return t=>t.pointerType==="mouse"?e(t):void 0}var G3=bS,H3=kh,K3=SS,q3=ES,Y3=Ih,X3=TS,Q3=Uu,Z3=PS,J3=_S,e4=RS,t4=OS,n4=MS,r4=NS,o4=LS,i4=FS,Nh="DropdownMenu",[s4,IF]=so(Nh,[yS]),yt=yS(),[a4,US]=s4(Nh),zS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,u=yt(t),l=w.useRef(null),[c=!1,f]=Ou({prop:o,defaultProp:i,onChange:s});return S.jsx(a4,{scope:t,triggerId:qo(),triggerRef:l,contentId:qo(),open:c,onOpenChange:f,onOpenToggle:w.useCallback(()=>f(d=>!d),[f]),modal:a,children:S.jsx(G3,{...u,open:c,onOpenChange:f,dir:r,modal:a,children:n})})};zS.displayName=Nh;var BS="DropdownMenuTrigger",$S=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=US(BS,n),s=yt(n);return S.jsx(H3,{asChild:!0,...s,children:S.jsx(ue.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:pu(t,i.triggerRef),onPointerDown:Q(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:Q(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});$S.displayName=BS;var l4="DropdownMenuPortal",WS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=yt(t);return S.jsx(K3,{...r,...n})};WS.displayName=l4;var GS="DropdownMenuContent",HS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=US(GS,n),i=yt(n),s=w.useRef(!1);return S.jsx(q3,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:Q(e.onCloseAutoFocus,a=>{var u;s.current||(u=o.triggerRef.current)==null||u.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Q(e.onInteractOutside,a=>{const u=a.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,c=u.button===2||l;(!o.modal||c)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});HS.displayName=GS;var u4="DropdownMenuGroup",c4=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(Y3,{...o,...r,ref:t})});c4.displayName=u4;var f4="DropdownMenuLabel",KS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(X3,{...o,...r,ref:t})});KS.displayName=f4;var d4="DropdownMenuItem",qS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(Q3,{...o,...r,ref:t})});qS.displayName=d4;var p4="DropdownMenuCheckboxItem",YS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(Z3,{...o,...r,ref:t})});YS.displayName=p4;var h4="DropdownMenuRadioGroup",m4=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(J3,{...o,...r,ref:t})});m4.displayName=h4;var v4="DropdownMenuRadioItem",XS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(e4,{...o,...r,ref:t})});XS.displayName=v4;var g4="DropdownMenuItemIndicator",QS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(t4,{...o,...r,ref:t})});QS.displayName=g4;var y4="DropdownMenuSeparator",ZS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(n4,{...o,...r,ref:t})});ZS.displayName=y4;var w4="DropdownMenuArrow",b4=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(r4,{...o,...r,ref:t})});b4.displayName=w4;var x4="DropdownMenuSubTrigger",JS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(o4,{...o,...r,ref:t})});JS.displayName=x4;var S4="DropdownMenuSubContent",eE=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return S.jsx(i4,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eE.displayName=S4;var E4=zS,T4=$S,C4=WS,tE=HS,nE=KS,rE=qS,oE=YS,iE=XS,sE=QS,aE=ZS,lE=JS,uE=eE;const P4=E4,k4=T4,_4=w.forwardRef(({className:e,inset:t,children:n,...r},o)=>S.jsxs(lE,{ref:o,className:ie("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,S.jsx(jk,{className:"ml-auto h-4 w-4"})]}));_4.displayName=lE.displayName;const A4=w.forwardRef(({className:e,...t},n)=>S.jsx(uE,{ref:n,className:ie("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));A4.displayName=uE.displayName;const cE=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(C4,{children:S.jsx(tE,{ref:r,sideOffset:t,className:ie("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));cE.displayName=tE.displayName;const fE=w.forwardRef(({className:e,inset:t,...n},r)=>S.jsx(rE,{ref:r,className:ie("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));fE.displayName=rE.displayName;const R4=w.forwardRef(({className:e,children:t,checked:n,...r},o)=>S.jsxs(oE,{ref:o,className:ie("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[S.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:S.jsx(sE,{children:S.jsx(Lk,{className:"h-4 w-4"})})}),t]}));R4.displayName=oE.displayName;const I4=w.forwardRef(({className:e,children:t,...n},r)=>S.jsxs(iE,{ref:r,className:ie("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[S.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:S.jsx(sE,{children:S.jsx(Fk,{className:"h-4 w-4 fill-current"})})}),t]}));I4.displayName=iE.displayName;const O4=w.forwardRef(({className:e,inset:t,...n},r)=>S.jsx(nE,{ref:r,className:ie("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));O4.displayName=nE.displayName;const M4=w.forwardRef(({className:e,...t},n)=>S.jsx(aE,{ref:n,className:ie("-mx-1 my-1 h-px bg-muted",e),...t}));M4.displayName=aE.displayName;var Dh="Dialog",[dE,OF]=so(Dh),[N4,hn]=dE(Dh),pE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=w.useRef(null),u=w.useRef(null),[l=!1,c]=Ou({prop:r,defaultProp:o,onChange:i});return S.jsx(N4,{scope:t,triggerRef:a,contentRef:u,contentId:qo(),titleId:qo(),descriptionId:qo(),open:l,onOpenChange:c,onOpenToggle:w.useCallback(()=>c(f=>!f),[c]),modal:s,children:n})};pE.displayName=Dh;var hE="DialogTrigger",D4=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(hE,n),i=$e(t,o.triggerRef);return S.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fh(o.open),...r,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});D4.displayName=hE;var Lh="DialogPortal",[L4,mE]=dE(Lh,{forceMount:void 0}),vE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=hn(Lh,t);return S.jsx(L4,{scope:t,forceMount:n,children:w.Children.map(r,s=>S.jsx(Yn,{present:n||i.open,children:S.jsx(Lu,{asChild:!0,container:o,children:s})}))})};vE.displayName=Lh;var Yl="DialogOverlay",gE=w.forwardRef((e,t)=>{const n=mE(Yl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=hn(Yl,e.__scopeDialog);return i.modal?S.jsx(Yn,{present:r||i.open,children:S.jsx(j4,{...o,ref:t})}):null});gE.displayName=Yl;var j4=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(Yl,n);return S.jsx(Ph,{as:eo,allowPinchZoom:!0,shards:[o.contentRef],children:S.jsx(ue.div,{"data-state":Fh(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ro="DialogContent",yE=w.forwardRef((e,t)=>{const n=mE(ro,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=hn(ro,e.__scopeDialog);return S.jsx(Yn,{present:r||i.open,children:i.modal?S.jsx(F4,{...o,ref:t}):S.jsx(V4,{...o,ref:t})})});yE.displayName=ro;var F4=w.forwardRef((e,t)=>{const n=hn(ro,e.__scopeDialog),r=w.useRef(null),o=$e(t,n.contentRef,r);return w.useEffect(()=>{const i=r.current;if(i)return cS(i)},[]),S.jsx(wE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),V4=w.forwardRef((e,t)=>{const n=hn(ro,e.__scopeDialog),r=w.useRef(!1),o=w.useRef(!1);return S.jsx(wE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),wE=w.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=hn(ro,n),u=w.useRef(null),l=$e(t,u);return Dx(),S.jsxs(S.Fragment,{children:[S.jsx(gh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(Mu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Fh(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(U4,{titleId:a.titleId}),S.jsx(B4,{contentRef:u,descriptionId:a.descriptionId})]})]})}),jh="DialogTitle",bE=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(jh,n);return S.jsx(ue.h2,{id:o.titleId,...r,ref:t})});bE.displayName=jh;var xE="DialogDescription",SE=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(xE,n);return S.jsx(ue.p,{id:o.descriptionId,...r,ref:t})});SE.displayName=xE;var EE="DialogClose",TE=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(EE,n);return S.jsx(ue.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});TE.displayName=EE;function Fh(e){return e?"open":"closed"}var CE="DialogTitleWarning",[MF,PE]=UD(CE,{contentName:ro,titleName:jh,docsSlug:"dialog"}),U4=({titleId:e})=>{const t=PE(CE),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},h3=0,vo=[];function m3(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),o=w.useState(h3++)[0],i=w.useState(pS)[0],s=w.useRef(e);w.useEffect(function(){s.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=fi([e.lockRef.current],(e.shards||[]).map(Ty),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=w.useCallback(function(y,x){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var h=Da(y),p=n.current,v="deltaX"in y?y.deltaX:p[0]-h[0],b="deltaY"in y?y.deltaY:p[1]-h[1],E,P=y.target,k=Math.abs(v)>Math.abs(b)?"h":"v";if("touches"in y&&k==="h"&&P.type==="range")return!1;var T=Sy(k,P);if(!T)return!0;if(T?E=k:(E=k==="v"?"h":"v",T=Sy(k,P)),!T)return!1;if(!r.current&&"changedTouches"in y&&(v||b)&&(r.current=E),!E)return!0;var O=r.current||E;return f3(O,x,y,O==="h"?v:b,!0)},[]),u=w.useCallback(function(y){var x=y;if(!(!vo.length||vo[vo.length-1]!==i)){var h="deltaY"in x?Ey(x):Da(x),p=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&d3(E.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var v=(s.current.shards||[]).map(Ty).filter(Boolean).filter(function(E){return E.contains(x.target)}),b=v.length>0?a(x,v[0]):!s.current.noIsolation;b&&x.cancelable&&x.preventDefault()}}},[]),l=w.useCallback(function(y,x,h,p){var v={name:y,delta:x,target:h,should:p,shadowParent:v3(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(b){return b!==v})},1)},[]),c=w.useCallback(function(y){n.current=Da(y),r.current=void 0},[]),f=w.useCallback(function(y){l(y.type,Ey(y),y.target,a(y,e.lockRef.current))},[]),d=w.useCallback(function(y){l(y.type,Da(y),y.target,a(y,e.lockRef.current))},[]);w.useEffect(function(){return vo.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",u,mo),document.addEventListener("touchmove",u,mo),document.addEventListener("touchstart",c,mo),function(){vo=vo.filter(function(y){return y!==i}),document.removeEventListener("wheel",u,mo),document.removeEventListener("touchmove",u,mo),document.removeEventListener("touchstart",c,mo)}},[]);var m=e.removeScrollBar,g=e.inert;return w.createElement(w.Fragment,null,g?w.createElement(i,{styles:p3(o)}):null,m?w.createElement(o3,{gapMode:e.gapMode}):null)}function v3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const g3=Gj(dS,m3);var Ch=w.forwardRef(function(e,t){return w.createElement(Fu,yn({},e,{ref:t,sideCar:g3}))});Ch.classNames=Fu.classNames;var Dd=["Enter"," "],y3=["ArrowDown","PageUp","Home"],gS=["ArrowUp","PageDown","End"],w3=[...y3,...gS],b3={ltr:[...Dd,"ArrowRight"],rtl:[...Dd,"ArrowLeft"]},x3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qs="Menu",[Os,S3,E3]=vh(qs),[ao,yS]=so(qs,[E3,qx,oS]),Vu=qx(),wS=oS(),[T3,lo]=ao(qs),[P3,Ys]=ao(qs),bS=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=Vu(t),[u,l]=w.useState(null),c=w.useRef(!1),f=pt(i),d=Ix(o);return w.useEffect(()=>{const m=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),S.jsx(hj,{...a,children:S.jsx(T3,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:l,children:S.jsx(P3,{scope:t,onClose:w.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:s,children:r})})})};bS.displayName=qs;var C3="MenuAnchor",kh=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vu(n);return S.jsx(mj,{...o,...r,ref:t})});kh.displayName=C3;var _h="MenuPortal",[k3,xS]=ao(_h,{forceMount:void 0}),SS=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=lo(_h,t);return S.jsx(k3,{scope:t,forceMount:n,children:S.jsx(Yn,{present:n||i.open,children:S.jsx(Lu,{asChild:!0,container:o,children:r})})})};SS.displayName=_h;var Yt="MenuContent",[_3,Ah]=ao(Yt),ES=w.forwardRef((e,t)=>{const n=xS(Yt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=lo(Yt,e.__scopeMenu),s=Ys(Yt,e.__scopeMenu);return S.jsx(Os.Provider,{scope:e.__scopeMenu,children:S.jsx(Yn,{present:r||i.open,children:S.jsx(Os.Slot,{scope:e.__scopeMenu,children:s.modal?S.jsx(A3,{...o,ref:t}):S.jsx(R3,{...o,ref:t})})})})}),A3=w.forwardRef((e,t)=>{const n=lo(Yt,e.__scopeMenu),r=w.useRef(null),o=$e(t,r);return w.useEffect(()=>{const i=r.current;if(i)return cS(i)},[]),S.jsx(Rh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),R3=w.forwardRef((e,t)=>{const n=lo(Yt,e.__scopeMenu);return S.jsx(Rh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Rh=w.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:m,disableOutsideScroll:g,...y}=e,x=lo(Yt,n),h=Ys(Yt,n),p=Vu(n),v=wS(n),b=S3(n),[E,P]=w.useState(null),k=w.useRef(null),T=$e(t,k,x.onContentChange),O=w.useRef(0),D=w.useRef(""),z=w.useRef(0),F=w.useRef(null),K=w.useRef("right"),V=w.useRef(0),B=g?Ch:w.Fragment,$=g?{as:eo,allowPinchZoom:!0}:void 0,W=R=>{var Se,Qe;const N=D.current+R,G=b().filter(be=>!be.disabled),Y=document.activeElement,te=(Se=G.find(be=>be.ref.current===Y))==null?void 0:Se.textValue,J=G.map(be=>be.textValue),ce=B3(J,N,te),ve=(Qe=G.find(be=>be.textValue===ce))==null?void 0:Qe.ref.current;(function be(Ie){D.current=Ie,window.clearTimeout(O.current),Ie!==""&&(O.current=window.setTimeout(()=>be(""),1e3))})(N),ve&&setTimeout(()=>ve.focus())};w.useEffect(()=>()=>window.clearTimeout(O.current),[]),Dx();const M=w.useCallback(R=>{var G,Y;return K.current===((G=F.current)==null?void 0:G.side)&&W3(R,(Y=F.current)==null?void 0:Y.area)},[]);return S.jsx(_3,{scope:n,searchRef:D,onItemEnter:w.useCallback(R=>{M(R)&&R.preventDefault()},[M]),onItemLeave:w.useCallback(R=>{var N;M(R)||((N=k.current)==null||N.focus(),P(null))},[M]),onTriggerLeave:w.useCallback(R=>{M(R)&&R.preventDefault()},[M]),pointerGraceTimerRef:z,onPointerGraceIntentChange:w.useCallback(R=>{F.current=R},[]),children:S.jsx(B,{...$,children:S.jsx(gh,{asChild:!0,trapped:o,onMountAutoFocus:Q(i,R=>{var N;R.preventDefault(),(N=k.current)==null||N.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:S.jsx(Mu,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:m,children:S.jsx(Oj,{asChild:!0,...v,dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:P,onEntryFocus:Q(u,R=>{h.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:S.jsx(vj,{role:"menu","aria-orientation":"vertical","data-state":VS(x.open),"data-radix-menu-content":"",dir:h.dir,...p,...y,ref:T,style:{outline:"none",...y.style},onKeyDown:Q(y.onKeyDown,R=>{const G=R.target.closest("[data-radix-menu-content]")===R.currentTarget,Y=R.ctrlKey||R.altKey||R.metaKey,te=R.key.length===1;G&&(R.key==="Tab"&&R.preventDefault(),!Y&&te&&W(R.key));const J=k.current;if(R.target!==J||!w3.includes(R.key))return;R.preventDefault();const ve=b().filter(Se=>!Se.disabled).map(Se=>Se.ref.current);gS.includes(R.key)&&ve.reverse(),U3(ve)}),onBlur:Q(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(O.current),D.current="")}),onPointerMove:Q(e.onPointerMove,Ms(R=>{const N=R.target,G=V.current!==R.clientX;if(R.currentTarget.contains(N)&&G){const Y=R.clientX>V.current?"right":"left";K.current=Y,V.current=R.clientX}}))})})})})})})});ES.displayName=Yt;var I3="MenuGroup",Ih=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return S.jsx(ue.div,{role:"group",...r,ref:t})});Ih.displayName=I3;var O3="MenuLabel",TS=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return S.jsx(ue.div,{...r,ref:t})});TS.displayName=O3;var Kl="MenuItem",Py="menu.itemSelect",Uu=w.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=w.useRef(null),s=Ys(Kl,e.__scopeMenu),a=Ah(Kl,e.__scopeMenu),u=$e(t,i),l=w.useRef(!1),c=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(Py,{bubbles:!0,cancelable:!0});f.addEventListener(Py,m=>r==null?void 0:r(m),{once:!0}),mh(f,d),d.defaultPrevented?l.current=!1:s.onClose()}};return S.jsx(PS,{...o,ref:u,disabled:n,onClick:Q(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),l.current=!0},onPointerUp:Q(e.onPointerUp,f=>{var d;l.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:Q(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||Dd.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Uu.displayName=Kl;var PS=w.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=Ah(Kl,n),a=wS(n),u=w.useRef(null),l=$e(t,u),[c,f]=w.useState(!1),[d,m]=w.useState("");return w.useEffect(()=>{const g=u.current;g&&m((g.textContent??"").trim())},[i.children]),S.jsx(Os.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:S.jsx(Mj,{asChild:!0,...a,focusable:!r,children:S.jsx(ue.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:l,onPointerMove:Q(e.onPointerMove,Ms(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Q(e.onPointerLeave,Ms(g=>s.onItemLeave(g))),onFocus:Q(e.onFocus,()=>f(!0)),onBlur:Q(e.onBlur,()=>f(!1))})})})}),M3="MenuCheckboxItem",CS=w.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return S.jsx(IS,{scope:e.__scopeMenu,checked:n,children:S.jsx(Uu,{role:"menuitemcheckbox","aria-checked":ql(n)?"mixed":n,...o,ref:t,"data-state":Mh(n),onSelect:Q(o.onSelect,()=>r==null?void 0:r(ql(n)?!0:!n),{checkForDefaultPrevented:!1})})})});CS.displayName=M3;var kS="MenuRadioGroup",[N3,D3]=ao(kS,{value:void 0,onValueChange:()=>{}}),_S=w.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=pt(r);return S.jsx(N3,{scope:e.__scopeMenu,value:n,onValueChange:i,children:S.jsx(Ih,{...o,ref:t})})});_S.displayName=kS;var AS="MenuRadioItem",RS=w.forwardRef((e,t)=>{const{value:n,...r}=e,o=D3(AS,e.__scopeMenu),i=n===o.value;return S.jsx(IS,{scope:e.__scopeMenu,checked:i,children:S.jsx(Uu,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Mh(i),onSelect:Q(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});RS.displayName=AS;var Oh="MenuItemIndicator",[IS,L3]=ao(Oh,{checked:!1}),OS=w.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=L3(Oh,n);return S.jsx(Yn,{present:r||ql(i.checked)||i.checked===!0,children:S.jsx(ue.span,{...o,ref:t,"data-state":Mh(i.checked)})})});OS.displayName=Oh;var j3="MenuSeparator",MS=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return S.jsx(ue.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});MS.displayName=j3;var F3="MenuArrow",NS=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vu(n);return S.jsx(gj,{...o,...r,ref:t})});NS.displayName=F3;var V3="MenuSub",[RF,DS]=ao(V3),Bi="MenuSubTrigger",LS=w.forwardRef((e,t)=>{const n=lo(Bi,e.__scopeMenu),r=Ys(Bi,e.__scopeMenu),o=DS(Bi,e.__scopeMenu),i=Ah(Bi,e.__scopeMenu),s=w.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=i,l={__scopeMenu:e.__scopeMenu},c=w.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return w.useEffect(()=>c,[c]),w.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),u(null)}},[a,u]),S.jsx(kh,{asChild:!0,...l,children:S.jsx(PS,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":VS(n.open),...e,ref:pu(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Q(e.onPointerMove,Ms(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:Q(e.onPointerLeave,Ms(f=>{var m,g;c();const d=(m=n.content)==null?void 0:m.getBoundingClientRect();if(d){const y=(g=n.content)==null?void 0:g.dataset.side,x=y==="right",h=x?-5:5,p=d[x?"left":"right"],v=d[x?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+h,y:f.clientY},{x:p,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x:p,y:d.bottom}],side:y}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Q(e.onKeyDown,f=>{var m;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||b3[r.dir].includes(f.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),f.preventDefault())})})})});LS.displayName=Bi;var jS="MenuSubContent",FS=w.forwardRef((e,t)=>{const n=xS(Yt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=lo(Yt,e.__scopeMenu),s=Ys(Yt,e.__scopeMenu),a=DS(jS,e.__scopeMenu),u=w.useRef(null),l=$e(t,u);return S.jsx(Os.Provider,{scope:e.__scopeMenu,children:S.jsx(Yn,{present:r||i.open,children:S.jsx(Os.Slot,{scope:e.__scopeMenu,children:S.jsx(Rh,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var f;s.isUsingKeyboardRef.current&&((f=u.current)==null||f.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:Q(e.onFocusOutside,c=>{c.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Q(e.onEscapeKeyDown,c=>{s.onClose(),c.preventDefault()}),onKeyDown:Q(e.onKeyDown,c=>{var m;const f=c.currentTarget.contains(c.target),d=x3[s.dir].includes(c.key);f&&d&&(i.onOpenChange(!1),(m=a.trigger)==null||m.focus(),c.preventDefault())})})})})})});FS.displayName=jS;function VS(e){return e?"open":"closed"}function ql(e){return e==="indeterminate"}function Mh(e){return ql(e)?"indeterminate":e?"checked":"unchecked"}function U3(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function z3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function B3(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=z3(e,Math.max(i,0));o.length===1&&(s=s.filter(l=>l!==n));const u=s.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function $3(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=c>r&&n<(l-a)*(r-u)/(c-u)+a&&(o=!o)}return o}function W3(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return $3(n,t)}function Ms(e){return t=>t.pointerType==="mouse"?e(t):void 0}var G3=bS,H3=kh,K3=SS,q3=ES,Y3=Ih,X3=TS,Q3=Uu,Z3=CS,J3=_S,e4=RS,t4=OS,n4=MS,r4=NS,o4=LS,i4=FS,Nh="DropdownMenu",[s4,IF]=so(Nh,[yS]),gt=yS(),[a4,US]=s4(Nh),zS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,u=gt(t),l=w.useRef(null),[c=!1,f]=Ou({prop:o,defaultProp:i,onChange:s});return S.jsx(a4,{scope:t,triggerId:qo(),triggerRef:l,contentId:qo(),open:c,onOpenChange:f,onOpenToggle:w.useCallback(()=>f(d=>!d),[f]),modal:a,children:S.jsx(G3,{...u,open:c,onOpenChange:f,dir:r,modal:a,children:n})})};zS.displayName=Nh;var BS="DropdownMenuTrigger",$S=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=US(BS,n),s=gt(n);return S.jsx(H3,{asChild:!0,...s,children:S.jsx(ue.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:pu(t,i.triggerRef),onPointerDown:Q(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:Q(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});$S.displayName=BS;var l4="DropdownMenuPortal",WS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=gt(t);return S.jsx(K3,{...r,...n})};WS.displayName=l4;var GS="DropdownMenuContent",HS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=US(GS,n),i=gt(n),s=w.useRef(!1);return S.jsx(q3,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:Q(e.onCloseAutoFocus,a=>{var u;s.current||(u=o.triggerRef.current)==null||u.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Q(e.onInteractOutside,a=>{const u=a.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,c=u.button===2||l;(!o.modal||c)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});HS.displayName=GS;var u4="DropdownMenuGroup",c4=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(Y3,{...o,...r,ref:t})});c4.displayName=u4;var f4="DropdownMenuLabel",KS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(X3,{...o,...r,ref:t})});KS.displayName=f4;var d4="DropdownMenuItem",qS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(Q3,{...o,...r,ref:t})});qS.displayName=d4;var p4="DropdownMenuCheckboxItem",YS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(Z3,{...o,...r,ref:t})});YS.displayName=p4;var h4="DropdownMenuRadioGroup",m4=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(J3,{...o,...r,ref:t})});m4.displayName=h4;var v4="DropdownMenuRadioItem",XS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(e4,{...o,...r,ref:t})});XS.displayName=v4;var g4="DropdownMenuItemIndicator",QS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(t4,{...o,...r,ref:t})});QS.displayName=g4;var y4="DropdownMenuSeparator",ZS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(n4,{...o,...r,ref:t})});ZS.displayName=y4;var w4="DropdownMenuArrow",b4=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(r4,{...o,...r,ref:t})});b4.displayName=w4;var x4="DropdownMenuSubTrigger",JS=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(o4,{...o,...r,ref:t})});JS.displayName=x4;var S4="DropdownMenuSubContent",eE=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return S.jsx(i4,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eE.displayName=S4;var E4=zS,T4=$S,P4=WS,tE=HS,nE=KS,rE=qS,oE=YS,iE=XS,sE=QS,aE=ZS,lE=JS,uE=eE;const C4=E4,k4=T4,_4=w.forwardRef(({className:e,inset:t,children:n,...r},o)=>S.jsxs(lE,{ref:o,className:ie("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,S.jsx(jk,{className:"ml-auto h-4 w-4"})]}));_4.displayName=lE.displayName;const A4=w.forwardRef(({className:e,...t},n)=>S.jsx(uE,{ref:n,className:ie("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));A4.displayName=uE.displayName;const cE=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(P4,{children:S.jsx(tE,{ref:r,sideOffset:t,className:ie("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));cE.displayName=tE.displayName;const fE=w.forwardRef(({className:e,inset:t,...n},r)=>S.jsx(rE,{ref:r,className:ie("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));fE.displayName=rE.displayName;const R4=w.forwardRef(({className:e,children:t,checked:n,...r},o)=>S.jsxs(oE,{ref:o,className:ie("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[S.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:S.jsx(sE,{children:S.jsx(Lk,{className:"h-4 w-4"})})}),t]}));R4.displayName=oE.displayName;const I4=w.forwardRef(({className:e,children:t,...n},r)=>S.jsxs(iE,{ref:r,className:ie("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[S.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:S.jsx(sE,{children:S.jsx(Fk,{className:"h-4 w-4 fill-current"})})}),t]}));I4.displayName=iE.displayName;const O4=w.forwardRef(({className:e,inset:t,...n},r)=>S.jsx(nE,{ref:r,className:ie("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));O4.displayName=nE.displayName;const M4=w.forwardRef(({className:e,...t},n)=>S.jsx(aE,{ref:n,className:ie("-mx-1 my-1 h-px bg-muted",e),...t}));M4.displayName=aE.displayName;var Dh="Dialog",[dE,OF]=so(Dh),[N4,hn]=dE(Dh),pE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=w.useRef(null),u=w.useRef(null),[l=!1,c]=Ou({prop:r,defaultProp:o,onChange:i});return S.jsx(N4,{scope:t,triggerRef:a,contentRef:u,contentId:qo(),titleId:qo(),descriptionId:qo(),open:l,onOpenChange:c,onOpenToggle:w.useCallback(()=>c(f=>!f),[c]),modal:s,children:n})};pE.displayName=Dh;var hE="DialogTrigger",D4=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(hE,n),i=$e(t,o.triggerRef);return S.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fh(o.open),...r,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});D4.displayName=hE;var Lh="DialogPortal",[L4,mE]=dE(Lh,{forceMount:void 0}),vE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=hn(Lh,t);return S.jsx(L4,{scope:t,forceMount:n,children:w.Children.map(r,s=>S.jsx(Yn,{present:n||i.open,children:S.jsx(Lu,{asChild:!0,container:o,children:s})}))})};vE.displayName=Lh;var Yl="DialogOverlay",gE=w.forwardRef((e,t)=>{const n=mE(Yl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=hn(Yl,e.__scopeDialog);return i.modal?S.jsx(Yn,{present:r||i.open,children:S.jsx(j4,{...o,ref:t})}):null});gE.displayName=Yl;var j4=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(Yl,n);return S.jsx(Ch,{as:eo,allowPinchZoom:!0,shards:[o.contentRef],children:S.jsx(ue.div,{"data-state":Fh(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ro="DialogContent",yE=w.forwardRef((e,t)=>{const n=mE(ro,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=hn(ro,e.__scopeDialog);return S.jsx(Yn,{present:r||i.open,children:i.modal?S.jsx(F4,{...o,ref:t}):S.jsx(V4,{...o,ref:t})})});yE.displayName=ro;var F4=w.forwardRef((e,t)=>{const n=hn(ro,e.__scopeDialog),r=w.useRef(null),o=$e(t,n.contentRef,r);return w.useEffect(()=>{const i=r.current;if(i)return cS(i)},[]),S.jsx(wE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),V4=w.forwardRef((e,t)=>{const n=hn(ro,e.__scopeDialog),r=w.useRef(!1),o=w.useRef(!1);return S.jsx(wE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),wE=w.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=hn(ro,n),u=w.useRef(null),l=$e(t,u);return Dx(),S.jsxs(S.Fragment,{children:[S.jsx(gh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(Mu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Fh(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(U4,{titleId:a.titleId}),S.jsx(B4,{contentRef:u,descriptionId:a.descriptionId})]})]})}),jh="DialogTitle",bE=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(jh,n);return S.jsx(ue.h2,{id:o.titleId,...r,ref:t})});bE.displayName=jh;var xE="DialogDescription",SE=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(xE,n);return S.jsx(ue.p,{id:o.descriptionId,...r,ref:t})});SE.displayName=xE;var EE="DialogClose",TE=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=hn(EE,n);return S.jsx(ue.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});TE.displayName=EE;function Fh(e){return e?"open":"closed"}var PE="DialogTitleWarning",[MF,CE]=UD(PE,{contentName:ro,titleName:jh,docsSlug:"dialog"}),U4=({titleId:e})=>{const t=CE(PE),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},z4="DialogDescriptionWarning",B4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PE(z4).contentName}}.`;return w.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$4=pE,W4=vE,kE=gE,_E=yE,AE=bE,RE=SE,G4=TE;const H4=$4,K4=W4,IE=w.forwardRef(({className:e,...t},n)=>S.jsx(kE,{ref:n,className:ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));IE.displayName=kE.displayName;const OE=w.forwardRef(({className:e,children:t,...n},r)=>S.jsxs(K4,{children:[S.jsx(IE,{}),S.jsxs(_E,{ref:r,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,S.jsxs(G4,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[S.jsx(Qw,{className:"h-4 w-4"}),S.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));OE.displayName=_E.displayName;const ME=({className:e,...t})=>S.jsx("div",{className:ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ME.displayName="DialogHeader";const NE=w.forwardRef(({className:e,...t},n)=>S.jsx(AE,{ref:n,className:ie("text-lg font-semibold leading-none tracking-tight",e),...t}));NE.displayName=AE.displayName;const DE=w.forwardRef(({className:e,...t},n)=>S.jsx(RE,{ref:n,className:ie("text-sm text-muted-foreground",e),...t}));DE.displayName=RE.displayName;const q4=({open:e,setDialogOpen:t})=>{const n=[{title:"Facebook",link:"https://www.facebook.com/sharer/sharer.php?u=",color:"#0165E1"},{title:"WhatsApp",link:"https://api.whatsapp.com/send?text=",color:"#28D146"},{title:"Twitter",link:"https://twitter.com/intent/tweet?url=",color:"#1D9BF0"},{title:"LinkedIn",link:"https://www.linkedin.com/sharing/share-offsite/?url=",color:"#0A66C2"},{title:"Tumblr",link:"https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=&url=",color:"#35465C"},{title:"Pinterest",link:"https://www.pinterest.com/pin/create/button/?url=",color:"#BD081B"},{title:"Reddit",link:"https://www.reddit.com/submit?url=",color:"#FF4500"}],r=o=>{t(o)};return S.jsx(H4,{open:e,onOpenChange:r,children:S.jsxs(OE,{className:"w-full",children:[S.jsxs(ME,{children:[S.jsx(NE,{children:"Share"}),S.jsx(DE,{children:"Share this portfolio with your friends. Its FREE!!!"})]}),S.jsx("div",{className:"flex flex-col gap-y-2",children:n.map(o=>{const i=()=>{const s=`${o.link}${window.location.href}`;dt.trackCustomEvent(St.clicked_on_share_item,{url:s}),window.open(s,"_blank")};return S.jsx(wn,{variant:"outline",onClick:i,children:o.title})})})]})})},Y4=e=>{const[t,n]=w.useState(!1),r=()=>{dt.trackCustomEvent(St.clicked_on_goto_top,{});const i=Jf(Kt.routes,0);Il(`section-${i.name.toLowerCase()}`)},o=i=>{dt.trackCustomEvent(St.opened_direct_message_dropdown,{open:i})};return w.useEffect(()=>{dt.trackCustomEvent(St.opened_share_dialog,{isDialogOpen:t})},[t]),S.jsxs(Vs,{className:"w-full h-12",children:[S.jsx(q4,{open:t,setDialogOpen:n}),S.jsxs(du,{className:"p-1 flex flex-row h-full items-center justify-between",children:[S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(wn,{disabled:!0,variant:"ghost",size:"icon",children:S.jsx(qk,{className:"h-4 w-4"})}),S.jsx("h1",{className:"text-sm font-bold tracking-wider cursor-pointer",onClick:r,children:"Portfolio"})]}),S.jsxs("div",{children:[S.jsxs(P4,{onOpenChange:o,children:[S.jsx(k4,{asChild:!0,children:S.jsx(wn,{variant:"ghost",size:"icon",title:"Send Direct Message",children:S.jsx(Bk,{className:"h-4 w-4"})})}),S.jsx(cE,{align:"end",children:Kt.directMessageItems.map(i=>{const s=()=>{dt.trackCustomEvent(St.clicked_direct_message_item,{link:i.link}),window.open(i.link,"_blank")};return S.jsx(fE,{onClick:s,children:i.name})})})]}),S.jsx(wn,{variant:"ghost",size:"icon",title:"Source code",onClick:()=>{const i="https://github.com/p32929/p32929.github.io/";dt.trackCustomEvent(St.clicked_github_icon,{url:i}),window.open(i,"_blank")},children:S.jsx(Vk,{className:"h-4 w-4"})}),S.jsx(wn,{variant:"ghost",size:"icon",title:"Share",onClick:()=>n(!0),children:S.jsx(Wk,{className:"h-4 w-4"})})]})]})]})},X4=e=>S.jsxs("div",{className:"flex flex-col w-full h-full",children:[S.jsx(Y4,{}),S.jsx("div",{className:"flex flex-col w-full h-full overflow-y-auto",children:Kt.routes.map((t,n)=>S.jsx(VD,{item:t,index:n}))})]});var Q4="VisuallyHidden",Vh=w.forwardRef((e,t)=>S.jsx(ue.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Vh.displayName=Q4;var Uh="ToastProvider",[zh,Z4,J4]=vh("Toast"),[LE,NF]=so("Toast",[J4]),[eF,zu]=LE(Uh),jE=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,u]=w.useState(null),[l,c]=w.useState(0),f=w.useRef(!1),d=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Uh}\`. Expected non-empty \`string\`.`),S.jsx(zh.Provider,{scope:t,children:S.jsx(eF,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:w.useCallback(()=>c(m=>m+1),[]),onToastRemove:w.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:s})})};jE.displayName=Uh;var FE="ToastViewport",tF=["F8"],Ld="toast.viewportPause",jd="toast.viewportResume",VE=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=tF,label:o="Notifications ({hotkey})",...i}=e,s=zu(FE,n),a=Z4(n),u=w.useRef(null),l=w.useRef(null),c=w.useRef(null),f=w.useRef(null),d=$e(t,f,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=s.toastCount>0;w.useEffect(()=>{const x=h=>{var v;r.every(b=>h[b]||h.code===b)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=u.current,h=f.current;if(g&&x&&h){const p=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(Ld);h.dispatchEvent(C),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(jd);h.dispatchEvent(C),s.isClosePausedRef.current=!1}},b=C=>{!x.contains(C.relatedTarget)&&v()},E=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",p),x.addEventListener("focusout",b),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",b),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[g,s.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:x})=>{const p=a().map(v=>{const b=v.ref.current,E=[b,...hF(b)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?p.reverse():p).flat()},[a]);return w.useEffect(()=>{const x=f.current;if(x){const h=p=>{var E,C,k;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const T=document.activeElement,O=p.shiftKey;if(p.target===x&&O){(E=l.current)==null||E.focus();return}const F=y({tabbingDirection:O?"backwards":"forwards"}),K=F.findIndex(V=>V===T);tf(F.slice(K+1))?p.preventDefault():O?(C=l.current)==null||C.focus():(k=c.current)==null||k.focus()}};return x.addEventListener("keydown",h),()=>x.removeEventListener("keydown",h)}},[a,y]),S.jsxs(ZD,{ref:u,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&S.jsx(Fd,{ref:l,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});tf(x)}}),S.jsx(zh.Slot,{scope:n,children:S.jsx(ue.ol,{tabIndex:-1,...i,ref:d})}),g&&S.jsx(Fd,{ref:c,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});tf(x)}})]})});VE.displayName=FE;var UE="ToastFocusProxy",Fd=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=zu(UE,n);return S.jsx(Vh,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var l;const a=s.relatedTarget;!((l=i.viewport)!=null&&l.contains(a))&&r()}})});Fd.displayName=UE;var Bu="Toast",nF="toast.swipeStart",rF="toast.swipeMove",oF="toast.swipeCancel",iF="toast.swipeEnd",zE=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,u]=Ou({prop:r,defaultProp:o,onChange:i});return S.jsx(Yn,{present:n||a,children:S.jsx(lF,{open:a,...s,ref:t,onClose:()=>u(!1),onPause:ht(e.onPause),onResume:ht(e.onResume),onSwipeStart:Q(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Q(e.onSwipeMove,l=>{const{x:c,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Q(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Q(e.onSwipeEnd,l=>{const{x:c,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),u(!1)})})})});zE.displayName=Bu;var[sF,aF]=LE(Bu,{onClose(){}}),lF=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:m,...g}=e,y=zu(Bu,n),[x,h]=w.useState(null),p=$e(t,V=>h(V)),v=w.useRef(null),b=w.useRef(null),E=o||y.duration,C=w.useRef(0),k=w.useRef(E),T=w.useRef(0),{onToastAdd:O,onToastRemove:D}=y,z=ht(()=>{var B;(x==null?void 0:x.contains(document.activeElement))&&((B=y.viewport)==null||B.focus()),s()}),F=w.useCallback(V=>{!V||V===1/0||(window.clearTimeout(T.current),C.current=new Date().getTime(),T.current=window.setTimeout(z,V))},[z]);w.useEffect(()=>{const V=y.viewport;if(V){const B=()=>{F(k.current),l==null||l()},$=()=>{const W=new Date().getTime()-C.current;k.current=k.current-W,window.clearTimeout(T.current),u==null||u()};return V.addEventListener(Ld,$),V.addEventListener(jd,B),()=>{V.removeEventListener(Ld,$),V.removeEventListener(jd,B)}}},[y.viewport,E,u,l,F]),w.useEffect(()=>{i&&!y.isClosePausedRef.current&&F(E)},[i,E,y.isClosePausedRef,F]),w.useEffect(()=>(O(),()=>D()),[O,D]);const K=w.useMemo(()=>x?qE(x):null,[x]);return y.viewport?S.jsxs(S.Fragment,{children:[K&&S.jsx(uF,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),S.jsx(sF,{scope:n,onClose:z,children:vi.createPortal(S.jsx(zh.ItemSlot,{scope:n,children:S.jsx(QD,{asChild:!0,onEscapeKeyDown:Q(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||z(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...g,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Q(e.onKeyDown,V=>{V.key==="Escape"&&(a==null||a(V.nativeEvent),V.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Q(e.onPointerDown,V=>{V.button===0&&(v.current={x:V.clientX,y:V.clientY})}),onPointerMove:Q(e.onPointerMove,V=>{if(!v.current)return;const B=V.clientX-v.current.x,$=V.clientY-v.current.y,W=!!b.current,M=["left","right"].includes(y.swipeDirection),R=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,N=M?R(0,B):0,G=M?0:R(0,$),Y=V.pointerType==="touch"?10:2,te={x:N,y:G},J={originalEvent:V,delta:te};W?(b.current=te,La(rF,f,J,{discrete:!1})):Py(te,y.swipeDirection,Y)?(b.current=te,La(nF,c,J,{discrete:!1}),V.target.setPointerCapture(V.pointerId)):(Math.abs(B)>Y||Math.abs($)>Y)&&(v.current=null)}),onPointerUp:Q(e.onPointerUp,V=>{const B=b.current,$=V.target;if($.hasPointerCapture(V.pointerId)&&$.releasePointerCapture(V.pointerId),b.current=null,v.current=null,B){const W=V.currentTarget,M={originalEvent:V,delta:B};Py(B,y.swipeDirection,y.swipeThreshold)?La(iF,m,M,{discrete:!0}):La(oF,d,M,{discrete:!0}),W.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),uF=e=>{const{__scopeToast:t,children:n,...r}=e,o=zu(Bu,t),[i,s]=w.useState(!1),[a,u]=w.useState(!1);return dF(()=>s(!0)),w.useEffect(()=>{const l=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:S.jsx(Lu,{asChild:!0,children:S.jsx(Vh,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},cF="ToastTitle",BE=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(ue.div,{...r,ref:t})});BE.displayName=cF;var fF="ToastDescription",$E=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(ue.div,{...r,ref:t})});$E.displayName=fF;var WE="ToastAction",GE=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(KE,{altText:n,asChild:!0,children:S.jsx(Bh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${WE}\`. Expected non-empty \`string\`.`),null)});GE.displayName=WE;var HE="ToastClose",Bh=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=aF(HE,n);return S.jsx(KE,{asChild:!0,children:S.jsx(ue.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,o.onClose)})})});Bh.displayName=HE;var KE=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function qE(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),pF(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...qE(r))}}),t}function La(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mh(o,i):o.dispatchEvent(i)}var Py=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function dF(e=()=>{}){const t=ht(e);Pr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function pF(e){return e.nodeType===e.ELEMENT_NODE}function hF(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var mF=jE,YE=VE,XE=zE,QE=BE,ZE=$E,JE=GE,eT=Bh;const vF=mF,tT=w.forwardRef(({className:e,...t},n)=>S.jsx(YE,{ref:n,className:ie("fixed z-[100] flex max-h-screen w-full flex-col-reverse p-4 top-auto bottom-0 right-0 sm:flex-col md:max-w-[420px]",e),...t}));tT.displayName=YE.displayName;const gF=Xw("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),nT=w.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(XE,{ref:r,className:ie(gF({variant:t}),e),...n}));nT.displayName=XE.displayName;const yF=w.forwardRef(({className:e,...t},n)=>S.jsx(JE,{ref:n,className:ie("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));yF.displayName=JE.displayName;const rT=w.forwardRef(({className:e,...t},n)=>S.jsx(eT,{ref:n,className:ie("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx(Qw,{className:"h-4 w-4"})}));rT.displayName=eT.displayName;const oT=w.forwardRef(({className:e,...t},n)=>S.jsx(QE,{ref:n,className:ie("text-sm font-semibold [&+div]:text-xs",e),...t}));oT.displayName=QE.displayName;const iT=w.forwardRef(({className:e,...t},n)=>S.jsx(ZE,{ref:n,className:ie("text-sm opacity-90",e),...t}));iT.displayName=ZE.displayName;const wF=1,bF=1e6;let nf=0;function xF(){return nf=(nf+1)%Number.MAX_SAFE_INTEGER,nf.toString()}const rf=new Map,ky=e=>{if(rf.has(e))return;const t=setTimeout(()=>{rf.delete(e),is({type:"REMOVE_TOAST",toastId:e})},bF);rf.set(e,t)},SF=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,wF)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ky(n):e.toasts.forEach(r=>{ky(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},il=[];let sl={toasts:[]};function is(e){sl=SF(sl,e),il.forEach(t=>{t(sl)})}function EF({...e}){const t=xF(),n=o=>is({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>is({type:"DISMISS_TOAST",toastId:t});return is({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function TF(){const[e,t]=w.useState(sl);return w.useEffect(()=>(il.push(t),()=>{const n=il.indexOf(t);n>-1&&il.splice(n,1)}),[e]),{...e,toast:EF,dismiss:n=>is({type:"DISMISS_TOAST",toastId:n})}}function CF(){const{toasts:e}=TF();return S.jsxs(vF,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return S.jsxs(nT,{...i,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(oT,{children:n}),r&&S.jsx(iT,{children:r})]}),o,S.jsx(rT,{})]},t)}),S.jsx(tT,{})]})}function PF(){return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"h-screen w-screen 2xl:p-13 xl:p-13 lg:p-13 md:p-8 p-8",children:S.jsx(Vs,{className:"m-0 h-full w-full p-0",children:S.jsxs(du,{className:"flex h-full w-full flex-row p-0",children:[S.jsx(AD,{}),S.jsx(X4,{})]})})}),S.jsx(CF,{})]})}of.createRoot(document.getElementById("root")).render(S.jsx(An.StrictMode,{children:S.jsx($P,{defaultTheme:"dark",storageKey:"vite-ui-theme",children:S.jsx(PF,{})})})); +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},z4="DialogDescriptionWarning",B4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${CE(z4).contentName}}.`;return w.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$4=pE,W4=vE,kE=gE,_E=yE,AE=bE,RE=SE,G4=TE;const H4=$4,K4=W4,IE=w.forwardRef(({className:e,...t},n)=>S.jsx(kE,{ref:n,className:ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));IE.displayName=kE.displayName;const OE=w.forwardRef(({className:e,children:t,...n},r)=>S.jsxs(K4,{children:[S.jsx(IE,{}),S.jsxs(_E,{ref:r,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,S.jsxs(G4,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[S.jsx(Qw,{className:"h-4 w-4"}),S.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));OE.displayName=_E.displayName;const ME=({className:e,...t})=>S.jsx("div",{className:ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ME.displayName="DialogHeader";const NE=w.forwardRef(({className:e,...t},n)=>S.jsx(AE,{ref:n,className:ie("text-lg font-semibold leading-none tracking-tight",e),...t}));NE.displayName=AE.displayName;const DE=w.forwardRef(({className:e,...t},n)=>S.jsx(RE,{ref:n,className:ie("text-sm text-muted-foreground",e),...t}));DE.displayName=RE.displayName;const q4=({open:e,setDialogOpen:t})=>{const n=[{title:"Facebook",link:"https://www.facebook.com/sharer/sharer.php?u=",color:"#0165E1"},{title:"WhatsApp",link:"https://api.whatsapp.com/send?text=",color:"#28D146"},{title:"Twitter",link:"https://twitter.com/intent/tweet?url=",color:"#1D9BF0"},{title:"LinkedIn",link:"https://www.linkedin.com/sharing/share-offsite/?url=",color:"#0A66C2"},{title:"Tumblr",link:"https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=&url=",color:"#35465C"},{title:"Pinterest",link:"https://www.pinterest.com/pin/create/button/?url=",color:"#BD081B"},{title:"Reddit",link:"https://www.reddit.com/submit?url=",color:"#FF4500"}],r=o=>{t(o)};return S.jsx(H4,{open:e,onOpenChange:r,children:S.jsxs(OE,{className:"w-full",children:[S.jsxs(ME,{children:[S.jsx(NE,{children:"Share"}),S.jsx(DE,{children:"Share this portfolio with your friends. Its FREE!!!"})]}),S.jsx("div",{className:"flex flex-col gap-y-2",children:n.map(o=>{const i=()=>{const s=`${o.link}${window.location.href}`;xt.trackCustomEvent(At.clicked_on_share_item,{url:s}),window.open(s,"_blank")};return S.jsx(wn,{variant:"outline",onClick:i,children:o.title})})})]})})},Y4=e=>{const[t,n]=w.useState(!1),r=()=>{xt.trackCustomEvent(At.clicked_on_goto_top,{});const i=Jf(Kt.routes,0);Il(`section-${i.name.toLowerCase()}`)},o=i=>{xt.trackCustomEvent(At.opened_direct_message_dropdown,{open:i})};return w.useEffect(()=>{xt.trackCustomEvent(At.opened_share_dialog,{isDialogOpen:t})},[t]),S.jsxs(Vs,{className:"w-full h-12",children:[S.jsx(q4,{open:t,setDialogOpen:n}),S.jsxs(du,{className:"p-1 flex flex-row h-full items-center justify-between",children:[S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(wn,{disabled:!0,variant:"ghost",size:"icon",children:S.jsx(qk,{className:"h-4 w-4"})}),S.jsx("h1",{className:"text-sm font-bold tracking-wider cursor-pointer",onClick:r,children:"Portfolio"})]}),S.jsxs("div",{children:[S.jsxs(C4,{onOpenChange:o,children:[S.jsx(k4,{asChild:!0,children:S.jsx(wn,{variant:"ghost",size:"icon",title:"Send Direct Message",children:S.jsx(Bk,{className:"h-4 w-4"})})}),S.jsx(cE,{align:"end",children:Kt.directMessageItems.map(i=>{const s=()=>{xt.trackCustomEvent(At.clicked_direct_message_item,{link:i.link}),window.open(i.link,"_blank")};return S.jsx(fE,{onClick:s,children:i.name})})})]}),S.jsx(wn,{variant:"ghost",size:"icon",title:"Source code",onClick:()=>{const i="https://github.com/p32929/p32929.github.io/";xt.trackCustomEvent(At.clicked_github_icon,{url:i}),window.open(i,"_blank")},children:S.jsx(Vk,{className:"h-4 w-4"})}),S.jsx(wn,{variant:"ghost",size:"icon",title:"Share",onClick:()=>n(!0),children:S.jsx(Wk,{className:"h-4 w-4"})})]})]})]})},X4=e=>S.jsxs("div",{className:"flex flex-col w-full h-full",children:[S.jsx(Y4,{}),S.jsx("div",{className:"flex flex-col w-full h-full overflow-y-auto",children:Kt.routes.map((t,n)=>S.jsx(VD,{item:t,index:n}))})]});var Q4="VisuallyHidden",Vh=w.forwardRef((e,t)=>S.jsx(ue.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Vh.displayName=Q4;var Uh="ToastProvider",[zh,Z4,J4]=vh("Toast"),[LE,NF]=so("Toast",[J4]),[eF,zu]=LE(Uh),jE=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,u]=w.useState(null),[l,c]=w.useState(0),f=w.useRef(!1),d=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Uh}\`. Expected non-empty \`string\`.`),S.jsx(zh.Provider,{scope:t,children:S.jsx(eF,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:w.useCallback(()=>c(m=>m+1),[]),onToastRemove:w.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:s})})};jE.displayName=Uh;var FE="ToastViewport",tF=["F8"],Ld="toast.viewportPause",jd="toast.viewportResume",VE=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=tF,label:o="Notifications ({hotkey})",...i}=e,s=zu(FE,n),a=Z4(n),u=w.useRef(null),l=w.useRef(null),c=w.useRef(null),f=w.useRef(null),d=$e(t,f,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=s.toastCount>0;w.useEffect(()=>{const x=h=>{var v;r.every(b=>h[b]||h.code===b)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=u.current,h=f.current;if(g&&x&&h){const p=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Ld);h.dispatchEvent(P),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(jd);h.dispatchEvent(P),s.isClosePausedRef.current=!1}},b=P=>{!x.contains(P.relatedTarget)&&v()},E=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",p),x.addEventListener("focusout",b),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",b),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[g,s.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:x})=>{const p=a().map(v=>{const b=v.ref.current,E=[b,...hF(b)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?p.reverse():p).flat()},[a]);return w.useEffect(()=>{const x=f.current;if(x){const h=p=>{var E,P,k;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const T=document.activeElement,O=p.shiftKey;if(p.target===x&&O){(E=l.current)==null||E.focus();return}const F=y({tabbingDirection:O?"backwards":"forwards"}),K=F.findIndex(V=>V===T);tf(F.slice(K+1))?p.preventDefault():O?(P=l.current)==null||P.focus():(k=c.current)==null||k.focus()}};return x.addEventListener("keydown",h),()=>x.removeEventListener("keydown",h)}},[a,y]),S.jsxs(ZD,{ref:u,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&S.jsx(Fd,{ref:l,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});tf(x)}}),S.jsx(zh.Slot,{scope:n,children:S.jsx(ue.ol,{tabIndex:-1,...i,ref:d})}),g&&S.jsx(Fd,{ref:c,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});tf(x)}})]})});VE.displayName=FE;var UE="ToastFocusProxy",Fd=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=zu(UE,n);return S.jsx(Vh,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var l;const a=s.relatedTarget;!((l=i.viewport)!=null&&l.contains(a))&&r()}})});Fd.displayName=UE;var Bu="Toast",nF="toast.swipeStart",rF="toast.swipeMove",oF="toast.swipeCancel",iF="toast.swipeEnd",zE=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,u]=Ou({prop:r,defaultProp:o,onChange:i});return S.jsx(Yn,{present:n||a,children:S.jsx(lF,{open:a,...s,ref:t,onClose:()=>u(!1),onPause:pt(e.onPause),onResume:pt(e.onResume),onSwipeStart:Q(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Q(e.onSwipeMove,l=>{const{x:c,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Q(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Q(e.onSwipeEnd,l=>{const{x:c,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),u(!1)})})})});zE.displayName=Bu;var[sF,aF]=LE(Bu,{onClose(){}}),lF=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:m,...g}=e,y=zu(Bu,n),[x,h]=w.useState(null),p=$e(t,V=>h(V)),v=w.useRef(null),b=w.useRef(null),E=o||y.duration,P=w.useRef(0),k=w.useRef(E),T=w.useRef(0),{onToastAdd:O,onToastRemove:D}=y,z=pt(()=>{var B;(x==null?void 0:x.contains(document.activeElement))&&((B=y.viewport)==null||B.focus()),s()}),F=w.useCallback(V=>{!V||V===1/0||(window.clearTimeout(T.current),P.current=new Date().getTime(),T.current=window.setTimeout(z,V))},[z]);w.useEffect(()=>{const V=y.viewport;if(V){const B=()=>{F(k.current),l==null||l()},$=()=>{const W=new Date().getTime()-P.current;k.current=k.current-W,window.clearTimeout(T.current),u==null||u()};return V.addEventListener(Ld,$),V.addEventListener(jd,B),()=>{V.removeEventListener(Ld,$),V.removeEventListener(jd,B)}}},[y.viewport,E,u,l,F]),w.useEffect(()=>{i&&!y.isClosePausedRef.current&&F(E)},[i,E,y.isClosePausedRef,F]),w.useEffect(()=>(O(),()=>D()),[O,D]);const K=w.useMemo(()=>x?qE(x):null,[x]);return y.viewport?S.jsxs(S.Fragment,{children:[K&&S.jsx(uF,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),S.jsx(sF,{scope:n,onClose:z,children:vi.createPortal(S.jsx(zh.ItemSlot,{scope:n,children:S.jsx(QD,{asChild:!0,onEscapeKeyDown:Q(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||z(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...g,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Q(e.onKeyDown,V=>{V.key==="Escape"&&(a==null||a(V.nativeEvent),V.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Q(e.onPointerDown,V=>{V.button===0&&(v.current={x:V.clientX,y:V.clientY})}),onPointerMove:Q(e.onPointerMove,V=>{if(!v.current)return;const B=V.clientX-v.current.x,$=V.clientY-v.current.y,W=!!b.current,M=["left","right"].includes(y.swipeDirection),R=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,N=M?R(0,B):0,G=M?0:R(0,$),Y=V.pointerType==="touch"?10:2,te={x:N,y:G},J={originalEvent:V,delta:te};W?(b.current=te,La(rF,f,J,{discrete:!1})):Cy(te,y.swipeDirection,Y)?(b.current=te,La(nF,c,J,{discrete:!1}),V.target.setPointerCapture(V.pointerId)):(Math.abs(B)>Y||Math.abs($)>Y)&&(v.current=null)}),onPointerUp:Q(e.onPointerUp,V=>{const B=b.current,$=V.target;if($.hasPointerCapture(V.pointerId)&&$.releasePointerCapture(V.pointerId),b.current=null,v.current=null,B){const W=V.currentTarget,M={originalEvent:V,delta:B};Cy(B,y.swipeDirection,y.swipeThreshold)?La(iF,m,M,{discrete:!0}):La(oF,d,M,{discrete:!0}),W.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),uF=e=>{const{__scopeToast:t,children:n,...r}=e,o=zu(Bu,t),[i,s]=w.useState(!1),[a,u]=w.useState(!1);return dF(()=>s(!0)),w.useEffect(()=>{const l=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:S.jsx(Lu,{asChild:!0,children:S.jsx(Vh,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},cF="ToastTitle",BE=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(ue.div,{...r,ref:t})});BE.displayName=cF;var fF="ToastDescription",$E=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(ue.div,{...r,ref:t})});$E.displayName=fF;var WE="ToastAction",GE=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(KE,{altText:n,asChild:!0,children:S.jsx(Bh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${WE}\`. Expected non-empty \`string\`.`),null)});GE.displayName=WE;var HE="ToastClose",Bh=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=aF(HE,n);return S.jsx(KE,{asChild:!0,children:S.jsx(ue.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,o.onClose)})})});Bh.displayName=HE;var KE=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function qE(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),pF(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...qE(r))}}),t}function La(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mh(o,i):o.dispatchEvent(i)}var Cy=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function dF(e=()=>{}){const t=pt(e);Cr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function pF(e){return e.nodeType===e.ELEMENT_NODE}function hF(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var mF=jE,YE=VE,XE=zE,QE=BE,ZE=$E,JE=GE,eT=Bh;const vF=mF,tT=w.forwardRef(({className:e,...t},n)=>S.jsx(YE,{ref:n,className:ie("fixed z-[100] flex max-h-screen w-full flex-col-reverse p-4 top-auto bottom-0 right-0 sm:flex-col md:max-w-[420px]",e),...t}));tT.displayName=YE.displayName;const gF=Xw("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),nT=w.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(XE,{ref:r,className:ie(gF({variant:t}),e),...n}));nT.displayName=XE.displayName;const yF=w.forwardRef(({className:e,...t},n)=>S.jsx(JE,{ref:n,className:ie("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));yF.displayName=JE.displayName;const rT=w.forwardRef(({className:e,...t},n)=>S.jsx(eT,{ref:n,className:ie("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx(Qw,{className:"h-4 w-4"})}));rT.displayName=eT.displayName;const oT=w.forwardRef(({className:e,...t},n)=>S.jsx(QE,{ref:n,className:ie("text-sm font-semibold [&+div]:text-xs",e),...t}));oT.displayName=QE.displayName;const iT=w.forwardRef(({className:e,...t},n)=>S.jsx(ZE,{ref:n,className:ie("text-sm opacity-90",e),...t}));iT.displayName=ZE.displayName;const wF=1,bF=1e6;let nf=0;function xF(){return nf=(nf+1)%Number.MAX_SAFE_INTEGER,nf.toString()}const rf=new Map,ky=e=>{if(rf.has(e))return;const t=setTimeout(()=>{rf.delete(e),is({type:"REMOVE_TOAST",toastId:e})},bF);rf.set(e,t)},SF=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,wF)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ky(n):e.toasts.forEach(r=>{ky(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},il=[];let sl={toasts:[]};function is(e){sl=SF(sl,e),il.forEach(t=>{t(sl)})}function EF({...e}){const t=xF(),n=o=>is({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>is({type:"DISMISS_TOAST",toastId:t});return is({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function TF(){const[e,t]=w.useState(sl);return w.useEffect(()=>(il.push(t),()=>{const n=il.indexOf(t);n>-1&&il.splice(n,1)}),[e]),{...e,toast:EF,dismiss:n=>is({type:"DISMISS_TOAST",toastId:n})}}function PF(){const{toasts:e}=TF();return S.jsxs(vF,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return S.jsxs(nT,{...i,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(oT,{children:n}),r&&S.jsx(iT,{children:r})]}),o,S.jsx(rT,{})]},t)}),S.jsx(tT,{})]})}function CF(){return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"h-screen w-screen 2xl:p-13 xl:p-13 lg:p-13 md:p-8 p-8",children:S.jsx(Vs,{className:"m-0 h-full w-full p-0",children:S.jsxs(du,{className:"flex h-full w-full flex-row p-0",children:[S.jsx(AD,{}),S.jsx(X4,{})]})})}),S.jsx(PF,{})]})}of.createRoot(document.getElementById("root")).render(S.jsx(An.StrictMode,{children:S.jsx($C,{defaultTheme:"dark",storageKey:"vite-ui-theme",children:S.jsx(CF,{})})})); diff --git a/index.html b/index.html index a4ea6b9..58a4fd6 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ Fayaz Bin Salam - +