vendor: 26,146 bytes, lines 1-37
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var sp={exports:{}},da={},op={exports:{}},X={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Ss=Symbol.for("react.element"),Wv=Symbol.for("react.portal"),Kv=Symbol.for("react.fragment"),Gv=Symbol.for("react.strict_mode"),Yv=Symbol.for("react.profiler"),Qv=Symbol.for("react.provider"),Xv=Symbol.for("react.context"),qv=Symbol.for("react.forward_ref"),Zv=Symbol.for("react.suspense"),Jv=Symbol.for("react.memo"),ex=Symbol.for("react.lazy"),Yd=Symbol.iterator;function tx(e){return e===null||typeof e!="object"?null:(e=Yd&&e[Yd]||e["@@iterator"],typeof e=="function"?e:null)}var ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lp=Object.assign,up={};function ni(e,t,n){this.props=e,this.context=t,this.refs=up,this.updater=n||ap}ni.prototype.isReactComponent={};ni.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")};ni.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cp(){}cp.prototype=ni.prototype;function Zu(e,t,n){this.props=e,this.context=t,this.refs=up,this.updater=n||ap}var Ju=Zu.prototype=new cp;Ju.constructor=Zu;lp(Ju,ni.prototype);Ju.isPureReactComponent=!0;var Qd=Array.isArray,dp=Object.prototype.hasOwnProperty,ec={current:null},fp={key:!0,ref:!0,__self:!0,__source:!0};function hp(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)dp.call(t,r)&&!fp.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ss,type:e,key:s,ref:o,props:i,_owner:ec.current}}function nx(e,t){return{$$typeof:Ss,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ss}function rx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xd=/\/+/g;function Ba(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rx(""+e.key):t.toString(36)}function lo(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ss:case Wv:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ba(o,0):r,Qd(i)?(n="",e!=null&&(n=e.replace(Xd,"$&/")+"/"),lo(i,t,n,"",function(c){return c})):i!=null&&(tc(i)&&(i=nx(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Xd,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Qd(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+Ba(s,a);o+=lo(s,t,n,u,i)}else if(u=tx(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+Ba(s,a++),o+=lo(s,t,n,u,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Fs(e,t,n){if(e==null)return e;var r=[],i=0;return lo(e,r,"","",function(s){return t.call(n,s,i++)}),r}function ix(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qe={current:null},uo={transition:null},sx={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:uo,ReactCurrentOwner:ec};function mp(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Fs,forEach:function(e,t,n){Fs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fs(e,function(){t++}),t},toArray:function(e){return Fs(e,function(t){return t})||[]},only:function(e){if(!tc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=ni;X.Fragment=Kv;X.Profiler=Yv;X.PureComponent=Zu;X.StrictMode=Gv;X.Suspense=Zv;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sx;X.act=mp;X.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=lp({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=ec.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)dp.call(t,u)&&!fp.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ss,type:e.type,key:i,ref:s,props:r,_owner:o}};X.createContext=function(e){return e={$$typeof:Xv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qv,_context:e},e.Consumer=e};X.createElement=hp;X.createFactory=function(e){var t=hp.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:qv,render:e}};X.isValidElement=tc;X.lazy=function(e){return{$$typeof:ex,_payload:{_status:-1,_result:e},_init:ix}};X.memo=function(e,t){return{$$typeof:Jv,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=uo.transition;uo.transition={};try{e()}finally{uo.transition=t}};X.unstable_act=mp;X.useCallback=function(e,t){return qe.current.useCallback(e,t)};X.useContext=function(e){return qe.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return qe.current.useDeferredValue(e)};X.useEffect=function(e,t){return qe.current.useEffect(e,t)};X.useId=function(){return qe.current.useId()};X.useImperativeHandle=function(e,t,n){return qe.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return qe.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return qe.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return qe.current.useMemo(e,t)};X.useReducer=function(e,t,n){return qe.current.useReducer(e,t,n)};X.useRef=function(e){return qe.current.useRef(e)};X.useState=function(e){return qe.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return qe.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return qe.current.useTransition()};X.version="18.3.1";op.exports=X;var w=op.exports;/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var ox=w,ax=Symbol.for("react.element"),lx=Symbol.for("react.fragment"),ux=Object.prototype.hasOwnProperty,cx=ox.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dx={key:!0,ref:!0,__self:!0,__source:!0};function pp(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ux.call(t,r)&&!dx.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ax,type:e,key:s,ref:o,props:i,_owner:cx.current}}da.Fragment=lx;da.jsx=pp;da.jsxs=pp;sp.exports=da;var l=sp.exports,yp={exports:{}},ht={},gp={exports:{}},vp={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(L,_){var F=L.length;L.push(_);e:for(;0<F;){var ee=F-1>>>1,se=L[ee];if(0<i(se,_))L[ee]=_,L[F]=se,F=ee;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var _=L[0],F=L.pop();if(F!==_){L[0]=F;e:for(var ee=0,se=L.length,ke=se>>>1;ee<ke;){var We=2*(ee+1)-1,ln=L[We],Ke=We+1,gr=L[Ke];if(0>i(ln,F))Ke<se&&0>i(gr,ln)?(L[ee]=gr,L[Ke]=F,ee=Ke):(L[ee]=ln,L[We]=F,ee=We);else if(Ke<se&&0>i(gr,F))L[ee]=gr,L[Ke]=F,ee=Ke;else break e}}return _}function i(L,_){var F=L.sortIndex-_.sortIndex;return F!==0?F:L.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],d=1,f=null,h=3,p=!1,x=!1,j=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=L)r(c),_.sortIndex=_.expirationTime,t(u,_);else break;_=n(c)}}function N(L){if(j=!1,y(L),!x)if(n(u)!==null)x=!0,re(P);else{var _=n(c);_!==null&&q(N,_.startTime-L)}}function P(L,_){x=!1,j&&(j=!1,m(T),T=-1),p=!0;var F=h;try{for(y(_),f=n(u);f!==null&&(!(f.expirationTime>_)||L&&!ie());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,h=f.priorityLevel;var se=ee(f.expirationTime<=_);_=e.unstable_now(),typeof se=="function"?f.callback=se:f===n(u)&&r(u),y(_)}else r(u);f=n(u)}if(f!==null)var ke=!0;else{var We=n(c);We!==null&&q(N,We.startTime-_),ke=!1}return ke}finally{f=null,h=F,p=!1}}var v=!1,b=null,T=-1,A=5,I=-1;function ie(){return!(e.unstable_now()-I<A)}function _e(){if(b!==null){var L=e.unstable_now();I=L;var _=!0;try{_=b(!0,L)}finally{_?He():(v=!1,b=null)}}else v=!1}var He;if(typeof g=="function")He=function(){g(_e)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,me=J.port2;J.port1.onmessage=_e,He=function(){me.postMessage(null)}}else He=function(){E(_e,0)};function re(L){b=L,v||(v=!0,He())}function q(L,_){T=E(function(){L(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,re(P))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(L){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var F=h;h=_;try{return L()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,_){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=h;h=L;try{return _()}finally{h=F}},e.unstable_scheduleCallback=function(L,_,F){var ee=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ee+F:ee):F=ee,L){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=F+se,L={id:d++,callback:_,priorityLevel:L,startTime:F,expirationTime:se,sortIndex:-1},F>ee?(L.sortIndex=F,t(c,L),n(u)===null&&L===n(c)&&(j?(m(T),T=-1):j=!0,q(N,F-ee))):(L.sortIndex=se,t(u,L),x||p||(x=!0,re(P))),L},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(L){var _=h;return function(){var F=h;h=_;try{return L.apply(this,arguments)}finally{h=F}}}})(vp);gp.exports=vp;var fx=gp.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var hx=w,ft=fx;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xp=new Set,Xi={};function hr(e,t){Gr(e,t),Gr(e+"Capture",t)}function Gr(e,t){for(Xi[e]=t,e=0;e<t.length;e++)xp.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=Object.prototype.hasOwnProperty,mx=/^[: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]*$/,qd={},Zd={};function px(e){return Ll.call(Zd,e)?!0:Ll.call(qd,e)?!1:mx.test(e)?Zd[e]=!0:(qd[e]=!0,!1)}function yx(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 gx(e,t,n,r){if(t===null||typeof t>"u"||yx(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 Ze(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new Ze(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){Ve[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var nc=/[\-:]([a-z])/g;function rc(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(nc,rc);Ve[t]=new Ze(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(nc,rc);Ve[t]=new Ze(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(nc,rc);Ve[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function ic(e,t,n,r){var i=Ve.hasOwnProperty(t)?Ve[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gx(t,n,i,r)&&(n=null),r||i===null?px(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var on=hx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zs=Symbol.for("react.element"),jr=Symbol.for("react.portal"),kr=Symbol.for("react.fragment"),sc=Symbol.for("react.strict_mode"),Al=Symbol.for("react.profiler"),wp=Symbol.for("react.provider"),Sp=Symbol.for("react.context"),oc=Symbol.for("react.forward_ref"),Dl=Symbol.for("react.suspense"),Il=Symbol.for("react.suspense_list"),ac=Symbol.for("react.memo"),gn=Symbol.for("react.lazy"),jp=Symbol.for("react.offscreen"),Jd=Symbol.iterator;function mi(e){return e===null||typeof e!="object"?null:(e=Jd&&e[Jd]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,Ua;function Ci(e){if(Ua===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ua=t&&t[1]||""}return` 34`+Ua+e}var $a=!1;function Ha(e,t){if(!e||$a)return"";$a=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(` 35`),s=r.stack.split(` 36`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var u=` 37`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{$a=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ci(e):""}function vx(e){switch(e.tag){case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 2:case 15:return e=Ha(e.type,!1),e;case 11:return e=Ha(e.type.render,!1),e;case 1:return e=Ha(e.type,!0),e;default:return""}}function Ol(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 kr:return"Fragment";case jr:return"Portal";case Al:return"Profiler";case sc:return"StrictMode";case Dl:return"Suspense";case Il:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sp:return(e.displayName||"Context")+".Consumer";case wp:return(e._context.displayName||"Context")+".Provider";case oc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ac:return t=e.displayName||null,t!==null?t:Ol(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return Ol(e(t))}catch{}}return null}function xx(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 Ol(t);case 8:return t===sc?"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 Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wx(e){var t=kp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){e._valueTracker||(e._valueTracker=wx(e))}function Np(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mo(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 Vl(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ef(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(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 Pp(e,t){t=t.checked,t!=null&&ic(e,"checked",t,!1)}function _l(e,t){Pp(e,t);var n=Ln(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")?Fl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fl(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tf(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 Fl(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ti=Array.isArray;function zr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function zl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Ti(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function Ep(e,t){var n=Ln(t.value),r=Ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function rf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Bl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Us,Tp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Us=Us||document.createElement("div"),Us.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qi(e,t){if(t){var n=e.firstChild;
vendor: 7,946 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ii={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},Sx=["Webkit","ms","Moz","O"];Object.keys(Ii).forEach(function(e){Sx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ii[t]=Ii[e]})});function bp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ii.hasOwnProperty(e)&&Ii[e]?(""+t).trim():t+"px"}function Mp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jx=ve({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 Ul(e,t){if(t){if(jx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function $l(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 Hl=null;function lc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,Br=null,Ur=null;function sf(e){if(e=Ns(e)){if(typeof Wl!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ya(t),Wl(e.stateNode,e.type,t))}}function Rp(e){Br?Ur?Ur.push(e):Ur=[e]:Br=e}function Lp(){if(Br){var e=Br,t=Ur;if(Ur=Br=null,sf(e),t)for(e=0;e<t.length;e++)sf(t[e])}}function Ap(e,t){return e(t)}function Dp(){}var Wa=!1;function Ip(e,t,n){if(Wa)return e(t,n);Wa=!0;try{return Ap(e,t,n)}finally{Wa=!1,(Br!==null||Ur!==null)&&(Dp(),Lp())}}function Zi(e,t){var n=e.stateNode;if(n===null)return null;var r=ya(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Kl=!1;if(en)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){Kl=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{Kl=!1}function kx(e,t,n,r,i,s,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Oi=!1,Ro=null,Lo=!1,Gl=null,Nx={onError:function(e){Oi=!0,Ro=e}};function Px(e,t,n,r,i,s,o,a,u){Oi=!1,Ro=null,kx.apply(Nx,arguments)}function Ex(e,t,n,r,i,s,o,a,u){if(Px.apply(this,arguments),Oi){if(Oi){var c=Ro;Oi=!1,Ro=null}else throw Error(R(198));Lo||(Lo=!0,Gl=c)}}function mr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Op(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function of(e){if(mr(e)!==e)throw Error(R(188))}function Cx(e){var t=e.alternate;if(!t){if(t=mr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return of(i),e;if(s===r)return of(i),t;s=s.sibling}throw Error(R(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Vp(e){return e=Cx(e),e!==null?_p(e):null}function _p(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_p(e);if(t!==null)return t;e=e.sibling}return null}var Fp=ft.unstable_scheduleCallback,af=ft.unstable_cancelCallback,Tx=ft.unstable_shouldYield,bx=ft.unstable_requestPaint,je=ft.unstable_now,Mx=ft.unstable_getCurrentPriorityLevel,uc=ft.unstable_ImmediatePriority,zp=ft.unstable_UserBlockingPriority,Ao=ft.unstable_NormalPriority,Rx=ft.unstable_LowPriority,Bp=ft.unstable_IdlePriority,fa=null,zt=null;function Lx(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(fa,e,void 0,(e.current.flags&128)===128)}catch{}}var At=Math.clz32?Math.clz32:Ix,Ax=Math.log,Dx=Math.LN2;function Ix(e){return e>>>=0,e===0?32:31-(Ax(e)/Dx|0)|0}var $s=64,Hs=4194304;function bi(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 Do(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=bi(a):(s&=o,s!==0&&(r=bi(s)))}else o=n&~i,o!==0?r=bi(o):s!==0&&(r=bi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-At(t),i=1<<n,r|=e[n],t&=~i;return r}function Ox(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vx(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-At(s),a=1<<o,u=i[o];u===-1?(!(a&n)||a&r)&&(i[o]=Ox(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Yl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Up(){var e=$s;return $s<<=1,!($s&4194240)&&($s=64),e}function Ka(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function js(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function _x(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-At(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function cc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-At(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var oe=0;function $p(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}
vendor: 11,350 bytes, line 37
37var Hp,dc,Wp,Kp,Gp,Ql=!1,Ws=[],Nn=null,Pn=null,En=null,Ji=new Map,es=new Map,xn=[],Fx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function lf(e,t){switch(e){case"focusin":case"focusout":Nn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":En=null;break;case"pointerover":case"pointerout":Ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":es.delete(t.pointerId)}}function yi(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Ns(t),t!==null&&dc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zx(e,t,n,r,i){switch(t){case"focusin":return Nn=yi(Nn,e,t,n,r,i),!0;case"dragenter":return Pn=yi(Pn,e,t,n,r,i),!0;case"mouseover":return En=yi(En,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Ji.set(s,yi(Ji.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,es.set(s,yi(es.get(s)||null,e,t,n,r,i)),!0}return!1}function Yp(e){var t=Xn(e.target);if(t!==null){var n=mr(t);if(n!==null){if(t=n.tag,t===13){if(t=Op(n),t!==null){e.blockedOn=t,Gp(e.priority,function(){Wp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Hl=r,n.target.dispatchEvent(r),Hl=null}else return t=Ns(n),t!==null&&dc(t),e.blockedOn=n,!1;t.shift()}return!0}function uf(e,t,n){co(e)&&n.delete(t)}function Bx(){Ql=!1,Nn!==null&&co(Nn)&&(Nn=null),Pn!==null&&co(Pn)&&(Pn=null),En!==null&&co(En)&&(En=null),Ji.forEach(uf),es.forEach(uf)}function gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ql||(Ql=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,Bx)))}function ts(e){function t(i){return gi(i,e)}if(0<Ws.length){gi(Ws[0],e);for(var n=1;n<Ws.length;n++){var r=Ws[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Nn!==null&&gi(Nn,e),Pn!==null&&gi(Pn,e),En!==null&&gi(En,e),Ji.forEach(t),es.forEach(t),n=0;n<xn.length;n++)r=xn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xn.length&&(n=xn[0],n.blockedOn===null);)Yp(n),n.blockedOn===null&&xn.shift()}var $r=on.ReactCurrentBatchConfig,Io=!0;function Ux(e,t,n,r){var i=oe,s=$r.transition;$r.transition=null;try{oe=1,fc(e,t,n,r)}finally{oe=i,$r.transition=s}}function $x(e,t,n,r){var i=oe,s=$r.transition;$r.transition=null;try{oe=4,fc(e,t,n,r)}finally{oe=i,$r.transition=s}}function fc(e,t,n,r){if(Io){var i=Xl(e,t,n,r);if(i===null)nl(e,t,r,Oo,n),lf(e,r);else if(zx(i,e,t,n,r))r.stopPropagation();else if(lf(e,r),t&4&&-1<Fx.indexOf(e)){for(;i!==null;){var s=Ns(i);if(s!==null&&Hp(s),s=Xl(e,t,n,r),s===null&&nl(e,t,r,Oo,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else nl(e,t,r,null,n)}}var Oo=null;function Xl(e,t,n,r){if(Oo=null,e=lc(r),e=Xn(e),e!==null)if(t=mr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Op(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Oo=e,null}function Qp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Mx()){case uc:return 1;case zp:return 4;case Ao:case Rx:return 16;case Bp:return 536870912;default:return 16}default:return 16}}var jn=null,hc=null,fo=null;function Xp(){if(fo)return fo;var e,t=hc,n=t.length,r,i="value"in jn?jn.value:jn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return fo=i.slice(e,1<r?1-r:void 0)}function ho(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ks(){return!0}function cf(){return!1}function mt(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ks:cf,this.isPropagationStopped=cf,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),t}var ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mc=mt(ri),ks=ve({},ri,{view:0,detail:0}),Hx=mt(ks),Ga,Ya,vi,ha=ve({},ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vi&&(vi&&e.type==="mousemove"?(Ga=e.screenX-vi.screenX,Ya=e.screenY-vi.screenY):Ya=Ga=0,vi=e),Ga)},movementY:function(e){return"movementY"in e?e.movementY:Ya}}),df=mt(ha),Wx=ve({},ha,{dataTransfer:0}),Kx=mt(Wx),Gx=ve({},ks,{relatedTarget:0}),Qa=mt(Gx),Yx=ve({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),Qx=mt(Yx),Xx=ve({},ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qx=mt(Xx),Zx=ve({},ri,{data:0}),ff=mt(Zx),Jx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},t1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=t1[e])?!!t[e]:!1}function pc(){return n1}var r1=ve({},ks,{key:function(e){if(e.key){var t=Jx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ho(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?e1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(e){return e.type==="keypress"?ho(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ho(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),i1=mt(r1),s1=ve({},ha,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hf=mt(s1),o1=ve({},ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),a1=mt(o1),l1=ve({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),u1=mt(l1),c1=ve({},ha,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),d1=mt(c1),f1=[9,13,27,32],yc=en&&"CompositionEvent"in window,Vi=null;en&&"documentMode"in document&&(Vi=document.documentMode);var h1=en&&"TextEvent"in window&&!Vi,qp=en&&(!yc||Vi&&8<Vi&&11>=Vi),mf=" ",pf=!1;function Zp(e,t){switch(e){case"keyup":return f1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nr=!1;function m1(e,t){switch(e){case"compositionend":return Jp(t);case"keypress":return t.which!==32?null:(pf=!0,mf);case"textInput":return e=t.data,e===mf&&pf?null:e;default:return null}}function p1(e,t){if(Nr)return e==="compositionend"||!yc&&Zp(e,t)?(e=Xp(),fo=hc=jn=null,Nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qp&&t.locale!=="ko"?null:t.data;default:return null}}var y1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!y1[e.type]:t==="textarea"}function ey(e,t,n,r){Rp(r),t=Vo(t,"onChange"),0<t.length&&(n=new mc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _i=null,ns=null;function g1(e){dy(e,0)}function ma(e){var t=Cr(e);if(Np(t))return e}function v1(e,t){if(e==="change")return t}var ty=!1;if(en){var Xa;if(en){var qa="oninput"in document;if(!qa){var gf=document.createElement("div");gf.setAttribute("oninput","return;"),qa=typeof gf.oninput=="function"}Xa=qa}else Xa=!1;ty=Xa&&(!document.documentMode||9<document.documentMode)}function vf(){_i&&(_i.detachEvent("onpropertychange",ny),ns=_i=null)}function ny(e){if(e.propertyName==="value"&&ma(ns)){var t=[];ey(t,ns,e,lc(e)),Ip(g1,t)}}function x1(e,t,n){e==="focusin"?(vf(),_i=t,ns=n,_i.attachEvent("onpropertychange",ny)):e==="focusout"&&vf()}function w1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ma(ns)}function S1(e,t){if(e==="click")return ma(t)}function j1(e,t){if(e==="input"||e==="change")return ma(t)}function k1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var It=typeof Object.is=="function"?Object.is:k1;function rs(e,t){if(It(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ll.call(t,i)||!It(e[i],t[i]))return!1}return!0}function xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wf(e,t){var n=xf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xf(n)}}function ry(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ry(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iy(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function gc(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 N1(e){var t=iy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ry(n.ownerDocument.documentElement,n)){if(r!==null&&gc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=wf(n,s);var o=wf(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var P1=en&&"documentMode"in document&&11>=document.documentMode,Pr=null,ql=null,Fi=null,Zl=!1;function Sf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zl||Pr==null||Pr!==Mo(r)||(r=Pr,"selectionStart"in r&&gc(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}),Fi&&rs(Fi,r)||(Fi=r,r=Vo(ql,"onSelect"),0<r.length&&(t=new mc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pr)))}function Gs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionend:Gs("Transition","TransitionEnd")},Za={},sy={};en&&(sy=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);function pa(e){if(Za[e])return Za[e];if(!Er[e])return e;var t=Er[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sy)return Za[e]=t[n];return e}var oy=pa("animationend"),ay=pa("animationiteration"),ly=pa("animationstart"),uy=pa("transitionend"),cy=new Map,jf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function On(e,t){cy.set(e,t),hr(t,[e])}for(var Ja=0;Ja<jf.length;Ja++){var el=jf[Ja],E1=el.toLowerCase(),C1=el[0].toUpperCase()+el.slice(1);On(E1,"on"+C1)}On(oy,"onAnimationEnd");On(ay,"onAnimationIteration");On(ly,"onAnimationStart");On("dblclick","onDoubleClick");On("focusin","onFocus");On("focusout","onBlur");On(uy,"onTransitionEnd");Gr("onMouseEnter",["mouseout","mouseover"]);Gr("onMouseLeave",["mouseout","mouseover"]);Gr("onPointerEnter",["pointerout","pointerover"]);Gr("onPointerLeave",["pointerout","pointerover"]);hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hr("onBeforeInput",["compositionend","keypress","textInput","paste"]);hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mi));function kf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ex(r,t,void 0,e),e.currentTarget=null}function dy(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==s&&i.isPropagationStopped())break e;kf(i,a,c),s=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==s&&i.isPropagationStopped())break e;kf(i,a,c),s=u}}}if(Lo)throw e=Gl,Lo=!1,Gl=null,e}function de(e,t){var n=t[ru];n===void 0&&(n=t[ru]=new Set);var r=e+"__bubble";n.has(r)||(fy(t,e,2,!1),n.add(r))}function tl(e,t,n){var r=0;t&&(r|=4),fy(n,e,r,t)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function is(e){if(!e[Ys]){e[Ys]=!0,xp.forEach(function(n){n!=="selectionchange"&&(T1.has(n)||tl(n,!1,e),tl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ys]||(t[Ys]=!0,tl("selectionchange",!1,t))}}function fy(e,t,n,r){switch(Qp(t)){case 1:var i=Ux;break;case 4:i=$x;break;default:i=fc}n=i.bind(null,t,n,e),i=void 0,!Kl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function nl(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Xn(a),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Ip(function(){var c=s,d=lc(n),f=[];e:{var h=cy.get(e);if(h!==void 0){var p=mc,x=e;switch(e){case"keypress":if(ho(n)===0)break e;case"keydown":case"keyup":p=i1;break;case"focusin":x="focus",p=Qa;break;case"focusout":x="blur",p=Qa;break;case"beforeblur":case"afterblur":p=Qa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=df;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Kx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=a1;break;case oy:case ay:case ly:p=Qx;break;case uy:p=u1;break;case"scroll":p=Hx;break;case"wheel":p=d1;break;case"copy":case"cut":case"paste":p=qx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=hf}var j=(t&4)!==0,E=!j&&e==="scroll",m=j?h!==null?h+"Capture":null:h;j=[];for(var g=c,y;g!==null;){y=g;var N=y.stateNode;if(y.tag===5&&N!==null&&(y=N,m!==null&&(N=Zi(g,m),N!=null&&j.push(ss(g,N,y)))),E)break;g=g.return}0<j.length&&(h=new p(h,x,null,n,d),f.push({event:h,listeners:j}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Hl&&(x=n.relatedTarget||n.fromElement)&&(Xn(x)||x[tn]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(x=n.relatedTarget||n.toElement,p=c,x=x?Xn(x):null,x!==null&&(E=mr(x),x!==E||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=c),p!==x)){if(j=df,N="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(j=hf,N="onPointerLeave",m="onPointerEnter",g="pointer"),E=p==null?h:Cr(p),y=x==null?h:Cr(x),h=new j(N,g+"leave",p,n,d),h.target=E,h.relatedTarget=y,N=null,Xn(d)===c&&(j=new j(m,g+"enter",x,n,d),j.target=y,j.relatedTarget=E,N=j),E=N,p&&x)t:{for(j=p,m=x,g=0,y=j;y;y=wr(y))g++;for(y=0,N=m;N;N=wr(N))y++;for(;0<g-y;)j=wr(j),g--;for(;0<y-g;)m=wr(m),y--;for(;g--;){if(j===m||m!==null&&j===m.alternate)break t;j=wr(j),m=wr(m)}j=null}else j=null;p!==null&&Nf(f,h,p,j,!1),x!==null&&E!==null&&Nf(f,E,x,j,!0)}}
vendor: 5,406 bytes, lines 37-38
37e:{if(h=c?Cr(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var P=v1;else if(yf(h))if(ty)P=j1;else{P=w1;var v=x1}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(P=S1);if(P&&(P=P(e,c))){ey(f,P,n,d);break e}v&&v(e,h,c),e==="focusout"&&(v=h._wrapperState)&&v.controlled&&h.type==="number"&&Fl(h,"number",h.value)}switch(v=c?Cr(c):window,e){case"focusin":(yf(v)||v.contentEditable==="true")&&(Pr=v,ql=c,Fi=null);break;case"focusout":Fi=ql=Pr=null;break;case"mousedown":Zl=!0;break;case"contextmenu":case"mouseup":case"dragend":Zl=!1,Sf(f,n,d);break;case"selectionchange":if(P1)break;case"keydown":case"keyup":Sf(f,n,d)}var b;if(yc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Nr?Zp(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(qp&&n.locale!=="ko"&&(Nr||T!=="onCompositionStart"?T==="onCompositionEnd"&&Nr&&(b=Xp()):(jn=d,hc="value"in jn?jn.value:jn.textContent,Nr=!0)),v=Vo(c,T),0<v.length&&(T=new ff(T,e,null,n,d),f.push({event:T,listeners:v}),b?T.data=b:(b=Jp(n),b!==null&&(T.data=b)))),(b=h1?m1(e,n):p1(e,n))&&(c=Vo(c,"onBeforeInput"),0<c.length&&(d=new ff("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=b))}dy(f,t)})}function ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Zi(e,n),s!=null&&r.unshift(ss(e,s,i)),s=Zi(e,t),s!=null&&r.push(ss(e,s,i))),e=e.return}return r}function wr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nf(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,i?(u=Zi(n,s),u!=null&&o.unshift(ss(n,u,a))):i||(u=Zi(n,s),u!=null&&o.push(ss(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var b1=/\r\n?/g,M1=/\u0000|\uFFFD/g;function Pf(e){return(typeof e=="string"?e:""+e).replace(b1,` 38`).replace(M1,"")}function Qs(e,t,n){if(t=Pf(t),Pf(e)!==t&&n)throw Error(R(425))}function _o(){}var Jl=null,eu=null;function tu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nu=typeof setTimeout=="function"?setTimeout:void 0,R1=typeof clearTimeout=="function"?clearTimeout:void 0,Ef=typeof Promise=="function"?Promise:void 0,L1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ef<"u"?function(e){return Ef.resolve(null).then(e).catch(A1)}:nu;function A1(e){setTimeout(function(){throw e})}function rl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ts(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ts(t)}function Cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Cf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ii=Math.random().toString(36).slice(2),Ft="__reactFiber$"+ii,os="__reactProps$"+ii,tn="__reactContainer$"+ii,ru="__reactEvents$"+ii,D1="__reactListeners$"+ii,I1="__reactHandles$"+ii;function Xn(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cf(e);e!==null;){if(n=e[Ft])return n;e=Cf(e)}return t}e=n,n=e.parentNode}return null}function Ns(e){return e=e[Ft]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ya(e){return e[os]||null}var iu=[],Tr=-1;function Vn(e){return{current:e}}function fe(e){0>Tr||(e.current=iu[Tr],iu[Tr]=null,Tr--)}function ce(e,t){Tr++,iu[Tr]=e.current,e.current=t}var An={},$e=Vn(An),nt=Vn(!1),lr=An;function Yr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rt(e){return e=e.childContextTypes,e!=null}function Fo(){fe(nt),fe($e)}function Tf(e,t,n){if($e.current!==An)throw Error(R(168));ce($e,t),ce(nt,n)}function hy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,xx(e)||"Unknown",i));return ve({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,lr=$e.current,ce($e,e),ce(nt,nt.current),!0}function bf(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=hy(e,t,lr),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe($e),ce($e,e)):fe(nt),ce(nt,n)}var Xt=null,ga=!1,il=!1;function my(e){Xt===null?Xt=[e]:Xt.push(e)}function O1(e){ga=!0,my(e)}function _n(){if(!il&&Xt!==null){il=!0;var e=0,t=oe;try{var n=Xt;
vendor: 26,461 bytes, lines 38-40
38for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xt=null,ga=!1}catch(i){throw Xt!==null&&(Xt=Xt.slice(e+1)),Fp(uc,_n),i}finally{oe=t,il=!1}}return null}var br=[],Mr=0,Bo=null,Uo=0,wt=[],St=0,ur=null,qt=1,Zt="";function Kn(e,t){br[Mr++]=Uo,br[Mr++]=Bo,Bo=e,Uo=t}function py(e,t,n){wt[St++]=qt,wt[St++]=Zt,wt[St++]=ur,ur=e;var r=qt;e=Zt;var i=32-At(r)-1;r&=~(1<<i),n+=1;var s=32-At(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qt=1<<32-At(t)+i|n<<i|r,Zt=s+e}else qt=1<<s|n<<i|r,Zt=e}function vc(e){e.return!==null&&(Kn(e,1),py(e,1,0))}function xc(e){for(;e===Bo;)Bo=br[--Mr],br[Mr]=null,Uo=br[--Mr],br[Mr]=null;for(;e===ur;)ur=wt[--St],wt[St]=null,Zt=wt[--St],wt[St]=null,qt=wt[--St],wt[St]=null}var dt=null,ct=null,he=!1,Rt=null;function yy(e,t){var n=jt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Mf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,dt=e,ct=Cn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dt=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ur!==null?{id:qt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=jt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,dt=e,ct=null,!0):!1;default:return!1}}function su(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ou(e){if(he){var t=ct;if(t){var n=t;if(!Mf(e,t)){if(su(e))throw Error(R(418));t=Cn(n.nextSibling);var r=dt;t&&Mf(e,t)?yy(r,n):(e.flags=e.flags&-4097|2,he=!1,dt=e)}}else{if(su(e))throw Error(R(418));e.flags=e.flags&-4097|2,he=!1,dt=e}}}function Rf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;dt=e}function Xs(e){if(e!==dt)return!1;if(!he)return Rf(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tu(e.type,e.memoizedProps)),t&&(t=ct)){if(su(e))throw gy(),Error(R(418));for(;t;)yy(e,t),t=Cn(t.nextSibling)}if(Rf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ct=Cn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=dt?Cn(e.stateNode.nextSibling):null;return!0}function gy(){for(var e=ct;e;)e=Cn(e.nextSibling)}function Qr(){ct=dt=null,he=!1}function wc(e){Rt===null?Rt=[e]:Rt.push(e)}var V1=on.ReactCurrentBatchConfig;function xi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function qs(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lf(e){var t=e._init;return t(e._payload)}function vy(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=Rn(m,g),m.index=0,m.sibling=null,m}function s(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,y,N){return g===null||g.tag!==6?(g=dl(y,m.mode,N),g.return=m,g):(g=i(g,y),g.return=m,g)}function u(m,g,y,N){var P=y.type;return P===kr?d(m,g,y.props.children,N,y.key):g!==null&&(g.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===gn&&Lf(P)===g.type)?(N=i(g,y.props),N.ref=xi(m,g,y),N.return=m,N):(N=wo(y.type,y.key,y.props,null,m.mode,N),N.ref=xi(m,g,y),N.return=m,N)}function c(m,g,y,N){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=fl(y,m.mode,N),g.return=m,g):(g=i(g,y.children||[]),g.return=m,g)}function d(m,g,y,N,P){return g===null||g.tag!==7?(g=ir(y,m.mode,N,P),g.return=m,g):(g=i(g,y),g.return=m,g)}function f(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=dl(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zs:return y=wo(g.type,g.key,g.props,null,m.mode,y),y.ref=xi(m,null,g),y.return=m,y;case jr:return g=fl(g,m.mode,y),g.return=m,g;case gn:var N=g._init;return f(m,N(g._payload),y)}if(Ti(g)||mi(g))return g=ir(g,m.mode,y,null),g.return=m,g;qs(m,g)}return null}function h(m,g,y,N){var P=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return P!==null?null:a(m,g,""+y,N);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zs:return y.key===P?u(m,g,y,N):null;case jr:return y.key===P?c(m,g,y,N):null;case gn:return P=y._init,h(m,g,P(y._payload),N)}if(Ti(y)||mi(y))return P!==null?null:d(m,g,y,N,null);qs(m,y)}return null}function p(m,g,y,N,P){if(typeof N=="string"&&N!==""||typeof N=="number")return m=m.get(y)||null,a(g,m,""+N,P);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case zs:return m=m.get(N.key===null?y:N.key)||null,u(g,m,N,P);case jr:return m=m.get(N.key===null?y:N.key)||null,c(g,m,N,P);case gn:var v=N._init;return p(m,g,y,v(N._payload),P)}if(Ti(N)||mi(N))return m=m.get(y)||null,d(g,m,N,P,null);qs(g,N)}return null}function x(m,g,y,N){for(var P=null,v=null,b=g,T=g=0,A=null;b!==null&&T<y.length;T++){b.index>T?(A=b,b=null):A=b.sibling;var I=h(m,b,y[T],N);if(I===null){b===null&&(b=A);break}e&&b&&I.alternate===null&&t(m,b),g=s(I,g,T),v===null?P=I:v.sibling=I,v=I,b=A}if(T===y.length)return n(m,b),he&&Kn(m,T),P;if(b===null){for(;T<y.length;T++)b=f(m,y[T],N),b!==null&&(g=s(b,g,T),v===null?P=b:v.sibling=b,v=b);return he&&Kn(m,T),P}for(b=r(m,b);T<y.length;T++)A=p(b,m,T,y[T],N),A!==null&&(e&&A.alternate!==null&&b.delete(A.key===null?T:A.key),g=s(A,g,T),v===null?P=A:v.sibling=A,v=A);return e&&b.forEach(function(ie){return t(m,ie)}),he&&Kn(m,T),P}function j(m,g,y,N){var P=mi(y);if(typeof P!="function")throw Error(R(150));if(y=P.call(y),y==null)throw Error(R(151));for(var v=P=null,b=g,T=g=0,A=null,I=y.next();b!==null&&!I.done;T++,I=y.next()){b.index>T?(A=b,b=null):A=b.sibling;var ie=h(m,b,I.value,N);if(ie===null){b===null&&(b=A);break}e&&b&&ie.alternate===null&&t(m,b),g=s(ie,g,T),v===null?P=ie:v.sibling=ie,v=ie,b=A}if(I.done)return n(m,b),he&&Kn(m,T),P;if(b===null){for(;!I.done;T++,I=y.next())I=f(m,I.value,N),I!==null&&(g=s(I,g,T),v===null?P=I:v.sibling=I,v=I);return he&&Kn(m,T),P}for(b=r(m,b);!I.done;T++,I=y.next())I=p(b,m,T,I.value,N),I!==null&&(e&&I.alternate!==null&&b.delete(I.key===null?T:I.key),g=s(I,g,T),v===null?P=I:v.sibling=I,v=I);return e&&b.forEach(function(_e){return t(m,_e)}),he&&Kn(m,T),P}function E(m,g,y,N){if(typeof y=="object"&&y!==null&&y.type===kr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case zs:e:{for(var P=y.key,v=g;v!==null;){if(v.key===P){if(P=y.type,P===kr){if(v.tag===7){n(m,v.sibling),g=i(v,y.props.children),g.return=m,m=g;break e}}else if(v.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===gn&&Lf(P)===v.type){n(m,v.sibling),g=i(v,y.props),g.ref=xi(m,v,y),g.return=m,m=g;break e}n(m,v);break}else t(m,v);v=v.sibling}y.type===kr?(g=ir(y.props.children,m.mode,N,y.key),g.return=m,m=g):(N=wo(y.type,y.key,y.props,null,m.mode,N),N.ref=xi(m,g,y),N.return=m,m=N)}return o(m);case jr:e:{for(v=y.key;g!==null;){if(g.key===v)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=i(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=fl(y,m.mode,N),g.return=m,m=g}return o(m);case gn:return v=y._init,E(m,g,v(y._payload),N)}if(Ti(y))return x(m,g,y,N);if(mi(y))return j(m,g,y,N);qs(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,y),g.return=m,m=g):(n(m,g),g=dl(y,m.mode,N),g.return=m,m=g),o(m)):n(m,g)}return E}var Xr=vy(!0),xy=vy(!1),$o=Vn(null),Ho=null,Rr=null,Sc=null;function jc(){Sc=Rr=Ho=null}function kc(e){var t=$o.current;fe($o),e._currentValue=t}function au(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 Hr(e,t){Ho=e,Sc=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(Sc!==e)if(e={context:e,memoizedValue:t,next:null},Rr===null){if(Ho===null)throw Error(R(308));Rr=e,Ho.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return t}var qn=null;function Nc(e){qn===null?qn=[e]:qn.push(e)}function wy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Nc(t)):(n.next=i.next,i.next=n),t.interleaved=n,nn(e,r)}function nn(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 vn=!1;function Pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sy(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 Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,nn(e,n)}return i=r.interleaved,i===null?(t.next=t,Nc(r)):(t.next=i.next,i.next=t),r.interleaved=t,nn(e,n)}function mo(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,cc(e,n)}}function Af(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Wo(e,t,n,r){var i=e.updateQueue;vn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?s=c:o.next=c,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(s!==null){var f=i.baseState;o=0,d=c=u=null,a=s;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,j=a;switch(h=t,p=n,j.tag){case 1:if(x=j.payload,typeof x=="function"){f=x.call(p,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=j.payload,h=typeof x=="function"?x.call(p,f,h):x,h==null)break e;f=ve({},f,h);break e;case 2:vn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,u=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);dr|=o,e.lanes=o,e.memoizedState=f}}function Df(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(R(191,i));i.call(r)}}}var Ps={},Bt=Vn(Ps),as=Vn(Ps),ls=Vn(Ps);function Zn(e){if(e===Ps)throw Error(R(174));return e}function Ec(e,t){switch(ce(ls,t),ce(as,e),ce(Bt,Ps),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bl(t,e)}fe(Bt),ce(Bt,t)}function qr(){fe(Bt),fe(as),fe(ls)}function jy(e){Zn(ls.current);var t=Zn(Bt.current),n=Bl(t,e.type);t!==n&&(ce(as,e),ce(Bt,n))}function Cc(e){as.current===e&&(fe(Bt),fe(as))}var pe=Vn(0);function Ko(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sl=[];function Tc(){for(var e=0;e<sl.length;e++)sl[e]._workInProgressVersionPrimary=null;sl.length=0}var po=on.ReactCurrentDispatcher,ol=on.ReactCurrentBatchConfig,cr=0,ge=null,be=null,Le=null,Go=!1,zi=!1,us=0,_1=0;function ze(){throw Error(R(321))}function bc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!It(e[n],t[n]))return!1;return!0}function Mc(e,t,n,r,i,s){if(cr=s,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,po.current=e===null||e.memoizedState===null?U1:$1,e=n(r,i),zi){s=0;do{if(zi=!1,us=0,25<=s)throw Error(R(301));s+=1,Le=be=null,t.updateQueue=null,po.current=H1,e=n(r,i)}while(zi)}if(po.current=Yo,t=be!==null&&be.next!==null,cr=0,Le=be=ge=null,Go=!1,t)throw Error(R(300));return e}function Rc(){var e=us!==0;return us=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?ge.memoizedState=Le=e:Le=Le.next=e,Le}function Pt(){if(be===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Le===null?ge.memoizedState:Le.next;if(t!==null)Le=t,be=e;else{if(e===null)throw Error(R(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Le===null?ge.memoizedState=Le=e:Le=Le.next=e}return Le}function cs(e,t){return typeof t=="function"?t(e):t}function al(e){var t=Pt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=be,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,u=null,c=s;do{var d=c.lane;if((cr&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=f,o=r):u=u.next=f,ge.lanes|=d,dr|=d}c=c.next}while(c!==null&&c!==s);u===null?o=r:u.next=a,It(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ge.lanes|=s,dr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ll(e){var t=Pt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);It(s,t.memoizedState)||(et=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function ky(){}function Ny(e,t){var n=ge,r=Pt(),i=t(),s=!It(r.memoizedState,i);if(s&&(r.memoizedState=i,et=!0),r=r.queue,Lc(Cy.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,ds(9,Ey.bind(null,n,r,i,t),void 0,null),De===null)throw Error(R(349));cr&30||Py(n,t,i)}return i}function Py(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ey(e,t,n,r){t.value=n,t.getSnapshot=r,Ty(t)&&by(e)}function Cy(e,t,n){return n(function(){Ty(t)&&by(e)})}function Ty(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!It(e,n)}catch{return!0}}function by(e){var t=nn(e,1);t!==null&&Dt(t,e,1,-1)}function If(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:e},t.queue=e,e=e.dispatch=B1.bind(null,ge,e),[t.memoizedState,e]}function ds(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function My(){return Pt().memoizedState}function yo(e,t,n,r){var i=_t();ge.flags|=e,i.memoizedState=ds(1|t,n,void 0,r===void 0?null:r)}function va(e,t,n,r){var i=Pt();r=r===void 0?null:r;var s=void 0;if(be!==null){var o=be.memoizedState;if(s=o.destroy,r!==null&&bc(r,o.deps)){i.memoizedState=ds(t,n,s,r);return}}ge.flags|=e,i.memoizedState=ds(1|t,n,s,r)}function Of(e,t){return yo(8390656,8,e,t)}function Lc(e,t){return va(2048,8,e,t)}function Ry(e,t){return va(4,2,e,t)}function Ly(e,t){return va(4,4,e,t)}function Ay(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dy(e,t,n){return n=n!=null?n.concat([e]):null,va(4,4,Ay.bind(null,t,e),n)}function Ac(){}function Iy(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oy(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vy(e,t,n){return cr&21?(It(n,t)||(n=Up(),ge.lanes|=n,dr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n)}function F1(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=ol.transition;ol.transition={};try{e(!1),t()}finally{oe=n,ol.transition=r}}function _y(){return Pt().memoizedState}function z1(e,t,n){var r=Mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fy(e))zy(t,n);else if(n=wy(e,t,n,r),n!==null){var i=Xe();Dt(n,e,r,i),By(n,t,r)}}function B1(e,t,n){var r=Mn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fy(e))zy(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,It(a,o)){var u=t.interleaved;u===null?(i.next=i,Nc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=wy(e,t,i,r),n!==null&&(i=Xe(),Dt(n,e,r,i),By(n,t,r))}}function Fy(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function zy(e,t){zi=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function By(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cc(e,n)}}var Yo={readContext:Nt,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},U1={readContext:Nt,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Of,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,Ay.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();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=z1.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:If,useDebugValue:Ac,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=If(!1),t=e[0];return e=F1.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=_t();if(he){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),De===null)throw Error(R(349));cr&30||Py(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Of(Cy.bind(null,r,s,e),[e]),r.flags|=2048,ds(9,Ey.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=_t(),t=De.identifierPrefix;if(he){var n=Zt,r=qt;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=us++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=_1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$1={readContext:Nt,useCallback:Iy,useContext:Nt,useEffect:Lc,useImperativeHandle:Dy,useInsertionEffect:Ry,useLayoutEffect:Ly,useMemo:Oy,useReducer:al,useRef:My,useState:function(){return al(cs)},useDebugValue:Ac,useDeferredValue:function(e){var t=Pt();return Vy(t,be.memoizedState,e)},useTransition:function(){var e=al(cs)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:ky,useSyncExternalStore:Ny,useId:_y,unstable_isNewReconciler:!1},H1={readContext:Nt,useCallback:Iy,useContext:Nt,useEffect:Lc,useImperativeHandle:Dy,useInsertionEffect:Ry,useLayoutEffect:Ly,useMemo:Oy,useReducer:ll,useRef:My,useState:function(){return ll(cs)},useDebugValue:Ac,useDeferredValue:function(e){var t=Pt();return be===null?t.memoizedState=e:Vy(t,be.memoizedState,e)},useTransition:function(){var e=ll(cs)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:ky,useSyncExternalStore:Ny,useId:_y,unstable_isNewReconciler:!1};function bt(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function lu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xa={isMounted:function(e){return(e=e._reactInternals)?mr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xe(),i=Mn(e),s=Jt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Tn(e,s,i),t!==null&&(Dt(t,e,i,r),mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xe(),i=Mn(e),s=Jt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Tn(e,s,i),t!==null&&(Dt(t,e,i,r),mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xe(),r=Mn(e),i=Jt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Tn(e,i,r),t!==null&&(Dt(t,e,r,n),mo(t,e,r))}};function Vf(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!rs(n,r)||!rs(i,s):!0}function Uy(e,t,n){var r=!1,i=An,s=t.contextType;return typeof s=="object"&&s!==null?s=Nt(s):(i=rt(t)?lr:$e.current,r=t.contextTypes,s=(r=r!=null)?Yr(e,i):An),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function _f(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xa.enqueueReplaceState(t,t.state,null)}function uu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Pc(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Nt(s):(s=rt(t)?lr:$e.current,i.context=Yr(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(lu(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&xa.enqueueReplaceState(i,i.state,null),Wo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Zr(e,t){try{var n="",r=t;do n+=vx(r),r=r.return;while(r);var i=n}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var W1=typeof WeakMap=="function"?WeakMap:Map;function $y(e,t,n){n=Jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xo||(Xo=!0,wu=r),cu(e,t)},n}function Hy(e,t,n){n=Jt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){cu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){cu(e,t),typeof r!="function"&&(bn===null?bn=new Set([this]):bn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ff(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new W1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=sw.bind(null,e,t,n),t.then(e,e))}function zf(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 Bf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Jt(-1,1),t.tag=2,Tn(n,t,1))),n.lanes|=1),e)}var K1=on.ReactCurrentOwner,et=!1;function Ye(e,t,n,r){t.child=e===null?xy(t,null,n,r):Xr(t,e.child,n,r)}function Uf(e,t,n,r,i){n=n.render;var s=t.ref;return Hr(t,i),r=Mc(e,t,n,r,s,i),n=Rc(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(he&&n&&vc(t),t.flags|=1,Ye(e,t,r,i
vendor: 10,132 bytes, line 40
40),t.child)}function $f(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Bc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Wy(e,t,s,r,i)):(e=wo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:rs,n(o,r)&&e.ref===t.ref)return rn(e,t,i)}return t.flags|=1,e=Rn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Wy(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(rs(s,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,rn(e,t,i)}return du(e,t,n,r,i)}function Ky(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(Ar,at),at|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(Ar,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ce(Ar,at),at|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ce(Ar,at),at|=r;return Ye(e,t,i,n),t.child}function Gy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function du(e,t,n,r,i){var s=rt(n)?lr:$e.current;return s=Yr(t,s),Hr(t,i),n=Mc(e,t,n,r,s,i),r=Rc(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(he&&r&&vc(t),t.flags|=1,Ye(e,t,n,i),t.child)}function Hf(e,t,n,r,i){if(rt(n)){var s=!0;zo(t)}else s=!1;if(Hr(t,i),t.stateNode===null)go(e,t),Uy(t,n,r),uu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Nt(c):(c=rt(n)?lr:$e.current,c=Yr(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&_f(t,o,r,c),vn=!1;var h=t.memoizedState;o.state=h,Wo(t,r,o,i),u=t.memoizedState,a!==r||h!==u||nt.current||vn?(typeof d=="function"&&(lu(t,n,d,r),u=t.memoizedState),(a=vn||Vf(t,n,a,r,h,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Sy(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:bt(t.type,a),o.props=c,f=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Nt(u):(u=rt(n)?lr:$e.current,u=Yr(t,u));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==u)&&_f(t,o,r,u),vn=!1,h=t.memoizedState,o.state=h,Wo(t,r,o,i);var x=t.memoizedState;a!==f||h!==x||nt.current||vn?(typeof p=="function"&&(lu(t,n,p,r),x=t.memoizedState),(c=vn||Vf(t,n,c,r,h,x,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return fu(e,t,n,r,s,i)}function fu(e,t,n,r,i,s){Gy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&bf(t,n,!1),rn(e,t,s);r=t.stateNode,K1.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Xr(t,e.child,null,s),t.child=Xr(t,null,a,s)):Ye(e,t,a,s),t.memoizedState=r.state,i&&bf(t,n,!0),t.child}function Yy(e){var t=e.stateNode;t.pendingContext?Tf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Tf(e,t.context,!1),Ec(e,t.containerInfo)}function Wf(e,t,n,r,i){return Qr(),wc(i),t.flags|=256,Ye(e,t,n,r),t.child}var hu={dehydrated:null,treeContext:null,retryLane:0};function mu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qy(e,t,n){var r=t.pendingProps,i=pe.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ce(pe,i&1),e===null)return ou(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):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=ja(o,r,0,null),e=ir(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=mu(n),t.memoizedState=hu,e):Dc(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return G1(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Rn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Rn(a,s):(s=ir(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?mu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=hu,r}return s=e.child,e=s.sibling,r=Rn(s,{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 Dc(e,t){return t=ja({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){return r!==null&&wc(r),Xr(t,e.child,null,n),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function G1(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ul(Error(R(422))),Zs(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ja({mode:"visible",children:r.children},i,0,null),s=ir(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Xr(t,e.child,null,o),t.child.memoizedState=mu(o),t.memoizedState=hu,s);if(!(t.mode&1))return Zs(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(R(419)),r=ul(s,r,void 0),Zs(e,t,o,r)}if(a=(o&e.childLanes)!==0,et||a){if(r=De,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,nn(e,i),Dt(r,e,i,-1))}return zc(),r=ul(Error(R(421))),Zs(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ow.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ct=Cn(i.nextSibling),dt=t,he=!0,Rt=null,e!==null&&(wt[St++]=qt,wt[St++]=Zt,wt[St++]=ur,qt=e.id,Zt=e.overflow,ur=t),t=Dc(t,r.children),t.flags|=4096,t)}function Kf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),au(e.return,t,n)}function cl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Xy(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ye(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&&Kf(e,n,t);else if(e.tag===19)Kf(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(ce(pe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ko(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ko(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cl(t,!0,n,null,s);break;case"together":cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function go(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Y1(e,t,n){switch(t.tag){case 3:Yy(t),Qr();break;case 5:jy(t);break;case 1:rt(t.type)&&zo(t);break;case 4:Ec(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ce($o,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?Qy(e,t,n):(ce(pe,pe.current&1),e=rn(e,t,n
vendor: 4,145 bytes, line 40
40),e!==null?e.sibling:null);ce(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Xy(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ce(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,Ky(e,t,n)}return rn(e,t,n)}var qy,pu,Zy,Jy;qy=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}};pu=function(){};Zy=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zn(Bt.current);var s=null;switch(n){case"input":i=Vl(e,i),r=Vl(e,r),s=[];break;case"select":i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),s=[];break;case"textarea":i=zl(e,i),r=zl(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_o)}Ul(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Xi.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Xi.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&de("scroll",e),s||a===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Jy=function(e,t,n,r){n!==r&&(t.flags|=4)};function wi(e,t){if(!he)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 Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Q1(e,t,n){var r=t.pendingProps;switch(xc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return rt(t.type)&&Fo(),Be(t),null;case 3:return r=t.stateNode,qr(),fe(nt),fe($e),Tc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(ku(Rt),Rt=null))),pu(e,t),Be(t),null;case 5:Cc(t);var i=Zn(ls.current);if(n=t.type,e!==null&&t.stateNode!=null)Zy(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Be(t),null}if(e=Zn(Bt.current),Xs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ft]=t,r[os]=s,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(i=0;i<Mi.length;i++)de(Mi[i],r);break;case"source":de("error",r);break;case"img":case"image":case"link":de("error",r),de("load",r);break;case"details":de("toggle",r);break;case"input":ef(r,s),de("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},de("invalid",r);break;case"textarea":nf(r,s),de("invalid",r)}Ul(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 32,436 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Qs(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Qs(r.textContent,a,e),i=["children",""+a]):Xi.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&de("scroll",r)}switch(n){case"input":Bs(r),tf(r,s,!0);break;case"textarea":Bs(r),rf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=_o)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ft]=t,e[os]=r,qy(e,t,!1,!1),t.stateNode=e;e:{switch(o=$l(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mi.length;i++)de(Mi[i],e);i=r;break;case"source":de("error",e),i=r;break;case"img":case"image":case"link":de("error",e),de("load",e),i=r;break;case"details":de("toggle",e),i=r;break;case"input":ef(e,r),i=Vl(e,r),de("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),de("invalid",e);break;case"textarea":nf(e,r),i=zl(e,r),de("invalid",e);break;default:i=r}Ul(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?Mp(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Tp(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&qi(e,u):typeof u=="number"&&qi(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Xi.hasOwnProperty(s)?u!=null&&s==="onScroll"&&de("scroll",e):u!=null&&ic(e,s,u,o))}switch(n){case"input":Bs(e),tf(e,r,!1);break;case"textarea":Bs(e),rf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?zr(e,!!r.multiple,s,!1):r.defaultValue!=null&&zr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_o)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Be(t),null;case 6:if(e&&t.stateNode!=null)Jy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Zn(ls.current),Zn(Bt.current),Xs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(s=r.nodeValue!==n)&&(e=dt,e!==null))switch(e.tag){case 3:Qs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return Be(t),null;case 13:if(fe(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&ct!==null&&t.mode&1&&!(t.flags&128))gy(),Qr(),t.flags|=98560,s=!1;else if(s=Xs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(R(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(R(317));s[Ft]=t}else Qr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else Rt!==null&&(ku(Rt),Rt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pe.current&1?Me===0&&(Me=3):zc())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return qr(),pu(e,t),e===null&&is(t.stateNode.containerInfo),Be(t),null;case 10:return kc(t.type._context),Be(t),null;case 17:return rt(t.type)&&Fo(),Be(t),null;case 19:if(fe(pe),s=t.memoizedState,s===null)return Be(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)wi(s,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ko(e),o!==null){for(t.flags|=128,wi(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ce(pe,pe.current&1|2),t.child}e=e.sibling}s.tail!==null&&je()>Jr&&(t.flags|=128,r=!0,wi(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ko(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!he)return Be(t),null}else 2*je()-s.renderingStartTime>Jr&&n!==1073741824&&(t.flags|=128,r=!0,wi(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=je(),t.sibling=null,n=pe.current,ce(pe,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return Fc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?at&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function X1(e,t){switch(xc(t),t.tag){case 1:return rt(t.type)&&Fo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),fe(nt),fe($e),Tc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cc(t),null;case 13:if(fe(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(pe),null;case 4:return qr(),null;case 10:return kc(t.type._context),null;case 22:case 23:return Fc(),null;case 24:return null;default:return null}}var Js=!1,Ue=!1,q1=typeof WeakSet=="function"?WeakSet:Set,O=null;function Lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function yu(e,t,n){try{n()}catch(r){we(e,t,r)}}var Gf=!1;function Z1(e,t){if(Jl=Io,e=iy(),gc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(a=o),h===s&&++d===r&&(u=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(eu={focusedElem:e,selectionRange:n},Io=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var j=x.memoizedProps,E=x.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?j:bt(t.type,j),E);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(N){we(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return x=Gf,Gf=!1,x}function Bi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&yu(t,n,s)}i=i.next}while(i!==r)}}function wa(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 gu(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 eg(e){var t=e.alternate;t!==null&&(e.alternate=null,eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[os],delete t[ru],delete t[D1],delete t[I1])),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 tg(e){return e.tag===5||e.tag===3||e.tag===4}function Yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tg(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 vu(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=_o));else if(r!==4&&(e=e.child,e!==null))for(vu(e,t,n),e=e.sibling;e!==null;)vu(e,t,n),e=e.sibling}function xu(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(xu(e,t,n),e=e.sibling;e!==null;)xu(e,t,n),e=e.sibling}var Ie=null,Mt=!1;function fn(e,t,n){for(n=n.child;n!==null;)ng(e,t,n),n=n.sibling}function ng(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(fa,n)}catch{}switch(n.tag){case 5:Ue||Lr(n,t);case 6:var r=Ie,i=Mt;Ie=null,fn(e,t,n),Ie=r,Mt=i,Ie!==null&&(Mt?(e=Ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(Mt?(e=Ie,n=n.stateNode,e.nodeType===8?rl(e.parentNode,n):e.nodeType===1&&rl(e,n),ts(e)):rl(Ie,n.stateNode));break;case 4:r=Ie,i=Mt,Ie=n.stateNode.containerInfo,Mt=!0,fn(e,t,n),Ie=r,Mt=i;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&yu(n,t,o),i=i.next}while(i!==r)}fn(e,t,n);break;case 1:if(!Ue&&(Lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}fn(e,t,n);break;case 21:fn(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,fn(e,t,n),Ue=r):fn(e,t,n);break;default:fn(e,t,n)}}function Qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new q1),t.forEach(function(r){var i=aw.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ie=a.stateNode,Mt=!1;break e;case 3:Ie=a.stateNode.containerInfo,Mt=!0;break e;case 4:Ie=a.stateNode.containerInfo,Mt=!0;break e}a=a.return}if(Ie===null)throw Error(R(160));ng(s,o,i),Ie=null,Mt=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(c){we(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rg(t,e),t=t.sibling}function rg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Vt(e),r&4){try{Bi(3,e,e.return),wa(3,e)}catch(j){we(e,e.return,j)}try{Bi(5,e,e.return)}catch(j){we(e,e.return,j)}}break;case 1:Ct(t,e),Vt(e),r&512&&n!==null&&Lr(n,n.return);break;case 5:if(Ct(t,e),Vt(e),r&512&&n!==null&&Lr(n,n.return),e.flags&32){var i=e.stateNode;try{qi(i,"")}catch(j){we(e,e.return,j)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Pp(i,s),$l(a,o);var c=$l(a,s);for(o=0;o<u.length;o+=2){var d=u[o],f=u[o+1];d==="style"?Mp(i,f):d==="dangerouslySetInnerHTML"?Tp(i,f):d==="children"?qi(i,f):ic(i,d,f,c)}switch(a){case"input":_l(i,s);break;case"textarea":Ep(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?zr(i,!!s.multiple,p,!1):h!==!!s.multiple&&(s.defaultValue!=null?zr(i,!!s.multiple,s.defaultValue,!0):zr(i,!!s.multiple,s.multiple?[]:"",!1))}i[os]=s}catch(j){we(e,e.return,j)}}break;case 6:if(Ct(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(R(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(j){we(e,e.return,j)}}break;case 3:if(Ct(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ts(t.containerInfo)}catch(j){we(e,e.return,j)}break;case 4:Ct(t,e),Vt(e);break;case 13:Ct(t,e),Vt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Vc=je())),r&4&&Qf(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ue=(c=Ue)||d,Ct(t,e),Ue=c):Ct(t,e),Vt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(O=e,d=e.child;d!==null;){for(f=O=d;O!==null;){switch(h=O,p=h.child,h.tag){case 0:case 11:case 14:case 15:Bi(4,h,h.return);break;case 1:Lr(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(j){we(r,n,j)}}break;case 5:Lr(h,h.return);break;case 22:if(h.memoizedState!==null){qf(f);continue}}p!==null?(p.return=h,O=p):qf(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,u=f.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=bp("display",o))}catch(j){we(e,e.return,j)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(j){we(e,e.return,j)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ct(t,e),Vt(e),r&4&&Qf(e);break;case 21:break;default:Ct(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(tg(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(qi(i,""),r.flags&=-33);var s=Yf(e);xu(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Yf(e);vu(e,a,o);break;default:throw Error(R(161))}}catch(u){we(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function J1(e,t,n){O=e,ig(e)}function ig(e,t,n){for(var r=(e.mode&1)!==0;O!==null;){var i=O,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Js;if(!o){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Ue;a=Js;var c=Ue;if(Js=o,(Ue=u)&&!c)for(O=i;O!==null;)o=O,u=o.child,o.tag===22&&o.memoizedState!==null?Zf(i):u!==null?(u.return=o,O=u):Zf(i);for(;s!==null;)O=s,ig(s),s=s.sibling;O=i,Js=a,Ue=c}Xf(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,O=s):Xf(e)}}function Xf(e){for(;O!==null;){var t=O;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ue||wa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ue)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:bt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Df(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Df(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ts(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ue||t.flags&512&&gu(t)}catch(h){we(t,t.return,h)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function qf(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var n=t.sibling;if(n!==null){n.return=t.return,O=n;break}O=t.return}}function Zf(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wa(4,t)}catch(u){we(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){we(t,i,u)}}var s=t.return;try{gu(t)}catch(u){we(t,s,u)}break;case 5:var o=t.return;try{gu(t)}catch(u){we(t,o,u)}}}catch(u){we(t,t.return,u)}if(t===e){O=null;break}var a=t.sibling;if(a!==null){a.return=t.return,O=a;break}O=t.return}}var ew=Math.ceil,Qo=on.ReactCurrentDispatcher,Ic=on.ReactCurrentOwner,kt=on.ReactCurrentBatchConfig,te=0,De=null,Ee=null,Oe=0,at=0,Ar=Vn(0),Me=0,fs=null,dr=0,Sa=0,Oc=0,Ui=null,Je=null,Vc=0,Jr=1/0,Qt=null,Xo=!1,wu=null,bn=null,eo=!1,kn=null,qo=0,$i=0,Su=null,vo=-1,xo=0;function Xe(){return te&6?je():vo!==-1?vo:vo=je()}function Mn(e){return e.mode&1?te&2&&Oe!==0?Oe&-Oe:V1.transition!==null?(xo===0&&(xo=Up()),xo):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Qp(e.type)),e):1}function Dt(e,t,n,r){if(50<$i)throw $i=0,Su=null,Error(R(185));js(e,n,r),(!(te&2)||e!==De)&&(e===De&&(!(te&2)&&(Sa|=n),Me===4&&wn(e,Oe)),it(e,r),n===1&&te===0&&!(t.mode&1)&&(Jr=je()+500,ga&&_n()))}function it(e,t){var n=e.callbackNode;Vx(e,t);var r=Do(e,e===De?Oe:0);if(r===0)n!==null&&af(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&af(n),t===1)e.tag===0?O1(Jf.bind(null,e)):my(Jf.bind(null,e)),L1(function(){!(te&6)&&_n()}),n=null;else{switch($p(r)){case 1:n=uc;break;case 4:n=zp;break;case 16:n=Ao;break;case 536870912:n=Bp;break;default:n=Ao}n=fg(n,sg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sg(e,t){if(vo=-1,xo=0,te&6)throw Error(R(327));var n=e.callbackNode;if(Wr()&&e.callbackNode!==n)return null;var r=Do(e,e===De?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zo(e,r);else{t=r;var i=te;te|=2;var s=ag();(De!==e||Oe!==t)&&(Qt=null,Jr=je()+500,rr(e,t));do try{rw();break}catch(a){og(e,a)}while(!0);jc(),Qo.current=s,te=i,Ee!==null?t=0:(De=null,Oe=0,t=Me)}if(t!==0){if(t===2&&(i=Yl(e),i!==0&&(r=i,t=ju(e,i))),t===1)throw n=fs,rr(e,0),wn(e,r),it(e,je()),n;if(t===6)wn(e,r);else{if(i=e.current.alternate,!(r&30)&&!tw(i)&&(t=Zo(e,r),t===2&&(s=Yl(e),s!==0&&(r=s,t=ju(e,s))),t===1))throw n=fs,rr(e,0),wn(e,r),it(e,je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Gn(e,Je,Qt);break;case 3:if(wn(e,r),(r&130023424)===r&&(t=Vc+500-je(),10<t)){if(Do(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Xe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=nu(Gn.bind(null,e,Je,Qt),t);break}Gn(e,Je,Qt);break;case 4:if(wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-At(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ew(r/1960))-r,10<r){e.timeoutHandle=nu(Gn.bind(null,e,Je,Qt),r);break}Gn(e,Je,Qt);break;case 5:Gn(e,Je,Qt);break;default:throw Error(R(329))}}}return it(e,je()),e.callbackNode===n?sg.bind(null,e):null}function ju(e,t){var n=Ui;return e.current.memoizedState.isDehydrated&&(rr(e,t).flags|=256),e=Zo(e,t),e!==2&&(t=Je,Je=n,t!==null&&ku(t)),e}function ku(e){Je===null?Je=e:Je.push.apply(Je,e)}function tw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!It(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wn(e,t){for(t&=~Oc,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function Jf(e){if(te&6)throw Error(R(327));Wr();var t=Do(e,0);if(!(t&1))return it(e,je()),null;var n=Zo(e,t);if(e.tag!==0&&n===2){var r=Yl(e);r!==0&&(t=r,n=ju(e,r))}if(n===1)throw n=fs,rr(e,0),wn(e,t),it(e,je()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gn(e,Je,Qt),it(e,je()),null}function _c(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Jr=je()+500,ga&&_n())}}function fr(e){kn!==null&&kn.tag===0&&!(te&6)&&Wr();var t=te;te|=1;var n=kt.transition,r=oe;try{if(kt.transition=null,oe=1,e)return e()}finally{oe=r,kt.transition=n,te=t,!(te&6)&&_n()}}function Fc(){at=Ar.current,fe(Ar)}function rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,R1(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(xc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Fo();break;case 3:qr(),fe(nt),fe($e),Tc();break;case 5:Cc(r);break;case 4:qr();break;case 13:fe(pe);break;case 19:fe(pe);break;case 10:kc(r.type._context);break;case 22:case 23:Fc()}n=n.return}if(De=e,Ee=e=Rn(e.current,null),Oe=at=t,Me=0,fs=null,Oc=Sa=dr=0,Je=Ui=null,qn!==null){for(t=0;t<qn.length;t++)if(n=qn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}qn=null}return e}function og(e,t){do{var n=Ee;try{if(jc(),po.current=Yo,Go){for(var r=ge.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Go=!1}if(cr=0,Le=be=ge=null,zi=!1,us=0,Ic.current=null,n===null||n.return===null){Me=1,fs=t,Ee=null;break}e:{var s=e,o=n.return,a=n,u=t;if(t=Oe,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=zf(o);if(p!==null){p.flags&=-257,Bf(p,o,a,s,t),p.mode&1&&Ff(s,c,t),t=p,u=c;var x=t.updateQueue;if(x===null){var j=new Set;j.add(u),t.updateQueue=j}else x.add(u);break e}else{if(!(t&1)){Ff(s,c,t),zc();break e}u=Error(R(426))}}else if(he&&a.mode&1){var E=zf(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Bf(E,o,a,s,t),wc(Zr(u,a));break e}}s=u=Zr(u,a),Me!==4&&(Me=2),Ui===null?Ui=[s]:Ui.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=$y(s,u,t);Af(s,m);break e;case 1:a=u;var g=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(bn===null||!bn.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var N=Hy(s,a,t);Af(s,N);break e}}s=s.return}while(s!==null)}ug(n)}catch(P){t=P,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function ag(){var e=Qo.current;return Qo.current=Yo,e===null?Yo:e}function zc(){(Me===0||Me===3||Me===2)&&(Me=4),De===null||!(dr&268435455)&&!(Sa&268435455)||wn(De,Oe)}function Zo(e,t){var n=te;te|=2;var r=ag();(De!==e||Oe!==t)&&(Qt=null,rr(e,t));do try{nw();break}catch(i){og(e,i)}while(!0);if(jc(),te=n,Qo.current=r,Ee!==null)throw Error(R(261));return De=null,Oe=0,Me}function nw(){for(;Ee!==null;)lg(Ee)}function rw(){for(;Ee!==null&&!Tx();)lg(Ee)}function lg(e){var t=dg(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?ug(e):Ee=t,Ic.current=null}function ug(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=X1(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Ee=null;return}}else if(n=Q1(n,t,at),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Me===0&&(Me=5)}function Gn(e,t,n){var r=oe,i=kt.transition;try{kt.transition=null,oe=1,iw(e,t,n,r)}finally{kt.transition=i,oe=r}return null}function iw(e,t,n,r){do Wr();while(kn!==null);if(te&6)throw Error(R(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(_x(e,s),e===De&&(Ee=De=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||eo||(eo=!0,fg(Ao,function(){return Wr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=kt.transition,kt.transition=null;var o=oe;oe=1;var a=te;te|=4,Ic.current=null,Z1(e,n),rg(n,e),N1(eu),Io=!!Jl,eu=Jl=null,e.current=n,J1(n),bx(),te=a,oe=o,kt.transition=s}else e.current=n;if(eo&&(eo=!1,kn=e,qo=i),s=e.pendingLanes,s===0&&(bn=null),Lx(n.stateNode),it(e,je()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Xo)throw Xo=!1,e=wu,wu=null,e;return qo&1&&e.tag!==0&&Wr(),s=e.pendingLanes,s&1?e===Su?$i++:($i=0,Su=e):$i=0,_n(),null}function Wr(){if(kn!==null){var e=$p(qo),t=kt.transition,n=oe;try{if(kt.transition=null,oe=16>e?16:e,kn===null)var r=!1;else{if(e=kn,kn=null,qo=0,te&6)throw Error(R(331));var i=te;for(te|=4,O=e.current;O!==null;){var s=O,o=s.child;if(O.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(O=c;O!==null;){var d=O;switch(d.tag){case 0:case 11:case 15:Bi(8,d,s)}var f=d.child;if(f!==null)f.return=d,O=f;else for(;O!==null;){d=O;var h=d.sibling,p=d.return;if(eg(d),d===c){O=null;break}if(h!==null){h.return=p,O=h;break}O=p}}}var x=s.alternate;if(x!==null){var j=x.child;if(j!==null){x.child=null;do{var E=j.sibling;j.sibling=null,j=E}while(j!==null)}}O=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,O=o;else e:for(;O!==null;){if(s=O,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Bi(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,O=m;break e}O=s.return}}var g=e.current;for(O=g;O!==null;){o=O;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,O=y;else e:for(o=g;O!==null;){if(a=O,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:wa(9,a)}}catch(P){we(a,a.return,P)}if(a===o){O=null;break e}var N=a.sibling;if(N!==null){N.return=a.return,O=N;break e}O=a.return}}if(te=i,_n(),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(fa,e)}catch{}r=!0}return r}finally{oe=n,kt.transition=t}}return!1}function eh(e,t,n){t=Zr(n,t),t=$y(e,t,1),e=Tn(e,t,1),t=Xe(),e!==null&&(js(e,1,t),it(e,t))}function we(e,t,n){if(e.tag===3)eh(e,e,n);else for(;t!==null;){if(t.tag===3){eh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bn===null||!bn.has(r))){e=Zr(n,e),e=Hy(t,e,1),t=Tn(t,e,1),e=Xe(),t!==null&&(js(t,1,e),it(t,e));break}}t=t.return}}function sw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,De===e&&(Oe&n)===n&&(Me===4||Me===3&&(Oe&130023424)===Oe&&500>je()-Vc?rr(e,0):Oc|=n),it(e,t)}function cg(e,t){t===0&&(e.mode&1?(t=Hs,Hs<<=1,!(Hs&130023424)&&(Hs=4194304)):t=1);var n=Xe();e=nn(e,t),e!==null&&(js(e,t,n),it(e,n))}function ow(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cg(e,n)}function aw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),cg(e,n)}var dg;dg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return et=!1,Y1(e,t,n);et=!!(e.flags&131072)}else et=!1,he&&t.flags&1048576&&py(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;go(e,t),e=t.pendingProps;var i=Yr(t,$e.current);Hr(t,n),i=Mc(null,t,r,e,i,n);var s=Rc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(s=!0,zo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pc(t),i.updater=xa,t.stateNode=i,i._reactInternals=t,uu(t,r,e,n),t=fu(null,t,r,!0,s,n)):(t.tag=0,he&&s&&vc(t),Ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(go(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=uw(r),e=bt(r,e),i){case 0:t=du(null,t,r,e,n);break e;case 1:t=Hf(null,t,r,e,n);break e;case 11:t=Uf(null,t,r,e,n);break e;case 14:t=$f(null,t,r,bt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bt(r,i),du(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bt(r,i),Hf(e,t,r,i,n);case 3:e:{if(Yy(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Sy(e,t),Wo(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Zr(Error(R(423)),t),t=Wf(e,t,r,n,i);break e}else if(r!==i){i=Zr(Error(R(424)),t),t=Wf(e,t,r,n,i);break e}else for(ct=Cn(t.stateNode.containerInfo.firstChild),dt=t,he=!0,Rt=null,n=xy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qr(),r===i){t=rn(e,t,n);break e}Ye(e,t,r,n)}t=t.child}return t;case 5:return jy(t),e===null&&ou(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,tu(r,i)?o=null:s!==null&&tu(r,s)&&(t.flags|=32),Gy(e,t),Ye(e,t,o,n),t.child;case 6:return e===null&&ou(t),null;case 13:return Qy(e,t,n);case 4:return Ec(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):Ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bt(r,i),Uf(e,t,r,i,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ce($o,r._currentValue),r._currentValue=o,s!==null)if(It(s.value,o)){if(s.children===i.children&&!nt.current){t=rn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Jt(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),au(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),au(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hr(t,n),i=Nt(i),r=r(i),t.flags|=1,Ye(e,t,r,n),t.child;case 14:return r=t.type,i=bt(r,t.pendingProps),i=bt(r.type,i),$f(e,t,r,i,n);case 15:return Wy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bt(r,i),go(e,t),t.tag=1,rt(r)?(e=!0,zo(t)):e=!1,Hr(t,n),Uy(t,r,i),uu(t,r,i,n),fu(null,t,r,!0,e,n);case 19:return Xy(e,t,n);case 22:return Ky(e,t,n)}throw Error(R(156,t.tag))};function fg(e,t){return Fp(e,t)}function lw(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 jt(e,t,n,r){return new lw(e,t,n,r)}function Bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uw(e){if(typeof e=="function")return Bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oc)return 11;if(e===ac)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=jt(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.deleti
vendor: 8,896 bytes, line 40
40ons=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 wo(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Bc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kr:return ir(n.children,i,s,t);case sc:o=8,i|=8;break;case Al:return e=jt(12,n,t,i|2),e.elementType=Al,e.lanes=s,e;case Dl:return e=jt(13,n,t,i),e.elementType=Dl,e.lanes=s,e;case Il:return e=jt(19,n,t,i),e.elementType=Il,e.lanes=s,e;case jp:return ja(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wp:o=10;break e;case Sp:o=9;break e;case oc:o=11;break e;case ac:o=14;break e;case gn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=jt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function ir(e,t,n,r){return e=jt(7,e,r,t),e.lanes=n,e}function ja(e,t,n,r){return e=jt(22,e,r,t),e.elementType=jp,e.lanes=n,e.stateNode={isHidden:!1},e}function dl(e,t,n){return e=jt(6,e,null,t),e.lanes=n,e}function fl(e,t,n){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ka(0),this.expirationTimes=Ka(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ka(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,i,s,o,a,u){return e=new cw(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=jt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(s),e}function dw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function hg(e){if(!e)return An;e=e._reactInternals;e:{if(mr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(rt(n))return hy(e,n,t)}return t}function mg(e,t,n,r,i,s,o,a,u){return e=Uc(n,r,!0,e,i,s,o,a,u),e.context=hg(null),n=e.current,r=Xe(),i=Mn(n),s=Jt(r,i),s.callback=t??null,Tn(n,s,i),e.current.lanes=i,js(e,i,r),it(e,r),e}function ka(e,t,n,r){var i=t.current,s=Xe(),o=Mn(i);return n=hg(n),t.context===null?t.context=n:t.pendingContext=n,t=Jt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Tn(i,t,o),e!==null&&(Dt(e,i,o,s),mo(e,i,o)),o}function Jo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function th(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $c(e,t){th(e,t),(e=e.alternate)&&th(e,t)}function fw(){return null}var pg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hc(e){this._internalRoot=e}Na.prototype.render=Hc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));ka(e,t,null,null)};Na.prototype.unmount=Hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fr(function(){ka(null,e,null,null)}),t[tn]=null}};function Na(e){this._internalRoot=e}Na.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xn.length&&t!==0&&t<xn[n].priority;n++);xn.splice(n,0,e),n===0&&Yp(e)}};function Wc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nh(){}function hw(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Jo(o);s.call(c)}}var o=mg(t,r,e,0,null,!1,!1,"",nh);return e._reactRootContainer=o,e[tn]=o.current,is(e.nodeType===8?e.parentNode:e),fr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Jo(u);a.call(c)}}var u=Uc(e,0,!1,null,null,!1,!1,"",nh);return e._reactRootContainer=u,e[tn]=u.current,is(e.nodeType===8?e.parentNode:e),fr(function(){ka(t,u,n,r)}),u}function Ea(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var u=Jo(o);a.call(u)}}ka(t,o,e,i)}else o=hw(n,t,e,i,r);return Jo(o)}Hp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bi(t.pendingLanes);n!==0&&(cc(t,n|1),it(t,je()),!(te&6)&&(Jr=je()+500,_n()))}break;case 13:fr(function(){var r=nn(e,1);if(r!==null){var i=Xe();Dt(r,e,1,i)}}),$c(e,1)}};dc=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=Xe();Dt(t,e,134217728,n)}$c(e,134217728)}};Wp=function(e){if(e.tag===13){var t=Mn(e),n=nn(e,t);if(n!==null){var r=Xe();Dt(n,e,t,r)}$c(e,t)}};Kp=function(){return oe};Gp=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};Wl=function(e,t,n){switch(t){case"input":if(_l(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ya(r);if(!i)throw Error(R(90));Np(r),_l(r,i)}}}break;case"textarea":Ep(e,n);break;case"select":t=n.value,t!=null&&zr(e,!!n.multiple,t,!1)}};Ap=_c;Dp=fr;var mw={usingClientEntryPoint:!1,Events:[Ns,Cr,ya,Rp,Lp,_c]},Si={findFiberByHostInstance:Xn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pw={bundleType:Si.bundleType,version:Si.version,rendererPackageName:Si.rendererPackageName,rendererConfig:Si.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vp(e),e===null?null:e.stateNode},findFiberByHostInstance:Si.findFiberByHostInstance||fw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{fa=to.inject(pw),zt=to}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mw;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wc(t))throw Error(R(200));return dw(e,t,null,n)};ht.createRoot=function(e,t){if(!Wc(e))throw Error(R(299));var n=!1,r="",i=pg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Uc(e,1,!1,null,null,n,!1,r,i),e[tn]=t.current,is(e.nodeType===8?e.parentNode:e),new Hc(t)};ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Vp(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return fr(e)};ht.hydrate=function(e,t,n){if(!Pa(t))throw Error(R(200));return Ea(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!Wc(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=pg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=mg(t,null,e,1,n??null,i,!1,s,o),e[tn]=t.current,is(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Na(t)};ht.render=function(e,t,n){if(!Pa(t))throw Error(R(200));return Ea(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!Pa(e))throw Error(R(40));return e._reactRootContainer?(fr(function(){Ea(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};ht.unstable_batchedUpdates=_c;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pa(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Ea(e,t,n,!1,r)};
40ht.version="18.3.1-next-f1338f8080-20240426";function yg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yg)}catch(e){console.error(e)}}yg(),yp.exports=ht;var gg=yp.exports,vg,rh=gg;vg=rh.createRoot,rh.hydrateRoot;var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});Kc.parse=jw;Kc.serialize=kw;const yw=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,gw=/^[\u0021-\u003A\u003C-\u007E]*$/,vw=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,xw=/^[\u0020-\u003A\u003D-\u007E]*$/,ww=Object.prototype.toString,Sw=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function jw(e,t){const n=new Sw,r=e.length;if(r<2)return n;const i=(t==null?void 0:t.decode)||Nw;let s=0;do{const o=e.indexOf("=",s);if(o===-1)break;const a=e.indexOf(";",s),u=a===-1?r:a;if(o>u){s=e.lastIndexOf(";",o-1)+1;continue}const c=ih(e,s,o),d=sh(e,o,c),f=e.slice(c,d);if(n[f]===void 0){let h=ih(e,o+1,u),p=sh(e,u,h);const x=i(e.slice(h,p));n[f]=x}s=u+1}while(s<r);return n}function ih(e,t,n){do{const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function sh(e,t,n){for(;t>n;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function kw(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!yw.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!gw.test(i))throw new TypeError(`argument val is invalid: ${t}`);let s=e+"="+i;if(!n)return s;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);s+="; Max-Age="+n.maxAge}if(n.domain){if(!vw.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);s+="; Domain="+n.domain}if(n.path){if(!xw.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);s+="; Path="+n.path}if(n.expires){if(!Pw(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invali
40d: ${n.expires}`);s+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.partitioned&&(s+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"none":s+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return s}function Nw(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function Pw(e){return ww.call(e)==="[object Date]"}/** 41 * react-router v7.6.2 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */var xg=e=>{throw TypeError(e)},Ew=(e,t,n)=>t.has(e)||xg("Cannot "+n),hl=(e,t,n)=>(Ew(e,t,"read from private field"),n?n.call(e):t.get(e)),Cw=(e,t,n)=>t.has(e)?xg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),oh="popstate";function Tw(e={}){function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return hs("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Dn(i)}return Mw(t,n,null,e)}function Q(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ce(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bw(){return Math.random().toString(36).substring(2,10)}function ah(e,t){return{usr:e.state,key:e.key,idx:t}}function hs(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fn(t):t,state:n,key:t&&t.key||r||bw()}}function Dn({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Mw(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a="POP",u=null,c=d();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function d(){return(o.state||{idx:null}).idx}function f(){a="POP";let E=d(),m=E==null?null:E-c;c=E,u&&u({action:a,location:j.location,delta:m})}function h(E,m){a="PUSH";let g=hs(j.location,E,m);c=d()+1;let y=ah(g,c),N=j.createHref(g);try{o.pushState(y,"",N)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(N)}s&&u&&u({action:a,location:j.location,delta:1})}function p(E,m){a="REPLACE";let g=hs(j.location,E,m);c=d();let y=ah(g,c),N=j.createHref(g);o.replaceState(y,"",N),s&&u&&u({action:a,location:j.location,delta:0})}function x(E){return wg(E)}let j={get action(){return a},get location(){return e(i,o)},listen(E){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(oh,f),u=E,()=>{i.removeEventListener(oh,f),u=null}},createHref(E){return t(i,E)},createURL:x,encodeLocation(E){let m=x(E);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(E){return o.go(E)}};return j}function wg(e,t=!1){let n="http://localhost";
49typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Q(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Dn(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Ri,lh=class{constructor(e){if(Cw(this,Ri,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(hl(this,Ri).has(e))return hl(this,Ri).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){hl(this,Ri).set(e,t)}};Ri=new WeakMap;var Rw=new Set(["lazy","caseSensitive","path","id","index","children"]);function Lw(e){return Rw.has(e)}var Aw=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Dw(e){return Aw.has(e)}function Iw(e){return e.index===!0}function ea(e,t,n=[],r={}){return e.map((i,s)=>{let o=[...n,String(s)],a=typeof i.id=="string"?i.id:o.join("-");if(Q(i.index!==!0||!i.children,"Cannot specify children on an index route"),Q(!r[a],`Found a route id collision on i
49d "${a}". Route id's must be globally unique within Data Router usages`),Iw(i)){let u={...i,...t(i),id:a};return r[a]=u,u}else{let u={...i,...t(i),id:a,children:void 0};return r[a]=u,i.children&&(u.children=ea(i.children,t,o,r)),u}})}function Sn(e,t,n="/"){return So(e,t,n,!1)}function So(e,t,n,r){let i=typeof t=="string"?Fn(t):t,s=Et(i.pathname||"/",n);if(s==null)return null;let o=Sg(e);Vw(o);let a=null;for(let u=0;a==null&&u<o.length;++u){let c=Yw(s);a=Kw(o[u],c,r)}return a}function Ow(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Sg(e,t=[],n=[],r=""){let i=(s,o,a)=>{let u={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};u.relativePath.startsWith("/")&&(Q(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let c=Ut([r,u.relativePath]),d=n.concat(u);s.children&&s.children.length>0&&(Q(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Sg(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Hw(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let u of jg(s.path))i(s,o,u)}),t}function jg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=jg(r.join("/")),a=[];return a.push(...o.map(u=>u===""?s:[s,u].join("/"))),i&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Vw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ww(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var _w=/^:[\w-]+$/,Fw=3,zw=2,Bw=1,Uw=10,$w=-2,uh=e=>e==="*";function Hw(e,t){let n=e.split("/"),r=n.length;return n.some(uh)&&(r+=$w),t&&(r+=zw),n.filter(i=>!uh(i)).reduce((i,s)=>i+(_w.test(s)?Fw:s===""?Bw:Uw),r)}function Ww(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Kw(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=ta({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),h=u.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=ta({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;
49Object.assign(i,f.params),o.push({params:i,pathname:Ut([s,f.pathname]),pathnameBase:qw(Ut([s,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(s=Ut([s,f.pathnameBase]))}return o}function ta(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gw(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:f},h)=>{if(d==="*"){let x=a[h]||"";o=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const p=a[h];return f&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function Gw(e,t=!1,n=!0){Ce(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Yw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ce(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Et(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Qw(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Fn(e):e;return{pathname:n?n.startsWith("/")?n:Xw(n,t):t,search:Zw(r),hash:Jw(i)}}function Xw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ml(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Gc(e){let t=kg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Yc(e,t,n,r=!1){let i;typeof e=="string"?i=Fn(e):(i={...e},Q(!i.pathname||!i.pathname.includes("?"),ml("?","pathname","search",i)),Q(!i.pathname||!i.pathname.includes("#"),ml("#","pathname","hash",i)),Q(!i.search||!i.search.includes("#"),ml("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=Qw(i,a),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}var Ut=e=>e.join("/").replace(/\/\/+/g,"/"),qw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,na=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ms(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ng=["POST","PUT","PATCH","DELETE"],eS=new Set(Ng),tS=["GET",...Ng],nS=new Set(tS),rS=new Set([301,302,303,307,308]),iS=new Set([307,308]),pl={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ji={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Qc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Pg="remix-router-transitions",Eg=Symbol("ResetLoaderData");function aS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Q(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||oS,s={},o=ea(e.routes,i,void 0,s),a,u=e.basename||"/",c=e.dataStrategy||fS,d={unstable_middleware:!1,...e.future},f=null,h=new Set,p=null,x=null,j=null,E=e.hydrationData!=null,m=Sn(o,e.history.location,u),g=!1,y=null,N;if(m==null&&!e.patchRoutesOnNavigation){let S=xt(404,{pathname:e.history.location.pathname}),{matches:k,route:C}=Sh(o);N=!0,m=k,y={[C.id]:S}}else if(m&&!e.hydrationData&&Is(m,o,e.history.location.pathname).active&&(m=null),m)if(m.some(S=>S.route.lazy))N=!1;else if(!m.some(S=>S.route.loader))N=!0;else{let S=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null;if(k){let C=m.findIndex(M=>k[M.route.id]!==void 0);N=m.slice(0,C+1).every(M=>!Pu(M.route,S,k))}else N=m.every(C=>!Pu(C.route,S,k))}else{N=!1,m=[];let S=Is(null,o,e.history.location.pathname);S.active&&S.matches&&(g=!0,m=S.matches)}let P,v={historyAction:e.history.action,location:e.history.location,matches:m,initialized:N,navigation:pl,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},b="POP",T=!1,A,I=!1,ie=new Map,_e=null,He=!1,J=!1,me=new Set,re=new Map,q=0,L=-1,_=new Map,F=new Set,ee=new Map,se=new Map,ke=new Set,We=new Map,ln,Ke=null;function gr(){if(f=e.history.listen(({action:S,location:k,delta:C})=>{if(ln){ln(),ln=void 0;return}Ce(We.size===0||C!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let M=Hd({currentLocation:v.location,nextLocation:k,historyAction:S});if(M&&C!=null){let D=new Promise(z=>{ln=z});e.history.go(C*-1),Ds(M,{state:"blocked",location:k,proceed(){Ds(M,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),D.then(()=>e.history.go(C))},reset(){let z=new Map(v.blockers);z.set(M,ji),Ge({blockers:z})}});return}return Bn(S,k)}),n){kS(t,ie);let S=()=>NS(t,ie);t.addEventListener("pagehide",S),_e=()=>t.removeEventListener("pagehide",S)}return v.initialized||Bn("POP",v.location,{initialHydration:!0}),P}function bv(){f&&f(),_e&&_e(),h.clear(),A&&A.abort(),v.fetchers.forEac
49h((S,k)=>Va(k)),v.blockers.forEach((S,k)=>$d(k))}function Mv(S){return h.add(S),()=>h.delete(S)}function Ge(S,k={}){v={...v,...S};let C=[],M=[];v.fetchers.forEach((D,z)=>{D.state==="idle"&&(ke.has(z)?C.push(z):M.push(z))}),ke.forEach(D=>{!v.fetchers.has(D)&&!re.has(D)&&C.push(D)}),[...h].forEach(D=>D(v,{deletedFetchers:C,viewTransitionOpts:k.viewTransitionOpts,flushSync:k.flushSync===!0})),C.forEach(D=>Va(D)),M.forEach(D=>v.fetchers.delete(D))}function vr(S,k,{flushSync:C}={}){var $,K;let M=v.actionData!=null&&v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&v.navigation.state==="loading"&&(($=S.state)==null?void 0:$._isRedirect)!==!0,D;k.actionData?Object.keys(k.actionData).length>0?D=k.actionData:D=null:M?D=v.actionData:D=null;let z=k.loaderData?xh(v.loaderData,k.loaderData,k.matches||[],k.errors):v.loaderData,W=v.blockers;W.size>0&&(W=new Map(W),W.forEach((U,G)=>W.set(G,ji)));let V=T===!0||v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&((K=S.state)==null?void 0:K._isRedirect)!==!0;a&&(o=a,a=void 0),He||b==="POP"||(b==="PUSH"?e.history.push(S,S.state):b==="REPLACE"&&e.history.replace(S,S.state));let B;if(b==="POP"){let U=ie.get(v.location.pathname);U&&U.has(S.pathname)?B={currentLocation:v.location,nextLocation:S}:ie.has(S.pathname)&&(B={currentLocation:S,nextLocation:v.location})}else if(I){let U=ie.get(v.location.pathname);U?U.add(S.pathname):(U=new Set([S.pathname]),ie.set(v.location.pathname,U)),B={currentLocation:v.location,nextLocation:S}}Ge({...k,actionData:D,loaderData:z,historyAction:b,location:S,initialized:!0,navigation:pl,revalidation:"idle",restoreScrollPosition:Kd(S,k.matches||v.matches),preventScrollReset:V,blockers:W},{viewTransitionOpts:B,flushSync:C===!0}),b="POP",T=!1,I=!1,He=!1,J=!1,Ke==null||Ke.resolve(),Ke=null}async function Od(S,k){if(typeof S=="number"){e.history.go(S);return}let C=Nu(v.location,v.matches,u,S,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:M,submission:D,error:z}=ch(!1,C,k),W=v.location,V=hs(v.location,M,k&&k.state);V={...V,...e.history.encodeLocation(V)};let B=k&&k.replace!=null?k.replace:void 0,$="PUSH";B===!0?$="REPLACE":B===!1||D!=null&&ut(D.formMethod)&&D.formAction===v.location.pathname+v.location.search&&($="REPLACE");let K=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,U=(k&&k.flushSync)===!0,G=Hd({currentLocation:W,nextLocation:V,historyAction:$});if(G){Ds(G,{state:"blocked",location:V,proceed(){Ds(G,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),Od(S,k)},reset(){let ue=new Map(v.blockers);ue.set(G,ji),Ge({blockers:ue})}});return}await Bn($,V,{submission:D,pendingError:z,preventScrollReset:K,replace:k&&k.replace,enableViewTransition:k&&k.viewTransition,flushSync:U})}function Rv(){Ke||(Ke=PS()),Oa(),Ge({revalidation:"loading"});let S=Ke.promise;return v.navigation.state==="submitting"?S:v.navigation.state==="idle"?(Bn(v.historyAction,v.location,{startUninterruptedRevalidation:!0}),S):(Bn(b||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation,enableViewTransition:I===!0}),S)}async function Bn(S,k,C){A&&A.abort(),A=null,b=S,He=(C&&C.startUninterruptedRevalidation)===!0,Bv(v.location,v.matches),T=(C&&C.preventScrollReset)===!0,I=(C&&C.enableViewTransition)===!0;let M=a||o,D=C&&C.overrideNavigation,z=C!=null&&C.initialHydration&&v.matches&&v.matches.length>0&&!g?v.matches:Sn(M,k,u),W=(C&&C.flushSync)===!0;if(z&&v.initialized&&!J&&vS(v.location,k)&&!(C&&C.submission&&ut(C.submission.formMethod))){vr(k,{matches:z},{flushSync:W});return}let V=Is(z,M,k.pathname);if(V.active&&V.matches&&(z=V.matches),!z){let{error:Fe,notFoundMatches:ot,route:ne}=_a(k.pathname);vr(k,{matches:ot,loaderData:{},errors:{[ne.id]:Fe}},{flushSync:W});return}A=new AbortController;let B=Sr(e.history,k,A.signal,C&&C.submission),$=new lh(e.unstable_getContext?await e.unstable_getContext():void 0),K;if(C&&C.pendingError)K=[Qn(z).route.id,{type:"error",error:C.pendingError}];else if(C&&C.submission&&ut(C.submission.formMethod)){let Fe=await Lv(B,k,C.submission,z,$,V.active,C&&C.initialHydration===!0,{replace:C.replace,flushSync:W});if(Fe.shortCircuited)return;if(Fe.pendingActionResult){let[ot,ne]=Fe.pendingActionResult;if(lt(ne)&&ms(ne.error)&&ne.error.status===404){A=null,vr(k,{matches:Fe.matches,loaderData:{},errors:{[ot]:ne.error}});return}}z=Fe.matches||z,K=Fe.pendingActionResult,D=yl(k,C.submission),W=!1,V.active=!1,B=Sr(e.history,B.url,B.signal)}let{shortCircuited:U,matches:G,loaderData:ue,errors:Te}=await Av(B,k,z,$,V.active,D,C&&C.submission,C&&C.fetcherSubmission,C&&C.replace,C&&C.initialHydration===!0,W,K);U||(A=null,vr(k,{matches:G||z,...wh(K),loaderData:ue,errors:Te}))}async function Lv(S,k,C,M,D,z,W,V={}){Oa();let B=SS(k,C);if(Ge({navigation:B},{flushSync:V.flushSync===!0}
49),z){let U=await Os(M,k.pathname,S.signal);if(U.type==="aborted")return{shortCircuited:!0};if(U.type==="error"){let G=Qn(U.partialMatches).route.id;return{matches:U.partialMatches,pendingActionResult:[G,{type:"error",error:U.error}]}}else if(U.matches)M=U.matches;else{let{notFoundMatches:G,error:ue,route:Te}=_a(k.pathname);return{matches:G,pendingActionResult:[Te.id,{type:"error",error:ue}]}}}let $,K=Li(M,k);if(!K.route.action&&!K.route.lazy)$={type:"error",error:xt(405,{method:S.method,pathname:k.pathname,routeId:K.route.id})};else{let U=Kr(i,s,S,M,K,W?[]:r,D),G=await ui(S,U,D,null);if($=G[K.route.id],!$){for(let ue of M)if(G[ue.route.id]){$=G[ue.route.id];break}}if(S.signal.aborted)return{shortCircuited:!0}}if(Jn($)){let U;return V&&V.replace!=null?U=V.replace:U=yh($.response.headers.get("Location"),new URL(S.url),u)===v.location.pathname+v.location.search,await Un(S,$,!0,{submission:C,replace:U}),{shortCircuited:!0}}if(lt($)){let U=Qn(M,K.route.id);return(V&&V.replace)!==!0&&(b="PUSH"),{matches:M,pendingActionResult:[U.route.id,$,K.route.id]}}return{matches:M,pendingActionResult:[K.route.id,$]}}async function Av(S,k,C,M,D,z,W,V,B,$,K,U){let G=z||yl(k,W),ue=W||V||kh(G),Te=!He&&!$;if(D){if(Te){let yt=Vd(U);Ge({navigation:G,...yt!==void 0?{actionData:yt}:{}},{flushSync:K})}let le=await Os(C,k.pathname,S.signal);if(le.type==="aborted")return{shortCircuited:!0};if(le.type==="error"){let yt=Qn(le.partialMatches).route.id;return{matches:le.partialMatches,loaderData:{},errors:{[yt]:le.error}}}else if(le.matches)C=le.matches;else{let{error:yt,notFoundMatches:dn,route:_s}=_a(k.pathname);return{matches:dn,loaderData:{},errors:{[_s.id]:yt}}}}let Fe=a||o,{dsMatches:ot,revalidatingFetchers:ne}=dh(S,M,i,s,e.history,v,C,ue,k,$?[]:r,$===!0,J,me,ke,ee,F,Fe,u,e.patchRoutesOnNavigation!=null,U);if(L=++q,!e.dataStrategy&&!ot.some(le=>le.shouldLoad)&&ne.length===0){let le=Bd();return vr(k,{matches:C,loaderData:{},errors:U&<(U[1])?{[U[0]]:U[1].error}:null,...wh(U),...le?{fetchers:new Map(v.fetchers)}:{}},{flushSync:K}),{shortCircuited:!0}}if(Te){let le={};if(!D){le.navigation=G;let yt=Vd(U);yt!==void 0&&(le.actionData=yt)}ne.length>0&&(le.fetchers=Dv(ne)),Ge(le,{flushSync:K})}ne.forEach(le=>{cn(le.key),le.controller&&re.set(le.key,le.controller)});let ci=()=>ne.forEach(le=>cn(le.key));A&&A.signal.addEventListener("abort",ci);let{loaderResults:$n,fetcherResults:di}=await _d(ot,ne,S,M);if(S.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",ci),ne.forEach(le=>re.delete(le.key));let pt=no($n);if(pt)return await Un(S,pt.result,!0,{replace:B}),{shortCircuited:!0};if(pt=no(di),pt)return F.add(pt.key),await Un(S,pt.result,!0,{replace:B}),{shortCircuited:!0};let{loaderData:fi,errors:hi}=vh(v,C,$n,U,ne,di);$&&v.errors&&(hi={...v.errors,...hi});let Fa=Bd(),Hn=Ud(L),Vs=Fa||Hn||ne.length>0;return{matches:C,loaderData:fi,errors:hi,...Vs?{fetchers:new Map(v.fetchers)}:{}}}function Vd(S){if(S&&!lt(S[1]))return{[S[0]]:S[1].data};if(v.actionData)return Object.keys(v.actionData).length===0?null:v.actionData}function Dv(S){return S.forEach(k=>{let C=v.fetchers.get(k.key),M=ki(void 0,C?C.data:void 0);v.fetchers.set(k.key,M)}),new Map(v.fetchers)}async function Iv(S,k,C,M){cn(S);let D=(M&&M.flushSync)===!0,z=a||o,W=Nu(v.location,v.matches,u,C,k,M==null?void 0:M.relative),V=Sn(z,W,u),B=Is(V,z,W);if(B.active&&B.matches&&(V=B.matches),!V){Yt(S,k,xt(404,{pathname:W}),{flushSync:D});return}let{path:$,submission:K,error:U}=ch(!0,W,M);if(U){Yt(S,k,U,{flushSync:D});return}let G=Li(V,$),ue=new lh(e.unstable_getContext?await e.unstable_getContext():void 0),Te=(M&&M.preventScrollReset)===!0;if(K&&ut(K.formMethod)){await Ov(S,k,$,G,V,ue,B.active,D,Te,K);return}ee.set(S,{routeId:k,path:$}),await Vv(S,k,$,G,V,ue,B.active,D,Te,K)}async function Ov(S,k,C,M,D,z,W,V,B,$){Oa(),ee.delete(S);function K(Ne){if(!Ne.route.action&&!Ne.route.lazy){let xr=xt(405,{method:$.formMethod,pathname:C,routeId:k});return Yt(S,k,xr,{flushSync:V}),!0}return!1}if(!W&&K(M))return;let U=v.fetchers.get(S);un(S,jS($,U),{flushSync:V});let G=new AbortController,ue=Sr(e.history,C,G.signal,$);
49if(W){let Ne=await Os(D,C,ue.signal,S);if(Ne.type==="aborted")return;if(Ne.type==="error"){Yt(S,k,Ne.error,{flushSync:V});return}else if(Ne.matches){if(D=Ne.matches,M=Li(D,C),K(M))return}else{Yt(S,k,xt(404,{pathname:C}),{flushSync:V});return}}re.set(S,G);let Te=q,Fe=Kr(i,s,ue,D,M,r,z),ne=(await ui(ue,Fe,z,S))[M.route.id];if(ue.signal.aborted){re.get(S)===G&&re.delete(S);return}if(ke.has(S)){if(Jn(ne)||lt(ne)){un(S,mn(void 0));return}}else{if(Jn(ne))if(re.delete(S),L>Te){un(S,mn(void 0));return}else return F.add(S),un(S,ki($)),Un(ue,ne,!1,{fetcherSubmission:$,preventScrollReset:B});if(lt(ne)){Yt(S,k,ne.error);return}}let ci=v.navigation.location||v.location,$n=Sr(e.history,ci,G.signal),di=a||o,pt=v.navigation.state!=="idle"?Sn(di,v.navigation.location,u):v.matches;Q(pt,"Didn't find any matches after fetcher action");let fi=++q;_.set(S,fi);let hi=ki($,ne.data);v.fetchers.set(S,hi);let{dsMatches:Fa,revalidatingFetchers:Hn}=dh($n,z,i,s,e.history,v,pt,$,ci,r,!1,J,me,ke,ee,F,di,u,e.patchRoutesOnNavigation!=null,[M.route.id,ne]);Hn.filter(Ne=>Ne.key!==S).forEach(Ne=>{let xr=Ne.key,Gd=v.fetchers.get(xr),Hv=ki(void 0,Gd?Gd.data:void 0);v.fetchers.set(xr,Hv),cn(xr),Ne.controller&&re.set(xr,Ne.controller)}),Ge({fetchers:new Map(v.fetchers)});let Vs=()=>Hn.forEach(Ne=>cn(Ne.key));G.signal.addEventListener("abort",Vs);let{loaderResults:le,fetcherResults:yt}=await _d(Fa,Hn,$n,z);if(G.signal.aborted)return;if(G.signal.removeEventListener("abort",Vs),_.delete(S),re.delete(S),Hn.forEach(Ne=>re.delete(Ne.key)),v.fetchers.has(S)){let Ne=mn(ne.data);v.fetchers.set(S,Ne)}let dn=no(le);if(dn)return Un($n,dn.result,!1,{preventScrollReset:B});if(dn=no(yt),dn)return F.add(dn.key),Un($n,dn.result,!1,{preventScrollReset:B});let{loaderData:_s,errors:za}=vh(v,pt,le,void 0,Hn,yt);Ud(fi),v.navigation.state==="loading"&&fi>L?(Q(b,"Expected pending action"),A&&A.abort(),vr(v.navigation.location,{matches:pt,loaderData:_s,errors:za,fetchers:new Map(v.fetchers)})):(Ge({errors:za,loaderData:xh(v.loaderData,_s,pt,za),fetchers:new Map(v.fetchers)}),J=!1)}async function Vv(S,k,C,M,D,z,W,V,B,$){let K=v.fetchers.get(S);un(S,ki($,K?K.data:void 0),{flushSync:V});let U=new AbortController,G=Sr(e.history,C,U.signal);if(W){let ne=await Os(D,C,G.signal,S);if(ne.type==="aborted")return;if(ne.type==="error"){Yt(S,k,ne.error,{flushSync:V});return}else if(ne.matches)D=ne.matches,M=Li(D,C);else{Yt(S,k,xt(404,{pathname:C}),{flushSync:V});return}}re.set(S,U);let ue=q,Te=Kr(i,s,G,D,M,r,z),ot=(await ui(G,Te,z,S))[M.route.id];if(re.get(S)===U&&re.delete(S),!G.signal.aborted){if(ke.has(S)){un(S,mn(void 0));return}if(Jn(ot))if(L>ue){un(S,mn(void 0));return}else{F.add(S),await Un(G,ot,!1,{preventScrollReset:B});return}if(lt(ot)){Yt(S,k,ot.error);return}un(S,mn(ot.data))}}async function Un(S,k,C,{submission:M,fetcherSubmission:D,preventScrollReset:z,replace:W}={}){k.response.headers.has("X-Remix-Revalidate")&&(J=!0);let V=k.response.headers.get("Location");Q(V,"Expected a Location header on the redirect Response"),V=yh(V,new URL(S.url),u);let B=hs(v.location,V,{_isRedirect:!0});if(n){let Te=!1;if(k.response.headers.has("X-Remix-Reload-Document"))Te=!0;else if(Qc.test(V)){const Fe=wg(V,!0);Te=Fe.origin!==t.location.origin||Et(Fe.pathname,u)==null}if(Te){W?t.location.replace(V):t.location.assign(V);return}}A=null;let $=W===!0||k.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:K,formAction:U,formEncType:G}=v.navigation;!M&&!D&&K&&U&&G&&(M=kh(v.navigation));let ue=M||D;if(iS.has(k.response.status)&&ue&&ut(ue.formMethod))await Bn($,B,{submission:{...ue,formAction:V},preventScrollReset:z||T,enableViewTransition:C?I:void 0});else{let Te=yl(B,M);await Bn($,B,{overrideNavigation:Te,fetcherSubmission:D,preventScrollReset:z||T,enableViewTransition:C?I:void 0})}}async function ui(S,k,C,M){let D,z={};try{D=await hS(c,S,k,M,C,!1)}catch(W){return k.filter(V=>V.shouldLoad).forEach(V=>{z[V.route.id]={type:"error",error:W}}),z}if(S.signal.aborted)return z;for(let[W,V]of Object.entries(D))if(xS(V)){let B=V.result;z[W]={type:"redirect",response:yS(B,S,W,k,u)}}else z[W]=await pS(V);return z}async function _d(S,k,C,M){let D=ui(C,S,M,null),z=Promise.all(k.map(async B=>{if(B.matches&&B.match&&B.request&&B.controller){let K=(await ui(B.request,B.matches,M,B.key))[B.match.route.id];return{[B.key]:K}}else return Promise.resolve({[B.key]:{type:"error",error:xt(404,{pathname:B.path})}})})),W=await D,V=(await z).reduce((B,$)=>Object.assign(B,$),{});return{loaderResults:W,fetcherResults:V}}function Oa(){J=!0,ee.forEach((S,k)=>{re.has(k)&&me.add(k),cn(k)})}function un(S,k,C={}){v.fetchers.set(S,k),Ge({fetchers:new Map(v.fetchers)},{flushSync:(C&&C.flushSync)===!0})}function Yt(S,k,C,M={}){let D=Qn(v.matches,k);Va(S),Ge({errors:{[D.route.id]:C},fetchers:new Map(v.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function Fd(S){return se.set(S,(se.get(S)||0)+1),ke.has(S)&&ke.delete(S),v.fetchers.get(S)||sS}function Va(S){let k=v.fetchers.get(S);re.has(S)&&!(k&&k.state==="loading"&&_.has(S))&&cn(S),ee.delete(S),_.delete(S),F.delete(S),ke.delete(S),me.delete(S),v.fetchers.delete(S)}function _v(S){let k=(se.get(S)||0)-1;k<=0?(se.delete(S),ke.add(S)):se.set(S,k),Ge({fetchers:new Map(v.fetchers)})}function cn(S){let k=re.get(S);k&&(k.abort(),re.delete(S))}function zd(S){for(let k of S){let C=Fd(k),M=mn(C.data);v.fetchers.set(k,M)}}function Bd(){let S=[],k=!1;for(let C of F){let M=v.fetchers.get(C);Q(M,`Expected fetcher: ${C}`),M.state==="loading"&&(F.delete(C),S.push(C),k=!0)}return zd(S),k}function Ud(S){let k=[];for(let[C,M]of _)if(M<S){let D=v.fetchers.get(C);Q(D,`Expected fetcher: ${C}`),D.state==="loading"&&(cn(C),_.delete(C),k.push(C))}return zd(k),k.length>0}function Fv(S,k){let C=v.blockers.get(S)||ji;return We.get(S)!==k&&We.set(S,k),C}function $d(S){v.blockers.delete(S),We.delete(S)}function Ds(S,k){let C=v.blockers.get(S)||ji;Q(C.state==="unblocked"&&k.state==="blocked"||C.state==="blocked"&&k.state==="blocked"||C.state==="blocked"&&k.state==="proceeding"||C.state==="blocked"&&k.state==="unblocked"||C.state==="proceeding"&&k.state==="unblocked",`Invalid blocker state transition: ${C.state} -> ${k.state}`);let M=new Map(v.blockers);M.set(S,k),Ge({blockers:M})}function Hd({currentLocation:S,nextLocation:k,historyAction:C}
vendor: 4,468 bytes, lines 49-50
49){if(We.size===0)return;We.size>1&&Ce(!1,"A router only supports one blocker at a time");let M=Array.from(We.entries()),[D,z]=M[M.length-1],W=v.blockers.get(D);if(!(W&&W.state==="proceeding")&&z({currentLocation:S,nextLocation:k,historyAction:C}))return D}function _a(S){let k=xt(404,{pathname:S}),C=a||o,{matches:M,route:D}=Sh(C);return{notFoundMatches:M,route:D,error:k}}function zv(S,k,C){if(p=S,j=k,x=C||null,!E&&v.navigation===pl){E=!0;let M=Kd(v.location,v.matches);M!=null&&Ge({restoreScrollPosition:M})}return()=>{p=null,j=null,x=null}}function Wd(S,k){return x&&x(S,k.map(M=>Ow(M,v.loaderData)))||S.key}function Bv(S,k){if(p&&j){let C=Wd(S,k);p[C]=j()}}function Kd(S,k){if(p){let C=Wd(S,k),M=p[C];if(typeof M=="number")return M}return null}function Is(S,k,C){if(e.patchRoutesOnNavigation)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:So(k,C,u,!0)}}else return{active:!0,matches:So(k,C,u,!0)||[]};return{active:!1,matches:null}}async function Os(S,k,C,M){if(!e.patchRoutesOnNavigation)return{type:"success",matches:S};let D=S;for(;;){let z=a==null,W=a||o,V=s;try{await e.patchRoutesOnNavigation({signal:C,path:k,matches:D,fetcherKey:M,patch:(K,U)=>{C.aborted||fh(K,U,W,V,i)}})}catch(K){return{type:"error",error:K,partialMatches:D}}finally{z&&!C.aborted&&(o=[...o])}if(C.aborted)return{type:"aborted"};let B=Sn(W,k,u);if(B)return{type:"success",matches:B};let $=So(W,k,u,!0);if(!$||D.length===$.length&&D.every((K,U)=>K.route.id===$[U].route.id))return{type:"success",matches:null};D=$}}function Uv(S){s={},a=ea(S,i,void 0,s)}function $v(S,k){let C=a==null;fh(S,k,a||o,s,i),C&&(o=[...o],Ge({}))}return P={get basename(){return u},get future(){return d},get state(){return v},get routes(){return o},get window(){return t},initialize:gr,subscribe:Mv,enableScrollRestoration:zv,navigate:Od,fetch:Iv,revalidate:Rv,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:Fd,deleteFetcher:_v,dispose:bv,getBlocker:Fv,deleteBlocker:$d,patchRoutes:$v,_internalFetchControllers:re,_internalSetRoutes:Uv},P}function lS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Nu(e,t,n,r,i,s){let o,a;if(i){o=[];for(let c of t)if(o.push(c),c.route.id===i){a=c;break}}else o=t,a=t[t.length-1];let u=Yc(r||".",Gc(o),Et(e.pathname,n)||e.pathname,s==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&a){let c=Xc(u.search);if(a.route.index&&!c)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!a.route.index&&c){let d=new URLSearchParams(u.search),f=d.getAll("index");d.delete("index"),f.filter(p=>p).forEach(p=>d.append("index",p));let h=d.toString();u.search=h?`?${h}`:""}}return n!=="/"&&(u.pathname=u.pathname==="/"?n:Ut([n,u.pathname])),Dn(u)}function ch(e,t,n){if(!n||!lS(n))return{path:t};if(n.formMethod&&!wS(n.formMethod))return{path:t,error:xt(405,{method:n.formMethod})};let r=()=>({path:t,error:xt(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),o=Lg(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ut(s))return r();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,[p,x])=>`${h}${p}=${x} 50`,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:o,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!ut(s))return r();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:o,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return r()}}}Q(typeof FormData=="function","FormData is not available in this environment");let a,u;if(n.formData)a=Cu(n.formData),u=n.formData;else if(n.body instanceof FormData)a=Cu(n.body),u=n.body;else if(n.body instanceof URLSearchParams)a=n.body,u=gh(a);else if(n.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(n.body),u=gh(a)}catch{return r()}let c={formMethod:s,formAction:o,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ut(c.formMethod))return{path:t,submission:c};let d=Fn(t);return e&&d.search&&Xc(d.search)&&a.append("index",""),d.search=`?${a}`,{path:Dn(d),submission:c}}function dh(e,t,n,r,i,s,o,a,u,c,d,f,h,p,x,j,E,m,g,y){var He;let N=y?lt(y[1])?y[1].error:y[1].data:void 0,P=i.createURL(s.location),v=i.createURL(u),b;
50if(d&&s.errors){let J=Object.keys(s.errors)[0];b=o.findIndex(me=>me.route.id===J)}else if(y&<(y[1])){let J=y[0];b=o.findIndex(me=>me.route.id===J)-1}let T=y?y[1].statusCode:void 0,A=T&&T>=400,I={currentUrl:P,currentParams:((He=s.matches[0])==null?void 0:He.params)||{},nextUrl:v,nextParams:o[0].params,...a,actionResult:N,actionStatus:T},ie=o.map((J,me)=>{let{route:re}=J,q=null;if(b!=null&&me>b?q=!1:re.lazy?q=!0:re.loader==null?q=!1:d?q=Pu(re,s.loaderData,s.errors):uS(s.loaderData,s.matches[me],J)&&(q=!0),q!==null)return Eu(n,r,e,J,c,t,q);let L=A?!1:f||P.pathname+P.search===v.pathname+v.search||P.search!==v.search||cS(s.matches[me],J),_={...I,defaultShouldRevalidate:L},F=ra(J,_);return Eu(n,r,e,J,c,t,F,_)}),_e=[];return x.forEach((J,me)=>{if(d||!o.some(ke=>ke.route.id===J.routeId)||p.has(me))return;let re=s.fetchers.get(me),q=re&&re.state!=="idle"&&re.data===void 0,L=Sn(E,J.path,m);if(!L){if(g&&q)return;_e.push({key:me,routeId:J.routeId,path:J.path,matches:null,match:null,request:null,controller:null});return}if(j.has(me))return;let _=Li(L,J.path),F=new AbortController,ee=Sr(i,J.path,F.signal),se=null;if(h.has(me))h.delete(me),se=Kr(n,r,ee,L,_,c,t);else if(q)f&&(se=Kr(n,r,ee,L,_,c,t));else{let ke={...I,defaultShouldRevalidate:A?!1:f};ra(_,ke)&&(se=Kr(n,r,ee,L,_,c,t,ke))}se&&_e.push({key:me,routeId:J.routeId,path:J.path,matches:se,match:_,request:ee,controller:F})}),{dsMatches:ie,revalidatingFetchers:_e}}function Pu(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function uS(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function cS(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ra(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function fh(e,t,n,r,i){let s;if(e){let u=r[e];Q(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),s=u.children}else s=n;let o=t.filter(u=>!s.some(c=>Cg(u,c))),a=ea(o,i,[e||"_","patch",String((s==null?void 0:s.length)||"0")],r);s.push(...a)}function Cg(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(s=>Cg(n,s))}):!1}var hh=new WeakMap,Tg=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(Q(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let s=i.lazy[e];if(!s)return;let o=hh.get(i);o||(o={},hh.set(i,o));let a=o[e];if(a)return a;let u=(async()=>{let c=Lw(e),f=i[e]!==void 0&&e!=="hasErrorBoundary";if(c)Ce(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),o[e]=Promise.resolve();else if(f)Ce(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let h=await s();h!=null&&(Object.assign(i,{[e]:h}),Object.assign(i,r(i)))}typeof i.lazy=="object"&&(i.lazy[e]=void 0,Object.values(i.lazy).every(h=>h===void 0)&&(i.lazy=void 0))})();return o[e]=u,u},mh=new WeakMap;function dS(e,t,n,r,i){let s=n[e.id];if(Q(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let d=mh.get(s);if(d)return{lazyRoutePromise:d,lazyHandlerPromise:d};let f=(async()=>{Q(typeof e.lazy=="function","No lazy route function found");let h=await e.lazy(),p={};for(let x in h){let j=h[x];if(j===void 0)continue;let E=Dw(x),g=s[x]!==void 0&&x!=="hasErrorBoundary";E?Ce(!E,"Route property "+x+" is not a supported property to be returned from a lazy route function. This property will be ignored."):g?Ce(!g,`Route "${s.id}" has a static property "${x}" defined but its lazy function is also returning a value for this property. The lazy route property "${x}" will be ignored.`):p[x]=j}Object.assign(s,p),Object.assign(s,{...r(s),lazy:void 0})})();return mh.set(s,f),f.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:f}}let o=Object.keys(e.lazy),a=[],u;
50for(let d of o){if(i&&i.includes(d))continue;let f=Tg({key:d,route:e,manifest:n,mapRouteProperties:r});f&&(a.push(f),d===t&&(u=f))}let c=a.length>0?Promise.all(a).then(()=>{}):void 0;return c==null||c.catch(()=>{}),u==null||u.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:u}}async function ph(e){let t=e.matches.filter(i=>i.shouldLoad),n={};return(await Promise.all(t.map(i=>i.resolve()))).forEach((i,s)=>{n[t[s].route.id]=i}),n}async function fS(e){return e.matches.some(t=>t.route.unstable_middleware)?bg(e,!1,()=>ph(e),(t,n)=>({[n]:{type:"error",result:t}})):ph(e)}async function bg(e,t,n,r){let{matches:i,request:s,params:o,context:a}=e,u={handlerResult:void 0};try{let c=i.flatMap(f=>f.route.unstable_middleware?f.route.unstable_middleware.map(h=>[f.route.id,h]):[]),d=await Mg({request:s,params:o,context:a},c,t,u,n);return t?d:u.handlerResult}catch(c){if(!u.middlewareError)throw c;let d=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,d):d}}async function Mg(e,t,n,r,i,s=0){let{request:o}=e;if(o.signal.aborted)throw o.signal.reason?o.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${o.method} ${o.url}`);let a=t[s];if(!a)return r.handlerResult=await i(),r.handlerResult;let[u,c]=a,d=!1,f,h=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");d=!0,await Mg(e,t,n,r,i,s+1)};try{let p=await c({request:e.request,params:e.params,context:e.context},h);return d?p===void 0?f:p:h()}catch(p){throw r.middlewareError?r.middlewareError.error!==p&&(r.middlewareError={routeId:u,error:p}):r.middlewareError={routeId:u,error:p},p}}function Rg(e,t,n,r,i){let s=Tg({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),o=dS(r.route,ut(n.method)?"action":"loader",t,e,i);return{middleware:s,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Eu(e,t,n,r,i,s,o,a=null){let u=!1,c=Rg(e,t,n,r,i);return{...r,_lazyPromises:c,shouldLoad:o,unstable_shouldRevalidateArgs:a,unstable_shouldCallHandler(d){return u=!0,a?typeof d=="boolean"?ra(r,{...a,defaultShouldRevalidate:d}):ra(r,a):o},resolve(d){return u||o||d&&n.method==="GET"&&(r.route.lazy||r.route.loader)?mS({request:n,match:r,lazyHandlerPromise:c==null?void 0:c.handler,lazyRoutePromise:c==null?void 0:c.route,handlerOverride:d,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function Kr(e,t,n,r,i,s,o,a=null){return r.map(u=>u.route.id!==i.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:a,unstable_shouldCallHandler:()=>!1,_lazyPromises:Rg(e,t,n,u,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Eu(e,t,n,u,s,o,!0,a))}async function hS(e,t,n,r,i,s){n.some(c=>{var d;return(d=c._lazyPromises)==null?void 0:d.middleware})&&await Promise.all(n.map(c=>{var d;return(d=c._lazyPromises)==null?void 0:d.middleware}));let o={request:t,params:n[0].params,context:i,matches:n},u=await e({...o,fetcherKey:r,unstable_runClientMiddleware:c=>{let d=o;return bg(d,!1,()=>c({...d,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(f,h)=>({[h]:{type:"error",result:f}}))}});try{await Promise.all(n.flatMap(c=>{var d,f;return[(d=c._lazyPromises)==null?void 0:d.handler,(f=c._lazyPromises)==null?void 0:f.route]}))}catch{}return u}async function mS({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:i,scopedContext:s}){let o,a,u=ut(e.method),c=u?"action":"loader",d=f=>{let h,p=new Promise((E,m)=>h=m);a=()=>h(),e.signal.addEventListener("abort",a);let x=E=>typeof f!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${t.route.id}]`)):f({request:e,params:t.params,context:s},...E!==void 0?[E]:[]),j=(async()=>{try{return{type:"data",result:await(i?i(m=>x(m)):x())}}catch(E){return{type:"error",result:E}}})();return Promise.race([j,p])};try{let f=u?t.route.action:t.route.loader;if(n||r)if(f){let h,[p]=await Promise.all([d(f).catch(x=>{h=x}),n,r]);if(h!==void 0)throw h;
50o=p}else{await n;let h=u?t.route.action:t.route.loader;if(h)[o]=await Promise.all([d(h),r]);else if(c==="action"){let p=new URL(e.url),x=p.pathname+p.search;throw xt(405,{method:e.method,pathname:x,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(f)o=await d(f);else{let h=new URL(e.url),p=h.pathname+h.search;throw xt(404,{pathname:p})}}catch(f){return{type:"error",result:f}}finally{a&&e.signal.removeEventListener("abort",a)}return o}async function pS(e){var r,i,s,o,a,u;let{result:t,type:n}=e;if(Ag(t)){let c;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(d){return{type:"error",error:d}}return n==="error"?{type:"error",error:new na(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:"data",data:c,statusCode:t.status,headers:t.headers}}return n==="error"?jh(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new na(((s=t.init)==null?void 0:s.status)||500,void 0,t.data),statusCode:ms(t)?t.status:void 0,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ms(t)?t.status:void 0}:jh(t)?{type:"data",data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function yS(e,t,n,r,i){let s=e.headers.get("Location");if(Q(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Qc.test(s)){let o=r.slice(0,r.findIndex(a=>a.route.id===n)+1);s=Nu(new URL(t.url),o,i,s),e.headers.set("Location",s)}return e}function yh(e,t,n){if(Qc.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=Et(i.pathname,n)!=null;if(i.origin===t.origin&&s)return i.pathname+i.search+i.hash}return e}function Sr(e,t,n,r){let i=e.createURL(Lg(t)).toString(),s={signal:n};if(r&&ut(r.formMethod)){let{formMethod:o,formEncType:a}=r;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(r.json)):a==="text/plain"?s.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?s.body=Cu(r.formData):s.body=r.formData}return new Request(i,s)}function Cu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function gh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function gS(e,t,n,r=!1,i=!1){let s={},o=null,a,u=!1,c={},d=n&<(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,p=t[h];if(Q(!Jn(p),"Cannot handle redirect results in processLoaderData"),lt(p)){let x=p.error;if(d!==void 0&&(x=d,d=void 0),o=o||{},i)o[h]=x;else{let j=Qn(e,h);o[j.route.id]==null&&(o[j.route.id]=x)}r||(s[h]=Eg),u||(u=!0,a=ms(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else s[h]=p.data,p.statusCode&&p.statusCode!==200&&!u&&(a=p.statusCode),p.headers&&(c[h]=p.headers)}),d!==void 0&&n&&(o={[n[0]]:d},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function vh(e,t,n,r,i,s){let{loaderData:o,errors:a}=gS(t,n,r);return i.filter(u=>!u.matches||u.matches.some(c=>c.shouldLoad)).forEach(u=>{let{key:c,match:d,controller:f}=u,h=s[c];if(Q(h,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(lt(h)){let p=Qn(e.matches,d==null?void 0:d.route.id);a&&a[p.route.id]||(a={...a,[p.route.id]:h.error}),e.fetchers.delete(c)}else if(Jn(h))Q(!1,"Unhandled fetcher revalidation redirect");else{let p=mn(h.data);e.fetchers.set(c,p)}}),{loaderData:o,errors:a}}function xh(e,t,n,r){let i=Object.entries(t).filter(([,s])=>s!==Eg).reduce((s,[o,a])=>(s[o]=a,s),{});for(let s of n){let o=s.route.id;if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o)&&s.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function wh(e){return e?lt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Qn(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Sh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function xt(e,{pathname:t,routeId:n,method:r,type:i,message:s}={}){let o="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(o="Bad Request",r&&t&&n?a=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(o="Forbidden",a=`Route "${n}" does not match URL "${t}"`):e===404?(o="Not Found",a=`No route matches URL "${t}"`):e===405&&(o="Method Not Allowed",r&&t&&n?a=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(a=`Invalid request method "${r.toUpperCase()}"`)),new na(e||500,o,new Error(a),!0)}function no(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Jn(i))return{key:r,result:i}}}function Lg(e){let t=typeof e=="string"?Fn(e):e;return Dn({...t,hash:""})}function vS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function xS(e){return Ag(e.result)&&rS.has(e.result.status)}function lt(e){return e.type==="error"}function Jn(e){return(e&&e.type)==="redirect"}function jh(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Ag(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wS(e){return nS.has(e.toUpperCase())}function ut(e){return eS.has(e.toUpperCase())}function Xc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Li(e,t){let n=typeof t=="string"?Fn(t).search:t.search;if(e[e.length-1].route.index&&Xc(n||""))return e[e.length-1];let r=kg(e);return r[r.length-1]}function kh(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:s,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function yl(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SS(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ki(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function jS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function mn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function kS(e,t){try{let n=e.sessionStorage.getItem(Pg);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(i,new Set(s||[]))}}catch{}}function NS(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Pg,JSON.stringify(n))}catch(r){Ce(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function PS(){let e,t,n=new Promise((r,i)=>{e=async s=>{r(s);try{await n}catch{}},t=async s=>{i(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var pr=w.createContext(null);pr.displayName="DataRouter";var Es=w.createContext(null);Es.displayName="DataRouterState";var qc=w.createContext({isTransitioning:!1});qc.displayName="ViewTransition";var Dg=w.createContext(new Map);Dg.displayName="Fetchers";var ES=w.createContext(null);ES.displayName="Await";var Gt=w.createContext(null);Gt.displayName="Navigation";var Ca=w.createContext(null);Ca.displayName="Location";var an=w.createContext({outlet:null,matches:[],isDataRoute:!1});an.displayName="Route";var Zc=w.createContext(null);Zc.displayName="RouteError";function CS(e,{relative:t}={}){Q(Cs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(Gt),{hash:i,pathname:s,search:o}=Ts(e,{relative:t}),a=s;
50return n!=="/"&&(a=s==="/"?n:Ut([n,s])),r.createHref({pathname:a,search:o,hash:i})}function Cs(){return w.useContext(Ca)!=null}function yr(){return Q(Cs(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Ca).location}var Ig="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Og(e){w.useContext(Gt).static||w.useLayoutEffect(e)}function TS(){let{isDataRoute:e}=w.useContext(an);return e?BS():bS()}function bS(){Q(Cs(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(pr),{basename:t,navigator:n}=w.useContext(Gt),{matches:r}=w.useContext(an),{pathname:i}=yr(),s=JSON.stringify(Gc(r)),o=w.useRef(!1);return Og(()=>{o.current=!0}),w.useCallback((u,c={})=>{if(Ce(o.current,Ig),!o.current)return;if(typeof u=="number"){n.go(u);return}let d=Yc(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ut([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,s,i,e])}w.createContext(null);function Ts(e,{relative:t}={}){let{matches:n}=w.useContext(an),{pathname:r}=yr(),i=JSON.stringify(Gc(n));return w.useMemo(()=>Yc(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function MS(e,t,n,r){Q(Cs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=w.useContext(Gt),{matches:s}=w.useContext(an),o=s[s.length-1],a=o?o.params:{},u=o?o.pathname:"/",c=o?o.pathnameBase:"/",d=o&&o.route;{let m=d&&d.path||"";Vg(u,!d||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 51 52Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let f=yr(),h;h=f;let p=h.pathname||"/",x=p;if(c!=="/"){let m=c.replace(/^\//,"").split("/");x="/"+p.replace(/^\//,"").split("/").slice(m.length).join("/")}let j=Sn(e,{pathname:x});return Ce(d||j!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ce(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),IS(j&&j.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:Ut([c,i.encodeLocation?i.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?c:Ut([c,i.encodeLocation?i.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),s,n,r)}function RS(){let e=zS(),t=ms(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=w.createElement(w.Fragment,null,w.createElement("p",null,"ð¿ Hey developer ð"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:s},"ErrorBoundary")," or"," ",w.createElement("code",{style:s},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,o)}var LS=w.createElement(RS,null),AS=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?w.createElement(an.Provider,{value:this.props.routeContext},w.createElement(Zc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function DS({routeContext:e,match:t,children:n}){let r=w.useContext(pr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(an.Provider,{value:e},n)}function IS(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n==null?void 0:n.errors;if(s!=null){let u=i.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);Q(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let o=!1,a=-1;if(n)for(let u=0;u<i.length;u++){let c=i[u];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(a=u),c.route.id){let{loaderData:d,errors:f}
52=n,h=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!f||f[c.route.id]===void 0);if(c.route.lazy||h){o=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((u,c,d)=>{let f,h=!1,p=null,x=null;n&&(f=s&&c.route.id?s[c.route.id]:void 0,p=c.route.errorElement||LS,o&&(a<0&&d===0?(Vg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,x=null):a===d&&(h=!0,x=c.route.hydrateFallbackElement||null)));let j=t.concat(i.slice(0,d+1)),E=()=>{let m;return f?m=p:h?m=x:c.route.Component?m=w.createElement(c.route.Component,null):c.route.element?m=c.route.element:m=u,w.createElement(DS,{match:c,routeContext:{outlet:u,matches:j,isDataRoute:n!=null},children:m})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?w.createElement(AS,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:E(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):E()},null)}function Jc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function OS(e){let t=w.useContext(pr);return Q(t,Jc(e)),t}function VS(e){let t=w.useContext(Es);return Q(t,Jc(e)),t}function _S(e){let t=w.useContext(an);return Q(t,Jc(e)),t}function ed(e){let t=_S(e),n=t.matches[t.matches.length-1];return Q(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function FS(){return ed("useRouteId")}function zS(){var r;let e=w.useContext(Zc),t=VS("useRouteError"),n=ed("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function BS(){let{router:e}=OS("useNavigate"),t=ed("useNavigate"),n=w.useRef(!1);return Og(()=>{n.current=!0}),w.useCallback(async(i,s={})=>{Ce(n.current,Ig),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var Nh={};function Vg(e,t,n){!t&&!Nh[e]&&(Nh[e]=!0,Ce(!1,n))}var Ph={};function Eh(e,t){!e&&!Ph[t]&&(Ph[t]=!0,console.warn(t))}function US(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Ce(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:w.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Ce(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Ce(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var $S=["HydrateFallback","hydrateFallbackElement"],HS=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function WS({router:e,flushSync:t}){let[n,r]=w.useState(e.state),[i,s]=w.useState(),[o,a]=w.useState({isTransitioning:!1}),[u,c]=w.useState(),[d,f]=w.useState(),[h,p]=w.useState(),x=w.useRef(new Map),j=w.useCallback((y,{deletedFetchers:N,flushSync:P,viewTransitionOpts:v})=>{y.fetchers.forEach((T,A)=>{T.data!==void 0&&x.current.set(A,T.data)}),N.forEach(T=>x.current.delete(T)),Eh(P===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let b=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Eh(v==null||b,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!v||!b){t&&P?t(()=>r(y)):w.startTransition(()=>r(y));return}if(t&&P){t(()=>{d&&(u&&u.resolve(),d.skipTransition()),a({isTransitioning:!0,flushSync:!0,currentLocation:v.currentLocation,nextLocation:v.nextLocation})});let T=e.window.document.startViewTransition(()=>{t(()=>r(y))});T.finished.finally(()=>{t(()=>{c(void 0),f(void 0),s(void 0),a({isTransitioning:!1})})}),t(()=>f(T));return}d?(u&&u.resolve(),d.skipTransition(),p({state:y,currentLocation:v.currentLocation,nextLocation:v.nextLocation})):(s(y),a({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}))},[e.window,t,d,u]);w.useLayoutEffect(()=>e.subscribe(j),[e,j]),w.useEffect(()=>{o.isTransitioning&&!o.flushSync&&c(new HS)},[o]),w.useEffect(()=>{if(u&&i&&e.window){let y=i,N=u.promise,P=e.window.document.startViewTransition(async()=>{w.startTransition(()=>r(y)),await N});P.finished.finally(()=>{c(void 0),f(void 0),s(void 0),a({isTransitioning:!1})}),f(P)}},[i,u,e.window]),w.useEffect(()=>{u&&i&&n.location.key===i.location.key&&u.resolve()},[u,d,n.location,i]),w.useEffect(()=>{!o.isTransitioning&&h&&(s(h.state),a({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),p(void 0))},[o.isTransitioning,h]);let E=w.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:y=>e.navigate(y),push:(y,N,P)=>e.navigate(y,{state:N,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(y,N,P)=>e.navigate(y,{replace:!0,state:N,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[e]),m=e.basename||"/",g=w.useMemo(()=>({router:e,navigator:E,static:!1,basename:m}),[e,E,m]);return w.createElement(w.Fragment,null,w.createElement(pr.Provider,{value:g},w.createElement(Es.Provider,{value:n},w.createElement(Dg.Provider,{value:x.current},w.createElement(qc.Provider,{value:o},w.createElement(YS,{basename:m,location:n.location,navigationType:n.historyAction,navigator:E},w.createElement(KS,{routes:e.routes,future:e.future,state:n})))))),null)}var KS=w.memo(GS);function GS({routes:e,future:t,state:n}){return MS(e,void 0,n,t)}function YS({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}
52){Q(!Cs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),a=w.useMemo(()=>({basename:o,navigator:i,static:s,future:{}}),[o,i,s]);typeof n=="string"&&(n=Fn(n));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=n,p=w.useMemo(()=>{let x=Et(u,o);return x==null?null:{location:{pathname:x,search:c,hash:d,state:f,key:h},navigationType:r}},[o,u,c,d,f,h,r]);return Ce(p!=null,`<Router basename="${o}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:w.createElement(Gt.Provider,{value:a},w.createElement(Ca.Provider,{children:t,value:p}))}var jo="get",ko="application/x-www-form-urlencoded";function Ta(e){return e!=null&&typeof e.tagName=="string"}function QS(e){return Ta(e)&&e.tagName.toLowerCase()==="button"}function XS(e){return Ta(e)&&e.tagName.toLowerCase()==="form"}function qS(e){return Ta(e)&&e.tagName.toLowerCase()==="input"}function ZS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JS(e,t){return e.button===0&&(!t||t==="_self")&&!ZS(e)}var ro=null;function e2(){if(ro===null)try{new FormData(document.createElement("form"),0),ro=!1}catch{ro=!0}return ro}var t2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gl(e){return e!=null&&!t2.has(e)?(Ce(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ko}"`),null):e}function n2(e,t){let n,r,i,s,o;if(XS(e)){let a=e.getAttribute("action");r=a?Et(a,t):null,n=e.getAttribute("method")||jo,i=gl(e.getAttribute("enctype"))||ko,s=new FormData(e)}else if(QS(e)||qS(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||a.getAttribute("action");if(r=u?Et(u,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||jo,i=gl(e.getAttribute("formenctype"))||gl(a.getAttribute("enctype"))||ko,s=new FormData(a,e),!e2()){let{name:c,type:d,value:f}=e;if(d==="image"){let h=c?`${c}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else c&&s.append(c,f)}}else{if(Ta(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=jo,r=null,i=ko,o=e}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}function td(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function r2(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function i2(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function s2(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let o=await r2(s,n);return o.links?o.links():[]}return[]}));return u2(r.flat(1).filter(i2).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Ch(e,t,n,r,i,s){let o=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,a=(u,c)=>{var d;return n[c].pathname!==u.pathname||((d=n[c].route.path)==null?void 0:d.endsWith("*"))&&n[c].params["*"]!==u.params["*"]};return s==="assets"?t.filter((u,c)=>o(u,c)||a(u,c)):s==="data"?t.filter((u,c)=>{var f;let d=r.routes[u.route.id];if(!d||!d.hasLoader)return!1;if(o(u,c)||a(u,c))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function o2(e,t,{includeHydrateFallback:n}={}){return a2(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function a2(e){return[...new Set(e)]}function l2(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function u2(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(l2(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var c2=new Set([100,101,204,205]);function d2(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Et(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function _g(){let e=w.useContext(pr);return td(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function f2(){let e=w.useContext(Es);return td(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nd=w.createContext(void 0);nd.displayName="FrameworkContext";function Fg(){let e=w.useContext(nd);return td(e,"You must render this element inside a <HydratedRouter> element"),e}function h2(e,t){let n=w.useContext(nd),[r,i]=w.useState(!1),[s,o]=w.useState(!1),{onFocus:a,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,h=w.useRef(null);
52w.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let j=m=>{m.forEach(g=>{o(g.isIntersecting)})},E=new IntersectionObserver(j,{threshold:.5});return h.current&&E.observe(h.current),()=>{E.disconnect()}}},[e]),w.useEffect(()=>{if(r){let j=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(j)}}},[r]);let p=()=>{i(!0)},x=()=>{i(!1),o(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:Ni(a,p),onBlur:Ni(u,x),onMouseEnter:Ni(c,p),onMouseLeave:Ni(d,x),onTouchStart:Ni(f,p)}]:[!1,h,{}]}function Ni(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function m2({page:e,...t}){let{router:n}=_g(),r=w.useMemo(()=>Sn(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(y2,{page:e,matches:r,...t}):null}function p2(e){let{manifest:t,routeModules:n}=Fg(),[r,i]=w.useState([]);return w.useEffect(()=>{let s=!1;return s2(e,t,n).then(o=>{s||i(o)}),()=>{s=!0}},[e,t,n]),r}function y2({page:e,matches:t,...n}){let r=yr(),{manifest:i,routeModules:s}=Fg(),{basename:o}=_g(),{loaderData:a,matches:u}=f2(),c=w.useMemo(()=>Ch(e,t,u,i,r,"data"),[e,t,u,i,r]),d=w.useMemo(()=>Ch(e,t,u,i,r,"assets"),[e,t,u,i,r]),f=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,j=!1;if(t.forEach(m=>{var y;let g=i.routes[m.route.id];!g||!g.hasLoader||(!c.some(N=>N.route.id===m.route.id)&&m.route.id in a&&((y=s[m.route.id])!=null&&y.shouldRevalidate)||g.hasClientLoader?j=!0:x.add(m.route.id))}),x.size===0)return[];let E=d2(e,o);return j&&x.size>0&&E.searchParams.set("_routes",t.filter(m=>x.has(m.route.id)).map(m=>m.route.id).join(",")),[E.pathname+E.search]},[o,a,r,i,c,t,e,s]),h=w.useMemo(()=>o2(d,i),[d,i]),p=p2(d);return w.createElement(w.Fragment,null,f.map(x=>w.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),h.map(x=>w.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),p.map(({key:x,link:j})=>w.createElement("link",{key:x,...j})))}function g2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var zg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zg&&(window.__reactRouterVersion="7.6.2")}catch{}function v2(e,t){return aS({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:Tw({window:t==null?void 0:t.window}),hydrationData:x2(),routes:e,mapRouteProperties:US,hydrationRouteProperties:$S,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function x2(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:w2(e.errors)}),e}function w2(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new na(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}var Bg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ug=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:o,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f,...h},p){let{basename:x}=w.useContext(Gt),j=typeof c=="string"&&Bg.test(c),E,m=!1;if(typeof c=="string"&&j&&(E=c,zg))try{let A=new URL(window.location.href),I=c.startsWith("//")?new URL(A.protocol+c):new URL(c),ie=Et(I.pathname,x);I.origin===A.origin&&ie!=null?c=ie+I.search+I.hash:m=!0}catch{Ce(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=CS(c,{relative:i}),[y,N,P]=h2(r,h),v=N2(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:i,viewTransition:f});function b(A){t&&t(A),A.defaultPrevented||v(A)}let T=w.createElement("a",{...h,...P,href:E||g,onClick:m||s?t:b,ref:g2(p,N),target:u,"data-discover":!j&&n==="render"?"true":void 0});return y&&!j?w.createElement(w.Fragment,null,T,w.createElement(m2,{page:g})):T});Ug.displayName="Link";var S2=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:o,viewTransition:a,children:u,...c},d){let f=Ts(o,{relative:c.relative}),h=yr(),p=w.useContext(Es),{navigator:x,basename:j}=w.useContext(Gt),E=p!=null&&b2(f)&&a===!0,m=x.encodeLocation?x.encodeLocation(f).pathname:f.pathname,g=h.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(g=g.toLowerCase(),y=y?y.toLowerCase():null,m=m.toLowerCase()),y&&j&&(y=Et(y,j)||y);const N=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let P=g===m||!i&&g.startsWith(m)&&g.charAt(N)==="/",v=y!=null&&(y===m||!i&&y.startsWith(m)&&y.charAt(m.length)==="/"),b={isActive:P,isPending:v,isTransitioning:E},T=P?t:void 0,A;typeof r=="function"?A=r(b):A=[r,P?"active":null,v?"pending":null,E?"transitioning":null].filter(
52Boolean).join(" ");let I=typeof s=="function"?s(b):s;return w.createElement(Ug,{...c,"aria-current":T,className:A,ref:d,style:I,to:o,viewTransition:a},typeof u=="function"?u(b):u)});S2.displayName="NavLink";var j2=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:o=jo,action:a,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:f,...h},p)=>{let x=C2(),j=T2(a,{relative:c}),E=o.toLowerCase()==="get"?"get":"post",m=typeof a=="string"&&Bg.test(a),g=y=>{if(u&&u(y),y.defaultPrevented)return;y.preventDefault();let N=y.nativeEvent.submitter,P=(N==null?void 0:N.getAttribute("formmethod"))||o;x(N||y.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:i,state:s,relative:c,preventScrollReset:d,viewTransition:f})};return w.createElement("form",{ref:p,method:E,action:j,onSubmit:r?u:g,...h,"data-discover":!m&&e==="render"?"true":void 0})});j2.displayName="Form";function k2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $g(e){let t=w.useContext(pr);return Q(t,k2(e)),t}function N2(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:o}={}){let a=TS(),u=yr(),c=Ts(e,{relative:s});return w.useCallback(d=>{if(JS(d,t)){d.preventDefault();let f=n!==void 0?n:Dn(u)===Dn(c);a(e,{replace:f,state:r,preventScrollReset:i,relative:s,viewTransition:o})}},[u,a,c,n,r,t,e,i,s,o])}var P2=0,E2=()=>`__${String(++P2)}__`;function C2(){let{router:e}=$g("useSubmit"),{basename:t}=w.useContext(Gt),n=FS();return w.useCallback(async(r,i={})=>{let{action:s,method:o,encType:a,formData:u,body:c}=n2(r,t);if(i.navigate===!1){let d=i.fetcherKey||E2();await e.fetch(d,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:u,body:c,formMethod:i.method||o,formEncType:i.encType||a,flushSync:i.flushSync})}else await e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:u,body:c,formMethod:i.method||o,formEncType:i.encType||a,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function T2(e,{relative:t}={}){let{basename:n}=w.useContext(Gt),r=w.useContext(an);Q(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...Ts(e||".",{relative:t})},o=yr();if(e==null){s.search=o.search;let a=new URLSearchParams(s.search),u=a.getAll("index");if(u.some(d=>d==="")){a.delete("index"),u.filter(f=>f).forEach(f=>a.append("index",f));let d=a.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Ut([n,s.pathname])),Dn(s)}function b2(e,t={}){let n=w.useContext(qc);Q(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$g("useViewTransitionState"),i=Ts(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Et(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Et(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ta(i.pathname,o)!=null||ta(i.pathname,s)!=null}[...c2];/** 53 * react-router v7.6.2 54 * 55 * Copyright (c) Remix Software Inc. 56 * 57 * This source code is licensed under the MIT license found in the 58 * LICENSE.md file in the root directory of this source tree. 59 * 60 * @license MIT 61 */function M2(e){return w.createElement(WS,{flushSync:gg.flushSync,...e})}var Th={},R2="@vercel/analytics",L2="1.5.0",A2=()=>{window.va||(window.va=function(...t){(window.vaq=window.vaq||[]).push(t)})};function Hg(){return typeof window<"u"}function Wg(){try{const e="production"}catch{}return"production"}function D2(e="auto"){if(e==="auto"){window.vam=Wg();return}window.vam=e}function I2(){return(Hg()?window.vam:Wg())||"production"}function Tu(){return I2()==="development"}function O2(e){return e.scriptSrc?e.scriptSrc:Tu()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js"}function V2(e={debug:!0}){var t;if(!Hg())return;D2(e.mode),A2(),e.beforeSend&&((t=window.va)==null||t.call(window,"beforeSend",e.beforeSend));const n=O2(e);if(document.head.querySelector(`script[src*="${n}"]`))return;const r=document.createElement("script");r.src=n,r.defer=!0,r.dataset.sdkn=R2+(e.framework?`/${e.framework}`:""),r.dataset.sdkv=L2,e.disableAutoTrack&&(r.dataset.disableAutoTrack="1"),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(r.dataset.dsn=e.dsn),r.onerror=()=>{const i=Tu()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${i}`)},Tu()&&e.debug===!1&&(r.dataset.debug="false"),document.head.appendChild(r)}function _2({route:e,path:t}){var n;(n=window.va)==null||n.call(window,"pageview",{route:e,path:t})}function F2(){if(!(typeof process>"u"||typeof Th>"u"))return Th.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function z2(e){return w.useEffect(()=>{var t;e.beforeSend&&((t=window.va)==null||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),w.useEffect(()=>{V2({framework:e.framework||"react",basePath:e.basePath??F2(),...e.route!==void 0&&{disableAutoTrack:!0},...e})},[]),w.useEffect(()=>{e.route&&e.path&&_2({route:e.route,path:e.path})},[e.route,e.path]),null}var bh={},B2="@vercel/speed-insights",U2="1.2.0",$2=()=>{window.si||(window.si=function(...t){(window.siq=window.siq||[]).push(t)})};function H2(){return typeof window<"u"}function W2(){try{const e="production"}catch{}return"production"}function Kg(){return W2()==="development"}function K2(e){return e.scriptSrc?e.scriptSrc:Kg()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.
61js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js"}function G2(e={}){var t;if(!H2()||e.route===null)return null;$2();const n=K2(e);if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&((t=window.si)==null||t.call(window,"beforeSend",e.beforeSend));const r=document.createElement("script");return r.src=n,r.defer=!0,r.dataset.sdkn=B2+(e.framework?`/${e.framework}`:""),r.dataset.sdkv=U2,e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),Kg()&&e.debug===!1&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:i=>{r.dataset.route=i??void 0}}}function Y2(){if(!(typeof process>"u"||typeof bh>"u"))return bh.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function Q2(e){w.useEffect(()=>{var n;e.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);const t=w.useRef(null);return w.useEffect(()=>{if(t.current)e.route&&t.current(e.route);else{const n=G2({framework:e.framework??"react",basePath:e.basePath??Y2(),...e});n&&(t.current=n.setRoute)}},[e.route]),null}/** 62 * @license lucide-react v0.344.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */var X2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 67 * @license lucide-react v0.344.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const q2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Z=(e,t)=>{const n=w.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:u,...c},d)=>w.createElement("svg",{ref:d,...X2,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${q2(e)}`,a].join(" "),...c},[...t.map(([f,h])=>w.createElement(f,h)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/** 72 * @license lucide-react v0.344.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const Z2=Z("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 77 * @license lucide-react v0.344.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const J2=Z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 82 * @license lucide-react v0.344.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const ej=Z("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 87 * @license lucide-react v0.344.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const tj=Z("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/** 92 * @license lucide-react v0.344.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const Mh=Z("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 97 * @license lucide-react v0.344.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const nj=Z("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 102 * @license lucide-react v0.344.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const rj=Z("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 107 * @license lucide-react v0.344.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const bu=Z("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 112 * @license lucide-react v0.344.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const Mu=Z("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/** 117 * @license lucide-react v0.344.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const ij=Z("Cpu",[["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"9",y:"9",width:"6",height:"6",key:"o3kz5p"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
121],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** 122 * @license lucide-react v0.344.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const sj=Z("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 127 * @license lucide-react v0.344.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const oj=Z("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 132 * @license lucide-react v0.344.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const aj=Z("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 137 * @license lucide-react v0.344.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const sr=Z("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"}]]);/** 142 * @license lucide-react v0.344.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Rh=Z("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 147 * @license lucide-react v0.344.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const lj=Z("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 152 * @license lucide-react v0.344.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const uj=Z("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 157 * @license lucide-react v0.344.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const cj=Z("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 162 * @license lucide-react v0.344.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const Lh=Z("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 167 * @license lucide-react v0.344.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const dj=Z("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 172 * @license lucide-react v0.344.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const fj=Z("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 177 * @license lucide-react v0.344.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const ia=Z("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/** 182 * @license lucide-react v0.344.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const hj=Z("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 187 * @license lucide-react v0.344.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const Ah=Z("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** 192 * @license lucide-react v0.344.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const Ai=Z("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 197 * @license lucide-react v0.344.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const mj=Z("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 4,728 bytes, lines 201-241
201y:"oel41y"}]]);/** 202 * @license lucide-react v0.344.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const pj=Z("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** 207 * @license lucide-react v0.344.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const yj=Z("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 212 * @license lucide-react v0.344.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const er=Z("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** 217 * @license lucide-react v0.344.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const gj=Z("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 222 * @license lucide-react v0.344.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const Dh=Z("Wind",[["path",{d:"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2",key:"1k4u03"}],["path",{d:"M9.6 4.6A2 2 0 1 1 11 8H2",key:"b7d0fd"}],["path",{d:"M12.6 19.4A2 2 0 1 0 14 16H2",key:"1p5cb3"}]]);/** 227 * @license lucide-react v0.344.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const vj=Z("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/** 232 * @license lucide-react v0.344.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const xj=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 237 * @license lucide-react v0.344.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const wj=Z("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),Sj=()=>l.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 glass-effect border-b border-gray-900",children:l.jsx("div",{className:"container mx-auto px-6 py-4",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center space-x-3",children:[l.jsx("div",{className:"p-2 rounded-lg bg-white/10 backdrop-blur-sm",children:l.jsx(er,{className:"w-5 h-5 text-white"})}),l.jsx("span",{className:"text-lg font-semibold",children:"Promptly"})]}),l.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[l.jsx("a",{href:"#features",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",children:"Features"}),l.jsx("a",{href:"#backends",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",children:"AI Backends"}),l.jsx("a",{href:"#upcoming",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",children:"Coming Soon"}),l.jsx("a",{href:"#install",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",children:"Install"}),l.jsx("a",{href:"/docs",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",children:"Docs"}),l.jsx("a",{href:"#faq",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",children:"FAQ"}),l.jsxs("a",{href:"https://github.com/Harshcreator/promptly/tree/main/shell-assistant",className:"minimal-button",children:[l.jsx(sr,{className:"w-4 h-4 mr-2"}),"GitHub"]})]})]})})}),rd=w.createContext({});function si(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const id=typeof window<"u",ba=id?w.useLayoutEffect:w.useEffect,Ma=w.createContext(null);function sd(e,t){e.indexOf(t)===-1&&e.push(t)}function od(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}
vendor: 22,731 bytes, line 241
241const Kt=(e,t,n)=>n>t?t:n<e?e:n;let jj=()=>{},sa=()=>{};const sn={},Gg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Yg(e){return typeof e=="object"&&e!==null}const Qg=e=>/^0[^.\s]+$/u.test(e);function ad(e){let t;return()=>(t===void 0&&(t=e()),t)}const st=e=>e,kj=(e,t)=>n=>t(e(n)),bs=(...e)=>e.reduce(kj),ei=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ld{constructor(){this.subscriptions=[]}add(t){return sd(this.subscriptions,t),()=>od(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $t=e=>e*1e3,Ht=e=>e/1e3;function ud(e,t){return t?e*(1e3/t):0}const Xg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nj=1e-7,Pj=12;function Ej(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Xg(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Nj&&++a<Pj);return o}function Ms(e,t,n,r){if(e===t&&n===r)return st;const i=s=>Ej(s,0,1,e,n);return s=>s===0||s===1?s:Xg(i(s),t,r)}const qg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zg=e=>t=>1-e(1-t),Jg=Ms(.33,1.53,.69,.99),cd=Zg(Jg),e0=qg(cd),t0=e=>(e*=2)<1?.5*cd(e):.5*(2-Math.pow(2,-10*(e-1))),dd=e=>1-Math.sin(Math.acos(e)),n0=Zg(dd),r0=qg(dd),Cj=Ms(.42,0,1,1),Tj=Ms(0,0,.58,1),i0=Ms(.42,0,.58,1),bj=e=>Array.isArray(e)&&typeof e[0]!="number",s0=e=>Array.isArray(e)&&typeof e[0]=="number",Ih={linear:st,easeIn:Cj,easeInOut:i0,easeOut:Tj,circIn:dd,circInOut:r0,circOut:n0,backIn:cd,backInOut:e0,backOut:Jg,anticipate:t0},Mj=e=>typeof e=="string",Oh=e=>{if(s0(e)){sa(e.length===4);const[t,n,r,i]=e;return Ms(t,n,r,i)}else if(Mj(e))return sa(Ih[e]!==void 0),Ih[e];return e},io=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Vh={value:null,addProjectionMetrics:null};function Rj(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},u=0;function c(f){o.has(f)&&(d.schedule(f),e()),u++,f(a)}const d={schedule:(f,h=!1,p=!1)=>{const j=p&&i?n:r;return h&&o.add(f),j.has(f)||j.add(f),f},cancel:f=>{r.delete(f),o.delete(f)},process:f=>{if(a=f,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),t&&Vh.value&&Vh.value.frameloop[t].push(u),u=0,n.clear(),i=!1,s&&(s=!1,d.process(f))}};return d}const Lj=40;function o0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=io.reduce((y,N)=>(y[N]=Rj(s,t?N:void 0),y),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:x}=o,j=()=>{const y=sn.useManualTiming?i.timestamp:performance.now();n=!1,sn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,Lj),1)),i.timestamp=y,i.isProcessing=!0,a.process(i),u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),p.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(j))},E=()=>{n=!0,r=!0,i.isProcessing||e(j)};return{schedule:io.reduce((y,N)=>{const P=o[N];return y[N]=(v,b=!1,T=!1)=>(n||E(),P.schedule(v,b,T)),y},{}),cancel:y=>{for(let N=0;N<io.length;N++)o[io[N]].cancel(y)},state:i,steps:o}}const{schedule:ae,cancel:Ot,state:Re,steps:vl}=o0(typeof requestAnimationFrame<"u"?requestAnimationFrame:st,!0);let No;function Aj(){No=void 0}const tt={now:()=>(No===void 0&&tt.set(Re.isProcessing||sn.useManualTiming?Re.timestamp:performance.now()),No),set:e=>{No=e,queueMicrotask(Aj)}},a0=e=>t=>typeof t=="string"&&t.startsWith(e),fd=a0("--"),Dj=a0("var(--"),hd=e=>Dj(e)?Ij.test(e.split("/*")[0].trim()):!1,Ij=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,oi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ps={...oi,transform:e=>Kt(0,1,e)},so={...oi,default:1},Hi=e=>Math.round(e*1e5)/1e5,md=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Oj(e){return e==null}const Vj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pd=(e,t)=>n=>!!(typeof n=="string"&&Vj.test(n)&&n.startsWith(e)||t&&!Oj(n)&&Object.prototype.hasOwnProperty.call(n,t)),l0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(md);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},_j=e=>Kt(0,255,e),xl={...oi,transform:e=>Math.round(_j(e))},tr={test:pd("rgb","red"),parse:l0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xl.transform(e)+", "+xl.transform(t)+", "+xl.transform(n)+", "+Hi(ps.transform(r))+")"};function Fj(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ru={test:pd("#"),parse:Fj,transform:tr.transform},Rs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pn=Rs("deg"),Wt=Rs("%"),H=Rs("px"),zj=Rs("vh"),Bj=Rs("vw"),_h={...Wt,parse:e=>Wt.parse(e)/100,transform:e=>Wt.transform(e*100)},Dr={test:pd("hsl","hue"),parse:l0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wt.transform(Hi(t))+", "+Wt.transform(Hi(n))+", "+Hi(ps.transform(r))+")"},Pe={test:e=>tr.test(e)||Ru.test(e)||Dr.test(e),parse:e=>tr.test(e)?tr.parse(e):Dr.test(e)?Dr.parse(e):Ru.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tr.transform(e):Dr.transform(e),getAnimatableNone:e=>{const t=Pe.parse(e);return t.alpha=0,Pe.transform(t)}},Uj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $j(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(md))==null?void 0:t.length)||0)+(((n=e.match(Uj))==null?void 0:n.length)||0)>0}const u0="number",c0="color",Hj="var",Wj="var(",Fh="${}",Kj=/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 ys(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(Kj,u=>(Pe.test(u)?(r.color.push(s),i.push(c0),n.push(Pe.parse(u))):u.startsWith(Wj)?(r.var.push(s),i.push(Hj),n.push(u)):(r.number.push(s),i.push(u0),n.push(parseFloat(u))),++s,Fh)).split(Fh);return{values:n,split:a,indexes:r,types:i}}function d0(e){return ys(e).values}function f0(e){const{split:t,types:n}=ys(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===u0?s+=Hi(i[o]):a===c0?s+=Pe.transform(i[o]):s+=i[o]}return s}}const Gj=e=>typeof e=="number"?0:Pe.test(e)?Pe.getAnimatableNone(e):e;function Yj(e){const t=d0(e);return f0(e)(t.map(Gj))}const In={test:$j,parse:d0,createTransformer:f0,getAnimatableNone:Yj};function wl(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 Qj({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=wl(u,a,e+1/3),s=wl(u,a,e),o=wl(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function oa(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,Sl=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xj=[Ru,tr,Dr],qj=e=>Xj.find(t=>t.test(e));function zh(e){const t=qj(e);if(!t)return!1;let n=t.parse(e);return t===Dr&&(n=Qj(n)),n}const Bh=(e,t)=>{const n=zh(e),r=zh(t);if(!n||!r)return oa(e,t);const i={...n};return s=>(i.red=Sl(n.red,r.red,s),i.green=Sl(n.green,r.green,s),i.blue=Sl(n.blue,r.blue,s),i.alpha=ye(n.alpha,r.alpha,s),tr.transform(i))},Lu=new Set(["none","hidden"]);function Zj(e,t){return Lu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Jj(e,t){return n=>ye(e,t,n)}function yd(e){return typeof e=="number"?Jj:typeof e=="string"?hd(e)?oa:Pe.test(e)?Bh:nk:Array.isArray(e)?h0:typeof e=="object"?Pe.test(e)?Bh:ek:oa}function h0(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>yd(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function ek(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yd(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function tk(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const nk=(e,t)=>{const n=In.createTransformer(t),r=ys(e),i=ys(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Lu.has(e)&&!i.values.length||Lu.has(t)&&!r.values.length?Zj(e,t):bs(h0(tk(r,i),i.values),n):oa(e,t)};function m0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):yd(e)(e,t)}const rk=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ae.update(t,n),stop:()=>Ot(t),now:()=>Re.isProcessing?Re.timestamp:tt.now()}},p0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},aa=2e4;function gd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<aa;)t+=n,r=e.next(t);return t>=aa?1/0:t}function ik(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(gd(r),aa);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ht(i)}}const sk=5;function y0(e,t,n){const r=Math.max(t-sk,0);return ud(n-e(r),t-r)}const xe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jl=.001;function ok({duration:e=xe.duration,bounce:t=xe.bounce,velocity:n=xe.velocity,mass:r=xe.mass}){let i,s,o=1-t;o=Kt(xe.minDamping,xe.maxDamping,o),e=Kt(xe.minDuration,xe.maxDuration,Ht(e)),o<1?(i=c=>{const d=c*o,f=d*e,h=d-n,p=Au(c,o),x=Math.exp(-f);return jl-h/p*x},s=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-f),j=Au(Math.pow(c,2),o);return(-i(c)+jl>0?-1:1)*((h-p)*x)/j}):(i=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-jl+d*f},s=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=lk(i,s,a);if(e=$t(e),isNaN(u))return{stiffness:xe.stiffness,damping:xe.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const ak=12;function lk(e,t,n){let r=n;for(let i=1;i<ak;i++)r=r-e(r)/t(r);return r}function Au(e,t){return e*Math.sqrt(1-t*t)}const uk=["duration","bounce"],ck=["stiffness","damping","mass"];function Uh(e,t){return t.some(n=>e[n]!==void 0)}function dk(e){let t={velocity:xe.velocity,stiffness:xe.stiffness,damping:xe.damping,mass:xe.mass,isResolvedFromDuration:!1,...e};if(!Uh(e,ck)&&Uh(e,uk))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Kt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:xe.mass,stiffness:i,damping:s}}else{const n=ok(e);t={...t,...n,mass:xe.mass},t.isResolvedFromDuration=!0}return t}function la(e=xe.visualDuration,t=xe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=dk({...n,velocity:-Ht(n.velocity||0)}),x=h||0,j=c/(2*Math.sqrt(u*d)),E=o-s,m=Ht(Math.sqrt(u/d)),g=Math.abs(E)<5;r||(r=g?xe.restSpeed.granular:xe.restSpeed.default),i||(i=g?xe.restDelta.granular:xe.restDelta.default);let y;if(j<1){const P=Au(m,j);y=v=>{const b=Math.exp(-j*m*v);return o-b*((x+j*m*E)/P*Math.sin(P*v)+E*Math.cos(P*v))}}else if(j===1)y=P=>o-Math.exp(-m*P)*(E+(x+m*E)*P);else{const P=m*Math.sqrt(j*j-1);y=v=>{const b=Math.exp(-j*m*v),T=Math.min(P*v,300);return o-b*((x+j*m*E)*Math.sinh(T)+P*E*Math.cosh(T))/P}}const N={calculatedDuration:p&&f||null,next:P=>{const v=y(P);if(p)a.done=P>=f;else{let b=P===0?x:0;j<1&&(b=P===0?$t(x):y0(y,P,v));const T=Math.abs(b)<=r,A=Math.abs(o-v)<=i;a.done=T&&A}return a.value=a.done?o:v,a},toString:()=>{const P=Math.min(gd(N),aa),v=p0(b=>N.next(P*b).value,P,30);return P+"ms "+v},toTransition:()=>{}};return N}la.applyToOptions=e=>{const t=ik(e,100,la);return e.ease=t.ease,e.duration=$t(t.duration),e.type="keyframes",e};function Du({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=T=>a!==void 0&&T<a||u!==void 0&&T>u,x=T=>a===void 0?u:u===void 0||Math.abs(a-T)<Math.abs(u-T)?a:u;let j=n*t;const E=f+j,m=o===void 0?E:o(E);m!==E&&(j=m-f);const g=T=>-j*Math.exp(-T/r),y=T=>m+g(T),N=T=>{const A=g(T),I=y(T);h.done=Math.abs(A)<=c,h.value=h.done?m:I};let P,v;const b=T=>{p(h.value)&&(P=T,v=la({keyframes:[h.value,x(h.value)],velocity:y0(y,T,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return b(0),{calculatedDuration:null,next:T=>{let A=!1;return!v&&P===void 0&&(A=!0,N(T),b(T)),P!==void 0&&T>=P?v.next(T-P):(!A&&N(T),h)}}}function fk(e,t,n){const r=[],i=n||sn.mix||m0,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||st:t;a=bs(u,a)}r.push(a)}return r}function vd(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(sa(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=fk(t,r,i),u=a.length,c=d=>{if(o&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=ei(e[f],e[f+1],d);return a[f](h)};return n?d=>c(Kt(e[0],e[s-1],d)):c}function hk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ei(0,t,r);e.push(ye(n,1,i))}}function g0(e){const t=[0];return hk(t,e.length-1),t}function mk(e,t){return e.map(n=>n*t)}function pk(e,t){return e.map(()=>t||i0).splice(0,e.length-1)}function Wi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=bj(r)?r.map(Oh):Oh(r),s={done:!1,value:t[0]},o=mk(n&&n.length===t.length?n:g0(t),e),a=vd(o,t,{ease:Array.isArray(i)?i:pk(t,i)});return{calculatedDuration:e,next:u=>(s.value=a(u),s.done=u>=e,s)}}const yk=e=>e!==null;function xd(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(yk),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const gk={decay:Du,inertia:Du,tween:Wi,keyframes:Wi,spring:la};function v0(e){typeof e.type=="string"&&(e.type=gk[e.type])}class wd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const vk=e=>e/100;class Ra extends wd{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==tt.now()&&this.tick(tt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;v0(t);const{type:n=Wi,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const u=n||Wi;u!==Wi&&typeof a[0]!="number"&&(this.mixKeyframes=bs(vk,m0(a[0],a[1])),a=[0,100]);const c=u({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=gd(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:p,type:x,onUpdate:j,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,N=r;if(f){const T=Math.min(this.currentTime,i)/a;let A=Math.floor(T),I=T%1;!I&&T>=1&&(I=1),I===1&&A--,A=Math.min(A,f+1),!!(A%2)&&(h==="reverse"?(I=1-I,p&&(I-=p/a)):h==="mirror"&&(N=o)),y=Kt(0,1,I)*a}const P=g?{done:!1,value:d[0]}:N.next(y);s&&(P.value=s(P.value));let{done:v}=P;!g&&u!==null&&(v=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const b=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&v);return b&&x!==Du&&(P.value=xd(d,this.options,E,this.speed)),j&&j(P.value),b&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Ht(this.calculatedDuration)}get time(){return Ht(this.currentTime)}set time(t){var n;t=$t(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ht(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=rk,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function xk(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const nr=e=>e*180/Math.PI,Iu=e=>{const t=nr(Math.atan2(e[1],e[0]));return Ou(t)},wk={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Iu,rotateZ:Iu,skewX:e=>nr(Math.atan(e[1])),skewY:e=>nr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ou=e=>(e=e%360,e<0&&(e+=360),e),$h=Iu,Hh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Wh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Sk={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hh,scaleY:Wh,scale:e=>(Hh(e)+Wh(e))/2,rotateX:e=>Ou(nr(Math.atan2(e[6],e[5]))),rotateY:e=>Ou(nr(Math.atan2(-e[2],e[0]))),rotateZ:$h,rotate:$h,skewX:e=>nr(Math.atan(e[4])),skewY:e=>nr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Vu(e){return e.includes("scale")?1:0}function _u(e,t){if(!e||e==="none")return Vu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Sk,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wk,i=a}if(!i)return Vu(t);const s=r[t],o=i[1].split(",").map(kk);return typeof s=="function"?s(o):o[s]}const jk=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return _u(n,t)};function kk(e){return parseFloat(e.trim())}const ai=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(ai),Kh=e=>e===oi||e===H,Nk=new Set(["x","y","z"]),Pk=ai.filter(e=>!Nk.has(e));function Ek(e){const t=[];return Pk.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const or={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_u(t,"x"),y:(e,{transform:t})=>_u(t,"y")};or.translateX=or.x;or.translateY=or.y;const ar=new Set;let Fu=!1,zu=!1,Bu=!1;function x0(){if(zu){const e=Array.from(ar).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ek(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zu=!1,Fu=!1,ar.forEach(e=>e.complete(Bu)),ar.clear()}function w0(){ar.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zu=!0)})}function Ck(){Bu=!0,w0(),x0(),Bu=!1}class Sd{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ar.add(this),Fu||(Fu=!0,ae.read(w0),ae.resolveKeyframes(x0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}xk(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ar.delete(this)}cancel(){this.state==="scheduled"&&(ar.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tk=e=>e.startsWith("--");
241function bk(e,t,n){Tk(t)?e.style.setProperty(t,n):e.style[t]=n}const S0=ad(()=>window.ScrollTimeline!==void 0),Mk={};function Rk(e,t){const n=ad(e);return()=>Mk[t]??n()}const j0=Rk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Di=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Di([0,.65,.55,1]),circOut:Di([.55,0,1,.45]),backIn:Di([.31,.01,.66,-.59]),backOut:Di([.33,1.53,.69,.99])};function k0(e,t){if(e)return typeof e=="function"?j0()?p0(e,t):"ease-out":s0(e)?Di(e):Array.isArray(e)?e.map(n=>k0(n,t)||Gh.easeOut):Gh[e]}function Lk(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:u}={},c=void 0){const d={[t]:n};u&&(d.offset=u);const f=k0(a,i);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function N0(e){return typeof e=="function"&&"applyToOptions"in e}function Ak({type:e,...t}){return N0(e)&&j0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Dk extends wd{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,sa(typeof t.type!="string");const c=Ak(t);this.animation=Lk(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=xd(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):bk(n,r,d),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ht(Number(t))}get time(){return Ht(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=$t(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&S0()?(this.animation.timeline=t,st):n(this)}}const P0={anticipate:t0,backInOut:e0,circInOut:r0};function Ik(e){return e in P0}function Ok(e){typeof e.ease=="string"&&Ik(e.ease)&&(e.ease=P0[e.ease])}const Yh=10;class Vk extends Dk{constructor(t){Ok(t),v0(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ra({...o,autoplay:!1}),u=$t(this.finishedTime??this.time);n.setWithVelocity(a.sample(u-Yh).value,a.sample(u).value,Yh),a.stop()}}const Qh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(In.test(e)||e==="0")&&!e.startsWith("url("));function _k(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Fk(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Qh(i,t),a=Qh(s,t);return!o||!a?!1:_k(e)||(n==="spring"||N0(n))&&r}function La(e){return Yg(e)&&"offsetHeight"in e}const zk=new Set(["opacity","clipPath","filter","transform"]),Bk=ad(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Uk(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!La((c=t==null?void 0:t.owner)==null?void 0:c.current))return!1;const{onUpdate:a,transformTemplate:u}=t.owner.getProps();return Bk()&&n&&zk.has(n)&&(n!=="transform"||!u)&&!a&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const $k=40;class Hk extends wd{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:
241o="loop",keyframes:a,name:u,motionValue:c,element:d,...f}){var x;super(),this.stop=()=>{var j,E;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(E=this.keyframeResolver)==null||E.cancel()},this.createdAt=tt.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:u,motionValue:c,element:d,...f},p=(d==null?void 0:d.KeyframeResolver)||Sd;this.keyframeResolver=new p(a,(j,E,m)=>this.onKeyframesResolved(j,E,h,!m),u,c,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=tt.now(),Fk(t,s,o,a)||((sn.instantAnimations||!u)&&(d==null||d(xd(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>$k?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&Uk(h)?new Vk({...h,element:h.motionValue.owner.current}):new Ra(h);p.finished.then(()=>this.notifyFinished()).catch(st),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ck()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const Wk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kk(e){const t=Wk.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function E0(e,t,n=1){const[r,i]=Kk(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Gg(o)?parseFloat(o):o}return hd(i)?E0(i,t,n+1):i}function jd(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const C0=new Set(["width","height","top","left","right","bottom",...ai]),Gk={test:e=>e==="auto",parse:e=>e},T0=e=>t=>t.test(e),b0=[oi,H,Wt,pn,Bj,zj,Gk],Xh=e=>b0.find(T0(e));function Yk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qg(e):!0}const Qk=new Set(["brightness","contrast","saturate","opacity"]);function Xk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(md)||[];if(!r)return e;const i=n.replace(r,"");let s=Qk.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const qk=/\b([a-z-]*)\(.*?\)/gu,Uu={...In,getAnimatableNone:e=>{const t=e.match(qk);return t?t.map(Xk).join(" "):e}},qh={...oi,transform:Math.round},Zk={rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:so,scaleX:so,scaleY:so,scaleZ:so,skew:pn,skewX:pn,skewY:pn,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:ps,originX:_h,originY:_h,originZ:H},kd={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H,...Zk,zIndex:qh,fillOpacity:ps,strokeOpacity:ps,numOctaves:qh},Jk={...kd,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:Uu,WebkitFilter:Uu},M0=e=>Jk[e];function R0(e,t){let n=M0(e);return n!==Uu&&(n=In),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,652 bytes, line 241
241const eN=new Set(["auto","none","0"]);function tN(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!eN.has(s)&&ys(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=R0(n,i)}class nN extends Sd{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),hd(c))){const d=E0(c,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!C0.has(r)||t.length!==2)return;const[i,s]=t,o=Xh(i),a=Xh(s);if(o!==a)if(Kh(o)&&Kh(a))for(let u=0;u<t.length;u++){const c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else or[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Yk(t[i]))&&r.push(i);r.length&&tN(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=or[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=or[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 5,371 bytes, line 241
241h(([u,c])=>{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function L0(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const A0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zh=30,rN=e=>!isNaN(parseFloat(e)),Ki={current:void 0};class iN{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var o,a;const s=tt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty();i&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=tt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rN(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 ld);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ki.current&&Ki.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zh);return ud(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Lt(e,t){return new iN(e,t)}const{schedule:Nd,cancel:YC}=o0(queueMicrotask,!1),Tt={x:!1,y:!1};function D0(){return Tt.x||Tt.y}function sN(e){return e==="x"||e==="y"?Tt[e]?null:(Tt[e]=!0,()=>{Tt[e]=!1}):Tt.x||Tt.y?null:(Tt.x=Tt.y=!0,()=>{Tt.x=Tt.y=!1})}function I0(e,t){const n=L0(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Jh(e){return!(e.pointerType==="touch"||D0())}function oN(e,t,n={}){const[r,i,s]=I0(e,n),o=a=>{if(!Jh(a))return;const{target:u}=a,c=t(u,a);if(typeof c!="function"||!u)return;const d=f=>{Jh(f)&&(c(f),u.removeEventListener("pointerleave",d))};u.addEventListener("pointerleave",d,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const O0=(e,t)=>t?e===t?!0:O0(e,t.parentElement):!1,Pd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,aN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lN(e){return aN.has(e.tagName)||e.tabIndex!==-1}const Po=new WeakSet;function em(e){return t=>{t.key==="Enter"&&e(t)}}function kl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const uN=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=em(()=>{if(Po.has(n))return;kl(n,"down");const i=em(()=>{kl(n,"up")}),s=()=>kl(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function tm(e){return Pd(e)&&!D0()}function cN(e,t,n={}){const[r,i,s]=I0(e,n),o=a=>{const u=a.currentTarget;if(!tm(a))return;Po.add(u);const c=t(u,a),d=(p,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Po.has(u)&&Po.delete(u),tm(p)&&typeof c=="function"&&c(p,{success:x})},f=p=>{d(p,u===window||u===document||n.useGlobalTarget||O0(u,p.target))},h=p=>{d(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),La(a)&&(a.addEventListener("focus",c=>uN(c,i)),!lN(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Ed(e){return Yg(e)&&"ownerSVGElement"in e}const Eo=new WeakMap;let yn;const V0=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Ed(r)&&"getBBox"in r?r.getBBox()[t]:r[n],dN=V0("inline","width","offsetWidth"),fN=V0("block","height","offsetHeight");function hN({target:e,borderBoxSize:t}){var n;
241(n=Eo.get(e))==null||n.forEach(r=>{r(e,{get width(){return dN(e,t)},get height(){return fN(e,t)}})})}function mN(e){e.forEach(hN)}function pN(){typeof ResizeObserver>"u"||(yn=new ResizeObserver(mN))}function yN(e,t){yn||pN();const n=L0(e);return n.forEach(r=>{let i=Eo.get(r);i||(i=new Set,Eo.set(r,i)),i.add(t),yn==null||yn.observe(r)}),()=>{n.forEach(r=>{const i=Eo.get(r);i==null||i.delete(t),i!=null&&i.size||yn==null||yn.unobserve(r)})}}const Co=new Set;let Ir;function gN(){Ir=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Co.forEach(t=>t(e))},window.addEventListener("resize",Ir)}function vN(e){return Co.add(e),Ir||gN(),()=>{Co.delete(e),!Co.size&&typeof Ir=="function"&&(window.removeEventListener("resize",Ir),Ir=void 0)}}function xN(e,t){return typeof e=="function"?vN(e):yN(e,t)}function _0(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return ae.preUpdate(r,!0),()=>Ot(r)}function wN(e){return Ed(e)&&e.tagName==="svg"}function SN(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],a=vd(i,s,o);return t?a(r):a}const Ae=e=>!!(e&&e.getVelocity);function jN(e,t,n){const r=e.get();let i=null,s=r,o;const a=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,u=()=>{i&&(i.stop(),i=null)},c=()=>{u(),i=new Ra({keyframes:[rm(e.get()),rm(s)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})};e.attach((f,h)=>(s=f,o=p=>h(nm(p,a)),ae.postRender(c),e.get()),u);let d;return Ae(t)&&(d=t.on("change",f=>e.set(nm(f,a))),e.on("destroy",d)),d}function nm(e,t){return t?e+t:e}function rm(e){return typeof e=="number"?e:parseFloat(e)}const kN=[...b0,Pe,In],NN=e=>kN.find(T0(e)),Ls=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class PN extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=La(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function EN({children:e,isPresent:t,anchorX:n}){const r=w.useId(),i=w.useRef(null),s=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=w.useContext(Ls);return w.useInsertionEffect(()=>{const{width:a,height:u,top:c,left:d,right:f}=s.current;if(t||!i.current||!a||!u)return;const h=n==="left"?`left: ${d}`:`right: ${f}`;i.current.dataset.motionPopId=r;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` 242 [data-motion-pop-id="${r}"] { 243 position: absolute !important; 244 width: ${a}px !important; 245 height: ${u}px !important; 246 ${h}px !important; 247 top: ${c}px !important; 248 } 249 `),()=>{document.head.contains(p)&&document.head.removeChild(p)}},[t]),l.jsx(PN,{isPresent:t,childRef:i,sizeRef:s,children:w.cloneElement(e,{ref:i})})}const CN=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a})=>{const u=si(TN),c=w.useId();let d=!0,f=w.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:h=>{u.set(h,!0);for(const p of u.values())if(!p)return;r&&r()},register:h=>(u.set(h,!1),()=>u.delete(h))}),[n,u,r]);return s&&d&&(f={...f}),w.useMemo(()=>{u.forEach((h,p)=>u.set(p,!1))},[n]),w.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=l.jsx(EN,{isPresent:n,anchorX:a,children:e})),l.jsx(Ma.Provider,{value:f,children:e})};function TN(){return new Map}function F0(e=!0){const t=w.useContext(Ma);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=w.useId();w.useEffect(()=>{if(e)return i(s)},[e]);const o=w.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const oo=e=>e.key||"";function im(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const sm=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left"})=>{const[u,c]=F0(o),d=w.useMemo(()=>im(e),[e]),f=o&&!u?[]:d.map(oo),h=w.useRef(!0),p=w.useRef(d),x=si(()=>new Map),[j,E]=w.useState(d),[m,g]=w.useState(d);ba(()=>{h.current=!1,p.current=d;for(let P=0;P<m.length;P++){const v=oo(m[P]);f.includes(v)?x.delete(v):x.get(v)!==!0&&x.set(v,!1)}},[m,f.length,f.join("-")]);const y=[];if(d!==j){let P=[...d];for(let v=0;v<m.length;v++){const b=m[v],T=oo(b);f.includes(T)||(P.splice(v,0,b),y.push(b))}return s==="wait"&&y.length&&(P=y),g(im(P)),E(d),null}const{forceRender:N}=w.useContext(rd);return l.jsx(l.Fragment,{children:m.map(P=>{const v=oo(P),b=o&&!u?!1:d===m||f.includes(v),T=()=>{if(x.has(v))x.set(v,!0);else return;let A=!0;x.forEach(I=>{I||(A=!1)}
vendor: 41,905 bytes, line 249
249),A&&(N==null||N(),g(p.current),o&&(c==null||c()),r&&r())};return l.jsx(CN,{isPresent:b,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:T,anchorX:a,children:P},v)})})},z0=w.createContext({strict:!1}),om={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"]},ti={};for(const e in om)ti[e]={isEnabled:t=>om[e].some(n=>!!t[n])};function bN(e){for(const t in e)ti[t]={...ti[t],...e[t]}}const MN=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 ua(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MN.has(e)}let B0=e=>!ua(e);function RN(e){typeof e=="function"&&(B0=t=>t.startsWith("on")?!ua(t):e(t))}try{RN(require("@emotion/is-prop-valid").default)}catch{}function LN(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(B0(i)||n===!0&&ua(i)||!t&&!ua(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function AN(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Aa=w.createContext({});function Da(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function gs(e){return typeof e=="string"||Array.isArray(e)}const Cd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Td=["initial",...Cd];function Ia(e){return Da(e.animate)||Td.some(t=>gs(e[t]))}function U0(e){return!!(Ia(e)||e.variants)}function DN(e,t){if(Ia(e)){const{initial:n,animate:r}=e;return{initial:n===!1||gs(n)?n:void 0,animate:gs(r)?r:void 0}}return e.inherit!==!1?t:{}}function IN(e){const{initial:t,animate:n}=DN(e,w.useContext(Aa));return w.useMemo(()=>({initial:t,animate:n}),[am(t),am(n)])}function am(e){return Array.isArray(e)?e.join(" "):e}const ON=Symbol.for("motionComponentSymbol");function Or(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VN(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Or(n)&&(n.current=r))},[t])}const bd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_N="framerAppearId",$0="data-"+bd(_N),H0=w.createContext({});function FN(e,t,n,r,i){var j,E;const{visualElement:s}=w.useContext(Aa),o=w.useContext(z0),a=w.useContext(Ma),u=w.useContext(Ls).reducedMotion,c=w.useRef(null);r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:u}));const d=c.current,f=w.useContext(H0);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&zN(c.current,n,i,f);const h=w.useRef(!1);w.useInsertionEffect(()=>{d&&h.current&&d.update(n,a)});const p=n[$0],x=w.useRef(!!p&&!((j=window.MotionHandoffIsComplete)!=null&&j.call(window,p))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,p)));return ba(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Nd.render(d.render),x.current&&d.animationState&&d.animationState.animateChanges())}),w.useEffect(()=>{d&&(!x.current&&d.animationState&&d.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,p)}),x.current=!1))}),d}function zN(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:W0(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Or(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:c})}function W0(e){if(e)return e.options.allowProjection!==!1?e.projection:W0(e.parent)}function BN({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&bN(e);function s(a,u){let c;const d={...w.useContext(Ls),...a,layoutId:UN(a)},{isStatic:f}=d,h=IN(a),p=r(a,f);if(!f&&id){$N();const x=HN(d);c=x.MeasureLayout,h.visualElement=FN(i,p,d,t,x.ProjectionNode)}return l.jsxs(Aa.Provider,{value:h,children:[c&&h.visualElement?l.jsx(c,{visualElement:h.visualElement,...d}):null,n(i,a,VN(p,h.visualElement,u),p,f,h.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=w.forwardRef(s);return o[ON]=i,o}function UN({layoutId:e}){const t=w.useContext(rd).id;return t&&e!==void 0?t+"-"+e:e}function $N(e,t){w.useContext(z0).strict}function HN(e){const{drag:t,layout:n}=ti;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const vs={};function WN(e){for(const t in e)vs[t]=e[t],fd(t)&&(vs[t].isCSSVariable=!0)}function K0(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vs[e]||e==="opacity")}const KN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GN=ai.length;function YN(e,t,n){let r="",i=!0;for(let s=0;s<GN;s++){const o=ai[s],a=e[o];if(a===void 0)continue;let u=!0;if(typeof a=="number"?u=a===(o.startsWith("scale")?1:0):u=parseFloat(a)===0,!u||n){const c=A0(a,kd[o]);if(!u){i=!1;const d=KN[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Md(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const u in t){const c=t[u];if(li.has(u)){o=!0;continue}else if(fd(u)){i[u]=c;continue}else{const d=A0(c,kd[u]);u.startsWith("origin")?(a=!0,s[u]=d):r[u]=d}}if(t.transform||(o||n?r.transform=YN(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${u} ${c} ${d}`}}const Rd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function G0(e,t,n){for(const r in t)!Ae(t[r])&&!K0(r,n)&&(e[r]=t[r])}function QN({transformTemplate:e},t){return w.useMemo(()=>{const n=Rd();return Md(n,t,e),Object.assign({},n.vars,n.style)},[t])}function XN(e,t){const n=e.style||{},r={};return G0(r,n,e),Object.assign(r,QN(e,t)),r}function qN(e,t){const n={},r=XN(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 ZN={offset:"stroke-dashoffset",array:"stroke-dasharray"},JN={offset:"strokeDashoffset",array:"strokeDasharray"};function eP(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?ZN:JN;e[s.offset]=H.transform(-r);const o=H.transform(t),a=H.transform(n);e[s.array]=`${o} ${a}`}function Y0(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},u,c,d){if(Md(e,a,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&eP(f,i,s,o,!1)}const Q0=()=>({...Rd(),attrs:{}}),X0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tP(e,t,n,r){const i=w.useMemo(()=>{const s=Q0();return Y0(s,t,X0(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};G0(s,e.style,e),i.style={...s,...i.style}}return i}const nP=["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 Ld(e){return typeof e!="string"||e.includes("-")?!1:!!(nP.indexOf(e)>-1||/[A-Z]/u.test(e))}function rP(e=!1){return(n,r,i,{latestValues:s},o)=>{const u=(Ld(n)?tP:qN)(r,s,o,n),c=LN(r,typeof n=="string",e),d=n!==w.Fragment?{...c,...u,ref:i}:{},{children:f}=r,h=w.useMemo(()=>Ae(f)?f.get():f,[f]);return w.createElement(n,{...d,children:h})}}function lm(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ad(e,t,n,r){if(typeof t=="function"){const[i,s]=lm(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=lm(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function To(e){return Ae(e)?e.get():e}function iP({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:sP(n,r,i,e),renderState:t()}}const q0=e=>(t,n)=>{const r=w.useContext(Aa),i=w.useContext(Ma),s=()=>iP(e,t,r,i);return n?s():si(s)};function sP(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=To(s[h]);let{initial:o,animate:a}=e;const u=Ia(e),c=U0(e);t&&c&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!Da(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const x=Ad(e,h[p]);if(x){const{transitionEnd:j,transition:E,...m}=x;for(const g in m){let y=m[g];if(Array.isArray(y)){const N=d?y.length-1:0;y=y[N]}y!==null&&(i[g]=y)}for(const g in j)i[g]=j[g]}}}return i}function Dd(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Ae(r[o])||t.style&&Ae(t.style[o])||K0(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const oP={useVisualState:q0({scrapeMotionValuesFromProps:Dd,createRenderState:Rd})};function Z0(e,t,n){const r=Dd(e,t,n);for(const i in e)if(Ae(e[i])||Ae(t[i])){const s=ai.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const aP={useVisualState:q0({scrapeMotionValuesFromProps:Z0,createRenderState:Q0})};function lP(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Ld(r)?aP:oP,preloadedFeatures:e,useRender:rP(i),createVisualElement:t,Component:r};return BN(o)}}function xs(e,t,n){const r=e.getProps();return Ad(r,t,n!==void 0?n:r.custom,e)}const $u=e=>Array.isArray(e);function uP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Lt(n))}function cP(e){return $u(e)?e[e.length-1]||0:e}function dP(e,t){const n=xs(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=cP(s[o]);uP(e,o,a)}}function fP(e){return!!(Ae(e)&&e.add)}function Hu(e,t){const n=e.getValue("willChange");if(fP(n))return n.add(t);if(!n&&sn.WillChange){const r=new sn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function J0(e){return e.props[$0]}const hP=e=>e!==null;function mP(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(hP),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const pP={type:"spring",stiffness:500,damping:25,restSpeed:10},yP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gP={type:"keyframes",duration:.8},vP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xP=(e,{keyframes:t})=>t.length>2?gP:li.has(e)?e.startsWith("scale")?yP(t[1]):pP:vP;function wP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:u,elapsed:c,...d}){return!!Object.keys(d).length}const Id=(e,t,n,r={},i,s)=>o=>{const a=jd(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-$t(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};wP(a)||Object.assign(d,xP(e,d)),d.duration&&(d.duration=$t(d.duration)),d.repeatDelay&&(d.repeatDelay=$t(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),(sn.instantAnimations||sn.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const h=mP(d.keyframes,a);if(h!==void 0){ae.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Ra(d):new Hk(d)};function SP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ev(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const f=e.getValue(d,e.latestValues[d]??null),h=a[d];if(h===void 0||c&&SP(c,d))continue;const p={delay:n,...jd(s||{},d)},x=f.get();if(x!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===x&&!p.velocity)continue;let j=!1;if(window.MotionHandoffAnimation){const m=J0(e);if(m){const g=window.MotionHandoffAnimation(m,d,ae);g!==null&&(p.startTime=g,j=!0)}}Hu(e,d),f.start(Id(d,f,h,e.shouldReduceMotion&&C0.has(d)?{type:!1}:p,e,j));const E=f.animation;E&&u.push(E)}return o&&Promise.all(u).then(()=>{ae.update(()=>{o&&dP(e,o)})}),u}function Wu(e,t,n={}){var u;const r=xs(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(ev(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return jP(e,t,d+c,f,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,d]=a==="beforeChildren"?[s,o]:[o,s];return c().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function jP(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,u=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(kP).forEach((c,d)=>{c.notify("AnimationStart",t),o.push(Wu(c,t,{...s,delay:n+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function kP(e,t){return e.sortNodePosition(t)}function NP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Wu(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Wu(e,t,n);else{const i=typeof t=="function"?xs(e,t,n.custom):t;r=Promise.all(ev(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const PP=Td.length;function nv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<PP;n++){const r=Td[n],i=e.props[r];(gs(i)||i===!1)&&(t[r]=i)}return t}const EP=[...Cd].reverse(),CP=Cd.length;function TP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>NP(e,n,r)))}function bP(e){let t=TP(e),n=um(),r=!0;const i=u=>(c,d)=>{var h;const f=xs(e,d,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(f){const{transition:p,transitionEnd:x,...j}=f;c={...c,...j,...x}}return c};function s(u){t=u(e)}function o(u){const{props:c}=e,d=nv(e.parent)||{},f=[],h=new Set;let p={},x=1/0;for(let E=0;E<CP;E++){const m=EP[E],g=n[m],y=c[m]!==void 0?c[m]:d[m],N=gs(y),P=m===u?g.isActive:null;P===!1&&(x=E);let v=y===d[m]&&y!==c[m]&&N;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),g.protectedKeys={...p},!g.isActive&&P===null||!y&&!g.prevProp||Da(y)||typeof y=="boolean")continue;const b=MP(g.prevProp,y);let T=b||m===u&&g.isActive&&!v&&N||E>x&&N,A=!1;const I=Array.isArray(y)?y:[y];let ie=I.reduce(i(m),{});P===!1&&(ie={});const{prevResolvedValues:_e={}}=g,He={..._e,...ie},J=q=>{T=!0,h.has(q)&&(A=!0,h.delete(q)),g.needsAnimating[q]=!0;const L=e.getValue(q);L&&(L.liveStyle=!1)};for(const q in He){const L=ie[q],_=_e[q];if(p.hasOwnProperty(q))continue;let F=!1;$u(L)&&$u(_)?F=!tv(L,_):F=L!==_,F?L!=null?J(q):h.add(q):L!==void 0&&h.has(q)?J(q):g.protectedKeys[q]=!0}g.prevProp=y,g.prevResolvedValues=ie,g.isActive&&(p={...p,...ie}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(v&&b)||A)&&f.push(...I.map(q=>({animation:q,options:{type:m}})))}if(h.size){const E={};if(typeof c.initial!="boolean"){const m=xs(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(E.transition=m.transition)}h.forEach(m=>{const g=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),E[m]=g??null}),f.push({animation:E})}let j=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(j=!1),r=!1,j?t(f):Promise.resolve()}function a(u,c){var f;if(n[u].isActive===c)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(u,c)}),n[u].isActive=c;const d=o(u);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=um(),r=!0}}}function MP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tv(t,e):!1}function Wn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function um(){return{animate:Wn(!0),whileInView:Wn(),whileHover:Wn(),whileTap:Wn(),whileDrag:Wn(),whileFocus:Wn(),exit:Wn()}}class zn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class RP extends zn{constructor(t){super(t),t.animationState||(t.animationState=bP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Da(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let LP=0;class AP extends zn{constructor(){super(...arguments),this.id=LP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const DP={animation:{Feature:RP},exit:{Feature:AP}};function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function As(e){return{point:{x:e.pageX,y:e.pageY}}}const IP=e=>t=>Pd(t)&&e(t,As(t));function Gi(e,t,n,r){return ws(e,t,IP(n),r)}function rv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function OP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const iv=1e-4,_P=1-iv,FP=1+iv,sv=.01,zP=0-sv,BP=0+sv;function Qe(e){return e.max-e.min}function UP(e,t,n){return Math.abs(e-t)<=n}function cm(e,t,n,r=.5){e.origin=r,e.originPoint=ye(t.min,t.max,e.origin),e.scale=Qe(n)/Qe(t),e.translate=ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_P&&e.scale<=FP||isNaN(e.scale))&&(e.scale=1),(e.translate>=zP&&e.translate<=BP||isNaN(e.translate))&&(e.translate=0)}function Yi(e,t,n,r){cm(e.x,t.x,n.x,r?r.originX:void 0),cm(e.y,t.y,n.y,r?r.originY:void 0)}function dm(e,t,n){e.min=n.min+t.min,e.max=e.min+Qe(t)}function $P(e,t,n){dm(e.x,t.x,n.x),dm(e.y,t.y,n.y)}function fm(e,t,n){e.min=t.min-n.min,e.max=e.min+Qe(t)}function Qi(e,t,n){fm(e.x,t.x,n.x),fm(e.y,t.y,n.y)}const hm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vr=()=>({x:hm(),y:hm()}),mm=()=>({min:0,max:0}),Se=()=>({x:mm(),y:mm()});function vt(e){return[e("x"),e("y")]}function Nl(e){return e===void 0||e===1}function Ku({scale:e,scaleX:t,scaleY:n}){return!Nl(e)||!Nl(t)||!Nl(n)}function Yn(e){return Ku(e)||ov(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ov(e){return pm(e.x)||pm(e.y)}function pm(e){return e&&e!=="0%"}function ca(e,t,n){const r=e-n,i=t*r;return n+i}function ym(e,t,n,r,i){return i!==void 0&&(e=ca(e,i,r)),ca(e,n,r)+t}function Gu(e,t=0,n=1,r,i){e.min=ym(e.min,t,n,r,i),e.max=ym(e.max,t,n,r,i)}function av(e,{x:t,y:n}){Gu(e.x,t.translate,t.scale,t.originPoint),Gu(e.y,n.translate,n.scale,n.originPoint)}const gm=.999999999999,vm=1.0000000000001;function HP(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Fr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,av(e,o)),r&&Yn(s.latestValues)&&Fr(e,s.latestValues))}t.x<vm&&t.x>gm&&(t.x=1),t.y<vm&&t.y>gm&&(t.y=1)}function _r(e,t){e.min=e.min+t,e.max=e.max+t}function xm(e,t,n,r,i=.5){const s=ye(e.min,e.max,i);Gu(e,t,n,s,r)}function Fr(e,t){xm(e.x,t.x,t.scaleX,t.scale,t.originX),xm(e.y,t.y,t.scaleY,t.scale,t.originY)}function lv(e,t){return rv(VP(e.getBoundingClientRect(),t))}function WP(e,t,n){const r=lv(e,n),{scroll:i}=t;return i&&(_r(r.x,i.offset.x),_r(r.y,i.offset.y)),r}const uv=({current:e})=>e?e.ownerDocument.defaultView:null,wm=(e,t)=>Math.abs(e-t);function KP(e,t){const n=wm(e.x,t.x),r=wm(e.y,t.y);return Math.sqrt(n**2+r**2)}class cv{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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=El(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=KP(f.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:x}=f,{timestamp:j}=Re;this.history.push({...x,timestamp:j});const{onStart:E,onMove:m}=this.handlers;h||(E&&E(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Pl(h,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:x,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=El(f.type==="pointercancel"?this.lastMoveEventInfo:Pl(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,E),x&&x(f,E)},!Pd(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=As(t),a=Pl(o,this.transformPagePoint),{point:u}=a,{timestamp:c}=Re;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,El(a,this.history)),this.removeListeners=bs(Gi(this.contextWindow,"pointermove",this.handlePointerMove),Gi(this.contextWindow,"pointerup",this.handlePointerUp),Gi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function Pl(e,t){return t?{point:t(e.point)}:e}function Sm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function El({point:e},t){return{point:e,delta:Sm(e,dv(t)),offset:Sm(e,GP(t)),velocity:YP(t,.1)}}function GP(e){return e[0]}function dv(e){return e[e.length-1]}function YP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dv(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$t(t)));)n--;if(!r)return{x:0,y:0};const s=Ht(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function QP(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ye(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ye(n,e,r.max):Math.min(e,n)),e}function jm(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 XP(e,{top:t,left:n,bottom:r,right:i}){return{x:jm(e.x,n,i),y:jm(e.y,t,r)}}function km(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qP(e,t){return{x:km(e.x,t.x),y:km(e.y,t.y)}}function ZP(e,t){let n=.5;const r=Qe(e),i=Qe(t);return i>r?n=ei(t.min,t.max-r,e.min):r>i&&(n=ei(e.min,e.max-i,t.min)),Kt(0,1,n)}function JP(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 Yu=.35;function eE(e=Yu){return e===!1?e=0:e===!0&&(e=Yu),{x:Nm(e,"left","right"),y:Nm(e,"top","bottom")}}function Nm(e,t,n){return{min:Pm(e,t),max:Pm(e,n)}}function Pm(e,t){return typeof e=="number"?e:e[t]||0}const tE=new WeakMap;class nE{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Se(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(As(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:p,onDragStart:x}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sN(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vt(E=>{let m=this.getAxisMotionValue(E).get()||0;if(Wt.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const y=g.layout.layoutBox[E];y&&(m=Qe(y)*(parseFloat(m)/100))}}this.originPoint[E]=m}),x&&ae.postRender(()=>x(d,f)),Hu(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:x,onDrag:j}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:E}=f;if(p&&this.currentDirection===null){this.currentDirection=rE(E),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,E),this.updateAxis("y",f.point,E),this.visualElement.render(),j&&j(d,f)},a=(d,f)=>this.stop(d,f),u=()=>vt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new cv(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:uv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&ae.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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ao(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=QP(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Or(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=XP(r.layoutBox,t):this.constraints=!1,this.elastic=eE(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&vt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=JP(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Or(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=WP(r,i.root,this.visualElement.getTransformPagePoint());let o=qP(i.layout.layoutBox,s);if(n){const a=n(OP(o));this.hasMutatedConstraints=!!a,a&&(o=rv(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=vt(d=>{if(!ao(d,n,this.currentDirection))return;let f=u&&u[d]||{};o&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Hu(this.visualElement,t),r.start(Id(t,r,0,n,this.visualElement,!1))}stopAnimation(){vt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){vt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){vt(n=>{const{drag:r}=this.getProps();if(!ao(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-ye(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Or(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};vt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();i[o]=ZP({min:u,max:u},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),vt(o=>{if(!ao(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(ye(u,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;tE.set(this.visualElement,this);const t=this.visualElement.current,n=Gi(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Or(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ae.read(r);const o=ws(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(vt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Yu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function ao(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iE extends zn{constructor(t){super(t),this.removeGroupControls=st,this.removeListeners=st,this.controls=new nE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||st}unmount(){this.removeGroupControls(),this.removeListeners()}}const Em=e=>(t,n)=>{e&&ae.postRender(()=>e(t,n))};class sE extends zn{constructor(){super(...arguments),this.removePointerDownListener=st}onPointerDown(t){this.session=new cv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Em(t),onStart:Em(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&ae.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Gi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;const n=Cm(e,t.target.x),r=Cm(e,t.target.y);return`${n}% ${r}%`}},oE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=In.parse(e);if(i.length>5)return r;const s=In.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=u;const c=ye(a,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class aE extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;WN(lE),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ae.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Nd.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function fv(e){const[t,n]=F0(),r=w.useContext(rd);return l.jsx(aE,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(H0),isPresent:t,safeToRemove:n})}const lE={borderRadius:{...Pi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pi,borderTopRightRadius:Pi,borderBottomLeftRadius:Pi,borderBottomRightRadius:Pi,boxShadow:oE};function uE(e,t,n){const r=Ae(e)?e:Lt(e);return r.start(Id("",r,t,n)),r.animation}const cE=(e,t)=>e.depth-t.depth;class dE{constructor(){this.children=[],this.isDirty=!1}add(t){sd(this.children,t),this.isDirty=!0}remove(t){od(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cE),this.isDirty=!1,this.children.forEach(t)}}function fE(e,t){const n=tt.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ot(r),e(s-t))};return ae.setup(r,!0),()=>Ot(r)}const hv=["TopLeft","TopRight","BottomLeft","BottomRight"],hE=hv.length,Tm=e=>typeof e=="string"?parseFloat(e):e,bm=e=>typeof e=="number"||H.test(e);function mE(e,t,n,r,i,s){i?(e.opacity=ye(0,n.opacity??1,pE(r)),e.opacityExit=ye(t.opacity??1,0,yE(r))):s&&(e.opacity=ye(t.opacity??1,n.opacity??1,r));for(let o=0;o<hE;o++){const a=`border${hv[o]}Radius`;let u=Mm(t,a),c=Mm(n,a);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||bm(u)===bm(c)?(e[a]=Math.max(ye(Tm(u),Tm(c),r),0),(Wt.test(c)||Wt.test(u))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ye(t.rotate||0,n.rotate||0,r))}function Mm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pE=mv(0,.5,n0),yE=mv(.5,.95,st);function mv(e,t,n){return r=>r<e?0:r>t?1:n(ei(e,t,r))}function Rm(e,t){e.min=t.min,e.max=t.max}function gt(e,t){Rm(e.x,t.x),Rm(e.y,t.y)}function Lm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Am(e,t,n,r,i){return e-=t,e=ca(e,1/n,r),i!==void 0&&(e=ca(e,1/i,r)),e}function gE(e,t=0,n=1,r=.5,i,s=e,o=e){if(Wt.test(t)&&(t=parseFloat(t),t=ye(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ye(s.min,s.max,r);e===s&&(a-=t),e.min=Am(e.min,t,n,a,i),e.max=Am(e.max,t,n,a,i)}function Dm(e,t,[n,r,i],s,o){gE(e,t[n],t[r],t[i],t.scale,s,o)}const vE=["x","scaleX","originX"],xE=["y","scaleY","originY"];function Im(e,t,n,r){Dm(e.x,t,vE,n?n.x:void 0,r?r.x:void 0),Dm(e.y,t,xE,n?n.y:void 0,r?r.y:void 0)}function Om(e){return e.translate===0&&e.scale===1}function pv(e){return Om(e.x)&&Om(e.y)}function Vm(e,t){return e.min===t.min&&e.max===t.max}function wE(e,t){return Vm(e.x,t.x)&&Vm(e.y,t.y)}function _m(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function yv(e,t){return _m(e.x,t.x)&&_m(e.y,t.y)}function Fm(e){return Qe(e.x)/Qe(e.y)}function zm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class SE{constructor(){this.members=[]}add(t){sd(this.members,t),t.scheduleRender()}remove(t){if(od(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jE(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:h,skewX:p,skewY:x}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),x&&(r+=`skewY(${x}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 Cl=["","X","Y","Z"],kE={visibility:"hidden"},NE=1e3;let PE=0;function Tl(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=J0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gv(r)}function vv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=PE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(TE),this.nodes.forEach(AE),this.nodes.forEach(DE),this.nodes.forEach(bE)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new dE)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ld),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Ed(o)&&!wN(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=fE(f,250),bo.hasAnimatedSinceResize&&(bo.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 4,168 bytes, line 249
249h(Um))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||FE,{onLayoutAnimationStart:j,onLayoutAnimationComplete:E}=c.getProps(),m=!this.targetLayout||!yv(this.targetLayout,p),g=!f&&h;if(this.options.layoutRoot||this.resumeFrom||g||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...jd(x,"layout"),onPlay:j,onComplete:E};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,g)}else f||Um(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(IE),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bm);return}this.isUpdating||this.nodes.forEach(RE),this.isUpdating=!1,this.nodes.forEach(LE),this.nodes.forEach(EE),this.nodes.forEach(CE),this.clearAllSnapshots();const a=tt.now();Re.delta=Kt(0,1e3/60,a-Re.timestamp),Re.timestamp=a,Re.isProcessing=!0,vl.update.process(Re),vl.preRender.process(Re),vl.render.process(Re),Re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ME),this.sharedNodes.forEach(OE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ae.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ae.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Qe(this.snapshot.measuredBox.x)&&!Qe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Se(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const u=r(this.instance);
vendor: 27,442 bytes, line 249
249this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!pv(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Yn(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),zE(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Se();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(BE))){const{scroll:d}=this.root;d&&(_r(a.x,d.offset.x),_r(a.y,d.offset.y))}return a}removeElementScroll(o){var u;const a=Se();if(gt(a,o),(u=this.scroll)!=null&&u.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&>(a,o),_r(a.x,f.offset.x),_r(a.y,f.offset.y))}return a}applyTransform(o,a=!1){const u=Se();gt(u,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Fr(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Yn(d.latestValues)&&Fr(u,d.latestValues)}return Yn(this.latestValues)&&Fr(u,this.latestValues),u}removeTransform(o){const a=Se();gt(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!Yn(c.latestValues))continue;Ku(c.latestValues)&&c.updateSnapshot();const d=Se(),f=c.measurePageBox();gt(d,f),Im(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Yn(this.latestValues)&&Im(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Re.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),Qi(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Se(),this.targetWithTransforms=Se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$P(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gt(this.target,this.layout.layoutBox),av(this.target,this.targetDelta)):gt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),Qi(this.relativeTargetOrigin,this.target,p.target),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ku(this.parent.latestValues)||ov(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var x;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Re.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;gt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;HP(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Se());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lm(this.prevProjectionDelta.x,this.projectionDelta.x),Lm(this.prevProjectionDelta.y,this.projectionDelta.y)),Yi(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!zm(this.projectionDelta.x,this.prevProjectionDelta.x)||!zm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vr(),this.projectionDelta=Vr(),this.projectionDeltaWithTransform=Vr()}setAnimationOrigin(o,a=!1){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=Vr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Se(),p=u?u.source:void 0,x=this.layout?this.layout.source:void 0,j=p!==x,E=this.getStack(),m=!E||E.members.length<=1,g=!!(j&&!m&&this.options.crossfade===!0&&!this.path.some(_E));this.animationProgress=0;let y;this.mixTargetDelta=N=>{const P=N/1e3;$m(f.x,o.x,P),$m(f.y,o.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qi(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),VE(this.relativeTarget,this.relativeTargetOrigin,h,P),y&&wE(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Se()),gt(y,this.relativeTarget)),j&&(this.animationValues=d,mE(d,c,this.latestValues,P,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{bo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Lt(0)),this.currentAnimation=uE(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:d}=o;if(!(!a||!u||!c)){if(this!==o&&this.layout&&c&&xv(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Se();const f=Qe(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=Qe(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}gt(a,u),Fr(a,d),Yi(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new SE),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&Tl("z",o,c,this.animationValues);for(let d=0;d<Cl.length;d++)Tl(`rotate${Cl[d]}`,o,c,this.animationValues),Tl(`skew${Cl[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}getProjectionStyles(o){if(!this.instance||this.isSVG)return;if(!this.isVisible)return kE;const a={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=To(o==null?void 0:o.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none",a;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=To(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Yn(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),a.transform=jE(this.projectionDeltaWithTransform,this.treeScale,d),u&&(a.transform=u(d,a.transform));const{x:f,y:h}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?a.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in vs){if(d[p]===void 0)continue;const{correct:x,applyTo:j,isCSSVariable:E}=vs[p],m=a.transform==="none"?d[p]:x(d[p],c);if(j){const g=j.length;for(let y=0;y<g;y++)a[j[y]]=m}else E?this.options.visualElement.renderState.vars[p]=m:a[p]=m}return this.options.layoutId&&(a.pointerEvents=c===this?To(o==null?void 0:o.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Bm),this.root.sharedNodes.clear()}}}function EE(e){e.updateLayout()}function CE(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?vt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Qe(h);h.min=r[f].min,h.max=h.min+p}):xv(s,t.layoutBox,r)&&vt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Qe(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Vr();Yi(a,r,t.layoutBox);const u=Vr();o?Yi(u,e.applyTransform(i,!0),t.measuredBox):Yi(u,r,t.layoutBox);const c=!pv(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const x=Se();Qi(x,t.layoutBox,h.layoutBox);const j=Se();Qi(j,r,p.layoutBox),yv(x,j)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=j,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function TE(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ME(e){e.clearSnapshot()}function Bm(e){e.clearMeasurements()}function RE(e){e.isLayoutDirty=!1}function LE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Um(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AE(e){e.resolveTargetDelta()}function DE(e){e.calcProjection()}function IE(e){e.resetSkewAndRotation()}function OE(e){e.removeLeadSnapshot()}function $m(e,t,n){e.translate=ye(t.translate,0,n),e.scale=ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hm(e,t,n,r){e.min=ye(t.min,n.min,r),e.max=ye(t.max,n.max,r)}function VE(e,t,n,r){Hm(e.x,t.x,n.x,r),Hm(e.y,t.y,n.y,r)}function _E(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const FE={duration:.45,ease:[.4,0,.1,1]},Wm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Km=Wm("applewebkit/")&&!Wm("chrome/")?Math.round:st;function Gm(e){e.min=Km(e.min),e.max=Km(e.max)}function zE(e){Gm(e.x),Gm(e.y)}function xv(e,t,n){return e==="position"||e==="preserve-aspect"&&!UP(Fm(t),Fm(n),.2)}function BE(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const UE=vv({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bl={current:void 0},wv=vv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bl.current){const e=new UE({});e.mount(window),e.setOptions({layoutScroll:!0}),bl.current=e}return bl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$E={pan:{Feature:sE},drag:{Feature:iE,ProjectionNode:wv,MeasureLayout:fv}};function Ym(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&ae.postRender(()=>s(t,As(t)))}class HE extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=oN(t,(n,r)=>(Ym(this.node,r,"Start"),i=>Ym(this.node,i,"End"))))}unmount(){}}class WE extends zn{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=bs(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qm(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&ae.postRender(()=>s(t,As(t)))}class KE extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=cN(t,(n,r)=>(Qm(this.node,r,"Start"),(i,{success:s})=>Qm(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Qu=new WeakMap,Ml=new WeakMap,GE=e=>{const t=Qu.get(e.target);t&&t(e)},YE=e=>{e.forEach(GE)};function QE({root:e,...t}){const n=e||document;Ml.has(n)||Ml.set(n,{});const r=Ml.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(YE,{root:e,...t})),r[i]}function XE(e,t,n){const r=QE(t);return Qu.set(e,n),r.observe(e),()=>{Qu.delete(e),r.unobserve(e)}}const qE={some:0,all:1};class ZE extends zn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:qE[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(u)};return XE(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(JE(t,n))&&this.startObserver()}unmount(){}}function JE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const eC={inView:{Feature:ZE},tap:{Feature:KE},focus:{Feature:WE},hover:{Feature:HE}},tC={layout:{ProjectionNode:wv,MeasureLayout:fv}},Xu={current:null},Sv={current:!1};function nC(){if(Sv.current=!0,!!id)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xu.current=e.matches;e.addListener(t),t()}else Xu.current=!1}const rC=new WeakMap;function iC(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Ae(i))e.addValue(r,i);else if(Ae(s))e.addValue(r,Lt(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Lt(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Xm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=tt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ae.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Ia(n),this.isVariantNode=U0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];u[h]!==void 0&&Ae(p)&&p.set(u[h],!1)}}mount(t){this.current=t,rC.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)),Sv.current||nC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Xu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),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 ti){const n=ti[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Xm.length;r++){const i=Xm[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=iC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Lt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Gg(r)||Qg(r))?r=parseFloat(r):!NN(r)&&In.test(n)&&(r=R0(t,n)),this.setBaseTarget(t,Ae(r)?r.get():r)),Ae(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ad(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ae(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ld),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jv extends sC{constructor(){super(...arguments),this.KeyframeResolver=nN}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ae(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function oC(e){return window.getComputedStyle(e)}class aC extends jv{constructor(){super(...arguments),this.type="html",this.renderInstance=kv}readValueFromInstance(t,n){var r;if(li.has(n))return(r=this.projection)!=null&&r.isProjecting?Vu(n):jk(t,n);{const i=oC(t),s=(fd(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lv(t,n)}build(t,n,r){Md(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Dd(t,n,r)}}const Nv=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 lC(e,t,n,r){kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Nv.has(i)?i:bd(i),t.attrs[i])}class uC extends jv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=M0(n);return r&&r.default||0}return n=Nv.has(n)?n:bd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Z0(t,n,r)}build(t,n,r){Y0(t,n,this.isSVGTag,r.transformTemplate,r.style)}
249renderInstance(t,n,r,i){lC(t,n,r,i)}mount(t){this.isSVGTag=X0(t.tagName),super.mount(t)}}const cC=(e,t)=>Ld(e)?new uC(t):new aC(t,{allowProjection:e!==w.Fragment}),dC=lP({...DP,...eC,...$E,...tC},cC),Y=AN(dC),fC=50,qm=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),hC=()=>({time:0,x:qm(),y:qm()}),mC={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Zm(e,t,n,r){const i=n[t],{length:s,position:o}=mC[t],a=i.current,u=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=ei(0,i.scrollLength,i.current);const c=r-u;i.velocity=c>fC?0:ud(i.current-a,c)}function pC(e,t,n){Zm(e,"x",t,n),Zm(e,"y",t,n),t.time=n}function yC(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(La(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const qu={start:0,center:.5,end:1};function Jm(e,t,n=0){let r=0;if(e in qu&&(e=qu[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const gC=[0,0];function vC(e,t,n,r){let i=Array.isArray(e)?e:gC,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,qu[e]?e:"0"]),s=Jm(i[0],n,r),o=Jm(i[1],t),s-o}const xC={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},wC={x:0,y:0};function SC(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function jC(e,t,n){const{offset:r=xC.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?yC(i,e):wC,u=i===e?{width:e.scrollWidth,height:e.scrollHeight}:SC(i),c={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let d=!t[s].interpolate;const f=r.length;for(let h=0;h<f;h++){const p=vC(r[h],c[o],u[o],a[s]);!d&&p!==t[s].interpolatorOffsets[h]&&(d=!0),t[s].offset[h]=p}d&&(t[s].interpolate=vd(t[s].offset,g0(r),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=Kt(0,1,t[s].interpolate(t[s].current))}function kC(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function NC(e,t,n,r={}){return{measure:i=>{kC(e,r.target,n),pC(e,n,i),(r.offset||r.target)&&jC(e,n,r)},notify:()=>t(n)}}const Ei=new WeakMap,ep=new WeakMap,Rl=new WeakMap,tp=e=>e===document.scrollingElement?window:e;function Pv(e,{container:t=document.scrollingElement,...n}={}){if(!t)return st;let r=Rl.get(t);r||(r=new Set,Rl.set(t,r));const i=hC(),s=NC(t,e,i,n);if(r.add(s),!Ei.has(t)){const a=()=>{for(const f of r)f.measure(Re.timestamp);ae.preUpdate(u)},u=()=>{for(const f of r)f.notify()},c=()=>ae.read(a);Ei.set(t,c);const d=tp(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&ep.set(t,xN(t,c)),d.addEventListener("scroll",c,{passive:!0}),c()}const o=Ei.get(t);return ae.read(o,!1,!0),()=>{var c;Ot(o);const a=Rl.get(t);if(!a||(a.delete(s),a.size))return;const u=Ei.get(t);Ei.delete(t),u&&(tp(t).removeEventListener("scroll",u),(c=ep.get(t))==null||c(),window.removeEventListener("resize",u))}}const np=new Map;function PC(e){const t={value:0},n=Pv(r=>
249{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Ev({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);const i=np.get(t)??new Map;np.set(t,i);const s=n.target??"self",o=i.get(s)??{},a=r+(n.offset??[]).join(",");return o[a]||(o[a]=!n.target&&S0()?new ScrollTimeline({source:t,axis:r}):PC({container:t,...n})),o[a]}function EC(e,t){const n=Ev(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:r=>(r.pause(),_0(i=>{r.time=r.duration*i},n))})}function CC(e){return e.length===2}function TC(e,t){return CC(e)?Pv(n=>{e(n[t.axis].progress,n)},t):_0(e,Ev(t))}function bC(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return st;const i={axis:t,container:n,...r};return typeof e=="function"?TC(e,i):EC(e,i)}function rp(e,t){jj(!!(!t||t.current))}const MC=()=>({scrollX:Lt(0),scrollY:Lt(0),scrollXProgress:Lt(0),scrollYProgress:Lt(0)});function RC({container:e,target:t,layoutEffect:n=!0,...r}={}){const i=si(MC);return(n?ba:w.useEffect)(()=>(rp("target",t),rp("container",e),bC((o,{x:a,y:u})=>{i.scrollX.set(a.current),i.scrollXProgress.set(a.progress),i.scrollY.set(u.current),i.scrollYProgress.set(u.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),i}function Cv(e){const t=si(()=>Lt(e)),{isStatic:n}=w.useContext(Ls);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}function Tv(e,t){const n=Cv(t()),r=()=>n.set(t());return r(),ba(()=>{const i=()=>ae.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Ot(r)}}),n}function LC(e){Ki.current=[],e();const t=Tv(Ki.current,e);return Ki.current=void 0,t}function AC(e,t,n,r){if(typeof e=="function")return LC(e);const i=SN(t,n,r);return Array.isArray(e)?ip(e,i):ip([e],([s])=>i(s))}function ip(e,t){const n=si(()=>[]);return Tv(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function DC(e,t={}){const{isStatic:n}=w.useContext(Ls),r=()=>Ae(e)?e.get():e;if(n)return AC(r);const i=Cv(r());return w.useInsertionEffect(()=>jN(i,e,t),[i,JSON.stringify(t)]),i}const IC=()=>l.jsxs("section",{className:"relative overflow-hidden pt-32 pb-24 px-6",children:[l.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-30"}),l.jsx("div",{className:"absolute inset-0 bg-mesh-gradient"}),l.jsx("div",{className:"absolute top-20 left-10 h-72 w-72 rounded-full bg-blue-500/20 blur-3xl animate-float"}),l.jsx("div",{className:"absolute bottom-20 right-10 h-96 w-96 rounded-full bg-purple-500/20 blur-3xl animate-float",style:{animationDelay:"2s"}}),l.jsx("div",{className:"absolute top-40 right-1/4 h-80 w-80 rounded-full bg-cyan-500/20 blur-3xl animate-float",style:{animationDelay:"4s"}}),l.jsx("div",{className:"container mx-auto relative",children:l.jsxs(Y.div,{className:"max-w-5xl mx-auto text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},children:[l.jsxs(Y.div,{className:"inline-flex items-center gap-2 rounded-full border border-blue-500/20 bg-blue-500/10 backdrop-blur-sm px-4 py-2 text-sm font-medium text-blue-300 mb-8 shadow-glow",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.2},children:[l.jsx(pj,{className:"w-4 h-4"}),l.jsx("span",{children:"AI-Powered Terminal Intelligence"})]}),l.jsx(Y.div,{className:"mb-10",initial:{opacity:0}
249,animate:{opacity:1},transition:{duration:.6,delay:.3},children:l.jsx("a",{href:"https://www.producthunt.com/products/promptly-16?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-promptly-15",target:"_blank",rel:"noopener noreferrer",className:"inline-block hover:scale-105 transition-transform duration-300",children:l.jsx("img",{src:"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=997772&theme=neutral&t=1753509400427",alt:"Promptly - Your AI-Powered Terminal Companion | Product Hunt",className:"w-[250px] h-[54px]",width:"250",height:"54"})})}),l.jsxs(Y.h1,{className:"text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-bold mb-8 tracking-tight leading-tight",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},children:[l.jsx("span",{className:"text-gradient block mb-2",children:"Command Your Terminal"}),l.jsx("span",{className:"text-white/90",children:"with Natural Language"})]}),l.jsxs(Y.p,{className:"text-xl md:text-2xl text-gray-300 mb-12 max-w-3xl mx-auto leading-relaxed font-light",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},children:["Transform complex commands into simple conversations.",l.jsx("span",{className:"text-cyan-400 font-medium",children:" Promptly "}),"brings AI intelligence to your terminalâ",l.jsx("span",{className:"text-gradient-orange",children:"fast"}),", ",l.jsx("span",{className:"text-gradient-orange",children:"private"}),", and ",l.jsx("span",{className:"text-gradient-orange",children:"powerful"}),"."]}),l.jsxs(Y.div,{className:"flex flex-col sm:flex-row gap-4 justify-center items-center mb-16",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},children:[l.jsxs("a",{href:"#install",className:"primary-button text-base group",children:[l.jsx(sj,{className:"w-5 h-5 mr-2"}),"Get Started Free",l.jsx(J2,{className:"w-5 h-5 ml-2 group-hover:translate-x-1 transition-transform"})]}),l.jsxs("a",{href:"https://github.com/Harshcreator/promptly/tree/main/shell-assistant",className:"minimal-button text-base",target:"_blank",rel:"noopener noreferrer",children:[l.jsx(sr,{className:"w-5 h-5 mr-2"}),"View on GitHub"]})]}),l.jsx(Y.div,{className:"max-w-4xl mx-auto",initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:1,delay:1},children:l.jsxs("div",{className:"terminal-window shadow-glow-lg",children:[l.jsxs("div",{className:"terminal-header",children:[l.jsx("div",{className:"terminal-dot bg-red-500"}),l.jsx("div",{className:"terminal-dot bg-yellow-500"}),l.jsx("div",{className:"terminal-dot bg-green-500"}),l.jsxs("div",{className:"ml-auto flex items-center gap-2 text-gray-500 text-xs font-mono",children:[l.jsx(er,{className:"w-4 h-4"}),l.jsx("span",{children:"promptly-demo"})]})]}),l.jsxs("div",{className:"p-6 space-y-4 font-mono text-sm",children:[l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("span",{className:"text-cyan-400",children:"$"}),l.jsx("div",{className:"flex-1",children:l.jsx("span",{className:"text-gray-300",children:'sa "find all files larger than 100MB"'})})]}),l.jsxs("div",{className:"pl-6 text-gray-500 text-xs",children:[l.jsx("span",{className:"text-blue-400",children:"ð¡"})," Generating command..."]}),l.jsxs("div",{className:"pl-6 space-y-2",children:[l.jsxs("div",{className:"text-green-400",children:["â find . -type f -size +100M -exec ls -lh "," \\; | sort -k5 -hr"]}),l.jsx("div",{className:"text-gray-400 text-xs",children:"Lists all files larger than 100MB in current directory and subdirectories, sorted by size"})]}),l.jsxs("div",{className:"flex items-start gap-3 pt-2",children:[l.jsx("span",{className:"text-cyan-400",children:"$"}),l.jsx("span",{className:"text-gray-600 animate-pulse",children:"|"})]})]})]})}),l.jsxs(Y.div,{className:"flex flex-wrap justify-center gap-4 mt-16",initial:{opacity:0}
249,animate:{opacity:1},transition:{duration:.8,delay:1.2},children:[l.jsxs("div",{className:"glass-card px-4 py-2 text-sm",children:[l.jsx("span",{className:"text-gray-400",children:"ð"}),l.jsx("span",{className:"ml-2 text-gray-300",children:"3 AI Backends"})]}),l.jsxs("div",{className:"glass-card px-4 py-2 text-sm",children:[l.jsx("span",{className:"text-gray-400",children:"ð"}),l.jsx("span",{className:"ml-2 text-gray-300",children:"100% Offline Mode"})]}),l.jsxs("div",{className:"glass-card px-4 py-2 text-sm",children:[l.jsx("span",{className:"text-gray-400",children:"â¡"}),l.jsx("span",{className:"ml-2 text-gray-300",children:"Cross-Platform"})]}),l.jsxs("div",{className:"glass-card px-4 py-2 text-sm",children:[l.jsx("span",{className:"text-gray-400",children:"ð¡ï¸"}),l.jsx("span",{className:"ml-2 text-gray-300",children:"Built-in Safety"})]})]})]})})]}),OC=()=>l.jsx("section",{className:"py-20 px-6 border-t border-gray-900",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"See Promptly in Action"}),l.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Experience the difference between struggling with complex commands and getting instant AI assistance"})]}),l.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[l.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full"}),l.jsx("h3",{className:"text-lg font-semibold text-red-400",children:"Before: Struggling with commands"})]}),l.jsxs("div",{className:"code-block",children:[l.jsx("div",{className:"text-gray-500 mb-1",children:"# How do I find large files again?"}),l.jsx("div",{className:"text-gray-500 mb-1",children:"# Let me search Stack Overflow..."}),l.jsx("div",{className:"text-gray-500 mb-1",children:"# 15 minutes later..."}),l.jsx("div",{className:"text-red-400",children:"$ find . -type f -size +100M # Wait, this isn't right"})]})]}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[l.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),l.jsx("h3",{className:"text-lg font-semibold text-green-400",children:"After: AI-powered assistance"})]}),l.jsxs("div",{className:"code-block",children:[l.jsx("div",{className:"text-white mb-2",children:'$ sa "find files larger than 100MB and sort by size"'}),l.jsx("div",{className:"text-gray-400 mb-1",children:"â
Generated command:"}),l.jsxs("div",{className:"text-green-400 mb-2",children:["$ find . -type f -size +100M -exec ls -lh "," + | sort -k5 -hr"]}),l.jsx("div",{className:"text-gray-500 mb-2",children:"# Lists files larger than 100MB, sorted by size"}),l.jsx("div",{className:"text-gray-300",children:"Run this command? [R]un, [C]opy, [A]bort: r"})]})]})]})]})})}),VC=({features:e})=>{const t={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.1}}},n={hidden:{opacity:0,y:20},show:{opacity:1,y:0}};return l.jsxs("section",{id:"features",className:"py-24 px-6 border-t border-white/5 relative overflow-hidden",children:[l.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"}),l.jsx("div",{className:"container mx-auto relative",children:l.jsxs("div",{className:"max-w-7xl mx-auto",children:[l.jsxs(Y.div,{className:"section-header",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[l.jsxs("h2",{className:"section-title",children:[l.jsx("span",{className:"text-gradient",children:"Everything You Need"}),l.jsx("br",{}),l.jsx("span",{className:"text-white/90",children:"to Supercharge Your Terminal"})]}),l.jsx("p",{className:"section-subtitle",children:"Built for developers who demand speed, privacy, and intelligent assistance"})]}),l.jsx(Y.div,{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",variants:t,initial:"hidden",whileInView:"show",viewport:{once:!0},children:e.map((r,i)=>l.jsxs(Y.div,{className:"feature-card",variants:n,children:[l.jsxs("div",{className:"relative mb-5",children:[l.jsx("div",{className:"inline-flex p-3 rounded-xl bg-gradient-to-br from-blue-500/20 to-purple-500/20 border border-white/10 text-blue-400 group-hover:text-blue-300 transition-colors duration-300",children:r.icon}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-500/20 to-purple-500/20 rounded-xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]}),l.jsx("h3",{className:"text-xl font-semibold mb-3 text-white group-hover:text-blue-300 transition-colors duration-300",children:r.title}),l.jsx("p",{className:"text-gray-400 text-sm leading-relaxed group-hover:text-gray-300 transition-colors duration-300",children:r.description}),l.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-gradient-to-r from-blue-500 via-cyan-500 to-purple-500 o
249pacity-0 group-hover:opacity-100 transition-opacity duration-500 rounded-b-2xl"})]},i))}),l.jsxs(Y.div,{className:"mt-16 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:[l.jsx("p",{className:"text-gray-400 mb-6",children:"And many more features to explore..."}),l.jsxs("a",{href:"#install",className:"inline-flex items-center gap-2 text-blue-400 hover:text-blue-300 transition-colors duration-300 font-medium group",children:[l.jsx("span",{children:"Start using Promptly today"}),l.jsx("svg",{className:"w-4 h-4 group-hover:translate-x-1 transition-transform",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]})]})]})})]})},_C=({commandExamples:e})=>l.jsx("section",{className:"py-20 px-6 border-t border-gray-900",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"From Natural Language to Perfect Commands"}),l.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"See how Promptly transforms your requests into precise terminal commands"})]}),l.jsx("div",{className:"space-y-6",children:e.map((t,n)=>l.jsxs("div",{className:"border border-gray-900 rounded-xl overflow-hidden bg-gray-950/30",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-950/50 border-b border-gray-900",children:[l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx("div",{className:"w-3 h-3 bg-red-500/60 rounded-full"}),l.jsx("div",{className:"w-3 h-3 bg-yellow-500/60 rounded-full"}),l.jsx("div",{className:"w-3 h-3 bg-green-500/60 rounded-full"})]}),l.jsx("div",{className:"text-xs text-gray-500 font-mono",children:"terminal"})]}),l.jsxs("div",{className:"p-6 font-mono text-sm space-y-2",children:[l.jsxs("div",{className:"text-gray-300",children:[l.jsx("span",{className:"text-gray-500",children:"$"}),' sa "',t.before,'"']}),l.jsx("div",{className:"text-gray-500",children:"â
Generated command:"}),l.jsx("div",{className:"text-green-400 bg-gray-900/50 p-3 rounded border border-gray-800",children:t.after})]})]},n))})]})})}),FC=({aiBackends:e})=>l.jsx("section",{id:"backends",className:"py-20 px-6 border-t border-gray-900",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Choose Your AI Backend"}),l.jsx("p",{className:"text-gray-400 text-lg max-w-3xl mx-auto",children:"Promptly supports multiple AI backends. Pick the one that best fits your needs and environment."})]}),l.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:e.map(t=>l.jsxs("div",{className:"group border border-gray-900 rounded-xl overflow-hidden bg-gray-950/30 hover:border-gray-800 hover:bg-gray-950/50 transition-all duration-300",children:[l.jsxs("div",{className:"p-6 border-b border-gray-900",children:[l.jsxs("div",{className:"flex items-center justify-between mb-3",children:[l.jsxs("div",{className:"flex items-center space-x-3",children:[l.jsx("div",{className:"text-white p-2 rounded-lg bg-white/10",children:t.icon}),l.jsx("h3",{className:"text-lg font-semibold text-white",children:t.name})]}),l.jsx("span",{className:`px-2 py-1 text-xs font-medium text-white rounded-full ${t.badgeColor}`,children:t.badge})]}),l.jsx("p",{className:"text-gray-400 text-sm",children:t.description})]}),l.jsxs("div",{className:"p-6 border-b border-gray-900",children:[l.jsx("h4",{className:"font-semibold mb-3 text-green-400 text-sm",children:"Benefits"}),l.jsx("ul",{className:"space-y-2",children:t.benefits.map((n,r)=>l.jsxs("li",{className:"flex items-center space-x-2 text-sm text-gray-400",children:[l.jsx(nj,{className:"w-3 h-3 text-green-400 flex-shrink-0"}),l.jsx("span",{children:n})]},r))})]}),l.jsxs("div",{className:"p-6",children:[l.jsx("h4",{className:"font-semibold mb-2 text-white text-sm",children:"Requirements"}),l.jsx("p",{className:"text-sm text-gray-400 mb-4",children:t.requirements}),l.jsx("h4",{className:"font-semibold mb-3 text-white text-sm",children:"Qu
249ick Setup"}),l.jsx("div",{className:"code-block text-xs",children:t.setup.map((n,r)=>l.jsx("div",{className:n.startsWith("#")?"text-gray-500":"text-green-400",children:n},r))})]})]},t.id))}),l.jsx("div",{className:"mt-16 text-center",children:l.jsxs("div",{className:"border border-gray-900 rounded-xl p-8 max-w-3xl mx-auto bg-gray-950/30",children:[l.jsx("h3",{className:"font-semibold mb-3 text-white",children:"ð¡ Don't worry about choosing now!"}),l.jsxs("p",{className:"text-gray-400 text-sm leading-relaxed",children:["You can switch between backends anytime using the ",l.jsx("code",{className:"bg-gray-900 px-2 py-1 rounded text-green-400 font-mono",children:"--backend"})," flag. Ollama is set as default, but you can use any backend that suits your needs."]})]})})]})})}),zC=({installCommands:e,activeTab:t,setActiveTab:n})=>l.jsx("section",{id:"install",className:"py-20 px-6 border-t border-gray-900",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Install Promptly"}),l.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Quick installation for your preferred platform"})]}),l.jsxs("div",{className:"border border-gray-900 rounded-xl overflow-hidden bg-gray-950/30",children:[l.jsx("div",{className:"flex border-b border-gray-900 bg-gray-950/50",children:Object.entries(e).map(([r,i])=>l.jsx("button",{onClick:()=>n(r),className:`flex-1 px-6 py-4 text-sm font-medium transition-all duration-200 ${t===r?"bg-white text-black border-b-2 border-white":"text-gray-400 hover:text-white hover:bg-gray-900/50"}`,children:i.title},r))}),l.jsx("div",{className:"code-block m-0 border-0 rounded-none",children:e[t].commands.map((r,i)=>l.jsx("div",{className:`mb-1 ${r.startsWith("#")?"text-gray-500":"text-green-400"}`,children:r},i))})]})]})})}),BC=()=>l.jsx("section",{className:"py-20 px-6 bg-gray-800/30",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Quick Start Guide"}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-start space-x-4",children:[l.jsx("div",{className:"bg-blue-500 text-white rounded-full w-8 h-8 flex items-center justify-center font-bold",children:"1"}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-2",children:"Install Promptly"}),l.jsx("p",{className:"text-gray-300",children:"Follow the installation instructions for your platform above."})]})]}),l.jsxs("div",{className:"flex items-start space-x-4",children:[l.jsx("div",{className:"bg-blue-500 text-white rounded-full w-8 h-8 flex items-center justify-center font-bold",children:"2"}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-2",children:"Use the Promptly command"}),l.jsxs("p",{className:"text-gray-300",children:["Run ",l.jsx("code",{className:"bg-gray-700 px-2 py-1 rounded",children:'sa "your natural language request"'})," in your terminal."]})]})]}),l.jsxs("div",{className:"flex items-start space-x-4",children:[l.jsx("div",{className:"bg-blue-500 text-white rounded-full w-8 h-8 flex items-center justify-center font-bold",children:"3"}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-2",children:"Confirm or modify the command"}),l.jsx("p",{className:"text-gray-300",children:"Review the generated command, then run it, copy it, or abort."})]})]})]}),l.jsxs("div",{className:"bg-gray-900 rounded-lg p-6 font-mono text-sm",children:[l.jsx("div",{className:"text-blue-400 mb-2",children:'$ sa "find all text files larger than 1MB"'}),l.jsx("div",{className:"text-gray-300 mb-2",children:"â
Generated command:"}),l.jsx("div",{className:"text-green-400 mb-2",children:'$ find . -type f -name "*.txt" -size +1M'}),l.jsx("div",{className:"text-gray-400 mb-2",children:"# This command searches for all .txt files larger than 1MB"}),l.jsx("div",{className:"text-gray-300 mb-2",children:"Run this command? [R]un, [C]opy, [A]bort: r"}),l.jsx("div",{className:"text-gray-300",children:"Command executed successfully!"})]})]})]})})}),UC=({faqs:e,openFaq:t,setOpenFaq:n})=>l.jsx("section",{id:"faq",className:"py-20 px-6",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Frequently Asked Questions"}),l.jsx("div",{className:"space-y-4",children:e.map((r,i)=>l.jsxs("div",{className:"bg-gray-800/50 rounded-lg overflow-hidden",children:[l.jsxs("button",{onClick:()=>n(t===i?null:i),className:"w-full px-6 py-4 text-left flex items-center justify-between hover:bg-gray-800/70 transition-colors",children:[l.jsx("span",{className:"font-medium",children:r.question}),l.jsx(rj,{className:`w-5 h-5 transition-transform ${t===i?"rotate-180":""}`})]}),t===i&&l.jsx("div",{className:"px-6 pb-4 text-gray-300",children:r.answer})]},i))})]})})}),$C=({upcomingFeatures:e})=>l.jsx("section",{id:"upcoming",className:"py-20 px-6 bg-gray-800/30",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Coming Soon: Next-Generation Features"}),l.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"We're constantly evolving Promptly to make your terminal experience even more powerful. Here's what's coming in future releases."})]}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map((t,n)=>l.jsx("div",{className:"bg-gray-900/50 border border-gray-700 rounded-lg p-6 hover:border-blue-500/50 transition-all duration-300 transform hover:scale-105",children:l.jsxs("div",{className:"flex items-start space-x-4",children:[l.jsx("div",{className:"text-blue-400 flex-shrink-0",children:t.icon}),l.jsxs("div",{className:"flex-1",children:[l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("h3",{className:"text-lg font-semibold",children:t.title}),l.jsx("span",{className:"text-xs px-2 py-1 bg-blue-500/20 text-blue-300 rounded-full",children:t.category})]}),l.jsx("p",{className:"text-gray-300 text-sm leading-relaxed",children:t.description})]})]})}
249,n))}),l.jsx("div",{className:"text-center mt-12",children:l.jsxs("div",{className:"bg-gradient-to-r from-blue-500/10 to-purple-500/10 border border-blue-500/20 rounded-lg p-8",children:[l.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Want to Influence Development?"}),l.jsx("p",{className:"text-gray-300 mb-6 max-w-2xl mx-auto",children:"Join our community and help shape the future of Promptly. Vote on features, suggest improvements, or contribute to the development."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsxs("a",{href:"https://github.com/Harshcreator/promptly/issues",className:"bg-blue-500 hover:bg-blue-600 px-6 py-3 rounded-lg font-semibold transition-colors flex items-center space-x-2 justify-center",children:[l.jsx(sr,{className:"w-5 h-5"}),l.jsx("span",{children:"Request Features"})]}),l.jsxs("a",{href:"https://github.com/Harshcreator/promptly/tree/main/shell-assistant",className:"border border-gray-600 hover:border-gray-500 px-6 py-3 rounded-lg font-semibold transition-colors flex items-center space-x-2 justify-center",children:[l.jsx(bu,{className:"w-5 h-5"}),l.jsx("span",{children:"Contribute Code"})]})]})]})})]})})}),HC=()=>l.jsx("footer",{className:"border-t border-gray-900 py-16 px-6",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"grid md:grid-cols-4 gap-12",children:[l.jsxs("div",{className:"md:col-span-2",children:[l.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[l.jsx("div",{className:"p-2 rounded-lg bg-white/10",children:l.jsx(er,{className:"w-5 h-5 text-white"})}),l.jsx("span",{className:"text-lg font-semibold",children:"Promptly"})]}),l.jsx("p",{className:"text-gray-400 text-sm leading-relaxed max-w-md",children:"Your AI-powered terminal companion for enhanced productivity. Transform your command-line experience with intelligent assistance."})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-4 text-white",children:"Product"}),l.jsxs("ul",{className:"space-y-3 text-sm",children:[l.jsx("li",{children:l.jsx("a",{href:"#features",className:"text-gray-400 hover:text-white transition-colors",children:"Features"})}),l.jsx("li",{children:l.jsx("a",{href:"#install",className:"text-gray-400 hover:text-white transition-colors",children:"Installation"})}),l.jsx("li",{children:l.jsx("a",{href:"/docs",className:"text-gray-400 hover:text-white transition-colors",children:"Documentation"})}),l.jsx("li",{children:l.jsx("a",{href:"https://github.com/Harshcreator/promptly/blob/main/CHANGELOG.md",className:"text-gray-400 hover:text-white transition-colors",children:"Changelog"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-4 text-white",children:"Links"}),l.jsxs("ul",{className:"space-y-3 text-sm",children:[l.jsx("li",{children:l.jsxs("a",{href:"https://github.com/Harshcreator/promptly/tree/main/shell-assistant",className:"text-gray-400 hover:text-white transition-colors flex items-center space-x-2",children:[l.jsx(sr,{className:"w-4 h-4"}),l.jsx("span",{children:"GitHub"})]})}),l.jsx("li",{children:l.jsxs("a",{href:"/docs",className:"text-gray-400 hover:text-white transition-colors flex items-center space-x-2",children:[l.jsx(tj,{className:"w-4 h-4"}),l.jsx("span",{children:"Documentation"})]})}),l.jsx("li",{children:l.jsx("a",{href:"#faq",className:"text-gray-400 hover:text-white transition-colors",children:"FAQ"})})]})]})]}),l.jsxs("div",{className:"border-t border-gray-900 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center text-sm text-gray-500",children:[l.jsx("p",{children:"© 2025 Promptly. Open source under MPL License."}),l.jsx("p",{className:"mt-2 md:mt-0",children:"Built with â¤ï¸ for developers"})]})]})})}),WC=()=>{const[e,t]=w.useState("windows"),[n,r]=w.useState(null);w.useEffect(()=>{const d=navigator.platform.toLowerCase();d.includes("mac")?t("macos"):d.includes("linux")&&t("linux")},[]);const i={windows:{title:"Windows",commands:["# Clone the repository","git clone https://github.com/Harshcreator/promptly.git","cd promptly/shell-assistant","# Navigate to the powershell-module directory","cd powershell-module","# Install the PowerShell module",".\\Install-ShellAssistant.ps1","# Test it out",'sa "list all markdown files"']},macos:{title:"macOS",commands:["# Clone the repository","git clone https://github.com/Harshcreator/promptly.git","cd promptly/shell-assistant","# Build the CLI in release mode","cargo build --release","# Navigate to the shell-integration directory","cd shell-integration","# Install the shell integration","./install.sh","# Restart your shell or source your rc file","source ~/.zshrc"]},linux:{title:"Linux",commands:["# Clone the repository","git clone https://github.com/Harshcreator/promptly.git","cd promptly/shell-assistant","# Build the CLI in release mode","cargo build --release","# Navigate to the shell-integration directory","cd shell-integration","# Install the shell integration","./install.sh","# Restart your shell or source your rc file","source ~/.bashrc"]}},s=[{icon:l.jsx(Mh,{className:"w-8 h-8"}),title:"Multiple AI Backends",description:"Choose from Ollama (local), LLM-rs (offline), or OpenAI ChatGPT (cloud) - pick what works best for you."},{icon:l.jsx(cj,{className:"w-8 h-8"}),title:"Command Explanation",description:"Get clear, detailed explanations of complex commands to learn and understand better."},{icon:l.jsx(hj,{className:"w-8 h-8"}),title:"Smart History",description:"Record commands with timestamps and user feedback for future reference and easier recall."},{icon:l.jsx(ia,{className:"w-8 h-8"}),title:"Plugin System",description:"Specialized handlers for Git and Docker operations with an extensible architecture for more domains."},{icon:l.jsx(Rh,{className:"w-8 h-8"}),title:"Cross-Platform",description:"Works seamlessly on Windows, macOS, and Linux with PowerShell, Bash, and Zsh."},{icon:l.jsx(mj,{className:"w-8 h-8"}),title:"Command Safety",description:"Built-in safety checks to warn about potentially destructive commands."}],o=[{before:"How do I find all files larger than 100MB?",after:"find . -type f -size +100M -exec ls -lh {} + | sort -k5 -hr"},{before:"Create a backup of my project directory",after:"tar -czf project_backup_$(date +%Y%m%d_%H%M%S).tar.gz project/"},{before:"Show me disk usage by directory",after:"du -sh */ | sort -hr"}],a=[{question:"Do I need to install Ollama to use Promptly?",answer:"No! While Ollama is the default backend, Promptly supports 3 AI backends: Ollama (local AI), LLM-rs (offline GGUF models), and OpenAI (cloud-based). You can choose the one that fits your needs. Use --backend flag to switch between them."},{question:"How does Promptly integrate with my terminal?",answer:'Promptly integrates seamlessly with your existing terminal through shell-specific modules. For PowerShell, it installs as a module, while for Bash and Zsh, it uses shell scripts and aliases. Once integrated, you can use it with the "sa" command.'},{question:"Can I use Promptly completely offline?",answer:"Yes! Use either the Ollama backend (with locally installed models) or the LLM-rs backend with GGUF model files. Both options work completely offline without any internet connection."},{question:"How do I set up OpenAI ChatGPT integration?",answer:'Get an API key from https://platform.openai.com/api-keys, then set it as an environment variable: export OPENAI_API_KEY="sk-your-key". Use with: sa --backend openai "your request". You can also specify models like --openai-model gpt-4 for more powerful responses.'},{question:"Which terminals and shells are supported?",answer:"Promptly works with PowerShell, Bash, and Zsh. It integrates with popular terminal emulators like VS Code, Windows Terminal, and standard system terminals."},{question:"Does Promptly have plugins?",answer:'Yes! Promptly includes a plugin system with specialized handlers for Git and Docker operations. You can use these plugins with the --plugin flag, e.g., "sa --plugin git "commit all changes with message update docs"".'},{question:"Is Promptly open source?",answer:"Yes, Promptly is fully open source. You can find the source code on GitHub, contribute to the project, or customize it for your own needs."}],u=[{icon:l.jsx(Ai,{className:"w-8 h-8"}),title:"Shell Context Awareness",description:"Auto-detect current shell environment and provide context-aware suggestions based on your current directory and project type.",category:"Smart Integration"},{icon:l.jsx(oj,{className:"w-8 h-8"}),title:"Interactive Mode",description:"Preview commands before execution with interactive confirmation, editing capabilities, and detailed explanations.",category:"User Experience"},{icon:l.jsx(Mu,{className:"w-8 h-8"}),title:"Command Templates",description:"Save, reuse, and share command templates with your team. Create shortcuts for common tasks and workflows.",category:"Productivity"},{icon:l.jsx(uj,{className:"w-8 h-8"}),title:"Multi-Shell Translation",description:"Translate commands between PowerShell, Bash, and Zsh. Perfect for cross-platform development teams.",category:"Cross-Platform"},{icon:l.jsx(ia,{className:"w-8 h-8"}),title:"Enhanced Plugin System",description:"Extended plugins for AWS CLI, Docker, Kubernetes, Git workflows, package managers, and custom plugin development.",category:"Extensibility"},{icon:l.jsx(Mh,{className:"w-8 h-8"}),title:"Smart Learning",description:"AI learns from your patterns and preferences to provide personalized suggestions and automate repetitive tasks.",category:"Intelligence"},{icon:l.jsx(aj,{className:"w-8 h-8"}),title:"Tool Integration",description:"Deep integration with Git, Docker, package managers, and development tools for seamless workflow automation.",category:"Development"},{icon:l.jsx(fj,{className:"w-8 h-8"}),title:"Advanced Formatting",description:"Rich output formatting with tables, JSON, CSV export, smart piping, and customizable themes.",category:"Output"},{icon:l.jsx(gj,{className:"w-8 h-8"}),title:"Team Collaboration",description:"Share command templates, best practices, and configurations across teams with sync capabilities.",category:"Collaboration"},{icon:l.jsx(Lh,{className:"w-8 h-8"}),title:"Advanced Security",description:"Enhanced safety checks, command validation, audit trails, and secure execution modes for enterprise use.",category:"Security"},{icon:l.jsx(wj,{className:"w-8 h-8"}),title:"Terminal Integration",description:"Auto-completion, keyboard shortcuts, prompt integration, and terminal multiplexer support.",category:"Terminal"},{icon:l.jsx(ej,{className:"w-8 h-8"}),title:"Performance Monitoring",description:"Track usage statistics, performance metrics, resource monitoring, and optimization suggestions.",category:"Analytics"},{icon:l.jsx(yj,{className:"w-8 h-8"}),title:"Error Recovery",description:"Smart error handling with automatic fixes, alternative suggestions, and learning from failures.",category:"Reliability"},{icon:l.jsx(lj,{className:"w-8 h-8"}),title:"Enhanced Documentation",description:"Context-sensitive help, interactive tutorials, comprehensive examples, and community-driven guides.",category:"Learning"},{icon:l.jsx(vj,{className:"w-8 h-8"}),title:"Workflow Automation",description:"Create and execute complex multi-step workflows with conditional logic and error handling.",category:"Automation"}],c=[{id:"ollama",name:"Ollama",icon:l.jsx(ij,{className:"w-6 h-6"}),badge:"Recommended",badgeColor:"bg-green-500",description:"Local AI that runs on your machine",benefits:["Complete privacy","No API costs","Fast responses","Works offline"],requirements:"Ollama installed locally",setup:["winget install Ollama.Ollama","ollama pull codellama",'sa "list all markdown files"']},{id:"llm-rs",name:"Local GGUF Models",icon:l.jsx(Lh,{className:"w-6 h-6"}),badge:"Fully Offline",badgeColor:"bg-blue-500",description:"Completely offline with local model files",benefits:["Air-gapped compatible","No external dependencies","Complete control","High security"],requirements:"Download a GGUF model file",setup:["mkdir models","# Download tinyllama.gguf to models/",'sa --backend llm-rs "your command"']},{id:"openai",name:"OpenAI",icon:l.jsx(Rh,{className:"w-6 h-6"}),badge:"Cloud-based",badgeColor:"bg-purple-500",description:"Powerful cloud AI with no local setup",benefits:["No local installation","Powerful models","Always up-to-date","Quick setup"],requirements:"OpenAI API key",setup:['$env:OPENAI_API_KEY = "your-key"','sa --backend openai "your command"']}];return l.jsxs("div",{className:"min-h-screen bg-[#0A0A0F] text-foreground",children:[l.jsx(Sj,{}),l.jsx(IC,{}),l.jsx(OC,{}),l.jsx(VC,{features:s}),l.jsx(_C,{commandExamples:o}
249),l.jsx(FC,{aiBackends:c}),l.jsx(zC,{installCommands:i,activeTab:e,setActiveTab:t}),l.jsx(BC,{}),l.jsx(UC,{faqs:a,openFaq:n,setOpenFaq:r}),l.jsx($C,{upcomingFeatures:u}),l.jsx(HC,{})]})},hn=({id:e,title:t,icon:n,children:r})=>l.jsxs(Y.section,{id:e,className:"mb-16",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},children:[l.jsxs(Y.h2,{className:"text-2xl md:text-3xl font-bold mb-8 flex items-center space-x-3 text-white",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3,delay:.2},children:[l.jsx("div",{className:"p-2 rounded-lg bg-white/10",children:n}),l.jsx("span",{children:t})]}),l.jsx(Y.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.3},className:"border border-gray-900 rounded-xl p-6 bg-gray-950/30",children:r})]}),KC=()=>{const[e,t]=w.useState("overview"),[n,r]=w.useState(!1),{scrollYProgress:i}=RC(),s=DC(i,{stiffness:100,damping:30,restDelta:.001});w.useEffect(()=>{r(!1)},[e]);const o=a=>{t(e===a?null:a)};return l.jsxs("div",{className:"min-h-screen bg-black text-white",children:[l.jsx(Y.div,{className:"fixed top-0 left-0 right-0 h-0.5 bg-white z-50",style:{scaleX:s,transformOrigin:"0%"}}),l.jsxs("nav",{className:"fixed top-0 left-0 right-0 glass-effect border-b border-gray-900 z-40",children:[l.jsx("div",{className:"container mx-auto px-6 py-4",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs(Y.div,{className:"flex items-center space-x-3",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3},children:[l.jsx("div",{className:"p-2 rounded-lg bg-white/10 backdrop-blur-sm",children:l.jsx(er,{className:"w-5 h-5 text-white"})}),l.jsx("span",{className:"text-lg font-semibold",children:"Promptly"})]}),l.jsx("div",{className:"hidden md:flex items-center space-x-8",children:l.jsxs(Y.div,{className:"flex items-center space-x-8",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,staggerChildren:.1,delayChildren:.2},children:[l.jsx(Y.a,{href:"/",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Home"}),l.jsx(Y.a,{href:"#overview",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Overview"}),l.jsx(Y.a,{href:"#installation",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Installation"}),l.jsx(Y.a,{href:"#usage",className:"text-gray-400 hover:text-white transition-colors text-sm font-medium",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Usage"}),l.jsxs(Y.a,{href:"https://github.com/Harshcreator/promptly/tree/main/shell-assistant",className:"minimal-button",whileHover:{scale:1.05},whileTap:{scale:.95},children:[l.jsx(sr,{className:"w-4 h-4 mr-2"}),"GitHub"]})]})}),l.jsx("button",{className:"md:hidden focus:outline-none",onClick:()=>r(!n),children:n?l.jsx(xj,{className:"w-6 h-6 text-gray-400"}):l.jsx(dj,{className:"w-6 h-6 text-gray-400"})})]})}),l.jsx(sm,{children:n&&l.jsx(Y.div,{className:"md:hidden bg-gray-950/90 border-b border-gray-900",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},children:l.jsxs("div",{className:"container mx-auto px-6 py-4 flex flex-col space-y-4",children:[l.jsx("a",{href:"/",className:"text-gray-400 hover:text-white transition-colors py-2 text-sm",children:"Home"}),l.jsx("a",{href:"#overview",className:"text-gray-400 hover:text-white transition-colors py-2 text-sm",onClick:()=>o("overview"),children:"Overview"}),l.jsx("a",{href:"#installation",className:"text-gray-400 hover:text-white transition-colors py-2 text-sm",onClick:()=>o("installation"),children:"Installation"}),l.jsx("a",{href:"#usage",className:"text-gray-400 hover:text-white transition-colors py-2 text-sm",onClick:()=>o("usage"),children:"Usage"}),l.jsxs("a",{href:"https://github.com/Harshcreator/promptly/tree/main/shell-assistant",className:"text-gray-400 hover:text-white transition-colors py-2 text-sm flex items-center space-x-2",children:[l.jsx(sr,{className:"w-4 h-4"}),l.jsx("span",{children:"GitHub"})]})]})})})]}),l.jsxs(Y.div,{className:"pt-32 pb-16 px-6 relative overflow-hidden",initial:{opacity:0}
249,animate:{opacity:1},transition:{duration:.5},children:[l.jsx("div",{className:"absolute inset-0 bg-grid-pattern opacity-20"}),l.jsx("div",{className:"container mx-auto relative",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Y.div,{className:"flex items-center space-x-2 mb-6",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2,duration:.4},children:l.jsxs("a",{href:"/",className:"text-gray-400 hover:text-white transition-colors flex items-center space-x-2 text-sm",children:[l.jsx(Z2,{className:"w-4 h-4"}),l.jsx("span",{children:"Back to Home"})]})}),l.jsx(Y.h1,{className:"text-4xl md:text-5xl font-bold mb-6 text-gradient",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:.4},children:"Documentation"}),l.jsx(Y.p,{className:"text-lg text-gray-400 mb-8 max-w-2xl leading-relaxed",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4,duration:.4},children:"Learn how to install, configure, and use Promptly to boost your terminal productivity."})]})})]}),l.jsx("div",{className:"py-12 px-6 border-t border-gray-900",children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col lg:flex-row gap-12",children:[l.jsx("div",{className:"lg:w-64 shrink-0",children:l.jsxs(Y.div,{className:"sticky top-24 border border-gray-900 rounded-xl p-6 bg-gray-950/30",initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{duration:.4,delay:.5},children:[l.jsx("h3",{className:"font-semibold mb-6 text-lg text-white",children:"Contents"}),l.jsx(Y.ul,{className:"space-y-3",variants:{hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.1,delayChildren:.3}}},initial:"hidden",animate:"show",children:[{id:"overview",label:"Overview",icon:l.jsx(Mu,{className:"w-4 h-4 mr-2"})},{id:"installation",label:"Installation",icon:l.jsx(Ai,{className:"w-4 h-4 mr-2"})},{id:"terminal-integration",label:"Terminal Integration",icon:l.jsx(er,{className:"w-4 h-4 mr-2"})},{id:"usage",label:"Basic Usage",icon:l.jsx(bu,{className:"w-4 h-4 mr-2"})},{id:"features",label:"Features",icon:l.jsx(Ah,{className:"w-4 h-4 mr-2"})},{id:"plugins",label:"Plugins",icon:l.jsx(ia,{className:"w-4 h-4 mr-2"})},{id:"llm-backends",label:"LLM Backends",icon:l.jsx(Dh,{className:"w-4 h-4 mr-2"})},{id:"advanced",label:"Advanced Options",icon:l.jsx(Ai,{className:"w-4 h-4 mr-2"})}].map(a=>l.jsx(Y.li,{variants:{hidden:{opacity:0,x:-20},show:{opacity:1,x:0}},children:l.jsxs("a",{href:`#${a.id}`,className:`flex items-center py-3 px-3 rounded-lg transition-all duration-300 text-sm ${e===a.id?"bg-white/10 text-white border border-gray-800":"text-gray-400 hover:bg-white/5 hover:text-white"}`,onClick:u=>{u.preventDefault(),o(a.id)},children:[a.icon,a.label]})},a.id))})]})})," ",l.jsx(Y.div,{className:"flex-1",initial:{opacity:0}
249,animate:{opacity:1},transition:{duration:.5,delay:.6},children:l.jsxs(sm,{mode:"wait",children:[e==="overview"&&l.jsx(hn,{id:"overview",title:"Overview",icon:l.jsx(Mu,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none prose-headings:text-white prose-p:text-gray-400 prose-strong:text-white prose-code:text-white prose-code:bg-gray-900 prose-code:px-2 prose-code:py-1 prose-code:rounded",children:[l.jsx("p",{children:"Promptly is a Rust-based command-line interface (CLI) application that transforms natural language input into shell commands. It leverages a modular architecture with multiple components to handle various aspects of the application, including command execution, prompt construction, and plugin management."}),l.jsx("p",{children:"This smart CLI tool helps you navigate the terminal more efficiently by translating natural language requests into appropriate shell commands with explanations, reducing the need to remember complex command syntax or search online for solutions."}),l.jsx("h3",{className:"text-xl font-semibold my-4 text-white",children:"Project Structure"}),l.jsx("p",{children:"The project is organized as a Cargo workspace with the following crates:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"core"}),": Manages prompt construction, LLM integration, command safety checking, and parsing of responses."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"executor"}),": Executes shell commands with options for dry-run and user confirmation, featuring a safety checker."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"plugins"}),": Defines a plugin system with specialized handlers for Git and Docker operations."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"storage"}),": Stores command history with feedback, either in memory or in a persistent JSON file."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"cli"}),": The main binary crate that integrates all components and handles user input/output."]})]})]})},"overview"),e==="installation"&&l.jsx(hn,{id:"installation",title:"Installation",icon:l.jsx(Ai,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none",children:[l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-6",children:[l.jsx("h4",{className:"text-white font-semibold mb-2",children:"ð¯ Choose Your AI Backend First"}),l.jsxs("p",{className:"text-sm",children:["Before installing Promptly, decide which AI backend you want to use. See the ",l.jsx("a",{href:"#llm-backends",className:"text-white hover:underline",onClick:()=>o("llm-backends"),children:"LLM Backends"})," section for details."]})]}),l.jsx("h3",{children:"Quick Install Options"}),l.jsx("h4",{children:"Option A: With Ollama (Recommended)"}),l.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4 my-4",children:[l.jsxs("p",{className:"text-sm mb-2",children:[l.jsx("strong",{children:"Best for:"})," Most users, local development"]}),l.jsxs("div",{className:"code-block",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# 1. Install Ollama first"}),l.jsx("p",{className:"text-white",children:"winget install Ollama.Ollama # Windows"}),l.jsx("p",{className:"text-white",children:"# Or download from https://ollama.ai"}),l.jsx("p",{className:"text-gray-500 mt-3 mb-2",children:"# 2. Pull a model"}),l.jsx("p",{className:"text-white",children:"ollama pull codellama"}),l.jsx("p",{className:"text-gray-500 mt-3 mb-2",children:"# 3. Install Promptly"}),l.jsx("p",{className:"text-white",children:".\\Install-ShellAssistant.ps1 # Windows"}),l.jsx("p",{className:"text-white",children:"# OR ./install.sh # Linux/macOS"})]})]}),l.jsx("h4",{children:"Option B: Fully Offline (No External Dependencies)"}),l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-4",children:[l.jsxs("p",{className:"text-sm mb-2",children:[l.jsx("strong",{children:"Best for:"})," Air-gapped systems, privacy-focused users"]}),l.jsxs("div",{className:"code-block",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# 1. Install Promptly"}),l.jsx("p",{className:"text-white",children:".\\Install-ShellAssistant.ps1 # Windows"}),l.jsx("p",{className:"text-white",children:"# OR ./install.sh # Linux/macOS"}),l.jsx("p",{className:"text-gray-500 mt-3 mb-2",children:"# 2. Download a GGUF model"}),l.jsx("p",{className:"text-white",children:"mkdir models"}),l.jsx("p",{className:"text-white",children:"# Download tinyllama.gguf to models/"}),l.jsx("p",{className:"text-gray-500 mt-3 mb-2",children:"# 3. Use with llm-rs backend"}),l.jsx("p",{className:"text-white",children:'sa --backend llm-rs --model-path "models/tinyllama.gguf" "your request"'})]})]}),l.jsx("h4",{children:"Option C: Cloud-based (OpenAI)"}),l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-4",children:[l.jsxs("p",{className:"text-sm mb-2",children:[l.jsx("strong",{children:"Best for:"})," Users who prefer cloud AI"]}),l.jsxs("div",{className:"code-block",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# 1. Install Promptly"}),l.jsx("p",{className:"text-white",children:".\\Install-ShellAssistant.ps1 # Windows"}),l.jsx("p",{className:"text-white",children:"# OR ./install.sh # Linux/macOS"}),l.jsx("p",{className:"text-gray-500 mt-3 mb-2",children:"# 2. Set API key"}),l.jsx("p",{className:"text-white",children:'$env:OPENAI_API_KEY = "your-key" # PowerShell'}),l.jsx("p",{className:"text-white",children:'export OPENAI_API_KEY="your-key" # Bash'}),l.jsx("p",{className:"text-gray-500 mt-3 mb-2",children:"# 3. Use with OpenAI backend"}),l.jsx("p",{className:"text-white",children:'sa --backend openai "your request"'})]})]}
249),l.jsx("h3",{children:"Platform-Specific Instructions"}),l.jsx("h4",{children:"Windows (PowerShell)"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Navigate to the powershell-module directory"}),l.jsx("p",{className:"text-white",children:"cd powershell-module"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Run installation script"}),l.jsx("p",{className:"text-white",children:".\\Install-ShellAssistant.ps1"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Test installation"}),l.jsx("p",{className:"text-white",children:'sa "list all markdown files"'})]}),l.jsx("h4",{children:"Linux/macOS (Bash/Zsh)"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Build the CLI in release mode"}),l.jsx("p",{className:"text-white",children:"cargo build --release"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Navigate to the shell-integration directory"}),l.jsx("p",{className:"text-white",children:"cd shell-integration"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Install the shell integration"}),l.jsx("p",{className:"text-white",children:"./install.sh"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Restart your shell or source your rc file"}),l.jsx("p",{className:"text-white",children:"source ~/.bashrc # or ~/.zshrc"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Test installation"}),l.jsx("p",{className:"text-white",children:'sa "find all text files"'})]}),l.jsx("h3",{children:"Manual Installation"}),l.jsx("p",{children:"If you prefer to install manually, you can build the project from source:"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Clone the repository"}),l.jsx("p",{className:"text-white",children:"git clone https://github.com/Harshcreator/promptly.git"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Navigate to the project directory"}),l.jsx("p",{className:"text-white",children:"cd promptly/shell-assistant"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Build in release mode"}),l.jsx("p",{className:"text-white",children:"cargo build --release"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# The binary will be available at"}),l.jsx("p",{className:"text-white",children:"./target/release/cli"})]})]})},"installation"),e==="terminal-integration"&&l.jsx(hn,{id:"terminal-integration",title:"Terminal Integration",icon:l.jsx(er,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none",children:[l.jsx("p",{children:"Promptly can be integrated into your existing terminal, rather than running it as a separate application."}),l.jsx("h3",{children:"Integration Options"}),l.jsx("p",{children:"We've provided several ways to integrate Promptly into your existing terminal environment:"}),l.jsxs("ol",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"PowerShell Module"}),": For Windows PowerShell and PowerShell Core users"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Bash/Zsh Integration"}),": For Linux and macOS users"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Terminal Emulator Configs"}),": For VS Code, Windows Terminal, and other terminal emulators"]})]}),l.jsx("h3",{children:"PowerShell Integration"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Navigate to the powershell-module directory"}),l.jsx("p",{className:"text-white",children:"cd powershell-module"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Install the PowerShell module"}),l.jsx("p",{className:"text-white",children:".\\Install-ShellAssistant.ps1"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Test it out"}),l.jsx("p",{className:"text-white",children:'sa "list all markdown files"'})]}),l.jsx("h3",{children:"Bash/Zsh Integration"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Navigate to the shell-integration directory"}),l.jsx("p",{className:"text-white",children:"cd shell-integration"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Install the shell integration"}),l.jsx("p",{className:"text-white",children:"./install.sh"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# Restart your shell or source your rc file"}),l.jsx("p",{className:"text-white",children:"source ~/.bashrc # or ~/.zshrc"})]}),l.jsx("h3",{children:"VS Code Integration"}),l.jsx("p",{children:"Add the following to your VS Code settings.json file to integrate Promptly:"})," ",l.jsx("div",{className:"code-block my-4",children:l.jsx("pre",{children:`{ 250 "terminal.integrated.profiles.windows": { 251 "PowerShell with Promptly": { 252 "path": "powershell.exe", 253 "args": ["-NoExit", "-Command", "Import-Module ShellAssistant"], 254 "icon": "terminal-powershell" 255 } 256 }, 257 "terminal.integrated.defaultProfile.windows": "PowerShell with Promptly" 258}`})}),l.jsx("h3",{children:"Windows Terminal Integration"}),l.jsx("p",{children:"Add the following to your Windows Terminal settings.json to integrate Promptly:"}),l.jsx("div",{className:"code-block my-4",children:l.jsx("pre",{children:`{ 259 "profiles": { 260 "list": [ 261 { 262 "guid": "{12345678-1234-1234-1234-123456789012}", 263 "name": "PowerShell with Promptly", 264 "commandline": "powershell.exe -NoExit -Command \\"Import-Module ShellAssistant\\"", 265 "icon": "ms-appdata:///roaming/pwsh.png", 266 "hidden": false 267 } 268 ] 269 } 270}`})})]})},"terminal-integration"),e==="usage"&&l.jsx(hn,{id:"usage",title:"Basic Usage",icon:l.jsx(bu,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none",children:[l.jsxs("p",{children:["Once integrated, you can use Promptly from your terminal with the ",l.jsx("code",{children:"sa"})," command:"]}),l.jsx("div",{className:"code-block my-4",children:l.jsx("p",{className:"text-white",children:'sa "your natural language request"'})}),l.jsx("h3",{children:"Examples"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-white",children:'sa "find all text files larger than 1MB"'}),l.jsx("p",{className:"text-gray-500 mt-2",children:'find . -type f -name "*.txt" -size +1M'}),l.jsx("p",{className:"text-gray-400",children:"This command searches for all .txt files larger than 1MB in the current directory and its subdirectories."}),l.jsx("p",{className:"text-white mt-4",children:'sa "create a backup of the config folder"'}),l.jsx("p",{className:"text-gray-500 mt-2",children:"tar -czvf config_backup_$(date +%Y%m%d).tar.gz config/"}),l.jsx("p",{className:"text-gray-400",children:"This command creates a compressed archive of the config folder with today's date in the filename."})]}),l.jsx("h3",{children:"Other Commands"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-white",children:"sa-history"}),l.jsx("p",{className:"text-gray-400",children:"Show command history"}),l.jsx("p",{className:"text-white mt-2",children:"sa-plugins"}),l.jsx("p",{className:"text-gray-400",children:"List available plugins"})]})]})},"usage"),e==="features"&&l.jsx(hn,{id:"features",title:"Features",icon:l.jsx(Ah,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none",children:[l.jsx("h3",{children:"Core Features"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Natural Language Processing"}),": Accepts natural language input and converts it into shell commands."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Multiple LLM Backends"}),": Supports Ollama, LLM-rs, and experimental OpenAI integration."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Command Safety"}),": Built-in safety checks to warn about potentially destructive commands."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"History Management"}),": Records commands with timestamps and user feedback."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Plugin System"}),": Extensible plugin architecture for specialized command generation."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Terminal Integration"}),": Can be used as a plugin in existing terminals (PowerShell, Bash, Zsh)."]})]}),l.jsx("h3",{children:"User Interface"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Colorized Output"}),": Uses colors to distinguish between different types of information."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Emoji Indicators"}),": Visual indicators for status (â ), warnings (â ï¸), errors (â), etc."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Interactive Selection"}),": User-friendly menus for actions and feedback."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Progress Display"}),": Clear indication of command execution status."]})]}),l.jsx("h3",{children:"Command Execution Options"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Run Mode"}),": Execute the command directly."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Copy Mode"}),": Copy the command to clipboard for manual execution."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Abort Option"}),": Cancel execution if the command is not what you want."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Force Mode"}),": Skip confirmation prompts for safe commands with the ",l.jsx("code",{children:"--force"})," flag."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Dry Run"}),": Preview commands without executing them using the ",l.jsx("code",{children:"--dry-run"})," flag."]})]})]})},"features"),e==="plugins"&&l.jsx(hn,{id:"plugins",title:"Plugins",icon:l.jsx(ia,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none",children:[l.jsx("p",{children:"Promptly includes a plugin system to handle specialized commands for different tools and environments."}),l.jsx("h3",{children:"Available Plugins"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Git Plugin"}),": Specialized handling for common Git operations.",l.jsx("div",{className:"code-block my-2",children:l.jsx("p",{className:"text-white",children:`sa --plugin git "commit all changes with message 'update documentation'"`})})]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Docker Plugin"}
270),": Support for Docker commands and container management.",l.jsx("div",{className:"code-block my-2",children:l.jsx("p",{className:"text-white",children:'sa --plugin docker "list all running containers and their ports"'})})]})]}),l.jsx("h3",{children:"Using Plugins"}),l.jsxs("p",{children:["To use a specific plugin, add the ",l.jsx("code",{children:"--plugin"})," flag followed by the plugin name:"]}),l.jsx("div",{className:"code-block my-4",children:l.jsx("p",{className:"text-white",children:'sa --plugin [plugin_name] "your request"'})}),l.jsx("h3",{children:"List Available Plugins"}),l.jsx("div",{className:"code-block my-4",children:l.jsx("p",{className:"text-white",children:"sa-plugins"})})]})},"plugins"),e==="llm-backends"&&l.jsx(hn,{id:"llm-backends",title:"LLM Backends",icon:l.jsx(Dh,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none",children:[l.jsxs("p",{children:["Promptly supports multiple LLM backends - ",l.jsx("strong",{children:"you can choose the one that best fits your needs"}),". You don't need all of them, just pick one!"]}),l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-6",children:[l.jsx("h4",{className:"text-white font-semibold mb-2",children:"ð¡ Quick Start Guide"}),l.jsxs("p",{className:"text-sm",children:[l.jsx("strong",{children:"Beginner?"})," Use Ollama (Option 1) - it's the most popular choice.",l.jsx("br",{}),l.jsx("strong",{children:"No internet/privacy focused?"})," Use Local GGUF (Option 2).",l.jsx("br",{}),l.jsx("strong",{children:"Want cloud power?"})," Use OpenAI (Option 3)."]})]}),l.jsx("h3",{children:"Option 1: Ollama (Recommended)"}),l.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4 my-4",children:[l.jsxs("p",{children:[l.jsx("strong",{children:"â
Requirements:"})," Ollama installed locally"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð° Cost:"})," Free"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð Internet:"})," Only for initial model download"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð Best for:"})," Local development, privacy-focused users"]})]}),l.jsxs("div",{className:"code-block my-2",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# 1. Install Ollama"}),l.jsx("p",{className:"text-white",children:"winget install Ollama.Ollama # Windows"}),l.jsx("p",{className:"text-white",children:"# Or download from https://ollama.ai"}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# 2. Pull a model"}),l.jsx("p",{className:"text-white",children:"ollama pull codellama"}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# 3. Use Promptly (uses Ollama by default)"}),l.jsx("p",{className:"text-white",children:'sa "find all large files"'})]}),l.jsx("h3",{children:"Option 2: Local GGUF Models (Fully Offline)"}),l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-4",children:[l.jsxs("p",{children:[l.jsx("strong",{children:"â
Requirements:"})," Download a GGUF model file"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð° Cost:"})," Free"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð Internet:"})," Only for initial model download"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð Best for:"})," Air-gapped systems, complete offline usage"]})]}),l.jsxs("div",{className:"code-block my-2",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# 1. Create models directory"}),l.jsx("p",{className:"text-white",children:"mkdir models"}),l.jsx("p",{className:"text-gray-500 mt-2 mb-2",children:"# 2. Download a GGUF model (e.g., TinyLlama)"}),l.jsx("p",{className:"text-white",children:"# Download tinyllama.gguf to models/ folder"}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# 3. Use with llm-rs backend"}),l.jsx("p",{className:"text-white",children:'sa --backend llm-rs --model-path "models/tinyllama.gguf" "compress old logs"'})]}),l.jsx("h3",{children:"Option 3: OpenAI API (Cloud-based)"}),l.jsxs("div",{className:"bg-blue-500/10 border border-blue-500/30 rounded-lg p-4 my-4",children:[l.jsxs("p",{children:[l.jsx("strong",{children:"â
Requirements:"})," OpenAI API key"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð° Cost:"})," Pay per API call (typically $0.001-0.03 per request)"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð Internet:"})," Required for every request"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð Best for:"})," Users who prefer cloud AI, no local setup, latest models"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ð¯ Models:"})," GPT-3.5-turbo, GPT-4, GPT-4o, GPT-4-turbo"]})]}
270),l.jsx("h4",{children:"Setup Instructions"}),l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-4",children:[l.jsx("p",{className:"text-yellow-400 font-semibold mb-2",children:"ð Step-by-Step Setup:"}),l.jsxs("ol",{className:"text-sm space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"1."})," Get your API key from ",l.jsx("a",{href:"https://platform.openai.com/api-keys",className:"text-blue-400 hover:text-blue-300",children:"https://platform.openai.com/api-keys"})]}),l.jsxs("li",{children:[l.jsx("strong",{children:"2."}),' Copy the API key (starts with "sk-")']}),l.jsxs("li",{children:[l.jsx("strong",{children:"3."})," Set it as an environment variable (see examples below)"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"4."})," Start using Promptly with the OpenAI backend!"]})]})]}),l.jsx("h4",{children:"Configuration Methods"}),l.jsxs("div",{className:"code-block my-2",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Method 1: Environment Variable (Windows PowerShell)"}),l.jsx("p",{className:"text-white",children:'$env:OPENAI_API_KEY = "sk-your-api-key-here"'}),l.jsx("p",{className:"text-white",children:'sa --backend openai "find all Python files"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Method 1: Environment Variable (Linux/macOS)"}),l.jsx("p",{className:"text-white",children:'export OPENAI_API_KEY="sk-your-api-key-here"'}),l.jsx("p",{className:"text-white",children:'sa --backend openai "find all Python files"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Method 2: .env file (Recommended for permanent setup)"}),l.jsx("p",{className:"text-white",children:"cp .env.example .env"}),l.jsx("p",{className:"text-white",children:"# Edit .env file to add: OPENAI_API_KEY=sk-your-key-here"}),l.jsx("p",{className:"text-white",children:'sa --backend openai "create backup script"'})]}),l.jsx("h4",{children:"Model Selection"}),l.jsxs("div",{className:"code-block my-2",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Use default model (gpt-3.5-turbo - fastest, cheapest)"}),l.jsx("p",{className:"text-white",children:'sa --backend openai "list large files"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Use GPT-4 (more capable, more expensive)"}),l.jsx("p",{className:"text-white",children:'sa --backend openai --openai-model gpt-4 "complex regex for emails"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Use GPT-4o (latest model, balanced performance)"}),l.jsx("p",{className:"text-white",children:'sa --backend openai --openai-model gpt-4o "optimize this script"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Use GPT-4-turbo (faster GPT-4)"}),l.jsx("p",{className:"text-white",children:'sa --backend openai --openai-model gpt-4-turbo "explain command"'})]}),l.jsx("h4",{children:"Error Handling & Troubleshooting"}),l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-4",children:[l.jsx("p",{className:"text-red-400 font-semibold mb-2",children:"â Common Issues:"}),l.jsxs("ul",{className:"text-sm space-y-1",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"API key not set:"})," You'll see helpful setup instructions"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Invalid API key format:"}),' Must start with "sk-"']}),l.jsxs("li",{children:[l.jsx("strong",{children:"Invalid key:"})," Check your key at OpenAI dashboard"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Rate limits:"})," Built-in 50 calls per session limit"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Network issues:"})," Clear error messages for connectivity problems"]})]})]}),l.jsx("h4",{children:"Pricing Information"}),l.jsxs("div",{className:"bg-gray-950/50 border border-gray-800 rounded-lg p-4 my-4",children:[l.jsx("p",{className:"text-green-400 font-semibold mb-2",children:"ð° Typical Costs (per request):"}),l.jsxs("ul",{className:"text-sm space-y-1",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"GPT-3.5-turbo:"})," ~$0.001-0.002 (very affordable)"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"GPT-4:"})," ~$0.03-0.06 (premium)"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"GPT-4o:"})," ~$0.005-0.015 (balanced)"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"GPT-4-turbo:"})," ~$0.01-0.03 (fast premium)"]})]}),l.jsx("p",{className:"text-xs text-gray-400 mt-2",children:"* Actual costs depend on prompt length. Most shell commands cost <$
2700.01"})]}),l.jsxs("div",{className:"bg-gray-700/50 border border-gray-600 rounded-lg p-4 my-6",children:[l.jsx("h4",{className:"text-white font-semibold mb-2",children:"ð Automatic Fallback"}),l.jsx("p",{className:"text-sm",children:"Promptly can automatically fall back between backends if one fails. For example, if Ollama is unavailable, it can try the local GGUF model."})]})]})},"llm-backends"),e==="advanced"&&l.jsx(hn,{id:"advanced",title:"Advanced Options",icon:l.jsx(Ai,{className:"w-6 h-6 text-white"}),children:l.jsxs("div",{className:"prose prose-lg prose-invert max-w-none",children:[l.jsx("h3",{children:"Command Line Options"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Run in dry-run mode (don't execute commands)"}),l.jsx("p",{className:"text-white",children:'sa --dry-run "delete all tmp files"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Skip confirmation for safe commands"}),l.jsx("p",{className:"text-white",children:'sa --force "list directory contents"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Use a specific plugin"}),l.jsx("p",{className:"text-white",children:'sa --plugin git "push commits to origin"'}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Specify a model to use"}),l.jsx("p",{className:"text-white",children:'sa --model ollama:codellama "find duplicate files"'})]}),l.jsx("h3",{children:"History Management"}),l.jsx("p",{children:"Promptly can store command history with user feedback:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"View History"}),": Use ",l.jsx("code",{children:"sa-history"})," to see your command history"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Feedback Options"}),": Mark commands as helpful or not helpful"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Editing"}),": Provide edited versions of commands that weren't quite right"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Persistent Storage"}),": History is saved to a JSON file for future reference"]})]}),l.jsx("h3",{children:"Configuration"}),l.jsx("p",{children:"Promptly can be configured through environment variables or command-line flags:"}),l.jsxs("div",{className:"code-block my-4",children:[l.jsx("p",{className:"text-gray-500 mb-2",children:"# Set the default LLM backend"}),l.jsx("p",{className:"text-white",children:"export SHELL_ASSISTANT_MODEL=ollama:codellama"}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Configure history file location"}),l.jsx("p",{className:"text-white",children:"export SHELL_ASSISTANT_HISTORY_FILE=$HOME/my-custom-history.json"}),l.jsx("p",{className:"text-gray-500 mt-4 mb-2",children:"# Set OpenAI API key (if using OpenAI backend)"}),l.jsx("p",{className:"text-white",children:"export OPENAI_API_KEY=your_api_key_here"})]})]})},"advanced")]})})]})})})," ",l.jsx(Y.footer,{className:"border-t border-gray-900 py-12 px-6",initial:{opacity:0}
270,whileInView:{opacity:1},transition:{duration:.5},viewport:{once:!0},children:l.jsx("div",{className:"container mx-auto",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"grid md:grid-cols-4 gap-8",children:[l.jsxs(Y.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},viewport:{once:!0},children:[l.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[l.jsx(er,{className:"w-6 h-6 text-white"}),l.jsx("span",{className:"text-lg font-bold",children:"Promptly"})]}),l.jsx("p",{className:"text-gray-400",children:"Your AI-powered terminal companion for enhanced productivity."})]}),l.jsxs(Y.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.2},viewport:{once:!0},children:[l.jsx("h3",{className:"font-semibold mb-4",children:"Documentation"}),l.jsxs("ul",{className:"space-y-2 text-gray-400",children:[l.jsx("li",{children:l.jsx("a",{href:"#overview",className:"hover:text-white transition-colors",children:"Overview"})}),l.jsx("li",{children:l.jsx("a",{href:"#installation",className:"hover:text-white transition-colors",children:"Installation"})}),l.jsx("li",{children:l.jsx("a",{href:"#usage",className:"hover:text-white transition-colors",children:"Usage"})}),l.jsx("li",{children:l.jsx("a",{href:"#advanced",className:"hover:text-white transition-colors",children:"Advanced"})})]})]}),l.jsxs(Y.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.3},viewport:{once:!0},children:[l.jsx("h3",{className:"font-semibold mb-4",children:"Support"}),l.jsxs("ul",{className:"space-y-2 text-gray-400",children:[l.jsx("li",{children:l.jsx("a",{href:"/",className:"hover:text-white transition-colors",children:"Home"})}),l.jsx("li",{children:l.jsx("a",{href:"/#faq",className:"hover:text-white transition-colors",children:"FAQ"})}),l.jsx("li",{children:l.jsx("a",{href:"https://github.com/Harshcreator/promptly/issues",className:"hover:text-white transition-colors",children:"Issues"})})]})]}),l.jsxs(Y.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.4},viewport:{once:!0},children:[l.jsx("h3",{className:"font-semibold mb-4",children:"Links"}),l.jsx("ul",{className:"space-y-2 text-gray-400",children:l.jsx("li",{children:l.jsxs("a",{href:"https://github.com/Harshcreator/promptly/tree/main/shell-assistant",className:"hover:text-white transition-colors flex items-center space-x-1",children:[l.jsx(sr,{className:"w-4 h-4"}),l.jsx("span",{children:"GitHub"})]})})})]})]}),l.jsx(Y.div,{className:"border-t border-gray-900 mt-8 pt-8 text-center text-gray-400",initial:{opacity:0}
270,whileInView:{opacity:1},transition:{duration:.5,delay:.5},viewport:{once:!0},children:l.jsx("p",{children:"© 2025 Promptly. Open source under MIT License."})})]})})})]})},GC=v2([{path:"/",element:l.jsx(WC,{})},{path:"/docs",element:l.jsx(KC,{})}]);vg(document.getElementById("root")).render(l.jsxs(w.StrictMode,{children:[l.jsx(M2,{router:GC}),l.jsx(z2,{}),l.jsx(Q2,{})]}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.