PageSourceSearch

https://mastering-lovable.lovable.app/assets/index-BjMtCIyJ.js

js mastering-lovable.lovable.app collected 2026-10-03 03:32:31 UTC 454,504 bytes, 162 lines download raw bytes

vendor: 6,111 bytes, lines 1-9
1var Of=e=>{throw TypeError(e)};var vl=(e,t,n)=>t.has(e)||Of("Cannot "+n);var A=(e,t,n)=>(vl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Of("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(vl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),je=(e,t,n)=>(vl(e,t,"access private method"),n);var ao=(e,t,n,r)=>({set _(i){G(e,t,i,n)},get _(){return A(e,t,r)}});function jw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(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)}})();function Xm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qm={exports:{}},Ia={},Zm={exports:{}},Q={};/**
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 Ks=Symbol.for("react.element"),Mw=Symbol.for("react.portal"),Dw=Symbol.for("react.fragment"),Lw=Symbol.for("react.strict_mode"),Ow=Symbol.for("react.profiler"),Iw=Symbol.for("react.provider"),Fw=Symbol.for("react.context"),_w=Symbol.for("react.forward_ref"),Vw=Symbol.for("react.suspense"),zw=Symbol.for("react.memo"),Bw=Symbol.for("react.lazy"),If=Symbol.iterator;function $w(e){return e===null||typeof e!="object"?null:(e=If&&e[If]||e["@@iterator"],typeof e=="function"?e:null)}var Jm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eg=Object.assign,tg={};function Ai(e,t,n){this.props=e,this.context=t,this.refs=tg,this.updater=n||Jm}Ai.prototype.isReactComponent={};Ai.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")};Ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ng(){}ng.prototype=Ai.prototype;function Bc(e,t,n){this.props=e,this.context=t,this.refs=tg,this.updater=n||Jm}var $c=Bc.prototype=new ng;$c.constructor=Bc;eg($c,Ai.prototype);$c.isPureReactComponent=!0;var Ff=Array.isArray,rg=Object.prototype.hasOwnProperty,Uc={current:null},ig={key:!0,ref:!0,__self:!0,__source:!0};function sg(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)rg.call(t,r)&&!ig.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ks,type:e,key:s,ref:o,props:i,_owner:Uc.current}}function Uw(e,t){return{$$typeof:Ks,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ks}function Ww(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _f=/\/+/g;function xl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ww(""+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 Ks:case Mw:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+xl(o,0):r,Ff(i)?(n="",e!=null&&(n=e.replace(_f,"$&/")+"/"),Lo(i,t,n,"",function(u){return u})):i!=null&&(Wc(i)&&(i=Uw(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(_f,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Ff(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+xl(s,a);o+=Lo(s,t,n,l,i)}else if(l=$w(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+xl(s,a++),o+=Lo(s,t,n,l,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 lo(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 Hw(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 We={current:null},Oo={transition:null},Kw={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:Oo,ReactCurrentOwner:Uc};function og(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:lo,forEach:function(e,t,n){lo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lo(e,function(){t++}),t},toArray:function(e){return lo(e,function(t){return t})||[]},only:function(e){if(!Wc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Ai;Q.Fragment=Dw;Q.Profiler=Ow;Q.PureComponent=Bc;Q.StrictMode=Lw;Q.Suspense=Vw;
vendor: 3,880 bytes, lines 9-25
9Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kw;Q.act=og;Q.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=eg({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Uc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)rg.call(t,l)&&!ig.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ks,type:e.type,key:i,ref:s,props:r,_owner:o}};Q.createContext=function(e){return e={$$typeof:Fw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Iw,_context:e},e.Consumer=e};Q.createElement=sg;Q.createFactory=function(e){var t=sg.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:_w,render:e}};Q.isValidElement=Wc;Q.lazy=function(e){return{$$typeof:Bw,_payload:{_status:-1,_result:e},_init:Hw}};Q.memo=function(e,t){return{$$typeof:zw,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=Oo.transition;Oo.transition={};try{e()}finally{Oo.transition=t}};Q.unstable_act=og;Q.useCallback=function(e,t){return We.current.useCallback(e,t)};Q.useContext=function(e){return We.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return We.current.useDeferredValue(e)};Q.useEffect=function(e,t){return We.current.useEffect(e,t)};Q.useId=function(){return We.current.useId()};Q.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return We.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};Q.useRef=function(e){return We.current.useRef(e)};Q.useState=function(e){return We.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return We.current.useTransition()};Q.version="18.3.1";Zm.exports=Q;var b=Zm.exports;const M=Xm(b),Gw=jw({__proto__:null,default:M},[b]);/**
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 Yw=b,Qw=Symbol.for("react.element"),Xw=Symbol.for("react.fragment"),qw=Object.prototype.hasOwnProperty,Zw=Yw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jw={key:!0,ref:!0,__self:!0,__source:!0};function ag(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)qw.call(t,r)&&!Jw.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:Qw,type:e,key:s,ref:o,props:i,_owner:Zw.current}}Ia.Fragment=Xw;Ia.jsx=ag;Ia.jsxs=ag;qm.exports=Ia;var g=qm.exports,lg={exports:{}},ct={},ug={exports:{}},cg={};/**
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(P,R){var _=P.length;P.push(R);e:for(;0<_;){var I=_-1>>>1,B=P[I];if(0<i(B,R))P[I]=R,P[_]=B,_=I;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var R=P[0],_=P.pop();if(_!==R){P[0]=_;e:for(var I=0,B=P.length,X=B>>>1;I<X;){var ue=2*(I+1)-1,tt=P[ue],J=ue+1,St=P[J];
vendor: 10,299 bytes, lines 25-34
25if(0>i(tt,_))J<B&&0>i(St,tt)?(P[I]=St,P[J]=_,I=J):(P[I]=tt,P[ue]=_,I=ue);else if(J<B&&0>i(St,_))P[I]=St,P[J]=_,I=J;else break e}}return R}function i(P,R){var _=P.sortIndex-R.sortIndex;return _!==0?_:P.id-R.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 l=[],u=[],c=1,f=null,d=3,m=!1,x=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=P)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function S(P){if(y=!1,v(P),!x)if(n(l)!==null)x=!0,$(C);else{var R=n(u);R!==null&&z(S,R.startTime-P)}}function C(P,R){x=!1,y&&(y=!1,h(E),E=-1),m=!0;var _=d;try{for(v(R),f=n(l);f!==null&&(!(f.expirationTime>R)||P&&!V());){var I=f.callback;if(typeof I=="function"){f.callback=null,d=f.priorityLevel;var B=I(f.expirationTime<=R);R=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),v(R)}else r(l);f=n(l)}if(f!==null)var X=!0;else{var ue=n(u);ue!==null&&z(S,ue.startTime-R),X=!1}return X}finally{f=null,d=_,m=!1}}var T=!1,k=null,E=-1,D=5,j=-1;function V(){return!(e.unstable_now()-j<D)}function F(){if(k!==null){var P=e.unstable_now();j=P;var R=!0;try{R=k(!0,P)}finally{R?W():(T=!1,k=null)}}else T=!1}var W;if(typeof p=="function")W=function(){p(F)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,Y=L.port2;L.port1.onmessage=F,W=function(){Y.postMessage(null)}}else W=function(){w(F,0)};function $(P){k=P,T||(T=!0,W())}function z(P,R){E=w(function(){P(e.unstable_now())},R)}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(P){P.callback=null},e.unstable_continueExecution=function(){x||m||(x=!0,$(C))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(d){case 1:case 2:case 3:var R=3;break;default:R=d}var _=d;d=R;try{return P()}finally{d=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,R){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var _=d;d=P;try{return R()}finally{d=_}},e.unstable_scheduleCallback=function(P,R,_){var I=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?I+_:I):_=I,P){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=_+B,P={id:c++,callback:R,priorityLevel:P,startTime:_,expirationTime:B,sortIndex:-1},_>I?(P.sortIndex=_,t(u,P),n(l)===null&&P===n(u)&&(y?(h(E),E=-1):y=!0,z(S,_-I))):(P.sortIndex=B,t(l,P),x||m||(x=!0,$(C))),P},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(P){var R=d;return function(){var _=d;d=R;try{return P.apply(this,arguments)}finally{d=_}}}})(cg);ug.exports=cg;var e1=ug.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 t1=b,ut=e1;function N(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 dg=new Set,ms={};function Nr(e,t){yi(e,t),yi(e+"Capture",t)}function yi(e,t){for(ms[e]=t,e=0;e<t.length;e++)dg.add(t[e])}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=Object.prototype.hasOwnProperty,n1=/^[: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]*$/,Vf={},zf={};function r1(e){return fu.call(zf,e)?!0:fu.call(Vf,e)?!1:n1.test(e)?zf[e]=!0:(Vf[e]=!0,!1)}function i1(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 s1(e,t,n,r){if(t===null||typeof t>"u"||i1(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 He(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 Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new He(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new He(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new He(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){Re[e]=new He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hc=/[\-:]([a-z])/g;function Kc(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(Hc,Kc);Re[t]=new He(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(Hc,Kc);Re[t]=new He(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(Hc,Kc);Re[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gc(e,t,n,r){var i=Re.hasOwnProperty(t)?Re[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(s1(t,n,i,r)&&(n=null),r||i===null?r1(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 mn=t1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,uo=Symbol.for("react.element"),Ir=Symbol.for("react.portal"),Fr=Symbol.for("react.fragment"),Yc=Symbol.for("react.strict_mode"),hu=Symbol.for("react.profiler"),fg=Symbol.for("react.provider"),hg=Symbol.for("react.context"),Qc=Symbol.for("react.forward_ref"),pu=Symbol.for("react.suspense"),mu=Symbol.for("react.suspense_list"),Xc=Symbol.for("react.memo"),Pn=Symbol.for("react.lazy"),pg=Symbol.for("react.offscreen"),Bf=Symbol.iterator;function _i(e){return e===null||typeof e!="object"?null:(e=Bf&&e[Bf]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,wl;function Qi(e){if(wl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);wl=t&&t[1]||""}return`
34`+wl+e}var bl=!1;function Sl(e,t){if(!e||bl)return"";bl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 16,737 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.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 l=`
37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qi(e):""}function o1(e){switch(e.tag){case 5:return Qi(e.type);case 16:return Qi("Lazy");case 13:return Qi("Suspense");case 19:return Qi("SuspenseList");case 0:case 2:case 15:return e=Sl(e.type,!1),e;case 11:return e=Sl(e.type.render,!1),e;case 1:return e=Sl(e.type,!0),e;default:return""}}function gu(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 Fr:return"Fragment";case Ir:return"Portal";case hu:return"Profiler";case Yc:return"StrictMode";case pu:return"Suspense";case mu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hg:return(e.displayName||"Context")+".Consumer";case fg:return(e._context.displayName||"Context")+".Provider";case Qc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xc:return t=e.displayName||null,t!==null?t:gu(e.type)||"Memo";case Pn:t=e._payload,e=e._init;try{return gu(e(t))}catch{}}return null}function a1(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 gu(t);case 8:return t===Yc?"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 Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function l1(e){var t=mg(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 co(e){e._valueTracker||(e._valueTracker=l1(e))}function gg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jo(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 yu(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $f(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(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 yg(e,t){t=t.checked,t!=null&&Gc(e,"checked",t,!1)}function vu(e,t){yg(e,t);var n=Kn(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")?xu(e,t.type,n):t.hasOwnProperty("defaultValue")&&xu(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uf(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 xu(e,t,n){(t!=="number"||Jo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xi=Array.isArray;function Jr(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=""+Kn(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 wu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Xi(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kn(n)}}function vg(e,t){var n=Kn(t.value),r=Kn(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 Hf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xg(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 bu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fo,wg=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(fo=fo||document.createElement("div"),fo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var es={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},u1=["Webkit","ms","Moz","O"];Object.keys(es).forEach(function(e){u1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),es[t]=es[e]})});function bg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||es.hasOwnProperty(e)&&es[e]?(""+t).trim():t+"px"}function Sg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var c1=he({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 Su(e,t){if(t){if(c1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Cu(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 Tu=null;function qc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eu=null,ei=null,ti=null;function Kf(e){if(e=Qs(e)){if(typeof Eu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ba(t),Eu(e.stateNode,e.type,t))}}function Cg(e){ei?ti?ti.push(e):ti=[e]:ei=e}function Tg(){if(ei){var e=ei,t=ti;if(ti=ei=null,Kf(e),t)for(e=0;e<t.length;e++)Kf(t[e])}}function Eg(e,t){return e(t)}function Pg(){}var Cl=!1;function kg(e,t,n){if(Cl)return e(t,n);Cl=!0;try{return Eg(e,t,n)}finally{Cl=!1,(ei!==null||ti!==null)&&(Pg(),Tg())}}function ys(e,t){var n=e.stateNode;if(n===null)return null;var r=Ba(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(N(231,t,typeof n));return n}var Pu=!1;if(an)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){Pu=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{Pu=!1}function d1(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ts=!1,ea=null,ta=!1,ku=null,f1={onError:function(e){ts=!0,ea=e}};function h1(e,t,n,r,i,s,o,a,l){ts=!1,ea=null,d1.apply(f1,arguments)}function p1(e,t,n,r,i,s,o,a,l){if(h1.apply(this,arguments),ts){if(ts){var u=ea;ts=!1,ea=null}else throw Error(N(198));ta||(ta=!0,ku=u)}}function Rr(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 Ag(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 Gf(e){if(Rr(e)!==e)throw Error(N(188))}function m1(e){var t=e.alternate;if(!t){if(t=Rr(e),t===null)throw Error(N(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 Gf(i),e;if(s===r)return Gf(i),t;s=s.sibling}throw Error(N(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(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Ng(e){return e=m1(e),e!==null?Rg(e):null}function Rg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Rg(e);if(t!==null)return t;e=e.sibling}return null}var jg=ut.unstable_scheduleCallback,Yf=ut.unstable_cancelCallback,g1=ut.unstable_shouldYield,y1=ut.unstable_requestPaint,ve=ut.unstable_now,v1=ut.unstable_getCurrentPriorityLevel,Zc=ut.unstable_ImmediatePriority,Mg=ut.unstable_UserBlockingPriority,na=ut.unstable_NormalPriority,x1=ut.unstable_LowPriority,Dg=ut.unstable_IdlePriority,Fa=null,Ht=null;function w1(e){if(Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Fa,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:C1,b1=Math.log,S1=Math.LN2;function C1(e){return e>>>=0,e===0?32:31-(b1(e)/S1|0)|0}var ho=64,po=4194304;function qi(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 ra(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=qi(a):(s&=o,s!==0&&(r=qi(s)))}else o=n&~i,o!==0?r=qi(o):s!==0&&(r=qi(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-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function T1(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 E1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-jt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=T1(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Au(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Lg(){var e=ho;return ho<<=1,!(ho&4194240)&&(ho=64),e}function Tl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function P1(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-jt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Jc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ee=0;function Og(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ig,ed,Fg,_g,Vg,Nu=!1,mo=[],_n=null,Vn=null,zn=null,vs=new Map,xs=new Map,An=[],k1="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 Qf(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":vs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(t.pointerId)}}function zi(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=Qs(t),t!==null&&ed(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function A1(e,t,n,r,i){switch(t){case"focusin":return _n=zi(_n,e,t,n,r,i),!0;case"dragenter":return Vn=zi(Vn,e,t,n,r,i),!0;case"mouseover":return zn=zi(zn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return vs.set(s,zi(vs.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,xs.set(s,zi(xs.get(s)||null,e,t,n,r,i)),!0}return!1}function zg(e){var t=ur(e.target);if(t!==null){var n=Rr(t);if(n!==null){if(t=n.tag,t===13){if(t=Ag(n),t!==null){e.blockedOn=t,Vg(e.priority,function(){Fg(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 Io(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ru(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tu=r,n.target.dispatchEvent(r),Tu=null}else return t=Qs(n),t!==null&&ed(t),e.blockedOn=n,!1;t.shift()}return!0}function Xf(e,t,n){Io(e)&&n.delete(t)}function N1(){Nu=!1,_n!==null&&Io(_n)&&(_n=null),Vn!==null&&Io(Vn)&&(Vn=null),zn!==null&&Io(zn)&&(zn=null),vs.forEac
vendor: 11,841 bytes, line 37
37h(Xf),xs.forEach(Xf)}function Bi(e,t){e.blockedOn===t&&(e.blockedOn=null,Nu||(Nu=!0,ut.unstable_scheduleCallback(ut.unstable_NormalPriority,N1)))}function ws(e){function t(i){return Bi(i,e)}if(0<mo.length){Bi(mo[0],e);for(var n=1;n<mo.length;n++){var r=mo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_n!==null&&Bi(_n,e),Vn!==null&&Bi(Vn,e),zn!==null&&Bi(zn,e),vs.forEach(t),xs.forEach(t),n=0;n<An.length;n++)r=An[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<An.length&&(n=An[0],n.blockedOn===null);)zg(n),n.blockedOn===null&&An.shift()}var ni=mn.ReactCurrentBatchConfig,ia=!0;function R1(e,t,n,r){var i=ee,s=ni.transition;ni.transition=null;try{ee=1,td(e,t,n,r)}finally{ee=i,ni.transition=s}}function j1(e,t,n,r){var i=ee,s=ni.transition;ni.transition=null;try{ee=4,td(e,t,n,r)}finally{ee=i,ni.transition=s}}function td(e,t,n,r){if(ia){var i=Ru(e,t,n,r);if(i===null)Ll(e,t,r,sa,n),Qf(e,r);else if(A1(i,e,t,n,r))r.stopPropagation();else if(Qf(e,r),t&4&&-1<k1.indexOf(e)){for(;i!==null;){var s=Qs(i);if(s!==null&&Ig(s),s=Ru(e,t,n,r),s===null&&Ll(e,t,r,sa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Ll(e,t,r,null,n)}}var sa=null;function Ru(e,t,n,r){if(sa=null,e=qc(r),e=ur(e),e!==null)if(t=Rr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ag(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 sa=e,null}function Bg(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(v1()){case Zc:return 1;case Mg:return 4;case na:case x1:return 16;case Dg:return 536870912;default:return 16}default:return 16}}var On=null,nd=null,Fo=null;function $g(){if(Fo)return Fo;var e,t=nd,n=t.length,r,i="value"in On?On.value:On.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 _o(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 go(){return!0}function qf(){return!1}function dt(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)?go:qf,this.isPropagationStopped=qf,this}return he(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=go)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=go)},persist:function(){},isPersistent:go}),t}var Ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rd=dt(Ni),Ys=he({},Ni,{view:0,detail:0}),M1=dt(Ys),El,Pl,$i,_a=he({},Ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,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!==$i&&($i&&e.type==="mousemove"?(El=e.screenX-$i.screenX,Pl=e.screenY-$i.screenY):Pl=El=0,$i=e),El)},movementY:function(e){return"movementY"in e?e.movementY:Pl}}),Zf=dt(_a),D1=he({},_a,{dataTransfer:0}),L1=dt(D1),O1=he({},Ys,{relatedTarget:0}),kl=dt(O1),I1=he({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),F1=dt(I1),_1=he({},Ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V1=dt(_1),z1=he({},Ni,{data:0}),Jf=dt(z1),B1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$1={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"},U1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U1[e])?!!t[e]:!1}function id(){return W1}var H1=he({},Ys,{key:function(e){if(e.key){var t=B1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_o(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(e){return e.type==="keypress"?_o(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_o(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K1=dt(H1),G1=he({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eh=dt(G1),Y1=he({},Ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),Q1=dt(Y1),X1=he({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),q1=dt(X1),Z1=he({},_a,{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}),J1=dt(Z1),eb=[9,13,27,32],sd=an&&"CompositionEvent"in window,ns=null;an&&"documentMode"in document&&(ns=document.documentMode);var tb=an&&"TextEvent"in window&&!ns,Ug=an&&(!sd||ns&&8<ns&&11>=ns),th=" ",nh=!1;function Wg(e,t){switch(e){case"keyup":return eb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _r=!1;function nb(e,t){switch(e){case"compositionend":return Hg(t);case"keypress":return t.which!==32?null:(nh=!0,th);case"textInput":return e=t.data,e===th&&nh?null:e;default:return null}}function rb(e,t){if(_r)return e==="compositionend"||!sd&&Wg(e,t)?(e=$g(),Fo=nd=On=null,_r=!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 Ug&&t.locale!=="ko"?null:t.data;default:return null}}var ib={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 rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ib[e.type]:t==="textarea"}function Kg(e,t,n,r){Cg(r),t=oa(t,"onChange"),0<t.length&&(n=new rd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rs=null,bs=null;function sb(e){ry(e,0)}function Va(e){var t=Br(e);if(gg(t))return e}function ob(e,t){if(e==="change")return t}var Gg=!1;if(an){var Al;if(an){var Nl="oninput"in document;if(!Nl){var ih=document.createElement("div");ih.setAttribute("oninput","return;"),Nl=typeof ih.oninput=="function"}Al=Nl}else Al=!1;Gg=Al&&(!document.documentMode||9<document.documentMode)}function sh(){rs&&(rs.detachEvent("onpropertychange",Yg),bs=rs=null)}function Yg(e){if(e.propertyName==="value"&&Va(bs)){var t=[];Kg(t,bs,e,qc(e)),kg(sb,t)}}function ab(e,t,n){e==="focusin"?(sh(),rs=t,bs=n,rs.attachEvent("onpropertychange",Yg)):e==="focusout"&&sh()}function lb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Va(bs)}function ub(e,t){if(e==="click")return Va(t)}function cb(e,t){if(e==="input"||e==="change")return Va(t)}function db(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:db;function Ss(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!fu.call(t,i)||!Dt(e[i],t[i]))return!1}return!0}function oh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ah(e,t){var n=oh(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=oh(n)}}function Qg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xg(){for(var e=window,t=Jo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jo(e.document)}return t}function od(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 fb(e){var t=Xg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qg(n.ownerDocument.documentElement,n)){if(r!==null&&od(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=ah(n,s);var o=ah(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 hb=an&&"documentMode"in document&&11>=document.documentMode,Vr=null,ju=null,is=null,Mu=!1;function lh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mu||Vr==null||Vr!==Jo(r)||(r=Vr,"selectionStart"in r&&od(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),is&&Ss(is,r)||(is=r,r=oa(ju,"onSelect"),0<r.length&&(t=new rd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vr)))}function yo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zr={animationend:yo("Animation","AnimationEnd"),animationiteration:yo("Animation","AnimationIteration"),animationstart:yo("Animation","AnimationStart"),transitionend:yo("Transition","TransitionEnd")},Rl={},qg={};an&&(qg=document.createElement("div").style,"AnimationEvent"in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),"TransitionEvent"in window||delete zr.transitionend.transition);function za(e){if(Rl[e])return Rl[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qg)return Rl[e]=t[n];return e}var Zg=za("animationend"),Jg=za("animationiteration"),ey=za("animationstart"),ty=za("transitionend"),ny=new Map,uh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function er(e,t){ny.set(e,t),Nr(t,[e])}for(var jl=0;jl<uh.length;jl++){var Ml=uh[jl],pb=Ml.toLowerCase(),mb=Ml[0].toUpperCase()+Ml.slice(1);er(pb,"on"+mb)}er(Zg,"onAnimationEnd");er(Jg,"onAnimationIteration");er(ey,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(ty,"onTransitionEnd");yi("onMouseEnter",["mouseout","mouseover"]);yi("onMouseLeave",["mouseout","mouseover"]);yi("onPointerEnter",["pointerout","pointerover"]);yi("onPointerLeave",["pointerout","pointerover"]);Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zi="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(" "),gb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zi));function ch(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,p1(r,t,void 0,e),e.currentTarget=null}function ry(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],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;ch(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;ch(i,a,u),s=l}}}if(ta)throw e=ku,ta=!1,ku=null,e}function se(e,t){var n=t[Fu];n===void 0&&(n=t[Fu]=new Set);var r=e+"__bubble";n.has(r)||(iy(t,e,2,!1),n.add(r))}function Dl(e,t,n){var r=0;t&&(r|=4),iy(n,e,r,t)}var vo="_reactListening"+Math.random().toString(36).slice(2);function Cs(e){if(!e[vo]){e[vo]=!0,dg.forEach(function(n){n!=="selectionchange"&&(gb.has(n)||Dl(n,!1,e),Dl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vo]||(t[vo]=!0,Dl("selectionchange",!1,t))}}function iy(e,t,n,r){switch(Bg(t)){case 1:var i=R1;break;case 4:i=j1;break;default:i=td}n=i.bind(null,t,n,e),i=void 0,!Pu||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 Ll(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;
vendor: 1,491 bytes, line 37
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=ur(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}kg(function(){var u=s,c=qc(n),f=[];e:{var d=ny.get(e);if(d!==void 0){var m=rd,x=e;switch(e){case"keypress":if(_o(n)===0)break e;case"keydown":case"keyup":m=K1;break;case"focusin":x="focus",m=kl;break;case"focusout":x="blur",m=kl;break;case"beforeblur":case"afterblur":m=kl;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":m=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=L1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Q1;break;case Zg:case Jg:case ey:m=F1;break;case ty:m=q1;break;case"scroll":m=M1;break;case"wheel":m=J1;break;case"copy":case"cut":case"paste":m=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=eh}var y=(t&4)!==0,w=!y&&e==="scroll",h=y?d!==null?d+"Capture":null:d;y=[];for(var p=u,v;p!==null;){v=p;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,h!==null&&(S=ys(p,h),S!=null&&y.push(Ts(p,S,v)))),w)break;p=p.return}
vendor: 7,408 bytes, lines 37-38
370<y.length&&(d=new m(d,x,null,n,c),f.push({event:d,listeners:y}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&n!==Tu&&(x=n.relatedTarget||n.fromElement)&&(ur(x)||x[ln]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(x=n.relatedTarget||n.toElement,m=u,x=x?ur(x):null,x!==null&&(w=Rr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=u),m!==x)){if(y=Zf,S="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=eh,S="onPointerLeave",h="onPointerEnter",p="pointer"),w=m==null?d:Br(m),v=x==null?d:Br(x),d=new y(S,p+"leave",m,n,c),d.target=w,d.relatedTarget=v,S=null,ur(c)===u&&(y=new y(h,p+"enter",x,n,c),y.target=v,y.relatedTarget=w,S=y),w=S,m&&x)t:{for(y=m,h=x,p=0,v=y;v;v=Or(v))p++;for(v=0,S=h;S;S=Or(S))v++;for(;0<p-v;)y=Or(y),p--;for(;0<v-p;)h=Or(h),v--;for(;p--;){if(y===h||h!==null&&y===h.alternate)break t;y=Or(y),h=Or(h)}y=null}else y=null;m!==null&&dh(f,d,m,y,!1),x!==null&&w!==null&&dh(f,w,x,y,!0)}}e:{if(d=u?Br(u):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var C=ob;else if(rh(d))if(Gg)C=cb;else{C=lb;var T=ab}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=ub);if(C&&(C=C(e,u))){Kg(f,C,n,c);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&xu(d,"number",d.value)}switch(T=u?Br(u):window,e){case"focusin":(rh(T)||T.contentEditable==="true")&&(Vr=T,ju=u,is=null);break;case"focusout":is=ju=Vr=null;break;case"mousedown":Mu=!0;break;case"contextmenu":case"mouseup":case"dragend":Mu=!1,lh(f,n,c);break;case"selectionchange":if(hb)break;case"keydown":case"keyup":lh(f,n,c)}var k;if(sd)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else _r?Wg(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Ug&&n.locale!=="ko"&&(_r||E!=="onCompositionStart"?E==="onCompositionEnd"&&_r&&(k=$g()):(On=c,nd="value"in On?On.value:On.textContent,_r=!0)),T=oa(u,E),0<T.length&&(E=new Jf(E,e,null,n,c),f.push({event:E,listeners:T}),k?E.data=k:(k=Hg(n),k!==null&&(E.data=k)))),(k=tb?nb(e,n):rb(e,n))&&(u=oa(u,"onBeforeInput"),0<u.length&&(c=new Jf("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=k))}ry(f,t)})}function Ts(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oa(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ys(e,n),s!=null&&r.unshift(Ts(e,s,i)),s=ys(e,t),s!=null&&r.push(Ts(e,s,i))),e=e.return}return r}function Or(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dh(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=ys(n,s),l!=null&&o.unshift(Ts(n,l,a))):i||(l=ys(n,s),l!=null&&o.push(Ts(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var yb=/\r\n?/g,vb=/\u0000|\uFFFD/g;function fh(e){return(typeof e=="string"?e:""+e).replace(yb,`
38`).replace(vb,"")}function xo(e,t,n){if(t=fh(t),fh(e)!==t&&n)throw Error(N(425))}function aa(){}var Du=null,Lu=null;function Ou(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 Iu=typeof setTimeout=="function"?setTimeout:void 0,xb=typeof clearTimeout=="function"?clearTimeout:void 0,hh=typeof Promise=="function"?Promise:void 0,wb=typeof queueMicrotask=="function"?queueMicrotask:typeof hh<"u"?function(e){return hh.resolve(null).then(e).catch(bb)}:Iu;function bb(e){setTimeout(function(){throw e})}function Ol(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),ws(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ws(t)}function Bn(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 ph(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 Ri=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Ri,Es="__reactProps$"+Ri,ln="__reactContainer$"+Ri,Fu="__reactEvents$"+Ri,Sb="__reactListeners$"+Ri,Cb="__reactHandles$"+Ri;function ur(e){var t=e[Wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ln]||n[Wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ph(e);e!==null;){if(n=e[Wt])return n;e=ph(e)}return t}e=n,n=e.parentNode}return null}function Qs(e){return e=e[Wt]||e[ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Ba(e){return e[Es]||null}var _u=[],$r=-1;function tr(e){return{current:e}}function oe(e){0>$r||(e.current=_u[$r],_u[$r]=null,$r--)}function ne(e,t){$r++,_u[$r]=e.current,e.current=t}var Gn={},Fe=tr(Gn),Qe=tr(!1),Sr=Gn;function vi(e,t){var n=e.type.contextTypes;if(!n)return Gn;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 Xe(e){return e=e.childContextTypes,e!=null}function la(){oe(Qe),oe(Fe)}function mh(e,t,n){if(Fe.current!==Gn)throw Error(N(168));ne(Fe,t),ne(Qe,n)}function sy(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(N(108,a1(e)||"Unknown",i));return he({},n,r)}function ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,Sr=Fe.current,ne(Fe,e),ne(Qe,Qe.current),!0}function gh(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=sy(e,t,Sr),r.__reactInternalMemoizedMergedChildContext=e,oe(Qe),oe(Fe),ne(Fe,e)):oe(Qe),ne(Qe,n)}var nn=null,$a=!1,Il=!1;function oy(e){nn===null?nn=[e]:nn.push(e)}function Tb(e){$a=!0,oy(e)}function nr(){if(!Il&&nn!==null){Il=!0;var e=0,t=ee;try{var n=nn;for(ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nn=null,$a=!1}catch(i){throw nn!==null&&(nn=nn.slice(e+1)),jg(Zc,nr),i}finally{ee=t,Il=!1}}return null}var Ur=[],Wr=0,ca=null,da=0,mt=[],gt=0,Cr=null,rn=1,sn="";function or(e,t){Ur[Wr++]=da,Ur[Wr++]=ca,ca=e,da=t}function ay(e,t,n){mt[gt++]=rn,mt[gt++]=sn,mt[gt++]=Cr,Cr=e;var r=rn;e=sn;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var s=32-jt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,rn=1<<32-jt(t)+i|n<<i|r,sn=s+e}else rn=1<<s|n<<i|r,sn=e}function ad(e){e.return!==null&&(or(e,1),ay(e,1,0))}function ld(e){for(;e===ca;)ca=Ur[--Wr],Ur[Wr]=null,da=Ur[--Wr],Ur[Wr]=null;for(;e===Cr;)Cr=mt[--gt],mt[gt]=null,sn=mt[--gt],mt[gt]=null,rn=mt[--gt],mt[gt]=null}var at=null,ot=null,ae=!1,Rt=null;function ly(e,t){var n=yt(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 yh(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 25,483 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,at=e,ot=Bn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cr!==null?{id:rn,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,ot=null,!0):!1;default:return!1}}function Vu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zu(e){if(ae){var t=ot;if(t){var n=t;if(!yh(e,t)){if(Vu(e))throw Error(N(418));t=Bn(n.nextSibling);var r=at;t&&yh(e,t)?ly(r,n):(e.flags=e.flags&-4097|2,ae=!1,at=e)}}else{if(Vu(e))throw Error(N(418));e.flags=e.flags&-4097|2,ae=!1,at=e}}}function vh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function wo(e){if(e!==at)return!1;if(!ae)return vh(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ou(e.type,e.memoizedProps)),t&&(t=ot)){if(Vu(e))throw uy(),Error(N(418));for(;t;)ly(e,t),t=Bn(t.nextSibling)}if(vh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ot=Bn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=at?Bn(e.stateNode.nextSibling):null;return!0}function uy(){for(var e=ot;e;)e=Bn(e.nextSibling)}function xi(){ot=at=null,ae=!1}function ud(e){Rt===null?Rt=[e]:Rt.push(e)}var Eb=mn.ReactCurrentBatchConfig;function Ui(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(N(309));var r=n.stateNode}if(!r)throw Error(N(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(N(284));if(!n._owner)throw Error(N(290,e))}return e}function bo(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xh(e){var t=e._init;return t(e._payload)}function cy(e){function t(h,p){if(e){var v=h.deletions;v===null?(h.deletions=[p],h.flags|=16):v.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function i(h,p){return h=Hn(h,p),h.index=0,h.sibling=null,h}function s(h,p,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<p?(h.flags|=2,p):v):(h.flags|=2,p)):(h.flags|=1048576,p)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,p,v,S){return p===null||p.tag!==6?(p=Ul(v,h.mode,S),p.return=h,p):(p=i(p,v),p.return=h,p)}function l(h,p,v,S){var C=v.type;return C===Fr?c(h,p,v.props.children,S,v.key):p!==null&&(p.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Pn&&xh(C)===p.type)?(S=i(p,v.props),S.ref=Ui(h,p,v),S.return=h,S):(S=Ho(v.type,v.key,v.props,null,h.mode,S),S.ref=Ui(h,p,v),S.return=h,S)}function u(h,p,v,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=Wl(v,h.mode,S),p.return=h,p):(p=i(p,v.children||[]),p.return=h,p)}function c(h,p,v,S,C){return p===null||p.tag!==7?(p=xr(v,h.mode,S,C),p.return=h,p):(p=i(p,v),p.return=h,p)}function f(h,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Ul(""+p,h.mode,v),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case uo:return v=Ho(p.type,p.key,p.props,null,h.mode,v),v.ref=Ui(h,null,p),v.return=h,v;case Ir:return p=Wl(p,h.mode,v),p.return=h,p;case Pn:var S=p._init;return f(h,S(p._payload),v)}if(Xi(p)||_i(p))return p=xr(p,h.mode,v,null),p.return=h,p;bo(h,p)}return null}function d(h,p,v,S){var C=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return C!==null?null:a(h,p,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case uo:return v.key===C?l(h,p,v,S):null;case Ir:return v.key===C?u(h,p,v,S):null;case Pn:return C=v._init,d(h,p,C(v._payload),S)}if(Xi(v)||_i(v))return C!==null?null:c(h,p,v,S,null);bo(h,v)}return null}function m(h,p,v,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(v)||null,a(p,h,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:return h=h.get(S.key===null?v:S.key)||null,l(p,h,S,C);case Ir:return h=h.get(S.key===null?v:S.key)||null,u(p,h,S,C);case Pn:var T=S._init;return m(h,p,v,T(S._payload),C)}if(Xi(S)||_i(S))return h=h.get(v)||null,c(p,h,S,C,null);bo(p,S)}return null}function x(h,p,v,S){for(var C=null,T=null,k=p,E=p=0,D=null;k!==null&&E<v.length;E++){k.index>E?(D=k,k=null):D=k.sibling;var j=d(h,k,v[E],S);if(j===null){k===null&&(k=D);break}e&&k&&j.alternate===null&&t(h,k),p=s(j,p,E),T===null?C=j:T.sibling=j,T=j,k=D}if(E===v.length)return n(h,k),ae&&or(h,E),C;if(k===null){for(;E<v.length;E++)k=f(h,v[E],S),k!==null&&(p=s(k,p,E),T===null?C=k:T.sibling=k,T=k);return ae&&or(h,E),C}for(k=r(h,k);E<v.length;E++)D=m(k,h,E,v[E],S),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?E:D.key),p=s(D,p,E),T===null?C=D:T.sibling=D,T=D);return e&&k.forEach(function(V){return t(h,V)}),ae&&or(h,E),C}function y(h,p,v,S){var C=_i(v);if(typeof C!="function")throw Error(N(150));if(v=C.call(v),v==null)throw Error(N(151));for(var T=C=null,k=p,E=p=0,D=null,j=v.next();k!==null&&!j.done;E++,j=v.next()){k.index>E?(D=k,k=null):D=k.sibling;var V=d(h,k,j.value,S);if(V===null){k===null&&(k=D);break}e&&k&&V.alternate===null&&t(h,k),p=s(V,p,E),T===null?C=V:T.sibling=V,T=V,k=D}if(j.done)return n(h,k),ae&&or(h,E),C;if(k===null){for(;!j.done;E++,j=v.next())j=f(h,j.value,S),j!==null&&(p=s(j,p,E),T===null?C=j:T.sibling=j,T=j);return ae&&or(h,E),C}for(k=r(h,k);!j.done;E++,j=v.next())j=m(k,h,E,j.value,S),j!==null&&(e&&j.alternate!==null&&k.delete(j.key===null?E:j.key),p=s(j,p,E),T===null?C=j:T.sibling=j,T=j);return e&&k.forEach(function(F){return t(h,F)}),ae&&or(h,E),C}function w(h,p,v,S){if(typeof v=="object"&&v!==null&&v.type===Fr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case uo:e:{for(var C=v.key,T=p;T!==null;){if(T.key===C){if(C=v.type,C===Fr){if(T.tag===7){n(h,T.sibling),p=i(T,v.props.children),p.return=h,h=p;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Pn&&xh(C)===T.type){n(h,T.sibling),p=i(T,v.props),p.ref=Ui(h,T,v),p.return=h,h=p;break e}n(h,T);break}else t(h,T);T=T.sibling}v.type===Fr?(p=xr(v.props.children,h.mode,S,v.key),p.return=h,h=p):(S=Ho(v.type,v.key,v.props,null,h.mode,S),S.ref=Ui(h,p,v),S.return=h,h=S)}return o(h);case Ir:e:{for(T=v.key;p!==null;){if(p.key===T)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=i(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Wl(v,h.mode,S),p.return=h,h=p}return o(h);case Pn:return T=v._init,w(h,p,T(v._payload),S)}if(Xi(v))return x(h,p,v,S);if(_i(v))return y(h,p,v,S);bo(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,v),p.return=h,h=p):(n(h,p),p=Ul(v,h.mode,S),p.return=h,h=p),o(h)):n(h,p)}return w}var wi=cy(!0),dy=cy(!1),fa=tr(null),ha=null,Hr=null,cd=null;function dd(){cd=Hr=ha=null}function fd(e){var t=fa.current;oe(fa),e._currentValue=t}function Bu(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 ri(e,t){ha=e,cd=Hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ge=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(cd!==e)if(e={context:e,memoizedValue:t,next:null},Hr===null){if(ha===null)throw Error(N(308));Hr=e,ha.dependencies={lanes:0,firstContext:e}}else Hr=Hr.next=e;return t}var cr=null;function hd(e){cr===null?cr=[e]:cr.push(e)}function fy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,hd(t)):(n.next=i.next,i.next=n),t.interleaved=n,un(e,r)}function un(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 kn=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hy(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,un(e,n)}return i=r.interleaved,i===null?(t.next=t,hd(r)):(t.next=i.next,i.next=t),r.interleaved=t,un(e,n)}function Vo(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,Jc(e,n)}}function wh(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 pa(e,t,n,r){var i=e.updateQueue;kn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,c=u=l=null,a=s;do{var d=a.lane,m=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(d=t,m=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){f=x.call(m,f,d);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,d=typeof x=="function"?x.call(m,f,d):x,d==null)break e;f=he({},f,d);break e;case 2:kn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else m={eventTime:m,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,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);Er|=o,e.lanes=o,e.memoizedState=f}}function bh(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(N(191,i));i.call(r)}}}var Xs={},Kt=tr(Xs),Ps=tr(Xs),ks=tr(Xs);function dr(e){if(e===Xs)throw Error(N(174));return e}function md(e,t){switch(ne(ks,t),ne(Ps,e),ne(Kt,Xs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bu(t,e)}oe(Kt),ne(Kt,t)}function bi(){oe(Kt),oe(Ps),oe(ks)}function py(e){dr(ks.current);var t=dr(Kt.current),n=bu(t,e.type);t!==n&&(ne(Ps,e),ne(Kt,n))}function gd(e){Ps.current===e&&(oe(Kt),oe(Ps))}var ce=tr(0);function ma(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 Fl=[];function yd(){for(var e=0;e<Fl.length;e++)Fl[e]._workInProgressVersionPrimary=null;Fl.length=0}var zo=mn.ReactCurrentDispatcher,_l=mn.ReactCurrentBatchConfig,Tr=0,fe=null,be=null,Te=null,ga=!1,ss=!1,As=0,Pb=0;function Me(){throw Error(N(321))}function vd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function xd(e,t,n,r,i,s){if(Tr=s,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zo.current=e===null||e.memoizedState===null?Rb:jb,e=n(r,i),ss){s=0;do{if(ss=!1,As=0,25<=s)throw Error(N(301));s+=1,Te=be=null,t.updateQueue=null,zo.current=Mb,e=n(r,i)}while(ss)}if(zo.current=ya,t=be!==null&&be.next!==null,Tr=0,Te=be=fe=null,ga=!1,t)throw Error(N(300));return e}function wd(){var e=As!==0;return As=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?fe.memoizedState=Te=e:Te=Te.next=e,Te}function bt(){if(be===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Te===null?fe.memoizedState:Te.next;if(t!==null)Te=t,be=e;else{if(e===null)throw Error(N(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Te===null?fe.memoizedState=Te=e:Te=Te.next=e}return Te}function Ns(e,t){return typeof t=="function"?t(e):t}function Vl(e){var t=bt(),n=t.queue;if(n===null)throw Error(N(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,l=null,u=s;do{var c=u.lane;if((Tr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,fe.lanes|=c,Er|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,Dt(r,t.memoizedState)||(Ge=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,fe.lanes|=s,Er|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zl(e){var t=bt(),n=t.queue;if(n===null)throw Error(N(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);Dt(s,t.memoizedState)||(Ge=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function my(){}function gy(e,t){var n=fe,r=bt(),i=t(),s=!Dt(r.memoizedState,i);if(s&&(r.memoizedState=i,Ge=!0),r=r.queue,bd(xy.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,Rs(9,vy.bind(null,n,r,i,t),void 0,null),Ee===null)throw Error(N(349));Tr&30||yy(n,t,i)}return i}function yy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vy(e,t,n,r){t.value=n,t.getSnapshot=r,wy(t)&&by(e)}function xy(e,t,n){return n(function(){wy(t)&&by(e)})}function wy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function by(e){var t=un(e,1);t!==null&&Mt(t,e,1,-1)}function Sh(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:e},t.queue=e,e=e.dispatch=Nb.bind(null,fe,e),[t.memoizedState,e]}function Rs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.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 Sy(){return bt().memoizedState}function Bo(e,t,n,r){var i=zt();fe.flags|=e,i.memoizedState=Rs(1|t,n,void 0,r===void 0?null:r)}function Ua(e,t,n,r){var i=bt();r=r===void 0?null:r;var s=void 0;if(be!==null){var o=be.memoizedState;if(s=o.destroy,r!==null&&vd(r,o.deps)){i.memoizedState=Rs(t,n,s,r);return}}fe.flags|=e,i.memoizedState=Rs(1|t,n,s,r)}function Ch(e,t){return Bo(8390656,8,e,t)}function bd(e,t){return Ua(2048,8,e,t)}function Cy(e,t){return Ua(4,2,e,t)}function Ty(e,t){return Ua(4,4,e,t)}function Ey(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 Py(e,t,n){return n=n!=null?n.concat([e]):null,Ua(4,4,Ey.bind(null,t,e),n)}function Sd(){}function ky(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ay(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ny(e,t,n){return Tr&21?(Dt(n,t)||(n=Lg(),fe.lanes|=n,Er|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ge=!0),e.memoizedState=n)}function kb(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var r=_l.transition;_l.transition={};try{e(!1),t()}finally{ee=n,_l.transition=r}}function Ry(){return bt().memoizedState}function Ab(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jy(e))My(t,n);else if(n=fy(e,t,n,r),n!==null){var i=$e();Mt(n,e,r,i),Dy(n,t,r)}}function Nb(e,t,n){var r=Wn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jy(e))My(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,Dt(a,o)){var l=t.interleaved;l===null?(i.next=i,hd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=fy(e,t,i,r),n!==null&&(i=$e(),Mt(n,e,r,i),Dy(n,t,r))}}function jy(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function My(e,t){ss=ga=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jc(e,n)}}var ya={readContext:wt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},Rb={readContext:wt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Ch,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bo(4194308,4,Ey.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();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=Ab.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Sh,useDebugValue:Sd,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Sh(!1),t=e[0];return e=kb.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,i=zt();if(ae){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ee===null)throw Error(N(349));Tr&30||yy(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Ch(xy.bind(null,r,s,e),[e]),r.flags|=2048,Rs(9,vy.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=zt(),t=Ee.identifierPrefix;if(ae){var n=sn,r=rn;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=As++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Pb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jb={readContext:wt,useCallback:ky,useContext:wt,useEffect:bd,useImperativeHandle:Py,useInsertionEffect:Cy,useLayoutEffect:Ty,useMemo:Ay,useReducer:Vl,useRef:Sy,useState:function(){return Vl(Ns)},useDebugValue:Sd,useDeferredValue:function(e){var t=bt();return Ny(t,be.memoizedState,e)},useTransition:function(){var e=Vl(Ns)[0],t=bt().memoizedState;return[e,t]},useMutableSource:my,useSyncExternalStore:gy,useId:Ry,unstable_isNewReconciler:!1},Mb={readContext:wt,useCallback:ky,useContext:wt,useEffect:bd,useImperativeHandle:Py,useInsertionEffect:Cy,useLayoutEffect:Ty,useMemo:Ay,useReducer:zl,useRef:Sy,useState:function(){return zl(Ns)},useDebugValue:Sd,useDeferredValue:function(e){var t=bt();return be===null?t.memoizedState=e:Ny(t,be.memoizedState,e)},useTransition:function(){var e=zl(Ns)[0],t=bt().memoizedState;return[e,t]},useMutableSource:my,useSyncExternalStore:gy,useId:Ry,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $u(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wa={isMounted:function(e){return(e=e._reactInternals)?Rr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$e(),i=Wn(e),s=on(r,i);s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,i),t!==null&&(Mt(t,e,i,r),Vo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$e(),i=Wn(e),s=on(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,i),t!==null&&(Mt(t,e,i,r),Vo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$e(),r=Wn(e),i=on(n,r);i.tag=2,t!=null&&(i.callback=t),t=$n(e,i,r),t!==null&&(Mt(t,e,r,n),Vo(t,e,r))}};function Th(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?!Ss(n,r)||!Ss(i,s):!0}function Ly(e,t,n){var r=!1,i=Gn,s=t.contextType;return typeof s=="object"&&s!==null?s=wt(s):(i=Xe(t)?Sr:Fe.current,r=t.contextTypes,s=(r=r!=null)?vi(e,i):Gn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Eh(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&&Wa.enqueueReplaceState(t,t.state,null)}function Uu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},pd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=wt(s):(s=Xe(t)?Sr:Fe.current,i.context=vi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&($u(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&&Wa.enqueueReplaceState(i,i.state,null),pa(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Si(e,t){try{var n="",r=t;do n+=o1(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 Bl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Db=typeof WeakMap=="function"?WeakMap:Map;function Oy(e,t,n){n=on(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xa||(xa=!0,ec=r),Wu(e,t)},n}function Iy(e,t,n){n=on(-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(){Wu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Wu(e,t),typeof r!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ph(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Db;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=Gb.bind(null,e,t,n),t.then(e,e))}function kh(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 Ah(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=on(-1,1),t.tag=2,$n(n,t,1))),n.lanes|=1),e)}var Lb=mn.ReactCurrentOwner,Ge=!1;function Ve(e,t,n,r){t.child=e===null?dy(t,null,n,r):wi(t,e.child,n,r)}function Nh(e,t,n,r,i){n=n.render;var s=t.ref;return ri(t,i),r=xd(e,t,n,r,s,i),n=wd(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cn(e,t,i)):(ae&&n&&ad(t),t.flags|=1,Ve(e,t,r,i
vendor: 10,385 bytes, line 40
40),t.child)}function Rh(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Rd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Fy(e,t,s,r,i)):(e=Ho(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:Ss,n(o,r)&&e.ref===t.ref)return cn(e,t,i)}return t.flags|=1,e=Hn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Fy(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Ss(s,r)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Ge=!0);else return t.lanes=e.lanes,cn(e,t,i)}return Hu(e,t,n,r,i)}function _y(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},ne(Gr,it),it|=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,ne(Gr,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ne(Gr,it),it|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ne(Gr,it),it|=r;return Ve(e,t,i,n),t.child}function Vy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hu(e,t,n,r,i){var s=Xe(n)?Sr:Fe.current;return s=vi(t,s),ri(t,i),n=xd(e,t,n,r,s,i),r=wd(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cn(e,t,i)):(ae&&r&&ad(t),t.flags|=1,Ve(e,t,n,i),t.child)}function jh(e,t,n,r,i){if(Xe(n)){var s=!0;ua(t)}else s=!1;if(ri(t,i),t.stateNode===null)$o(e,t),Ly(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 l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=wt(u):(u=Xe(n)?Sr:Fe.current,u=vi(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Eh(t,o,r,u),kn=!1;var d=t.memoizedState;o.state=d,pa(t,r,o,i),l=t.memoizedState,a!==r||d!==l||Qe.current||kn?(typeof c=="function"&&($u(t,n,c,r),l=t.memoizedState),(a=kn||Th(t,n,a,r,d,l,u))?(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=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,hy(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Pt(t.type,a),o.props=u,f=t.pendingProps,d=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=wt(l):(l=Xe(n)?Sr:Fe.current,l=vi(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Eh(t,o,r,l),kn=!1,d=t.memoizedState,o.state=d,pa(t,r,o,i);var x=t.memoizedState;a!==f||d!==x||Qe.current||kn?(typeof m=="function"&&($u(t,n,m,r),x=t.memoizedState),(u=kn||Th(t,n,u,r,d,x,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ku(e,t,n,r,s,i)}function Ku(e,t,n,r,i,s){Vy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&gh(t,n,!1),cn(e,t,s);r=t.stateNode,Lb.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=wi(t,e.child,null,s),t.child=wi(t,null,a,s)):Ve(e,t,a,s),t.memoizedState=r.state,i&&gh(t,n,!0),t.child}function zy(e){var t=e.stateNode;t.pendingContext?mh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mh(e,t.context,!1),md(e,t.containerInfo)}function Mh(e,t,n,r,i){return xi(),ud(i),t.flags|=256,Ve(e,t,n,r),t.child}var Gu={dehydrated:null,treeContext:null,retryLane:0};function Yu(e){return{baseLanes:e,cachePool:null,transitions:null}}function By(e,t,n){var r=t.pendingProps,i=ce.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),ne(ce,i&1),e===null)return zu(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=Ga(o,r,0,null),e=xr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Yu(n),t.memoizedState=Gu,e):Cd(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ob(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Hn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Hn(a,s):(s=xr(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?Yu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Gu,r}return s=e.child,e=s.sibling,r=Hn(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 Cd(e,t){return t=Ga({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function So(e,t,n,r){return r!==null&&ud(r),wi(t,e.child,null,n),e=Cd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ob(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Bl(Error(N(422))),So(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ga({mode:"visible",children:r.children},i,0,null),s=xr(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&wi(t,e.child,null,o),t.child.memoizedState=Yu(o),t.memoizedState=Gu,s);if(!(t.mode&1))return So(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(N(419)),r=Bl(s,r,void 0),So(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ge||a){if(r=Ee,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,un(e,i),Mt(r,e,i,-1))}return Nd(),r=Bl(Error(N(421))),So(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Yb.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ot=Bn(i.nextSibling),at=t,ae=!0,Rt=null,e!==null&&(mt[gt++]=rn,mt[gt++]=sn,mt[gt++]=Cr,rn=e.id,sn=e.overflow,Cr=t),t=Cd(t,r.children),t.flags|=4096,t)}function Dh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bu(e.return,t,n)}function $l(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 $y(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ve(e,t,r.children,n),r=ce.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&&Dh(e,n,t);else if(e.tag===19)Dh(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(ne(ce,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&&ma(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$l(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&&ma(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$l(t,!0,n,null,s);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $o(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Er|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ib(e,t,n){switch(t.tag){case 3:zy(t),xi();break;case 5:py(t);break;case 1:Xe(t.type)&&ua(t);break;case 4:md(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ne(fa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ce,ce.current&1),t.flags|=128,null):n&t.child.childLanes?By(e,t,n):(ne(ce,ce.current&1),e=cn(e,t,n),e!==null?e.sibling:null);ne(ce,ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $y(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ne(ce,ce.current),r)break;return null;
vendor: 4,597 bytes, line 40
40case 22:case 23:return t.lanes=0,_y(e,t,n)}return cn(e,t,n)}var Uy,Qu,Wy,Hy;Uy=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}};Qu=function(){};Wy=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,dr(Kt.current);var s=null;switch(n){case"input":i=yu(e,i),r=yu(e,r),s=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),s=[];break;case"textarea":i=wu(e,i),r=wu(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=aa)}Su(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ms.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ms.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&se("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Hy=function(e,t,n,r){n!==r&&(t.flags|=4)};function Wi(e,t){if(!ae)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 De(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 Fb(e,t,n){var r=t.pendingProps;switch(ld(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return Xe(t.type)&&la(),De(t),null;case 3:return r=t.stateNode,bi(),oe(Qe),oe(Fe),yd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(rc(Rt),Rt=null))),Qu(e,t),De(t),null;case 5:gd(t);var i=dr(ks.current);if(n=t.type,e!==null&&t.stateNode!=null)Wy(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return De(t),null}if(e=dr(Kt.current),wo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Wt]=t,r[Es]=s,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(i=0;i<Zi.length;i++)se(Zi[i],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":$f(r,s),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},se("invalid",r);break;case"textarea":Wf(r,s),se("invalid",r)}Su(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&xo(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&xo(r.textContent,a,e),i=["children",""+a]):ms.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&se("scroll",r)}switch(n){case"input":co(r),Uf(r,s,!0);break;case"textarea":co(r),Hf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=aa)}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=xg(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",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[Wt]=t,e[Es]=r,Uy(e,t,!1,!1),t.stateNode=e;e:{switch(o=Cu(n,r),n){case"dialog":se("cancel",e),se("close",e),i=r;break;case"iframe":case"object":case"embed":se("load",e),i=r;break;case"video":case"audio":for(i=0;i<Zi.length;i++)se(Zi[i],e);i=r;break;case"source":se("error",e),i=r;break;case"img":case"image":case"link":se("error",e),se("load",e),i=r;break;case"details":se("toggle",e),i=r;break;case"input":$f(e,r),i=yu(e,r),se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=he({},r,{value:void 0}),se("invalid",e);break;case"textarea":Wf(e,r),i=wu(e,r),se("invalid",e);break;default:i=r}Su(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Sg(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&wg(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&gs(e,l):typeof l=="number"&&gs(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ms.hasOwnProperty(s)?l!=null&&s==="onScroll"&&se("scroll",e):l!=null&&Gc(e,s,l,o))}switch(n){case"input":co(e),Uf(e,r,!1);break;case"textarea":co(e),Hf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Jr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Jr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=aa)}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 De(t),null;case 6:if(e&&t.stateNode!=null)Hy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=dr(ks.current),dr(Kt.current),wo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Wt]=t,(s=r.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:xo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xo(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Wt]=t,t.stateNode=r}return De(t),null;case 13:if(oe(ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&ot!==null&&t.mode&1&&!(t.flags&128))uy(),xi(),t.flags|=98560,s=!1;else if(s=wo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Wt]=t}else xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;De(t),s=!1}else Rt!==null&&(rc(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||ce.current&1?Ce===0&&(Ce=3):Nd())),t.updateQueue!==null&&(t.flags|=4),De(t),null);case 4:return bi(),Qu(e,t),e===null&&Cs(t.stateNode.containerInfo),De(t),null;case 10:return fd(t.type._context),De(t),null;case 17:return Xe(t.type)&&la(),De(t),null;case 19:if(oe(ce),s=t.memoizedState,s===null)return De(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Wi(s,!1);else{if(Ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ma(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 ne(ce,ce.current&1|2),t.child}e=e.sibling}s.tail!==null&&ve()>Ci&&(t.flags|=128,r=!0,Wi(s,!1),t.lanes=4194304)}else{if(!r)if(e=ma(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&&!ae)return De(t),null}else 2*ve()-s.renderingStartTime>Ci&&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=ve(),t.sibling=null,n=ce.current,ne(ce,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ad(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?it&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function _b(e,t){switch(ld(t),t.tag){case 1:return Xe(t.type)&&la(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 25,727 bytes, line 40
40case 3:return bi(),oe(Qe),oe(Fe),yd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gd(t),null;case 13:if(oe(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ce),null;case 4:return bi(),null;case 10:return fd(t.type._context),null;case 22:case 23:return Ad(),null;case 24:return null;default:return null}}var Co=!1,Oe=!1,Vb=typeof WeakSet=="function"?WeakSet:Set,O=null;function Kr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Xu(e,t,n){try{n()}catch(r){ge(e,t,r)}}var Lh=!1;function zb(e,t){if(Du=ia,e=Xg(),od(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,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=o),d===s&&++c===r&&(l=o),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lu={focusedElem:e,selectionRange:n},ia=!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 y=x.memoizedProps,w=x.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Pt(t.type,y),w);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(S){ge(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return x=Lh,Lh=!1,x}function os(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&&Xu(t,n,s)}i=i.next}while(i!==r)}}function Ha(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 qu(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 Ky(e){var t=e.alternate;t!==null&&(e.alternate=null,Ky(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wt],delete t[Es],delete t[Fu],delete t[Sb],delete t[Cb])),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 Gy(e){return e.tag===5||e.tag===3||e.tag===4}function Oh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gy(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 Zu(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=aa));else if(r!==4&&(e=e.child,e!==null))for(Zu(e,t,n),e=e.sibling;e!==null;)Zu(e,t,n),e=e.sibling}function Ju(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(Ju(e,t,n),e=e.sibling;e!==null;)Ju(e,t,n),e=e.sibling}var ke=null,Nt=!1;function bn(e,t,n){for(n=n.child;n!==null;)Yy(e,t,n),n=n.sibling}function Yy(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Fa,n)}catch{}switch(n.tag){case 5:Oe||Kr(n,t);case 6:var r=ke,i=Nt;ke=null,bn(e,t,n),ke=r,Nt=i,ke!==null&&(Nt?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(Nt?(e=ke,n=n.stateNode,e.nodeType===8?Ol(e.parentNode,n):e.nodeType===1&&Ol(e,n),ws(e)):Ol(ke,n.stateNode));break;case 4:r=ke,i=Nt,ke=n.stateNode.containerInfo,Nt=!0,bn(e,t,n),ke=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Oe&&(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)&&Xu(n,t,o),i=i.next}while(i!==r)}bn(e,t,n);break;case 1:if(!Oe&&(Kr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,bn(e,t,n),Oe=r):bn(e,t,n);break;default:bn(e,t,n)}}function Ih(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vb),t.forEach(function(r){var i=Qb.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:ke=a.stateNode,Nt=!1;break e;case 3:ke=a.stateNode.containerInfo,Nt=!0;break e;case 4:ke=a.stateNode.containerInfo,Nt=!0;break e}a=a.return}if(ke===null)throw Error(N(160));Yy(s,o,i),ke=null,Nt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ge(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qy(t,e),t=t.sibling}function Qy(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{os(3,e,e.return),Ha(3,e)}catch(y){ge(e,e.return,y)}try{os(5,e,e.return)}catch(y){ge(e,e.return,y)}}break;case 1:Ct(t,e),Vt(e),r&512&&n!==null&&Kr(n,n.return);break;case 5:if(Ct(t,e),Vt(e),r&512&&n!==null&&Kr(n,n.return),e.flags&32){var i=e.stateNode;try{gs(i,"")}catch(y){ge(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&yg(i,s),Cu(a,o);var u=Cu(a,s);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?Sg(i,f):c==="dangerouslySetInnerHTML"?wg(i,f):c==="children"?gs(i,f):Gc(i,c,f,u)}switch(a){case"input":vu(i,s);break;case"textarea":vg(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?Jr(i,!!s.multiple,m,!1):d!==!!s.multiple&&(s.defaultValue!=null?Jr(i,!!s.multiple,s.defaultValue,!0):Jr(i,!!s.multiple,s.multiple?[]:"",!1))}i[Es]=s}catch(y){ge(e,e.return,y)}}break;case 6:if(Ct(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){ge(e,e.return,y)}}break;case 3:if(Ct(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ws(t.containerInfo)}catch(y){ge(e,e.return,y)}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||(Pd=ve())),r&4&&Ih(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(u=Oe)||c,Ct(t,e),Oe=u):Ct(t,e),Vt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(O=e,c=e.child;c!==null;){for(f=O=c;O!==null;){switch(d=O,m=d.child,d.tag){case 0:case 11:case 14:case 15:os(4,d,d.return);break;case 1:Kr(d,d.return);var x=d.stateNode;if(typeof x.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){ge(r,n,y)}}break;case 5:Kr(d,d.return);break;case 22:if(d.memoizedState!==null){_h(f);continue}}m!==null?(m.return=d,O=m):_h(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=bg("display",o))}catch(y){ge(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){ge(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ct(t,e),Vt(e),r&4&&Ih(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(Gy(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(gs(i,""),r.flags&=-33);var s=Oh(e);Ju(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Oh(e);Zu(e,a,o);break;default:throw Error(N(161))}}catch(l){ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bb(e,t,n){O=e,Xy(e)}function Xy(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||Co;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Oe;a=Co;var u=Oe;if(Co=o,(Oe=l)&&!u)for(O=i;O!==null;)o=O,l=o.child,o.tag===22&&o.memoizedState!==null?Vh(i):l!==null?(l.return=o,O=l):Vh(i);for(;s!==null;)O=s,Xy(s),s=s.sibling;O=i,Co=a,Oe=u}Fh(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,O=s):Fh(e)}}function Fh(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:Oe||Ha(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Pt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&bh(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}bh(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&ws(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Oe||t.flags&512&&qu(t)}catch(d){ge(t,t.return,d)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function _h(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 Vh(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ha(4,t)}catch(l){ge(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ge(t,i,l)}}var s=t.return;try{qu(t)}catch(l){ge(t,s,l)}break;case 5:var o=t.return;try{qu(t)}catch(l){ge(t,o,l)}}}catch(l){ge(t,t.return,l)}if(t===e){O=null;break}var a=t.sibling;if(a!==null){a.return=t.return,O=a;break}O=t.return}}var $b=Math.ceil,va=mn.ReactCurrentDispatcher,Td=mn.ReactCurrentOwner,vt=mn.ReactCurrentBatchConfig,q=0,Ee=null,we=null,Ne=0,it=0,Gr=tr(0),Ce=0,js=null,Er=0,Ka=0,Ed=0,as=null,Ke=null,Pd=0,Ci=1/0,tn=null,xa=!1,ec=null,Un=null,To=!1,In=null,wa=0,ls=0,tc=null,Uo=-1,Wo=0;function $e(){return q&6?ve():Uo!==-1?Uo:Uo=ve()}function Wn(e){return e.mode&1?q&2&&Ne!==0?Ne&-Ne:Eb.transition!==null?(Wo===0&&(Wo=Lg()),Wo):(e=ee,e!==0||(e=window.event,e=e===void 0?16:Bg(e.type)),e):1}function Mt(e,t,n,r){if(50<ls)throw ls=0,tc=null,Error(N(185));Gs(e,n,r),(!(q&2)||e!==Ee)&&(e===Ee&&(!(q&2)&&(Ka|=n),Ce===4&&Nn(e,Ne)),qe(e,r),n===1&&q===0&&!(t.mode&1)&&(Ci=ve()+500,$a&&nr()))}function qe(e,t){var n=e.callbackNode;E1(e,t);var r=ra(e,e===Ee?Ne:0);if(r===0)n!==null&&Yf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yf(n),t===1)e.tag===0?Tb(zh.bind(null,e)):oy(zh.bind(null,e)),wb(function(){!(q&6)&&nr()}),n=null;else{switch(Og(r)){case 1:n=Zc;break;case 4:n=Mg;break;case 16:n=na;break;case 536870912:n=Dg;break;default:n=na}n=iv(n,qy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qy(e,t){if(Uo=-1,Wo=0,q&6)throw Error(N(327));var n=e.callbackNode;if(ii()&&e.callbackNode!==n)return null;var r=ra(e,e===Ee?Ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ba(e,r);else{t=r;var i=q;q|=2;var s=Jy();(Ee!==e||Ne!==t)&&(tn=null,Ci=ve()+500,vr(e,t));do try{Hb();break}catch(a){Zy(e,a)}while(!0);dd(),va.current=s,q=i,we!==null?t=0:(Ee=null,Ne=0,t=Ce)}if(t!==0){if(t===2&&(i=Au(e),i!==0&&(r=i,t=nc(e,i))),t===1)throw n=js,vr(e,0),Nn(e,r),qe(e,ve()),n;if(t===6)Nn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Ub(i)&&(t=ba(e,r),t===2&&(s=Au(e),s!==0&&(r=s,t=nc(e,s))),t===1))throw n=js,vr(e,0),Nn(e,r),qe(e,ve()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:ar(e,Ke,tn);break;case 3:if(Nn(e,r),(r&130023424)===r&&(t=Pd+500-ve(),10<t)){if(ra(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){$e(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Iu(ar.bind(null,e,Ke,tn),t);break}ar(e,Ke,tn);break;case 4:if(Nn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-jt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$b(r/1960))-r,10<r){e.timeoutHandle=Iu(ar.bind(null,e,Ke,tn),r);break}ar(e,Ke,tn);break;case 5:ar(e,Ke,tn);break;default:throw Error(N(329))}}}return qe(e,ve()),e.callbackNode===n?qy.bind(null,e):null}function nc(e,t){var n=as;return e.current.memoizedState.isDehydrated&&(vr(e,t).flags|=256),e=ba(e,t),e!==2&&(t=Ke,Ke=n,t!==null&&rc(t)),e}function rc(e){Ke===null?Ke=e:Ke.push.apply(Ke,e)}function Ub(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(!Dt(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 Nn(e,t){for(t&=~Ed,t&=~Ka,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function zh(e){if(q&6)throw Error(N(327));ii();var t=ra(e,0);if(!(t&1))return qe(e,ve()),null;var n=ba(e,t);if(e.tag!==0&&n===2){var r=Au(e);r!==0&&(t=r,n=nc(e,r))}if(n===1)throw n=js,vr(e,0),Nn(e,t),qe(e,ve()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ar(e,Ke,tn),qe(e,ve()),null}function kd(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Ci=ve()+500,$a&&nr())}}function Pr(e){In!==null&&In.tag===0&&!(q&6)&&ii();var t=q;q|=1;var n=vt.transition,r=ee;try{if(vt.transition=null,ee=1,e)return e()}finally{ee=r,vt.transition=n,q=t,!(q&6)&&nr()}}function Ad(){it=Gr.current,oe(Gr)}function vr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xb(n)),we!==null)for(n=we.return;n!==null;){var r=n;switch(ld(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&la();break;case 3:bi(),oe(Qe),oe(Fe),yd();break;case 5:gd(r);break;case 4:bi();break;case 13:oe(ce);break;case 19:oe(ce);break;case 10:fd(r.type._context);break;case 22:case 23:Ad()}n=n.return}if(Ee=e,we=e=Hn(e.current,null),Ne=it=t,Ce=0,js=null,Ed=Ka=Er=0,Ke=as=null,cr!==null){for(t=0;t<cr.length;t++)if(n=cr[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}cr=null}return e}function Zy(e,t){do{var n=we;try{if(dd(),zo.current=ya,ga){for(var r=fe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ga=!1}if(Tr=0,Te=be=fe=null,ss=!1,As=0,Td.current=null,n===null||n.return===null){Ce=1,js=t,we=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=Ne,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=kh(o);if(m!==null){m.flags&=-257,Ah(m,o,a,s,t),m.mode&1&&Ph(s,u,t),t=m,l=u;var x=t.updateQueue;if(x===null){var y=new Set;y.add(l),t.updateQueue=y}else x.add(l);break e}else{if(!(t&1)){Ph(s,u,t),Nd();break e}l=Error(N(426))}}else if(ae&&a.mode&1){var w=kh(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Ah(w,o,a,s,t),ud(Si(l,a));break e}}s=l=Si(l,a),Ce!==4&&(Ce=2),as===null?as=[s]:as.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Oy(s,l,t);wh(s,h);break e;case 1:a=l;var p=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Un===null||!Un.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=Iy(s,a,t);wh(s,S);break e}}s=s.return}while(s!==null)}tv(n)}catch(C){t=C,we===n&&n!==null&&(we=n=n.return);continue}break}while(!0)}function Jy(){var e=va.current;return va.current=ya,e===null?ya:e}function Nd(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Ee===null||!(Er&268435455)&&!(Ka&268435455)||Nn(Ee,Ne)}function ba(e,t){var n=q;q|=2;var r=Jy();(Ee!==e||Ne!==t)&&(tn=null,vr(e,t));do try{Wb();break}catch(i){Zy(e,i)}while(!0);if(dd(),q=n,va.current=r,we!==null)throw Error(N(261));return Ee=null,Ne=0,Ce}function Wb(){for(;we!==null;)ev(we)}function Hb(){for(;we!==null&&!g1();)ev(we)}function ev(e){var t=rv(e.alternate,e,it);e.memoizedProps=e.pendingProps,t===null?tv(e):we=t,Td.current=null}function tv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_b(n,t),n!==null){n.flags&=32767,we=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,we=null;return}}else if(n=Fb(n,t,it),n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Ce===0&&(Ce=5)}function ar(e,t,n){var r=ee,i=vt.transition;try{vt.transition=null,ee=1,Kb(e,t,n,r)}finally{vt.transition=i,ee=r}return null}function Kb(e,t,n,r){do ii();while(In!==null);if(q&6)throw Error(N(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(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(P1(e,s),e===Ee&&(we=Ee=null,Ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||To||(To=!0,iv(na,function(){return ii(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=vt.transition,vt.transition=null;var o=ee;ee=1;var a=q;q|=4,Td.current=null,zb(e,n),Qy(n,e),fb(Lu),ia=!!Du,Lu=Du=null,e.current=n,Bb(n),y1(),q=a,ee=o,vt.transition=s}else e.current=n;if(To&&(To=!1,In=e,wa=i),s=e.pendingLanes,s===0&&(Un=null),w1(n.stateNode),qe(e,ve()),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(xa)throw xa=!1,e=ec,ec=null,e;return wa&1&&e.tag!==0&&ii(),s=e.pendingLanes,s&1?e===tc?ls++:(ls=0,tc=e):ls=0,nr(),null}function ii(){if(In!==null){var e=Og(wa),t=vt.transition,n=ee;try{if(vt.transition=null,ee=16>e?16:e,In===null)var r=!1;else{if(e=In,In=null,wa=0,q&6)throw Error(N(331));var i=q;for(q|=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 l=0;l<a.length;l++){var u=a[l];for(O=u;O!==null;){var c=O;switch(c.tag){case 0:case 11:case 15:os(8,c,s)}var f=c.child;if(f!==null)f.return=c,O=f;else for(;O!==null;){c=O;var d=c.sibling,m=c.return;if(Ky(c),c===u){O=null;break}if(d!==null){d.return=m,O=d;break}O=m}}}var x=s.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==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:os(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,O=h;break e}O=s.return}}var p=e.current;for(O=p;O!==null;){o=O;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,O=v;else e:for(o=p;O!==null;){if(a=O,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ha(9,a)}}catch(C){ge(a,a.return,C)}if(a===o){O=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,O=S;break e}O=a.return}}if(q=i,nr(),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Fa,e)}catch{}r=!0}return r}finally{ee=n,vt.transition=t}}return!1}function Bh(e,t,n){t=Si(n,t),t=Oy(e,t,1),e=$n(e,t,1),t=$e(),e!==null&&(Gs(e,1,t),qe(e,t))}function ge(e,t,n){if(e.tag===3)Bh(e,e,n);else for(;t!==null;){if(t.tag===3){Bh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Un===null||!Un.has(r))){e=Si(n,e),e=Iy(t,e,1),t=$n(t,e,1),e=$e(),t!==null&&(Gs(t,1,e),qe(t,e));break}}t=t.return}}function Gb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=$e(),e.pingedLanes|=e.suspendedLanes&n,Ee===e&&(Ne&n)===n&&(Ce===4||Ce===3&&(Ne&130023424)===Ne&&500>ve()-Pd?vr(e,0):Ed|=n),qe(e,t)}function nv(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=$e();e=un(e,t),e!==null&&(Gs(e,t,n),qe(e,n))}function Yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nv(e,n)}function Qb(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(N(314))}r!==null&&r.delete(t),nv(e,n)}var rv;rv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,Ib(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,ae&&t.flags&1048576&&ay(t,da,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$o(e,t),e=t.pendingProps;var i=vi(t,Fe.current);ri(t,n),i=xd(null,t,r,e,i,n);var s=wd();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,Xe(r)?(s=!0,ua(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pd(t),i.updater=Wa,t.stateNode=i,i._reactInternals=t,Uu(t,r,e,n),t=Ku(null,t,r,!0,s,n)):(t.tag=0,ae&&s&&ad(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($o(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qb(r),e=Pt(r,e),i){case 0:t=Hu(null,t,r,e,n);break e;case 1:t=jh(null,t,r,e,n);break e;case 11:t=Nh(null,t,r,e,n);break e;case 14:t=Rh(null,t,r,Pt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),Hu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),jh(e,t,r,i,n);case 3:e:{if(zy(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,hy(e,t),pa(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=Si(Error(N(423)),t),t=Mh(e,t,r,n,i);break e}else if(r!==i){i=Si(Error(N(424)),t),t=Mh(e,t,r,n,i);break e}else for(ot=Bn(t.stateNode.containerInfo.firstChild),at=t,ae=!0,Rt=null,n=dy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xi(),r===i){t=cn(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return py(t),e===null&&zu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Ou(r,i)?o=null:s!==null&&Ou(r,s)&&(t.flags|=32),Vy(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&zu(t),null;case 13:return By(e,t,n);case 4:return md(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wi(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),Nh(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(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,ne(fa,r._currentValue),r._currentValue=o,s!==null)if(Dt(s.value,o)){if(s.children===i.children&&!Qe.current){t=cn(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 l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=on(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Bu(s.return,n,t),a.lanes|=n;break}l=l.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(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Bu(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}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ri(t,n),i=wt(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=Pt(r,t.pendingProps),i=Pt(r.type,i),Rh(e,t,r,i,n);case 15:return Fy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),$o(e,t),t.tag=1,Xe(r)?(e=!0,ua(t)):e=!1,ri(t,n),Ly(t,r,i),Uu(t,r,i,n),Ku(null,t,r,!0,e,n);case 19:return $y(e,t,n);
vendor: 4,599 bytes, line 40
40case 22:return _y(e,t,n)}throw Error(N(156,t.tag))};function iv(e,t){return jg(e,t)}function Xb(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 yt(e,t,n,r){return new Xb(e,t,n,r)}function Rd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qb(e){if(typeof e=="function")return Rd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qc)return 11;if(e===Xc)return 14}return 2}function Hn(e,t){var n=e.alternate;return n===null?(n=yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ho(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Rd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fr:return xr(n.children,i,s,t);case Yc:o=8,i|=8;break;case hu:return e=yt(12,n,t,i|2),e.elementType=hu,e.lanes=s,e;case pu:return e=yt(13,n,t,i),e.elementType=pu,e.lanes=s,e;case mu:return e=yt(19,n,t,i),e.elementType=mu,e.lanes=s,e;case pg:return Ga(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fg:o=10;break e;case hg:o=9;break e;case Qc:o=11;break e;case Xc:o=14;break e;case Pn:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=yt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function xr(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function Ga(e,t,n,r){return e=yt(22,e,r,t),e.elementType=pg,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function Wl(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zb(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=Tl(0),this.expirationTimes=Tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jd(e,t,n,r,i,s,o,a,l){return e=new Zb(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=yt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pd(s),e}function Jb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ir,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function sv(e){if(!e)return Gn;e=e._reactInternals;e:{if(Rr(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Xe(n))return sy(e,n,t)}return t}function ov(e,t,n,r,i,s,o,a,l){return e=jd(n,r,!0,e,i,s,o,a,l),e.context=sv(null),n=e.current,r=$e(),i=Wn(n),s=on(r,i),s.callback=t??null,$n(n,s,i),e.current.lanes=i,Gs(e,i,r),qe(e,r),e}function Ya(e,t,n,r){var i=t.current,s=$e(),o=Wn(i);return n=sv(n),t.context===null?t.context=n:t.pendingContext=n,t=on(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$n(i,t,o),e!==null&&(Mt(e,i,o,s),Vo(e,i,o)),o}function Sa(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 $h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Md(e,t){$h(e,t),(e=e.alternate)&&$h(e,t)}function eS(){return null}var av=typeof reportError=="function"?reportError:function(e){console.error(e)};function Dd(e){this._internalRoot=e}Qa.prototype.render=Dd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Ya(e,t,null,null)};
vendor: 5,463 bytes, line 40
40Qa.prototype.unmount=Dd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pr(function(){Ya(null,e,null,null)}),t[ln]=null}};function Qa(e){this._internalRoot=e}Qa.prototype.unstable_scheduleHydration=function(e){if(e){var t=_g();e={blockedOn:null,target:e,priority:t};for(var n=0;n<An.length&&t!==0&&t<An[n].priority;n++);An.splice(n,0,e),n===0&&zg(e)}};function Ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Uh(){}function tS(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Sa(o);s.call(u)}}var o=ov(t,r,e,0,null,!1,!1,"",Uh);return e._reactRootContainer=o,e[ln]=o.current,Cs(e.nodeType===8?e.parentNode:e),Pr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Sa(l);a.call(u)}}var l=jd(e,0,!1,null,null,!1,!1,"",Uh);return e._reactRootContainer=l,e[ln]=l.current,Cs(e.nodeType===8?e.parentNode:e),Pr(function(){Ya(t,l,n,r)}),l}function qa(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Sa(o);a.call(l)}}Ya(t,o,e,i)}else o=tS(n,t,e,i,r);return Sa(o)}Ig=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qi(t.pendingLanes);n!==0&&(Jc(t,n|1),qe(t,ve()),!(q&6)&&(Ci=ve()+500,nr()))}break;case 13:Pr(function(){var r=un(e,1);if(r!==null){var i=$e();Mt(r,e,1,i)}}),Md(e,1)}};ed=function(e){if(e.tag===13){var t=un(e,134217728);if(t!==null){var n=$e();Mt(t,e,134217728,n)}Md(e,134217728)}};Fg=function(e){if(e.tag===13){var t=Wn(e),n=un(e,t);if(n!==null){var r=$e();Mt(n,e,t,r)}Md(e,t)}};_g=function(){return ee};Vg=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}};Eu=function(e,t,n){switch(t){case"input":if(vu(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=Ba(r);if(!i)throw Error(N(90));gg(r),vu(r,i)}}}break;case"textarea":vg(e,n);break;case"select":t=n.value,t!=null&&Jr(e,!!n.multiple,t,!1)}};Eg=kd;Pg=Pr;var nS={usingClientEntryPoint:!1,Events:[Qs,Br,Ba,Cg,Tg,kd]},Hi={findFiberByHostInstance:ur,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rS={bundleType:Hi.bundleType,version:Hi.version,rendererPackageName:Hi.rendererPackageName,rendererConfig:Hi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ng(e),e===null?null:e.stateNode},findFiberByHostInstance:Hi.findFiberByHostInstance||eS,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 Eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eo.isDisabled&&Eo.supportsFiber)try{Fa=Eo.inject(rS),Ht=Eo}catch{}}ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nS;ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ld(t))throw Error(N(200));return Jb(e,t,null,n)};ct.createRoot=function(e,t){if(!Ld(e))throw Error(N(299));var n=!1,r="",i=av;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=jd(e,1,!1,null,null,n,!1,r,i),e[ln]=t.current,Cs(e.nodeType===8?e.parentNode:e),new Dd(t)};ct.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=Ng(t),e=e===null?null:e.stateNode,e};ct.flushSync=function(e){return Pr(e)};ct.hydrate=function(e,t,n){if(!Xa(t))throw Error(N(200));return qa(null,e,t,!0,n)};ct.hydrateRoot=function(e,t,n){if(!Ld(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=av;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ov(t,null,e,1,n??null,i,!1,s,o),e[ln]=t.current,Cs(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 Qa(t)};ct.render=function(e,t,n){if(!Xa(t))throw Error(N(200));return qa(null,e,t,!1,n)};ct.unmountComponentAtNode=function(e){if(!Xa(e))throw Error(N(40));return e._reactRootContainer?(Pr(function(){qa(null,null,e,!1,function(){e._reactRootContainer=null,e[ln]=null})}),!0):!1};ct.unstable_batchedUpdates=kd;ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xa(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return qa(e,t,n,!1,r)};ct.version="18.3.1-next-f1338f8080-20240426";function lv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lv)}catch(e){console.error(e)}}
40lv(),lg.exports=ct;var qs=lg.exports;const uv=Xm(qs);var cv,Wh=qs;cv=Wh.createRoot,Wh.hydrateRoot;const iS=1,sS=1e6;let Hl=0;function oS(){return Hl=(Hl+1)%Number.MAX_SAFE_INTEGER,Hl.toString()}const Kl=new Map,Hh=e=>{if(Kl.has(e))return;const t=setTimeout(()=>{Kl.delete(e),us({type:"REMOVE_TOAST",toastId:e})},sS);Kl.set(e,t)},aS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,iS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Hh(n):e.toasts.forEach(r=>{Hh(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ko=[];let Go={toasts:[]};function us(e){Go=aS(Go,e),Ko.forEach(t=>{t(Go)})}function lS({...e}){const t=oS(),n=i=>us({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>us({type:"DISMISS_TOAST",toastId:t});return us({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function uS(){const[e,t]=b.useState(Go);return b.useEffect(()=>(Ko.push(t),()=>{const n=Ko.indexOf(t);n>-1&&Ko.splice(n,1)}),[e]),{...e,toast:lS,dismiss:n=>us({type:"DISMISS_TOAST",toastId:n})}}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function cS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function dv(...e){return t=>e.forEach(n=>cS(n,t))}function Lt(...e){return b.useCallback(dv(...e),e)}function dS(e,t=[]){let n=[];function r(s,o){const a=b.createContext(o),l=n.length;n=[...n,o];function u(f){const{scope:d,children:m,...x}=f,y=(d==null?void 0:d[e][l])||a,w=b.useMemo(()=>x,Object.values(x));return g.jsx(y.Provider,{value:w,children:m})}function c(f,d){const m=(d==null?void 0:d[e][l])||a,x=b.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,c]}const i=()=>{const s=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,fS(i,...t)]}function fS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Ms=b.forwardRef((e,t)=>{const{children:n,...r}=e,i=b.Children.toArray(n),s=i.find(hS);if(s){const o=s.props.children,a=i.map(l=>l===s?b.Children.count(o)>1?b.Children.only(null):b.isValidElement(o)?o.props.children:null:l);return g.jsx(ic,{...r,ref:t,children:b.isValidElement(o)?b.cloneElement(o,void 0,a):null})}return g.jsx(ic,{...r,ref:t,children:n})});Ms.displayName="Slot";var ic=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const i=mS(n);return b.cloneElement(n,{...pS(r,n.props),ref:t?dv(t,i):i})}return b.Children.count(n)>1?b.Children.only(null):null});ic.displayName="SlotClone";var fv=({children:e})=>g.jsx(g.Fragment,{children:e});function hS(e){return b.isValidElement(e)&&e.type===fv}function pS(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{s(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function mS(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gS(e){const t=e+"CollectionProvider",[n,r]=dS(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:y}=m,w=M.useRef(null),h=M.useRef(new Map).current;return g.jsx(i,{scope:x,itemMap:h,collectionRef:w,children:y})};o.displayName=t;const a=e+"CollectionSlot",l=M.forwardRef((m,x)=>{const{scope:y,children:w}=m,h=s(a,y),p=Lt(x,h.collectionRef);return g.jsx(Ms,{ref:p,children:w})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=M.forwardRef((m,x)=>{const{scope:y,children:w,...h}=m,p=M.useRef(null),v=Lt(x,p),S=s(u,y);return M.useEffect(()=>(S.itemMap.set(p,{ref:p,...h}),()=>void S.itemMap.delete(p))),g.jsx(Ms,{[c]:"",ref:v,children:w})});f.displayName=u;function d(m){const x=s(e+"CollectionConsumer",m);return M.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const h=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((S,C)=>h.indexOf(S.ref.current)-h.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:l,ItemSlot:f},d,r]}function hv(e,t=[]){let n=[];function r(s,o){const a=b.createContext(o),l=n.length;n=[...n,o];const u=f=>{var h;const{scope:d,children:m,...x}=f,y=((h=d==null?void 0:d[e])==null?void 0:h[l])||a,w=b.useMemo(()=>x,Object.values(x));return g.jsx(y.Provider,{value:w,children:m})};u.displayName=s+"Provider";function c(f,d){var y;const m=((y=d==null?void 0:d[e])==null?void 0:y[l])||a,x=b.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,yS(i,...t)]}function yS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var vS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Je=vS.reduce((e,t)=>
vendor: 4,235 bytes, line 40
40{const n=b.forwardRef((r,i)=>{const{asChild:s,...o}=r,a=s?Ms:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(a,{...o,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pv(e,t){e&&qs.flushSync(()=>e.dispatchEvent(t))}function Xt(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function xS(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e);b.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var wS="DismissableLayer",sc="dismissableLayer.update",bS="dismissableLayer.pointerDownOutside",SS="dismissableLayer.focusOutside",Kh,mv=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Od=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=b.useContext(mv),[c,f]=b.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=b.useState({}),x=Lt(t,k=>f(k)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(w),p=c?y.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=h,C=TS(k=>{const E=k.target,D=[...u.branches].some(j=>j.contains(E));!S||D||(i==null||i(k),o==null||o(k),k.defaultPrevented||a==null||a())},d),T=ES(k=>{const E=k.target;[...u.branches].some(j=>j.contains(E))||(s==null||s(k),o==null||o(k),k.defaultPrevented||a==null||a())},d);return xS(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},d),b.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Gh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Kh)}},[c,d,n,u]),b.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Gh())},[c,u]),b.useEffect(()=>{const k=()=>m({});return document.addEventListener(sc,k),()=>document.removeEventListener(sc,k)},[]),g.jsx(Je.div,{...l,ref:x,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,C.onPointerDownCapture)})});Od.displayName=wS;var CS="DismissableLayerBranch",gv=b.forwardRef((e,t)=>{const n=b.useContext(mv),r=b.useRef(null),i=Lt(t,r);return b.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Je.div,{...e,ref:i})});gv.displayName=CS;function TS(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){yv(bS,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ES(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e),r=b.useRef(!1);return b.useEffect(()=>{const i=s=>{s.target&&!r.current&&yv(SS,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gh(){const e=new CustomEvent(sc);document.dispatchEvent(e)}function yv(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?pv(i,s):i.dispatchEvent(s)}var PS=Od,kS=gv,kr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},AS="Portal",vv=b.forwardRef((e,t)=>
40{var a;const{container:n,...r}=e,[i,s]=b.useState(!1);kr(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?uv.createPortal(g.jsx(Je.div,{...r,ref:t}),o):null});vv.displayName=AS;function NS(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var Id=e=>{const{present:t,children:n}=e,r=RS(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),s=Lt(r.ref,jS(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:s}):null};Id.displayName="Presence";function RS(e){const[t,n]=b.useState(),r=b.useRef({}),i=b.useRef(e),s=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=NS(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=Po(r.current);s.current=a==="mounted"?u:"none"},[a]),kr(()=>{const u=r.current,c=i.current;if(c!==e){const d=s.current,m=Po(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),kr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=m=>{const y=Po(r.current).includes(m.animationName);if(m.target===t&&y&&(l("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},d=m=>{m.target===t&&(s.current=Po(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Po(e){return(e==null?void 0:e.animationName)||"none"}function jS(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function MS({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=DS({defaultProp:t,onChange:n}),s=e!==void 0,o=s?e:r,a=Xt(n),l=b.useCallback(u=>{if(s){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else i(u)},[s,e,i,a]);return[o,l]}function DS({defaultProp:e,onChange:t}){const n=b.useState(e),[r]=n,i=b.useRef(r),s=Xt(t);return b.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}var LS="VisuallyHidden",Za=b.forwardRef((e,t)=>g.jsx(Je.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Za.displayName=LS;var OS=Za,Fd="ToastProvider",[_d,IS,FS]=gS("Toast"),[xv,XR]=hv("Toast",[FS]),[_S,Ja]=xv(Fd),wv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=b.useState(null),[u,c]=b.useState(0),f=b.useRef(!1),d=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Fd}\`. Expected non-empty \`string\`.`),g.jsx(_d.Provider,{scope:t,children:g.jsx(_S,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>c(m=>m+1),[]),onToastRemove:b.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:o})})};wv.displayName=Fd;var bv="ToastViewport",VS=["F8"],oc="toast.viewportPause",ac="toast.viewportResume",Sv=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=VS,label:i="Notifications ({hotkey})",...s}=e,o=Ja(bv,n),a=IS(n),l=b.useRef(null),u=b.useRef(null),c=b.useRef(null),f=b.useRef(null),d=Lt(t,f,o.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;b.useEffect(()=>{const w=h=>{var v;r.length!==0&&r.every(S=>h[S]||h.code===S)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),b.useEffect(()=>{const w=l.current,h=f.current;if(x&&w&&h){const p=()=>
40{if(!o.isClosePausedRef.current){const T=new CustomEvent(oc);h.dispatchEvent(T),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const T=new CustomEvent(ac);h.dispatchEvent(T),o.isClosePausedRef.current=!1}},S=T=>{!w.contains(T.relatedTarget)&&v()},C=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",p),w.addEventListener("focusout",S),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[x,o.isClosePausedRef]);const y=b.useCallback(({tabbingDirection:w})=>{const p=a().map(v=>{const S=v.ref.current,C=[S,...ZS(S)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?p.reverse():p).flat()},[a]);return b.useEffect(()=>{const w=f.current;if(w){const h=p=>{var C,T,k;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const E=document.activeElement,D=p.shiftKey;if(p.target===w&&D){(C=u.current)==null||C.focus();return}const F=y({tabbingDirection:D?"backwards":"forwards"}),W=F.findIndex(L=>L===E);Gl(F.slice(W+1))?p.preventDefault():D?(T=u.current)==null||T.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",h),()=>w.removeEventListener("keydown",h)}},[a,y]),g.jsxs(kS,{ref:l,role:"region","aria-label":i.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&g.jsx(lc,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});Gl(w)}}),g.jsx(_d.Slot,{scope:n,children:g.jsx(Je.ol,{tabIndex:-1,...s,ref:d})}),x&&g.jsx(lc,{ref:c,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});Gl(w)}})]})});Sv.displayName=bv;var Cv="ToastFocusProxy",lc=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Ja(Cv,n);return g.jsx(Za,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});lc.displayName=Cv;var el="Toast",zS="toast.swipeStart",BS="toast.swipeMove",$S="toast.swipeCancel",US="toast.swipeEnd",Tv=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a=!0,l]=MS({prop:r,defaultProp:i,onChange:s});return g.jsx(Id,{present:n||a,children:g.jsx(KS,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Xt(e.onPause),onResume:Xt(e.onResume),onSwipeStart:Se(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Se(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Se(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Se(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Tv.displayName=el;var[WS,HS]=xv(el,{onClose(){}}),KS=b.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:m,...x}=e,y=Ja(el,n),[w,h]=b.useState(null),p=Lt(t,L=>h(L)),v=b.useRef(null),S=b.useRef(null),C=i||y.duration,T=b.useRef(0),k=b.useRef(C),E=b.useRef(0),{onToastAdd:D,onToastRemove:j}=y,V=Xt(()=>{var Y;(w==null?void 0:w.contains(document.activeElement))&&((Y=y.viewport)==null||Y.focus()),o()}),F=b.useCallback(L=>
vendor: 4,524 bytes, line 40
40{!L||L===1/0||(window.clearTimeout(E.current),T.current=new Date().getTime(),E.current=window.setTimeout(V,L))},[V]);b.useEffect(()=>{const L=y.viewport;if(L){const Y=()=>{F(k.current),u==null||u()},$=()=>{const z=new Date().getTime()-T.current;k.current=k.current-z,window.clearTimeout(E.current),l==null||l()};return L.addEventListener(oc,$),L.addEventListener(ac,Y),()=>{L.removeEventListener(oc,$),L.removeEventListener(ac,Y)}}},[y.viewport,C,l,u,F]),b.useEffect(()=>{s&&!y.isClosePausedRef.current&&F(C)},[s,C,y.isClosePausedRef,F]),b.useEffect(()=>(D(),()=>j()),[D,j]);const W=b.useMemo(()=>w?jv(w):null,[w]);return y.viewport?g.jsxs(g.Fragment,{children:[W&&g.jsx(GS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),g.jsx(WS,{scope:n,onClose:V,children:qs.createPortal(g.jsx(_d.ItemSlot,{scope:n,children:g.jsx(PS,{asChild:!0,onEscapeKeyDown:Se(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||V(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Je.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...x,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Se(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:Se(e.onPointerDown,L=>{L.button===0&&(v.current={x:L.clientX,y:L.clientY})}),onPointerMove:Se(e.onPointerMove,L=>{if(!v.current)return;const Y=L.clientX-v.current.x,$=L.clientY-v.current.y,z=!!S.current,P=["left","right"].includes(y.swipeDirection),R=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,_=P?R(0,Y):0,I=P?0:R(0,$),B=L.pointerType==="touch"?10:2,X={x:_,y:I},ue={originalEvent:L,delta:X};z?(S.current=X,ko(BS,f,ue,{discrete:!1})):Yh(X,y.swipeDirection,B)?(S.current=X,ko(zS,c,ue,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(Y)>B||Math.abs($)>B)&&(v.current=null)}),onPointerUp:Se(e.onPointerUp,L=>{const Y=S.current,$=L.target;if($.hasPointerCapture(L.pointerId)&&$.releasePointerCapture(L.pointerId),S.current=null,v.current=null,Y){const z=L.currentTarget,P={originalEvent:L,delta:Y};Yh(Y,y.swipeDirection,y.swipeThreshold)?ko(US,m,P,{discrete:!0}):ko($S,d,P,{discrete:!0}),z.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),GS=e=>{const{__scopeToast:t,children:n,...r}=e,i=Ja(el,t),[s,o]=b.useState(!1),[a,l]=b.useState(!1);return XS(()=>o(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:g.jsx(vv,{asChild:!0,children:g.jsx(Za,{...r,children:s&&g.jsxs(g.Fragment,{children:[i.label," ",n]})})})},YS="ToastTitle",Ev=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx(Je.div,{...r,ref:t})});Ev.displayName=YS;var QS="ToastDescription",Pv=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx(Je.div,{...r,ref:t})});Pv.displayName=QS;var kv="ToastAction",Av=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?g.jsx(Rv,{altText:n,asChild:!0,children:g.jsx(Vd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kv}\`. Expected non-empty \`string\`.`),null)});Av.displayName=kv;var Nv="ToastClose",Vd=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=HS(Nv,n);return g.jsx(Rv,{asChild:!0,children:g.jsx(Je.button,{type:"button",...r,ref:t,onClick:Se(e.onClick,i.onClose)})})});Vd.displayName=Nv;var Rv=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return g.jsx(Je.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function jv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),qS(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...jv(r))}}),t}function ko(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?pv(i,s):i.dispatchEvent(s)}var Yh=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function XS(e=()=>{}){const t=Xt(e);kr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}
vendor: 8,608 bytes, lines 40-130
40function qS(e){return e.nodeType===e.ELEMENT_NODE}function ZS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var JS=wv,Mv=Sv,Dv=Tv,Lv=Ev,Ov=Pv,Iv=Av,Fv=Vd;function _v(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_v(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vv(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_v(e))&&(r&&(r+=" "),r+=t);return r}const Qh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xh=Vv,zv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Xh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=s==null?void 0:s[u];if(c===null)return null;const d=Qh(c)||Qh(f);return i[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...m}=c;return Object.entries(m).every(x=>{let[y,w]=x;return Array.isArray(w)?w.includes({...s,...a}[y]):{...s,...a}[y]===w})?[...u,f,d]:u},[]);return Xh(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const eC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var tC={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"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const nC=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...tC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bv("lucide",i),...a},[...o.map(([u,c])=>b.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const et=(e,t)=>{const n=b.forwardRef(({className:r,...i},s)=>b.createElement(nC,{ref:s,iconNode:t,className:Bv(`lucide-${eC(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Yl=et("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const rC=et("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const iC=et("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const sC=et("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const oC=et("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"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const qh=et("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const aC=et("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const lC=et("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const uC=et("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const cC=et("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"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const dC=et("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Zh=et("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const $v=et("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Uv=et("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,906 bytes, line 130
130],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),zd="-",fC=e=>{const t=pC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(zd);return a[0]===""&&a.length!==1&&a.shift(),Wv(a,t)||hC(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Wv=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Wv(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(zd);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Jh=/^\[(.+)\]$/,hC=e=>{if(Jh.test(e)){const t=Jh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return gC(Object.entries(e.classGroups),n).forEach(([s,o])=>{uc(o,r,s,t)}),r},uc=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:ep(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(mC(i)){uc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{uc(o,ep(t,s),n,r)})})},ep=(e,t)=>{let n=e;return t.split(zd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},mC=e=>e.isThemeGetter,gC=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,yC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},Hv="!",vC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let u=0,c=0,f;for(let w=0;w<a.length;w++){let h=a[w];if(u===0){if(h===i&&(r||a.slice(w,w+s)===t)){l.push(a.slice(c,w)),c=w+s;continue}if(h==="/"){f=w;continue}}h==="["?u++:h==="]"&&u--}const d=l.length===0?a:a.substring(c),m=d.startsWith(Hv),x=m?d.substring(1):d,y=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},xC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},wC=e=>({cache:yC(e.cacheSize),parseClassName:vC(e),...fC(e)}),bC=/\s+/,SC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(bC);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:m}=n(u);let x=!!m,y=r(x?d.substring(0,m):d);if(!y){if(!x){a=u+(a.length>0?" "+a:a);continue}if(y=r(d),!y){a=u+(a.length>0?" "+a:a);continue}x=!1}const w=xC(c).join(":"),h=f?w+Hv:w,p=h+y;if(s.includes(p))continue;s.push(p);const v=i(y,x);for(let S=0;S<v.length;++S){const C=v[S];s.push(h+C)}a=u+(a.length>0?" "+a:a)}return a};function CC(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Kv(t))&&(r&&(r+=" "),r+=n);return r}const Kv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Kv(e[r]))&&(n&&(n+=" "),n+=t);return n};function TC(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return n=wC(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=SC(l,n);return i(l,c),c}return function(){return s(CC.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Gv=/^\[(?:([a-z-]+):)?(.+)\]$/i,EC=/^\d+\/\d+$/,PC=new Set(["px","full","screen"]),kC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,NC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,RC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>si(e)||PC.has(e)||EC.test(e),Sn=e=>ji(e,"length",VC),si=e=>!!e&&!Number.isNaN(Number(e)),Ql=e=>ji(e,"number",si),Ki=e=>!!e&&Number.isInteger(Number(e)),MC=e=>e.endsWith("%")&&si(e.slice(0,-1)),K=e=>Gv.test(e),Cn=e=>kC.test(e),DC=new Set(["length","size","percentage"]),LC=e=>ji(e,DC,Yv),OC=e=>ji(e,"position",Yv),IC=new Set(["image","url"]),FC=e=>ji(e,IC,BC),_C=e=>ji(e,"",zC),Gi=()=>!0,ji=(e,t,n)=>{const r=Gv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},VC=e=>AC.test(e)&&!NC.test(e),Yv=()=>!1,zC=e=>RC.test(e),BC=e=>jC.test(e),$C=()=>{const e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),i=ie("borderColor"),s=ie("borderRadius"),o=ie("borderSpacing"),a=ie("borderWidth"),l=ie("contrast"),u=ie("grayscale"),c=ie("hueRotate"),f=ie("invert"),d=ie("gap"),m=ie("gradientColorStops"),x=ie("gradientColorStopPositions"),y=ie("inset"),w=ie("margin"),h=ie("opacity"),p=ie("padding"),v=ie("saturate"),S=ie("scale"),C=ie("sepia"),T=ie("skew"),k=ie("space"),E=ie("translate"),D=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",K,t],F=()=>[K,t],W=()=>["",Jt,Sn],L=()=>["auto",si,K],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",K],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[si,K];return{cacheSize:500,separator:":",theme:{colors:[Gi],spacing:[Jt,Sn],blur:["none","",Cn,K],brightness:I(),borderColor:[e],borderRadius:["n
130one","","full",Cn,K],borderSpacing:F(),borderWidth:W(),contrast:I(),grayscale:R(),hueRotate:I(),invert:R(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[MC,Sn],inset:V(),margin:V(),opacity:I(),padding:F(),saturate:I(),scale:I(),sepia:R(),skew:I(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[Cn]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),K]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ki,K]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ki,K]}],"grid-cols":[{"grid-cols":[Gi]}],"col-start-end":[{col:["auto",{span:["full",Ki,K]},K]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Gi]}],"row-start-end":[{row:["auto",{span:[Ki,K]},K]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[Cn]},Cn]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Cn,Sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ql]}],"font-family":[{font:[Gi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",si,Ql]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jt,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Jt,Sn]}],"underline-offset":[{"underline-offset":["auto",Jt,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),OC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",LC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},FC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
vendor: 4,231 bytes, line 130
130],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:$()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Jt,K]}],"outline-w":[{outline:[Jt,Sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Jt,Sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Cn,_C]}],"shadow-color":[{shadow:[Gi]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Cn,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ki,K]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",
vendor: 4,871 bytes, line 130
130K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Jt,Sn,Ql]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},UC=TC($C);function Ue(...e){return UC(Vv(e))}const WC=JS,Qv=b.forwardRef(({className:e,...t},n)=>g.jsx(Mv,{ref:n,className:Ue("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Qv.displayName=Mv.displayName;const HC=zv("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Xv=b.forwardRef(({className:e,variant:t,...n},r)=>g.jsx(Dv,{ref:r,className:Ue(HC({variant:t}),e),...n}));Xv.displayName=Dv.displayName;const KC=b.forwardRef(({className:e,...t},n)=>
130g.jsx(Iv,{ref:n,className:Ue("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));KC.displayName=Iv.displayName;const qv=b.forwardRef(({className:e,...t},n)=>g.jsx(Fv,{ref:n,className:Ue("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:g.jsx(Uv,{className:"h-4 w-4"})}));qv.displayName=Fv.displayName;const Zv=b.forwardRef(({className:e,...t},n)=>g.jsx(Lv,{ref:n,className:Ue("text-sm font-semibold",e),...t}));Zv.displayName=Lv.displayName;const Jv=b.forwardRef(({className:e,...t},n)=>g.jsx(Ov,{ref:n,className:Ue("text-sm opacity-90",e),...t}));Jv.displayName=Ov.displayName;function GC(){const{toasts:e}=uS();return g.jsxs(WC,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return g.jsxs(Xv,{...s,children:[g.jsxs("div",{className:"grid gap-1",children:[n&&g.jsx(Zv,{children:n}),r&&g.jsx(Jv,{children:r})]}),i,g.jsx(qv,{})]},t)}),g.jsx(Qv,{})]})}var tp=["light","dark"],YC="(prefers-color-scheme: dark)",QC=b.createContext(void 0),XC={setTheme:e=>{},themes:[]},qC=()=>{var e;return(e=b.useContext(QC))!=null?e:XC};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=i?tp.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(x,y=!1,w=!0)=>{let h=o?o[x]:x,p=y?x+"|| ''":`'${h}'`,v="";return i&&w&&!y&&tp.includes(x)&&(v+=`d.style.colorScheme = '${x}';`),n==="class"?y||h?v+=`c.add(${p})`:v+="null":h&&(v+=`d[s](n,${p})`),v},m=e?`!function(){${c}${d(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${YC}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}${u?"":"else{"+d(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}else{${d(s,!1,!1)};}${f}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var ZC=e=>{switch(e){case"success":return tT;case"info":return rT;case"warning":return nT;case"error":return iT;default:return null}},JC=Array(12).fill(0),eT=({visible:e})=>M.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},M.createElement("div",{className:"sonner-spinner"},JC.map((t,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),tT=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),nT=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),rT=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),iT=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),sT=()=>
130{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},cc=1,oT=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:cc++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
130this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(async s=>{if(lT(s)&&!s.ok){i=!1;let o=typeof t.error=="function"?await t.error(`HTTP error! status: ${s.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${s.status}`):t.description;this.create({id:n,type:"error",message:o,description:a})}else if(t.success!==void 0){i=!1;let o=typeof t.success=="function"?await t.success(s):t.success,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"success",message:o,description:a})}}).catch(async s=>{if(t.error!==void 0){i=!1;let o=typeof t.error=="function"?await t.error(s):t.error,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"error",message:o,description:a})}}).finally(()=>{var s;i&&(this.dismiss(n),n=void 0),(s=t.finally)==null||s.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||cc++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},rt=new oT,aT=(e,t)=>{let n=(t==null?void 0:t.id)||cc++;return rt.addToast({title:e,...t,id:n}),n},lT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",uT=aT,cT=()=>rt.toasts;Object.assign(uT,{success:rt.success,info:rt.info,warning:rt.warning,error:rt.error,custom:rt.custom,message:rt.message,promise:rt.promise,dismiss:rt.dismiss,loading:rt.loading},{getHistory:cT});function dT(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}dT(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
130left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
130:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
131`);function Ao(e){return e.label!==void 0}var fT=3,hT="32px",pT=4e3,mT=356,gT=14,yT=20,vT=200;function xT(...e){return e.filter(Boolean).join(" ")}var wT=e=>{var t,n,r,i,s,o,a,l,u,c;let{invert:f,toast:d,unstyled:m,interacting:x,setHeights:y,visibleToasts:w,heights:h,index:p,toasts:v,expanded:S,removeToast:C,defaultRichColors:T,closeButton:k,style:E,cancelButtonStyle:D,actionButtonStyle:j,className:V="",descriptionClassName:F="",duration:W,position:L,gap:Y,loadingIcon:$,expandByDefault:z,classNames:P,icons:R,closeButtonAriaLabel:_="Close toast",pauseWhenPageIsHidden:I,cn:B}=e,[X,ue]=M.useState(!1),[tt,J]=M.useState(!1),[St,gn]=M.useState(!1),[yn,vn]=M.useState(!1),[ro,jr]=M.useState(0),[ir,Fi]=M.useState(0),io=M.useRef(null),xn=M.useRef(null),pl=p===0,ml=p+1<=w,Pe=d.type,Mr=d.dismissible!==!1,Tw=d.className||"",Ew=d.descriptionClassName||"",so=M.useMemo(()=>h.findIndex(H=>H.toastId===d.id)||0,[h,d.id]),Pw=M.useMemo(()=>{var H;return(H=d.closeButton)!=null?H:k}
131,[d.closeButton,k]),Rf=M.useMemo(()=>d.duration||W||pT,[d.duration,W]),gl=M.useRef(0),Dr=M.useRef(0),jf=M.useRef(0),Lr=M.useRef(null),[Mf,kw]=L.split("-"),Df=M.useMemo(()=>h.reduce((H,re,te)=>te>=so?H:H+re.height,0),[h,so]),Lf=sT(),Aw=d.invert||f,yl=Pe==="loading";Dr.current=M.useMemo(()=>so*Y+Df,[so,Df]),M.useEffect(()=>{ue(!0)},[]),M.useLayoutEffect(()=>{if(!X)return;let H=xn.current,re=H.style.height;H.style.height="auto";let te=H.getBoundingClientRect().height;H.style.height=re,Fi(te),y(Ft=>Ft.find(_t=>_t.toastId===d.id)?Ft.map(_t=>_t.toastId===d.id?{..._t,height:te}:_t):[{toastId:d.id,height:te,position:d.position},...Ft])},[X,d.title,d.description,y,d.id]);let wn=M.useCallback(()=>{J(!0),jr(Dr.current),y(H=>H.filter(re=>re.toastId!==d.id)),setTimeout(()=>{C(d)},vT)},[d,C,y,Dr]);M.useEffect(()=>{if(d.promise&&Pe==="loading"||d.duration===1/0||d.type==="loading")return;let H,re=Rf;return S||x||I&&Lf?(()=>{if(jf.current<gl.current){let te=new Date().getTime()-gl.current;re=re-te}jf.current=new Date().getTime()})():re!==1/0&&(gl.current=new Date().getTime(),H=setTimeout(()=>{var te;(te=d.onAutoClose)==null||te.call(d,d),wn()},re)),()=>clearTimeout(H)},[S,x,z,d,Rf,wn,d.promise,Pe,I,Lf]),M.useEffect(()=>{let H=xn.current;if(H){let re=H.getBoundingClientRect().height;return Fi(re),y(te=>[{toastId:d.id,height:re,position:d.position},...te]),()=>y(te=>te.filter(Ft=>Ft.toastId!==d.id))}},[y,d.id]),M.useEffect(()=>{d.delete&&wn()},[wn,d.delete]);function Nw(){return R!=null&&R.loading?M.createElement("div",{className:"sonner-loader","data-visible":Pe==="loading"},R.loading):$?M.createElement("div",{className:"sonner-loader","data-visible":Pe==="loading"},$):M.createElement(eT,{visible:Pe==="loading"})}return M.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:xn,className:B(V,Tw,P==null?void 0:P.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[Pe],(n=d==null?void 0:d.classNames)==null?void 0:n[Pe]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:T,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":X,"data-promise":!!d.promise,"data-removed":tt,"data-visible":ml,"data-y-position":Mf,"data-x-position":kw,"data-index":p,"data-front":pl,"data-swiping":St,"data-dismissible":Mr,"data-type":Pe,"data-invert":Aw,"data-swipe-out":yn,"data-expanded":!!(S||z&&X),style:{"--index":p,"--toasts-before":p,"--z-index":v.length-p,"--offset":`${tt?ro:Dr.current}px`,"--initial-height":z?"auto":`${ir}px`,...E,...d.style},onPointerDown:H=>{yl||!Mr||(io.current=new Date,jr(Dr.current),H.target.setPointerCapture(H.pointerId),H.target.tagName!=="BUTTON"&&(gn(!0),Lr.current={x:H.clientX,y:H.clientY}))},onPointerUp:()=>{var H,re,te,Ft;if(yn||!Mr)return;Lr.current=null;let _t=Number(((H=xn.current)==null?void 0:H.style.getPropertyValue("--swipe-amount").replace("px",""))||0),oo=new Date().getTime()-((re=io.current)==null?void 0:re.getTime()),Rw=Math.abs(_t)/oo;if(Math.abs(_t)>=yT||Rw>.11){jr(Dr.current),(te=d.onDismiss)==null||te.call(d,d),wn(),vn(!0);return}(Ft=xn.current)==null||Ft.style.setProperty("--swipe-amount","0px"),gn(!1)},onPointerMove:H=>{var re;if(!Lr.current||!Mr)return;let te=H.clientY-Lr.current.y,Ft=H.clientX-Lr.current.x,_t=(Mf==="top"?Math.min:Math.max)(0,te),oo=H.pointerType==="touch"?10:2;Math.abs(_t)>oo?(re=xn.current)==null||re.style.setProperty("--swipe-amount",`${te}px`):Math.abs(Ft)>oo&&(Lr.current=null)}},Pw&&!d.jsx?M.createElement("button",{"aria-label":_,"data-disabled":yl,"data-close-button":!0,onClick:yl||!Mr?()=>{}:()=>{var H;wn(),(H=d.onDismiss)==null||H.call(d,d)},className:B(P==null?void 0:P.closeButton,(i=d==null?void 0:d.classNames)==null?void 0:i.closeButton)},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||M.isValidElement(d.title)?d.jsx||d.title:M.createElement(M.Fragment,null,Pe||d.icon||d.promise?M.createElement("div",{"data-icon":"",className:B(P==null?void 0:P.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Nw():null,d.type!=="loading"?d.icon||(
131R==null?void 0:R[Pe])||ZC(Pe):null):null,M.createElement("div",{"data-content":"",className:B(P==null?void 0:P.content,(o=d==null?void 0:d.classNames)==null?void 0:o.content)},M.createElement("div",{"data-title":"",className:B(P==null?void 0:P.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},d.title),d.description?M.createElement("div",{"data-description":"",className:B(F,Ew,P==null?void 0:P.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},d.description):null),M.isValidElement(d.cancel)?d.cancel:d.cancel&&Ao(d.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||D,onClick:H=>{var re,te;Ao(d.cancel)&&Mr&&((te=(re=d.cancel).onClick)==null||te.call(re,H),wn())},className:B(P==null?void 0:P.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,M.isValidElement(d.action)?d.action:d.action&&Ao(d.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||j,onClick:H=>{var re,te;Ao(d.action)&&(H.defaultPrevented||((te=(re=d.action).onClick)==null||te.call(re,H),wn()))},className:B(P==null?void 0:P.actionButton,(c=d==null?void 0:d.classNames)==null?void 0:c.actionButton)},d.action.label):null))};function np(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var bT=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:s,className:o,offset:a,theme:l="light",richColors:u,duration:c,style:f,visibleToasts:d=fT,toastOptions:m,dir:x=np(),gap:y=gT,loadingIcon:w,icons:h,containerAriaLabel:p="Notifications",pauseWhenPageIsHidden:v,cn:S=xT}=e,[C,T]=M.useState([]),k=M.useMemo(()=>Array.from(new Set([n].concat(C.filter(I=>I.position).map(I=>I.position)))),[C,n]),[E,D]=M.useState([]),[j,V]=M.useState(!1),[F,W]=M.useState(!1),[L,Y]=M.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=M.useRef(null),z=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=M.useRef(null),R=M.useRef(!1),_=M.useCallback(I=>{var B;(B=C.find(X=>X.id===I.id))!=null&&B.delete||rt.dismiss(I.id),T(X=>X.filter(({id:ue})=>ue!==I.id))},[C]);return M.useEffect(()=>rt.subscribe(I=>{if(I.dismiss){T(B=>B.map(X=>X.id===I.id?{...X,delete:!0}:X));return}setTimeout(()=>{uv.flushSync(()=>{T(B=>{let X=B.findIndex(ue=>ue.id===I.id);return X!==-1?[...B.slice(0,X),{...B[X],...I},...B.slice(X+1)]:[I,...B]})})})}),[]),M.useEffect(()=>{if(l!=="system"){Y(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:I})=>{Y(I?"dark":"light")})},[l]),M.useEffect(()=>{C.length<=1&&V(!1)},[C]),M.useEffect(()=>{let I=B=>{var X,ue;r.every(tt=>B[tt]||B.code===tt)&&(V(!0),(X=$.current)==null||X.focus()),B.code==="Escape"&&(document.activeElement===$.current||(ue=$.current)!=null&&ue.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[r]),M.useEffect(()=>{if($.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,R.current=!1)}},[$.current]),C.length?M.createElement("section",{"aria-label":`${p} ${z}`,tabIndex:-1},k.map((I,B)=>{var X;let[ue,tt]=I.split("-");return M.createElement("ol",{key:I,dir:x==="auto"?np():x,tabIndex:-1,ref:$,className:o,"data-sonner-toaster":!0,"data-theme":L,"data-y-position":ue,"data-x-position":tt,style:{"--front-toast-height":`${((X=E[0])==null?void 0:X.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||hT,"--width":`${mT}px`,"--gap":`${y}px`,...f},onBlur:J=>{R.current&&!J.currentTarget.contains(J.relatedTarget)&&(R.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||R.current||(R.current=!0,P.current=J.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{F||V(!1)},onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},C.filter(J=>!J.position&&B===0||J.position===I).map((J,St)=>{var gn,yn;return M.createElement(wT,{key:J.id,icons:h,index:St,toast:J,defaultRichColors:u,duration:(gn=m==null?void 0:m.duration)!=null?gn:c,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:t,visibleToasts:d,closeButton:(yn=m==null?void 0:m.closeButton)!=null?yn:s,interacting:F,position:I,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:_,toasts:C.filter(vn=>vn.position==J.position),heights:E.filter(vn=>vn.position==J.position),setHeights:D,expandByDefault:i,gap:y,loadingIcon:w,exp
vendor: 6,889 bytes, line 131
131anded:j,pauseWhenPageIsHidden:v,cn:S})}))})):null};const ST=({...e})=>{const{theme:t="system"}=qC();return g.jsx(bT,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},CT=["top","right","bottom","left"],Yn=Math.min,st=Math.max,Ca=Math.round,No=Math.floor,Qn=e=>({x:e,y:e}),TT={left:"right",right:"left",bottom:"top",top:"bottom"},ET={start:"end",end:"start"};function dc(e,t,n){return st(e,Yn(t,n))}function dn(e,t){return typeof e=="function"?e(t):e}function fn(e){return e.split("-")[0]}function Mi(e){return e.split("-")[1]}function Bd(e){return e==="x"?"y":"x"}function $d(e){return e==="y"?"height":"width"}function Xn(e){return["top","bottom"].includes(fn(e))?"y":"x"}function Ud(e){return Bd(Xn(e))}function PT(e,t,n){n===void 0&&(n=!1);const r=Mi(e),i=Ud(e),s=$d(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Ta(o)),[o,Ta(o)]}function kT(e){const t=Ta(e);return[fc(e),t,fc(t)]}function fc(e){return e.replace(/start|end/g,t=>ET[t])}function AT(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function NT(e,t,n,r){const i=Mi(e);let s=AT(fn(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(fc)))),s}function Ta(e){return e.replace(/left|right|bottom|top/g,t=>TT[t])}function RT(e){return{top:0,right:0,bottom:0,left:0,...e}}function e0(e){return typeof e!="number"?RT(e):{top:e,right:e,bottom:e,left:e}}function Ea(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function rp(e,t,n){let{reference:r,floating:i}=e;const s=Xn(t),o=Ud(t),a=$d(o),l=fn(t),u=s==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-i.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Mi(t)){case"start":m[o]-=d*(n&&u?-1:1);break;case"end":m[o]+=d*(n&&u?-1:1);break}return m}const jT=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=rp(u,r,l),d=r,m={},x=0;for(let y=0;y<a.length;y++){const{name:w,fn:h}=a[y],{x:p,y:v,data:S,reset:C}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});c=p??c,f=v??f,m={...m,[w]:{...m[w],...S}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:c,y:f}=rp(u,d,l)),y=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:m}};async function Ds(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=dn(t,e),x=e0(m),w=a[d?f==="floating"?"reference":"floating":f],h=Ea(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},C=Ea(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:v,strategy:l}):p);return{top:(h.top-C.top+x.top)/S.y,bottom:(C.bottom-h.bottom+x.bottom)/S.y,left:(h.left-C.left+x.left)/S.x,right:(C.right-h.right+x.right)/S.x}}const MT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=dn(e,t)||{};if(u==null)return{};const f=e0(c),d={x:n,y:r},m=Ud(i),x=$d(m),y=await o.getDimensions(u),w=m==="y",h=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=s.reference[x]+s.reference[m]-d[m]-s.floating[x],C=d[m]-s.reference[m],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=T?T[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(T)))&&(k=a.floating[v]||s.floating[x]);const E=S/2-C/2,D=k/2-y[x]/2-1,j=Yn(f[h],D),V=Yn(f[p],D),F=j,W=k-y[x]-V,L=k/2-y[x]/2+E,Y=dc(F,L,W),$=!l.arrow&&Mi(i)!=null&&L!==Y&&s.reference[x]/2-(L<F?j:V)-y[x]/2<0,z=$?L<F?L-F:L-W:0;return{[m]:d[m]+z,data:{[m]:Y,centerOffset:L-Y-z,...$&&{alignmentOffset:z}},reset:$}}}),DT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...w}=dn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=fn(i),p=Xn(a),v=fn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(v||!y?[Ta(a)]:kT(a)),T=x!=="none";!d&&T&&C.push(...NT(a,y,x,S));const k=[a,...C],E=await Ds(t,w),D=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&D.push(E[h]),f){const L=PT(i,o,S);D.push(E[L[0]],E[L[1]])}if(j=[...j,{placement:i,overflows:D}],!D.every(L=>L<=0)){var V,F;const L=(((V=s.flip)==null?void 0:V.index)||0)+1,Y=k[L];if(Y)return{data:{index:L,overflows:j},reset:{placement:Y}};let $=(F=j.filter(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:F.placement;if(!$)switch(m){case"bestFit":{var W;const z=(W=j.filter(P=>{if(T){const R=Xn(P.placement);return R===p||R==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(R=>R>0).reduce((R,_)=>R+_,0)]).sort((P,R)=>P[1]-R[1])[0])==null?void 0:W[0];z&&($=z);break}case"initialPlacement":$=a;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function ip(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sp(e){return CT.some(t=>e[t]>=0)}const LT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=dn(e,t);switch(r){case"referenceHidden":{const s=await Ds(t,{...i,elementContext:"reference"}
vendor: 5,406 bytes, line 131
131),o=ip(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:sp(o)}}}case"escaped":{const s=await Ds(t,{...i,altBoundary:!0}),o=ip(s,n.floating);return{data:{escapedOffsets:o,escaped:sp(o)}}}default:return{}}}}};async function OT(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fn(n),a=Mi(n),l=Xn(n)==="y",u=["left","top"].includes(o)?-1:1,c=s&&l?-1:1,f=dn(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof x=="number"&&(m=a==="end"?x*-1:x),l?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const IT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await OT(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},FT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x:h,y:p}=w;return{x:h,y:p}}},...l}=dn(e,t),u={x:n,y:r},c=await Ds(t,l),f=Xn(fn(i)),d=Bd(f);let m=u[d],x=u[f];if(s){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",p=m+c[w],v=m-c[h];m=dc(p,m,v)}if(o){const w=f==="y"?"top":"left",h=f==="y"?"bottom":"right",p=x+c[w],v=x-c[h];x=dc(p,x,v)}const y=a.fn({...t,[d]:m,[f]:x});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[d]:s,[f]:o}}}}}},_T=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=dn(e,t),c={x:n,y:r},f=Xn(i),d=Bd(f);let m=c[d],x=c[f];const y=dn(a,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const v=d==="y"?"height":"width",S=s.reference[d]-s.floating[v]+w.mainAxis,C=s.reference[d]+s.reference[v]-w.mainAxis;m<S?m=S:m>C&&(m=C)}if(u){var h,p;const v=d==="y"?"width":"height",S=["top","left"].includes(fn(i)),C=s.reference[f]-s.floating[v]+(S&&((h=o.offset)==null?void 0:h[f])||0)+(S?0:w.crossAxis),T=s.reference[f]+s.reference[v]+(S?0:((p=o.offset)==null?void 0:p[f])||0)-(S?w.crossAxis:0);x<C?x=C:x>T&&(x=T)}return{[d]:m,[f]:x}}}},VT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...u}=dn(e,t),c=await Ds(t,u),f=fn(i),d=Mi(i),m=Xn(i)==="y",{width:x,height:y}=s.floating;let w,h;f==="top"||f==="bottom"?(w=f,h=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=f,w=d==="end"?"top":"bottom");const p=y-c.top-c.bottom,v=x-c.left-c.right,S=Yn(y-c[w],p),C=Yn(x-c[h],v),T=!t.middlewareData.shift;let k=S,E=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=p),T&&!d){const j=st(c.left,0),V=st(c.right,0),F=st(c.top,0),W=st(c.bottom,0);m?E=x-2*(j!==0||V!==0?j+V:st(c.left,c.right)):k=y-2*(F!==0||W!==0?F+W:st(c.top,c.bottom))}await l({...t,availableWidth:E,availableHeight:k});const D=await o.getDimensions(a.floating);return x!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function Di(e){return t0(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(t0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function t0(e){return tl()?e instanceof Node||e instanceof lt(e).Node:!1}function Ot(e){return tl()?e instanceof Element||e instanceof lt(e).Element:!1}function qt(e){return tl()?e instanceof HTMLElement||e instanceof lt(e).HTMLElement:!1}function op(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}function Zs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function zT(e){return["table","td","th"].includes(Di(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wd(e){const t=Hd(),n=Ot(e)?It(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function BT(e){let t=qn(e);for(;qt(t)&&!Ti(t);){if(Wd(t))return t;if(nl(t))return null;t=qn(t)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ti(e){return["html","body","#document"].includes(Di(e))}function It(e){return lt(e).getComputedStyle(e)}function rl(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(Di(e)==="html")return e;const t=e.assignedSlot||e.parentNode||op(e)&&e.host||Zt(e);return op(t)?t.host:t}function n0(e){const t=qn(e);return Ti(t)?e.ownerDocument?e.ownerDocument.body:e.body:qt(t)&&Zs(t)?t:n0(t)}function Ls(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=n0(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=lt(i);if(s){const a=hc(o);
vendor: 6,192 bytes, line 131
131return t.concat(o,o.visualViewport||[],Zs(i)?i:[],a&&n?Ls(a):[])}return t.concat(i,Ls(i,[],n))}function hc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function r0(e){const t=It(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=qt(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=Ca(n)!==s||Ca(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Kd(e){return Ot(e)?e:e.contextElement}function oi(e){const t=Kd(e);if(!qt(t))return Qn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=r0(t);let o=(s?Ca(n.width):n.width)/r,a=(s?Ca(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const $T=Qn(0);function i0(e){const t=lt(e);return!Hd()||!t.visualViewport?$T:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lt(e)?!1:t}function Ar(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Kd(e);let o=Qn(1);t&&(r?Ot(r)&&(o=oi(r)):o=oi(e));const a=UT(s,n,r)?i0(s):Qn(0);let l=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(s){const d=lt(s),m=r&&Ot(r)?lt(r):r;let x=d,y=hc(x);for(;y&&r&&m!==x;){const w=oi(y),h=y.getBoundingClientRect(),p=It(y),v=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*w.x,S=h.top+(y.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,f*=w.y,l+=v,u+=S,x=lt(y),y=hc(x)}}return Ea({width:c,height:f,x:l,y:u})}function WT(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Zt(r),a=t?nl(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Qn(1);const c=Qn(0),f=qt(r);if((f||!f&&!s)&&((Di(r)!=="body"||Zs(o))&&(l=rl(r)),qt(r))){const d=Ar(r);u=oi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function HT(e){return Array.from(e.getClientRects())}function pc(e,t){const n=rl(e).scrollLeft;return t?t.left+n:Ar(Zt(e)).left+n}function KT(e){const t=Zt(e),n=rl(e),r=e.ownerDocument.body,i=st(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=st(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+pc(e);const a=-n.scrollTop;return It(r).direction==="rtl"&&(o+=st(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function GT(e,t){const n=lt(e),r=Zt(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const u=Hd();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function YT(e,t){const n=Ar(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=qt(e)?oi(e):Qn(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:o,height:a,x:l,y:u}}function ap(e,t,n){let r;if(t==="viewport")r=GT(e,n);else if(t==="document")r=KT(Zt(e));else if(Ot(t))r=YT(t,n);else{const i=i0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ea(r)}function s0(e,t){const n=qn(e);return n===t||!Ot(n)||Ti(n)?!1:It(n).position==="fixed"||s0(n,t)}function QT(e,t){const n=t.get(e);if(n)return n;let r=Ls(e,[],!1).filter(a=>Ot(a)&&Di(a)!=="body"),i=null;const s=It(e).position==="fixed";let o=s?qn(e):e;for(;Ot(o)&&!Ti(o);){const a=It(o),l=Wd(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Zs(o)&&!l&&s0(e,o))?r=r.filter(c=>c!==o):i=a,o=qn(o)}return t.set(e,r),r}function XT(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?nl(t)?[]:QT(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const f=ap(t,c,i);return u.top=st(f.top,u.top),u.right=Yn(f.right,u.right),u.bottom=Yn(f.bottom,u.bottom),u.left=st(f.left,u.left),u},ap(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qT(e){const{width:t,height:n}=r0(e);return{width:t,height:n}}function ZT(e,t,n){const r=qt(t),i=Zt(t),s=n==="fixed",o=Ar(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Qn(0);if(r||!r&&!s)if((Di(t)!=="body"||Zs(i))&&(a=rl(t)),r){const m=Ar(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&(l.x=pc(i));let u=0,c=0;if(i&&!r&&!s){const m=i.getBoundingClientRect();c=m.top+a.scrollTop,u=m.left+a.scrollLeft-pc(i,m)}const f=o.left+a.scrollLeft-l.x-u,d=o.top+a.scrollTop-l.y-c;return{x:f,y:d,width:o.width,height:o.height}}function Xl(e){return It(e).position==="static"}function lp(e,t){if(!qt(e)||It(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zt(e)===n&&(n=n.ownerDocument.body),n}function o0(e,t){const n=lt(e);if(nl(e))return n;if(!qt(e)){let i=qn(e);for(;i&&!Ti(i);){if(Ot(i)&&!Xl(i))return i;i=qn(i)}return n}let r=lp(e,t);for(;r&&zT(r)&&Xl(r);)r=lp(r,t);return r&&Ti(r)&&Xl(r)&&!Wd(r)?n:r||BT(e)||n}const JT=async function(e){const t=this.getOffsetParent||o0,n=this.getDimensions,r=await n(e.floating);return{reference:ZT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function eE(e){return It(e).direction==="rtl"}const tE={convertOffsetParentRelativeRectToViewportRelativeRect:WT,getDocumentElement:Zt,getClippingRect:XT,getOffsetParent:o0,getElementRects:JT,getClientRects:HT,getDimensions:qT,getScale:oi,isElement:Ot,isRTL:eE};function nE(e,t){let n=null,r;const i=Zt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const m=No(c),x=No(i.clientWidth-(u+f)),y=No(i.clientHeight-(c+d)),w=No(u),p={rootMargin:-m+"px "+-x+"px "+-y+"px "+-w+"px",threshold:st(0,Yn(1,l))||1};let v=!0;function S(C){const T=C[0].intersectionRatio;if(T!==l){if(!v)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(S,{...p,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,p)}n.observe(e)}return o(!0),s}function rE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Kd(e),c=i||s?[...u?Ls(u):[],...Ls(t)]:[];
vendor: 10,212 bytes, line 131
131c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const f=u&&a?nE(u,n):null;let d=-1,m=null;o&&(m=new ResizeObserver(h=>{let[p]=h;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let x,y=l?Ar(e):null;l&&w();function w(){const h=Ar(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&n(),y=h,x=requestAnimationFrame(w)}return n(),()=>{var h;c.forEach(p=>{i&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),f==null||f(),(h=m)==null||h.disconnect(),m=null,l&&cancelAnimationFrame(x)}}const iE=IT,sE=FT,oE=DT,aE=VT,lE=LT,up=MT,uE=_T,cE=(e,t,n)=>{const r=new Map,i={platform:tE,...n},s={...i.platform,_c:r};return jT(e,t,{...i,platform:s})};var Yo=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Pa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Pa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Pa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function a0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cp(e,t){const n=a0(e);return Math.round(t*n)/n}function ql(e){const t=b.useRef(e);return Yo(()=>{t.current=e}),t}function dE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=b.useState(r);Pa(d,r)||m(r);const[x,y]=b.useState(null),[w,h]=b.useState(null),p=b.useCallback(P=>{P!==T.current&&(T.current=P,y(P))},[]),v=b.useCallback(P=>{P!==k.current&&(k.current=P,h(P))},[]),S=s||x,C=o||w,T=b.useRef(null),k=b.useRef(null),E=b.useRef(c),D=l!=null,j=ql(l),V=ql(i),F=ql(u),W=b.useCallback(()=>{if(!T.current||!k.current)return;const P={placement:t,strategy:n,middleware:d};V.current&&(P.platform=V.current),cE(T.current,k.current,P).then(R=>{const _={...R,isPositioned:F.current!==!1};L.current&&!Pa(E.current,_)&&(E.current=_,qs.flushSync(()=>{f(_)}))})},[d,t,n,V,F]);Yo(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const L=b.useRef(!1);Yo(()=>(L.current=!0,()=>{L.current=!1}),[]),Yo(()=>{if(S&&(T.current=S),C&&(k.current=C),S&&C){if(j.current)return j.current(S,C,W);W()}},[S,C,W,j,D]);const Y=b.useMemo(()=>({reference:T,floating:k,setReference:p,setFloating:v}),[p,v]),$=b.useMemo(()=>({reference:S,floating:C}),[S,C]),z=b.useMemo(()=>{const P={position:n,left:0,top:0};if(!$.floating)return P;const R=cp($.floating,c.x),_=cp($.floating,c.y);return a?{...P,transform:"translate("+R+"px, "+_+"px)",...a0($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:_}},[n,a,$.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:W,refs:Y,elements:$,floatingStyles:z}),[c,W,Y,$,z])}const fE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?up({element:r.current,padding:i}).fn(n):{}:r?up({element:r,padding:i}).fn(n):{}}}},hE=(e,t)=>({...iE(e),options:[e,t]}),pE=(e,t)=>({...sE(e),options:[e,t]}),mE=(e,t)=>({...uE(e),options:[e,t]}),gE=(e,t)=>({...oE(e),options:[e,t]}),yE=(e,t)=>({...aE(e),options:[e,t]}),vE=(e,t)=>({...lE(e),options:[e,t]}),xE=(e,t)=>({...fE(e),options:[e,t]});var wE="Arrow",l0=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return g.jsx(Je.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});l0.displayName=wE;var bE=l0;function SE(e,t=[]){let n=[];function r(s,o){const a=b.createContext(o),l=n.length;n=[...n,o];function u(f){const{scope:d,children:m,...x}=f,y=(d==null?void 0:d[e][l])||a,w=b.useMemo(()=>x,Object.values(x));return g.jsx(y.Provider,{value:w,children:m})}function c(f,d){const m=(d==null?void 0:d[e][l])||a,x=b.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,c]}const i=()=>{const s=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,CE(i,...t)]}function CE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function TE(e){const[t,n]=b.useState(void 0);return kr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var u0="Popper",[c0,d0]=SE(u0),[qR,f0]=c0(u0),h0="PopperAnchor",p0=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=f0(h0,n),o=b.useRef(null),a=Lt(t,o);return b.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:g.jsx(Je.div,{...i,ref:a})});p0.displayName=h0;var Gd="PopperContent",[EE,PE]=c0(Gd),m0=b.forwardRef((e,t)=>{var St,gn,yn,vn,ro,jr;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:x,...y}=e,w=f0(Gd,n),[h,p]=b.useState(null),v=Lt(t,ir=>p(ir)),[S,C]=b.useState(null),T=TE(S),k=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,D=r+(s!=="center"?"-"+s:""),j=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},V=Array.isArray(u)?u:[u],F=V.length>0,W={padding:j,boundary:V.filter(AE),altBoundary:F},{refs:L,floatingStyles:Y,placement:$,isPositioned:z,middlewareData:P}=dE({strategy:"fixed",placement:D,whileElementsMounted:(...ir)=>rE(...ir,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[hE({mainAxis:i+E,alignmentAxis:o}),l&&pE({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?mE():void 0,...W}),l&&gE({...W}),yE({...W,apply:({elements:ir,rects:Fi,availableWidth:io,availableHeight:xn})=>{const{width:pl,height:ml}=Fi.reference,Pe=ir.floating.style;Pe.setProperty("--radix-popper-available-width",`${io}px`),Pe.setProperty("--radix-popper-available-height",`${xn}px`),Pe.setProperty("--radix-popper-anchor-width",`${pl}px`),Pe.setProperty("--radix-popper-anchor-height",`${ml}px`)}}),S&&xE({element:S,padding:a}),NE({arrowWidth:k,arrowHeight:E}),d&&vE({strategy:"referenceHidden",...W})]}),[R,_]=v0($),I=Xt(x);kr(()=>{z&&(I==null||I())},[z,I]);const B=(St=P.arrow)==null?void 0:St.x,X=(gn=P.arrow)==null?void 0:gn.y,ue=((yn=P.arrow)==null?void 0:yn.centerOffset)!==0,[tt,J]=b.useState();return kr(()=>{h&&J(window.getComputedStyle(h).zIndex)},[h]),g.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tt,"--radix-popper-transform-origin":[(vn=P.transformOrigin)==null?void 0:vn.x,(ro=P.transformOrigin)==null?void 0:ro.y].join(" "),...((jr=P.hide)==null?void 0:jr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(EE,{scope:n,placedSide:R,onArrowChange:C,arrowX:B,arrowY:X,shouldHideArrow:ue,children:g.jsx(Je.div,{"data-side":R,"data-align":_,...y,ref:v,style:{...y.style,animation:z?void 0:"none"}})})})});m0.displayName=Gd;var g0="PopperArrow",kE={top:"bottom",right:"left",bottom:"top",left:"right"},y0=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=PE(g0,r),o=kE[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(bE,{...i,ref:n,style:{...i.style,display:"block"}})})});y0.displayName=g0;function AE(e){return e!==null}var NE=e=>({name:"transformOrigin",options:e,fn(t){var w,h,p;const{placement:n,rects:r,middlewareData:i}=t,o=((w=i.arrow)==null?void 0:w.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,c]=v0(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((h=i.arrow)==null?void 0:h.x)??0)+a/2,m=(((p=i.arrow)==null?void 0:p.y)??0)+l/2;let x="",y="";return u==="bottom"?(x=o?f:`${d}px`,y=`${-l}px`):u==="top"?(x=o?f:`${d}px`,y=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,y=o?f:`${m}px`):u==="left"&&(x=`${r.floating.width+l}px`,y=o?f:`${m}px`),{data:{x,y}}}});function v0(e){const[t,n="center"]=e.split("-");return[t,n]}var RE=p0,jE=m0,ME=y0,[il,ZR]=hv("Tooltip",[d0]),Yd=d0(),x0="TooltipProvider",DE=700,dp="tooltip.open",[LE,w0]=il(x0),b0=e=>{const{__scopeTooltip:t,delayDuration:n=DE,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=b.useState(!0),l=b.useRef(!1),u=b.useRef(0);return b.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),g.jsx(LE,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:b.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:b.useCallback(c=>{l.current=c}
vendor: 5,318 bytes, line 131
131,[]),disableHoverableContent:i,children:s})};b0.displayName=x0;var S0="Tooltip",[JR,sl]=il(S0),mc="TooltipTrigger",OE=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=sl(mc,n),s=w0(mc,n),o=Yd(n),a=b.useRef(null),l=Lt(t,a,i.onTriggerChange),u=b.useRef(!1),c=b.useRef(!1),f=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),g.jsx(RE,{asChild:!0,...o,children:g.jsx(Je.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Se(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Se(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Se(e.onBlur,i.onClose),onClick:Se(e.onClick,i.onClose)})})});OE.displayName=mc;var IE="TooltipPortal",[ej,FE]=il(IE,{forceMount:void 0}),Ei="TooltipContent",C0=b.forwardRef((e,t)=>{const n=FE(Ei,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=sl(Ei,e.__scopeTooltip);return g.jsx(Id,{present:r||o.open,children:o.disableHoverableContent?g.jsx(T0,{side:i,...s,ref:t}):g.jsx(_E,{side:i,...s,ref:t})})}),_E=b.forwardRef((e,t)=>{const n=sl(Ei,e.__scopeTooltip),r=w0(Ei,e.__scopeTooltip),i=b.useRef(null),s=Lt(t,i),[o,a]=b.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=r,d=b.useCallback(()=>{a(null),f(!1)},[f]),m=b.useCallback((x,y)=>{const w=x.currentTarget,h={x:x.clientX,y:x.clientY},p=$E(h,w.getBoundingClientRect()),v=UE(h,p),S=WE(y.getBoundingClientRect()),C=KE([...v,...S]);a(C),f(!0)},[f]);return b.useEffect(()=>()=>d(),[d]),b.useEffect(()=>{if(l&&c){const x=w=>m(w,c),y=w=>m(w,l);return l.addEventListener("pointerleave",x),c.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",y)}}},[l,c,m,d]),b.useEffect(()=>{if(o){const x=y=>{const w=y.target,h={x:y.clientX,y:y.clientY},p=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),v=!HE(h,o);p?d():v&&(d(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,c,o,u,d]),g.jsx(T0,{...e,ref:s})}),[VE,zE]=il(S0,{isInside:!1}),T0=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=sl(Ei,n),u=Yd(n),{onClose:c}=l;return b.useEffect(()=>(document.addEventListener(dp,c),()=>document.removeEventListener(dp,c)),[c]),b.useEffect(()=>{if(l.trigger){const f=d=>{const m=d.target;m!=null&&m.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),g.jsx(Od,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:g.jsxs(jE,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(fv,{children:r}),g.jsx(VE,{scope:n,isInside:!0,children:g.jsx(OS,{id:l.contentId,role:"tooltip",children:i||r})})]})})});C0.displayName=Ei;var E0="TooltipArrow",BE=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Yd(n);return zE(E0,n).isInside?null:g.jsx(ME,{...i,...r,ref:t})});BE.displayName=E0;function $E(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function UE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function WE(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function HE(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,l=t[s].y,u=t[o].x,c=t[o].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(i=!i)}return i}function KE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),GE(t)}function GE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var YE=b0,P0=C0;const QE=YE,XE=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 23,326 bytes, line 131
131g.jsx(P0,{ref:r,sideOffset:t,className:Ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));XE.displayName=P0.displayName;var ol=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},al=typeof window>"u"||"Deno"in globalThis;function kt(){}function qE(e,t){return typeof e=="function"?e(t):e}function ZE(e){return typeof e=="number"&&e>=0&&e!==1/0}function JE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fp(e,t){return typeof e=="function"?e(t):e}function eP(e,t){return typeof e=="function"?e(t):e}function hp(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Qd(o,t.options))return!1}else if(!Is(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function pp(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Os(t.options.mutationKey)!==Os(s))return!1}else if(!Is(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Qd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Os)(e)}function Os(e){return JSON.stringify(e,(t,n)=>gc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Is(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Is(e[n],t[n])):!1}function k0(e,t){if(e===t)return e;const n=mp(e)&&mp(t);if(n||gc(e)&&gc(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{};let l=0;for(let u=0;u<o;u++){const c=n?u:s[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=k0(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return i===o&&l===i?e:a}return t}function mp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gc(e){if(!gp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!gp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gp(e){return Object.prototype.toString.call(e)==="[object Object]"}function tP(e){return new Promise(t=>{setTimeout(t,e)})}function nP(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?k0(e,t):t}function rP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function iP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xd=Symbol();function A0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var pr,Rn,li,$m,sP=($m=class extends ol{constructor(){super();Z(this,pr);Z(this,Rn);Z(this,li);G(this,li,t=>{if(!al&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,Rn)||this.setEventListener(A(this,li))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,Rn))==null||t.call(this),G(this,Rn,void 0))}setEventListener(t){var n;G(this,li,t),(n=A(this,Rn))==null||n.call(this),G(this,Rn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,pr)!==t&&(G(this,pr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,pr)=="boolean"?A(this,pr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},pr=new WeakMap,Rn=new WeakMap,li=new WeakMap,$m),N0=new sP,ui,jn,ci,Um,oP=(Um=class extends ol{constructor(){super();Z(this,ui,!0);Z(this,jn);Z(this,ci);G(this,ci,t=>{if(!al&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){A(this,jn)||this.setEventListener(A(this,ci))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,jn))==null||t.call(this),G(this,jn,void 0))}setEventListener(t){var n;G(this,ci,t),(n=A(this,jn))==null||n.call(this),G(this,jn,t(this.setOnline.bind(this)))}setOnline(t){A(this,ui)!==t&&(G(this,ui,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,ui)}},ui=new WeakMap,jn=new WeakMap,ci=new WeakMap,Um),ka=new oP;function aP(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function lP(e){return Math.min(1e3*2**e,3e4)}function R0(e){return(e??"online")==="online"?ka.isOnline():!0}var j0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Zl(e){return e instanceof j0}function M0(e){let t=!1,n=0,r=!1,i;const s=aP(),o=y=>{var w;r||(d(new j0(y)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>N0.isFocused()&&(e.networkMode==="always"||ka.isOnline())&&e.canRun(),c=()=>R0(e.networkMode)&&e.canRun(),f=y=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,y),i==null||i(),s.resolve(y))},d=y=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,y),i==null||i(),s.reject(y))},m=()=>new Promise(y=>{var w;i=h=>{(r||u())&&y(h)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),x=()=>{if(r)return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(h){y=Promise.reject(h)}Promise.resolve(y).then(f).catch(h=>{var T;if(r)return;const p=e.retry??(al?0:3),v=e.retryDelay??lP,S=typeof v=="function"?v(n,h):v,C=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,h);if(t||!C){d(h);return}n++,(T=e.onFail)==null||T.call(e,n,h),tP(S).then(()=>u()?void 0:m()).then(()=>{t?d(h):x()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?x():m().then(x),s)}}function uP(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var ze=uP(),mr,Wm,D0=(Wm=class{constructor(){Z(this,mr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ZE(this.gcTime)&&G(this,mr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(al?1/0:5*60*1e3))}clearGcTimeout(){A(this,mr)&&(clearTimeout(A(this,mr)),G(this,mr,void 0))}},mr=new WeakMap,Wm),di,fi,pt,Le,Ws,gr,At,en,Hm,cP=(Hm=class extends D0{constructor(t){super();Z(this,At);Z(this,di);Z(this,fi);Z(this,pt);Z(this,Le);Z(this,Ws);Z(this,gr);G(this,gr,!1),G(this,Ws,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,pt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,di,fP(this.options)),this.state=t.state??A(this,di),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,Le))==null?void 0:t.promise}setOptions(t){this.options={...A(this,Ws),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,pt).remove(this)}setData(t,n){const r=nP(this.state.data,t,this.options);return je(this,At,en).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){je(this,At,en).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=A(this,Le))==null?void 0:r.promise;return(i=A(this,Le))==null||i.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,di))}isActive(){return this.observers.some(t=>eP(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!JE(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,Le))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,Le))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,pt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,Le)&&(A(this,gr)?A(this,Le).cancel({revert:!0}):A(this,Le).cancelRetry()),this.scheduleGc()),A(this,pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,At,en).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,Le))return A(this,Le).continueRetry(),A(this,Le).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(G(this,gr,!0),r.signal)})},s=()=>{const f=A0(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return i(d),G(this,gr,!1),this.options.persister?this.options.persister(f,d,this):f(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),G(this,fi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&je(this,At,en).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const a=f=>{var d,m,x,y;Zl(f)&&f.silent||je(this,At,en).call(this,{type:"error",error:f}),Zl(f)||((m=(d=A(this,pt).config).onError)==null||m.call(d,f,this),(y=(x=A(this,pt).config).onSettled)==null||y.call(x,this.state.data,f,this)),this.scheduleGc()};return G(this,Le,M0({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,m,x,y;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){a(w);return}(m=(d=A(this,pt).config).onSuccess)==null||m.call(d,f,this),(y=(x=A(this,pt).config).onSettled)==null||y.call(x,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,d)=>{je(this,At,en).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{je(this,At,en).call(this,{type:"pause"})},onContinue:()=>{je(this,At,en).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),A(this,Le).start()}},di=new WeakMap,fi=new WeakMap,pt=new WeakMap,Le=new WeakMap,Ws=new WeakMap,gr=new WeakMap,At=new WeakSet,en=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dP(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Zl(i)&&i.revert&&A(this,fi)?{...A(this,fi),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ze.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,pt).notify({query:this,type:"updated",action:t})})},Hm);function dP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Bt,Km,hP=(Km=class extends ol{constructor(t={}){super();Z(this,Bt);this.config=t,G(this,Bt,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Qd(i,n);let o=this.get(s);return o||(o=new cP({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){A(this,Bt).has(t.queryHash)||(A(this,Bt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,Bt).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,Bt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,Bt).get(t)}getAll(){return[...A(this,Bt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>hp(t,r)):n}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Bt=new WeakMap,Km),$t,_e,yr,Ut,Tn,Gm,pP=(Gm=class extends D0{constructor(t){super();Z(this,Ut);Z(this,$t);Z(this,_e);Z(this,yr);this.mutationId=t.mutationId,G(this,_e,t.mutationCache),G(this,$t,[]),this.state=t.state||mP(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,$t).includes(t)||(A(this,$t).push(t),this.clearGcTimeout(),A(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,$t,A(this,$t).filter(n=>n!==t)),this.scheduleGc(),A(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,$t).length||(this.state.status==="pending"?this.scheduleGc():A(this,_e).remove(this))}continue(){var t;return((t=A(this,yr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,u,c,f,d,m,x,y,w,h,p,v,S,C,T,k;G(this,yr,M0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,D)=>{je(this,Ut,Tn).call(this,{type:"failed",failureCount:E,error:D})},onPause:()=>{je(this,Ut,Tn).call(this,{type:"pause"})},onContinue:()=>{je(this,Ut,Tn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,_e).canRun(this)}));const n=this.state.status==="pending",r=!A(this,yr).canStart();try{if(!n){je(this,Ut,Tn).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=A(this,_e).config).onMutate)==null?void 0:s.call(i,t,this));const D=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));D!==this.state.context&&je(this,Ut,Tn).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const E=await A(this,yr).start();return await((u=(l=A(this,_e).config).onSuccess)==null?void 0:u.call(l,E,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,E,t,this.state.context)),await((m=(d=A(this,_e).config).onSettled)==null?void 0:m.call(d,E,null,this.state.variables,this.state.context,this)),await((y=(x=this.options).onSettled)==null?void 0:y.call(x,E,null,t,this.state.context)),je(this,Ut,Tn).call(this,{type:"success",data:E}),E}catch(E){try{throw await((h=(w=A(this,_e).config).onError)==null?void 0:h.call(w,E,t,this.state.context,this)),await((v=(p=this.options).onError)==null?void 0:v.call(p,E,t,this.state.context)),await((C=(S=A(this,_e).config).onSettled)==null?void 0:C.call(S,void 0,E,this.state.variables,this.state.context,this)),await((k=(T=this.options).onSettled)==null?void 0:k.call(T,void 0,E,t,this.state.context)),E}finally{je(this,Ut,Tn).call(this,{type:"error",error:E})}}finally{A(this,_e).runNext(this)}}},$t=new WeakMap,_e=new WeakMap,yr=new WeakMap,Ut=new WeakSet,Tn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ze.batch(()=>{A(this,$t).forEach(r=>{r.onMutationUpdate(t)}),A(this,_e).notify({mutation:this,type:"updated",action:t})})},Gm);function mP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nt,Hs,Ym,gP=(Ym=class extends ol{constructor(t={}){super();Z(this,nt);Z(this,Hs);this.config=t,G(this,nt,new Map),G(this,Hs,Date.now())}build(t,n,r){const i=new pP({mutationCache:this,mutationId:++ao(this,Hs)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Ro(t),r=A(this,nt).get(n)??[];r.push(t),A(this,nt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ro(t);if(A(this,nt).has(n)){const i=(r=A(this,nt).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?A(this,nt).delete(n):A(this,nt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=A(this,nt).get(Ro(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=A(this,nt).get(Ro(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...A(this,nt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>pp(n,r))}findAll(t={}){return this.getAll().filter(n=>pp(t,n))}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},nt=new WeakMap,Hs=new WeakMap,Ym);function Ro(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function yp(e){return{onFetch:(t,n)=>{var c,f,d,m,x;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},h=A0(t.options,t.fetchOptions),p=async(v,S,C)=>{if(y)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const T={queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};w(T);const k=await h(T),{maxPages:E}=t.options,D=C?iP:rP;return{pages:D(v.pages,k,E),pageParams:D(v.pageParams,S,E)}};if(i&&s.length){const v=i==="backward",S=v?yP:vp,C={pages:s,pageParams:o},T=S(r,C);a=await p(C,T,v)}else{const v=e??s.length;do{const S=l===0?o[0]??r.initialPageParam:vp(r,a);if(l>0&&S==null)break;a=await p(a,S),l++}while(l<v)}return a};t.options.persister?t.fetchFn=()=>{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function vp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function yP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var pe,Mn,Dn,hi,pi,Ln,mi,gi,Qm,vP=(Qm=class{constructor(e={}){Z(this,pe);Z(this,Mn);Z(this,Dn);Z(this,hi);Z(this,pi);Z(this,Ln);Z(this,mi);Z(this,gi);G(this,pe,e.queryCache||new hP),G(this,Mn,e.mutationCache||new gP),G(this,Dn,e.defaultOptions||{}),G(this,hi,new Map),G(this,pi,new Map),G(this,Ln,0)}mount(){ao(this,Ln)._++,A(this,Ln)===1&&(G(this,mi,N0.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,pe).onFocus())})),G(this,gi,ka.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,pe).onOnline())})))}unmount(){var e,t;ao(this,Ln)._--,A(this,Ln)===0&&((e=A(this,mi))==null||e.call(this),G(this,mi,void 0),(t=A(this,gi))==null||t.call(this),G(this,gi,void 0))}isFetching(e){return A(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,Mn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=A(this,pe).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(fp(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return A(this,pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=A(this,pe).get(r.queryHash),s=i==null?void 0:i.state.data,o=qE(t,s);if(o!==void 0)return A(this,pe).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ze.batch(()=>A(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,pe);ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,pe),r={type:"active",...e};return ze.batch(()=>(n.findAll(e).forEach(i=>
131{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ze.batch(()=>A(this,pe).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e={},t={}){return ze.batch(()=>{if(A(this,pe).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ze.batch(()=>A(this,pe).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(kt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,pe).build(this,t);return n.isStaleByTime(fp(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=yp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=yp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ka.isOnline()?A(this,Mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,pe)}getMutationCache(){return A(this,Mn)}getDefaultOptions(){return A(this,Dn)}setDefaultOptions(e){G(this,Dn,e)}setQueryDefaults(e,t){A(this,hi).set(Os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,hi).values()];let n={};return t.forEach(r=>{Is(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){A(this,pi).set(Os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,pi).values()];let n={};return t.forEach(r=>{Is(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,Dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Xd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,Dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,pe).clear(),A(this,Mn).clear()}},pe=new WeakMap,Mn=new WeakMap,Dn=new WeakMap,hi=new WeakMap,pi=new WeakMap,Ln=new WeakMap,mi=new WeakMap,gi=new WeakMap,Qm),xP=b.createContext(void 0),wP=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(xP.Provider,{value:e,children:t}));/**
132 * @remix-run/router v1.20.0
133 *
134 * Copyright (c) Remix Software Inc.
135 *
136 * This source code is licensed under the MIT license found in the
137 * LICENSE.md file in the root directory of this source tree.
138 *
139 * @license MIT
140 */function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}var Fn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fn||(Fn={}));const xp="popstate";function bP(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return yc("",{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:O0(i)}return CP(t,n,null,e)}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function L0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SP(){return Math.random().toString(36).substr(2,8)}function wp(e,t){return{usr:e.state,key:e.key,idx:t}}function yc(e,t,n,r){return n===void 0&&(n=null),Aa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ll(t):t,{state:n,key:t&&t.key||r||SP()})}function O0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ll(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function CP(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Fn.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Aa({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){a=Fn.Pop;let w=c(),h=w==null?null:w-u;u=w,l&&l({action:a,location:y.location,delta:h})}function d(w,h){a=Fn.Push;let p=yc(y.location,w,h);u=c()+1;let v=wp(p,u),S=y.createHref(p);try{o.pushState(v,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}s&&l&&l({action:a,location:y.location,delta:1})}function m(w,h){a=Fn.Replace;let p=yc(y.location,w,h);u=c();let v=wp(p,u),S=y.createHref(p);o.replaceState(v,"",S),s&&l&&l({action:a,location:y.location,delta:0})}function x(w){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof w=="string"?w:O
vendor: 2,914 bytes, line 140
1400(w);return p=p.replace(/ $/,"%20"),Ze(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return a},get location(){return e(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(xp,f),l=w,()=>{i.removeEventListener(xp,f),l=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let h=x(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:m,go(w){return o.go(w)}};return y}var bp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bp||(bp={}));function TP(e,t,n){return n===void 0&&(n="/"),EP(e,t,n,!1)}function EP(e,t,n,r){let i=typeof t=="string"?ll(t):t,s=_0(i.pathname||"/",n);if(s==null)return null;let o=I0(e);PP(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=FP(s);a=OP(o[l],u,r)}return a}function I0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ze(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ai([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Ze(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),I0(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:DP(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of F0(s.path))i(s,o,l)}),t}function F0(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=F0(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function PP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:LP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kP=/^:[\w-]+$/,AP=3,NP=2,RP=1,jP=10,MP=-2,Sp=e=>e==="*";function DP(e,t){let n=e.split("/"),r=n.length;return n.some(Sp)&&(r+=MP),t&&(r+=NP),n.filter(i=>!Sp(i)).reduce((i,s)=>i+(kP.test(s)?AP:s===""?RP:jP),r)}function LP(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 OP(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",f=Cp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Cp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;
vendor: 4,131 bytes, lines 140-149
140Object.assign(i,f.params),o.push({params:i,pathname:ai([s,f.pathname]),pathnameBase:_P(ai([s,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(s=ai([s,f.pathnameBase]))}return o}function Cp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=IP(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((u,c,f)=>{let{paramName:d,isOptional:m}=c;if(d==="*"){let y=a[f]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const x=a[f];return m&&!x?u[d]=void 0:u[d]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function IP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),L0(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,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function FP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return L0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _0(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)||"/"}const ai=e=>e.join("/").replace(/\/\/+/g,"/"),_P=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function VP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const V0=["post","put","patch","delete"];new Set(V0);const zP=["get",...V0];new Set(zP);/**
141 * React Router v6.27.0
142 *
143 * Copyright (c) Remix Software Inc.
144 *
145 * This source code is licensed under the MIT license found in the
146 * LICENSE.md file in the root directory of this source tree.
147 *
148 * @license MIT
149 */function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(this,arguments)}const BP=b.createContext(null),$P=b.createContext(null),z0=b.createContext(null),ul=b.createContext(null),cl=b.createContext({outlet:null,matches:[],isDataRoute:!1}),B0=b.createContext(null);function qd(){return b.useContext(ul)!=null}function $0(){return qd()||Ze(!1),b.useContext(ul).location}function UP(e,t){return WP(e,t)}function WP(e,t,n,r){qd()||Ze(!1);let{navigator:i}=b.useContext(z0),{matches:s}=b.useContext(cl),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=$0(),c;if(t){var f;let w=typeof t=="string"?ll(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Ze(!1),c=w}else c=u;let d=c.pathname||"/",m=d;if(l!=="/"){let w=l.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=TP(e,{pathname:m}),y=QP(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:ai([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ai([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?b.createElement(ul.Provider,{value:{location:Na({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Fn.Pop}},y):y}function HP(){let e=JP(),t=VP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application 
149Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const KP=b.createElement(HP,null);class GP extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(cl.Provider,{value:this.props.routeContext},b.createElement(B0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YP(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(BP);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(cl.Provider,{value:t},r)}function QP(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||Ze(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let f=o[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:m}=n,x=f.route.loader&&d[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||x){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let m,x=!1,y=null,w=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,y=f.route.errorElement||KP,l&&(u<0&&d===0?(x=!0,w=null):u===d&&(x=!0,w=f.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,d+1)),p=()=>{let v;return m?v=y:x?v=w:f.route.Component?v=b.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=c,b.createElement(YP,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?b.createElement(GP,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var vc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vc||{});function XP(e){let t=b.useContext($P);return t||Ze(!1),t}function qP(e){let t=b.useContext(cl);return t||Ze(!1),t}function ZP(e){let t=qP(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}function JP(){var e;let t=b.useContext(B0),n=XP(vc.UseRouteError),r=ZP(vc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function xc(e){Ze(!1)}function ek(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Fn.Pop,navigator:s,static:o=!1,future:a}=e;qd()&&Ze(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:s,static:o,future:Na({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=ll(r));let{pathname:c="/",search:f="",hash:d="",state:m=null,key:x="default"}=r,y=b.useMemo(()=>{let w=_0(c,l);return w==null?null:{location:{pathname:w,search:f,hash:d,state:m,key:x},navigationType:i}},[l,c,f,d,m,x,i]);return y==null?null:b.createElement(z0.Provider,{value:u},b.createElement(ul.Provider,{children:n,value:y}))}function tk(e){let{children:t,location:n}=e;return UP(wc(t),n)}new Promise(()=>{});function wc(e,t){t===void 0&&(t=[]);let n=[];
149return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let s=[...t,i];if(r.type===b.Fragment){n.push.apply(n,wc(r.props.children,s));return}r.type!==xc&&Ze(!1),!r.props.index||!r.props.children||Ze(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=wc(r.props.children,s)),n.push(o)}),n}/**
150 * React Router DOM v6.27.0
151 *
152 * Copyright (c) Remix Software Inc.
153 *
154 * This source code is licensed under the MIT license found in the
155 * LICENSE.md file in the root directory of this source tree.
156 *
157 * @license MIT
158 */const nk="6";try{window.__reactRouterVersion=nk}catch{}const rk="startTransition",Tp=Gw[rk];function ik(e){let{basename:t,children:n,future:r,window:i}=e,s=b.useRef();s.current==null&&(s.current=bP({window:i,v5Compat:!0}));let o=s.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=b.useCallback(f=>{u&&Tp?Tp(()=>l(f)):l(f)},[l,u]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.createElement(ek,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var Ep;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ep||(Ep={}));var Pp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Pp||(Pp={}));const sk=[{phase:"Phase 1: Lay the Foundation",chapters:["1. Plan before you prompt","2. Map the User Journey Visually","3. Get the Design Right First"]},{phase:"Phase 2: Think in Systems",chapters:["4. Prompt by Component, Not Page","5. Design with Real Content","6. Speak Atomic: Buttons, Cards, Modals","7. Use Buzzwords to Dial In Aesthetic"]},{phase:"Phase 3: Build with Precision",chapters:["8. Use Clear Hierarchy in Prompts","9. Add visuals via URL","10. Use the Edit Button Strategically"]},{phase:"Phase 4: Iterate and Ship",chapters:["11. Build with Supabase in Mind","12. Version Control is your friend"]}],ok=({isMobileMenuOpen:e,setIsMobileMenuOpen:t})=>{const[n,r]=b.useState("1");b.useEffect(()=>{const s=o=>{r(o.detail.activeChapter)};return window.addEventListener("activeChapterChange",s),()=>{window.removeEventListener("activeChapterChange",s)}},[]);const i=s=>{r(s),t(!1);const o=document.getElementById(`chapter-${s}`);o&&o.scrollIntoView({behavior:"smooth"})};return g.jsxs(g.Fragment,{children:[e&&g.jsx("div",{className:"lg:hidden fixed inset-0 bg-black bg-opacity-50 z-30",onClick:()=>t(!1)}),g.jsxs("div",{className:`
159        fixed left-0 top-0 h-screen w-80 bg-[#F7F4ED] border-r border-gray-200 overflow-y-auto z-40 
160        transform transition-transform duration-300 ease-in-out
161        ${e?"translate-x-0":"-translate-x-full lg:translate-x-0"}
162      `,children:[g.jsx("button",{className:"lg:hidden absolute top-4 right-4 z-50 bg-white border border-gray-200 rounded-md p-2 shadow-sm",onClick:()=>t(!1),children:g.jsx(Uv,{size:20})}),g.jsxs("div",{className:"p-6",children:[g.jsx("div",{className:"mb-8",children:g.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[g.jsx("img",{alt:"Lovable Logo",width:"40",height:"40",className:"rounded-lg object-fill",src:"/lovable-uploads/c0362c64-257e-4de2-a8d2-2e74ce591d83.png"}),g.jsx("h1",{className:"text-xl font-medium text-gray-900",children:"Mastering Lovable"})]})}),g.jsx("nav",{className:"space-y-6",children:sk.map((s,o)=>g.jsxs("div",{children:[g.jsx("h3",{className:"text-xs font-medium text-gray-500 tracking-wider mb-3 uppercase",children:s.phase}),g.jsx("ul",{className:"space-y-1",children:s.chapters.map((a,l)=>{const u=a.split(".")[0],c=n===u;return g.jsx("li",{children:g.jsx("button",{onClick:()=>i(u),className:`w-full text-left px-3 py-2 rounded-md text-sm transition-colors ${c?"bg-gray-900 text-white [&]:!text-white":"text-gray-700 hover:bg-gray-200"}`,children:a})},l)})})]},o))})]})]}),!e&&g.jsx("button",{className:"lg:hidden fixed top-4 left-4 z-50 bg-[#F7F4ED] border border-gray-200 rounded-md p-2",onClick:()=>t(!0),children:g.jsx(oC,{size:20})})]})};function ak({className:e}){const[t,n]=b.useState(!0);return g.jsx("div",{className:Ue("flex w-16 h-8 p-1 rounded-full cursor-pointer transition-all duration-300",t?"bg-zinc-950 border border-zinc-800":"bg-white border border-zinc-200",e),onClick:()=>n(!t),role:"button",tabIndex:0,children:g.jsxs("div",{className:"flex justify-between items-center w-full",children:[g.jsx("div",{className:Ue("flex justify-center items-center w-6 h-6 rounded-full transition-transform duration-300",t?"transform translate-x-0 bg-zinc-800":"transform translate-x-8 bg-gray-200"),children:t?g.jsx(qh,{className:"w-4 h-4",strokeWidth:1.5,stroke:"white",fill:"none"}):g.jsx(Zh,{className:"w-4 h-4 text-gray-700",strokeWidth:1.5})}),g.jsx("div",{className:Ue("flex justify-center items-center w-6 h-6 rounded-full transition-transform duration-300",t?"bg-transparent":"transform -translate-x-8"),children:t?g.jsx(Zh,{className:"w-4 h-4",strokeWidth:1.5,stroke:"white",fill:"none"}):g.jsx(qh,{className:"w-4 h-4 text-black",strokeWidth:1.5})})]})})}const lk=zv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),U0=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?Ms:"button";return g.jsx(o,{className:Ue(lk({variant:t,size:n,className:e})),ref:s,...i})});U0.displayName="Button";const W0=b.createContext({});function uk(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Zd=typeof window<"u",ck=Zd?b.useLayoutEffect:b.useEffect,Jd=b.createContext(null);function ef(e,t){e.indexOf(t)===-1&&e.push(t)}function tf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const hn=(e,t,n)=>n>t?t:n<e?e:n;let Ra=()=>{};const pn={},H0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function K0(e){return typeof e=="object"&&e!==null}const G0=e=>/^0[^.\s]+$/u.test(e);function nf(e){let t;return()=>(t===void 0&&(t=e()),t)}const xt=e=>e,dk=(e,t)=>n=>t(e(n)),Js=(...e)=>e.reduce(dk),Fs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class rf{constructor(){this.subscriptions=[]}add(t){return ef(this.subscriptions,t),()=>tf(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 Gt=e=>e*1e3,Yt=e=>e/1e3;function Y0(e,t){return t?e*(1e3/t):0}const Q0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fk=1e-7,hk=12;function pk(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Q0(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>fk&&++a<hk);return o}function eo(e,t,n,r){if(e===t&&n===r)return xt;const i=s=>pk(s,0,1,e,n);return s=>s===0||s===1?s:Q0(i(s),t,r)}const X0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,q0=e=>t=>1-e(1-t),Z0=eo(.33,1.53,.69,.99),sf=q0(Z0),J0=X0(sf),ex=e=>(e*=2)<1?.5*sf(e):.5*(2-Math.pow(2,-10*(e-1))),of=e=>1-Math.sin(Math.acos(e)),tx=q0(of),nx=X0(of),mk=eo(.42,0,1,1),gk=eo(0,0,.58,1),rx=eo(.42,0,.58,1),yk=e=>Array.isArray(e)&&typeof e[0]!="number",ix=e=>Array.isArray(e)&&typeof e[0]=="number",kp={linear:xt,easeIn:mk,easeInOut:rx,easeOut:gk,circIn:of,circInOut:nx,circOut:tx,backIn:sf,backInOut:J0,backOut:Z0,anticipate:ex},vk=e=>typeof e=="string",Ap=e=>{if(ix(e)){Ra(e.length===4);const[t,n,r,i]=e;return eo(t,n,r,i)}else if(vk(e))return Ra(kp[e]!==void 0),kp[e];return e},jo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Np={value:null,addProjectionMetrics:null};function xk(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},l=0;
vendor: 21,000 bytes, line 162
162function u(f){o.has(f)&&(c.schedule(f),e()),l++,f(a)}const c={schedule:(f,d=!1,m=!1)=>{const y=m&&i?n:r;return d&&o.add(f),y.has(f)||y.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(u),t&&Np.value&&Np.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,c.process(f))}};return c}const wk=40;function sx(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=jo.reduce((v,S)=>(v[S]=xk(s,t?S:void 0),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:m,postRender:x}=o,y=()=>{const v=pn.useManualTiming?i.timestamp:performance.now();n=!1,pn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,wk),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),m.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:jo.reduce((v,S)=>{const C=o[S];return v[S]=(T,k=!1,E=!1)=>(n||w(),C.schedule(T,k,E)),v},{}),cancel:v=>{for(let S=0;S<jo.length;S++)o[jo[S]].cancel(v)},state:i,steps:o}}const{schedule:le,cancel:Zn,state:Ae,steps:Jl}=sx(typeof requestAnimationFrame<"u"?requestAnimationFrame:xt,!0);let Qo;function bk(){Qo=void 0}const Ye={now:()=>(Qo===void 0&&Ye.set(Ae.isProcessing||pn.useManualTiming?Ae.timestamp:performance.now()),Qo),set:e=>{Qo=e,queueMicrotask(bk)}},ox=e=>t=>typeof t=="string"&&t.startsWith(e),af=ox("--"),Sk=ox("var(--"),lf=e=>Sk(e)?Ck.test(e.split("/*")[0].trim()):!1,Ck=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Li={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_s={...Li,transform:e=>hn(0,1,e)},Mo={...Li,default:1},cs=e=>Math.round(e*1e5)/1e5,uf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Tk(e){return e==null}const Ek=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cf=(e,t)=>n=>!!(typeof n=="string"&&Ek.test(n)&&n.startsWith(e)||t&&!Tk(n)&&Object.prototype.hasOwnProperty.call(n,t)),ax=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(uf);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Pk=e=>hn(0,255,e),eu={...Li,transform:e=>Math.round(Pk(e))},fr={test:cf("rgb","red"),parse:ax("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eu.transform(e)+", "+eu.transform(t)+", "+eu.transform(n)+", "+cs(_s.transform(r))+")"};function kk(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 bc={test:cf("#"),parse:kk,transform:fr.transform},to=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),En=to("deg"),Qt=to("%"),U=to("px"),Ak=to("vh"),Nk=to("vw"),Rp={...Qt,parse:e=>Qt.parse(e)/100,transform:e=>Qt.transform(e*100)},Yr={test:cf("hsl","hue"),parse:ax("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qt.transform(cs(t))+", "+Qt.transform(cs(n))+", "+cs(_s.transform(r))+")"},xe={test:e=>fr.test(e)||bc.test(e)||Yr.test(e),parse:e=>fr.test(e)?fr.parse(e):Yr.test(e)?Yr.parse(e):bc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fr.transform(e):Yr.transform(e),getAnimatableNone:e=>{const t=xe.parse(e);return t.alpha=0,xe.transform(t)}},Rk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jk(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(uf))==null?void 0:t.length)||0)+(((n=e.match(Rk))==null?void 0:n.length)||0)>0}const lx="number",ux="color",Mk="var",Dk="var(",jp="${}",Lk=/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 Vs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(Lk,l=>(xe.test(l)?(r.color.push(s),i.push(ux),n.push(xe.parse(l))):l.startsWith(Dk)?(r.var.push(s),i.push(Mk),n.push(l)):(r.number.push(s),i.push(lx),n.push(parseFloat(l))),++s,jp)).split(jp);return{values:n,split:a,indexes:r,types:i}}function cx(e){return Vs(e).values}function dx(e){const{split:t,types:n}=Vs(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===lx?s+=cs(i[o]):a===ux?s+=xe.transform(i[o]):s+=i[o]}return s}}const Ok=e=>typeof e=="number"?0:xe.test(e)?xe.getAnimatableNone(e):e;function Ik(e){const t=cx(e);return dx(e)(t.map(Ok))}const Jn={test:jk,parse:cx,createTransformer:dx,getAnimatableNone:Ik};function tu(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 Fk({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,l=2*n-a;i=tu(l,a,e+1/3),s=tu(l,a,e),o=tu(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function ja(e,t){return n=>n>0?t:e}const de=(e,t,n)=>e+(t-e)*n,nu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_k=[bc,fr,Yr],Vk=e=>_k.find(t=>t.test(e));function Mp(e){const t=Vk(e);if(!t)return!1;let n=t.parse(e);return t===Yr&&(n=Fk(n)),n}const Dp=(e,t)=>{const n=Mp(e),r=Mp(t);if(!n||!r)return ja(e,t);const i={...n};return s=>(i.red=nu(n.red,r.red,s),i.green=nu(n.green,r.green,s),i.blue=nu(n.blue,r.blue,s),i.alpha=de(n.alpha,r.alpha,s),fr.transform(i))},Sc=new Set(["none","hidden"]);function zk(e,t){return Sc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Bk(e,t){return n=>de(e,t,n)}function df(e){return typeof e=="number"?Bk:typeof e=="string"?lf(e)?ja:xe.test(e)?Dp:Wk:Array.isArray(e)?fx:typeof e=="object"?xe.test(e)?Dp:$k:ja}function fx(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>df(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function $k(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=df(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Uk(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 Wk=(e,t)=>{const n=Jn.createTransformer(t),r=Vs(e),i=Vs(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?Sc.has(e)&&!i.values.length||Sc.has(t)&&!r.values.length?zk(e,t):Js(fx(Uk(r,i),i.values),n):ja(e,t)};function hx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?de(e,t,n):df(e)(e,t)}const Hk=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>le.update(t,n),stop:()=>Zn(t),now:()=>Ae.isProcessing?Ae.timestamp:Ye.now()}},px=(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)})`},Ma=2e4;function ff(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ma;)t+=n,r=e.next(t);return t>=Ma?1/0:t}function Kk(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ff(r),Ma);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Yt(i)}}const Gk=5;function mx(e,t,n){const r=Math.max(t-Gk,0);return Y0(n-e(r),t-r)}const me={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},ru=.001;function Yk({duration:e=me.duration,bounce:t=me.bounce,velocity:n=me.velocity,mass:r=me.mass}){let i,s,o=1-t;o=hn(me.minDamping,me.maxDamping,o),e=hn(me.minDuration,me.maxDuration,Yt(e)),o<1?(i=u=>{const c=u*o,f=c*e,d=c-n,m=Cc(u,o),x=Math.exp(-f);return ru-d/m*x},s=u=>{const f=u*o*e,d=f*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-f),y=Cc(Math.pow(u,2),o);return(-i(u)+ru>0?-1:1)*((d-m)*x)/y}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-ru+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=Xk(i,s,a);if(e=Gt(e),isNaN(l))return{stiffness:me.stiffness,damping:me.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const Qk=12;function Xk(e,t,n){let r=n;for(let i=1;i<Qk;i++)r=r-e(r)/t(r);return r}function Cc(e,t){return e*Math.sqrt(1-t*t)}const qk=["duration","bounce"],Zk=["stiffness","damping","mass"];function Lp(e,t){return t.some(n=>e[n]!==void 0)}function Jk(e){let t={velocity:me.velocity,stiffness:me.stiffness,damping:me.damping,mass:me.mass,isResolvedFromDuration:!1,...e};if(!Lp(e,Zk)&&Lp(e,qk))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*hn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:me.mass,stiffness:i,damping:s}}else{const n=Yk(e);t={...t,...n,mass:me.mass},t.isResolvedFromDuration=!0}return t}function Da(e=me.visualDuration,t=me.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:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:m}=Jk({...n,velocity:-Yt(n.velocity||0)}),x=d||0,y=u/(2*Math.sqrt(l*c)),w=o-s,h=Yt(Math.sqrt(l/c)),p=Math.abs(w)<5;r||(r=p?me.restSpeed.granular:me.restSpeed.default),i||(i=p?me.restDelta.granular:me.restDelta.default);let v;if(y<1){const C=Cc(h,y);v=T=>{const k=Math.exp(-y*h*T);return o-k*((x+y*h*w)/C*Math.sin(C*T)+w*Math.cos(C*T))}}else if(y===1)v=C=>o-Math.exp(-h*C)*(w+(x+h*w)*C);else{const C=h*Math.sqrt(y*y-1);v=T=>{const k=Math.exp(-y*h*T),E=Math.min(C*T,300);return o-k*((x+y*h*w)*Math.sinh(E)+C*w*Math.cosh(E))/C}}const S={calculatedDuration:m&&f||null,next:C=>{const T=v(C);if(m)a.done=C>=f;else{let k=C===0?x:0;y<1&&(k=C===0?Gt(x):mx(v,C,T));const E=Math.abs(k)<=r,D=Math.abs(o-T)<=i;a.done=E&&D}return a.value=a.done?o:T,a},toString:()=>{const C=Math.min(ff(S),Ma),T=px(k=>S.next(C*k).value,C,30);return C+"ms "+T},toTransition:()=>{}};return S}Da.applyToOptions=e=>{const t=Kk(e,100,Da);return e.ease=t.ease,e.duration=Gt(t.duration),e.type="keyframes",e};function Tc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},m=E=>a!==void 0&&E<a||l!==void 0&&E>l,x=E=>a===void 0?l:l===void 0||Math.abs(a-E)<Math.abs(l-E)?a:l;let y=n*t;const w=f+y,h=o===void 0?w:o(w);h!==w&&(y=h-f);const p=E=>-y*Math.exp(-E/r),v=E=>h+p(E),S=E=>{const D=p(E),j=v(E);d.done=Math.abs(D)<=u,d.value=d.done?h:j};let C,T;const k=E=>{m(d.value)&&(C=E,T=Da({keyframes:[d.value,x(d.value)],velocity:mx(v,E,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:E=>{let D=!1;return!T&&C===void 0&&(D=!0,S(E),k(E)),C!==void 0&&E>=C?T.next(E-C):(!D&&S(E),d)}}}function e2(e,t,n){const r=[],i=n||pn.mix||hx,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||xt:t;a=Js(l,a)}r.push(a)}return r}function t2(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ra(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=e2(t,r,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Fs(e[f],e[f+1],c);return a[f](d)};return n?c=>u(hn(e[0],e[s-1],c)):u}function n2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fs(0,t,r);e.push(de(n,1,i))}}function r2(e){const t=[0];return n2(t,e.length-1),t}function i2(e,t){return e.map(n=>n*t)}function s2(e,t){return e.map(()=>t||rx).splice(0,e.length-1)}function ds({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=yk(r)?r.map(Ap):Ap(r),s={done:!1,value:t[0]},o=i2(n&&n.length===t.length?n:r2(t),e),a=t2(o,t,{ease:Array.isArray(i)?i:s2(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const o2=e=>e!==null;function hf(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(o2),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const a2={decay:Tc,inertia:Tc,tween:ds,keyframes:ds,spring:Da};function gx(e){typeof e.type=="string"&&(e.type=a2[e.type])}class pf{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 l2=e=>e/100;class mf extends pf{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!==Ye.now()&&this.tick(Ye.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;gx(t);const{type:n=ds,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||ds;l!==ds&&typeof a[0]!="number"&&(this.mixKeyframes=Js(l2,hx(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=ff(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}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:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:m,type:x,onUpdate:y,finalKeyframe:w}=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 h=this.currentTime-u*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?h<0:h>i;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,S=r;if(f){const E=Math.min(this.currentTime,i)/a;let D=Math.floor(E),j=E%1;!j&&E>=1&&(j=1),j===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(d==="reverse"?(j=1-j,m&&(j-=m/a)):d==="mirror"&&(S=o)),v=hn(0,1,j)*a}const C=p?{done:!1,value:c[0]}:S.next(v);s&&(C.value=s(C.value));let{done:T}=C;!p&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&x!==Tc&&(C.value=hf(c,this.options,w,this.speed)),y&&y(C.value),k&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Yt(this.calculatedDuration)}get time(){return Yt(this.currentTime)}set time(t){var n;t=Gt(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(Ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Yt(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=Hk,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(Ye.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 u2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const hr=e=>e*180/Math.PI,Ec=e=>{const t=hr(Math.atan2(e[1],e[0]));return Pc(t)},c2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ec,rotateZ:Ec,skewX:e=>hr(Math.atan(e[1])),skewY:e=>hr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Pc=e=>(e=e%360,e<0&&(e+=360),e),Op=Ec,Ip=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),d2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ip,scaleY:Fp,scale:e=>(Ip(e)+Fp(e))/2,rotateX:e=>Pc(hr(Math.atan2(e[6],e[5]))),rotateY:e=>Pc(hr(Math.atan2(-e[2],e[0]))),rotateZ:Op,rotate:Op,skewX:e=>hr(Math.atan(e[4])),skewY:e=>hr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function kc(e){return e.includes("scale")?1:0}function Ac(e,t){if(!e||e==="none")return kc(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=d2,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=c2,i=a}if(!i)return kc(t);const s=r[t],o=i[1].split(",").map(h2);return typeof s=="function"?s(o):o[s]}const f2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ac(n,t)};function h2(e){return parseFloat(e.trim())}const Oi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ii=new Set(Oi),_p=e=>e===Li||e===U,p2=new Set(["x","y","z"]),m2=Oi.filter(e=>!p2.has(e));function g2(e){const t=[];return m2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const wr={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})=>Ac(t,"x"),y:(e,{transform:t})=>Ac(t,"y")};wr.translateX=wr.x;wr.translateY=wr.y;const br=new Set;let Nc=!1,Rc=!1,jc=!1;function yx(){if(Rc){const e=Array.from(br).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=g2(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)})}Rc=!1,Nc=!1,br.forEach(e=>e.complete(jc)),br.clear()}function vx(){br.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Rc=!0)})}function y2(){jc=!0,vx(),yx(),jc=!1}class gf{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?(br.add(this),Nc||(Nc=!0,le.read(vx),le.resolveKeyframes(yx))):(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])}u2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),br.delete(this)}cancel(){this.state==="scheduled"&&(br.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const v2=e=>e.startsWith("--");function x2(e,t,n){v2(t)?e.style.setProperty(t,n):e.style[t]=n}const w2=nf(()=>window.ScrollTimeline!==void 0),b2={};function S2(e,t){const n=nf(e);return()=>b2[t]??n()}const xx=S2(()=>{try{document.createElement("div").animate({opacity:0}
162,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ji=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ji([0,.65,.55,1]),circOut:Ji([.55,0,1,.45]),backIn:Ji([.31,.01,.66,-.59]),backOut:Ji([.33,1.53,.69,.99])};function wx(e,t){if(e)return typeof e=="function"?xx()?px(e,t):"ease-out":ix(e)?Ji(e):Array.isArray(e)?e.map(n=>wx(n,t)||Vp.easeOut):Vp[e]}function C2(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=wx(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function bx(e){return typeof e=="function"&&"applyToOptions"in e}function T2({type:e,...t}){return bx(e)&&xx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class E2 extends pf{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:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Ra(typeof t.type!="string");const u=T2(t);this.animation=C2(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=hf(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):x2(n,r,c),this.animation.cancel()}l==null||l(),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 Yt(Number(t))}get time(){return Yt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Gt(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&&w2()?(this.animation.timeline=t,xt):n(this)}}const Sx={anticipate:ex,backInOut:J0,circInOut:nx};function P2(e){return e in Sx}function k2(e){typeof e.ease=="string"&&P2(e.ease)&&(e.ease=Sx[e.ease])}const zp=10;class A2 extends E2{constructor(t){k2(t),gx(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 mf({...o,autoplay:!1}),l=Gt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-zp).value,a.sample(l).value,zp),a.stop()}}const Bp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Jn.test(e)||e==="0")&&!e.startsWith("url("));function N2(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 R2(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=Bp(i,t),a=Bp(s,t);return!o||!a?!1:N2(e)||(n==="spring"||bx(n))&&r}function Cx(e){return K0(e)&&"offsetHeight"in e}const j2=new Set(["opacity","clipPath","filter","transform"]),M2=nf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function D2(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!Cx((u=t==null?void 0:t.owner)==null?void 0:u.current))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return M2()&&n&&j2.has(n)&&(n!=="transform"||!l)&&!a&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const L2=40;class O2 extends pf{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:
162o="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var x;super(),this.stop=()=>{var y,w;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=Ye.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...f},m=(c==null?void 0:c.KeyframeResolver)||gf;this.keyframeResolver=new m(a,(y,w,h)=>this.onKeyframesResolved(y,w,d,!h),l,u,c),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ye.now(),R2(t,s,o,a)||((pn.instantAnimations||!l)&&(c==null||c(hf(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>L2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&D2(d)?new A2({...d,element:d.motionValue.owner.current}):new mf(d);m.finished.then(()=>this.notifyFinished()).catch(xt),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}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(),y2()),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 I2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function F2(e){const t=I2.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Tx(e,t,n=1){const[r,i]=F2(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return H0(o)?parseFloat(o):o}return lf(i)?Tx(i,t,n+1):i}function yf(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Ex=new Set(["width","height","top","left","right","bottom",...Oi]),_2={test:e=>e==="auto",parse:e=>e},Px=e=>t=>t.test(e),kx=[Li,U,Qt,En,Nk,Ak,_2],$p=e=>kx.find(Px(e));function V2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||G0(e):!0}const z2=new Set(["brightness","contrast","saturate","opacity"]);function B2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uf)||[];if(!r)return e;const i=n.replace(r,"");let s=z2.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const $2=/\b([a-z-]*)\(.*?\)/gu,Mc={...Jn,getAnimatableNone:e=>{const t=e.match($2);return t?t.map(B2).join(" "):e}},Up={...Li,transform:Math.round},U2={rotate:En,rotateX:En,rotateY:En,rotateZ:En,scale:Mo,scaleX:Mo,scaleY:Mo,scaleZ:Mo,skew:En,skewX:En,skewY:En,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:_s,originX:Rp,originY:Rp,originZ:U},vf={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,radius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,backgroundPositionX:U,backgroundPositionY:U,...U2,zIndex:Up,fillOpacity:_s,strokeOpacity:_s,numOctaves:Up},W2={...vf,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:Mc,WebkitFilter:Mc},Ax=e=>W2[e];function Nx(e,t){let n=Ax(e);return n!==Mc&&(n=Jn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,652 bytes, line 162
162const H2=new Set(["auto","none","0"]);function K2(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!H2.has(s)&&Vs(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Nx(n,i)}class G2 extends gf{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 l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),lf(u))){const c=Tx(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ex.has(r)||t.length!==2)return;const[i,s]=t,o=$p(i),a=$p(s);if(o!==a)if(_p(o)&&_p(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else wr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||V2(t[i]))&&r.push(i);r.length&&K2(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=wr[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]=wr[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: 44,025 bytes, line 162
162h(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Y2(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 Rx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Wp=30,Q2=e=>!isNaN(parseFloat(e));class X2{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var o,a;const s=Ye.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 l of this.dependents)l.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=Ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Q2(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 rf);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.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 this.current}getPrevious(){return this.prev}getVelocity(){const t=Ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wp)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wp);return Y0(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 Pi(e,t){return new X2(e,t)}const{schedule:xf,cancel:tj}=sx(queueMicrotask,!1),Et={x:!1,y:!1};function jx(){return Et.x||Et.y}function q2(e){return e==="x"||e==="y"?Et[e]?null:(Et[e]=!0,()=>{Et[e]=!1}):Et.x||Et.y?null:(Et.x=Et.y=!0,()=>{Et.x=Et.y=!1})}function Mx(e,t){const n=Y2(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hp(e){return!(e.pointerType==="touch"||jx())}function Z2(e,t,n={}){const[r,i,s]=Mx(e,n),o=a=>{if(!Hp(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{Hp(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Dx=(e,t)=>t?e===t?!0:Dx(e,t.parentElement):!1,wf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,J2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function eA(e){return J2.has(e.tagName)||e.tabIndex!==-1}const Xo=new WeakSet;function Kp(e){return t=>{t.key==="Enter"&&e(t)}}function iu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const tA=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Kp(()=>{if(Xo.has(n))return;iu(n,"down");const i=Kp(()=>{iu(n,"up")}),s=()=>iu(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 Gp(e){return wf(e)&&!jx()}function nA(e,t,n={}){const[r,i,s]=Mx(e,n),o=a=>{const l=a.currentTarget;if(!Gp(a))return;Xo.add(l);const u=t(l,a),c=(m,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Xo.has(l)&&Xo.delete(l),Gp(m)&&typeof u=="function"&&u(m,{success:x})},f=m=>{c(m,l===window||l===document||n.useGlobalTarget||Dx(l,m.target))},d=m=>{c(m,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Cx(a)&&(a.addEventListener("focus",u=>tA(u,i)),!eA(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Lx(e){return K0(e)&&"ownerSVGElement"in e}function rA(e){return Lx(e)&&e.tagName==="svg"}const Ie=e=>!!(e&&e.getVelocity),iA=[...kx,xe,Jn],sA=e=>iA.find(Px(e)),Ox=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function oA(e=!0){const t=b.useContext(Jd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=b.useId();b.useEffect(()=>{if(e)return i(s)},[e]);const o=b.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Ix=b.createContext({strict:!1}),Yp={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"]},ki={};for(const e in Yp)ki[e]={isEnabled:t=>Yp[e].some(n=>!!t[n])};function aA(e){for(const t in e)ki[t]={...ki[t],...e[t]}}const lA=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 La(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lA.has(e)}let Fx=e=>!La(e);function uA(e){typeof e=="function"&&(Fx=t=>t.startsWith("on")?!La(t):e(t))}try{uA(require("@emotion/is-prop-valid").default)}catch{}function cA(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Fx(i)||n===!0&&La(i)||!t&&!La(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dA(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 dl=b.createContext({});function fl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zs(e){return typeof e=="string"||Array.isArray(e)}const bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sf=["initial",...bf];function hl(e){return fl(e.animate)||Sf.some(t=>zs(e[t]))}function _x(e){return!!(hl(e)||e.variants)}function fA(e,t){if(hl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zs(n)?n:void 0,animate:zs(r)?r:void 0}}return e.inherit!==!1?t:{}}function hA(e){const{initial:t,animate:n}=fA(e,b.useContext(dl));return b.useMemo(()=>({initial:t,animate:n}),[Qp(t),Qp(n)])}function Qp(e){return Array.isArray(e)?e.join(" "):e}const pA=Symbol.for("motionComponentSymbol");function Qr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mA(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qr(n)&&(n.current=r))},[t])}const Cf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gA="framerAppearId",Vx="data-"+Cf(gA),zx=b.createContext({});function yA(e,t,n,r,i){var y,w;const{visualElement:s}=b.useContext(dl),o=b.useContext(Ix),a=b.useContext(Jd),l=b.useContext(Ox).reducedMotion,u=b.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,f=b.useContext(zx);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&vA(u.current,n,i,f);const d=b.useRef(!1);b.useInsertionEffect(()=>{c&&d.current&&c.update(n,a)});const m=n[Vx],x=b.useRef(!!m&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,m))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,m)));return ck(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),xf.render(c.render),x.current&&c.animationState&&c.animationState.animateChanges())}),b.useEffect(()=>{c&&(!x.current&&c.animationState&&c.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)==null||h.call(window,m)}),x.current=!1))}),c}function vA(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Bx(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Qr(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Bx(e){if(e)return e.options.allowProjection!==!1?e.projection:Bx(e.parent)}function xA({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&aA(e);function s(a,l){let u;const c={...b.useContext(Ox),...a,layoutId:wA(a)},{isStatic:f}=c,d=hA(a),m=r(a,f);if(!f&&Zd){bA();const x=SA(c);u=x.MeasureLayout,d.visualElement=yA(i,m,c,t,x.ProjectionNode)}return g.jsxs(dl.Provider,{value:d,children:[u&&d.visualElement?g.jsx(u,{visualElement:d.visualElement,...c}):null,n(i,a,mA(m,d.visualElement,l),m,f,d.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=b.forwardRef(s);return o[pA]=i,o}function wA({layoutId:e}){const t=b.useContext(W0).id;return t&&e!==void 0?t+"-"+e:e}function bA(e,t){b.useContext(Ix).strict}function SA(e){const{drag:t,layout:n}=ki;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 Bs={};function CA(e){for(const t in e)Bs[t]=e[t],af(t)&&(Bs[t].isCSSVariable=!0)}function $x(e,{layout:t,layoutId:n}){return Ii.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bs[e]||e==="opacity")}const TA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},EA=Oi.length;function PA(e,t,n){let r="",i=!0;for(let s=0;s<EA;s++){const o=Oi[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Rx(a,vf[o]);if(!l){i=!1;const c=TA[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Tf(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(Ii.has(l)){o=!0;continue}else if(af(l)){i[l]=u;continue}else{const c=Rx(u,vf[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=PA(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const Ef=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ux(e,t,n){for(const r in t)!Ie(t[r])&&!$x(r,n)&&(e[r]=t[r])}function kA({transformTemplate:e},t){return b.useMemo(()=>{const n=Ef();return Tf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function AA(e,t){const n=e.style||{},r={};return Ux(r,n,e),Object.assign(r,kA(e,t)),r}function NA(e,t){const n={},r=AA(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 RA={offset:"stroke-dashoffset",array:"stroke-dasharray"},jA={offset:"strokeDashoffset",array:"strokeDasharray"};function MA(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?RA:jA;e[s.offset]=U.transform(-r);const o=U.transform(t),a=U.transform(n);e[s.array]=`${o} ${a}`}function Wx(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(Tf(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.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&&MA(f,i,s,o,!1)}const Hx=()=>({...Ef(),attrs:{}}),Kx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DA(e,t,n,r){const i=b.useMemo(()=>{const s=Hx();return Wx(s,t,Kx(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Ux(s,e.style,e),i.style={...s,...i.style}}return i}const LA=["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 Pf(e){return typeof e!="string"||e.includes("-")?!1:!!(LA.indexOf(e)>-1||/[A-Z]/u.test(e))}function OA(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Pf(n)?DA:NA)(r,s,o,n),u=cA(r,typeof n=="string",e),c=n!==b.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=b.useMemo(()=>Ie(f)?f.get():f,[f]);return b.createElement(n,{...c,children:d})}}function Xp(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function kf(e,t,n,r){if(typeof t=="function"){const[i,s]=Xp(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]=Xp(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function qo(e){return Ie(e)?e.get():e}function IA({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:FA(n,r,i,e),renderState:t()}}const Gx=e=>(t,n)=>{const r=b.useContext(dl),i=b.useContext(Jd),s=()=>IA(e,t,r,i);return n?s():uk(s)};function FA(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=qo(s[d]);let{initial:o,animate:a}=e;const l=hl(e),u=_x(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!fl(f)){const d=Array.isArray(f)?f:[f];for(let m=0;m<d.length;m++){const x=kf(e,d[m]);if(x){const{transitionEnd:y,transition:w,...h}=x;for(const p in h){let v=h[p];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(i[p]=v)}for(const p in y)i[p]=y[p]}}}return i}function Af(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Ie(r[o])||t.style&&Ie(t.style[o])||$x(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const _A={useVisualState:Gx({scrapeMotionValuesFromProps:Af,createRenderState:Ef})};function Yx(e,t,n){const r=Af(e,t,n);for(const i in e)if(Ie(e[i])||Ie(t[i])){const s=Oi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const VA={useVisualState:Gx({scrapeMotionValuesFromProps:Yx,createRenderState:Hx})};function zA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Pf(r)?VA:_A,preloadedFeatures:e,useRender:OA(i),createVisualElement:t,Component:r};return xA(o)}}function $s(e,t,n){const r=e.getProps();return kf(r,t,n!==void 0?n:r.custom,e)}const Dc=e=>Array.isArray(e);function BA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pi(n))}function $A(e){return Dc(e)?e[e.length-1]||0:e}function UA(e,t){const n=$s(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=$A(s[o]);BA(e,o,a)}}function WA(e){return!!(Ie(e)&&e.add)}function Lc(e,t){const n=e.getValue("willChange");if(WA(n))return n.add(t);if(!n&&pn.WillChange){const r=new pn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Qx(e){return e.props[Vx]}const HA=e=>e!==null;function KA(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(HA),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const GA={type:"spring",stiffness:500,damping:25,restSpeed:10},YA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),QA={type:"keyframes",duration:.8},XA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qA=(e,{keyframes:t})=>t.length>2?QA:Ii.has(e)?e.startsWith("scale")?YA(t[1]):GA:XA;function ZA({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Nf=(e,t,n,r={},i,s)=>o=>{const a=yf(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Gt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};ZA(a)||Object.assign(c,qA(e,c)),c.duration&&(c.duration=Gt(c.duration)),c.repeatDelay&&(c.repeatDelay=Gt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),(pn.instantAnimations||pn.skipAnimations)&&(f=!0,c.duration=0,c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const d=KA(c.keyframes,a);if(d!==void 0){le.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new mf(c):new O2(c)};function JA({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Xx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),d=a[c];if(d===void 0||u&&JA(u,c))continue;const m={delay:n,...yf(s||{},c)},x=f.get();if(x!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===x&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const h=Qx(e);if(h){const p=window.MotionHandoffAnimation(h,c,le);p!==null&&(m.startTime=p,y=!0)}}Lc(e,c),f.start(Nf(c,f,d,e.shouldReduceMotion&&Ex.has(c)?{type:!1}:m,e,y));const w=f.animation;w&&l.push(w)}return o&&Promise.all(l).then(()=>{le.update(()=>{o&&UA(e,o)})}),l}function Oc(e,t,n={}){var l;const r=$s(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Xx(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return eN(e,t,u,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function eN(e,t,n=0,r=0,i=0,s=1,o){const a=[],l=e.variantChildren.size,u=(l-1)*i,c=typeof r=="function",f=c?d=>r(d,l):s===1?(d=0)=>d*i:(d=0)=>u-d*i;return Array.from(e.variantChildren).sort(tN).forEach((d,m)=>{d.notify("AnimationStart",t),a.push(Oc(d,t,{...o,delay:n+(c?0:r)+f(m)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function tN(e,t){return e.sortNodePosition(t)}function nN(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Oc(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Oc(e,t,n);else{const i=typeof t=="function"?$s(e,t,n.custom):t;r=Promise.all(Xx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qx(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 rN=Sf.length;function Zx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Zx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rN;n++){const r=Sf[n],i=e.props[r];(zs(i)||i===!1)&&(t[r]=i)}return t}const iN=[...bf].reverse(),sN=bf.length;function oN(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nN(e,n,r)))}function aN(e){let t=oN(e),n=qp(),r=!0;const i=l=>(u,c)=>{var d;const f=$s(e,c,l==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:x,...y}=f;u={...u,...y,...x}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=Zx(e.parent)||{},f=[],d=new Set;let m={},x=1/0;for(let w=0;w<sN;w++){const h=iN[w],p=n[h],v=u[h]!==void 0?u[h]:c[h],S=zs(v),C=h===l?p.isActive:null;C===!1&&(x=w);let T=v===c[h]&&v!==u[h]&&S;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),p.protectedKeys={...m},!p.isActive&&C===null||!v&&!p.prevProp||fl(v)||typeof v=="boolean")continue;const k=lN(p.prevProp,v);let E=k||h===l&&p.isActive&&!T&&S||w>x&&S,D=!1;const j=Array.isArray(v)?v:[v];let V=j.reduce(i(h),{});C===!1&&(V={});const{prevResolvedValues:F={}}=p,W={...F,...V},L=z=>{E=!0,d.has(z)&&(D=!0,d.delete(z)),p.needsAnimating[z]=!0;const P=e.getValue(z);P&&(P.liveStyle=!1)};for(const z in W){const P=V[z],R=F[z];if(m.hasOwnProperty(z))continue;let _=!1;Dc(P)&&Dc(R)?_=!qx(P,R):_=P!==R,_?P!=null?L(z):d.add(z):P!==void 0&&d.has(z)?L(z):p.protectedKeys[z]=!0}p.prevProp=v,p.prevResolvedValues=V,p.isActive&&(m={...m,...V}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(T&&k)||D)&&f.push(...j.map(z=>({animation:z,options:{type:h}})))}if(d.size){const w={};if(typeof u.initial!="boolean"){const h=$s(e,Array.isArray(u.initial)?u.initial[0]:u.initial);h&&h.transition&&(w.transition=h.transition)}d.forEach(h=>{const p=e.getBaseTarget(h),v=e.getValue(h);v&&(v.liveStyle=!0),w[h]=p??null}),f.push({animation:w})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(l,u){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var m;return(m=d.animationState)==null?void 0:m.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=qp(),r=!0}}}function lN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qx(t,e):!1}function sr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qp(){return{animate:sr(!0),whileInView:sr(),whileHover:sr(),whileTap:sr(),whileDrag:sr(),whileFocus:sr(),exit:sr()}}class rr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class uN extends rr{constructor(t){super(t),t.animationState||(t.animationState=aN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fl(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 cN=0;class dN extends rr{constructor(){super(...arguments),this.id=cN++}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 fN={animation:{Feature:uN},exit:{Feature:dN}};function Us(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function no(e){return{point:{x:e.pageX,y:e.pageY}}}const hN=e=>t=>wf(t)&&e(t,no(t));function fs(e,t,n,r){return Us(e,t,hN(n),r)}function Jx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mN(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 ew=1e-4,gN=1-ew,yN=1+ew,tw=.01,vN=0-tw,xN=0+tw;function Be(e){return e.max-e.min}function wN(e,t,n){return Math.abs(e-t)<=n}function Zp(e,t,n,r=.5){e.origin=r,e.originPoint=de(t.min,t.max,e.origin),e.scale=Be(n)/Be(t),e.translate=de(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gN&&e.scale<=yN||isNaN(e.scale))&&(e.scale=1),(e.translate>=vN&&e.translate<=xN||isNaN(e.translate))&&(e.translate=0)}function hs(e,t,n,r){Zp(e.x,t.x,n.x,r?r.originX:void 0),Zp(e.y,t.y,n.y,r?r.originY:void 0)}function Jp(e,t,n){e.min=n.min+t.min,e.max=e.min+Be(t)}function bN(e,t,n){Jp(e.x,t.x,n.x),Jp(e.y,t.y,n.y)}function em(e,t,n){e.min=t.min-n.min,e.max=e.min+Be(t)}function ps(e,t,n){em(e.x,t.x,n.x),em(e.y,t.y,n.y)}const tm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xr=()=>({x:tm(),y:tm()}),nm=()=>({min:0,max:0}),ye=()=>({x:nm(),y:nm()});function ht(e){return[e("x"),e("y")]}function su(e){return e===void 0||e===1}function Ic({scale:e,scaleX:t,scaleY:n}){return!su(e)||!su(t)||!su(n)}function lr(e){return Ic(e)||nw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nw(e){return rm(e.x)||rm(e.y)}function rm(e){return e&&e!=="0%"}function Oa(e,t,n){const r=e-n,i=t*r;return n+i}function im(e,t,n,r,i){return i!==void 0&&(e=Oa(e,i,r)),Oa(e,n,r)+t}function Fc(e,t=0,n=1,r,i){e.min=im(e.min,t,n,r,i),e.max=im(e.max,t,n,r,i)}function rw(e,{x:t,y:n}){Fc(e.x,t.translate,t.scale,t.originPoint),Fc(e.y,n.translate,n.scale,n.originPoint)}const sm=.999999999999,om=1.0000000000001;function SN(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:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Zr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,rw(e,o)),r&&lr(s.latestValues)&&Zr(e,s.latestValues))}t.x<om&&t.x>sm&&(t.x=1),t.y<om&&t.y>sm&&(t.y=1)}function qr(e,t){e.min=e.min+t,e.max=e.max+t}function am(e,t,n,r,i=.5){const s=de(e.min,e.max,i);Fc(e,t,n,s,r)}function Zr(e,t){am(e.x,t.x,t.scaleX,t.scale,t.originX),am(e.y,t.y,t.scaleY,t.scale,t.originY)}function iw(e,t){return Jx(mN(e.getBoundingClientRect(),t))}function CN(e,t,n){const r=iw(e,n),{scroll:i}=t;return i&&(qr(r.x,i.offset.x),qr(r.y,i.offset.y)),r}const sw=({current:e})=>e?e.ownerDocument.defaultView:null,lm=(e,t)=>Math.abs(e-t);function TN(e,t){const n=lm(e.x,t.x),r=lm(e.y,t.y);return Math.sqrt(n**2+r**2)}class ow{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=au(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,x=TN(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!x)return;const{point:y}=d,{timestamp:w}=Ae;this.history.push({...y,timestamp:w});const{onStart:h,onMove:p}=this.handlers;m||(h&&h(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ou(m,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:x,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=au(d.type==="pointercancel"?this.lastMoveEventInfo:ou(m,this.transformPagePoint),this.history);this.startEvent&&x&&x(d,h),y&&y(d,h)},!wf(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=no(t),l=ou(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=Ae;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,au(l,this.history)),this.removeListeners=Js(fs(this.contextWindow,"pointermove",this.handlePointerMove),fs(this.contextWindow,"pointerup",this.handlePointerUp),fs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zn(this.updatePoint)}}function ou(e,t){return t?{point:t(e.point)}:e}function um(e,t){return{x:e.x-t.x,y:e.y-t.y}}function au({point:e},t){return{point:e,delta:um(e,aw(t)),offset:um(e,EN(t)),velocity:PN(t,.1)}}function EN(e){return e[0]}function aw(e){return e[e.length-1]}function PN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=aw(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Gt(t)));)n--;if(!r)return{x:0,y:0};const s=Yt(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 kN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?de(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?de(n,e,r.max):Math.min(e,n)),e}function cm(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 AN(e,{top:t,left:n,bottom:r,right:i}){return{x:cm(e.x,n,i),y:cm(e.y,t,r)}}function dm(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 NN(e,t){return{x:dm(e.x,t.x),y:dm(e.y,t.y)}}function RN(e,t){let n=.5;const r=Be(e),i=Be(t);return i>r?n=Fs(t.min,t.max-r,e.min):r>i&&(n=Fs(e.min,e.max-i,t.min)),hn(0,1,n)}function jN(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 _c=.35;function MN(e=_c){return e===!1?e=0:e===!0&&(e=_c),{x:fm(e,"left","right"),y:fm(e,"top","bottom")}}function fm(e,t,n){return{min:hm(e,t),max:hm(e,n)}}function hm(e,t){return typeof e=="number"?e:e[t]||0}const DN=new WeakMap;class LN{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=ye(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(no(f).point)},o=(f,d)=>{const{drag:m,dragPropagation:x,onDragStart:y}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=q2(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ht(h=>{let p=this.getAxisMotionValue(h).get()||0;if(Qt.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[h];S&&(p=Be(S)*(parseFloat(p)/100))}}this.originPoint[h]=p}),y&&le.postRender(()=>y(f,d)),Lc(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:y,onDrag:w}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:h}=d;if(x&&this.currentDirection===null){this.currentDirection=ON(h),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,h),this.updateAxis("y",d.point,h),this.visualElement.render(),w&&w(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>ht(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ow(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:sw(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&le.postRender(()=>a(r,i))}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||!Do(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=kN(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&&Qr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=AN(r.layoutBox,t):this.constraints=!1,this.elastic=MN(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ht(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=jN(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=CN(r,i.root,this.visualElement.getTransformPagePoint());let o=NN(i.layout.layoutBox,s);if(n){const a=n(pN(o));this.hasMutatedConstraints=!!a,a&&(o=Jx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ht(c=>{if(!Do(c,n,this.currentDirection))return;let f=l&&l[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Lc(this.visualElement,t),r.start(Nf(t,r,0,n,this.visualElement,!1))}stopAnimation(){ht(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ht(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){ht(n=>{const{drag:r}=this.getProps();if(!Do(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]-de(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ht(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=RN({min:l,max:l},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(),ht(o=>{if(!Do(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(de(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;DN.set(this.visualElement,this);const t=this.visualElement.current,n=fs(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Qr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),le.read(r);const o=Us(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ht(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].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=_c,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Do(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ON(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class IN extends rr{constructor(t){super(t),this.removeGroupControls=xt,this.removeListeners=xt,this.controls=new LN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const pm=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class FN extends rr{constructor(){super(...arguments),this.removePointerDownListener=xt}onPointerDown(t){this.session=new ow(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:pm(t),onStart:pm(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&le.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=fs(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 Zo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function mm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(U.test(e))e=parseFloat(e);else return e;const n=mm(e,t.target.x),r=mm(e,t.target.y);return`${n}% ${r}%`}},_N={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Jn.parse(e);if(i.length>5)return r;const s=Jn.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=de(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let gm=!1;class VN extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;CA(zN),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),gm&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Zo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,gm=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||le.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xf.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 lw(e){const[t,n]=oA(),r=b.useContext(W0);return g.jsx(VN,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(zx),isPresent:t,safeToRemove:n})}const zN={borderRadius:{...Yi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yi,borderTopRightRadius:Yi,borderBottomLeftRadius:Yi,borderBottomRightRadius:Yi,boxShadow:_N};function BN(e,t,n){const r=Ie(e)?e:Pi(e);return r.start(Nf("",r,t,n)),r.animation}const $N=(e,t)=>e.depth-t.depth;class UN{constructor(){this.children=[],this.isDirty=!1}add(t){ef(this.children,t),this.isDirty=!0}remove(t){tf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($N),this.isDirty=!1,this.children.forEach(t)}}function WN(e,t){const n=Ye.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Zn(r),e(s-t))};return le.setup(r,!0),()=>Zn(r)}const uw=["TopLeft","TopRight","BottomLeft","BottomRight"],HN=uw.length,ym=e=>typeof e=="string"?parseFloat(e):e,vm=e=>typeof e=="number"||U.test(e);function KN(e,t,n,r,i,s){i?(e.opacity=de(0,n.opacity??1,GN(r)),e.opacityExit=de(t.opacity??1,0,YN(r))):s&&(e.opacity=de(t.opacity??1,n.opacity??1,r));for(let o=0;o<HN;o++){const a=`border${uw[o]}Radius`;let l=xm(t,a),u=xm(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||vm(l)===vm(u)?(e[a]=Math.max(de(ym(l),ym(u),r),0),(Qt.test(u)||Qt.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=de(t.rotate||0,n.rotate||0,r))}function xm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GN=cw(0,.5,tx),YN=cw(.5,.95,xt);function cw(e,t,n){return r=>r<e?0:r>t?1:n(Fs(e,t,r))}function wm(e,t){e.min=t.min,e.max=t.max}function ft(e,t){wm(e.x,t.x),wm(e.y,t.y)}function bm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Sm(e,t,n,r,i){return e-=t,e=Oa(e,1/n,r),i!==void 0&&(e=Oa(e,1/i,r)),e}function QN(e,t=0,n=1,r=.5,i,s=e,o=e){if(Qt.test(t)&&(t=parseFloat(t),t=de(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=de(s.min,s.max,r);e===s&&(a-=t),e.min=Sm(e.min,t,n,a,i),e.max=Sm(e.max,t,n,a,i)}function Cm(e,t,[n,r,i],s,o){QN(e,t[n],t[r],t[i],t.scale,s,o)}const XN=["x","scaleX","originX"],qN=["y","scaleY","originY"];function Tm(e,t,n,r){Cm(e.x,t,XN,n?n.x:void 0,r?r.x:void 0),Cm(e.y,t,qN,n?n.y:void 0,r?r.y:void 0)}function Em(e){return e.translate===0&&e.scale===1}function dw(e){return Em(e.x)&&Em(e.y)}function Pm(e,t){return e.min===t.min&&e.max===t.max}function ZN(e,t){return Pm(e.x,t.x)&&Pm(e.y,t.y)}function km(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fw(e,t){return km(e.x,t.x)&&km(e.y,t.y)}function Am(e){return Be(e.x)/Be(e.y)}function Nm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class JN{constructor(){this.members=[]}add(t){ef(this.members,t),t.scheduleRender()}remove(t){if(tf(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,
vendor: 8,034 bytes, line 162
162n&&(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 eR(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:u,rotate:c,rotateX:f,rotateY:d,skewX:m,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),m&&(r+=`skewX(${m}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const lu=["","X","Y","Z"],tR=1e3;let nR=0;function uu(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hw(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Qx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hw(r)}function pw({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=nR++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.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(sR),this.nodes.forEach(uR),this.nodes.forEach(cR),this.nodes.forEach(oR)},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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new UN)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new rf),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Lx(o)&&!rA(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;le.read(()=>{f=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,c&&c(),c=WN(d,250),Zo.hasAnimatedSinceResize&&(Zo.hasAnimatedSinceResize=!1,this.nodes.forEach(Mm)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||mR,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=u.getProps(),h=!this.targetLayout||!fw(this.targetLayout,m),p=!f&&d;if(this.options.layoutRoot||this.resumeFrom||p||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...yf(x,"layout"),onPlay:y,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,p)}else f||Mm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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(),Zn(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(dR),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&&hw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Rm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(jm);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(lR),this.nodes.forEach(rR),this.nodes.forEach(iR)):this.nodes.forEach(jm),this.clearAllSnapshots();const a=Ye.now();Ae.delta=hn(0,1e3/60,a-Ae.timestamp),Ae.timestamp=a,Ae.isProcessing=!0,Jl.update.process(Ae),Jl.preRender.process(Ae),Jl.render.process(Ae),Ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aR),this.sharedNodes.forEach(fR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Be(this.snapshot.measuredBox.x)&&!Be(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ye(),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 l=r(this.instance);
vendor: 10,216 bytes, line 162
162this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!dw(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||lr(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),gR(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return ye();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(yR))){const{scroll:c}=this.root;c&&(qr(a.x,c.offset.x),qr(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=ye();if(ft(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&ft(a,o),qr(a.x,f.offset.x),qr(a.y,f.offset.y))}return a}applyTransform(o,a=!1){const l=ye();ft(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Zr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),lr(c.latestValues)&&Zr(l,c.latestValues)}return lr(this.latestValues)&&Zr(l,this.latestValues),l}removeTransform(o){const a=ye();ft(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!lr(u.latestValues))continue;Ic(u.latestValues)&&u.updateSnapshot();const c=ye(),f=u.measurePageBox();ft(c,f),Tm(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return lr(this.latestValues)&&Tm(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!==Ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=Ae.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ye(),this.relativeTargetOrigin=ye(),ps(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ye(),this.targetWithTransforms=ye()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ft(this.target,this.layout.layoutBox),rw(this.target,this.targetDelta)):ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ye(),this.relativeTargetOrigin=ye(),ps(this.relativeTargetOrigin,this.target,m.target),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ic(this.parent.latestValues)||nw(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 l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ae.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;ft(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;SN(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=ye());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bm(this.prevProjectionDelta.x,this.projectionDelta.x),bm(this.prevProjectionDelta.y,this.projectionDelta.y)),hs(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Nm(this.projectionDelta.x,this.prevProjectionDelta.x)||!Nm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xr(),this.projectionDelta=Xr(),this.projectionDeltaWithTransform=Xr()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=Xr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=ye(),m=l?l.source:void 0,x=this.layout?this.layout.source:void 0,y=m!==x,w=this.getStack(),h=!w||w.members.length<=1,p=!!(y&&!h&&this.options.crossfade===!0&&!this.path.some(pR));this.animationProgress=0;let v;this.mixTargetDelta=S=>{const C=S/1e3;Dm(f.x,o.x,C),Dm(f.y,o.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ps(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hR(this.relativeTarget,this.relativeTargetOrigin,d,C),v&&ZN(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ye()),ft(v,this.relativeTarget)),y&&(this.animationValues=c,KN(c,u,this.latestValues,C,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Zo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pi(0)),this.currentAnimation=BN(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},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(tR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&mw(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ye();const f=Be(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const d=Be(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}ft(a,l),Zr(a,c),hs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new JN),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.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:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 4,211 bytes, line 162
162resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&uu("z",o,u,this.animationValues);for(let c=0;c<lu.length;c++)uu(`rotate${lu[c]}`,o,u,this.animationValues),uu(`skew${lu[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=qo(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=qo(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!lr(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=eR(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:d,y:m}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const x in Bs){if(c[x]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:h}=Bs[x],p=f==="none"?c[x]:y(c[x],u);if(w){const v=w.length;for(let S=0;S<v;S++)o[w[S]]=p}else h?this.options.visualElement.renderState.vars[x]=p:o[x]=p}this.options.layoutId&&(o.pointerEvents=u===this?qo(a==null?void 0:a.pointerEvents)||"":"none")}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(Rm),this.root.sharedNodes.clear()}}}function rR(e){e.updateLayout()}function iR(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"?ht(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],m=Be(d);d.min=r[f].min,d.max=d.min+m}):mw(s,t.layoutBox,r)&&ht(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],m=Be(r[f]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const a=Xr();hs(a,r,t.layoutBox);const l=Xr();o?hs(l,e.applyTransform(i,!0),t.measuredBox):hs(l,r,t.layoutBox);const u=!dw(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:m}=f;if(d&&m){const x=ye();ps(x,t.layoutBox,d.layoutBox);const y=ye();ps(y,r,m.layoutBox),fw(x,y)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function sR(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 oR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aR(e){e.clearSnapshot()}function Rm(e){e.clearMeasurements()}function jm(e){e.isLayoutDirty=!1}function lR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uR(e){e.resolveTargetDelta()}function cR(e){e.calcProjection()}
vendor: 11,573 bytes, line 162
162function dR(e){e.resetSkewAndRotation()}function fR(e){e.removeLeadSnapshot()}function Dm(e,t,n){e.translate=de(t.translate,0,n),e.scale=de(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Lm(e,t,n,r){e.min=de(t.min,n.min,r),e.max=de(t.max,n.max,r)}function hR(e,t,n,r){Lm(e.x,t.x,n.x,r),Lm(e.y,t.y,n.y,r)}function pR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mR={duration:.45,ease:[.4,0,.1,1]},Om=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Im=Om("applewebkit/")&&!Om("chrome/")?Math.round:xt;function Fm(e){e.min=Im(e.min),e.max=Im(e.max)}function gR(e){Fm(e.x),Fm(e.y)}function mw(e,t,n){return e==="position"||e==="preserve-aspect"&&!wN(Am(t),Am(n),.2)}function yR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const vR=pw({attachResizeListener:(e,t)=>Us(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cu={current:void 0},gw=pw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cu.current){const e=new vR({});e.mount(window),e.setOptions({layoutScroll:!0}),cu.current=e}return cu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xR={pan:{Feature:FN},drag:{Feature:IN,ProjectionNode:gw,MeasureLayout:lw}};function _m(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&&le.postRender(()=>s(t,no(t)))}class wR extends rr{mount(){const{current:t}=this.node;t&&(this.unmount=Z2(t,(n,r)=>(_m(this.node,r,"Start"),i=>_m(this.node,i,"End"))))}unmount(){}}class bR extends rr{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=Js(Us(this.node.current,"focus",()=>this.onFocus()),Us(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vm(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&&le.postRender(()=>s(t,no(t)))}class SR extends rr{mount(){const{current:t}=this.node;t&&(this.unmount=nA(t,(n,r)=>(Vm(this.node,r,"Start"),(i,{success:s})=>Vm(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Vc=new WeakMap,du=new WeakMap,CR=e=>{const t=Vc.get(e.target);t&&t(e)},TR=e=>{e.forEach(CR)};function ER({root:e,...t}){const n=e||document;du.has(n)||du.set(n,{});const r=du.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TR,{root:e,...t})),r[i]}function PR(e,t,n){const r=ER(t);return Vc.set(e,n),r.observe(e),()=>{Vc.delete(e),r.unobserve(e)}}const kR={some:0,all:1};class AR extends rr{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:kR[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return PR(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(NR(t,n))&&this.startObserver()}unmount(){}}function NR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RR={inView:{Feature:AR},tap:{Feature:SR},focus:{Feature:bR},hover:{Feature:wR}},jR={layout:{ProjectionNode:gw,MeasureLayout:lw}},zc={current:null},yw={current:!1};function MR(){if(yw.current=!0,!!Zd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zc.current=e.matches;e.addEventListener("change",t),t()}else zc.current=!1}const DR=new WeakMap;function LR(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Ie(i))e.addValue(r,i);else if(Ie(s))e.addValue(r,Pi(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,Pi(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const zm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class OR{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=gf,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 d=Ye.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,le.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,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=hl(n),this.isVariantNode=_x(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];l[d]!==void 0&&Ie(m)&&m.set(l[d],!1)}}mount(t){this.current=t,DR.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)),yw.current||MR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Zn(this.notifyUpdate),Zn(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=Ii.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&le.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 ki){const n=ki[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):ye()}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<zm.length;r++){const i=zm[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=LR(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=Pi(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"&&(H0(r)||G0(r))?r=parseFloat(r):!sA(r)&&Jn.test(n)&&(r=Nx(t,n)),this.setBaseTarget(t,Ie(r)?r.get():r)),Ie(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=kf(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&&!Ie(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 rf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vw extends OR{constructor(){super(...arguments),this.KeyframeResolver=G2}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;Ie(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xw(e,{style:t,vars:n},r,i){const s=e.style;let o;
162for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function IR(e){return window.getComputedStyle(e)}class FR extends vw{constructor(){super(...arguments),this.type="html",this.renderInstance=xw}readValueFromInstance(t,n){var r;if(Ii.has(n))return(r=this.projection)!=null&&r.isProjecting?kc(n):f2(t,n);{const i=IR(t),s=(af(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return iw(t,n)}build(t,n,r){Tf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Af(t,n,r)}}const ww=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 _R(e,t,n,r){xw(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ww.has(i)?i:Cf(i),t.attrs[i])}class VR extends vw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ye}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ii.has(n)){const r=Ax(n);return r&&r.default||0}return n=ww.has(n)?n:Cf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Yx(t,n,r)}build(t,n,r){Wx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){_R(t,n,r,i)}mount(t){this.isSVGTag=Kx(t.tagName),super.mount(t)}}const zR=(e,t)=>Pf(e)?new VR(t):new FR(t,{allowProjection:e!==b.Fragment}),BR=zA({...fN,...RR,...xR,...jR},zR),bw=dA(BR),$R={initial:{y:0},animate:{y:[-2,2,-2],transition:{duration:4,repeat:1/0,ease:"easeInOut"}}},Sw=b.forwardRef(({icon:e,label:t,onClick:n,className:r},i)=>g.jsxs(bw.button,{ref:i,whileHover:{scale:1.1,y:-2},whileTap:{scale:.95},onClick:n,className:Ue("relative group p-3 rounded-lg","hover:bg-secondary transition-colors",r),children:[g.jsx(e,{className:"w-5 h-5 text-foreground"}),g.jsx("span",{className:Ue("absolute -top-8 left-1/2 -translate-x-1/2","px-2 py-1 rounded text-xs","bg-popover text-popover-foreground","opacity-0 group-hover:opacity-100","transition-opacity whitespace-nowrap pointer-events-none"),children:t})]}));Sw.displayName="DockIconButton";const Cw=b.forwardRef(({items:e,className:t},n)=>g.jsx("div",{ref:n,className:Ue("w-full h-64 flex items-center justify-center p-2",t),children:g.jsx("div",{className:"w-full max-w-4xl h-64 rounded-2xl flex items-center justify-center relative",children:g.jsx(bw.div,{initial:"initial",animate:"animate",variants:$R,className:Ue("flex items-center gap-1 p-2 rounded-2xl","backdrop-blur-lg border shadow-lg","bg-background/90 border-border","hover:shadow-xl transition-shadow duration-300"),children:e.map(r=>g.jsx(Sw,{...r},r.label))})})}));Cw.displayName="Dock";function UR(){const e=[{icon:sC,label:"Home"},{icon:uC,label:"Search"},{icon:aC,label:"Music"},{icon:iC,label:"Favorites"},{icon:lC,label:"Add New"},{icon:$v,label:"Profile"},{icon:cC,label:"Settings"}];return g.jsx(Cw,{items:e})}const Tt=({text:e})=>{const[t,n]=b.useState(!1),r=async()=>{try{await navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)}catch(i){console.error("Failed to copy text: ",i)}};return g.jsxs("button",{onClick:r,className:"absolute top-3 right-3 p-2 rounded-md bg-white/80 hover:bg-white border border-gray-200 transition-all duration-200 group",title:"Copy prompt",children:[g.jsx(rC,{className:"w-4 h-4 text-[#5F5F5D] group-hover:text-[#1B1B1B]"}),t&&g.jsx("span",{className:"absolute -top-8 left-1/2 transform -translate-x-1/2 bg-gray-900 text-white text-xs px-2 py-1 rounded whitespace-nowrap [&]:!text-white",children:"Copied!"})]})},Bm=[{phase:"Phase 1: Lay the Foundation",phaseNumber:"01",chapters:[{number:"1",title:"Plan before you prompt",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Before using Lovable, define what you're building. Skipping this step is like starting a painting without deciding what you're painting. Use a quick planning session—pen and paper, voice notes, ChatGPT, whatever works—to answer these four questions:"}),g.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-gray-600",children:[g.jsx("li",{children:"What is this product or feature?"}),g.jsx("li",{children:"Who is it for?"}),g.jsx("li",{children:"Why will they use it?"}),g.jsx("li",{children:"What is the one key action the user should take?"})]}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"You're not writing a spec doc. You're setting direction. The more aligned your thinking, the sharper your prompts. Vague ideas produce vague outputs. Clear thinking leads to clear results."}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Build a one-page site for a budgeting app targeted at Gen Z freelancers. The main CTA should be 'Start Saving Smarter.' Focus on a bold, expressive aesthetic with large text and punchy colors."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:`"Bu
162ild a one-page site for a budgeting app targeted at Gen Z freelancers. The main CTA should be 'Start Saving Smarter.' Focus on a bold, expressive aesthetic with large text and punchy colors."`})]})]})]})},{number:"2",title:"Map the User Journey Visually",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Design isn't about individual screens—it's about what happens between them. The best outputs in Lovable come from clear, logical flow. Map the journey your user takes from landing on the page to completing a key action."}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-700",children:"Think in transitions:"}),g.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-gray-600",children:[g.jsx("li",{children:"What does the user see first?"}),g.jsx("li",{children:"What builds trust?"}),g.jsx("li",{children:"What gives them confidence to act?"}),g.jsx("li",{children:"Where does that action lead?"})]})]}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Even a simple 3-step sketch—Hero → Features → CTA—can make your prompts 10x more effective."}),g.jsxs("div",{className:"bg-[#F7F4ED] p-6 rounded-lg border-card-border border",children:[g.jsx("p",{className:"text-gray-700 text-sm mb-4",children:"Visual Flow Diagram:"}),g.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3 sm:gap-4",children:[g.jsx("div",{className:"bg-white px-3 py-2 rounded-md border-card-border border text-sm text-gray-700 text-center w-full sm:w-auto sm:min-w-[100px]",children:"Hero"}),g.jsx(Yl,{className:"w-5 h-5 text-gray-500 rotate-90 sm:rotate-0 flex-shrink-0"}),g.jsx("div",{className:"bg-white px-3 py-2 rounded-md border-card-border border text-sm text-gray-700 text-center w-full sm:w-auto sm:min-w-[100px]",children:"Value Prop Grid"}),g.jsx(Yl,{className:"w-5 h-5 text-gray-500 rotate-90 sm:rotate-0 flex-shrink-0"}),g.jsx("div",{className:"bg-white px-3 py-2 rounded-md border-card-border border text-sm text-gray-700 text-center w-full sm:w-auto sm:min-w-[100px]",children:"Testimonial"}),g.jsx(Yl,{className:"w-5 h-5 text-gray-500 rotate-90 sm:rotate-0 flex-shrink-0"}),g.jsx("div",{className:"bg-white px-3 py-2 rounded-md border-card-border border text-sm text-gray-700 text-center w-full sm:w-auto sm:min-w-[100px]",children:"CTA Button"})]})]}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4",children:g.jsx("p",{className:"text-gray-700 italic",children:`"You're not stacking blocks. You're guiding behavior. Every section should have a reason to exist—and a reason to lead to the next one."`})})]})},{number:"3",title:"Get the Design Right First",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Your visual language is a foundation, not a polish layer. Lovable needs to know the look and feel you want—early. Otherwise, your interface might function but feel totally wrong. Do not fix design problems later. Decide them up front."}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-700",children:"Choose a direction:"}),g.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-gray-600",children:[g.jsx("li",{children:"Calm and elegant?"}),g.jsx("li",{children:"Bold and disruptive?"}),g.jsx("li",{children:"Premium and sleek?"})]})]}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Then feed that style directly into your prompt using buzzwords, tone descriptors, and UI patterns."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:'You can even create a "starter style prompt" and reuse it across all sections for consistency.'}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4 mb-4",children:g.jsx("p",{className:"text-gray-700 italic",children:`"You don't prompt your way into good design. You prompt from it."`})}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Use a calm, wellness-ins
162pired design. Soft gradients, muted earth tones, round corners, and generous padding. Font is 'Inter'. Overall tone should feel gentle and reassuring."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:`"Use a calm, wellness-inspired design. Soft gradients, muted earth tones, round corners, and generous padding. Font is 'Inter'. Overall tone should feel gentle and reassuring."`})]})]})]})}]},{phase:"Phase 2: Think in Systems",phaseNumber:"02",chapters:[{number:"4",title:"Prompt by Component, Not Page",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Lovable works best when you build your UI in modular parts—not full pages at once. Asking it to generate an entire landing page is like dumping a recipe into a blender. You'll get something, but it won't be usable."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Instead, approach your prompts like building with Lego bricks. Each block should have one clear purpose and structure: a hero section, a feature grid, a testimonial slider, a pricing table. Build one, review it, refine it, then move to the next."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"When you prompt by component, you gain clarity, control, and flexibility. If something doesn't look right, you can fix just that block instead of re-prompting an entire page. This also helps you scale your design thinking across multiple pages—components can be reused and adapted without rewriting from scratch."}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4 mb-4",children:g.jsx("p",{className:"text-gray-700 italic",children:'"A full-page prompt gets you noise. A section-based prompt gets you signal."'})}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Create a floating menu bar with glassmorphism effect. Include Home, Search, Music, Favorites, Add, Profile, and Settings icons. Add gentle floating animation and smooth hover interactions."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:'"Create a floating menu bar with glassmorphism effect. Include Home, Search, Music, Favorites, Add, Profile, and Settings icons. Add gentle floating animation and smooth hover interactions."'})]})]}),g.jsx("div",{className:"mt-6",children:g.jsx(UR,{})})]})},{number:"5",title:"Design with Real Content",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:'Lovable does not work well with placeholder content like "lorem ipsum" or "feature 1 / feature 2." The model is trained to respond to structure and intent—and the fastest way to show intent is to use real words.'}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Even if your final copy isn't ready, use copy that reflects your message. If you're building a page for a meditation app, write what a user would actually read. Don't fake it."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"This doesn't just help Lovable generate better layouts and spacing—it helps you make smarter design decisions. A real headline might need 2 lines instead of 1. A CTA might work better if it's a verb instead of a noun. Placeholder text hides those issues. Real content reveals them early."}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4 mb-4",children:g.jsx("p",{className:"text-gray-700 italic",children:'"Design loves constraints. Real content creates the right ones."'})}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Hero section with headline: 'Design Calmly.' Subtext: 'Turn stress into structure with Lovable.' CTA: 'Start Building Free.' Use copy-centered layout with generous vertical spacing."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:`"Hero section with headline: 'Design Calmly.' Subtext: 'Turn stress into structure with Lovable.' CTA: 'Start Building Free.' Use copy-centered layout with generous vertical spacing."`})]})]})]})},{number:"6",title:"Speak Atomic: Buttons, Cards, Modals",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:'Lovable thinks in atoms. The smaller and more specific your UI language, the better it performs. Instead of asking for a "section with a signup," say, "Add a form with an input field for email and a rounded CTA button." These atomic instructions get interpreted as native patterns.'}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:`Think like a system. Describe cards, badges, toggles, chips, form fields, dropdowns, etc. Don't say "a user interface" when you can say "a modal with a success toast after submit."`}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"This atomic vocabulary also lets you layer complexity gradually. Start with a card. Then add a badge. Then add hover states. Each layer builds naturally on the last. This gives you more control and higher fidelity output—without rewriting prompts."}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4 mb-4",children:g.jsx("p",{className:"text-gray-700 italic",children:'"The smaller the part, the smarter the response."'})}),g.jsxs("div",{className:"bg-transparent p-6 rounded-lg px-0 py-0",children:[g.jsx("p",{className:"text-gray-700 text-sm mb-4",children:"Atomic UI Elements Examples:"}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[g.jsxs("div",{className:"p-4 rounded-lg border-card-border border text-center space-y-3 bg-transparent",children:[g.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wider",children:"Button"}),g.jsx(U0,{className:"w-full [&]:!text-white",children:"Follow User"}),g.jsx("p",{className:"text-xs text-gray-600",children:'"Create a follow button with hover states"'})]}),g.jsxs("div",{className:"p-4 rounded-lg border-card-border border text-center space-y-3 bg-transparent",children:[g.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wider",children:"Card"}),g.jsxs("div",{className:"bg-gray-50 p-3 rounded-md border-card-border border",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx($v,{className:"w-4 h-4 text-gray-600"}),g.jsx("span",{className:"text-sm",children:"John Doe"})]}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(dC,{className:"w-3 h-3 text-yellow-500"}),g.jsx("span",{className:"text-xs text-gray-600",children:"4.9 rating"})]})]}),g.jsx("p",{className:"text-xs text-gray-600",children:'"Card with user info and rating"'})]}),g.jsxs("div",{className:"p-4 rounded-lg border-card-border border text-center space-y-3 bg-transparent",children:[g.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wider",children:"Toggle"}),g.jsx("div",{className:"flex justify-center",children:g.jsx(ak,{})}),g.jsx("p",{className:"text-xs text-gray-600",children:'"Theme toggle with smooth animation"'})]})]})]}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Create a card with a user profile picture, name, and a follow button. Add a badge for verified users, and show a tooltip when hovering over the badge."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:'"Create a card with a user profile picture, name, and a follow button. Add a badge for verified users, and show a tooltip when hovering over the badge."'})]})]})]})},{number:"7",title:"Use Buzzwords to Dial In Aesthetic",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Visual style is one of the most important—and most misunderstood—parts of prompting in Lovable. It's not enough to describe layout. You need to guide the tool on vibe. Buzzwords are the fastest way to do that."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:`Lovable understands terms like "minimal," "expressive," "cinematic," "playful," "premium," and "developer-focused." These aren't fluff—they're promptable parameters that influence typography, spacing, shadow, border radius, and color palette.`}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:`Use these words early in your prompts. Better yet, include them in every section. You'll get cohesive designs across the board and avoid the dreaded "default UI" look.`}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:`You can also mix and match buzzwords to evolve your tone. A page can start "bold and disruptive" in the hero and become "calm and reassuring" in the pricing section. You're not stuck with one style—you're designing with intention.`}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4 mb-4",children:g.jsx("p",{className:"text-gray-700 italic",children:`"Design isn't just structure. It's tone. Buzzwords define it."`})}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Design a landing page hero that feels premium and cinematic. Use layered depth, translucent surfaces, soft motion blur, and dramatic contrast between headline and background."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:'"Design a landing page hero that feels premium and cinematic. Use layered depth, translucent surfaces, soft motion blur, and dramatic contrast between headline and background."'})]})]})]})}]},{phase:"Phase 3: Build with Precision",phaseNumber:"03",chapters:[{number:"8",title:"Use Prompt Patterns for Layouts",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Prompts are easier to write—and far more effective—when you use structured, repeatable patterns. Think of them as layout recipes. Rather than trying to explain your layout from scratch every time, describe it using a consistent rhythm."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:`A good layout prompt breaks the section into visual parts, clarifies their order, and defines how they're styled. Most patterns follow a "header → content → action" structure, but you can customize that flow depending on what you're designing.`}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Start building a personal prompt library. For example, write a go-to structure for a feature grid, a testimonial slider, or a pricing table. Reuse and remix these patterns with slight modifications to match different pages."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"This isn't about being rigid. It's about being efficient. Lovable responds best to prompt language that is structured, scoped, and predictable. Prompt patterns make you faster and your output more consistent across screens."}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Create a feature section with a centered headline, followed by three horizontally aligned cards. Each card includes an icon on top, a headline, and a short description. Cards should have soft shadows and lift on hover."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:'"Create a feature section with a centered headline, followed by three horizontally aligned cards. Each card includes an icon on top, a headline, and a short description. Cards should have soft shadows and lift on hover."'})]})]})]})},{number:"9",title:"Add Visuals via URL",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Want your layout to feel real? Drop in product demos, Midjourney-generated clips, or tutorial videos using URLs. Lovable supports video embeds when prompted clearly."}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-700",children:"Prompt for:"}),g.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-gray-600",children:[g.jsx("li",{children:"Placement (e.g. below hero or inside a feature card)"}),g.jsx("li",{children:"Style (e.g. rounded corners, autoplay, muted)"}),g.jsx("li",{children:"Context (why it's there)"})]})]}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Embed a product demo video from Midjourney. Use this URL: [your-link.mp4]. Place it below the feature section in a full-width card with a soft shadow."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:'"Embed a product demo video from Midjourney. Use this URL: [your-link.mp4]. Place it below the feature section in a full-width card with a soft shadow."'})]})]}
162),g.jsxs("div",{className:"relative w-full h-64 rounded-lg overflow-hidden",children:[g.jsx("video",{src:"https://cdn.midjourney.com/video/cb84f296-92a0-4a37-a0e3-1c9c95299488/0.mp4",autoPlay:!0,muted:!0,loop:!0,className:"absolute inset-0 w-full h-full object-cover"}),g.jsx("div",{className:"absolute inset-0 bg-black/50"})]})]})},{number:"10",title:"Layer Context with the Edit Button",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"The edit button is one of the most powerful features in Lovable—but only if you use it properly. Instead of rewriting full prompts when something needs to change, use the edit function to focus on specific layers or elements. This lets you iterate quickly without disturbing what's already working."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Think of edits like design overrides. They're not replacements—they're adjustments. For example, you can select a CTA button and change just the copy, or tweak a card layout without affecting the typography of the entire section."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"This keeps your project clean and modular. You avoid prompt bloat, you move faster, and you reduce the risk of breaking something that was already fine. Editing also gives you more confidence to experiment—since you're not starting over every time."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:'When editing, be precise in your language. Say exactly what you want to change and what should stay the same. Use direction like "replace," "update," or "adjust" instead of general statements like "make this better."'}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example (within edit):"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Change the CTA button text to 'Get Started' and increase the padding to 24px horizontal. Keep the existing background color and font."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:`"Change the CTA button text to 'Get Started' and increase the padding to 24px horizontal. Keep the existing background color and font."`})]})]})]})}]},{phase:"Phase 4: Iterate and Ship",phaseNumber:"04",chapters:[{number:"11",title:"Build with Supabase in Mind",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Designing a layout is just one part of building a product. If you want your Lovable projects to do more than look good, you need to think about how they'll actually work—and Supabase is a great place to start."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Supabase handles user authentication, databases, storage, and even edge functions—all in a way that pairs well with modern frontends. And Lovable lets you shape your UI to match these real-world behaviors right from the prompt."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"When you're designing with Supabase in mind, start by anticipating:"}),g.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-gray-600",children:[g.jsxs("li",{children:[g.jsx("strong",{children:"Auth logic"})," — What should the UI show if the user is logged in vs logged out?"]}),g.jsxs("li",{children:[g.jsx("strong",{children:"Dynamic content"})," — Are you pulling user data, posts, items, or metrics from a table?"]}),g.jsxs("li",{children:[g.jsx("strong",{children:"States"})," — What happens if the data is empty, still loading, or fails?"]})]}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"This early thinking helps you prompt smarter sections and makes development smoother later."}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Example:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"If the user is logged in via Supabase, show their profile image and name in the top right. If not, display a 'Log In' button and route them to the auth screen."}),g.jsx("code",{className:"text-sm text-gray-800 block",children:`"If the user is logged in via Supabase, show their profile image and name in the top right. If not, display a 'Log In' button and route them to the auth screen."`})]})]}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4",children:g.jsxs("p",{className:"text-gray-700 italic",children:[g.jsx("strong",{children:"Tip:"})," You don't need a working backend during design—but shaping your UI as if it's already there is how you future-proof your layout."]})})]})},{number:"12",title:"Version Control is Your Friend",content:g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Lovable autosaves your changes, but that doesn't mean you should move fast without thinking. If you're not keeping track of what you changed and why, you're just making noise—and you'll lose control quickly."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Good versioning isn't about naming files. It's about thinking in iterations. Make one meaningful change at a time. Update your hero copy. Add a feature grid. Adjust the layout. Check the result. Then move forward."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"This is how real design systems are built—layer by layer, with intention."}),g.jsx("p",{className:"text-gray-600 leading-relaxed",children:"Even though Lovable manages the versions in the background, adopt your own system:"}),g.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-gray-600",children:[g.jsx("li",{children:"Think in milestones (e.g. layout locked, content added, logic wired)"}),g.jsx("li",{children:'Use notes in your prompts (e.g. "Changed CTA text and adjusted card spacing")'}),g.jsx("li",{children:"Preview before major changes, and duplicate if you're about to take a risky leap"})]}),g.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4 mb-4",children:g.jsx("p",{className:"text-gray-700 italic",children:`"Autosave doesn't mean auto-organized. Build intentionally. Iterate with awareness."`})}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-gray-800",children:"Prompt Habit:"}),g.jsxs("div",{className:"relative bg-[#F7F4ED] p-4 pr-12 rounded-lg border-card-border border",children:[g.jsx(Tt,{text:"Before making a major change, duplicate the current version and label it. Small cost, big safety net."}),g.jsx("p",{className:"text-sm text-gray-800",children:"Before making a major change, duplicate the current version and label it. Small cost, big safety net."})]})]})]})}]}],WR=()=>{const[e,t]=b.useState("1");return b.useEffect(()=>
162{const n={root:null,rootMargin:"-20% 0px -60% 0px",threshold:.1},r=s=>{s.forEach(o=>{if(o.isIntersecting){const a=o.target.id.replace("chapter-","");t(a),window.dispatchEvent(new CustomEvent("activeChapterChange",{detail:{activeChapter:a}}))}})},i=new IntersectionObserver(r,n);return Bm.forEach(s=>{s.chapters.forEach(o=>{const a=document.getElementById(`chapter-${o.number}`);a&&i.observe(a)})}),()=>i.disconnect()},[]),g.jsxs("div",{className:"max-w-3xl mx-auto py-16 px-8",children:[g.jsxs("div",{className:"mb-20",children:[g.jsx("p",{className:"text-gray-500 mb-4 text-sm",children:"ULTIMATE PROMPT GUIDE"}),g.jsx("h1",{className:"text-gray-900 mb-6 leading-snug font-bold text-4xl",children:"How to prompt better products with AI"}),g.jsx("p",{className:"text-gray-600 leading-relaxed mb-8",children:"Turn your ideas into high-quality UI faster. Use these prompt hacks to think clearer, move quicker, and build better with Lovable."}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mb-8",children:[g.jsx("a",{href:"https://lovable.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center h-9 px-4 py-2 text-sm bg-[#1B1B1B] text-white hover:bg-[#333333] rounded-md transition-colors [&]:!text-white",children:"Try Lovable for free"}),g.jsx("a",{href:"https://designplusai.com/s/ai-prompt-hacks",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center h-9 px-4 py-2 text-sm bg-white text-[#1B1B1B] border border-gray-300 hover:bg-gray-50 rounded-md transition-colors",children:"Follow for more"})]}),g.jsx("div",{className:"mb-8 -mx-8 md:mx-0",children:g.jsx("div",{className:"relative overflow-hidden rounded-none md:rounded-2xl text-center py-32 px-8",style:{backgroundImage:"url('/lovable-uploads/014b7e2f-7c28-4f31-a02d-589d8ff6deaa.png')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},children:g.jsx("div",{className:"relative z-10"})})})]}),Bm.map((n,r)=>g.jsxs("div",{className:"mb-16",children:[g.jsx("div",{className:"mb-8",children:g.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-1",children:n.phase})}),g.jsx("div",{className:"space-y-12",children:n.chapters.map((i,s)=>g.jsxs("div",{id:`chapter-${i.number}`,className:"py-4",children:[g.jsxs("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:[i.number,". ",i.title]}),g.jsx("div",{className:"text-gray-600 leading-relaxed",children:typeof i.content=="string"?g.jsx("p",{children:i.content}):i.content})]},s))})]},r))]})},HR=()=>{const[e,t]=b.useState(!1);return g.jsxs("div",{className:"min-h-screen bg-[#FCFBF8]",children:[g.jsx(ok,{isMobileMenuOpen:e,setIsMobileMenuOpen:t}),g.jsx("main",{className:"lg:pl-80 pt-16 lg:pt-0",children:g.jsx("div",{className:"max-w-4xl mx-auto px-2 sm:px-4 lg:px-8 py-6 lg:py-8",children:g.jsx(WR,{})})})]})},KR=()=>{const e=$0();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:g.jsxs("div",{className:"text-center",children:[g.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),g.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),g.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},GR=new vP,YR=()=>g.jsx(wP,{client:GR,children:g.jsxs(QE,{children:[g.jsx(GC,{}),g.jsx(ST,{}),g.jsx(ik,{children:g.jsxs(tk,{children:[g.jsx(xc,{path:"/",element:g.jsx(HR,{})}),g.jsx(xc,{path:"*",element:g.jsx(KR,{})})]})})]})});cv(document.getElementById("root")).render(g.jsx(YR,{}));

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.