PageSourceSearch

https://lonelydog.com/assets/index-rZ-ZJwaF.js

js lonelydog.com collected 2026-10-03 21:36:13 UTC 482,416 bytes, 108 lines download raw bytes

vendor: 2,696 bytes, lines 1-9
1var VS=Object.defineProperty;var Zh=e=>{throw TypeError(e)};var FS=(e,t,n)=>t in e?VS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var on=(e,t,n)=>FS(e,typeof t!="symbol"?t+"":t,n),cu=(e,t,n)=>t.has(e)||Zh("Cannot "+n);var A=(e,t,n)=>(cu(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Zh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(cu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Re=(e,t,n)=>(cu(e,t,"access private method"),n);var jo=(e,t,n,r)=>({set _(i){U(e,t,i,n)},get _(){return A(e,t,r)}});function zS(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 wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jy={exports:{}},Cl={},Iy={exports:{}},X={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var xo=Symbol.for("react.element"),BS=Symbol.for("react.portal"),$S=Symbol.for("react.fragment"),US=Symbol.for("react.strict_mode"),WS=Symbol.for("react.profiler"),HS=Symbol.for("react.provider"),KS=Symbol.for("react.context"),GS=Symbol.for("react.forward_ref"),YS=Symbol.for("react.suspense"),QS=Symbol.for("react.memo"),XS=Symbol.for("react.lazy"),Jh=Symbol.iterator;function qS(e){return e===null||typeof e!="object"?null:(e=Jh&&e[Jh]||e["@@iterator"],typeof e=="function"?e:null)}var _y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vy=Object.assign,Fy={};
vendor: 10,566 bytes, lines 9-25
9function es(e,t,n){this.props=e,this.context=t,this.refs=Fy,this.updater=n||_y}es.prototype.isReactComponent={};es.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")};es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zy(){}zy.prototype=es.prototype;function ef(e,t,n){this.props=e,this.context=t,this.refs=Fy,this.updater=n||_y}var tf=ef.prototype=new zy;tf.constructor=ef;Vy(tf,es.prototype);tf.isPureReactComponent=!0;var ep=Array.isArray,By=Object.prototype.hasOwnProperty,nf={current:null},$y={key:!0,ref:!0,__self:!0,__source:!0};function Uy(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)By.call(t,r)&&!$y.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:xo,type:e,key:s,ref:o,props:i,_owner:nf.current}}function ZS(e,t){return{$$typeof:xo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rf(e){return typeof e=="object"&&e!==null&&e.$$typeof===xo}function JS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tp=/\/+/g;function du(e,t){return typeof e=="object"&&e!==null&&e.key!=null?JS(""+e.key):t.toString(36)}function ca(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 xo:case BS:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+du(o,0):r,ep(i)?(n="",e!=null&&(n=e.replace(tp,"$&/")+"/"),ca(i,t,n,"",function(u){return u})):i!=null&&(rf(i)&&(i=ZS(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(tp,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",ep(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+du(s,a);o+=ca(s,t,n,l,i)}else if(l=qS(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+du(s,a++),o+=ca(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 Io(e,t,n){if(e==null)return e;var r=[],i=0;return ca(e,r,"","",function(s){return t.call(n,s,i++)}),r}function eT(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 He={current:null},da={transition:null},tT={ReactCurrentDispatcher:He,ReactCurrentBatchConfig:da,ReactCurrentOwner:nf};function Wy(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Io,forEach:function(e,t,n){Io(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Io(e,function(){t++}),t},toArray:function(e){return Io(e,function(t){return t})||[]},only:function(e){if(!rf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=es;X.Fragment=$S;X.Profiler=WS;X.PureComponent=ef;X.StrictMode=US;X.Suspense=YS;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tT;X.act=Wy;X.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Vy({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=nf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)By.call(t,l)&&!$y.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:xo,type:e.type,key:i,ref:s,props:r,_owner:o}};X.createContext=function(e){return e={$$typeof:KS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:HS,_context:e},e.Consumer=e};X.createElement=Uy;X.createFactory=function(e){var t=Uy.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:GS,render:e}};X.isValidElement=rf;X.lazy=function(e){return{$$typeof:XS,_payload:{_status:-1,_result:e},_init:eT}};X.memo=function(e,t){return{$$typeof:QS,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=da.transition;da.transition={};try{e()}finally{da.transition=t}};X.unstable_act=Wy;X.useCallback=function(e,t){return He.current.useCallback(e,t)};X.useContext=function(e){return He.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return He.current.useDeferredValue(e)};X.useEffect=function(e,t){return He.current.useEffect(e,t)};X.useId=function(){return He.current.useId()};X.useImperativeHandle=function(e,t,n){return He.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return He.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return He.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return He.current.useMemo(e,t)};X.useReducer=function(e,t,n){return He.current.useReducer(e,t,n)};X.useRef=function(e){return He.current.useRef(e)};X.useState=function(e){return He.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return He.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return He.current.useTransition()};X.version="18.3.1";Iy.exports=X;var x=Iy.exports;const N=wo(x),sf=zS({__proto__:null,default:N},[x]);/**
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 nT=x,rT=Symbol.for("react.element"),iT=Symbol.for("react.fragment"),sT=Object.prototype.hasOwnProperty,oT=nT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aT={key:!0,ref:!0,__self:!0,__source:!0};function Hy(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)sT.call(t,r)&&!aT.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:rT,type:e,key:s,ref:o,props:i,_owner:oT.current}}Cl.Fragment=iT;Cl.jsx=Hy;Cl.jsxs=Hy;jy.exports=Cl;var T=jy.exports,Ky={exports:{}},ct={},Gy={exports:{}},Yy={};/**
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(k,M){var I=k.length;k.push(M);e:for(;0<I;){var $=I-1>>>1,B=k[$];if(0<i(B,M))k[$]=M,k[I]=B,I=$;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var M=k[0],I=k.pop();if(I!==M){k[0]=I;e:for(var $=0,B=k.length,Q=B>>>1;$<Q;){var q=2*($+1)-1,ve=k[q],Le=q+1,te=k[Le];if(0>i(ve,I))Le<B&&0>i(te,ve)?(k[$]=te,k[Le]=I,$=Le):(k[$]=ve,k[q]=I,$=q);else if(Le<B&&0>i(te,I))k[$]=te,k[Le]=I,$=Le;else break e}}return M}function i(k,M){var I=k.sortIndex-M.sortIndex;return I!==0?I:k.id-M.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,d=null,f=3,h=!1,y=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=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(k){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=k)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function S(k){if(g=!1,v(k),!y)if(n(l)!==null)y=!0,z(E);else{var M=n(u);M!==null&&K(S,M.startTime-k)}}function E(k,M){y=!1,g&&(g=!1,m(P),P=-1),h=!0;var I=f;try{for(v(M),d=n(l);d!==null&&(!(d.expirationTime>M)||k&&!_());){var $=d.callback;if(typeof $=="function"){d.callback=null,f=d.priorityLevel;var B=$(d.expirationTime<=M);M=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),v(M)}else r(l);d=n(l)}if(d!==null)var Q=!0;else{var q=n(u);q!==null&&K(S,q.startTime-M),Q=!1}return Q}finally{d=null,f=I,h=!1}}var C=!1,b=null,P=-1,D=5,R=-1;function _(){return!(e.unstable_now()-R<D)}function j(){if(b!==null){var k=e.unstable_now();R=k;var M=!0;try{M=b(!0,k)}finally{M?W():(C=!1,b=null)}}else C=!1}var W;if(typeof p=="function")W=function(){p(j)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,H=L.port2;L.port1.onmessage=j,W=function(){H.postMessage(null)}}else W=function(){w(j,0)};function z(k){b=k,C||(C=!0,W())}function K(k,M){P=w(function(){k(e.unstable_now())},M)}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(k){k.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,z(E))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var I=f;f=M;try{return k()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,M){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var I=f;f=k;try{return M()}finally{f=I}},e.unstable_scheduleCallback=function(k,M,I){var $=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?$+I:$):I=$,k){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}
vendor: 4,614 bytes, lines 25-33
25return B=I+B,k={id:c++,callback:M,priorityLevel:k,startTime:I,expirationTime:B,sortIndex:-1},I>$?(k.sortIndex=I,t(u,k),n(l)===null&&k===n(u)&&(g?(m(P),P=-1):g=!0,K(S,I-$))):(k.sortIndex=B,t(l,k),y||h||(y=!0,z(E))),k},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(k){var M=f;return function(){var I=f;f=M;try{return k.apply(this,arguments)}finally{f=I}}}})(Yy);Gy.exports=Yy;var lT=Gy.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 uT=x,ut=lT;function O(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 Qy=new Set,Ks={};function Gr(e,t){Bi(e,t),Bi(e+"Capture",t)}function Bi(e,t){for(Ks[e]=t,e=0;e<t.length;e++)Qy.add(t[e])}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fc=Object.prototype.hasOwnProperty,cT=/^[: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]*$/,np={},rp={};function dT(e){return fc.call(rp,e)?!0:fc.call(np,e)?!1:cT.test(e)?rp[e]=!0:(np[e]=!0,!1)}function fT(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 hT(e,t,n,r){if(t===null||typeof t>"u"||fT(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 Ke(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 De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var of=/[\-:]([a-z])/g;function af(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
33-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(of,af);De[t]=new Ke(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(of,af);De[t]=new Ke(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(of,af);De[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function lf(e,t,n,r){var i=De.hasOwnProperty(t)?De[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(hT(t,n,i,r)&&(n=null),r||i===null?dT(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 En=uT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_o=Symbol.for("react.element"),si=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),uf=Symbol.for("react.strict_mode"),hc=Symbol.for("react.profiler"),Xy=Symbol.for("react.provider"),qy=Symbol.for("react.context"),cf=Symbol.for("react.forward_ref"),pc=Symbol.for("react.suspense"),mc=Symbol.for("react.suspense_list"),df=Symbol.for("react.memo"),In=Symbol.for("react.lazy"),Zy=Symbol.for("react.offscreen"),ip=Symbol.iterator;function ds(e){return e===null||typeof e!="object"?null:(e=ip&&e[ip]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,fu;function Cs(e){if(fu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);fu=t&&t[1]||""}return`
34`+fu+e}var hu=!1;function pu(e,t){if(!e||hu)return"";hu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35`),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{hu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cs(e):""}function pT(e){switch(e.tag){case 5:return Cs(e.type);case 16:return Cs("Lazy");case 13:return Cs("Suspense");case 19:return Cs("SuspenseList");case 0:case 2:case 15:return e=pu(e.type,!1),e;case 11:return e=pu(e.type.render,!1),e;case 1:return e=pu(e.type,!0),e;default:return""}}function gc(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 oi:return"Fragment";case si:return"Portal";case hc:return"Profiler";case uf:return"StrictMode";case pc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qy:return(e.displayName||"Context")+".Consumer";case Xy:return(e._context.displayName||"Context")+".Provider";case cf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case df:return t=e.displayName||null,t!==null?t:gc(e.type)||"Memo";case In:t=e._payload,e=e._init;try{return gc(e(t))}catch{}}return null}function mT(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 gc(t);case 8:return t===uf?"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 ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gT(e){var t=Jy(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 Vo(e){e._valueTracker||(e._valueTracker=gT(e))}function ev(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ja(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 yc(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ir(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 tv(e,t){t=t.checked,t!=null&&lf(e,"checked",t,!1)}function vc(e,t){tv(e,t);
vendor: 4,567 bytes, line 37
37var n=ir(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")?wc(e,t.type,n):t.hasOwnProperty("defaultValue")&&wc(e,t.type,ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(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 wc(e,t,n){(t!=="number"||ja(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bs=Array.isArray;function Si(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=""+ir(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 xc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ap(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(bs(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ir(n)}}function nv(e,t){var n=ir(t.value),r=ir(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 lp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rv(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 Sc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fo,iv=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 Ns={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},yT=["Webkit","ms","Moz","O"];Object.keys(Ns).forEach(function(e){yT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ns[t]=Ns[e]})});function sv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ns.hasOwnProperty(e)&&Ns[e]?(""+t).trim():t+"px"}function ov(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var vT=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 Tc(e,t){if(t){if(vT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Ec(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 Cc=null;function ff(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bc=null,Ti=null,Ei=null;function up(e){if(e=Eo(e)){if(typeof bc!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Rl(t),bc(e.stateNode,e.type,t))}}function av(e){Ti?Ei?Ei.push(e):Ei=[e]:Ti=e}function lv(){if(Ti){var e=Ti,t=Ei;if(Ei=Ti=null,up(e),t)for(e=0;e<t.length;e++)up(t[e])}}function uv(e,t){return e(t)}function cv(){}var mu=!1;function dv(e,t,n){if(mu)return e(t,n);mu=!0;try{return uv(e,t,n)}finally{mu=!1,(Ti!==null||Ei!==null)&&(cv(),lv())}}function Ys(e,t){var n=e.stateNode;if(n===null)return null;var r=Rl(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(O(231,t,typeof n));return n}var Pc=!1;if(yn)try{var fs={};Object.defineProperty(fs,"passive",{get:function(){Pc=!0}}),window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{Pc=!1}function wT(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 Os=!1,Ia=null,_a=!1,kc=null,xT={onError:function(e){Os=!0,Ia=e}};function ST(e,t,n,r,i,s,o,a,l){Os=!1,Ia=null,wT.apply(xT,arguments)}function TT(e,t,n,r,i,s,o,a,l){if(ST.apply(this,arguments),Os){if(Os){var u=Ia;Os=!1,Ia=null}else throw Error(O(198));_a||(_a=!0,kc=u)}}function Yr(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 fv(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 cp(e){if(Yr(e)!==e)throw Error(O(188))}function ET(e){var t=e.alternate;if(!t){if(t=Yr(e),t===null)throw Error(O(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 cp(i),e;if(s===r)return cp(i),t;s=s.sibling}throw Error(O(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(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function hv(e){return e=ET(e),e!==null?pv(e):null}function pv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pv(e);if(t!==null)return t;e=e.sibling}return null}var mv=ut.unstable_scheduleCallback,dp=ut.unstable_cancelCallback,CT=ut.unstable_shouldYield,bT=ut.unstable_requestPaint,ye=ut.unstable_now,PT=ut.unstable_getCurrentPriorityLevel,hf=ut.unstable_ImmediatePriority,gv=ut.unstable_UserBlockingPriority,Va=ut.unstable_NormalPriority,kT=ut.unstable_LowPriority,yv=ut.unstable_IdlePriority,bl=null,en=null;function AT(e){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(bl,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:NT,RT=Math.log,MT=Math.LN2;function NT(e){return e>>>=0,e===0?32:31-(RT(e)/MT|0)|0}var zo=64,Bo=4194304;function Ps(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 Fa(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=Ps(a):(s&=o,s!==0&&(r=Ps(s)))}else o=n&~i,o!==0?r=Ps(o):s!==0&&(r=Ps(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-_t(t),i=1<<n,r|=e[n],t&=~i;return r}function OT(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 DT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-_t(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=OT(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Ac(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vv(){var e=zo;return zo<<=1,!(zo&4194240)&&(zo=64),e}function gu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function So(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function LT(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-_t(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function pf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ne=0;function wv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xv,mf,Sv,Tv,Ev,Rc=!1,$o=[],Xn=null,qn=null,Zn=null,Qs=new Map,Xs=new Map,Vn=[],jT="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 fp(e,t){switch(e){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":Qs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(t.pointerId)}}function hs(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=Eo(t),t!==null&&mf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function IT(e,t,n,r,i){switch(t){case"focusin":return Xn=hs(Xn,e,t,n,r,i),!0;case"dragenter":return qn=hs(qn,e,t,n,r,i),!0;case"mouseover":return Zn=hs(Zn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Qs.set(s,hs(Qs.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Xs.set(s,hs(Xs.get(s)||null,e,t,n,r,i)),!0}return!1}function Cv(e){var t=br(e.target);if(t!==null){var n=Yr(t);if(n!==null){if(t=n.tag,t===13){if(t=fv(n),t!==null){e.blockedOn=t,Ev(e.priority,function(){Sv(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 fa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cc=r,n.target.dispatchEvent(r),Cc=null}else return t=Eo(n),t!==null&&mf(t),e.blockedOn=n,!1;t.shift()}return!0}function hp(e,t,n){fa(e)&&n.delete(t)}function _T(){Rc=!1,Xn!==null&&fa(Xn)&&(Xn=null),qn!==null&&fa(qn)&&(qn=null),Zn!==null&&fa(Zn)&&(Zn=null),Qs.forEach(hp),Xs.forEach(hp)}function ps(e,t){e.blockedOn===t&&(e.blockedOn=null,Rc||(Rc=!0,ut.unstable_scheduleCallback(ut.unstable_NormalPriority,_T)))}function qs(e){function t(i){return ps(i,e)}if(0<$o.length){ps($o[0],e);for(var n=1;n<$o.length;n++){var r=$o[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xn!==null&&ps(Xn,e),qn!==null&&ps(qn,e),Zn!==null&&ps(Zn,e),Qs.forEach(t),Xs.forEach(t),n=0;n<Vn.length;n++)r=Vn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vn.length&&(n=Vn[0],n.blockedOn===null);)Cv(n),n.blockedOn===null&&Vn.shift()}var Ci=En.ReactCurrentBatchConfig,za=!0;function VT(e,t,n,r){var i=ne,s=Ci.transition;Ci.transition=null;try{ne=1,gf(e,t,n,r)}finally{ne=i,Ci.transition=s}}function FT(e,t,n,r){var i=ne,s=Ci.transition;Ci.transition=null;try{ne=4,gf(e,t,n,r)}finally{ne=i,Ci.transition=s}}function gf(e,t,n,r){if(za){var i=Mc(e,t,n,r);if(i===null)Pu(e,t,r,Ba,n),fp(e,r);else if(IT(i,e,t,n,r))r.stopPropagation();else if(fp(e,r),t&4&&-1<jT.indexOf(e)){for(;i!==null;){var s=Eo(i);if(s!==null&&xv(s),s=Mc(e,t,n,r),s===null&&Pu(e,t,r,Ba,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Pu(e,t,r,null,n)}}var Ba=null;function Mc(e,t,n,r){if(Ba=null,e=ff(r),e=br(e),e!==null)if(t=Yr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fv(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 Ba=e,null}
vendor: 9,127 bytes, line 37
37function bv(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(PT()){case hf:return 1;case gv:return 4;case Va:case kT:return 16;case yv:return 536870912;default:return 16}default:return 16}}var Kn=null,yf=null,ha=null;function Pv(){if(ha)return ha;var e,t=yf,n=t.length,r,i="value"in Kn?Kn.value:Kn.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 ha=i.slice(e,1<r?1-r:void 0)}function pa(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 Uo(){return!0}function pp(){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)?Uo:pp,this.isPropagationStopped=pp,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=Uo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Uo)},persist:function(){},isPersistent:Uo}),t}var ts={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vf=dt(ts),To=he({},ts,{view:0,detail:0}),zT=dt(To),yu,vu,ms,Pl=he({},To,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wf,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!==ms&&(ms&&e.type==="mousemove"?(yu=e.screenX-ms.screenX,vu=e.screenY-ms.screenY):vu=yu=0,ms=e),yu)},movementY:function(e){return"movementY"in e?e.movementY:vu}}),mp=dt(Pl),BT=he({},Pl,{dataTransfer:0}),$T=dt(BT),UT=he({},To,{relatedTarget:0}),wu=dt(UT),WT=he({},ts,{animationName:0,elapsedTime:0,pseudoElement:0}),HT=dt(WT),KT=he({},ts,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),GT=dt(KT),YT=he({},ts,{data:0}),gp=dt(YT),QT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XT={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"},qT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qT[e])?!!t[e]:!1}function wf(){return ZT}var JT=he({},To,{key:function(e){if(e.key){var t=QT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?XT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wf,charCode:function(e){return e.type==="keypress"?pa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eE=dt(JT),tE=he({},Pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yp=dt(tE),nE=he({},To,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wf}),rE=dt(nE),iE=he({},ts,{propertyName:0,elapsedTime:0,pseudoElement:0}),sE=dt(iE),oE=he({},Pl,{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}),aE=dt(oE),lE=[9,13,27,32],xf=yn&&"CompositionEvent"in window,Ds=null;yn&&"documentMode"in document&&(Ds=document.documentMode);var uE=yn&&"TextEvent"in window&&!Ds,kv=yn&&(!xf||Ds&&8<Ds&&11>=Ds),vp=" ",wp=!1;function Av(e,t){switch(e){case"keyup":return lE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function cE(e,t){switch(e){case"compositionend":return Rv(t);case"keypress":return t.which!==32?null:(wp=!0,vp);case"textInput":return e=t.data,e===vp&&wp?null:e;default:return null}}function dE(e,t){if(ai)return e==="compositionend"||!xf&&Av(e,t)?(e=Pv(),ha=yf=Kn=null,ai=!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 kv&&t.locale!=="ko"?null:t.data;default:return null}}var fE={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 xp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fE[e.type]:t==="textarea"}function Mv(e,t,n,r){av(r),t=$a(t,"onChange"),0<t.length&&(n=new vf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ls=null,Zs=null;function hE(e){Bv(e,0)}function kl(e){var t=ci(e);if(ev(t))return e}function pE(e,t){if(e==="change")return t}var Nv=!1;if(yn){var xu;if(yn){var Su="oninput"in document;if(!Su){var Sp=document.createElement("div");Sp.setAttribute("oninput","return;"),Su=typeof Sp.oninput=="function"}xu=Su}else xu=!1;Nv=xu&&(!document.documentMode||9<document.documentMode)}function Tp(){Ls&&(Ls.detachEvent("onpropertychange",Ov),Zs=Ls=null)}function Ov(e){if(e.propertyName==="value"&&kl(Zs)){var t=[];Mv(t,Zs,e,ff(e)),dv(hE,t)}}function mE(e,t,n){e==="focusin"?(Tp(),Ls=t,Zs=n,Ls.attachEvent("onpropertychange",Ov)):e==="focusout"&&Tp()}function gE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kl(Zs)}function yE(e,t){if(e==="click")return kl(t)}function vE(e,t){if(e==="input"||e==="change")return kl(t)}function wE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:wE;function Js(e,t){if(zt(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(!fc.call(t,i)||!zt(e[i],t[i]))return!1}return!0}function Ep(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cp(e,t){var n=Ep(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=Ep(n)}}function Dv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lv(){for(var e=window,t=ja();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function Sf(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 xE(e){var t=Lv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dv(n.ownerDocument.documentElement,n)){if(r!==null&&Sf(n)){if
vendor: 4,319 bytes, line 37
37(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=Cp(n,s);var o=Cp(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 SE=yn&&"documentMode"in document&&11>=document.documentMode,li=null,Nc=null,js=null,Oc=!1;function bp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Oc||li==null||li!==ja(r)||(r=li,"selectionStart"in r&&Sf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),js&&Js(js,r)||(js=r,r=$a(Nc,"onSelect"),0<r.length&&(t=new vf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function Wo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ui={animationend:Wo("Animation","AnimationEnd"),animationiteration:Wo("Animation","AnimationIteration"),animationstart:Wo("Animation","AnimationStart"),transitionend:Wo("Transition","TransitionEnd")},Tu={},jv={};yn&&(jv=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function Al(e){if(Tu[e])return Tu[e];if(!ui[e])return e;var t=ui[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jv)return Tu[e]=t[n];return e}var Iv=Al("animationend"),_v=Al("animationiteration"),Vv=Al("animationstart"),Fv=Al("transitionend"),zv=new Map,Pp="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 dr(e,t){zv.set(e,t),Gr(t,[e])}for(var Eu=0;Eu<Pp.length;Eu++){var Cu=Pp[Eu],TE=Cu.toLowerCase(),EE=Cu[0].toUpperCase()+Cu.slice(1);dr(TE,"on"+EE)}dr(Iv,"onAnimationEnd");dr(_v,"onAnimationIteration");dr(Vv,"onAnimationStart");dr("dblclick","onDoubleClick");dr("focusin","onFocus");dr("focusout","onBlur");dr(Fv,"onTransitionEnd");Bi("onMouseEnter",["mouseout","mouseover"]);Bi("onMouseLeave",["mouseout","mouseover"]);Bi("onPointerEnter",["pointerout","pointerover"]);Bi("onPointerLeave",["pointerout","pointerover"]);Gr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ks="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(" "),CE=new Set("cancel close invalid load scroll toggle".split(" ").concat(ks));
vendor: 3,983 bytes, line 37
37function kp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,TT(r,t,void 0,e),e.currentTarget=null}function Bv(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;kp(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;kp(i,a,u),s=l}}}if(_a)throw e=kc,_a=!1,kc=null,e}function ae(e,t){var n=t[_c];n===void 0&&(n=t[_c]=new Set);var r=e+"__bubble";n.has(r)||($v(t,e,2,!1),n.add(r))}function bu(e,t,n){var r=0;t&&(r|=4),$v(n,e,r,t)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function eo(e){if(!e[Ho]){e[Ho]=!0,Qy.forEach(function(n){n!=="selectionchange"&&(CE.has(n)||bu(n,!1,e),bu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ho]||(t[Ho]=!0,bu("selectionchange",!1,t))}}function $v(e,t,n,r){switch(bv(t)){case 1:var i=VT;break;case 4:i=FT;break;default:i=gf}n=i.bind(null,t,n,e),i=void 0,!Pc||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 Pu(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var 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=br(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}dv(function(){var u=s,c=ff(n),d=[];e:{var f=zv.get(e);if(f!==void 0){var h=vf,y=e;switch(e){case"keypress":if(pa(n)===0)break e;case"keydown":case"keyup":h=eE;break;case"focusin":y="focus",h=wu;break;case"focusout":y="blur",h=wu;break;case"beforeblur":case"afterblur":h=wu;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":h=mp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=$T;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=rE;break;case Iv:case _v:case Vv:h=HT;break;case Fv:h=sE;break;case"scroll":h=zT;break;case"wheel":h=aE;break;case"copy":case"cut":case"paste":h=GT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=yp}var g=(t&4)!==0,w=!g&&e==="scroll",m=g?f!==null?f+"Capture":null:f;g=[];for(var p=u,v;p!==null;){v=p;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,m!==null&&(S=Ys(p,m),S!=null&&g.push(to(p,S,v)))),w)break;p=p.return}0<g.length&&(f=new h(f,y,null,n,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Cc&&(y=n.relatedTarget||n.fromElement)&&(br(y)||y[vn]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?br(y):null,y!==null&&(w=Yr(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(g=mp,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=yp,S="onPointerLeave",m="onPointerEnter",p="pointer"),w=h==null?f:ci(h),v=y==null?f:ci(y),f=new g(S,p+"leave",h,n,c),f.target=w,f.relatedTarget=v,S=null,br(c)===u&&(g=new g(m,p+"enter",y,n,c),g.target=v,g.relatedTarget=w,S=g),w=S,h&&y)t:{for(g=h,m=y,p=0,v=g;v;v=ti(v))p++;for(v=0,S=m;S;S=ti(S))v++;for(;0<p-v;)g=ti(g),p--;for(;0<v-p;)m=ti(m),v--;for(;p--;){if(g===m||m!==null&&g===m.alternate)break t;g=ti(g),m=ti(m)}g=null}else g=null;h!==null&&Ap(d,f,h,g,!1),y!==null&&w!==null&&Ap(d,w,y,g,!0)}}
vendor: 6,372 bytes, lines 37-38
37e:{if(f=u?ci(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var E=pE;else if(xp(f))if(Nv)E=vE;else{E=gE;var C=mE}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=yE);if(E&&(E=E(e,u))){Mv(d,E,n,c);break e}C&&C(e,f,u),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&wc(f,"number",f.value)}switch(C=u?ci(u):window,e){case"focusin":(xp(C)||C.contentEditable==="true")&&(li=C,Nc=u,js=null);break;case"focusout":js=Nc=li=null;break;case"mousedown":Oc=!0;break;case"contextmenu":case"mouseup":case"dragend":Oc=!1,bp(d,n,c);break;case"selectionchange":if(SE)break;case"keydown":case"keyup":bp(d,n,c)}var b;if(xf)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else ai?Av(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(kv&&n.locale!=="ko"&&(ai||P!=="onCompositionStart"?P==="onCompositionEnd"&&ai&&(b=Pv()):(Kn=c,yf="value"in Kn?Kn.value:Kn.textContent,ai=!0)),C=$a(u,P),0<C.length&&(P=new gp(P,e,null,n,c),d.push({event:P,listeners:C}),b?P.data=b:(b=Rv(n),b!==null&&(P.data=b)))),(b=uE?cE(e,n):dE(e,n))&&(u=$a(u,"onBeforeInput"),0<u.length&&(c=new gp("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=b))}Bv(d,t)})}function to(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $a(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(to(e,s,i)),s=Ys(e,t),s!=null&&r.push(to(e,s,i))),e=e.return}return r}function ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ap(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(to(n,l,a))):i||(l=Ys(n,s),l!=null&&o.push(to(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var bE=/\r\n?/g,PE=/\u0000|\uFFFD/g;function Rp(e){return(typeof e=="string"?e:""+e).replace(bE,`
38`).replace(PE,"")}function Ko(e,t,n){if(t=Rp(t),Rp(e)!==t&&n)throw Error(O(425))}function Ua(){}var Dc=null,Lc=null;function jc(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 Ic=typeof setTimeout=="function"?setTimeout:void 0,kE=typeof clearTimeout=="function"?clearTimeout:void 0,Mp=typeof Promise=="function"?Promise:void 0,AE=typeof queueMicrotask=="function"?queueMicrotask:typeof Mp<"u"?function(e){return Mp.resolve(null).then(e).catch(RE)}:Ic;function RE(e){setTimeout(function(){throw e})}function ku(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),qs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);qs(t)}function Jn(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 Np(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 ns=Math.random().toString(36).slice(2),Zt="__reactFiber$"+ns,no="__reactProps$"+ns,vn="__reactContainer$"+ns,_c="__reactEvents$"+ns,ME="__reactListeners$"+ns,NE="__reactHandles$"+ns;function br(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vn]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Np(e);e!==null;){if(n=e[Zt])return n;e=Np(e)}return t}e=n,n=e.parentNode}return null}function Eo(e){return e=e[Zt]||e[vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ci(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Rl(e){return e[no]||null}var Vc=[],di=-1;function fr(e){return{current:e}}function le(e){0>di||(e.current=Vc[di],Vc[di]=null,di--)}function se(e,t){di++,Vc[di]=e.current,e.current=t}var sr={},Fe=fr(sr),Xe=fr(!1),Br=sr;function $i(e,t){var n=e.type.contextTypes;if(!n)return sr;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 qe(e){return e=e.childContextTypes,e!=null}function Wa(){le(Xe),le(Fe)}function Op(e,t,n){if(Fe.current!==sr)throw Error(O(168));se(Fe,t),se(Xe,n)}function Uv(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(O(108,mT(e)||"Unknown",i));return he({},n,r)}function Ha(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sr,Br=Fe.current,se(Fe,e),se(Xe,Xe.current),!0}function Dp(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Uv(e,t,Br),r.__reactInternalMemoizedMergedChildContext=e,le(Xe),le(Fe),se(Fe,e)):le(Xe),se(Xe,n)}var fn=null,Ml=!1,Au=!1;function Wv(e){fn===null?fn=[e]:fn.push(e)}function OE(e){Ml=!0,Wv(e)}function hr(){if(!Au&&fn!==null){Au=!0;var e=0,t=ne;try{var n=fn;for(ne=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fn=null,Ml=!1}catch(i){throw fn!==null&&(fn=fn.slice(e+1)),mv(hf,hr),i}finally{ne=t,Au=!1}}return null}var fi=[],hi=0,Ka=null,Ga=0,mt=[],gt=0,$r=null,pn=1,mn="";function Tr(e,t){fi[hi++]=Ga,fi[hi++]=Ka,Ka=e,Ga=t}function Hv(e,t,n){mt[gt++]=pn,mt[gt++]=mn,mt[gt++]=$r,$r=e;var r=pn;e=mn;var i=32-_t(r)-1;r&=~(1<<i),n+=1;var s=32-_t(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pn=1<<32-_t(t)+i|n<<i|r,mn=s+e}else pn=1<<s|n<<i|r,mn=e}function Tf(e){e.return!==null&&(Tr(e,1),Hv(e,1,0))}function Ef(e){for(;e===Ka;)Ka=fi[--hi],fi[hi]=null,Ga=fi[--hi],fi[hi]=null;for(;e===$r;)$r=mt[--gt],mt[gt]=null,mn=mt[--gt],mt[gt]=null,pn=mt[--gt],mt[gt]=null}var ot=null,st=null,ce=!1,Lt=null;function Kv(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 Lp(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 24,604 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ot=e,st=Jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,st=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=$r!==null?{id:pn,overflow:mn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,st=null,!0):!1;default:return!1}}function Fc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zc(e){if(ce){var t=st;if(t){var n=t;if(!Lp(e,t)){if(Fc(e))throw Error(O(418));t=Jn(n.nextSibling);var r=ot;t&&Lp(e,t)?Kv(r,n):(e.flags=e.flags&-4097|2,ce=!1,ot=e)}}else{if(Fc(e))throw Error(O(418));e.flags=e.flags&-4097|2,ce=!1,ot=e}}}function jp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Go(e){if(e!==ot)return!1;if(!ce)return jp(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jc(e.type,e.memoizedProps)),t&&(t=st)){if(Fc(e))throw Gv(),Error(O(418));for(;t;)Kv(e,t),t=Jn(t.nextSibling)}if(jp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){st=Jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}st=null}}else st=ot?Jn(e.stateNode.nextSibling):null;return!0}function Gv(){for(var e=st;e;)e=Jn(e.nextSibling)}function Ui(){st=ot=null,ce=!1}function Cf(e){Lt===null?Lt=[e]:Lt.push(e)}var DE=En.ReactCurrentBatchConfig;function gs(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(O(309));var r=n.stateNode}if(!r)throw Error(O(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(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ip(e){var t=e._init;return t(e._payload)}function Yv(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=rr(m,p),m.index=0,m.sibling=null,m}function s(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,v,S){return p===null||p.tag!==6?(p=ju(v,m.mode,S),p.return=m,p):(p=i(p,v),p.return=m,p)}function l(m,p,v,S){var E=v.type;return E===oi?c(m,p,v.props.children,S,v.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===In&&Ip(E)===p.type)?(S=i(p,v.props),S.ref=gs(m,p,v),S.return=m,S):(S=Sa(v.type,v.key,v.props,null,m.mode,S),S.ref=gs(m,p,v),S.return=m,S)}function u(m,p,v,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=Iu(v,m.mode,S),p.return=m,p):(p=i(p,v.children||[]),p.return=m,p)}function c(m,p,v,S,E){return p===null||p.tag!==7?(p=Vr(v,m.mode,S,E),p.return=m,p):(p=i(p,v),p.return=m,p)}function d(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=ju(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case _o:return v=Sa(p.type,p.key,p.props,null,m.mode,v),v.ref=gs(m,null,p),v.return=m,v;case si:return p=Iu(p,m.mode,v),p.return=m,p;case In:var S=p._init;return d(m,S(p._payload),v)}if(bs(p)||ds(p))return p=Vr(p,m.mode,v,null),p.return=m,p;Yo(m,p)}return null}function f(m,p,v,S){var E=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:a(m,p,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _o:return v.key===E?l(m,p,v,S):null;case si:return v.key===E?u(m,p,v,S):null;case In:return E=v._init,f(m,p,E(v._payload),S)}if(bs(v)||ds(v))return E!==null?null:c(m,p,v,S,null);Yo(m,v)}return null}function h(m,p,v,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(v)||null,a(p,m,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _o:return m=m.get(S.key===null?v:S.key)||null,l(p,m,S,E);case si:return m=m.get(S.key===null?v:S.key)||null,u(p,m,S,E);case In:var C=S._init;return h(m,p,v,C(S._payload),E)}if(bs(S)||ds(S))return m=m.get(v)||null,c(p,m,S,E,null);Yo(p,S)}return null}function y(m,p,v,S){for(var E=null,C=null,b=p,P=p=0,D=null;b!==null&&P<v.length;P++){b.index>P?(D=b,b=null):D=b.sibling;var R=f(m,b,v[P],S);if(R===null){b===null&&(b=D);break}e&&b&&R.alternate===null&&t(m,b),p=s(R,p,P),C===null?E=R:C.sibling=R,C=R,b=D}if(P===v.length)return n(m,b),ce&&Tr(m,P),E;if(b===null){for(;P<v.length;P++)b=d(m,v[P],S),b!==null&&(p=s(b,p,P),C===null?E=b:C.sibling=b,C=b);return ce&&Tr(m,P),E}for(b=r(m,b);P<v.length;P++)D=h(b,m,P,v[P],S),D!==null&&(e&&D.alternate!==null&&b.delete(D.key===null?P:D.key),p=s(D,p,P),C===null?E=D:C.sibling=D,C=D);return e&&b.forEach(function(_){return t(m,_)}),ce&&Tr(m,P),E}function g(m,p,v,S){var E=ds(v);if(typeof E!="function")throw Error(O(150));if(v=E.call(v),v==null)throw Error(O(151));for(var C=E=null,b=p,P=p=0,D=null,R=v.next();b!==null&&!R.done;P++,R=v.next()){b.index>P?(D=b,b=null):D=b.sibling;var _=f(m,b,R.value,S);if(_===null){b===null&&(b=D);break}e&&b&&_.alternate===null&&t(m,b),p=s(_,p,P),C===null?E=_:C.sibling=_,C=_,b=D}if(R.done)return n(m,b),ce&&Tr(m,P),E;if(b===null){for(;!R.done;P++,R=v.next())R=d(m,R.value,S),R!==null&&(p=s(R,p,P),C===null?E=R:C.sibling=R,C=R);return ce&&Tr(m,P),E}for(b=r(m,b);!R.done;P++,R=v.next())R=h(b,m,P,R.value,S),R!==null&&(e&&R.alternate!==null&&b.delete(R.key===null?P:R.key),p=s(R,p,P),C===null?E=R:C.sibling=R,C=R);return e&&b.forEach(function(j){return t(m,j)}),ce&&Tr(m,P),E}function w(m,p,v,S){if(typeof v=="object"&&v!==null&&v.type===oi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case _o:e:{for(var E=v.key,C=p;C!==null;){if(C.key===E){if(E=v.type,E===oi){if(C.tag===7){n(m,C.sibling),p=i(C,v.props.children),p.return=m,m=p;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===In&&Ip(E)===C.type){n(m,C.sibling),p=i(C,v.props),p.ref=gs(m,C,v),p.return=m,m=p;break e}n(m,C);break}else t(m,C);C=C.sibling}v.type===oi?(p=Vr(v.props.children,m.mode,S,v.key),p.return=m,m=p):(S=Sa(v.type,v.key,v.props,null,m.mode,S),S.ref=gs(m,p,v),S.return=m,m=S)}return o(m);case si:e:{for(C=v.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=i(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Iu(v,m.mode,S),p.return=m,m=p}return o(m);case In:return C=v._init,w(m,p,C(v._payload),S)}if(bs(v))return y(m,p,v,S);if(ds(v))return g(m,p,v,S);Yo(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,v),p.return=m,m=p):(n(m,p),p=ju(v,m.mode,S),p.return=m,m=p),o(m)):n(m,p)}return w}var Wi=Yv(!0),Qv=Yv(!1),Ya=fr(null),Qa=null,pi=null,bf=null;function Pf(){bf=pi=Qa=null}function kf(e){var t=Ya.current;le(Ya),e._currentValue=t}function Bc(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 bi(e,t){Qa=e,bf=pi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(bf!==e)if(e={context:e,memoizedValue:t,next:null},pi===null){if(Qa===null)throw Error(O(308));pi=e,Qa.dependencies={lanes:0,firstContext:e}}else pi=pi.next=e;return t}var Pr=null;function Af(e){Pr===null?Pr=[e]:Pr.push(e)}function Xv(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Af(t)):(n.next=i.next,i.next=n),t.interleaved=n,wn(e,r)}function wn(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 _n=!1;function Rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qv(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 gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function er(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,wn(e,n)}return i=r.interleaved,i===null?(t.next=t,Af(r)):(t.next=i.next,i.next=t),r.interleaved=t,wn(e,n)}function ma(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,pf(e,n)}}function _p(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 Xa(e,t,n,r){var i=e.updateQueue;_n=!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 d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,g=a;switch(f=t,h=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){d=y.call(h,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,f=typeof y=="function"?y.call(h,d,f):y,f==null)break e;d=he({},d,f);break e;case 2:_n=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),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);Wr|=o,e.lanes=o,e.memoizedState=d}}function Vp(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(O(191,i));i.call(r)}}}var Co={},tn=fr(Co),ro=fr(Co),io=fr(Co);function kr(e){if(e===Co)throw Error(O(174));return e}function Mf(e,t){switch(se(io,t),se(ro,e),se(tn,Co),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sc(t,e)}le(tn),se(tn,t)}function Hi(){le(tn),le(ro),le(io)}function Zv(e){kr(io.current);var t=kr(tn.current),n=Sc(t,e.type);t!==n&&(se(ro,e),se(tn,n))}function Nf(e){ro.current===e&&(le(tn),le(ro))}var de=fr(0);function qa(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 Ru=[];function Of(){for(var e=0;e<Ru.length;e++)Ru[e]._workInProgressVersionPrimary=null;Ru.length=0}var ga=En.ReactCurrentDispatcher,Mu=En.ReactCurrentBatchConfig,Ur=0,fe=null,Te=null,ke=null,Za=!1,Is=!1,so=0,LE=0;function je(){throw Error(O(321))}function Df(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Lf(e,t,n,r,i,s){if(Ur=s,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ga.current=e===null||e.memoizedState===null?VE:FE,e=n(r,i),Is){s=0;do{if(Is=!1,so=0,25<=s)throw Error(O(301));s+=1,ke=Te=null,t.updateQueue=null,ga.current=zE,e=n(r,i)}while(Is)}if(ga.current=Ja,t=Te!==null&&Te.next!==null,Ur=0,ke=Te=fe=null,Za=!1,t)throw Error(O(300));return e}function jf(){var e=so!==0;return so=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?fe.memoizedState=ke=e:ke=ke.next=e,ke}function St(){if(Te===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=ke===null?fe.memoizedState:ke.next;if(t!==null)ke=t,Te=e;else{if(e===null)throw Error(O(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},ke===null?fe.memoizedState=ke=e:ke=ke.next=e}return ke}function oo(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=St(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Te,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((Ur&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 d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,fe.lanes|=c,Wr|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,zt(r,t.memoizedState)||(Qe=!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,Wr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ou(e){var t=St(),n=t.queue;if(n===null)throw Error(O(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);zt(s,t.memoizedState)||(Qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Jv(){}function e0(e,t){var n=fe,r=St(),i=t(),s=!zt(r.memoizedState,i);if(s&&(r.memoizedState=i,Qe=!0),r=r.queue,If(r0.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,ao(9,n0.bind(null,n,r,i,t),void 0,null),Ae===null)throw Error(O(349));Ur&30||t0(n,t,i)}return i}function t0(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 n0(e,t,n,r){t.value=n,t.getSnapshot=r,i0(t)&&s0(e)}function r0(e,t,n){return n(function(){i0(t)&&s0(e)})}function i0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function s0(e){var t=wn(e,1);t!==null&&Vt(t,e,1,-1)}function Fp(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e},t.queue=e,e=e.dispatch=_E.bind(null,fe,e),[t.memoizedState,e]}function ao(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 o0(){return St().memoizedState}function ya(e,t,n,r){var i=Kt();fe.flags|=e,i.memoizedState=ao(1|t,n,void 0,r===void 0?null:r)}function Nl(e,t,n,r){var i=St();r=r===void 0?null:r;var s=void 0;if(Te!==null){var o=Te.memoizedState;if(s=o.destroy,r!==null&&Df(r,o.deps)){i.memoizedState=ao(t,n,s,r);return}}fe.flags|=e,i.memoizedState=ao(1|t,n,s,r)}function zp(e,t){return ya(8390656,8,e,t)}function If(e,t){return Nl(2048,8,e,t)}function a0(e,t){return Nl(4,2,e,t)}function l0(e,t){return Nl(4,4,e,t)}function u0(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 c0(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4,4,u0.bind(null,t,e),n)}function _f(){}function d0(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Df(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function f0(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Df(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function h0(e,t,n){return Ur&21?(zt(n,t)||(n=vv(),fe.lanes|=n,Wr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Qe=!0),e.memoizedState=n)}function jE(e,t){var n=ne;ne=n!==0&&4>n?n:4,e(!0);var r=Mu.transition;Mu.transition={};try{e(!1),t()}finally{ne=n,Mu.transition=r}}function p0(){return St().memoizedState}function IE(e,t,n){var r=nr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},m0(e))g0(t,n);else if(n=Xv(e,t,n,r),n!==null){var i=We();Vt(n,e,r,i),y0(n,t,r)}}function _E(e,t,n){var r=nr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(m0(e))g0(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,zt(a,o)){var l=t.interleaved;l===null?(i.next=i,Af(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Xv(e,t,i,r),n!==null&&(i=We(),Vt(n,e,r,i),y0(n,t,r))}}function m0(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function g0(e,t){Is=Za=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function y0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pf(e,n)}}var Ja={readContext:xt,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},VE={readContext:xt,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:zp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ya(4194308,4,u0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ya(4194308,4,e,t)},useInsertionEffect:function(e,t){return ya(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();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=IE.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Fp,useDebugValue:_f,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Fp(!1),t=e[0];return e=jE.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,i=Kt();if(ce){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ae===null)throw Error(O(349));Ur&30||t0(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,zp(r0.bind(null,r,s,e),[e]),r.flags|=2048,ao(9,n0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ae.identifierPrefix;if(ce){var n=mn,r=pn;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=so++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=LE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},FE={readContext:xt,useCallback:d0,useContext:xt,useEffect:If,useImperativeHandle:c0,useInsertionEffect:a0,useLayoutEffect:l0,useMemo:f0,useReducer:Nu,useRef:o0,useState:function(){return Nu(oo)},useDebugValue:_f,useDeferredValue:function(e){var t=St();return h0(t,Te.memoizedState,e)},useTransition:function(){var e=Nu(oo)[0],t=St().memoizedState;return[e,t]},useMutableSource:Jv,useSyncExternalStore:e0,useId:p0,unstable_isNewReconciler:!1},zE={readContext:xt,useCallback:d0,useContext:xt,useEffect:If,useImperativeHandle:c0,useInsertionEffect:a0,useLayoutEffect:l0,useMemo:f0,useReducer:Ou,useRef:o0,useState:function(){return Ou(oo)},useDebugValue:_f,useDeferredValue:function(e){var t=St();return Te===null?t.memoizedState=e:h0(t,Te.memoizedState,e)},useTransition:function(){var e=Ou(oo)[0],t=St().memoizedState;return[e,t]},useMutableSource:Jv,useSyncExternalStore:e0,useId:p0,unstable_isNewReconciler:!1};function Mt(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 $c(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 Ol={isMounted:function(e){return(e=e._reactInternals)?Yr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),i=nr(e),s=gn(r,i);s.payload=t,n!=null&&(s.callback=n),t=er(e,s,i),t!==null&&(Vt(t,e,i,r),ma(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),i=nr(e),s=gn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=er(e,s,i),t!==null&&(Vt(t,e,i,r),ma(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=nr(e),i=gn(n,r);i.tag=2,t!=null&&(i.callback=t),t=er(e,i,r),t!==null&&(Vt(t,e,r,n),ma(t,e,r))}};function Bp(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?!Js(n,r)||!Js(i,s):!0}function v0(e,t,n){var r=!1,i=sr,s=t.contextType;return typeof s=="object"&&s!==null?s=xt(s):(i=qe(t)?Br:Fe.current,r=t.contextTypes,s=(r=r!=null)?$i(e,i):sr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ol,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function $p(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&&Ol.enqueueReplaceState(t,t.state,null)}function Uc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Rf(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=xt(s):(s=qe(t)?Br:Fe.current,i.context=$i(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&($c(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&&Ol.enqueueReplaceState(i,i.state,null),Xa(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ki(e,t){try{var n="",r=t;do n+=pT(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 Du(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var BE=typeof WeakMap=="function"?WeakMap:Map;function w0(e,t,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tl||(tl=!0,ed=r),Wc(e,t)},n}function x0(e,t,n){n=gn(-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(){Wc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Wc(e,t),typeof r!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}
vendor: 10,410 bytes, line 40
40function Up(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new BE;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=tC.bind(null,e,t,n),t.then(e,e))}function Wp(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 Hp(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=gn(-1,1),t.tag=2,er(n,t,1))),n.lanes|=1),e)}var $E=En.ReactCurrentOwner,Qe=!1;function ze(e,t,n,r){t.child=e===null?Qv(t,null,n,r):Wi(t,e.child,n,r)}function Kp(e,t,n,r,i){n=n.render;var s=t.ref;return bi(t,i),r=Lf(e,t,n,r,s,i),n=jf(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xn(e,t,i)):(ce&&n&&Tf(t),t.flags|=1,ze(e,t,r,i),t.child)}function Gp(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Hf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,S0(e,t,s,r,i)):(e=Sa(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:Js,n(o,r)&&e.ref===t.ref)return xn(e,t,i)}return t.flags|=1,e=rr(s,r),e.ref=t.ref,e.return=t,t.child=e}function S0(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Js(s,r)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Qe=!0);else return t.lanes=e.lanes,xn(e,t,i)}return Hc(e,t,n,r,i)}function T0(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},se(gi,nt),nt|=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,se(gi,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,se(gi,nt),nt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,se(gi,nt),nt|=r;return ze(e,t,i,n),t.child}function E0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hc(e,t,n,r,i){var s=qe(n)?Br:Fe.current;return s=$i(t,s),bi(t,i),n=Lf(e,t,n,r,s,i),r=jf(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xn(e,t,i)):(ce&&r&&Tf(t),t.flags|=1,ze(e,t,n,i),t.child)}function Yp(e,t,n,r,i){if(qe(n)){var s=!0;Ha(t)}else s=!1;if(bi(t,i),t.stateNode===null)va(e,t),v0(t,n,r),Uc(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=xt(u):(u=qe(n)?Br:Fe.current,u=$i(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&$p(t,o,r,u),_n=!1;var f=t.memoizedState;o.state=f,Xa(t,r,o,i),l=t.memoizedState,a!==r||f!==l||Xe.current||_n?(typeof c=="function"&&($c(t,n,c,r),l=t.memoizedState),(a=_n||Bp(t,n,a,r,f,l,u))?(d||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,qv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Mt(t.type,a),o.props=u,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=xt(l):(l=qe(n)?Br:Fe.current,l=$i(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&$p(t,o,r,l),_n=!1,f=t.memoizedState,o.state=f,Xa(t,r,o,i);var y=t.memoizedState;a!==d||f!==y||Xe.current||_n?(typeof h=="function"&&($c(t,n,h,r),y=t.memoizedState),(u=_n||Bp(t,n,u,r,f,y,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Kc(e,t,n,r,s,i)}function Kc(e,t,n,r,i,s){E0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Dp(t,n,!1),xn(e,t,s);r=t.stateNode,$E.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)):ze(e,t,a,s),t.memoizedState=r.state,i&&Dp(t,n,!0),t.child}function C0(e){var t=e.stateNode;t.pendingContext?Op(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Op(e,t.context,!1),Mf(e,t.containerInfo)}function Qp(e,t,n,r,i){return Ui(),Cf(i),t.flags|=256,ze(e,t,n,r),t.child}var Gc={dehydrated:null,treeContext:null,retryLane:0};function Yc(e){return{baseLanes:e,cachePool:null,transitions:null}}function b0(e,t,n){var r=t.pendingProps,i=de.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),se(de,i&1),e===null)return zc(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=jl(o,r,0,null),e=Vr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Yc(n),t.memoizedState=Gc,e):Vf(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return UE(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=rr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=rr(a,s):(s=Vr(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?Yc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Gc,r}return s=e.child,e=s.sibling,r=rr(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 Vf(e,t){return t=jl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qo(e,t,n,r){return r!==null&&Cf(r),Wi(t,e.child,null,n),e=Vf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function UE(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Du(Error(O(422))),Qo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=jl({mode:"visible",children:r.children},i,0,null),s=Vr(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=Yc(o),t.memoizedState=Gc,s);if(!(t.mode&1))return Qo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(O(419)),r=Du(s,r,void 0),Qo(e,t,o,r)}if(a=(o&e.childLanes)!==0,Qe||a){if(r=Ae,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,wn(e,i),Vt(r,e,i,-1))}return Wf(),r=Du(Error(O(421))),Qo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=nC.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,st=Jn(i.nextSibling),ot=t,ce=!0,Lt=null,e!==null&&(mt[gt++]=pn,mt[gt++]=mn,mt[gt++]=$r,pn=e.id,mn=e.overflow,$r=t),t=Vf(t,r.children),t.flags|=4096,t)}function Xp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bc(e.return,t,n)}function Lu(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 P0(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ze(e,t,r.children,n),r=de.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&&Xp(e,n,t);else if(e.tag===19)Xp(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(se(de,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&&qa(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Lu(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&&qa(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Lu(t,!0,n,null,s);break;case"together":Lu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function va(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=rr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function WE(e,t,n){switch(t.tag){case 3:C0(t),Ui();break;case 5:Zv(t);break;case 1:qe(t.type)&&Ha(t);break;case 4:Mf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;se(Ya,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(se(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?b0(e,t,n):(se(de,de.current&1),e=xn(e,t,n),e!==null?e.sibling:null);se(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return P0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),se(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,T0(e,t,n)}return xn(e,t,n)}var k0,Qc,A0,R0;k0=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}};Qc=function(){};A0=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,kr(tn.current);var s=null;switch(n){case"input":i=yc(e,i),r=yc(e,r),s=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),s=[];break;case"textarea":i=xc(e,i),r=xc(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ua)}Tc(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"&&(Ks.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"&&(Ks.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ae("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)}};R0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ys(e,t){if(!ce)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 Ie(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 HE(e,t,n){var r=t.pendingProps;switch(Ef(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(t),null;case 1:return qe(t.type)&&Wa(),Ie(t),null;case 3:return r=t.stateNode,Hi(),le(Xe),le(Fe),Of(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Go(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(rd(Lt),Lt=null))),Qc(e,t),Ie(t),null;case 5:Nf(t);var i=kr(io.current);if(n=t.type,e!==null&&t.stateNode!=null)A0(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Ie(t),null}if(e=kr(tn.current),Go(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Zt]=t,r[no]=s,e=(t.mode&1)!==0,n){case"dialog":ae("cancel",r),ae("close",r);break;case"iframe":case"object":case"embed":ae("load",r);break;case"video":case"audio":for(i=0;i<ks.length;i++)ae(ks[i],r);break;case"source":ae("error",r);break;case"img":case"image":case"link":ae("error",r),ae("load",r);break;case"details":ae("toggle",r);break;case"input":sp(r,s),ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ae("invalid",r);break;case"textarea":ap(r,s),ae("invalid",r)}Tc(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 7,945 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ko(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ko(r.textContent,a,e),i=["children",""+a]):Ks.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ae("scroll",r)}switch(n){case"input":Vo(r),op(r,s,!0);break;case"textarea":Vo(r),lp(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ua)}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=rv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Zt]=t,e[no]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ec(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;i<ks.length;i++)ae(ks[i],e);i=r;break;case"source":ae("error",e),i=r;break;case"img":case"image":case"link":ae("error",e),ae("load",e),i=r;break;case"details":ae("toggle",e),i=r;break;case"input":sp(e,r),i=yc(e,r),ae("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=he({},r,{value:void 0}),ae("invalid",e);break;case"textarea":ap(e,r),i=xc(e,r),ae("invalid",e);break;default:i=r}Tc(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?ov(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&iv(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"&&(Ks.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ae("scroll",e):l!=null&&lf(e,s,l,o))}switch(n){case"input":Vo(e),op(e,r,!1);break;case"textarea":Vo(e),lp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ir(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Si(e,!!r.multiple,s,!1):r.defaultValue!=null&&Si(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ua)}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 Ie(t),null;case 6:if(e&&t.stateNode!=null)R0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=kr(io.current),kr(tn.current),Go(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=t,(s=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:Ko(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ko(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zt]=t,t.stateNode=r}return Ie(t),null;case 13:if(le(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&st!==null&&t.mode&1&&!(t.flags&128))Gv(),Ui(),t.flags|=98560,s=!1;else if(s=Go(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[Zt]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ie(t),s=!1}else Lt!==null&&(rd(Lt),Lt=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||de.current&1?Ce===0&&(Ce=3):Wf())),t.updateQueue!==null&&(t.flags|=4),Ie(t),null);case 4:return Hi(),Qc(e,t),e===null&&eo(t.stateNode.containerInfo),Ie(t),null;case 10:return kf(t.type._context),Ie(t),null;case 17:return qe(t.type)&&Wa(),Ie(t),null;case 19:if(le(de),s=t.memoizedState,s===null)return Ie(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)ys(s,!1);else{if(Ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=qa(e),o!==null){for(t.flags|=128,ys(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 se(de,de.current&1|2),t.child}e=e.sibling}s.tail!==null&&ye()>Gi&&(t.flags|=128,r=!0,ys(s,!1),t.lanes=4194304)}else{if(!r)if(e=qa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ys(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ce)return Ie(t),null}else 2*ye()-s.renderingStartTime>Gi&&n!==1073741824&&(t.flags|=128,r=!0,ys(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=ye(),t.sibling=null,n=de.current,se(de,r?n&1|2:n&1),t):(Ie(t),null);case 22:case 23:return Uf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nt&1073741824&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function KE(e,t){switch(Ef(t),t.tag){case 1:return qe(t.type)&&Wa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(),le(Xe),le(Fe),Of(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nf(t),null;case 13:if(le(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(de),null;case 4:return Hi(),null;case 10:return kf(t.type._context),null;case 22:case 23:return Uf(),null;case 24:return null;default:return null}}var Xo=!1,Ve=!1,GE=typeof WeakSet=="function"?WeakSet:Set,V=null;function mi(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 Xc(e,t,n){try{n()}catch(r){ge(e,t,r)}}var qp=!1;function YE(e,t){if(Dc=za,e=Lv(),Sf(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,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},za=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,w=y.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Mt(t.type,g),w);m.__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(O(163))}}catch(S){ge(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return y=qp,qp=!1,y}
vendor: 1,680 bytes, line 40
40function _s(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&&Xc(t,n,s)}i=i.next}while(i!==r)}}function Dl(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 qc(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 M0(e){var t=e.alternate;t!==null&&(e.alternate=null,M0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[no],delete t[_c],delete t[ME],delete t[NE])),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 N0(e){return e.tag===5||e.tag===3||e.tag===4}function Zp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||N0(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 Zc(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=Ua));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);
vendor: 21,545 bytes, line 40
40else if(r!==4&&(e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}var Me=null,Dt=!1;function Nn(e,t,n){for(n=n.child;n!==null;)O0(e,t,n),n=n.sibling}function O0(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 5:Ve||mi(n,t);case 6:var r=Me,i=Dt;Me=null,Nn(e,t,n),Me=r,Dt=i,Me!==null&&(Dt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Dt?(e=Me,n=n.stateNode,e.nodeType===8?ku(e.parentNode,n):e.nodeType===1&&ku(e,n),qs(e)):ku(Me,n.stateNode));break;case 4:r=Me,i=Dt,Me=n.stateNode.containerInfo,Dt=!0,Nn(e,t,n),Me=r,Dt=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(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)&&Xc(n,t,o),i=i.next}while(i!==r)}Nn(e,t,n);break;case 1:if(!Ve&&(mi(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)}Nn(e,t,n);break;case 21:Nn(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,Nn(e,t,n),Ve=r):Nn(e,t,n);break;default:Nn(e,t,n)}}function Jp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GE),t.forEach(function(r){var i=rC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pt(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:Me=a.stateNode,Dt=!1;break e;case 3:Me=a.stateNode.containerInfo,Dt=!0;break e;case 4:Me=a.stateNode.containerInfo,Dt=!0;break e}a=a.return}if(Me===null)throw Error(O(160));O0(s,o,i),Me=null,Dt=!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;)D0(t,e),t=t.sibling}function D0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Ht(e),r&4){try{_s(3,e,e.return),Dl(3,e)}catch(g){ge(e,e.return,g)}try{_s(5,e,e.return)}catch(g){ge(e,e.return,g)}}break;case 1:Pt(t,e),Ht(e),r&512&&n!==null&&mi(n,n.return);break;case 5:if(Pt(t,e),Ht(e),r&512&&n!==null&&mi(n,n.return),e.flags&32){var i=e.stateNode;try{Gs(i,"")}catch(g){ge(e,e.return,g)}}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&&tv(i,s),Ec(a,o);var u=Ec(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?ov(i,d):c==="dangerouslySetInnerHTML"?iv(i,d):c==="children"?Gs(i,d):lf(i,c,d,u)}switch(a){case"input":vc(i,s);break;case"textarea":nv(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Si(i,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?Si(i,!!s.multiple,s.defaultValue,!0):Si(i,!!s.multiple,s.multiple?[]:"",!1))}i[no]=s}catch(g){ge(e,e.return,g)}}break;case 6:if(Pt(t,e),Ht(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){ge(e,e.return,g)}}break;case 3:if(Pt(t,e),Ht(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qs(t.containerInfo)}catch(g){ge(e,e.return,g)}break;case 4:Pt(t,e),Ht(e);break;case 13:Pt(t,e),Ht(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Bf=ye())),r&4&&Jp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(u=Ve)||c,Pt(t,e),Ve=u):Pt(t,e),Ht(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(V=e,c=e.child;c!==null;){for(d=V=c;V!==null;){switch(f=V,h=f.child,f.tag){case 0:case 11:case 14:case 15:_s(4,f,f.return);break;case 1:mi(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){ge(r,n,g)}}break;case 5:mi(f,f.return);break;case 22:if(f.memoizedState!==null){tm(d);continue}}h!==null?(h.return=f,V=h):tm(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=sv("display",o))}catch(g){ge(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ge(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pt(t,e),Ht(e),r&4&&Jp(e);break;case 21:break;default:Pt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(N0(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Gs(i,""),r.flags&=-33);var s=Zp(e);Jc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Zp(e);Zc(e,a,o);break;default:throw Error(O(161))}}catch(l){ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function QE(e,t,n){V=e,L0(e)}function L0(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var i=V,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Xo;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ve;a=Xo;var u=Ve;if(Xo=o,(Ve=l)&&!u)for(V=i;V!==null;)o=V,l=o.child,o.tag===22&&o.memoizedState!==null?nm(i):l!==null?(l.return=o,V=l):nm(i);for(;s!==null;)V=s,L0(s),s=s.sibling;V=i,Xo=a,Ve=u}em(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,V=s):em(e)}}function em(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||Dl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ve)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Mt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Vp(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}Vp(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 d=c.dehydrated;d!==null&&qs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ve||t.flags&512&&qc(t)}catch(f){ge(t,t.return,f)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function tm(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function nm(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Dl(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{qc(t)}catch(l){ge(t,s,l)}break;case 5:var o=t.return;try{qc(t)}catch(l){ge(t,o,l)}}}catch(l){ge(t,t.return,l)}if(t===e){V=null;break}var a=t.sibling;if(a!==null){a.return=t.return,V=a;break}V=t.return}}var XE=Math.ceil,el=En.ReactCurrentDispatcher,Ff=En.ReactCurrentOwner,wt=En.ReactCurrentBatchConfig,J=0,Ae=null,xe=null,Oe=0,nt=0,gi=fr(0),Ce=0,lo=null,Wr=0,Ll=0,zf=0,Vs=null,Ye=null,Bf=0,Gi=1/0,dn=null,tl=!1,ed=null,tr=null,qo=!1,Gn=null,nl=0,Fs=0,td=null,wa=-1,xa=0;function We(){return J&6?ye():wa!==-1?wa:wa=ye()}function nr(e){return e.mode&1?J&2&&Oe!==0?Oe&-Oe:DE.transition!==null?(xa===0&&(xa=vv()),xa):(e=ne,e!==0||(e=window.event,e=e===void 0?16:bv(e.type)),e):1}function Vt(e,t,n,r){if(50<Fs)throw Fs=0,td=null,Error(O(185));So(e,n,r),(!(J&2)||e!==Ae)&&(e===Ae&&(!(J&2)&&(Ll|=n),Ce===4&&Fn(e,Oe)),Ze(e,r),n===1&&J===0&&!(t.mode&1)&&(Gi=ye()+500,Ml&&hr()))}function Ze(e,t){var n=e.callbackNode;DT(e,t);var r=Fa(e,e===Ae?Oe:0);if(r===0)n!==null&&dp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dp(n),t===1)e.tag===0?OE(rm.bind(null,e)):Wv(rm.bind(null,e)),AE(function(){!(J&6)&&hr()}),n=null;else{switch(wv(r)){case 1:n=hf;break;case 4:n=gv;break;case 16:n=Va;break;case 536870912:n=yv;break;default:n=Va}n=$0(n,j0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function j0(e,t){if(wa=-1,xa=0,J&6)throw Error(O(327));var n=e.callbackNode;if(Pi()&&e.callbackNode!==n)return null;var r=Fa(e,e===Ae?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=rl(e,r);else{t=r;var i=J;J|=2;var s=_0();(Ae!==e||Oe!==t)&&(dn=null,Gi=ye()+500,_r(e,t));do try{JE();break}catch(a){I0(e,a)}while(!0);Pf(),el.current=s,J=i,xe!==null?t=0:(Ae=null,Oe=0,t=Ce)}if(t!==0){if(t===2&&(i=Ac(e),i!==0&&(r=i,t=nd(e,i))),t===1)throw n=lo,_r(e,0),Fn(e,r),Ze(e,ye()),n;if(t===6)Fn(e,r);else{if(i=e.current.alternate,!(r&30)&&!qE(i)&&(t=rl(e,r),t===2&&(s=Ac(e),s!==0&&(r=s,t=nd(e,s))),t===1))throw n=lo,_r(e,0),Fn(e,r),Ze(e,ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Er(e,Ye,dn);break;case 3:if(Fn(e,r),(r&130023424)===r&&(t=Bf+500-ye(),10<t)){if(Fa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ic(Er.bind(null,e,Ye,dn),t);break}Er(e,Ye,dn);break;case 4:if(Fn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-_t(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*XE(r/1960))-r,10<r){e.timeoutHandle=Ic(Er.bind(null,e,Ye,dn),r);break}Er(e,Ye,dn);break;case 5:Er(e,Ye,dn);break;default:throw Error(O(329))}}}return Ze(e,ye()),e.callbackNode===n?j0.bind(null,e):null}function nd(e,t){var n=Vs;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=rl(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&rd(t)),e}function rd(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function qE(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(!zt(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 Fn(e,t){for(t&=~zf,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function rm(e){if(J&6)throw Error(O(327));Pi();var t=Fa(e,0);if(!(t&1))return Ze(e,ye()),null;var n=rl(e,t);if(e.tag!==0&&n===2){var r=Ac(e);r!==0&&(t=r,n=nd(e,r))}if(n===1)throw n=lo,_r(e,0),Fn(e,t),Ze(e,ye()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Er(e,Ye,dn),Ze(e,ye()),null}function $f(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(Gi=ye()+500,Ml&&hr())}}function Hr(e){Gn!==null&&Gn.tag===0&&!(J&6)&&Pi();var t=J;J|=1;var n=wt.transition,r=ne;try{if(wt.transition=null,ne=1,e)return e()}finally{ne=r,wt.transition=n,J=t,!(J&6)&&hr()}}function Uf(){nt=gi.current,le(gi)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,kE(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(Ef(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Wa();break;case 3:Hi(),le(Xe),le(Fe),Of();break;case 5:Nf(r);break;case 4:Hi();break;case 13:le(de);break;case 19:le(de);break;case 10:kf(r.type._context);break;case 22:case 23:Uf()}n=n.return}if(Ae=e,xe=e=rr(e.current,null),Oe=nt=t,Ce=0,lo=null,zf=Ll=Wr=0,Ye=Vs=null,Pr!==null){for(t=0;t<Pr.length;t++)if(n=Pr[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}Pr=null}return e}function I0(e,t){do{var n=xe;try{if(Pf(),ga.current=Ja,Za){for(var r=fe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Za=!1}if(Ur=0,ke=Te=fe=null,Is=!1,so=0,Ff.current=null,n===null||n.return===null){Ce=1,lo=t,xe=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=Oe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Wp(o);if(h!==null){h.flags&=-257,Hp(h,o,a,s,t),h.mode&1&&Up(s,u,t),t=h,l=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(l),t.updateQueue=g}else y.add(l);break e}else{if(!(t&1)){Up(s,u,t),Wf();break e}l=Error(O(426))}}else if(ce&&a.mode&1){var w=Wp(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Hp(w,o,a,s,t),Cf(Ki(l,a));break e}}s=l=Ki(l,a),Ce!==4&&(Ce=2),Vs===null?Vs=[s]:Vs.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=w0(s,l,t);_p(s,m);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"&&(tr===null||!tr.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=x0(s,a,t);_p(s,S);break e}}s=s.return}while(s!==null)}F0(n)}catch(E){t=E,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(!0)}function _0(){var e=el.current;return el.current=Ja,e===null?Ja:e}function Wf(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Ae===null||!(Wr&268435455)&&!(Ll&268435455)||Fn(Ae,Oe)}function rl(e,t){var n=J;J|=2;var r=_0();(Ae!==e||Oe!==t)&&(dn=null,_r(e,t));do try{ZE();break}catch(i){I0(e,i)}while(!0);if(Pf(),J=n,el.current=r,xe!==null)throw Error(O(261));return Ae=null,Oe=0,Ce}function ZE(){for(;xe!==null;)V0(xe)}function JE(){for(;xe!==null&&!CT();)V0(xe)}function V0(e){var t=B0(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?F0(e):xe=t,Ff.current=null}function F0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=KE(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,xe=null;return}}else if(n=HE(n,t,nt),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ce===0&&(Ce=5)}function Er(e,t,n){var r=ne,i=wt.transition;try{wt.transition=null,ne=1,eC(e,t,n,r)}finally{wt.transition=i,ne=r}return null}function eC(e,t,n,r){do Pi();while(Gn!==null);if(J&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(LT(e,s),e===Ae&&(xe=Ae=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||qo||(qo=!0,$0(Va,function(){return Pi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=wt.transition,wt.transition=null;var o=ne;ne=1;var a=J;J|=4,Ff.current=null,YE(e,n),D0(n,e),xE(Lc),za=!!Dc,Lc=Dc=null,e.current=n,QE(n),bT(),J=a,ne=o,wt.transition=s}else e.current=n;if(qo&&(qo=!1,Gn=e,nl=i),s=e.pendingLanes,s===0&&(tr=null),AT(n.stateNode),Ze(e,ye()),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(tl)throw tl=!1,e=ed,ed=null,e;return nl&1&&e.tag!==0&&Pi(),s=e.pendingLanes,s&1?e===td?Fs++:(Fs=0,td=e):Fs=0,hr(),null}function Pi(){if(Gn!==null){var e=wv(nl),t=wt.transition,n=ne;try{if(wt.transition=null,ne=16>e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,nl=0,J&6)throw Error(O(331));var i=J;for(J|=4,V=e.current;V!==null;){var s=V,o=s.child;if(V.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(V=u;V!==null;){var c=V;switch(c.tag){case 0:case 11:case 15:_s(8,c,s)}var d=c.child;if(d!==null)d.return=c,V=d;else for(;V!==null;){c=V;var f=c.sibling,h=c.return;if(M0(c),c===u){V=null;break}if(f!==null){f.return=h,V=f;break}V=h}}}var y=s.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}V=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,V=o;else e:for(;V!==null;){if(s=V,s.flags&2048)switch(s.tag){case 0:case 11:case 15:_s(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,V=m;break e}V=s.return}}var p=e.current;for(V=p;V!==null;){o=V;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,V=v;else e:for(o=p;V!==null;){if(a=V,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Dl(9,a)}}catch(E){ge(a,a.return,E)}if(a===o){V=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,V=S;break e}V=a.return}}if(J=i,hr(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(bl,e)}catch{}r=!0}return r}finally{ne=n,wt.transition=t}}return!1}function im(e,t,n){t=Ki(n,t),t=w0(e,t,1),e=er(e,t,1),t=We(),e!==null&&(So(e,1,t),Ze(e,t))}function ge(e,t,n){if(e.tag===3)im(e,e,n);else for(;t!==null;){if(t.tag===3){im(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(tr===null||!tr.has(r))){e=Ki(n,e),e=x0(t,e,1),t=er(t,e,1),e=We(),t!==null&&(So(t,1,e),Ze(t,e));break}}t=t.return}}function tC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Oe&n)===n&&(Ce===4||Ce===3&&(Oe&130023424)===Oe&&500>ye()-Bf?_r(e,0):zf|=n),Ze(e,t)}function z0(e,t){t===0&&(e.mode&1?(t=Bo,Bo<<=1,!(Bo&130023424)&&(Bo=4194304)):t=1);var n=We();e=wn(e,t),e!==null&&(So(e,t,n),Ze(e,n))}function nC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z0(e,n)}function rC(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(O(314))}r!==null&&r.delete(t),z0(e,n)}var B0;B0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,WE(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,ce&&t.flags&1048576&&Hv(t,Ga,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;va(e,t),e=t.pendingProps;var i=$i(t,Fe.current);bi(t,n),i=Lf(null,t,r,e,i,n);var s=jf();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,qe(r)?(s=!0,Ha(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Rf(t),i.updater=Ol,t.stateNode=i,i._reactInternals=t,Uc(t,r,e,n),t=Kc(null,t,r,!0,s,n)):(t.tag=0,ce&&s&&Tf(t),ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(va(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=sC(r),e=Mt(r,e),i){case 0:t=Hc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=Kp(null,t,r,e,n);break e;case 14:t=Gp(null,t,r,Mt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Hc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Yp(e,t,r,i,n);case 3:e:{if(C0(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,i=s.element,qv(e,t),Xa(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=Ki(Error(O(423)),t),t=Qp(e,t,r,n,i);break e}else if(r!==i){i=Ki(Error(O(424)),t),t=Qp(e,t,r,n,i);break e}else for(st=Jn(t.stateNode.containerInfo.firstChild),ot=t,ce=!0,Lt=null,n=Qv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ui(),r===i){t=xn(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return Zv(t),e===null&&zc(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,jc(r,i)?o=null:s!==null&&jc(r,s)&&(t.flags|=32),E0(e,t),ze(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return b0(e,t,n);case 4:return Mf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wi(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Kp(e,t,r,i,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(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,se(Ya,r._currentValue),r._currentValue=o,s!==null)if(zt(s.value,o)){if(s.children===i.children&&!Xe.current){t=xn(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=gn(-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),Bc(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(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Bc(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}ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bi(t,n),i=xt(i),r=r(i),t.flags|=1,ze(e,t,r,n),t.child;
vendor: 6,213 bytes, line 40
40case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),Gp(e,t,r,i,n);case 15:return S0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),va(e,t),t.tag=1,qe(r)?(e=!0,Ha(t)):e=!1,bi(t,n),v0(t,r,i),Uc(t,r,i,n),Kc(null,t,r,!0,e,n);case 19:return P0(e,t,n);case 22:return T0(e,t,n)}throw Error(O(156,t.tag))};function $0(e,t){return mv(e,t)}function iC(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 iC(e,t,n,r)}function Hf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sC(e){if(typeof e=="function")return Hf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cf)return 11;if(e===df)return 14}return 2}function rr(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 Sa(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Hf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case oi:return Vr(n.children,i,s,t);case uf:o=8,i|=8;break;case hc:return e=yt(12,n,t,i|2),e.elementType=hc,e.lanes=s,e;case pc:return e=yt(13,n,t,i),e.elementType=pc,e.lanes=s,e;case mc:return e=yt(19,n,t,i),e.elementType=mc,e.lanes=s,e;case Zy:return jl(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xy:o=10;break e;case qy:o=9;break e;case cf:o=11;break e;case df:o=14;break e;case In:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=yt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Vr(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function jl(e,t,n,r){return e=yt(22,e,r,t),e.elementType=Zy,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function Iu(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 oC(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=gu(0),this.expirationTimes=gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Kf(e,t,n,r,i,s,o,a,l){return e=new oC(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},Rf(s),e}function aC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:si,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function U0(e){if(!e)return sr;e=e._reactInternals;e:{if(Yr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(qe(n))return Uv(e,n,t)}return t}function W0(e,t,n,r,i,s,o,a,l){return e=Kf(n,r,!0,e,i,s,o,a,l),e.context=U0(null),n=e.current,r=We(),i=nr(n),s=gn(r,i),s.callback=t??null,er(n,s,i),e.current.lanes=i,So(e,i,r),Ze(e,r),e}function Il(e,t,n,r){var i=t.current,s=We(),o=nr(i);return n=U0(n),t.context===null?t.context=n:t.pendingContext=n,t=gn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=er(i,t,o),e!==null&&(Vt(e,i,o,s),ma(e,i,o)),o}function il(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 sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gf(e,t){sm(e,t),(e=e.alternate)&&sm(e,t)}function lC(){return null}var H0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yf(e){this._internalRoot=e}_l.prototype.render=Yf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Il(e,t,null,null)};_l.prototype.unmount=Yf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hr(function(){Il(null,e,null,null)}),t[vn]=null}};function _l(e){this._internalRoot=e}_l.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vn.length&&t!==0&&t<Vn[n].priority;n++);Vn.splice(n,0,e),n===0&&Cv(e)}};function Qf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function om(){}function uC(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=il(o);s.call(u)}}var o=W0(t,r,e,0,null,!1,!1,"",om);return e._reactRootContainer=o,e[vn]=o.current,eo(e.nodeType===8?e.parentNode:e),Hr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=il(l);a.call(u)}}var l=Kf(e,0,!1,null,null,!1,!1,"",om);return e._reactRootContainer=l,e[vn]=l.current,eo(e.nodeType===8?e.parentNode:e),Hr(function(){Il(t,l,n,r)}),l}function Fl(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=il(o);a.call(l)}}Il(t,o,e,i)}else o=uC(n,t,e,i,r);return il(o)}
vendor: 4,717 bytes, line 40
40xv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ps(t.pendingLanes);n!==0&&(pf(t,n|1),Ze(t,ye()),!(J&6)&&(Gi=ye()+500,hr()))}break;case 13:Hr(function(){var r=wn(e,1);if(r!==null){var i=We();Vt(r,e,1,i)}}),Gf(e,1)}};mf=function(e){if(e.tag===13){var t=wn(e,134217728);if(t!==null){var n=We();Vt(t,e,134217728,n)}Gf(e,134217728)}};Sv=function(e){if(e.tag===13){var t=nr(e),n=wn(e,t);if(n!==null){var r=We();Vt(n,e,t,r)}Gf(e,t)}};Tv=function(){return ne};Ev=function(e,t){var n=ne;try{return ne=e,t()}finally{ne=n}};bc=function(e,t,n){switch(t){case"input":if(vc(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=Rl(r);if(!i)throw Error(O(90));ev(r),vc(r,i)}}}break;case"textarea":nv(e,n);break;case"select":t=n.value,t!=null&&Si(e,!!n.multiple,t,!1)}};uv=$f;cv=Hr;var cC={usingClientEntryPoint:!1,Events:[Eo,ci,Rl,av,lv,$f]},vs={findFiberByHostInstance:br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dC={bundleType:vs.bundleType,version:vs.version,rendererPackageName:vs.rendererPackageName,rendererConfig:vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hv(e),e===null?null:e.stateNode},findFiberByHostInstance:vs.findFiberByHostInstance||lC,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 Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{bl=Zo.inject(dC),en=Zo}catch{}}ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cC;ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qf(t))throw Error(O(200));return aC(e,t,null,n)};ct.createRoot=function(e,t){if(!Qf(e))throw Error(O(299));var n=!1,r="",i=H0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Kf(e,1,!1,null,null,n,!1,r,i),e[vn]=t.current,eo(e.nodeType===8?e.parentNode:e),new Yf(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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=hv(t),e=e===null?null:e.stateNode,e};ct.flushSync=function(e){return Hr(e)};ct.hydrate=function(e,t,n){if(!Vl(t))throw Error(O(200));return Fl(null,e,t,!0,n)};ct.hydrateRoot=function(e,t,n){if(!Qf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=H0;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=W0(t,null,e,1,n??null,i,!1,s,o),e[vn]=t.current,eo(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 _l(t)};ct.render=function(e,t,n){if(!Vl(t))throw Error(O(200));return Fl(null,e,t,!1,n)};ct.unmountComponentAtNode=function(e){if(!Vl(e))throw Error(O(40));return e._reactRootContainer?(Hr(function(){Fl(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1};ct.unstable_batchedUpdates=$f;ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vl(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Fl(e,t,n,!1,r)};ct.version="18.3.1-next-f1338f8080-20240426";function K0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(K0)}catch(e){console.error(e)}}K0(),Ky.exports=ct;var bo=Ky.exports;const G0=wo(bo);var Y0,am=bo;Y0=am.createRoot,am.hydrateRoot;const fC=1,hC=1e6;let _u=0;function pC(){return _u=(_u+1)%Number.MAX_SAFE_INTEGER,_u.toString()}const Vu=new Map,lm=e=>{if(Vu.has(e))return;const t=setTimeout(()=>{Vu.delete(e),zs({type:"REMOVE_TOAST",toastId:e})},hC);Vu.set(e,t)},mC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,fC)};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;
40return n?lm(n):e.toasts.forEach(r=>{lm(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)}}},Ta=[];let Ea={toasts:[]};function zs(e){Ea=mC(Ea,e),Ta.forEach(t=>{t(Ea)})}function gC({...e}){const t=pC(),n=i=>zs({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>zs({type:"DISMISS_TOAST",toastId:t});return zs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Q0(){const[e,t]=x.useState(Ea);return x.useEffect(()=>(Ta.push(t),()=>{const n=Ta.indexOf(t);n>-1&&Ta.splice(n,1)}),[e]),{...e,toast:gC,dismiss:n=>zs({type:"DISMISS_TOAST",toastId:n})}}function Ee(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 um(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zl(...e){return t=>{let n=!1;const r=e.map(i=>{const s=um(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():um(e[i],null)}}}}function Bt(...e){return x.useCallback(zl(...e),e)}function Bl(e,t=[]){let n=[];function r(s,o){const a=x.createContext(o),l=n.length;n=[...n,o];const u=d=>{var m;const{scope:f,children:h,...y}=d,g=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,w=x.useMemo(()=>y,Object.values(y));return T.jsx(g.Provider,{value:w,children:h})};u.displayName=s+"Provider";function c(d,f){var g;const h=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,y=x.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=n.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,yC(i,...t)]}function yC(...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 d=l(s)[`__scope${u}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function cm(e){const t=vC(e),n=x.forwardRef((r,i)=>{const{children:s,...o}=r,a=x.Children.toArray(s),l=a.find(xC);if(l){const u=l.props.children,c=a.map(d=>d===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:d);return T.jsx(t,{...o,ref:i,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return T.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function vC(e){const t=x.forwardRef((n,r)=>{const{children:i,...s}=n;if(x.isValidElement(i)){const o=TC(i),a=SC(s,i.props);return i.type!==x.Fragment&&(a.ref=r?zl(r,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wC=Symbol("radix.slottable");function xC(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wC}function SC(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)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function TC(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 EC(e){const t=e+"CollectionProvider",[n,r]=Bl(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:w,children:m}=g,p=N.useRef(null),v=N.useRef(new Map).current;return T.jsx(i,{scope:w,itemMap:v,collectionRef:p,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=cm(a),u=N.forwardRef((g,w)=>{const{scope:m,children:p}=g,v=s(a,m),S=Bt(w,v.collectionRef);return T.jsx(l,{ref:S,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=cm(c),h=N.forwardRef((g,w)=>{const{scope:m,children:p,...v}=g,S=N.useRef(null),E=Bt(w,S),C=s(c,m);return N.useEffect(()=>(C.itemMap.set(S,{ref:S,...v}),()=>void C.itemMap.delete(S))),T.jsx(f,{[d]:"",ref:E,children:p})});h.displayName=c;function y(g){const w=s(e+"CollectionConsumer",g);return N.useCallback(()=>{const p=w.collectionRef.current;
vendor: 8,994 bytes, line 40
40if(!p)return[];const v=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((C,b)=>v.indexOf(C.ref.current)-v.indexOf(b.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},y,r]}function CC(e){const t=bC(e),n=x.forwardRef((r,i)=>{const{children:s,...o}=r,a=x.Children.toArray(s),l=a.find(kC);if(l){const u=l.props.children,c=a.map(d=>d===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:d);return T.jsx(t,{...o,ref:i,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return T.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function bC(e){const t=x.forwardRef((n,r)=>{const{children:i,...s}=n;if(x.isValidElement(i)){const o=RC(i),a=AC(s,i.props);return i.type!==x.Fragment&&(a.ref=r?zl(r,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var PC=Symbol("radix.slottable");function kC(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===PC}function AC(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)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function RC(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)}var MC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tt=MC.reduce((e,t)=>{const n=CC(`Primitive.${t}`),r=x.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),T.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function X0(e,t){e&&bo.flushSync(()=>e.dispatchEvent(t))}function or(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function NC(e,t=globalThis==null?void 0:globalThis.document){const n=or(e);x.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 OC="DismissableLayer",id="dismissableLayer.update",DC="dismissableLayer.pointerDownOutside",LC="dismissableLayer.focusOutside",dm,q0=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xf=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=x.useContext(q0),[c,d]=x.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=x.useState({}),y=Bt(t,b=>d(b)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(w),p=c?g.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=m,E=IC(b=>{const P=b.target,D=[...u.branches].some(R=>R.contains(P));!S||D||(i==null||i(b),o==null||o(b),b.defaultPrevented||a==null||a())},f),C=_C(b=>{const P=b.target;[...u.branches].some(R=>R.contains(P))||(s==null||s(b),o==null||o(b),b.defaultPrevented||a==null||a())},f);return NC(b=>{p===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},f),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dm=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),fm(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=dm)}},[c,f,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),fm())},[c,u]),x.useEffect(()=>{const b=()=>h({});return document.addEventListener(id,b),()=>document.removeEventListener(id,b)},[]),T.jsx(tt.div,{...l,ref:y,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,E.onPointerDownCapture)})});Xf.displayName=OC;var jC="DismissableLayerBranch",Z0=x.forwardRef((e,t)=>{const n=x.useContext(q0),r=x.useRef(null),i=Bt(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),T.jsx(tt.div,{...e,ref:i})});Z0.displayName=jC;function IC(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){J0(DC,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 _C(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=x.useRef(!1);return x.useEffect(()=>{const i=s=>{s.target&&!r.current&&J0(LC,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 fm(){const e=new CustomEvent(id);document.dispatchEvent(e)}function J0(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?X0(i,s):i.dispatchEvent(s)}var VC=Xf,FC=Z0,ar=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},zC="Portal",ew=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=x.useState(!1);ar(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?G0.createPortal(T.jsx(tt.div,{...r,ref:t}),o):null});ew.displayName=zC;function BC(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var qf=e=>{const{present:t,children:n}=e,r=$C(t),i=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=Bt(r.ref,UC(i));return typeof n=="function"||r.isPresent?x.cloneElement(i,{ref:s}):null};qf.displayName="Presence";function $C(e){const[t,n]=x.useState(),r=x.useRef(null),i=x.useRef(e),s=x.useRef("none"),o=e?"mounted":"unmounted",[a,l]=BC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Jo(r.current);s.current=a==="mounted"?u:"none"},[a]),ar(()=>{const u=r.current,c=i.current;if(c!==e){const f=s.current,h=Jo(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),ar(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const g=Jo(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(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)})}},f=h=>{h.target===t&&(s.current=Jo(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Jo(e){return(e==null?void 0:e.animationName)||"none"}function UC(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)}var WC=sf[" useInsertionEffect ".trim().toString()]||ar;function HC({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=KC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=x.useRef(e!==void 0);x.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=x.useCallback(c=>{var d;if(a){const f=GC(c)?c(e):c;f!==e&&((d=o.current)==null||d.call(o,f))}else s(c)}
40,[a,e,s,o]);return[l,u]}function KC({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),i=x.useRef(n),s=x.useRef(t);return WC(()=>{s.current=t},[t]),x.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function GC(e){return typeof e=="function"}var YC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),QC="VisuallyHidden",$l=x.forwardRef((e,t)=>T.jsx(tt.span,{...e,ref:t,style:{...YC,...e.style}}));$l.displayName=QC;var XC=$l,Zf="ToastProvider",[Jf,qC,ZC]=EC("Toast"),[tw]=Bl("Toast",[ZC]),[JC,Ul]=tw(Zf),nw=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=x.useState(null),[u,c]=x.useState(0),d=x.useRef(!1),f=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zf}\`. Expected non-empty \`string\`.`),T.jsx(Jf.Provider,{scope:t,children:T.jsx(JC,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>c(h=>h+1),[]),onToastRemove:x.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};nw.displayName=Zf;var rw="ToastViewport",eb=["F8"],sd="toast.viewportPause",od="toast.viewportResume",iw=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=eb,label:i="Notifications ({hotkey})",...s}=e,o=Ul(rw,n),a=qC(n),l=x.useRef(null),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),f=Bt(t,d,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;x.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(S=>m[S]||m.code===S)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=l.current,m=d.current;if(y&&w&&m){const p=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(sd);m.dispatchEvent(C),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const C=new CustomEvent(od);m.dispatchEvent(C),o.isClosePausedRef.current=!1}},S=C=>{!w.contains(C.relatedTarget)&&v()},E=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",p),w.addEventListener("focusout",S),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[y,o.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:w})=>{const p=a().map(v=>{const S=v.ref.current,E=[S,...hb(S)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?p.reverse():p).flat()},[a]);return x.useEffect(()=>{const w=d.current;if(w){const m=p=>{var E,C,b;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const P=document.activeElement,D=p.shiftKey;if(p.target===w&&D){(E=u.current)==null||E.focus();return}const j=g({tabbingDirection:D?"backwards":"forwards"}),W=j.findIndex(L=>L===P);Fu(j.slice(W+1))?p.preventDefault():D?(C=u.current)==null||C.focus():(b=c.current)==null||b.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,g]),T.jsxs(FC,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&T.jsx(ad,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});Fu(w)}}),T.jsx(Jf.Slot,{scope:n,children:T.jsx(tt.ol,{tabIndex:-1,...s,ref:f})}),y&&T.jsx(ad,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});Fu(w)}})]})});iw.displayName=rw;var sw="ToastFocusProxy",ad=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Ul(sw,n);return T.jsx($l,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});ad.displayName=sw;var Po="Toast",tb="toast.swipeStart",nb="toast.swipeMove",rb="toast.swipeCancel",ib="toast.swipeEnd",ow=x.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=HC({prop:r,defaultProp:i??!0,onChange:s,caller:Po});return T.jsx(qf,{present:n||a,children:T.jsx(ab,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:or(e.onPause),onResume:or(e.onResume),onSwipeStart:Ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,u=>{const{x:c,y:d}=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",`${d}px`)}),onSwipeCancel:Ee(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:Ee(e.onSwipeEnd,u=>{const{x:c,y:d}=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",`${d}px`),l(!1)})})})});ow.displayName=Po;var[sb,ob]=tw(Po,{onClose(){}}),ab=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...y}=e,g=Ul(Po,n),[w,m]=x.useState(null),p=Bt(t,L=>m(L)),v=x.useRef(null),S=x.useRef(null),E=i||g.duration,C=x.useRef(0),b=x.useRef(E),P=x.useRef(0),{onToastAdd:D,onToastRemove:R}=g,_=or(()=>{var H;(w==null?void 0:w.contains(document.activeElement))&&((H=g.viewport)==null||H.focus()),o()}),j=x.useCallback(L=>{!L||L===1/0||(window.clearTimeout(P.current),C.current=new Date().getTime(),P.current=window.setTimeout(_,L))},[_]);x.useEffect(()=>{const L=g.viewport;if(L){const H=()=>{j(b.current),u==null||u()},z=()=>{const K=new Date().getTime()-C.current;b.current=b.current-K,window.clearTimeout(P.current),l==null||l()};return L.addEventListener(sd,z),L.addEventListener(od,H),()=>{L.removeEventListener(sd,z),L.removeEventListener(od,H)}}},[g.viewport,E,l,u,j]),x.useEffect(()=>{s&&!g.isClosePausedRef.current&&j(E)},[s,E,g.isClosePausedRef,j]),x.useEffect(()=>(D(),()=>R()),[D,R]);const W=x.useMemo(()=>w?hw(w):null,[w]);return g.viewport?T.jsxs(T.Fragment,{children:[W&&T.jsx(lb,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:W}),T.jsx(sb,{scope:n,onClose:_,children:bo.createPortal(T.jsx(Jf.ItemSlot,{scope:n,children:T.jsx(VC,{asChild:!0,onEscapeKeyDown:Ee(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||_(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:T.jsx(tt.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,_()))}),onPointerDown:Ee(e.onPointerDown,L=>{L.button===0&&(v.current={x:L.clientX,y:L.clientY})}),onPointerMove:Ee(e.onPointerMove,L=>{if(!v.current)return;const H=L.clientX-v.current.x,z=L.clientY-v.current.y,K=!!S.current,k=["left","right"].includes(g.swipeDirection),M=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,I=k?M(0,H):0,$=k?0:M(0,z),B=L.pointerType==="touch"?10:2,Q={x:I,y:$},q={originalEvent:L,delta:Q};K?(S.current=Q,ea(nb,d,q,{discrete:!1})):hm(Q,g.swipeDirection,B)?(S.current=Q,ea(tb,c,q,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(H)>B||Math.abs(z)>B)&&(v.current=null)}),onPointerUp:Ee(e.onPointerUp,L=>{const H=S.current,z=L.target;if(z.hasPointerCapture(L.pointerId)&&z.releasePointerCapture(L.pointerId),S.current=null,v.current=null,H){const K=L.currentTarget,k={originalEvent:L,delta:H};hm(H,g.swipeDirection,g.swipeThreshold)?ea(ib,h,k,{discrete:!0}):ea(rb,f,k,{discrete:!0}),K.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),lb=e=>{const{__scopeToast:t,children:n,...r}=e,i=Ul(Po,t),[s,o]=x.useState(!1),[a,l]=x.useState(!1);return db(()=>o(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:T.jsx(ew,{asChild:!0,children:T.jsx($l,{...r,children:s&&T.jsxs(T.Fragment,{children:[i.label," ",n]})})})},ub="ToastTitle",aw=x.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 40-60
40{const{__scopeToast:n,...r}=e;return T.jsx(tt.div,{...r,ref:t})});aw.displayName=ub;var cb="ToastDescription",lw=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return T.jsx(tt.div,{...r,ref:t})});lw.displayName=cb;var uw="ToastAction",cw=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?T.jsx(fw,{altText:n,asChild:!0,children:T.jsx(eh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${uw}\`. Expected non-empty \`string\`.`),null)});cw.displayName=uw;var dw="ToastClose",eh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=ob(dw,n);return T.jsx(fw,{asChild:!0,children:T.jsx(tt.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,i.onClose)})})});eh.displayName=dw;var fw=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return T.jsx(tt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function hw(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),fb(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(...hw(r))}}),t}function ea(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?X0(i,s):i.dispatchEvent(s)}var hm=(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 db(e=()=>{}){const t=or(e);ar(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function fb(e){return e.nodeType===e.ELEMENT_NODE}function hb(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 Fu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var pb=nw,pw=iw,mw=ow,gw=aw,yw=lw,vw=cw,ww=eh;function xw(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=xw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sw(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xw(e))&&(r&&(r+=" "),r+=t);return r}const pm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mm=Sw,Tw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return mm(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],d=s==null?void 0:s[u];if(c===null)return null;const f=pm(c)||pm(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(y=>{let[g,w]=y;return Array.isArray(w)?w.includes({...s,...a}[g]):{...s,...a}[g]===w})?[...u,d,f]:u},[]);return mm(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 mb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ew=(...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 gb={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 yb=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...gb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ew("lucide",i),...a},[...o.map(([u,c])=>x.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 Wl=(e,t)=>
vendor: 7,280 bytes, lines 60-80
60{const n=x.forwardRef(({className:r,...i},s)=>x.createElement(yb,{ref:s,iconNode:t,className:Ew(`lucide-${mb(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 gm=Wl("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 vb=Wl("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
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 wb=Wl("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
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 xb=Wl("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),th="-",Sb=e=>{const t=Eb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(th);return a[0]===""&&a.length!==1&&a.shift(),Cw(a,t)||Tb(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Cw=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Cw(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(th);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},ym=/^\[(.+)\]$/,Tb=e=>{if(ym.test(e)){const t=ym.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Eb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return bb(Object.entries(e.classGroups),n).forEach(([s,o])=>{ld(o,r,s,t)}),r},ld=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:vm(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(Cb(i)){ld(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{ld(o,vm(t,s),n,r)})})},vm=(e,t)=>{let n=e;return t.split(th).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Cb=e=>e.isThemeGetter,bb=(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,Pb=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)}}},bw="!",kb=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,d;for(let w=0;w<a.length;w++){let m=a[w];if(u===0){if(m===i&&(r||a.slice(w,w+s)===t)){l.push(a.slice(c,w)),c=w+s;continue}if(m==="/"){d=w;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?a:a.substring(c),h=f.startsWith(bw),y=h?f.substring(1):f,g=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},Ab=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},Rb=e=>({cache:Pb(e.cacheSize),parseClassName:kb(e),...Sb(e)}),Mb=/\s+/,Nb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(Mb);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let y=!!h,g=r(y?f.substring(0,h):f);if(!g){if(!y){a=u+(a.length>0?" "+a:a);continue}if(g=r(f),!g){a=u+(a.length>0?" "+a:a);continue}y=!1}const w=Ab(c).join(":"),m=d?w+bw:w,p=m+g;if(s.includes(p))continue;s.push(p);const v=i(g,y);for(let S=0;S<v.length;++S){const E=v[S];s.push(m+E)}a=u+(a.length>0?" "+a:a)}return a};function Ob(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Pw(t))&&(r&&(r+=" "),r+=n);return r}const Pw=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Pw(e[r]))&&(n&&(n+=" "),n+=t);return n};function Db(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=Rb(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=Nb(l,n);return i(l,c),c}return function(){return s(Ob.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kw=/^\[(?:([a-z-]+):)?(.+)\]$/i,Lb=/^\d+\/\d+$/,jb=new Set(["px","full","screen"]),Ib=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_b=/\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$/,Vb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,an=e=>ki(e)||jb.has(e)||Lb.test(e),On=e=>rs(e,"length",Yb),ki=e=>!!e&&!Number.isNaN(Number(e)),zu=e=>rs(e,"number",ki),ws=e=>!!e&&Number.isInteger(Number(e)),Bb=e=>e.endsWith("%")&&ki(e.slice(0,-1)),Y=e=>kw.test(e),Dn=e=>Ib.test(e),$b=new Set(["length","size","percentage"]),Ub=e=>rs(e,$b,Aw),Wb=e=>rs(e,"position",Aw),Hb=new Set(["image","url"]),Kb=e=>rs(e,Hb,Xb),Gb=e=>rs(e,"",Qb),xs=()=>!0,rs=(e,t,n)=>{const r=kw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Yb=e=>_b.test(e)&&!Vb.test(e),Aw=()=>!1,Qb=e=>Fb.test(e),Xb=e=>zb.test(e),qb=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),i=oe("borderColor"),s=oe("borderRadius"),o=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),c=oe("hueRotate"),d=oe("invert"),f=oe("gap"),h=oe("gradientColorStops"),y=oe("gradientColorStopPositions"),g=oe("inset"),w=oe("margin"),m=oe("opacity"),p=oe("padding"),v=oe("saturate"),S=oe("scale"),E=oe("sepia"),C=oe("skew"),b=oe("space"),P=oe("translate"),D=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",Y,t],j=()=>[Y,t],W=()=>["",an,On],L=()=>["auto",ki,Y],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",Y],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[ki,Y];return{cacheSize:500,separator:":",theme:{colors:[xs],spacing:[an,On],blur:["none","",Dn,Y],brightness:$(),borderColor:[e],borderRadius:["n
80one","","full",Dn,Y],borderSpacing:j(),borderWidth:W(),contrast:$(),grayscale:M(),hueRotate:$(),invert:M(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Bb,On],inset:_(),margin:_(),opacity:$(),padding:j(),saturate:$(),scale:$(),sepia:M(),skew:$(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Dn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:[...H(),Y]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ws,Y]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",ws,Y]}],"grid-cols":[{"grid-cols":[xs]}],"col-start-end":[{col:["auto",{span:["full",ws,Y]},Y]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[xs]}],"row-start-end":[{row:["auto",{span:[ws,Y]},Y]}],"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",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"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":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[Dn]},Dn]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Dn,On]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zu]}],"font-family":[{font:[xs]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",ki,zu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",an,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",an,On]}],"underline-offset":[{"underline-offset":["auto",an,Y]}],"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:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),Wb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ub]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 5,172 bytes, line 80
80],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],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":[m]}],"border-style":[{border:[...z(),"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":[m]}],"divide-style":[{divide:z()}],"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:["",...z()]}],"outline-offset":[{"outline-offset":[an,Y]}],"outline-w":[{outline:[an,On]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[an,On]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Dn,Gb]}],"shadow-color":[{shadow:[xs]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Dn,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"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",Y]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ws,Y]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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"]}
vendor: 4,646 bytes, line 80
80],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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[an,On,zu]}],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"]}}},Zb=Db(qb);function pr(...e){return Zb(Sw(e))}const Jb=pb,Rw=x.forwardRef(({className:e,...t},n)=>T.jsx(pw,{ref:n,className:pr("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}));Rw.displayName=pw.displayName;const eP=Tw("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"}}),Mw=x.forwardRef(({className:e,variant:t,...n},r)=>T.jsx(mw,{ref:r,className:pr(eP({variant:t}),e),...n}));Mw.displayName=mw.displayName;const tP=x.forwardRef(({className:e,...t},n)=>T.jsx(vw,{ref:n,className:pr("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));tP.displayName=vw.displayName;const Nw=x.forwardRef(({className:e,...t},n)=>T.jsx(ww,{ref:n,className:pr("absolute right-2 top-2 rounded-md p-1 text-foreground
80/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:T.jsx(xb,{className:"h-4 w-4"})}));Nw.displayName=ww.displayName;const Ow=x.forwardRef(({className:e,...t},n)=>T.jsx(gw,{ref:n,className:pr("text-sm font-semibold",e),...t}));Ow.displayName=gw.displayName;const Dw=x.forwardRef(({className:e,...t},n)=>T.jsx(yw,{ref:n,className:pr("text-sm opacity-90",e),...t}));Dw.displayName=yw.displayName;function nP(){const{toasts:e}=Q0();return T.jsxs(Jb,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return T.jsxs(Mw,{...s,children:[T.jsxs("div",{className:"grid gap-1",children:[n&&T.jsx(Ow,{children:n}),r&&T.jsx(Dw,{children:r})]}),i,T.jsx(Nw,{})]},t)}),T.jsx(Rw,{})]})}var wm=["light","dark"],rP="(prefers-color-scheme: dark)",iP=x.createContext(void 0),sP={setTheme:e=>{},themes:[]},oP=()=>{var e;return(e=x.useContext(iP))!=null?e:sP};x.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(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?wm.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(y,g=!1,w=!0)=>{let m=o?o[y]:y,p=g?y+"|| ''":`'${m}'`,v="";return i&&w&&!g&&wm.includes(y)&&(v+=`d.style.colorScheme = '${y}';`),n==="class"?g||m?v+=`c.add(${p})`:v+="null":m&&(v+=`d[s](n,${p})`),v},h=e?`!function(){${c}${f(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${rP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${d}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var aP=e=>{switch(e){case"success":return cP;case"info":return fP;case"warning":return dP;case"error":return hP;default:return null}},lP=Array(12).fill(0),uP=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},lP.map((n,r)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),cP=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),dP=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.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"})),fP=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),hP=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),pP=N.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"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mP=()=>{let[e,t]=N.useState(document.hidden);return N.useEffect(()=>{let n=()=>{t(document.hidden)};
80return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ud=1,gP=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:ud++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),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=>(this.dismissedToasts.add(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)=>
80this.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,s,o=r.then(async l=>{if(s=["resolve",l],N.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(vP(l)&&!l.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ud++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ge=new gP,yP=(e,t)=>{let n=(t==null?void 0:t.id)||ud++;return Ge.addToast({title:e,...t,id:n}),n},vP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",wP=yP,xP=()=>Ge.toasts,SP=()=>Ge.getActiveToasts();Object.assign(wP,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:xP,getToasts:SP});function TP(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))}TP(`: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;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-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;
80left: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;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}[data-sonner-toast] [data-close-button]{background:var(--gray1)}: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:-50%;right:-50%;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}
80: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-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);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-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--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%);
80--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[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%)}
81`);function ta(e){return e.label!==void 0}var EP=3,CP="32px",bP="16px",xm=4e3,PP=356,kP=14,AP=20,RP=200;function kt(...e){return e.filter(Boolean).join(" ")}function MP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var NP=e=>{var t,n,r,i,s,o,a,l,u,c,d;let{invert:f,toast:h,unstyled:y,interacting:g,setHeights:w,visibleToasts:m,heights:p,index:v,toasts:S,expanded:E,removeToast:C,defaultRichColors:b,closeButton:P,style:D,cancelButtonStyle:R,actionButtonStyle:_,className:j="",descriptionClassName:W="",duration:L,position:H,gap:z,loadingIcon:K,expandByDefault:k,classNames:M,icons:I,closeButtonAriaLabel:$="Close toast",pauseWhenPageIsHidden:B}=e,[Q,q]=N.useState(null),[ve,Le]=N.useState(null),[te,Qr]=N.useState(!1),[bn,gr]=N.useState(!1),[Pn,Xr]=N.useState(!1),[kn,Oo]=N.useState(!1),[ou,Do]=N.useState(!1),[au,us]=N.useState(0),[qr,Kh]=N.useState(0),cs=N.useRef(h.duration||L||xm),Gh=N.useRef(null),yr=N.useRef(null),RS=v===0,MS=v+1<=m,ft=h.type,Zr=h.dismissible!==!1,NS=h.className||"",OS=h.descriptionClassName||"",Lo=N.useMemo(()=>p.findIndex(G=>G.toastId===h.id)||0,[p,h.id]),DS=N.useMemo(()=>{var G;return(G=h.closeButton)!=null?G:P},[h.closeButton,P]),Yh=N.useMemo(()=>h.duration||L||xm,[h.duration,L]),lu=N.useRef(0),Jr=N.useRef(0),Qh=N.useRef(0),ei=N.useRef(null),[LS,jS]=H.split("-"),Xh=N.useMemo(()=>p.reduce((G,re,ue)=>ue>
81=Lo?G:G+re.height,0),[p,Lo]),qh=mP(),IS=h.invert||f,uu=ft==="loading";Jr.current=N.useMemo(()=>Lo*z+Xh,[Lo,Xh]),N.useEffect(()=>{cs.current=Yh},[Yh]),N.useEffect(()=>{Qr(!0)},[]),N.useEffect(()=>{let G=yr.current;if(G){let re=G.getBoundingClientRect().height;return Kh(re),w(ue=>[{toastId:h.id,height:re,position:h.position},...ue]),()=>w(ue=>ue.filter(Et=>Et.toastId!==h.id))}},[w,h.id]),N.useLayoutEffect(()=>{if(!te)return;let G=yr.current,re=G.style.height;G.style.height="auto";let ue=G.getBoundingClientRect().height;G.style.height=re,Kh(ue),w(Et=>Et.find(Ct=>Ct.toastId===h.id)?Et.map(Ct=>Ct.toastId===h.id?{...Ct,height:ue}:Ct):[{toastId:h.id,height:ue,position:h.position},...Et])},[te,h.title,h.description,w,h.id]);let An=N.useCallback(()=>{gr(!0),us(Jr.current),w(G=>G.filter(re=>re.toastId!==h.id)),setTimeout(()=>{C(h)},RP)},[h,C,w,Jr]);N.useEffect(()=>{if(h.promise&&ft==="loading"||h.duration===1/0||h.type==="loading")return;let G;return E||g||B&&qh?(()=>{if(Qh.current<lu.current){let re=new Date().getTime()-lu.current;cs.current=cs.current-re}Qh.current=new Date().getTime()})():cs.current!==1/0&&(lu.current=new Date().getTime(),G=setTimeout(()=>{var re;(re=h.onAutoClose)==null||re.call(h,h),An()},cs.current)),()=>clearTimeout(G)},[E,g,h,ft,B,qh,An]),N.useEffect(()=>{h.delete&&An()},[An,h.delete]);function _S(){var G,re,ue;return I!=null&&I.loading?N.createElement("div",{className:kt(M==null?void 0:M.loader,(G=h==null?void 0:h.classNames)==null?void 0:G.loader,"sonner-loader"),"data-visible":ft==="loading"},I.loading):K?N.createElement("div",{className:kt(M==null?void 0:M.loader,(re=h==null?void 0:h.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":ft==="loading"},K):N.createElement(uP,{className:kt(M==null?void 0:M.loader,(ue=h==null?void 0:h.classNames)==null?void 0:ue.loader),visible:ft==="loading"})}return N.createElement("li",{tabIndex:0,ref:yr,className:kt(j,NS,M==null?void 0:M.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[ft],(n=h==null?void 0:h.classNames)==null?void 0:n[ft]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:b,"data-styled":!(h.jsx||h.unstyled||y),"data-mounted":te,"data-promise":!!h.promise,"data-swiped":ou,"data-removed":bn,"data-visible":MS,"data-y-position":LS,"data-x-position":jS,"data-index":v,"data-front":RS,"data-swiping":Pn,"data-dismissible":Zr,"data-type":ft,"data-invert":IS,"data-swipe-out":kn,"data-swipe-direction":ve,"data-expanded":!!(E||k&&te),style:{"--index":v,"--toasts-before":v,"--z-index":S.length-v,"--offset":`${bn?au:Jr.current}px`,"--initial-height":k?"auto":`${qr}px`,...D,...h.style},onDragEnd:()=>{Xr(!1),q(null),ei.current=null},onPointerDown:G=>{uu||!Zr||(Gh.current=new Date,us(Jr.current),G.target.setPointerCapture(G.pointerId),G.target.tagName!=="BUTTON"&&(Xr(!0),ei.current={x:G.clientX,y:G.clientY}))},onPointerUp:()=>{var G,re,ue,Et;if(kn||!Zr)return;ei.current=null;let Ct=Number(((G=yr.current)==null?void 0:G.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Rn=Number(((re=yr.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),vr=new Date().getTime()-((ue=Gh.current)==null?void 0:ue.getTime()),bt=Q==="x"?Ct:Rn,Mn=Math.abs(bt)/vr;if(Math.abs(bt)>=AP||Mn>.11){us(Jr.current),(Et=h.onDismiss)==null||Et.call(h,h),Le(Q==="x"?Ct>0?"right":"left":Rn>0?"down":"up"),An(),Oo(!0),Do(!1);return}Xr(!1),q(null)},onPointerMove:G=>{var re,ue,Et,Ct;if(!ei.current||!Zr||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let Rn=G.clientY-ei.current.y,vr=G.clientX-ei.current.x,bt=(ue=e.swipeDirections)!=null?ue:MP(H);!Q&&(Math.abs(vr)>1||Math.abs(Rn)>1)&&q(Math.abs(vr)>Math.abs(Rn)?"x":"y");let Mn={x:0,y:0};Q==="y"?(bt.includes("top")||bt.includes("bottom"))&&(bt.includes("top")&&Rn<0||bt.includes("bottom")&&Rn>0)&&(Mn.y=Rn):Q==="x"&&(bt.includes("left")||bt.includes("right"))&&(bt.includes("left")&&vr<0||bt.includes("right")&&vr>0)&&(Mn.x=vr),(Math.abs(Mn.x)>0||Math.abs(Mn.y)>0)&&Do(!0),(Et=yr.current)==null||Et.style.setProperty("--swipe-amount-x",`${Mn.x}px`),(Ct=yr.current)==null||Ct.style.setProperty("--swipe-amount-y",`${Mn.y}px`)}},DS&&!h.jsx?N.createElement("button",{"aria-label":$,"data-disabled":uu,"data-close-button":!0,onClick:uu||!Zr?()=>{}:()=>{var G;An(),(G=h.onDismiss)==null||G.call(h,h)},className:kt(M==null?void 0:M.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},(s=I==null?void 0:I.close)!=null?s:pP):null,h.jsx||x.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:N.createElement(N.Fragment,null,ft||h.icon||h.promise?N.createElement("div",{"data-icon":"",className:kt(M==null?void 0:M.icon,(o=h==null?void 0:h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||_S():null,h.type!=="loading"?h.icon||(I==null?void 0:I[ft])||aP(ft):null):null,N.createElement("div",{"data-content":"",className:kt(M==null?void 0:M.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},N.createElement("div",{"data-title":"",className:kt(M==null?void 0:M.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?N.createElement("div",{"data-description":"",className:kt(W,OS,M==null?void 0:M.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),x.isValidElement(h.cancel)?h.cancel:h.cancel&&ta(h.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||R,onClick:G=>{var re,ue;ta(h.cancel)&&Zr&&((ue=(re=h.cancel).onClick)==null||ue.call(re,G),An())},className:kt(M==null?void 0:M.cancelButton,(c=h==null?void 0:h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,x.isValidElement(h.action)?h.action:h.action&&ta(h.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||_,onClick:G=>{var re,ue;ta(h.action)&&((ue=(re=h.action).onClick)==null||ue.call(re,G),!G.defaultPrevented&&An())},className:kt(M==null?void 0:M.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};
81function Sm(){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}function OP(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?bP:CP;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var DP=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:f,style:h,visibleToasts:y=EP,toastOptions:g,dir:w=Sm(),gap:m=kP,loadingIcon:p,icons:v,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[C,b]=N.useState([]),P=N.useMemo(()=>Array.from(new Set([r].concat(C.filter(
vendor: 4,192 bytes, line 81
81B=>B.position).map(B=>B.position)))),[C,r]),[D,R]=N.useState([]),[_,j]=N.useState(!1),[W,L]=N.useState(!1),[H,z]=N.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=N.useRef(null),k=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=N.useRef(null),I=N.useRef(!1),$=N.useCallback(B=>{b(Q=>{var q;return(q=Q.find(ve=>ve.id===B.id))!=null&&q.delete||Ge.dismiss(B.id),Q.filter(({id:ve})=>ve!==B.id)})},[]);return N.useEffect(()=>Ge.subscribe(B=>{if(B.dismiss){b(Q=>Q.map(q=>q.id===B.id?{...q,delete:!0}:q));return}setTimeout(()=>{G0.flushSync(()=>{b(Q=>{let q=Q.findIndex(ve=>ve.id===B.id);return q!==-1?[...Q.slice(0,q),{...Q[q],...B},...Q.slice(q+1)]:[B,...Q]})})})}),[]),N.useEffect(()=>{if(c!=="system"){z(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Q})=>{z(Q?"dark":"light")})}catch{B.addListener(({matches:q})=>{try{z(q?"dark":"light")}catch(ve){console.error(ve)}})}},[c]),N.useEffect(()=>{C.length<=1&&j(!1)},[C]),N.useEffect(()=>{let B=Q=>{var q,ve;i.every(Le=>Q[Le]||Q.code===Le)&&(j(!0),(q=K.current)==null||q.focus()),Q.code==="Escape"&&(document.activeElement===K.current||(ve=K.current)!=null&&ve.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[i]),N.useEffect(()=>{if(K.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,I.current=!1)}},[K.current]),N.createElement("section",{ref:t,"aria-label":`${S} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((B,Q)=>{var q;let[ve,Le]=B.split("-");return C.length?N.createElement("ol",{key:B,dir:w==="auto"?Sm():w,tabIndex:-1,ref:K,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":ve,"data-lifted":_&&C.length>1&&!s,"data-x-position":Le,style:{"--front-toast-height":`${((q=D[0])==null?void 0:q.height)||0}px`,"--width":`${PP}px`,"--gap":`${m}px`,...h,...OP(l,u)},onBlur:te=>{I.current&&!te.currentTarget.contains(te.relatedTarget)&&(I.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||I.current||(I.current=!0,M.current=te.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{W||j(!1)},onDragEnd:()=>j(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},C.filter(te=>!te.position&&Q===0||te.position===B).map((te,Qr)=>{var bn,gr;return N.createElement(NP,{key:te.id,icons:v,index:Qr,toast:te,defaultRichColors:d,duration:(bn=g==null?void 0:g.duration)!=null?bn:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:y,closeButton:(gr=g==null?void 0:g.closeButton)!=null?gr:o,interacting:W,position:B,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:$,toasts:C.filter(Pn=>Pn.position==te.position),heights:D.filter(Pn=>Pn.position==te.position),setHeights:R,expandByDefault:s,gap:m,loadingIcon:p,expanded:_,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const LP=({...e})=>{const{theme:t="system"}=oP();return T.jsx(DP,{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})},jP=["top","right","bottom","left"],lr=Math.min,it=Math.max,sl=Math.round,na=Math.floor,nn=e=>({x:e,y:e}
vendor: 13,036 bytes, line 81
81),IP={left:"right",right:"left",bottom:"top",top:"bottom"};function cd(e,t,n){return it(e,lr(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function Tn(e){return e.split("-")[0]}function is(e){return e.split("-")[1]}function nh(e){return e==="x"?"y":"x"}function rh(e){return e==="y"?"height":"width"}function Jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ih(e){return nh(Jt(e))}function _P(e,t,n){n===void 0&&(n=!1);const r=is(e),i=ih(e),s=rh(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=ol(o)),[o,ol(o)]}function VP(e){const t=ol(e);return[dd(e),t,dd(t)]}function dd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Tm=["left","right"],Em=["right","left"],FP=["top","bottom"],zP=["bottom","top"];function BP(e,t,n){switch(e){case"top":case"bottom":return n?t?Em:Tm:t?Tm:Em;case"left":case"right":return t?FP:zP;default:return[]}}function $P(e,t,n,r){const i=is(e);let s=BP(Tn(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(dd)))),s}function ol(e){const t=Tn(e);return IP[t]+e.slice(t.length)}function UP(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lw(e){return typeof e!="number"?UP(e):{top:e,right:e,bottom:e,left:e}}function al(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 Cm(e,t,n){let{reference:r,floating:i}=e;const s=Jt(t),o=ih(t),a=rh(o),l=Tn(t),u=s==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(is(t)){case"start":h[o]-=f*(n&&u?-1:1);break;case"end":h[o]+=f*(n&&u?-1:1);break}return h}async function WP(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:d="floating",altBoundary:f=!1,padding:h=0}=Sn(t,e),y=Lw(h),w=a[f?d==="floating"?"reference":"floating":d],m=al(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=d==="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},E=al(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:v,strategy:l}):p);return{top:(m.top-E.top+y.top)/S.y,bottom:(E.bottom-m.bottom+y.bottom)/S.y,left:(m.left-E.left+y.left)/S.x,right:(E.right-m.right+y.right)/S.x}}const HP=50,KP=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:WP},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Cm(u,r,l),f=r,h=0;const y={};for(let g=0;g<s.length;g++){const w=s[g];if(!w)continue;const{name:m,fn:p}=w,{x:v,y:S,data:E,reset:C}=await p({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:y,rects:u,platform:a,elements:{reference:e,floating:t}});c=v??c,d=S??d,y[m]={...y[m],...E},C&&h<HP&&(h++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:c,y:d}=Cm(u,f,l)),g=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:y}},GP=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}=Sn(e,t)||{};if(u==null)return{};const d=Lw(c),f={x:n,y:r},h=ih(i),y=rh(h),g=await o.getDimensions(u),w=h==="y",m=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=s.reference[y]+s.reference[h]-f[h]-s.floating[y],E=f[h]-s.reference[h],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let b=C?C[v]:0;(!b||!await(o.isElement==null?void 0:o.isElement(C)))&&(b=a.floating[v]||s.floating[y]);const P=S/2-E/2,D=b/2-g[y]/2-1,R=lr(d[m],D),_=lr(d[p],D),j=R,W=b-g[y]-_,L=b/2-g[y]/2+P,H=cd(j,L,W),z=!l.arrow&&is(i)!=null&&L!==H&&s.reference[y]/2-(L<j?R:_)-g[y]/2<0,K=z?L<j?L-j:L-W:0;return{[h]:f[h]+K,data:{[h]:H,centerOffset:L-H-K,...z&&{alignmentOffset:K}},reset:z}}}),YP=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:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=Sn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=Tn(i),p=Jt(a),v=Tn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=f||(v||!g?[ol(a)]:VP(a)),C=y!=="none";!f&&C&&E.push(...$P(a,g,y,S));const b=[a,...E],P=await l.detectOverflow(t,w),D=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&D.push(P[m]),d){const L=_P(i,o,S);D.push(P[L[0]],P[L[1]])}if(R=[...R,{placement:i,overflows:D}],!D.every(L=>L<=0)){var _,j;const L=(((_=s.flip)==null?void 0:_.index)||0)+1,H=b[L];if(H&&(!(d==="alignment"?p!==Jt(H):!1)||R.every(k=>Jt(k.placement)===p?k.overflows[0]>0:!0)))return{data:{index:L,overflows:R},reset:{placement:H}};let z=(j=R.filter(K=>K.overflows[0]<=0).sort((K,k)=>K.overflows[1]-k.overflows[1])[0])==null?void 0:j.placement;if(!z)switch(h){case"bestFit":{var W;const K=(W=R.filter(k=>{if(C){const M=Jt(k.placement);return M===p||M==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(M=>M>0).reduce((M,I)=>M+I,0)]).sort((k,M)=>k[1]-M[1])[0])==null?void 0:W[0];K&&(z=K);break}case"initialPlacement":z=a;break}if(i!==z)return{reset:{placement:z}}}return{}}}};function bm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pm(e){return jP.some(t=>e[t]>=0)}const QP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=Sn(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=bm(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Pm(a)}}}case"escaped":{const o=await r.detectOverflow(t,{...s,altBoundary:!0}),a=bm(o,n.floating);return{data:{escapedOffsets:a,escaped:Pm(a)}}}default:return{}}}}},jw=new Set(["left","top"]);async function XP(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Tn(n),a=is(n),l=Jt(n)==="y",u=jw.has(o)?-1:1,c=s&&l?-1:1,d=Sn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const qP=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 XP(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}}}}},ZP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:m=>{let{x:p,y:v}=m;return{x:p,y:v}}},...u}=Sn(e,t),c={x:n,y:r},d=await s.detectOverflow(t,u),f=Jt(Tn(i)),h=nh(f);let y=c[h],g=c[f];if(o){const m=h==="y"?"top":"left",p=h==="y"?"bottom":"right",v=y+d[m],S=y-d[p];y=cd(v,y,S)}if(a){const m=f==="y"?"top":"left",p=f==="y"?"bottom":"right",v=g+d[m],S=g-d[p];g=cd(v,g,S)}const w=l.fn({...t,[h]:y,[f]:g});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:o,[f]:a}}}}}},JP=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}=Sn(e,t),c={x:n,y:r},d=Jt(i),f=nh(d);let h=c[f],y=c[d];const g=Sn(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=f==="y"?"height":"width",S=s.reference[f]-s.floating[v]+w.mainAxis,E=s.reference[f]+s.reference[v]-w.mainAxis;h<S?h=S:h>E&&(h=E)}if(u){var m,p;const v=f==="y"?"width":"height",S=jw.has(Tn(i)),E=s.reference[d]-s.floating[v]+(S&&((m=o.offset)==null?void 0:m[d])||0)+(S?0:w.crossAxis),C=s.reference[d]+s.reference[v]+(S?0:((p=o.offset)==null?void 0:p[d])||0)-(S?w.crossAxis:0);y<E?y=E:y>C&&(y=C)}return{[f]:h,[d]:y}}}},ek=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}=Sn(e,t),c=await o.detectOverflow(t,u),d=Tn(i),f=is(i),h=Jt(i)==="y",{width:y,height:g}=s.floating;let w,m;d==="top"||d==="bottom"?(w=d,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,w=f==="end"?"top":"bottom");const p=g-c.top-c.bottom,v=y-c.left-c.right,S=lr(g-c[w],p),E=lr(y-c[m],v),C=!t.middlewareData.shift;let b=S,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=p),C&&!f){const R=it(c.left,0),_=it(c.right,0),j=it(c.top,0),W=it(c.bottom,0);h?P=y-2*(R!==0||_!==0?R+_:it(c.left,c.right)):b=g-2*(j!==0||W!==0?j+W:it(c.top,c.bottom))}await l({...t,availableWidth:P,availableHeight:b});const D=await o.getDimensions(a.floating);return y!==D.width||g!==D.height?{reset:{rects:!0}}:{}}}};function Hl(){return typeof window<"u"}function ss(e){return Iw(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sn(e){var t;return(t=(Iw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Iw(e){return Hl()?e instanceof Node||e instanceof at(e).Node:!1}function $t(e){return Hl()?e instanceof Element||e instanceof at(e).Element:!1}function Cn(e){return Hl()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function km(e){return!Hl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}function ko(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function tk(e){return/^(table|td|th)$/.test(ss(e))}function Kl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const nk=/transform|translate|scale|rotate|perspective|filter/,rk=/paint|layout|strict|content/,wr=e=>!!e&&e!=="none";let Bu;function sh(e){const t=$t(e)?Ut(e):e;return wr(t.transform)||wr(t.translate)||wr(t.scale)||wr(t.rotate)||wr(t.perspective)||!oh()&&(wr(t.backdropFilter)||wr(t.filter))||nk.test(t.willChange||"")||rk.test(t.contain||"")}function ik(e){let t=ur(e);for(;Cn(t)&&!Yi(t);){if(sh(t))return t;if(Kl(t))return null;t=ur(t)}return null}function oh(){return Bu==null&&(Bu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Bu}function Yi(e){return/^(html|body|#document)$/.test(ss(e))}function Ut(e){return at(e).getComputedStyle(e)}function Gl(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ur(e){if(ss(e)==="html")return e;const t=e.assignedSlot||e.parentNode||km(e)&&e.host||sn(e);return km(t)?t.host:t}function _w(e){const t=ur(e);return Yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cn(t)&&ko(t)?t:_w(t)}function uo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_w(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=at(i);if(s){const a=fd(o);return t.concat(o,o.visualViewport||[],ko(i)?i:[],a&&n?uo(a):[])}else return t.concat(i,uo(i,[],n))}function fd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vw(e){const t=Ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Cn(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=sl(n)!==s||sl(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function ah(e){return $t(e)?e:e.contextElement}function Ai(e){const t=ah(e);if(!Cn(t))return nn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Vw(t);let o=(s?sl(n.width):n.width)/r,a=(s?sl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const sk=nn(0);function Fw(e){const t=at(e);return!oh()||!t.visualViewport?sk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ok(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==at(e)?!1:t}function Kr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=ah(e);let o=nn(1);t&&(r?$t(r)&&(o=Ai(r)):o=Ai(e));const a=ok(s,n,r)?Fw(s):nn(0);let l=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(s){const f=at(s),h=r&&$t(r)?at(r):r;
vendor: 12,262 bytes, line 81
81let y=f,g=fd(y);for(;g&&r&&h!==y;){const w=Ai(g),m=g.getBoundingClientRect(),p=Ut(g),v=m.left+(g.clientLeft+parseFloat(p.paddingLeft))*w.x,S=m.top+(g.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=v,u+=S,y=at(g),g=fd(y)}}return al({width:c,height:d,x:l,y:u})}function Yl(e,t){const n=Gl(e).scrollLeft;return t?t.left+n:Kr(sn(e)).left+n}function zw(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Yl(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function ak(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=sn(r),a=t?Kl(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=nn(1);const c=nn(0),d=Cn(r);if((d||!d&&!s)&&((ss(r)!=="body"||ko(o))&&(l=Gl(r)),d)){const h=Kr(r);u=Ai(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const f=o&&!d&&!s?zw(o,l):nn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function lk(e){return Array.from(e.getClientRects())}function uk(e){const t=sn(e),n=Gl(e),r=e.ownerDocument.body,i=it(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=it(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Yl(e);const a=-n.scrollTop;return Ut(r).direction==="rtl"&&(o+=it(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}const Am=25;function ck(e,t){const n=at(e),r=sn(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=oh();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=Yl(r);if(u<=0){const c=r.ownerDocument,d=c.body,f=getComputedStyle(d),h=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,y=Math.abs(r.clientWidth-d.clientWidth-h);y<=Am&&(s-=y)}else u<=Am&&(s+=u);return{width:s,height:o,x:a,y:l}}function dk(e,t){const n=Kr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Cn(e)?Ai(e):nn(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 Rm(e,t,n){let r;if(t==="viewport")r=ck(e,n);else if(t==="document")r=uk(sn(e));else if($t(t))r=dk(t,n);else{const i=Fw(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return al(r)}function Bw(e,t){const n=ur(e);return n===t||!$t(n)||Yi(n)?!1:Ut(n).position==="fixed"||Bw(n,t)}function fk(e,t){const n=t.get(e);if(n)return n;let r=uo(e,[],!1).filter(a=>$t(a)&&ss(a)!=="body"),i=null;const s=Ut(e).position==="fixed";let o=s?ur(e):e;for(;$t(o)&&!Yi(o);){const a=Ut(o),l=sh(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ko(o)&&!l&&Bw(e,o))?r=r.filter(c=>c!==o):i=a,o=ur(o)}return t.set(e,r),r}function hk(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Kl(t)?[]:fk(t,this._c):[].concat(n),r],a=Rm(t,o[0],i);let l=a.top,u=a.right,c=a.bottom,d=a.left;for(let f=1;f<o.length;f++){const h=Rm(t,o[f],i);l=it(h.top,l),u=lr(h.right,u),c=lr(h.bottom,c),d=it(h.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function pk(e){const{width:t,height:n}=Vw(e);return{width:t,height:n}}function mk(e,t,n){const r=Cn(t),i=sn(t),s=n==="fixed",o=Kr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=nn(0);function u(){l.x=Yl(i)}if(r||!r&&!s)if((ss(t)!=="body"||ko(i))&&(a=Gl(t)),r){const h=Kr(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const c=i&&!r&&!s?zw(i,a):nn(0),d=o.left+a.scrollLeft-l.x-c.x,f=o.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:o.width,height:o.height}}function $u(e){return Ut(e).position==="static"}function Mm(e,t){if(!Cn(e)||Ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return sn(e)===n&&(n=n.ownerDocument.body),n}function $w(e,t){const n=at(e);if(Kl(e))return n;if(!Cn(e)){let i=ur(e);for(;i&&!Yi(i);){if($t(i)&&!$u(i))return i;i=ur(i)}return n}let r=Mm(e,t);for(;r&&tk(r)&&$u(r);)r=Mm(r,t);return r&&Yi(r)&&$u(r)&&!sh(r)?n:r||ik(e)||n}const gk=async function(e){const t=this.getOffsetParent||$w,n=this.getDimensions,r=await n(e.floating);return{reference:mk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yk(e){return Ut(e).direction==="rtl"}const vk={convertOffsetParentRelativeRectToViewportRelativeRect:ak,getDocumentElement:sn,getClippingRect:hk,getOffsetParent:$w,getElementRects:gk,getClientRects:lk,getDimensions:pk,getScale:Ai,isElement:$t,isRTL:yk};function Uw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wk(e,t){let n=null,r;const i=sn(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 u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(a||t(),!f||!h)return;const y=na(d),g=na(i.clientWidth-(c+f)),w=na(i.clientHeight-(d+h)),m=na(c),v={rootMargin:-y+"px "+-g+"px "+-w+"px "+-m+"px",threshold:it(0,lr(1,l))||1};let S=!0;function E(C){const b=C[0].intersectionRatio;if(b!==l){if(!S)return o();b?o(!1,b):r=setTimeout(()=>{o(!1,1e-7)},1e3)}b===1&&!Uw(u,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(E,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return o(!0),s}function xk(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=ah(e),c=i||s?[...u?uo(u):[],...t?uo(t):[]]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const d=u&&a?wk(u,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let y,g=l?Kr(e):null;l&&w();function w(){const m=Kr(e);g&&!Uw(g,m)&&n(),g=m,y=requestAnimationFrame(w)}return n(),()=>{var m;c.forEach(p=>{i&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const Sk=qP,Tk=ZP,Ek=YP,Ck=ek,bk=QP,Nm=GP,Pk=JP,kk=(e,t,n)=>{const r=new Map,i={platform:vk,...n},s={...i.platform,_c:r};return KP(e,t,{...i,platform:s})};var Ak=typeof document<"u",Rk=function(){},Ca=Ak?x.useLayoutEffect:Rk;function ll(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(!ll(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)&&!ll(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ww(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Om(e,t){const n=Ww(e);return Math.round(t*n)/n}function Uu(e){const t=x.useRef(e);return Ca(()=>{t.current=e}),t}function Mk(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,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=x.useState(r);ll(f,r)||h(r);const[y,g]=x.useState(null),[w,m]=x.useState(null),p=x.useCallback(k=>{k!==C.current&&(C.current=k,g(k))},[]),v=x.useCallback(k=>{k!==b.current&&(b.current=k,m(k))},[]),S=s||y,E=o||w,C=x.useRef(null),b=x.useRef(null),P=x.useRef(c),D=l!=null,R=Uu(l),_=Uu(i),j=Uu(u),W=x.useCallback(()=>{if(!C.current||!b.current)return;const k={placement:t,strategy:n,middleware:f};_.current&&(k.platform=_.current),kk(C.current,b.current,k).then(M=>{const I={...M,isPositioned:j.current!==!1};L.current&&!ll(P.current,I)&&(P.current=I,bo.flushSync(()=>{d(I)}))})},[f,t,n,_,j]);Ca(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[u]);const L=x.useRef(!1);Ca(()=>(L.current=!0,()=>{L.current=!1}),[]),Ca(()=>{if(S&&(C.current=S),E&&(b.current=E),S&&E){if(R.current)return R.current(S,E,W);W()}},[S,E,W,R,D]);const H=x.useMemo(()=>({reference:C,floating:b,setReference:p,setFloating:v}),[p,v]),z=x.useMemo(()=>({reference:S,floating:E}),[S,E]),K=x.useMemo(()=>{const k={position:n,left:0,top:0};if(!z.floating)return k;const M=Om(z.floating,c.x),I=Om(z.floating,c.y);return a?{...k,transform:"translate("+M+"px, "+I+"px)",...Ww(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:I}},[n,a,z.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:W,refs:H,elements:z,floatingStyles:K}),[c,W,H,z,K])}const Nk=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?Nm({element:r.current,padding:i}).fn(n):{}:r?Nm({element:r,padding:i}).fn(n):{}}}},Ok=(e,t)=>{const n=Sk(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dk=(e,t)=>{const n=Tk(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lk=(e,t)=>({fn:Pk(e).fn,options:[e,t]}),jk=(e,t)=>{const n=Ek(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ik=(e,t)=>{const n=Ck(e);return{name:n.name,fn:n.fn,options:[e,t]}},_k=(e,t)=>{const n=bk(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vk=(e,t)=>{const n=Nk(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Fk="Arrow",Hw=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return T.jsx(tt.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:T.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hw.displayName=Fk;var zk=Hw;function Bk(e){const[t,n]=x.useState(void 0);return ar(()=>{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 Kw="Popper",[Gw,Yw]=Bl(Kw),[$L,Qw]=Gw(Kw),Xw="PopperAnchor",qw=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Qw(Xw,n),o=x.useRef(null),a=Bt(t,o),l=x.useRef(null);return x.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||o.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:T.jsx(tt.div,{...i,ref:a})});qw.displayName=Xw;var lh="PopperContent",[$k,Uk]=Gw(lh),Zw=x.forwardRef((e,t)=>{var te,Qr,bn,gr,Pn,Xr;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:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:y,...g}=e,w=Qw(lh,n),[m,p]=x.useState(null),v=Bt(t,kn=>p(kn)),[S,E]=x.useState(null),C=Bk(S),b=(C==null?void 0:C.width)??0,P=(C==null?void 0:C.height)??0,D=r+(s!=="center"?"-"+s:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},_=Array.isArray(u)?u:[u],j=_.length>0,W={padding:R,boundary:_.filter(Hk),altBoundary:j},{refs:L,floatingStyles:H,placement:z,isPositioned:K,middlewareData:k}=Mk({strategy:"fixed",placement:D,whileElementsMounted:(...kn)=>xk(...kn,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[Ok({mainAxis:i+P,alignmentAxis:o}),l&&Dk({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Lk():void 0,...W}),l&&jk({...W}),Ik({...W,apply:({elements:kn,rects:Oo,availableWidth:ou,availableHeight:Do})=>{const{width:au,height:us}=Oo.reference,qr=kn.floating.style;qr.setProperty("--radix-popper-available-width",`${ou}px`),qr.setProperty("--radix-popper-available-height",`${Do}px`),qr.setProperty("--radix-popper-anchor-width",`${au}px`),qr.setProperty("--radix-popper-anchor-height",`${us}px`)}}),S&&Vk({element:S,padding:a}),Kk({arrowWidth:b,arrowHeight:P}),f&&_k({strategy:"referenceHidden",...W})]}),[M,I]=tx(z),$=or(y);ar(()=>{K&&($==null||$())},[K,$]);const B=(te=k.arrow)==null?void 0:te.x,Q=(Qr=k.arrow)==null?void 0:Qr.y,q=((bn=k.arrow)==null?void 0:bn.centerOffset)!==0,[ve,Le]=x.use
vendor: 4,218 bytes, line 81
81State();return ar(()=>{m&&Le(window.getComputedStyle(m).zIndex)},[m]),T.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:K?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(gr=k.transformOrigin)==null?void 0:gr.x,(Pn=k.transformOrigin)==null?void 0:Pn.y].join(" "),...((Xr=k.hide)==null?void 0:Xr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:T.jsx($k,{scope:n,placedSide:M,onArrowChange:E,arrowX:B,arrowY:Q,shouldHideArrow:q,children:T.jsx(tt.div,{"data-side":M,"data-align":I,...g,ref:v,style:{...g.style,animation:K?void 0:"none"}})})})});Zw.displayName=lh;var Jw="PopperArrow",Wk={top:"bottom",right:"left",bottom:"top",left:"right"},ex=x.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=Uk(Jw,r),o=Wk[s.placedSide];return T.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:T.jsx(zk,{...i,ref:n,style:{...i.style,display:"block"}})})});ex.displayName=Jw;function Hk(e){return e!==null}var Kk=e=>({name:"transformOrigin",options:e,fn(t){var w,m,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]=tx(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=i.arrow)==null?void 0:m.x)??0)+a/2,h=(((p=i.arrow)==null?void 0:p.y)??0)+l/2;let y="",g="";return u==="bottom"?(y=o?d:`${f}px`,g=`${-l}px`):u==="top"?(y=o?d:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,g=o?d:`${h}px`):u==="left"&&(y=`${r.floating.width+l}px`,g=o?d:`${h}px`),{data:{x:y,y:g}}}});function tx(e){const[t,n="center"]=e.split("-");return[t,n]}var Gk=qw,Yk=Zw,Qk=ex,Xk=Symbol("radix.slottable");function qk(e){const t=({children:n})=>T.jsx(T.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Xk,t}var[Ql]=Bl("Tooltip",[Yw]),uh=Yw(),nx="TooltipProvider",Zk=700,Dm="tooltip.open",[Jk,rx]=Ql(nx),ix=e=>{const{__scopeTooltip:t,delayDuration:n=Zk,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),T.jsx(Jk,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:i,children:s})};ix.displayName=nx;var sx="Tooltip",[UL,Xl]=Ql(sx),hd="TooltipTrigger",eA=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Xl(hd,n),s=rx(hd,n),o=uh(n),a=x.useRef(null),l=Bt(t,a,i.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),d=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),T.jsx(Gk,{asChild:!0,...o,children:T.jsx(tt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Ee(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ee(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Ee(e.onBlur,i.onClose),onClick:Ee(e.onClick,i.onClose)})})});eA.displayName=hd;var tA="TooltipPortal",[WL,nA]=Ql(tA,{forceMount:void 0}),Qi="TooltipContent",ox=x.forwardRef((e,t)=>{const n=nA(Qi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=Xl(Qi,e.__scopeTooltip);return T.jsx(qf,{present:r||o.open,children:o.disableHoverableContent?T.jsx(ax,{side:i,...s,ref:t}):T.jsx(rA,{side:i,...s,ref:t})})}),rA=x.forwardRef((e,t)=>
vendor: 4,368 bytes, line 81
81{const n=Xl(Qi,e.__scopeTooltip),r=rx(Qi,e.__scopeTooltip),i=x.useRef(null),s=Bt(t,i),[o,a]=x.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=x.useCallback(()=>{a(null),d(!1)},[d]),h=x.useCallback((y,g)=>{const w=y.currentTarget,m={x:y.clientX,y:y.clientY},p=lA(m,w.getBoundingClientRect()),v=uA(m,p),S=cA(g.getBoundingClientRect()),E=fA([...v,...S]);a(E),d(!0)},[d]);return x.useEffect(()=>()=>f(),[f]),x.useEffect(()=>{if(l&&c){const y=w=>h(w,c),g=w=>h(w,l);return l.addEventListener("pointerleave",y),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",g)}}},[l,c,h,f]),x.useEffect(()=>{if(o){const y=g=>{const w=g.target,m={x:g.clientX,y:g.clientY},p=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),v=!dA(m,o);p?f():v&&(f(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,c,o,u,f]),T.jsx(ax,{...e,ref:s})}),[iA,sA]=Ql(sx,{isInside:!1}),oA=qk("TooltipContent"),ax=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=Xl(Qi,n),u=uh(n),{onClose:c}=l;return x.useEffect(()=>(document.addEventListener(Dm,c),()=>document.removeEventListener(Dm,c)),[c]),x.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),T.jsx(Xf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:T.jsxs(Yk,{"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:[T.jsx(oA,{children:r}),T.jsx(iA,{scope:n,isInside:!0,children:T.jsx(XC,{id:l.contentId,role:"tooltip",children:i||r})})]})})});ox.displayName=Qi;var lx="TooltipArrow",aA=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=uh(n);return sA(lx,n).isInside?null:T.jsx(Qk,{...i,...r,ref:t})});aA.displayName=lx;function lA(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 uA(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 cA(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 dA(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],l=t[o],u=a.x,c=a.y,d=l.x,f=l.y;c>r!=f>r&&n<(d-u)*(r-c)/(f-c)+u&&(i=!i)}return i}function fA(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),hA(t)}function hA(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 pA=ix,ux=ox;const mA=pA,gA=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>T.jsx(ux,{ref:r,sideOffset:t,className:pr("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]:sli
81de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));gA.displayName=ux.displayName;var ql=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(){}},Mr,zn,Oi,Py,yA=(Py=class extends ql{constructor(){super();Z(this,Mr);Z(this,zn);Z(this,Oi);U(this,Oi,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,zn)||this.setEventListener(A(this,Oi))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,zn))==null||t.call(this),U(this,zn,void 0))}setEventListener(t){var n;U(this,Oi,t),(n=A(this,zn))==null||n.call(this),U(this,zn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,Mr)!==t&&(U(this,Mr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,Mr)=="boolean"?A(this,Mr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Mr=new WeakMap,zn=new WeakMap,Oi=new WeakMap,Py),cx=new yA,vA={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Bn,Jd,ky,wA=(ky=class{constructor(){Z(this,Bn,vA);Z(this,Jd,!1)}setTimeoutProvider(e){U(this,Bn,e)}setTimeout(e,t){return A(this,Bn).setTimeout(e,t)}clearTimeout(e){A(this,Bn).clearTimeout(e)}setInterval(e,t){return A(this,Bn).setInterval(e,t)}clearInterval(e){A(this,Bn).clearInterval(e)}},Bn=new WeakMap,Jd=new WeakMap,ky),pd=new wA;function xA(e){setTimeout(e,0)}var SA=typeof window>"u"||"Deno"in globalThis;function Nt(){}function TA(e,t){return typeof e=="function"?e(t):e}function EA(e){return typeof e=="number"&&e>=0&&e!==1/0}function CA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function md(e,t){return typeof e=="function"?e(t):e}function bA(e,t){return typeof e=="function"?e(t):e}function Lm(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ch(o,t.options))return!1}else if(!fo(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 jm(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(co(t.options.mutationKey)!==co(s))return!1}else if(!fo(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ch(e,t){return((t==null?void 0:t.queryKeyHashFn)||co)(e)}function co(e){return JSON.stringify(e,(t,n)=>gd(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function fo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fo(e[n],t[n])):!1}var PA=Object.prototype.hasOwnProperty;function dx(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Im(e)&&Im(t);if(!r&&!(gd(e)&&gd(t)))return t;const s=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),a=o.length,l=r?new Array(a):{};let u=0;for(let c=0;c<a;c++){const d=r?c:o[c],f=e[d],h=t[d];if(f===h){l[d]=f,(r?c<s:PA.call(e,d))&&u++;continue}if(f===null||h===null||typeof f!="object"||typeof h!="object"){l[d]=h;continue}const y=dx(f,h,n+1);l[d]=y,y===f&&u++}return s===a&&u===s?e:l}function Im(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gd(e){if(!_m(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!_m(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _m(e){return Object.prototype.toString.call(e)==="[object Object]"}function kA(e){return new Promise(t=>{pd.setTimeout(t,e)})}function AA(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dx(e,t):t}function RA(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function MA(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var dh=Symbol();function fx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===dh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function NA(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var hx=(()=>{let e=()=>SA;return{isServer(){return e()},setIsServer(t){e=t}}})();function OA(){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}var DA=xA;function LA(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=DA;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)=>
81{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Be=LA(),Di,$n,Li,Ay,jA=(Ay=class extends ql{constructor(){super();Z(this,Di,!0);Z(this,$n);Z(this,Li);U(this,Li,t=>{if(typeof window<"u"&&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,$n)||this.setEventListener(A(this,Li))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,$n))==null||t.call(this),U(this,$n,void 0))}setEventListener(t){var n;U(this,Li,t),(n=A(this,$n))==null||n.call(this),U(this,$n,t(this.setOnline.bind(this)))}setOnline(t){A(this,Di)!==t&&(U(this,Di,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,Di)}},Di=new WeakMap,$n=new WeakMap,Li=new WeakMap,Ay),ul=new jA;function IA(e){return Math.min(1e3*2**e,3e4)}function px(e){return(e??"online")==="online"?ul.isOnline():!0}var yd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function mx(e){let t=!1,n=0,r;const i=OA(),s=()=>i.status!=="pending",o=g=>{var w;if(!s()){const m=new yd(g);f(m),(w=e.onCancel)==null||w.call(e,m)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>cx.isFocused()&&(e.networkMode==="always"||ul.isOnline())&&e.canRun(),c=()=>px(e.networkMode)&&e.canRun(),d=g=>{s()||(r==null||r(),i.resolve(g))},f=g=>{s()||(r==null||r(),i.reject(g))},h=()=>new Promise(g=>{var w;r=m=>{(s()||u())&&g(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;r=void 0,s()||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(s())return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(d).catch(m=>{var C;if(s())return;const p=e.retry??(hx.isServer()?0:3),v=e.retryDelay??IA,S=typeof v=="function"?v(n,m):v,E=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,m);if(t||!E){f(m);return}n++,(C=e.onFail)==null||C.call(e,n,m),kA(S).then(()=>u()?void 0:h()).then(()=>{t?f(m):y()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?y():h().then(y),i)}}var Nr,Ry,gx=(Ry=class{constructor(){Z(this,Nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),EA(this.gcTime)&&U(this,Nr,pd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hx.isServer()?1/0:5*60*1e3))}clearGcTimeout(){A(this,Nr)!==void 0&&(pd.clearTimeout(A(this,Nr)),U(this,Nr,void 0))}},Nr=new WeakMap,Ry);function _A(e){return{onFetch:(t,n)=>{var c,d,f,h,y;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const w=v=>{NA(v,()=>t.signal,()=>g=!0)},m=fx(t.options,t.fetchOptions),p=async(v,S,E)=>{if(g)return Promise.reject(t.signal.reason);if(S==null&&v.pages.length)return Promise.resolve(v);const b=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return w(_),_})(),P=await m(b),{maxPages:D}=t.options,R=E?MA:RA;return{pages:R(v.pages,P,D),pageParams:R(v.pageParams,S,D)}};if(i&&s.length){const v=i==="backward",S=v?VA:Vm,E={pages:s,pageParams:o},C=S(r,E);a=await p(E,C,v)}else{const v=e??s.length;do{const S=l===0?o[0]??r.initialPageParam:Vm(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 g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Vm(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 VA(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 ji,Or,Ii,pt,Dr,be,go,Lr,rt,yx,un,My,FA=(My=class extends gx{constructor(t){super();Z(this,rt);Z(this,ji);Z(this,Or);Z(this,Ii);Z(this,pt);Z(this,Dr);Z(this,be);Z(this,go);Z(this,Lr);U(this,Lr,!1),U(this,go,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,Dr,t.client),U(this,pt,A(this,Dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Or,zm(this.options)),this.state=t.state??A(this,Or),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return A(this,ji)}get promise(){var t;return(t=A(this,be))==null?void 0:t.promise}setOptions(t){if(this.options={...A(this,go),...t},t!=null&&t._type&&U(this,ji,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=zm(this.options);n.data!==void 0&&(this.setState(Fm(n.data,n.dataUpdatedAt)),U(this,Or,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,pt).remove(this)}setData(t,n){const r=AA(this.state.data,t,this.options);return Re(this,rt,un).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Re(this,rt,un).call(this,{type:"setState",state:t})}cancel(t){var r,i;const n=(r=A(this,be))==null?void 0:r.promise;
81return(i=A(this,be))==null||i.cancel(t),n?n.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return A(this,Or)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>bA(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>md(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!CA(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,be))==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,be)&&(A(this,Lr)||Re(this,rt,yx).call(this)?A(this,be).cancel({revert:!0}):A(this,be).cancelRetry()),this.scheduleGc()),A(this,pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,rt,un).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,d,f,h,y,g,w,m,p,v;if(this.state.fetchStatus!=="idle"&&((u=A(this,be))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,be))return A(this,be).continueRetry(),A(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(E=>E.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,i=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(U(this,Lr,!0),r.signal)})},s=()=>{const S=fx(this.options,n),C=(()=>{const b={client:A(this,Dr),queryKey:this.queryKey,meta:this.meta};return i(b),b})();return U(this,Lr,!1),this.options.persister?this.options.persister(S,C,this):S(C)},a=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,Dr),state:this.state,fetchFn:s};return i(S),S})(),l=A(this,ji)==="infinite"?_A(this.options.pages):this.options.behavior;l==null||l.onFetch(a,this),U(this,Ii,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Re(this,rt,un).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),U(this,be,mx({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:S=>{S instanceof yd&&S.revert&&this.setState({...A(this,Ii),fetchStatus:"idle"}),r.abort()},onFail:(S,E)=>{Re(this,rt,un).call(this,{type:"failed",failureCount:S,error:E})},onPause:()=>{Re(this,rt,un).call(this,{type:"pause"})},onContinue:()=>{Re(this,rt,un).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const S=await A(this,be).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(h=(f=A(this,pt).config).onSuccess)==null||h.call(f,S,this),(g=(y=A(this,pt).config).onSettled)==null||g.call(y,S,this.state.error,this),S}catch(S){if(S instanceof yd){if(S.silent)return A(this,be).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw Re(this,rt,un).call(this,{type:"error",error:S}),(m=(w=A(this,pt).config).onError)==null||m.call(w,S,this),(v=(p=A(this,pt).config).onSettled)==null||v.call(p,this.state.data,S,this),S}finally{this.scheduleGc()}}},ji=new WeakMap,Or=new WeakMap,Ii=new WeakMap,pt=new WeakMap,Dr=new WeakMap,be=new WeakMap,go=new WeakMap,Lr=new WeakMap,rt=new WeakSet,yx=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},un=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,...zA(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...Fm(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return U(this,Ii,t.manual?i:void 0),i;case"error":const s=t.error;
81return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,pt).notify({query:this,type:"updated",action:t})})},My);function zA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:px(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zm(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 yo,Yt,_e,jr,Qt,Ln,Ny,BA=(Ny=class extends gx{constructor(t){super();Z(this,Qt);Z(this,yo);Z(this,Yt);Z(this,_e);Z(this,jr);U(this,yo,t.client),this.mutationId=t.mutationId,U(this,_e,t.mutationCache),U(this,Yt,[]),this.state=t.state||$A(),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,Yt).includes(t)||(A(this,Yt).push(t),this.clearGcTimeout(),A(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,Yt,A(this,Yt).filter(n=>n!==t)),this.scheduleGc(),A(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Yt).length||(this.state.status==="pending"?this.scheduleGc():A(this,_e).remove(this))}continue(){var t;return((t=A(this,jr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,l,u,c,d,f,h,y,g,w,m,p,v,S,E,C,b;const n=()=>{Re(this,Qt,Ln).call(this,{type:"continue"})},r={client:A(this,yo),meta:this.options.meta,mutationKey:this.options.mutationKey};U(this,jr,mx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,D)=>{Re(this,Qt,Ln).call(this,{type:"failed",failureCount:P,error:D})},onPause:()=>{Re(this,Qt,Ln).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,_e).canRun(this)}));const i=this.state.status==="pending",s=!A(this,jr).canStart();try{if(i)n();else{Re(this,Qt,Ln).call(this,{type:"pending",variables:t,isPaused:s}),A(this,_e).config.onMutate&&await A(this,_e).config.onMutate(t,this,r);const D=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t,r));D!==this.state.context&&Re(this,Qt,Ln).call(this,{type:"pending",context:D,variables:t,isPaused:s})}const P=await A(this,jr).start();return await((u=(l=A(this,_e).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this,r)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,P,t,this.state.context,r)),await((h=(f=A(this,_e).config).onSettled)==null?void 0:h.call(f,P,null,this.state.variables,this.state.context,this,r)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,P,null,t,this.state.context,r)),Re(this,Qt,Ln).call(this,{type:"success",data:P}),P}catch(P){try{await((m=(w=A(this,_e).config).onError)==null?void 0:m.call(w,P,t,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((v=(p=this.options).onError)==null?void 0:v.call(p,P,t,this.state.context,r))}catch(D){Promise.reject(D)}try{await((E=(S=A(this,_e).config).onSettled)==null?void 0:E.call(S,void 0,P,this.state.variables,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((b=(C=this.options).onSettled)==null?void 0:b.call(C,void 0,P,t,this.state.context,r))}catch(D){Promise.reject(D)}throw Re(this,Qt,Ln).call(this,{type:"error",error:P}),P}finally{A(this,_e).runNext(this)}}},yo=new WeakMap,Yt=new WeakMap,_e=new WeakMap,jr=new WeakMap,Qt=new WeakSet,Ln=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};
81case"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),Be.batch(()=>{A(this,Yt).forEach(r=>{r.onMutationUpdate(t)}),A(this,_e).notify({mutation:this,type:"updated",action:t})})},Ny);function $A(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,Ot,vo,Oy,UA=(Oy=class extends ql{constructor(t={}){super();Z(this,hn);Z(this,Ot);Z(this,vo);this.config=t,U(this,hn,new Set),U(this,Ot,new Map),U(this,vo,0)}build(t,n,r){const i=new BA({client:t,mutationCache:this,mutationId:++jo(this,vo)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){A(this,hn).add(t);const n=ra(t);if(typeof n=="string"){const r=A(this,Ot).get(n);r?r.push(t):A(this,Ot).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(A(this,hn).delete(t)){const n=ra(t);if(typeof n=="string"){const r=A(this,Ot).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&A(this,Ot).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ra(t);if(typeof n=="string"){const r=A(this,Ot).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=ra(t);if(typeof n=="string"){const i=(r=A(this,Ot).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Be.batch(()=>{A(this,hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),A(this,hn).clear(),A(this,Ot).clear()})}getAll(){return Array.from(A(this,hn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jm(n,r))}findAll(t={}){return this.getAll().filter(n=>jm(t,n))}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Nt))))}},hn=new WeakMap,Ot=new WeakMap,vo=new WeakMap,Oy);function ra(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Xt,Dy,WA=(Dy=class extends ql{constructor(t={}){super();Z(this,Xt);this.config=t,U(this,Xt,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??ch(i,n);let o=this.get(s);return o||(o=new FA({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){A(this,Xt).has(t.queryHash)||(A(this,Xt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,Xt).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,Xt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,Xt).get(t)}getAll(){return[...A(this,Xt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Lm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Lm(t,r)):n}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xt=new WeakMap,Dy),pe,Un,Wn,_i,Vi,Hn,Fi,zi,Ly,HA=(Ly=class{constructor(e={}){Z(this,pe);Z(this,Un);Z(this,Wn);Z(this,_i);Z(this,Vi);Z(this,Hn);Z(this,Fi);Z(this,zi);U(this,pe,e.queryCache||new WA),U(this,Un,e.mutationCache||new UA),U(this,Wn,e.defaultOptions||{}),U(this,_i,new Map),U(this,Vi,new Map),U(this,Hn,0)}mount(){jo(this,Hn)._++,A(this,Hn)===1&&(U(this,Fi,cx.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,pe).onFocus())})),U(this,zi,ul.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,pe).onOnline())})))}unmount(){var e,t;jo(this,Hn)._--,A(this,Hn)===0&&((e=A(this,Fi))==null||e.call(this),U(this,Fi,void 0),(t=A(this,zi))==null||t.call(this),U(this,zi,void 0))}isFetching(e){return A(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,Un).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.defaultQueryOptions(e),n=A(this,pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(md(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}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=TA(t,s);if(o!==void 0)return A(this,pe).build(this,r).setData(o,{...n,manual:!0})}
81setQueriesData(e,t,n){return Be.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);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,pe);return Be.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Be.batch(()=>A(this,pe).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Nt).catch(Nt)}invalidateQueries(e,t={}){return Be.batch(()=>(A(this,pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Be.batch(()=>A(this,pe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Nt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Nt)}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(md(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nt).catch(Nt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nt).catch(Nt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ul.isOnline()?A(this,Un).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,pe)}getMutationCache(){return A(this,Un)}getDefaultOptions(){return A(this,Wn)}setDefaultOptions(e){U(this,Wn,e)}setQueryDefaults(e,t){A(this,_i).set(co(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,_i).values()],n={};return t.forEach(r=>{fo(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){A(this,Vi).set(co(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,Vi).values()],n={};return t.forEach(r=>{fo(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,Wn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ch(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.queryFn===dh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,Wn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,pe).clear(),A(this,Un).clear()}},pe=new WeakMap,Un=new WeakMap,Wn=new WeakMap,_i=new WeakMap,Vi=new WeakMap,Hn=new WeakMap,Fi=new WeakMap,zi=new WeakMap,Ly),KA=x.createContext(void 0),GA=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(KA.Provider,{value:e,children:t}));/**
82 * @remix-run/router v1.23.2
83 *
84 * Copyright (c) Remix Software Inc.
85 *
86 * This source code is licensed under the MIT license found in the
87 * LICENSE.md file in the root directory of this source tree.
88 *
89 * @license MIT
90 */function cl(){return cl=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},cl.apply(this,arguments)}var Yn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Yn||(Yn={}));const Bm="popstate";function YA(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return vd("",{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:wx(i)}return XA(t,n,null,e)}function et(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QA(){return Math.random().toString(36).substr(2,8)}function $m(e,t){return{usr:e.state,key:e.key,idx:t}}function vd(e,t,n,r){return n===void 0&&(n=null),cl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zl(t):t,{state:n,key:t&&t.key||r||QA()})}function wx(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 Zl(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 XA(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Yn.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(cl({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=Yn.Pop;let w=c(),m=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:m})}function f(w,m){a=Yn.Push;let p=vd(g.location,w,m);u=c()+1;let v=$m(p,u),S=g.createHref(p);try{o.pushState(v,"",S)}
vendor: 3,212 bytes, line 90
90catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(S)}s&&l&&l({action:a,location:g.location,delta:1})}function h(w,m){a=Yn.Replace;let p=vd(g.location,w,m);u=c();let v=$m(p,u),S=g.createHref(p);o.replaceState(v,"",S),s&&l&&l({action:a,location:g.location,delta:0})}function y(w){let m=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof w=="string"?w:wx(w);return p=p.replace(/ $/,"%20"),et(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let g={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(Bm,d),l=w,()=>{i.removeEventListener(Bm,d),l=null}},createHref(w){return t(i,w)},createURL:y,encodeLocation(w){let m=y(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(w){return o.go(w)}};return g}var Um;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Um||(Um={}));function qA(e,t,n){return n===void 0&&(n="/"),ZA(e,t,n)}function ZA(e,t,n,r){let i=typeof t=="string"?Zl(t):t,s=Tx(i.pathname||"/",n);if(s==null)return null;let o=xx(e);JA(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=dR(s);a=lR(o[l],u)}return a}function xx(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("/")&&(et(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=Ri([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(et(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xx(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:oR(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 Sx(s.path))i(s,o,l)}),t}function Sx(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=Sx(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 JA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eR=/^:[\w-]+$/,tR=3,nR=2,rR=1,iR=10,sR=-2,Wm=e=>e==="*";function oR(e,t){let n=e.split("/"),r=n.length;return n.some(Wm)&&(r+=sR),t&&(r+=nR),n.filter(i=>!Wm(i)).reduce((i,s)=>i+(eR.test(s)?tR:s===""?rR:iR),r)}function aR(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 lR(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)||"/",d=uR({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d)return null;
vendor: 4,131 bytes, lines 90-99
90Object.assign(i,d.params),o.push({params:i,pathname:Ri([s,d.pathname]),pathnameBase:fR(Ri([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=Ri([s,d.pathnameBase]))}return o}function uR(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=cR(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,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=a[d]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const y=a[d];return h&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function cR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vx(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 dR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vx(!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 Tx(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 Ri=e=>e.join("/").replace(/\/\/+/g,"/"),fR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function hR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ex=["post","put","patch","delete"];new Set(Ex);const pR=["get",...Ex];new Set(pR);/**
91 * React Router v6.30.3
92 *
93 * Copyright (c) Remix Software Inc.
94 *
95 * This source code is licensed under the MIT license found in the
96 * LICENSE.md file in the root directory of this source tree.
97 *
98 * @license MIT
99 */function dl(){return dl=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},dl.apply(this,arguments)}const mR=x.createContext(null),gR=x.createContext(null),Cx=x.createContext(null),Jl=x.createContext(null),eu=x.createContext({outlet:null,matches:[],isDataRoute:!1}),bx=x.createContext(null);function fh(){return x.useContext(Jl)!=null}function Px(){return fh()||et(!1),x.useContext(Jl).location}function yR(e,t){return vR(e,t)}function vR(e,t,n,r){fh()||et(!1);let{navigator:i}=x.useContext(Cx),{matches:s}=x.useContext(eu),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Px(),c;if(t){var d;let w=typeof t=="string"?Zl(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||et(!1),c=w}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=qA(e,{pathname:h}),g=ER(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Ri([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Ri([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&g?x.createElement(Jl.Provider,{value:{location:dl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Yn.Pop}},g):g}function wR(){let e=kR(),t=hR(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 x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application 
99Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,null)}const xR=x.createElement(wR,null);class SR extends x.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?x.createElement(eu.Provider,{value:this.props.routeContext},x.createElement(bx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function TR(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(mR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(eu.Provider,{value:t},r)}function ER(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(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||et(!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 d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,y=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||y){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let h,y=!1,g=null,w=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||xR,l&&(u<0&&f===0?(AR("route-fallback"),y=!0,w=null):u===f&&(y=!0,w=d.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,f+1)),p=()=>{let v;return h?v=g:y?v=w:d.route.Component?v=x.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,x.createElement(TR,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?x.createElement(SR,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var kx=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}(kx||{});function CR(e){let t=x.useContext(gR);return t||et(!1),t}function bR(e){let t=x.useContext(eu);return t||et(!1),t}function PR(e){let t=bR(),n=t.matches[t.matches.length-1];return n.route.id||et(!1),n.route.id}function kR(){var e;let t=x.useContext(bx),n=CR(kx.UseRouteError),r=PR();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Hm={};function AR(e,t,n){Hm[e]||(Hm[e]=!0)}function RR(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function wd(e){et(!1)}function MR(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Yn.Pop,navigator:s,static:o=!1,future:a}=e;fh()&&et(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:s,static:o,future:dl({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Zl(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:y="default"}=r,g=x.useMemo(()=>{let w=Tx(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:h,key:y},navigationType:i}},[l,c,d,f,h,y,i]);return g==null?null:x.createElement(Cx.Provider,{value:u},x.createElement(Jl.Provider,{children:n,value:g}))}function NR(e){let{children:t,location:n}=e;return yR(xd(t),n)}new Promise(()=>{});
99function xd(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let s=[...t,i];if(r.type===x.Fragment){n.push.apply(n,xd(r.props.children,s));return}r.type!==wd&&et(!1),!r.props.index||!r.props.children||et(!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=xd(r.props.children,s)),n.push(o)}),n}/**
100 * React Router DOM v6.30.3
101 *
102 * Copyright (c) Remix Software Inc.
103 *
104 * This source code is licensed under the MIT license found in the
105 * LICENSE.md file in the root directory of this source tree.
106 *
107 * @license MIT
108 */const OR="6";try{window.__reactRouterVersion=OR}catch{}const DR="startTransition",Km=sf[DR];function LR(e){let{basename:t,children:n,future:r,window:i}=e,s=x.useRef();s.current==null&&(s.current=YA({window:i,v5Compat:!0}));let o=s.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=x.useCallback(d=>{u&&Km?Km(()=>l(d)):l(d)},[l,u]);return x.useLayoutEffect(()=>o.listen(c),[o,c]),x.useEffect(()=>RR(r),[r]),x.createElement(MR,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var Gm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gm||(Gm={}));var Ym;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ym||(Ym={}));var jR=Symbol.for("react.lazy"),fl=sf[" use ".trim().toString()];function IR(e){return typeof e=="object"&&e!==null&&"then"in e}function Ax(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===jR&&"_payload"in e&&IR(e._payload)}function _R(e){const t=FR(e),n=x.forwardRef((r,i)=>{let{children:s,...o}=r;Ax(s)&&typeof fl=="function"&&(s=fl(s._payload));const a=x.Children.toArray(s),l=a.find(BR);if(l){const u=l.props.children,c=a.map(d=>d===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:d);return T.jsx(t,{...o,ref:i,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return T.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var VR=_R("Slot");function FR(e){const t=x.forwardRef((n,r)=>{let{children:i,...s}=n;if(Ax(i)&&typeof fl=="function"&&(i=fl(i._payload)),x.isValidElement(i)){const o=UR(i),a=$R(s,i.props);return i.type!==x.Fragment&&(a.ref=r?zl(r,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zR=Symbol("radix.slottable");function BR(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zR}function $R(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)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function UR(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)}const WR=Tw("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"}}),As=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?VR:"button";return T.jsx(o,{className:pr(WR({variant:t,size:n,className:e})),ref:s,...i})});As.displayName="Button";const Rx=x.createContext({});function Xi(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const HR=typeof window<"u",hh=HR?x.useLayoutEffect:x.useEffect,ph=x.createContext(null);function mh(e,t){e.indexOf(t)===-1&&e.push(t)}function hl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Wt=(e,t,n)=>n>t?t:n<e?e:n;let gh=()=>{};const cr={},Mx=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Nx=e=>typeof e=="object"&&e!==null,Ox=e=>/^0[^.\s]+$/u.test(e);function Dx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Je=e=>e,Ao=(...e)=>e.reduce((t,n)=>r=>n(t(r))),qi=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class yh{constructor(){this.subscriptions=[]}add(t){return mh(this.subscriptions,t),()=>hl(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 lt=e=>e*1e3,vt=e=>e/1e3,vh=(e,t)=>t?e*(1e3/t):0,Lx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KR=1e-7,GR=12;function YR(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Lx(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>KR&&++a<GR);return o}function Ro(e,t,n,r){if(e===t&&n===r)return Je;const i=s=>YR(s,0,1,e,n);return s=>s===0||s===1?s:Lx(i(s),t,r)}const jx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ix=e=>t=>1-e(1-t),_x=Ro(.33,1.53,.69,.99),wh=Ix(_x),Vx=jx(wh),Fx=e=>e>=1?1:(e*=2)<1?.5*wh(e):.5*(2-Math.pow(2,-10*(e-1))),xh=e=>1-Math.sin(Math.acos(e)),zx=Ix(xh),Bx=jx(xh),QR=Ro(.42,0,1,1),XR=Ro(0,0,.58,1),$x=Ro(.42,0,.58,1),qR=e=>Array.isArray(e)&&typeof e[0]!="number",Ux=e=>Array.isArray(e)&&typeof e[0]=="number",ZR={linear:Je,easeIn:QR,easeInOut:$x,easeOut:XR,circIn:xh,circInOut:Bx,circOut:zx,backIn:wh,backInOut:Vx,backOut:_x,anticipate:Fx},JR=e=>typeof e=="string",Qm=e=>{if(Ux(e)){gh(e.length===4);const[t,n,r,i]=e;return Ro(t,n,r,i)}else if(JR(e))return ZR[e];return e},ia=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eM(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&r?t:n;return c&&s.add(u),h.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0;const c=t;t=n,n=c,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const tM=40;function Wx(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=ia.reduce((v,S)=>(v[S]=eM(s),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:y}=o,g=()=>{const v=cr.useManualTiming,S=v?i.timestamp:performance.now();n=!1,v||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,tM),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},w=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ia.reduce((v,S)=>{const E=o[S];return v[S]=(C,b=!1,P=!1)=>(n||w(),E.schedule(C,b,P)),v},{}),cancel:v=>{for(let S=0;S<ia.length;S++)o[ia[S]].cancel(v)},state:i,steps:o}}const{schedule:ee,cancel:Tt,state:Pe,steps:Wu}=Wx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Je,!0);let ba;function nM(){ba=void 0}const $e={now:()=>(ba===void 0&&$e.set(Pe.isProcessing||cr.useManualTiming?Pe.timestamp:performance.now()),ba),set:e=>{ba=e,queueMicrotask(nM)}},Hx=e=>t=>
vendor: 25,589 bytes, line 108
108typeof t=="string"&&t.startsWith(e),Kx=Hx("--"),rM=Hx("var(--"),Sh=e=>rM(e)?iM.test(e.split("/*")[0].trim()):!1,iM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Xm(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const os={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ho={...os,transform:e=>Wt(0,1,e)},sa={...os,default:1},Bs=e=>Math.round(e*1e5)/1e5,Th=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sM(e){return e==null}const oM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Eh=(e,t)=>n=>!!(typeof n=="string"&&oM.test(n)&&n.startsWith(e)||t&&!sM(n)&&Object.prototype.hasOwnProperty.call(n,t)),Gx=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Th);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},aM=e=>Wt(0,255,e),Hu={...os,transform:e=>Math.round(aM(e))},Ar={test:Eh("rgb","red"),parse:Gx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Hu.transform(e)+", "+Hu.transform(t)+", "+Hu.transform(n)+", "+Bs(ho.transform(r))+")"};function lM(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 Sd={test:Eh("#"),parse:lM,transform:Ar.transform},Mo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),cn=Mo("deg"),rn=Mo("%"),F=Mo("px"),uM=Mo("vh"),cM=Mo("vw"),qm={...rn,parse:e=>rn.parse(e)/100,transform:e=>rn.transform(e*100)},yi={test:Eh("hsl","hue"),parse:Gx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rn.transform(Bs(t))+", "+rn.transform(Bs(n))+", "+Bs(ho.transform(r))+")"},we={test:e=>Ar.test(e)||Sd.test(e)||yi.test(e),parse:e=>Ar.test(e)?Ar.parse(e):yi.test(e)?yi.parse(e):Sd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ar.transform(e):yi.transform(e),getAnimatableNone:e=>{const t=we.parse(e);return t.alpha=0,we.transform(t)}},dM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Th))==null?void 0:t.length)||0)+(((n=e.match(dM))==null?void 0:n.length)||0)>0}const Yx="number",Qx="color",hM="var",pM="var(",Zm="${}",mM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Zi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(mM,l=>(we.test(l)?(r.color.push(s),i.push(Qx),n.push(we.parse(l))):l.startsWith(pM)?(r.var.push(s),i.push(hM),n.push(l)):(r.number.push(s),i.push(Yx),n.push(parseFloat(l))),++s,Zm)).split(Zm);return{values:n,split:a,indexes:r,types:i}}function gM(e){return Zi(e).values}function Xx({split:e,types:t}){const n=e.length;return r=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],r[s]!==void 0){const o=t[s];o===Yx?i+=Bs(r[s]):o===Qx?i+=we.transform(r[s]):i+=r[s]}return i}}function yM(e){return Xx(Zi(e))}const vM=e=>typeof e=="number"?0:we.test(e)?we.getAnimatableNone(e):e,wM=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:vM(e);function xM(e){const t=Zi(e);return Xx(t)(t.values.map((r,i)=>wM(r,t.split[i])))}const Ft={test:fM,parse:gM,createTransformer:yM,getAnimatableNone:xM};function Ku(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 SM({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=Ku(l,a,e+1/3),s=Ku(l,a,e),o=Ku(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function pl(e,t){return n=>n>0?t:e}const ie=(e,t,n)=>e+(t-e)*n,Gu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},TM=[Sd,Ar,yi],EM=e=>TM.find(t=>t.test(e));function Jm(e){const t=EM(e);if(!t)return!1;let n=t.parse(e);return t===yi&&(n=SM(n)),n}const eg=(e,t)=>{const n=Jm(e),r=Jm(t);if(!n||!r)return pl(e,t);const i={...n};return s=>(i.red=Gu(n.red,r.red,s),i.green=Gu(n.green,r.green,s),i.blue=Gu(n.blue,r.blue,s),i.alpha=ie(n.alpha,r.alpha,s),Ar.transform(i))},Td=new Set(["none","hidden"]);function CM(e,t){return Td.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function bM(e,t){return n=>ie(e,t,n)}function Ch(e){return typeof e=="number"?bM:typeof e=="string"?Sh(e)?pl:we.test(e)?eg:AM:Array.isArray(e)?qx:typeof e=="object"?we.test(e)?eg:PM:pl}function qx(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Ch(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function PM(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ch(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function kM(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 AM=(e,t)=>{const n=Ft.createTransformer(t),r=Zi(e),i=Zi(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?Td.has(e)&&!i.values.length||Td.has(t)&&!r.values.length?CM(e,t):Ao(qx(kM(r,i),i.values),n):pl(e,t)};function Zx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Ch(e)(e,t)}const RM=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>Tt(t),now:()=>Pe.isProcessing?Pe.timestamp:$e.now()}},Jx=(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)})`},ml=2e4;function bh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ml;)t+=n,r=e.next(t);return t>=ml?1/0:t}function MM(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(bh(r),ml);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:vt(i)}}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};function Ed(e,t){return e*Math.sqrt(1-t*t)}const NM=12;function OM(e,t,n){let r=n;for(let i=1;i<NM;i++)r=r-e(r)/t(r);return r}const Yu=.001;function DM({duration:e=me.duration,bounce:t=me.bounce,velocity:n=me.velocity,mass:r=me.mass}){let i,s,o=1-t;o=Wt(me.minDamping,me.maxDamping,o),e=Wt(me.minDuration,me.maxDuration,vt(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,h=Ed(u,o),y=Math.exp(-d);return Yu-f/h*y},s=u=>{const d=u*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-d),g=Ed(Math.pow(u,2),o);return(-i(u)+Yu>0?-1:1)*((f-h)*y)/g}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Yu+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=OM(i,s,a);if(e=lt(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 LM=["duration","bounce"],jM=["stiffness","damping","mass"];function tg(e,t){return t.some(n=>e[n]!==void 0)}function IM(e){let t={velocity:me.velocity,stiffness:me.stiffness,damping:me.damping,mass:me.mass,isResolvedFromDuration:!1,...e};if(!tg(e,jM)&&tg(e,LM))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Wt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:me.mass,stiffness:i,damping:s}}else{const n=DM({...e,velocity:0});t={...t,...n,mass:me.mass},t.isResolvedFromDuration=!0}return t}function gl(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:d,velocity:f,isResolvedFromDuration:h}=IM({...n,velocity:-vt(n.velocity||0)}),y=f||0,g=u/(2*Math.sqrt(l*c)),w=o-s,m=vt(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,S,E,C,b,P;if(g<1)E=Ed(m,g),C=(y+g*m*w)/E,v=R=>{const _=Math.exp(-g*m*R);return o-_*(C*Math.sin(E*R)+w*Math.cos(E*R))},b=g*m*C+w*E,P=g*m*w-C*E,S=R=>Math.exp(-g*m*R)*(b*Math.sin(E*R)+P*Math.cos(E*R));else if(g===1){v=_=>o-Math.exp(-m*_)*(w+(y+m*w)*_);const R=y+m*w;S=_=>Math.exp(-m*_)*(m*R*_-y)}else{const R=m*Math.sqrt(g*g-1);v=L=>{const H=Math.exp(-g*m*L),z=Math.min(R*L,300);return o-H*((y+g*m*w)*Math.sinh(z)+R*w*Math.cosh(z))/R};const _=(y+g*m*w)/R,j=g*m*_-w*R,W=g*m*w-_*R;S=L=>{const H=Math.exp(-g*m*L),z=Math.min(R*L,300);return H*(j*Math.sinh(z)+W*Math.cosh(z))}}const D={calculatedDuration:h&&d||null,velocity:R=>lt(S(R)),next:R=>{if(!h&&g<1){const j=Math.exp(-g*m*R),W=Math.sin(E*R),L=Math.cos(E*R),H=o-j*(C*W+w*L),z=lt(j*(b*W+P*L));return a.done=Math.abs(z)<=r&&Math.abs(o-H)<=i,a.value=a.done?o:H,a}const _=v(R);if(h)a.done=R>=d;else{const j=lt(S(R));a.done=Math.abs(j)<=r&&Math.abs(o-_)<=i}return a.value=a.done?o:_,a},toString:()=>{const R=Math.min(bh(D),ml),_=Jx(j=>D.next(R*j).value,R,30);return R+"ms "+_},toTransition:()=>{}};return D}gl.applyToOptions=e=>{const t=MM(e,100,gl);return e.ease=t.ease,e.duration=lt(t.duration),e.type="keyframes",e};const _M=5;function e1(e,t,n){const r=Math.max(t-_M,0);return vh(n-e(r),t-r)}function Cd({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 d=e[0],f={done:!1,value:d},h=P=>a!==void 0&&P<a||l!==void 0&&P>l,y=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*t;const w=d+g,m=o===void 0?w:o(w);m!==w&&(g=m-d);const p=P=>-g*Math.exp(-P/r),v=P=>m+p(P),S=P=>{const D=p(P),R=v(P);f.done=Math.abs(D)<=u,f.value=f.done?m:R};let E,C;const b=P=>{h(f.value)&&(E=P,C=gl({keyframes:[f.value,y(f.value)],velocity:e1(v,P,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return b(0),{calculatedDuration:null,next:P=>{let D=!1;return!C&&E===void 0&&(D=!0,S(P),b(P)),E!==void 0&&P>=E?C.next(P-E):(!D&&S(P),f)}}}function VM(e,t,n){const r=[],i=n||cr.mix||Zx,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]||Je:t;a=Ao(l,a)}r.push(a)}return r}function Ph(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(gh(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=VM(t,r,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=qi(e[d],e[d+1],c);return a[d](f)};return n?c=>u(Wt(e[0],e[s-1],c)):u}function FM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=qi(0,t,r);e.push(ie(n,1,i))}}function t1(e){const t=[0];return FM(t,e.length-1),t}function zM(e,t){return e.map(n=>n*t)}function BM(e,t){return e.map(()=>t||$x).splice(0,e.length-1)}function $s({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=qR(r)?r.map(Qm):Qm(r),s={done:!1,value:t[0]},o=zM(n&&n.length===t.length?n:t1(t),e),a=Ph(o,t,{ease:Array.isArray(i)?i:BM(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const $M=e=>e!==null;function tu(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter($M),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const UM={decay:Cd,inertia:Cd,tween:$s,keyframes:$s,spring:gl};function n1(e){typeof e.type=="string"&&(e.type=UM[e.type])}class kh{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 WM=e=>e/100;class yl extends kh{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==$e.now()&&this.tick($e.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;n1(t);const{type:n=$s,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||$s;l!==$s&&typeof a[0]!="number"&&(this.mixKeyframes=Ao(WM,Zx(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=bh(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:d,repeatType:f,repeatDelay:h,type:y,onUpdate:g,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 m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,S=r;if(d){const P=Math.min(this.currentTime,i)/a;let D=Math.floor(P),R=P%1;!R&&P>=1&&(R=1),R===1&&D--,D=Math.min(D,d+1),!!(D%2)&&(f==="reverse"?(R=1-R,h&&(R-=h/a)):f==="mirror"&&(S=o)),v=Wt(0,1,R)*a}let E;p?(this.delayState.value=c[0],E=this.delayState):E=S.next(v),s&&!p&&(E.value=s(E.value));let{done:C}=E;!p&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const b=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return b&&y!==Cd&&(E.value=tu(c,this.options,w,this.speed)),g&&g(E.value),b&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return vt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+vt(t)}get time(){return vt(this.currentTime)}set time(t){t=lt(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return e1(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime($e.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=vt(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=RM,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($e.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 HM(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Rr=e=>e*180/Math.PI,bd=e=>{const t=Rr(Math.atan2(e[1],e[0]));return Pd(t)},KM={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bd,rotateZ:bd,skewX:e=>Rr(Math.atan(e[1])),skewY:e=>Rr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Pd=e=>(e=e%360,e<0&&(e+=360),e),ng=bd,rg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ig=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),GM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:rg,scaleY:ig,scale:e=>(rg(e)+ig(e))/2,rotateX:e=>Pd(Rr(Math.atan2(e[6],e[5]))),rotateY:e=>Pd(Rr(Math.atan2(-e[2],e[0]))),rotateZ:ng,rotate:ng,skewX:e=>Rr(Math.atan(e[4])),skewY:e=>Rr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function kd(e){return e.includes("scale")?1:0}function Ad(e,t){if(!e||e==="none")return kd(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=GM,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=KM,i=a}if(!i)return kd(t);const s=r[t],o=i[1].split(",").map(QM);return typeof s=="function"?s(o):o[s]}const YM=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ad(n,t)};function QM(e){return parseFloat(e.trim())}const as=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set([...as,"pathRotation"]),sg=e=>e===os||e===F,XM=new Set(["x","y","z"]),qM=as.filter(e=>!XM.has(e));function ZM(e){const t=[];return qM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-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})=>Ad(t,"x"),y:(e,{transform:t})=>Ad(t,"y")};Qn.translateX=Qn.x;Qn.translateY=Qn.y;const Fr=new Set;let Rd=!1,Md=!1,Nd=!1;function r1(){if(Md){const e=Array.from(Fr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=ZM(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)})}Md=!1,Rd=!1,Fr.forEach(e=>e.complete(Nd)),Fr.clear()}function i1(){Fr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Md=!0)})}function JM(){Nd=!0,i1(),r1(),Nd=!1}class Ah{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?(Fr.add(this),Rd||(Rd=!0,ee.read(i1),ee.resolveKeyframes(r1))):(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])}HM(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Fr.delete(this)}cancel(){this.state==="scheduled"&&(Fr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const e2=e=>e.startsWith("--");function s1(e,t,n){e2(t)?e.style.setProperty(t,n):e.style[t]=n}const t2={};function Rh(e,t){const n=Dx(e);return()=>t2[t]??n()}const Mh=Rh(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),o1=Rh(()=>window.ViewTimeline!==void 0,"viewTimeline"),a1=Rh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,og={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rs([0,.65,.55,1]),circOut:Rs([.55,0,1,.45]),backIn:Rs([.31,.01,.66,-.59]),backOut:Rs([.33,1.53,.69,.99])};function l1(e,t){if(e)return typeof e=="function"?a1()?Jx(e,t):"ease-out":Ux(e)?Rs(e):Array.isArray(e)?e.map(n=>l1(n,t)||og.easeOut):og[e]}function n2(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 d=l1(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function u1(e){return typeof e=="function"&&"applyToOptions"in e}function r2({type:e,...t}){return u1(e)&&a1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class c1 extends kh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!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,gh(typeof t.type!="string");const u=r2(t);this.animation=n2(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=tu(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),s1(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}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 vt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+vt(t)}get time(){return vt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=lt(t),n&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Mh()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Je):i(this)}}const d1={anticipate:Fx,backInOut:Vx,circInOut:Bx};function i2(e){return e in d1}function s2(e){typeof e.ease=="string"&&i2(e.ease)&&(e.ease=d1[e.ease])}const Qu=10;class o2 extends c1{constructor(t){s2(t),n1(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(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 yl({...o,autoplay:!1}),l=Math.max(Qu,$e.now()-this.startTime),u=Wt(0,Qu,l-Qu),c=a.sample(l).value,{name:d}=this.options;s&&d&&s1(s,d,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const ag=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ft.test(e)||e==="0")&&!e.startsWith("url("));function a2(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 l2(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=ag(i,t),a=ag(s,t);return!o||!a?!1:a2(e)||(n==="spring"||u1(n))&&r}function Od(e){e.duration=0,e.type="keyframes"}const f1=new Set(["opacity","clipPath","filter","transform"]),u2=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function c2(e){for(let t=0;t<e.length;
108t++)if(typeof e[t]=="string"&&u2.test(e[t]))return!0;return!1}const d2=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),f2=Dx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function h2(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return f2()&&n&&(f1.has(n)||d2.has(n)&&c2(a))&&(n!=="transform"||!c)&&!u&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const p2=40;class m2 extends kh{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var y;super(),this.stop=()=>{var g,w;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=$e.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...d},h=(c==null?void 0:c.KeyframeResolver)||Ah;this.keyframeResolver=new h(a,(g,w,m)=>this.onKeyframesResolved(g,w,f,!m),l,u,c),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,i){var m,p;this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=$e.now();let d=!0;l2(t,s,o,a)||(d=!1,(cr.instantAnimations||!l)&&(c==null||c(tu(t,r,n))),t[0]=t[t.length-1],Od(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>p2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!u&&h2(h),g=(p=(m=h.motionValue)==null?void 0:m.owner)==null?void 0:p.current;let w;if(y)try{w=new o2({...h,element:g})}catch{w=new yl(h)}else w=new yl(h);w.finished.then(()=>{this.notifyFinished()}).catch(Je),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}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(),JM()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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()}}function h1(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}const lg=30,g2=e=>!isNaN(parseFloat(e)),Us={current:void 0};class y2{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=$e.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=$e.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=g2(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 yh);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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 Us.current&&Us.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=$e.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>lg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,lg);return vh(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 jt(e,t){return new y2(e,t)}function p1(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Nh(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?p1(n,e):n}const v2={type:"spring",stiffness:500,damping:25,restSpeed:10},w2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x2={type:"keyframes",duration:.8},S2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T2=(e,{keyframes:t})=>t.length>2?x2:ls.has(e)?e.startsWith("scale")?w2(t[1]):v2:S2,E2=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function C2(e){for(const t in e)if(!E2.has(t))return!0;return!1}const Oh=(e,t,n,r={},i,s)=>o=>{const a=Nh(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-lt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};C2(a)||Object.assign(c,T2(e,c)),c.duration&&(c.duration=lt(c.duration)),c.repeatDelay&&(c.repeatDelay=lt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Od(c),c.delay===0&&(
vendor: 49,208 bytes, line 108
108d=!0)),(cr.instantAnimations||cr.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(d=!0,Od(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=tu(c.keyframes,a);if(f!==void 0){ee.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new yl(c):new m2(c)},b2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function P2(e){const t=b2.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function m1(e,t,n=1){const[r,i]=P2(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Mx(o)?parseFloat(o):o}return Sh(i)?m1(i,t,n+1):i}function ug(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Dh(e,t,n,r){if(typeof t=="function"){const[i,s]=ug(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]=ug(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function zr(e,t,n){const r=e.getProps();return Dh(r,t,n!==void 0?n:r.custom,e)}const g1=new Set(["width","height","top","left","right","bottom",...as]),Dd=e=>Array.isArray(e);function k2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,jt(n))}function A2(e){return Dd(e)?e[e.length-1]||0:e}function R2(e,t){const n=zr(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=A2(s[o]);k2(e,o,a)}}const Ne=e=>!!(e&&e.getVelocity);function M2(e){return!!(Ne(e)&&e.add)}function Ld(e,t){const n=e.getValue("willChange");if(M2(n))return n.add(t);if(!n&&cr.WillChange){const r=new cr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Lh(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const N2="framerAppearId",y1="data-"+Lh(N2);function v1(e){return e.props[y1]}function O2({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function w1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();s=s?p1(s,l):l;const u=s==null?void 0:s.reduceMotion,c=s==null?void 0:s.skipAnimations;r&&(s=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i],h=s==null?void 0:s.path;h&&h.animateVisualElement(e,a,s,n,d);for(const y in a){const g=e.getValue(y,e.latestValues[y]??null),w=a[y];if(w===void 0||f&&O2(f,y))continue;const m={delay:n,...Nh(s||{},y)};c&&(m.skipAnimations=!0);const p=g.get();if(p!==void 0&&!g.isAnimating()&&!Array.isArray(w)&&w===p&&!m.velocity){ee.update(()=>g.set(w));continue}let v=!1;if(window.MotionHandoffAnimation){const C=v1(e);if(C){const b=window.MotionHandoffAnimation(C,y,ee);b!==null&&(m.startTime=b,v=!0)}}Ld(e,y);const S=u??e.shouldReduceMotion;g.start(Oh(y,g,w,S&&g1.has(y)?{type:!1}:m,e,v));const E=g.animation;E&&d.push(E)}if(o){const y=()=>ee.update(()=>{o&&R2(e,o)});d.length?Promise.all(d).then(y):y()}return d}function jd(e,t,n={}){var l;const r=zr(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(w1(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return D2(e,t,u,c,d,f,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 D2(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(jd(l,t,{...o,delay:n+(typeof r=="function"?0:r)+h1(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function L2(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>jd(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=jd(e,t,n);else{const i=typeof t=="function"?zr(e,t,n.custom):t;r=Promise.all(w1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const j2={test:e=>e==="auto",parse:e=>e},x1=e=>t=>t.test(e),S1=[os,F,rn,cn,cM,uM,j2],cg=e=>S1.find(x1(e));function I2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ox(e):!0}const _2=new Set(["brightness","contrast","saturate","opacity"]);function V2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Th)||[];if(!r)return e;const i=n.replace(r,"");let s=_2.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const F2=/\b([a-z-]*)\(.*?\)/gu,Id={...Ft,getAnimatableNone:e=>{const t=e.match(F2);return t?t.map(V2).join(" "):e}},_d={...Ft,getAnimatableNone:e=>{const t=Ft.parse(e);return Ft.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},dg={...os,transform:Math.round},z2={rotate:cn,pathRotation:cn,rotateX:cn,rotateY:cn,rotateZ:cn,scale:sa,scaleX:sa,scaleY:sa,scaleZ:sa,skew:cn,skewX:cn,skewY:cn,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:ho,originX:qm,originY:qm,originZ:F},vl={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,...z2,zIndex:dg,fillOpacity:ho,strokeOpacity:ho,numOctaves:dg},B2={...vl,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:Id,WebkitFilter:Id,mask:_d,WebkitMask:_d},T1=e=>B2[e],$2=new Set([Id,_d]);function E1(e,t){let n=T1(e);return $2.has(n)||(n=Ft),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const U2=new Set(["auto","none","0"]);function W2(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!U2.has(s)&&Zi(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=E1(n,i)}class H2 extends Ah{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 c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Sh(d))){const f=m1(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!g1.has(r)||t.length!==2)return;const[i,s]=t,o=cg(i),a=cg(s),l=Xm(i),u=Xm(s);if(l!==u&&Qn[r]){this.needsMeasurement=!0;return}if(o!==a)if(sg(o)&&sg(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else Qn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||I2(t[i]))&&r.push(i);r.length&&W2(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=Qn[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]=Qn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function C1(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const Vd=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function b1(e){return Nx(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ji,cancel:P1}=Wx(queueMicrotask,!1),Rt={x:!1,y:!1};function k1(){return Rt.x||Rt.y}function K2(e){return e==="x"||e==="y"?Rt[e]?null:(Rt[e]=!0,()=>{Rt[e]=!1}):Rt.x||Rt.y?null:(Rt.x=Rt.y=!0,()=>{Rt.x=Rt.y=!1})}function A1(e,t){const n=C1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function G2(e){return!(e.pointerType==="touch"||k1())}function Y2(e,t,n={}){const[r,i,s]=A1(e,n);return r.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",y)},d=w=>{u&&(u(w),u=void 0),c()},f=w=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(w))},h=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},y=w=>{if(w.pointerType!=="touch"){if(a){l=!0;return}d(w)}},g=w=>{if(!G2(w))return;l=!1;const m=t(o,w);typeof m=="function"&&(u=m,o.addEventListener("pointerleave",y,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",h,i)}),s}const R1=(e,t)=>t?e===t?!0:R1(e,t.parentElement):!1,jh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Q2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function X2(e){return Q2.has(e.tagName)||e.isContentEditable===!0}const q2=new Set(["INPUT","SELECT","TEXTAREA"]);function Z2(e){return q2.has(e.tagName)||e.isContentEditable===!0}const Pa=new WeakSet;function fg(e){return t=>{t.key==="Enter"&&e(t)}}function Xu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const J2=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=fg(()=>{if(Pa.has(n))return;Xu(n,"down");const i=fg(()=>{Xu(n,"up")}),s=()=>Xu(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 hg(e){return jh(e)&&!k1()}const pg=new WeakSet;function eN(e,t,n={}){const[r,i,s]=A1(e,n),o=a=>{const l=a.currentTarget;if(!hg(a)||pg.has(a))return;Pa.add(l),n.stopPropagation&&pg.add(a);const u=t(l,a),c={...i,capture:!0},d=(y,g)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",h,c),Pa.has(l)&&Pa.delete(l),hg(y)&&typeof u=="function"&&u(y,{success:g})},f=y=>{d(y,l===window||l===document||n.useGlobalTarget||R1(l,y.target))},h=y=>{d(y,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",h,c)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),b1(a)&&(a.addEventListener("focus",u=>J2(u,i)),!X2(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Ih(e){return Nx(e)&&"ownerSVGElement"in e}const ka=new WeakMap;let jn;const M1=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Ih(r)&&"getBBox"in r?r.getBBox()[t]:r[n],tN=M1("inline","width","offsetWidth"),nN=M1("block","height","offsetHeight");function rN({target:e,borderBoxSize:t}){var n;(n=ka.get(e))==null||n.forEach(r=>{r(e,{get width(){return tN(e,t)},get height(){return nN(e,t)}})})}function iN(e){e.forEach(rN)}function sN(){typeof ResizeObserver>"u"||(jn=new ResizeObserver(iN))}function oN(e,t){jn||sN();const n=C1(e);return n.forEach(r=>{let i=ka.get(r);i||(i=new Set,ka.set(r,i)),i.add(t),jn==null||jn.observe(r)}),()=>{n.forEach(r=>{const i=ka.get(r);i==null||i.delete(t),i!=null&&i.size||jn==null||jn.unobserve(r)})}}const Aa=new Set;let vi;function aN(){vi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Aa.forEach(t=>t(e))},window.addEventListener("resize",vi)}function lN(e){return Aa.add(e),vi||aN(),()=>{Aa.delete(e),!Aa.size&&typeof vi=="function"&&(window.removeEventListener("resize",vi),vi=void 0)}}function Fd(e,t){return typeof e=="function"?lN(e):oN(e,t)}function N1(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return ee.preUpdate(r,!0),()=>Tt(r)}function uN(e){return Ih(e)&&e.tagName==="svg"}function cN(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],a=Ph(i,s,o);return t?a(r):a}const dN=[...S1,we,Ft],fN=e=>dN.find(x1(e)),mg=()=>({translate:0,scale:1,origin:0,originPoint:0}),wi=()=>({x:mg(),y:mg()}),gg=()=>({min:0,max:0}),Se=()=>({x:gg(),y:gg()}),hN=new WeakMap;function nu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function po(e){return typeof e=="string"||Array.isArray(e)}const _h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vh=["initial",..._h];function ru(e){return nu(e.animate)||Vh.some(t=>po(e[t]))}function O1(e){return!!(ru(e)||e.variants)}function pN(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Ne(i))e.addValue(r,i);else if(Ne(s))e.addValue(r,jt(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,jt(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const zd={current:null},D1={current:!1},mN=typeof window<"u";function gN(){if(D1.current=!0,!!mN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zd.current=e.matches;e.addEventListener("change",t),t()}else zd.current=!1}const yg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wl={};function L1(e){wl=e}function yN(){return wl}class vN{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ah,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=$e.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ee.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=ru(n),this.isVariantNode=O1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const y=f[h];u[h]!==void 0&&Ne(y)&&y.set(u[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,hN.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((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(D1.current||gN(),this.shouldReduceMotion=zd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Tt(this.notifyUpdate),Tt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&f1.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new c1({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:lt(c)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=ls.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s()})}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 wl){const n=wl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yg.length;r++){const i=yg[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=pN(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=jt(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"&&(Mx(r)||Ox(r))?r=parseFloat(r):!fN(r)&&Ft.test(n)&&(r=E1(t,n)),this.setBaseTarget(t,Ne(r)?r.get():r)),Ne(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=Dh(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&&!Ne(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 yh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ji.render(this.render)}}class j1 extends vN{constructor(){super(...arguments),this.KeyframeResolver=H2}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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;Ne(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function I1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function wN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xN(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function qu(e){return e===void 0||e===1}function Bd({scale:e,scaleX:t,scaleY:n}){return!qu(e)||!qu(t)||!qu(n)}function Cr(e){return Bd(e)||_1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _1(e){return vg(e.x)||vg(e.y)}function vg(e){return e&&e!=="0%"}function xl(e,t,n){const r=e-n,i=t*r;return n+i}function wg(e,t,n,r,i){return i!==void 0&&(e=xl(e,i,r)),xl(e,n,r)+t}function $d(e,t=0,n=1,r,i){e.min=wg(e.min,t,n,r,i),e.max=wg(e.max,t,n,r,i)}function V1(e,{x:t,y:n}){$d(e.x,t.translate,t.scale,t.originPoint),$d(e.y,n.translate,n.scale,n.originPoint)}const xg=.999999999999,Sg=1.0000000000001;function SN(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(qt(e.x,-s.scroll.offset.x),qt(e.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,V1(e,o)),r&&Cr(s.latestValues)&&Ra(e,s.latestValues,(a=s.layout)==null?void 0:a.layoutBox))}t.x<Sg&&t.x>xg&&(t.x=1),t.y<Sg&&t.y>xg&&(t.y=1)}function qt(e,t){e.min+=t,e.max+=t}function Tg(e,t,n,r,i=.5){const s=ie(e.min,e.max,i);$d(e,t,n,s,r)}function Eg(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ra(e,t,n){const r=n??e;Tg(e.x,Eg(t.x,r.x),t.scaleX,t.scale,t.originX),Tg(e.y,Eg(t.y,r.y),t.scaleY,t.scale,t.originY)}function F1(e,t){return I1(xN(e.getBoundingClientRect(),t))}function TN(e,t,n){const r=F1(e,n),{scroll:i}=t;return i&&(qt(r.x,i.offset.x),qt(r.y,i.offset.y)),r}const EN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CN=as.length;function bN(e,t,n){let r="",i=!0;for(let o=0;o<CN;o++){const a=as[o],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||n){const c=Vd(l,vl[a]);if(!u){i=!1;const d=EN[a]||a;r+=`${d}(${c}) `}n&&(t[a]=c)}}const s=e.pathRotation;return s&&(i=!1,r+=`rotate(${Vd(s,vl.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Fh(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(ls.has(l)){o=!0;continue}else if(Kx(l)){i[l]=u;continue}else{const c=Vd(u,vl[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=bN(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}`}}function z1(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function Cg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ss={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=Cg(e,t.target.x),r=Cg(e,t.target.y);return`${n}% ${r}%`}},PN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ft.parse(e);if(i.length>5)return r;const s=Ft.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=ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}},Ud={borderRadius:{...Ss,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ss,borderTopRightRadius:Ss,borderBottomLeftRadius:Ss,borderBottomRightRadius:Ss,boxShadow:PN};function B1(e,{layout:t,layoutId:n}){return ls.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ud[e]||e==="opacity")}function zh(e,t,n){var o;const r=e.style,i=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(Ne(r[a])||i&&Ne(i[a])||B1(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function kN(e){return window.getComputedStyle(e)}class AN extends j1{constructor(){super(...arguments),this.type="html",this.renderInstance=z1}readValueFromInstance(t,n){var r;if(ls.has(n))return(r=this.projection)!=null&&r.isProjecting?kd(n):YM(t,n);{const i=kN(t),s=(Kx(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return F1(t,n)}build(t,n,r){Fh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return zh(t,n,r)}}const RN={offset:"stroke-dashoffset",array:"stroke-dasharray"},MN={offset:"strokeDashoffset",array:"strokeDasharray"};function NN(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?RN:MN;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const ON=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function $1(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(Fh(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const h of ON)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&NN(d,i,s,o,!1)}const U1=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"]),W1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DN(e,t,n,r){z1(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(U1.has(i)?i:Lh(i),t.attrs[i])}function H1(e,t,n){const r=zh(e,t,n);for(const i in e)if(Ne(e[i])||Ne(t[i])){const s=as.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class LN extends j1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ls.has(n)){const r=T1(n);return r&&r.default||0}return n=U1.has(n)?n:Lh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return H1(t,n,r)}build(t,n,r){$1(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){DN(t,n,r,i)}mount(t){this.isSVGTag=W1(t.tagName),super.mount(t)}}const jN=Vh.length;function K1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?K1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jN;n++){const r=Vh[n],i=e.props[r];(po(i)||i===!1)&&(t[r]=i)}return t}function G1(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 IN=[..._h].reverse(),_N=_h.length;function VN(e){return t=>Promise.all(t.map(({animation:n,options:r})=>L2(e,n,r)))}function FN(e){let t=VN(e),n=bg(),r=!0,i=!1;const s=u=>(c,d)=>{var h;const f=zr(e,d,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(f){const{transition:y,transitionEnd:g,...w}=f;c={...c,...w,...g}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,d=K1(e.parent)||{},f=[],h=new Set;let y={},g=1/0;for(let m=0;m<_N;m++){const p=IN[m],v=n[p],S=c[p]!==void 0?c[p]:d[p],E=po(S),C=p===u?v.isActive:null;C===!1&&(g=m);let b=S===d[p]&&S!==c[p]&&E;if(b&&(r||i)&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys={...y},!v.isActive&&C===null||!S&&!v.prevProp||nu(S)||typeof S=="boolean")continue;if(p==="exit"&&v.isActive&&C!==!0){v.prevResolvedValues&&(y={...y,...v.prevResolvedValues});continue}const P=zN(v.prevProp,S);let D=P||p===u&&v.isActive&&!b&&E||m>g&&E,R=!1;const _=Array.isArray(S)?S:[S];let j=_.reduce(s(p),{});C===!1&&(j={});const{prevResolvedValues:W={}}=v,L={...W,...j},H=k=>{D=!0,h.has(k)&&(R=!0,h.delete(k)),v.needsAnimating[k]=!0;const M=e.getValue(k);M&&(M.liveStyle=!1)};for(const k in L){const M=j[k],I=W[k];if(y.hasOwnProperty(k))continue;let $=!1;Dd(M)&&Dd(I)?$=!G1(M,I)||P:$=M!==I,$?M!=null?H(k):h.add(k):M!==void 0&&h.has(k)?H(k):v.protectedKeys[k]=!0}v.prevProp=S,v.prevResolvedValues=j,v.isActive&&(y={...y,...j}),(r||i)&&e.blockInitialAnimation&&(D=!1);const z=b&&P;D&&(!z||R)&&f.push(..._.map(k=>{const M={type:p};if(typeof k=="string"&&(r||i)&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,$=zr(I,k);if(I.enteringChildren&&$){const{delayChildren:B}=$.transition||{};M.delay=h1(I.enteringChildren,e,B)}}return{animation:k,options:M}}))}if(h.size){const m={};if(typeof c.initial!="boolean"){const p=zr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);p&&p.transition&&(m.transition=p.transition)}h.forEach(p=>{const v=e.getBaseTarget(p),S=e.getValue(p);S&&(S.liveStyle=!0),m[p]=v??null}),f.push({animation:m})}let w=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,i=!1,w?t(f):Promise.resolve()}function l(u,c){var f;if(n[u].isActive===c)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(h=>{var y;return(y=h.animationState)==null?void 0:y.setActive(u,c)}),n[u].isActive=c;const d=a(u);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=bg(),i=!0}}}function zN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!G1(t,e):!1}function xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bg(){return{animate:xr(!0),whileInView:xr(),whileHover:xr(),whileTap:xr(),whileDrag:xr(),whileFocus:xr(),exit:xr()}}function Wd(e,t){e.min=t.min,e.max=t.max}function At(e,t){Wd(e.x,t.x),Wd(e.y,t.y)}function Pg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Y1=1e-4,BN=1-Y1,$N=1+Y1,Q1=.01,UN=0-Q1,WN=0+Q1;function Ue(e){return e.max-e.min}function HN(e,t,n){return Math.abs(e-t)<=n}function kg(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=Ue(n)/Ue(t),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=BN&&e.scale<=$N||isNaN(e.scale))&&(e.scale=1),(e.translate>=UN&&e.translate<=WN||isNaN(e.translate))&&(e.translate=0)}function Ws(e,t,n,r){kg(e.x,t.x,n.x,r?r.originX:void 0),kg(e.y,t.y,n.y,r?r.originY:void 0)}function Ag(e,t,n,r=0){const i=r?ie(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Ue(t)}function KN(e,t,n,r){Ag(e.x,t.x,n.x,r==null?void 0:r.x),Ag(e.y,t.y,n.y,r==null?void 0:r.y)}function Rg(e,t,n,r=0){const i=r?ie(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Ue(t)}function Sl(e,t,n,r){Rg(e.x,t.x,n.x,r==null?void 0:r.x),Rg(e.y,t.y,n.y,r==null?void 0:r.y)}function Mg(e,t,n,r,i){return e-=t,e=xl(e,1/n,r),i!==void 0&&(e=xl(e,1/i,r)),e}function GN(e,t=0,n=1,r=.5,i,s=e,o=e){if(rn.test(t)&&(t=parseFloat(t),t=ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ie(s.min,s.max,r);e===s&&(a-=t),e.min=Mg(e.min,t,n,a,i),e.max=Mg(e.max,t,n,a,i)}function Ng(e,t,[n,r,i],s,o){GN(e,t[n],t[r],t[i],t.scale,s,o)}const YN=["x","scaleX","originX"],QN=["y","scaleY","originY"];function Og(e,t,n,r){Ng(e.x,t,YN,n?n.x:void 0,r?r.x:void 0),Ng(e.y,t,QN,n?n.y:void 0,r?r.y:void 0)}function Dg(e){return e.translate===0&&e.scale===1}function X1(e){return Dg(e.x)&&Dg(e.y)}function Lg(e,t){return e.min===t.min&&e.max===t.max}function XN(e,t){return Lg(e.x,t.x)&&Lg(e.y,t.y)}function jg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return jg(e.x,t.x)&&jg(e.y,t.y)}function Ig(e){return Ue(e.x)/Ue(e.y)}function _g(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Gt(e){return[e("x"),e("y")]}function qN(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,pathRotation:d,rotateX:f,rotateY:h,skewX:y,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}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 Z1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ZN=Z1.length,Vg=e=>typeof e=="string"?parseFloat(e):e,Fg=e=>typeof e=="number"||F.test(e);function JN(e,t,n,r,i,s){i?(e.opacity=ie(0,n.opacity??1,eO(r)),e.opacityExit=ie(t.opacity??1,0,tO(r))):s&&(e.opacity=ie(t.opacity??1,n.opacity??1,r));for(let o=0;o<ZN;o++){const a=Z1[o];let l=zg(t,a),u=zg(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Fg(l)===Fg(u)?(e[a]=Math.max(ie(Vg(l),Vg(u),r),0),(rn.test(u)||rn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ie(t.rotate||0,n.rotate||0,r))}function zg(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eO=J1(0,.5,zx),tO=J1(.5,.95,Je);function J1(e,t,n){return r=>r<e?0:r>t?1:n(qi(e,t,r))}function nO(e,t,n){const r=Ne(e)?e:jt(e);return r.start(Oh("",r,t,n)),r.animation}function mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const rO=(e,t)=>e.depth-t.depth;class iO{constructor(){this.children=[],this.isDirty=!1}add(t){mh(this.children,t),this.isDirty=!0}remove(t){hl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rO),this.isDirty=!1,this.children.forEach(t)}}function sO(e,t){const n=$e.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Tt(r),e(s-t))};return ee.setup(r,!0),()=>Tt(r)}function Ma(e){return Ne(e)?e.get():e}class oO{constructor(){this.members=[]}add(t){mh(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(hl(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(hl(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){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,s,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||o.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Na={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zu=["","X","Y","Z"],aO=1e3;let lO=0;function Ju(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=v1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ee,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&eS(r)}function tS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=lO++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(dO),this.nodes.forEach(yO),this.nodes.forEach(vO),this.nodes.forEach(fO)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 iO)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new yh),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=Ih(o)&&!uN(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,d=0;const f=()=>this.root.updateBlockedByResize=!1;ee.read(()=>{d=window.innerWidth}),e(o,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,c&&c(),c=sO(f,250),Na.hasAnimatedSinceResize&&(Na.hasAnimatedSinceResize=!1,this.nodes.forEach(Ug)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||EO,{onLayoutAnimationStart:g,onLayoutAnimationComplete:w}=u.getProps(),m=!this.targetLayout||!q1(this.targetLayout,h),p=!d&&f;if(this.options.layoutRoot||this.resumeFrom||p||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Nh(y,"layout"),onPlay:g,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,p,v.path)}else d||Ug(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Tt(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(wO),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&&eS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.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()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(pO),this.nodes.forEach(Bg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($g);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mO),this.nodes.forEach(gO),this.nodes.forEach(uO),this.nodes.forEach(cO)):this.nodes.forEach($g),this.clearAllSnapshots();const a=$e.now();Pe.delta=Wt(0,1e3/60,a-Pe.timestamp),Pe.timestamp=a,Pe.isProcessing=!0,Wu.update.process(Pe),Wu.preRender.process(Pe),Wu.render.process(Pe),Pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ji.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hO),this.sharedNodes.forEach(xO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ue(this.snapshot.measuredBox.x)&&!Ue(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.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Se()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.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&&!X1(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Cr(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)),CO(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Se();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(bO))){const{scroll:c}=this.root;c&&(qt(a.x,c.offset.x),qt(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=Se();if(At(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:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&At(a,o),qt(a.x,d.offset.x),qt(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var c,d;const u=l||Se();At(u,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(qt(u.x,-h.scroll.offset.x),qt(u.y,-h.scroll.offset.y)),Cr(h.latestValues)&&Ra(u,h.latestValues,(c=h.layout)==null?void 0:c.layoutBox)}return Cr(this.latestValues)&&Ra(u,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),u}removeTransform(o){var l;const a=Se();At(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Cr(c.latestValues))continue;let d;c.instance&&(Bd(c.latestValues)&&c.updateSnapshot(),d=Se(),At(d,c.measurePageBox())),Og(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,d)}return Cr(this.latestValues)&&Og(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!==Pe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Pe.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Se(),this.targetWithTransforms=Se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KN(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):At(this.target,this.layout.layoutBox),V1(this.target,this.targetDelta)):At(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Bd(this.parent.latestValues)||_1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),Sl(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),At(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&
vendor: 5,713 bytes, line 108
108(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Pe.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;At(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=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=Se());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pg(this.prevProjectionDelta.x,this.projectionDelta.x),Pg(this.prevProjectionDelta.y,this.projectionDelta.y)),Ws(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!_g(this.projectionDelta.x,this.prevProjectionDelta.x)||!_g(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=wi(),this.projectionDelta=wi(),this.projectionDeltaWithTransform=wi()}setAnimationOrigin(o,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=wi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Se(),y=u?u.source:void 0,g=this.layout?this.layout.source:void 0,w=y!==g,m=this.getStack(),p=!m||m.members.length<=1,v=!!(w&&!p&&this.options.crossfade===!0&&!this.path.some(TO));this.animationProgress=0;let S;const E=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=C=>{const b=C/1e3,P=E==null?void 0:E(b);P?(f.x.translate=P.x,f.x.scale=ie(o.x.scale,1,b),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=P.y,f.y.scale=ie(o.y.scale,1,b),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Wg(f.x,o.x,b),Wg(f.y,o.y,b)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),SO(this.relativeTarget,this.relativeTargetOrigin,h,b),S&&XN(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Se()),At(S,this.relativeTarget)),w&&(this.animationValues=d,JN(d,c,this.latestValues,b,v,p)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},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&&(Tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ee.update(()=>{Na.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jt(0)),this.motionValue.jump(0,!1),this.currentAnimation=nO(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},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(aO),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&&nS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Se();const d=Ue(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Ue(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}At(a,l),Ra(a,c),Ws(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oO),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: 32,394 bytes, line 108
108resetSkewAndRotation(){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&&Ju("z",o,u,this.animationValues);for(let c=0;c<Zu.length;c++)Ju(`rotate${Zu[c]}`,o,u,this.animationValues),Ju(`skew${Zu[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=Ma(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=Ma(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Cr(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=qN(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:f,y:h}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${h.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 y in Ud){if(c[y]===void 0)continue;const{correct:g,applyTo:w,isCSSVariable:m}=Ud[y],p=d==="none"?c[y]:g(c[y],u);if(w){const v=w.length;for(let S=0;S<v;S++)o[w[S]]=p}else m?this.options.visualElement.renderState.vars[y]=p:o[y]=p}this.options.layoutId&&(o.pointerEvents=u===this?Ma(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(Bg),this.root.sharedNodes.clear()}}}function uO(e){e.updateLayout()}function cO(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;if(s==="size")Gt(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],h=Ue(f);f.min=r[d].min,f.max=f.min+h});else if(s==="x"||s==="y"){const d=s==="x"?"y":"x";Wd(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else nS(s,t.layoutBox,r)&&Gt(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],h=Ue(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=wi();Ws(a,r,t.layoutBox);const l=wi();o?Ws(l,e.applyTransform(i,!0),t.measuredBox):Ws(l,r,t.layoutBox);const u=!X1(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const y=e.options.layoutAnchor||void 0,g=Se();Sl(g,t.layoutBox,f.layoutBox,y);const w=Se();Sl(w,r,h.layoutBox,y),q1(g,w)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=g,e.relativeParent=d)}}}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 dO(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 fO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hO(e){e.clearSnapshot()}function Bg(e){e.clearMeasurements()}function pO(e){e.isLayoutDirty=!0,e.updateLayout()}function $g(e){e.isLayoutDirty=!1}function mO(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function gO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ug(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yO(e){e.resolveTargetDelta()}function vO(e){e.calcProjection()}function wO(e){e.resetSkewAndRotation()}function xO(e){e.removeLeadSnapshot()}function Wg(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hg(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function SO(e,t,n,r){Hg(e.x,t.x,n.x,r),Hg(e.y,t.y,n.y,r)}function TO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const EO={duration:.45,ease:[.4,0,.1,1]},Kg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gg=Kg("applewebkit/")&&!Kg("chrome/")?Math.round:Je;function Yg(e){e.min=Gg(e.min),e.max=Gg(e.max)}function CO(e){Yg(e.x),Yg(e.y)}function nS(e,t,n){return e==="position"||e==="preserve-aspect"&&!HN(Ig(t),Ig(n),.2)}function bO(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const PO=tS({attachResizeListener:(e,t)=>mo(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),ec={current:void 0},rS=tS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ec.current){const e=new PO({});e.mount(window),e.setOptions({layoutScroll:!0}),ec.current=e}return ec.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Bh=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kO(e=!0){const t=x.useContext(ph);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=x.useId();x.useEffect(()=>{if(e)return i(s)},[e]);const o=x.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const iS=x.createContext({strict:!1}),Qg={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"]};let Xg=!1;function AO(){if(Xg)return;const e={};for(const t in Qg)e[t]={isEnabled:n=>Qg[t].some(r=>!!n[r])};L1(e),Xg=!0}function sS(){return AO(),yN()}function RO(e){const t=sS();for(const n in e)t[n]={...t[n],...e[n]};L1(t)}const MO=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","propagate","ignoreStrict","viewport"]);function Tl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MO.has(e)}let oS=e=>!Tl(e);function NO(e){typeof e=="function"&&(oS=t=>t.startsWith("on")?!Tl(t):e(t))}try{NO(require("@emotion/is-prop-valid").default)}catch{}function OO(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||Ne(e[i])||(oS(i)||n===!0&&Tl(i)||!t&&!Tl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const iu=x.createContext({});function DO(e,t){if(ru(e)){const{initial:n,animate:r}=e;return{initial:n===!1||po(n)?n:void 0,animate:po(r)?r:void 0}}return e.inherit!==!1?t:{}}function LO(e){const{initial:t,animate:n}=DO(e,x.useContext(iu));return x.useMemo(()=>({initial:t,animate:n}),[qg(t),qg(n)])}function qg(e){return Array.isArray(e)?e.join(" "):e}const $h=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function aS(e,t,n){for(const r in t)!Ne(t[r])&&!B1(r,n)&&(e[r]=t[r])}function jO({transformTemplate:e},t){return x.useMemo(()=>{const n=$h();return Fh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function IO(e,t){const n=e.style||{},r={};return aS(r,n,e),Object.assign(r,jO(e,t)),r}function _O(e,t){const n={},r=IO(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 lS=()=>({...$h(),attrs:{}});function VO(e,t,n,r){const i=x.useMemo(()=>{const s=lS();return $1(s,t,W1(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};aS(s,e.style,e),i.style={...s,...i.style}}return i}const FO=["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 Uh(e){return typeof e!="string"||e.includes("-")?!1:!!(FO.indexOf(e)>-1||/[A-Z]/u.test(e))}function zO(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??Uh(e)?VO:_O)(t,r,i,e),u=OO(t,typeof e=="string",s),c=e!==x.Fragment?{...u,...l,ref:n}:{},{children:d}=t,f=x.useMemo(()=>Ne(d)?d.get():d,[d]);return x.createElement(e,{...c,children:f})}function BO({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$O(n,r,i,e),renderState:t()}}function $O(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Ma(s[f]);let{initial:o,animate:a}=e;const l=ru(e),u=O1(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 d=c?a:o;if(d&&typeof d!="boolean"&&!nu(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const y=Dh(e,f[h]);if(y){const{transitionEnd:g,transition:w,...m}=y;for(const p in m){let v=m[p];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(i[p]=v)}for(const p in g)i[p]=g[p]}}}return i}const uS=e=>(t,n)=>{const r=x.useContext(iu),i=x.useContext(ph),s=()=>BO(e,t,r,i);return n?s():Xi(s)},UO=uS({scrapeMotionValuesFromProps:zh,createRenderState:$h}),WO=uS({scrapeMotionValuesFromProps:H1,createRenderState:lS}),HO=Symbol.for("motionComponentSymbol");function KO(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const i=x.useRef(null);return x.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s)),t&&(s?t.mount(s):t.unmount());const o=r.current;if(typeof o=="function")if(s){const l=o(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(s);else o&&(o.current=s)},[t])}const cS=x.createContext({});function ii(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function GO(e,t,n,r,i,s){var v,S;const{visualElement:o}=x.useContext(iu),a=x.useContext(iS),l=x.useContext(ph),u=x.useContext(Bh),c=u.reducedMotion,d=u.skipAnimations,f=x.useRef(null),h=x.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:s}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const y=f.current,g=x.useContext(cS);y&&!y.projection&&i&&(y.type==="html"||y.type==="svg")&&YO(f.current,n,i,g);const w=x.useRef(!1);x.useInsertionEffect(()=>{y&&w.current&&y.update(n,l)});const m=n[y1],p=x.useRef(!!m&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,m))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,m)));return hh(()=>{h.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),p.current&&y.animationState&&y.animationState.animateChanges())}),x.useEffect(()=>{y&&(!p.current&&y.animationState&&y.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,m)}),p.current=!1),y.enteringChildren=void 0)}),y}function YO(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dS(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&ii(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function dS(e){if(e)return e.options.allowProjection!==!1?e.projection:dS(e.parent)}function tc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&RO(r);const s=n?n==="svg":Uh(e),o=s?WO:UO;function a(u,c){let d;const f={...x.useContext(Bh),...u,layoutId:QO(u)},{isStatic:h}=f,y=LO(u),g=o(u,h);if(!h&&typeof window<"u"){XO();const w=qO(f);d=w.MeasureLayout,y.visualElement=GO(e,g,f,i,w.ProjectionNode,s)}return T.jsxs(iu.Provider,{value:y,children:[d&&y.visualElement?T.jsx(d,{visualElement:y.visualElement,...f}):null,zO(e,u,KO(g,y.visualElement,c),g,h,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=x.forwardRef(a);return l[HO]=e,l}function QO({layoutId:e}){const t=x.useContext(Rx).id;return t&&e!==void 0?t+"-"+e:e}function XO(e,t){x.useContext(iS).strict}function qO(e){const t=sS(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function ZO(e,t){if(typeof Proxy>"u")return tc;const n=new Map,r=(s,o)=>tc(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,tc(o,void 0,e,t)),n.get(o))})}const JO=(e,t)=>t.isSVG??Uh(e)?new LN(t):new AN(t,{allowProjection:e!==x.Fragment});class eD extends mr{constructor(t){super(t),t.animationState||(t.animationState=FN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();nu(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 tD=0;class nD extends mr{constructor(){super(...arguments),this.id=tD++,this.isExitComplete=!1}update(){var s;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;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=zr(this.node,o,a);if(l){const{transition:u,transitionEnd:c,...d}=l;for(const f in d)(s=this.node.getValue(f))==null||s.jump(d[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const rD={animation:{Feature:eD},exit:{Feature:nD}};function No(e){return{point:{x:e.pageX,y:e.pageY}}}const iD=e=>t=>jh(t)&&e(t,No(t));function Hs(e,t,n,r){return mo(e,t,iD(n),r)}const fS=({current:e})=>e?e.ownerDocument.defaultView:null,Zg=(e,t)=>Math.abs(e-t);function sD(e,t){const n=Zg(e.x,t.x),r=Zg(e.y,t.y);return Math.sqrt(n**2+r**2)}const Jg=new Set(["auto","scroll"]);class hS{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=oa(this.lastRawMoveEventInfo,this.transformPagePoint));const y=nc(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,w=sD(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!w)return;const{point:m}=y,{timestamp:p}=Pe;this.history.push({...m,timestamp:p});const{onStart:v,onMove:S}=this.handlers;g||(v&&v(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,y)},this.handlePointerMove=(y,g)=>{this.lastMoveEvent=y,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=oa(g,this.transformPagePoint),ee.update(this.updatePoint,!0)},this.handlePointerUp=(y,g)=>{this.end();const{onEnd:w,onSessionEnd:m,resumeAnimation:p}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=nc(y.type==="pointercancel"?this.lastMoveEventInfo:oa(g,this.transformPagePoint),this.history);this.startEvent&&w&&w(y,v),m&&m(y,v)},!jh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const l=No(t),u=oa(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Pe;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,nc(u,this.history));const h={passive:!0,capture:!0};this.removeListeners=Ao(Hs(this.contextWindow,"pointermove",this.handlePointerMove,h),Hs(this.contextWindow,"pointerup",this.handlePointerUp,h),Hs(this.contextWindow,"pointercancel",this.handlePointerUp,h)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Jg.has(r.overflowX)||Jg.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),ee.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Tt(this.updatePoint)}}function oa(e,t){return t?{point:t(e.point)}:e}function ey(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nc({point:e},t){return{point:e,delta:ey(e,pS(t)),offset:ey(e,oD(t)),velocity:aD(t,.1)}}function oD(e){return e[0]}function pS(e){return e[e.length-1]}function aD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=pS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>lt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>lt(t)*2&&(r=e[1]);const s=vt(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 lD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ie(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function ty(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 uD(e,{top:t,left:n,bottom:r,right:i}){return{x:ty(e.x,n,i),y:ty(e.y,t,r)}}function ny(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 cD(e,t){return{x:ny(e.x,t.x),y:ny(e.y,t.y)}}function dD(e,t){let n=.5;const r=Ue(e),i=Ue(t);return i>r?n=qi(t.min,t.max-r,e.min):r>i&&(n=qi(e.min,e.max-i,t.min)),Wt(0,1,n)}function fD(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 Hd=.35;function hD(e=Hd){return e===!1?e=0:e===!0&&(e=Hd),{x:ry(e,"left","right"),y:ry(e,"top","bottom")}}function ry(e,t,n){return{min:iy(e,t),max:iy(e,n)}}function iy(e,t){return typeof e=="number"?e:e[t]||0}const pD=new WeakMap;class mD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Se(),this.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=d=>{n&&this.snapToCursor(No(d).point),this.stopAnimation()},o=(d,f)=>{const{drag:h,dragPropagation:y,onDragStart:g}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=K2(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Gt(m=>{let p=this.getAxisMotionValue(m).get()||0;if(rn.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[m];S&&(p=Ue(S)*(parseFloat(p)/100))}}this.originPoint[m]=p}),g&&ee.update(()=>g(d,f),!1,!0),Ld(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:g,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:m}=f;if(y&&this.currentDirection===null){this.currentDirection=yD(m),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),w&&ee.update(()=>w(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new hS(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:fS(this.visualElement),element:this.visualElement.current})}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&&ee.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!aa(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=lD(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&&ii(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=uD(r.layoutBox,t):this.constraints=!1,this.elastic=hD(n),i!==this.constraints&&!ii(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Gt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=fD(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ii(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const s=TN(r,i.root,this.visualElement.getTransformPagePoint());let o=cD(i.layout.layoutBox,s);if(n){const a=n(wN(o));this.hasMutatedConstraints=!!a,a&&(o=I1(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Gt(c=>{if(!aa(c,n,this.currentDirection))return;let d=l&&l[c]||{};(o===!0||o===c)&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ld(this.visualElement,t),r.start(Oh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Gt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Gt(n=>{const{drag:r}=this.getProps();if(!aa(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],l=s.get()||0;s.set(t[n]-ie(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ii(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Gt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=dD({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.constraints=!1,this.resolveConstraints(),Gt(o=>{if(!aa(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ie(l,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pD.set(this.visualElement,this);const t=this.visualElement.current,n=Hs(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,h=f!==t&&Z2(f);c&&d&&!h&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();ii(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=gD(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ee.read(i);const a=mo(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Gt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Hd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function sy(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function gD(e,t,n){const r=Fd(e,sy(n)),i=Fd(t,sy(n));return()=>{r(),i()}}function aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vD extends mr{constructor(t){super(t),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new mD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const rc=e=>(t,n)=>{e&&ee.update(()=>e(t,n),!1,!0)};class wD extends mr{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(t){this.session=new hS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rc(t),onStart:rc(n),onMove:rc(r),onEnd:(s,o)=>{delete this.session,i&&ee.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Hs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ic=!1;class xD extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),ic&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Na.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),ic=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ee.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Ji.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;ic=!0,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 mS(e){const[t,n]=kO(),r=x.useContext(Rx);return T.jsx(xD,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(cS),isPresent:t,safeToRemove:n})}const SD={pan:{Feature:wD},drag:{Feature:vD,ProjectionNode:rS,MeasureLayout:mS}};function oy(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&&ee.postRender(()=>s(t,No(t)))}class TD extends mr{mount(){const{current:t}=this.node;t&&(this.unmount=Y2(t,(n,r)=>(oy(this.node,r,"Start"),i=>oy(this.node,i,"End"))))}unmount(){}}class ED extends mr{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=Ao(mo(this.node.current,"focus",()=>this.onFocus()),mo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ay(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&&ee.postRender(()=>s(t,No(t)))}class CD extends mr{mount(){const{current:t}=this.node;if(!t)return;
108const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=eN(t,(i,s)=>(ay(this.node,s,"Start"),(o,{success:a})=>ay(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Kd=new WeakMap,sc=new WeakMap,bD=e=>{const t=Kd.get(e.target);t&&t(e)},PD=e=>{e.forEach(bD)};function kD({root:e,...t}){const n=e||document;sc.has(n)||sc.set(n,{});const r=sc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(PD,{root:e,...t})),r[i]}function AD(e,t,n){const r=kD(t);return Kd.set(e,n),r.observe(e),()=>{Kd.delete(e),r.unobserve(e)}}const RD={some:0,all:1};class MD extends mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);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:RD[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(u)};this.stopObserver=AD(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(ND(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function ND({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const OD={inView:{Feature:MD},tap:{Feature:CD},focus:{Feature:ED},hover:{Feature:TD}},DD={layout:{ProjectionNode:rS,MeasureLayout:mS}},LD={...rD,...OD,...SD,...DD},ln=ZO(LD,JO);function El(e){return typeof window>"u"?!1:e?o1():Mh()}const jD=50,ly=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ID=()=>({time:0,x:ly(),y:ly()}),_D={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function uy(e,t,n,r){const i=n[t],{length:s,position:o}=_D[t],a=i.current,l=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=qi(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>jD?0:vh(i.current-a,u)}function VD(e,t,n){uy(e,"x",t,n),uy(e,"y",t,n),t.time=n}function FD(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(b1(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const Gd={start:0,center:.5,end:1};function cy(e,t,n=0){let r=0;if(e in Gd&&(e=Gd[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const zD=[0,0];function BD(e,t,n,r){let i=Array.isArray(e)?e:zD,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,Gd[e]?e:"0"]),s=cy(i[0],n,r),o=cy(i[1],t),s-o}const Ms={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},$D={x:0,y:0};function UD(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function WD(e,t,n){const{offset:r=Ms.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?FD(i,e):$D,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:UD(i),u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let c=!t[s].interpolate;const d=r.length;for(let f=0;f<d;f++){const h=BD(r[f],u[o],l[o],a[s]);!c&&h!==t[s].interpolatorOffsets[f]&&(c=!0),t[s].offset[f]=h}c&&(t[s].interpolate=Ph(t[s].offset,t1(r),{clamp:!1}
108),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=Wt(0,1,t[s].interpolate(t[s].current))}function HD(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function KD(e,t,n,r={}){return{measure:i=>{HD(e,r.target,n),VD(e,n,i),(r.offset||r.target)&&WD(e,n,r)},notify:()=>t(n)}}const ni=new WeakMap,dy=new WeakMap,oc=new WeakMap,fy=new WeakMap,la=new WeakMap,hy=e=>e===document.scrollingElement?window:e;function gS(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Je;let i=oc.get(t);i||(i=new Set,oc.set(t,i));const s=ID(),o=KD(t,e,s,r);if(i.add(o),!ni.has(t)){const l=()=>{for(const f of i)f.measure(Pe.timestamp);ee.preUpdate(u)},u=()=>{for(const f of i)f.notify()},c=()=>ee.read(l);ni.set(t,c);const d=hy(t);window.addEventListener("resize",c),t!==document.documentElement&&dy.set(t,Fd(t,c)),d.addEventListener("scroll",c),c()}if(n&&!la.has(t)){const l=ni.get(t),u={width:t.scrollWidth,height:t.scrollHeight};fy.set(t,u);const c=()=>{const f=t.scrollWidth,h=t.scrollHeight;(u.width!==f||u.height!==h)&&(l(),u.width=f,u.height=h)},d=ee.read(c,!0);la.set(t,d)}const a=ni.get(t);return ee.read(a,!1,!0),()=>{var d;Tt(a);const l=oc.get(t);if(!l||(l.delete(o),l.size))return;const u=ni.get(t);ni.delete(t),u&&(hy(t).removeEventListener("scroll",u),(d=dy.get(t))==null||d(),window.removeEventListener("resize",u));const c=la.get(t);c&&(Tt(c),la.delete(t)),fy.delete(t)}}const GD=[[Ms.Enter,"entry"],[Ms.Exit,"exit"],[Ms.Any,"cover"],[Ms.All,"contain"]],py={start:0,end:1};function YD(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=py[t[0]],r=py[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function QD(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=YD(n);if(!r)return;t.push(r)}else return;return t}function XD(e,t){const n=QD(e);if(!n)return!1;for(let r=0;r<2;r++){const i=n[r],s=t[r];if(i[0]!==s[0]||i[1]!==s[1])return!1}return!0}function Wh(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of GD)if(XD(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const my=new Map;function gy(e){const t={value:0},n=gS(r=>
108{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function yS({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let i=my.get(t);i||(i=new Map,my.set(t,i));const s=n.target??"self";let o=i.get(s);o||(o={},i.set(s,o));const a=r+(n.offset??[]).join(",");return o[a]||(n.target&&El(n.target)?Wh(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=gy({container:t,...n}):El()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=gy({container:t,...n})),o[a]}function qD(e,t){const n=yS(t),r=t.target?Wh(t.offset):void 0,i=t.target?El(t.target)&&!!r:El();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:s=>(s.pause(),N1(o=>{s.time=s.iterationDuration*o},n))})}function ZD(e){return e&&(e.target||e.offset)}function JD(e){return e.length===2}function eL(e,t){return JD(e)||ZD(t)?gS(n=>{e(n[t.axis].progress,n)},t):N1(e,yS(t))}function vS(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Je;const i={axis:t,container:n,...r};return typeof e=="function"?eL(e,i):qD(e,i)}const tL=()=>({scrollX:jt(0),scrollY:jt(0),scrollXProgress:jt(0),scrollYProgress:jt(0)}),xi=e=>e?!e.current:!1;function yy(e,t,n,r){return{factory:i=>{let s;const o=()=>{if(xi(n)||xi(r)){Ji.read(o);return}s=vS(i,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Ji.read(o),()=>{P1(o),s==null||s()}},times:[0,1],keyframes:[0,1],ease:i=>i,duration:1}}function nL(e,t){return typeof window>"u"?!1:e?o1()&&!!Wh(t):Mh()}function rL({container:e,target:t,...n}={}){const r=Xi(tL);nL(t,n.offset)&&(r.scrollXProgress.accelerate=yy("x",n,e,t),r.scrollYProgress.accelerate=yy("y",n,e,t));const i=x.useRef(null),s=x.useRef(!1),o=x.useCallback(()=>(i.current=vS((a,{x:l,y:u})=>{r.scrollX.set(l.current),r.scrollXProgress.set(l.progress),r.scrollY.set(u.current),r.scrollYProgress.set(u.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=i.current)==null||a.call(i)}),[e,t,JSON.stringify(n.offset)]);return hh(()=>{if(s.current=!1,xi(e)||xi(t)){s.current=!0;return}else return o()},[o]),x.useEffect(()=>{if(!s.current)return;let a;const l=()=>{const u=xi(e),c=xi(t);!u&&!c&&(a=o())};return Ji.read(l),()=>{P1(l),a==null||a()}},[o]),r}function iL(e){const t=Xi(()=>jt(e)),{isStatic:n}=x.useContext(Bh);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function wS(e,t){const n=iL(t()),r=()=>n.set(t());return r(),hh(()=>{const i=()=>ee.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Tt(r)}}),n}function sL(e){Us.current=[],e();const t=wS(Us.current,e);return Us.current=void 0,t}function xS(e,t,n,r){if(typeof e=="function")return sL(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return oL(e,t,n,r);const o=typeof t=="function"?t:cN(t,n,r),a=Array.isArray(e)?vy(e,o):vy([e],([u])=>o(u)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),a}function vy(e,t){const n=Xi(()=>[]);return wS(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function oL(e,t,n,r){const i=Xi(()=>Object.keys(n)),s=Xi(()=>({}));for(const o of i)s[o]=xS(e,t,n[o],r);return s}var aL=typeof Element<"u",lL=typeof Map=="function",uL=typeof Set=="function",cL=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Oa(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Oa(e[r],t[r]))return!1;return!0}var s;if(lL&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Oa(r.value[1],t.get(r.value[0])))return!1;return!0}if(uL&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(cL&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(aL&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Oa(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var dL=function(t,n){try{return Oa(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const fL=wo(dL);var hL=function(e,t,n,r,i,s,o,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,s,o,a],c=0;
108l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},pL=hL;const wy=wo(pL);var mL=function(t,n,r,i){var s=r?r.call(i,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var c=o[u];if(!l(c))return!1;var d=t[c],f=n[c];if(s=r?r.call(i,d,f,c):void 0,s===!1||s===void 0&&d!==f)return!1}return!0};const gL=wo(mL);var SS=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(SS||{}),ac={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},xy=Object.values(SS),su={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},TS=Object.entries(su).reduce((e,[t,n])=>(e[n]=t,e),{}),It="data-rh",Mi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ni=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},yL=e=>{let t=Ni(e,"title");const n=Ni(e,Mi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Ni(e,Mi.DEFAULT_TITLE);return t||r||void 0},vL=e=>Ni(e,Mi.ON_CHANGE_CLIENT_STATE)||(()=>{}),lc=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),wL=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;s<i.length;s+=1){const a=i[s].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),xL=e=>console&&typeof console.warn=="function"&&console.warn(e),Ts=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&xL(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,s)=>{const o={};s.filter(l=>{let u;const c=Object.keys(l);for(let f=0;f<c.length;f+=1){const h=c[f],y=h.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(y==="rel"&&l[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!l[u])return!1;const d=l[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][d]?!1:(o[u][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const u=a[l],c={...r[u],...o[u]};r[u]=c}return i},[]).reverse()},SL=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},TL=e=>({baseTag:wL(["href"],e),bodyAttributes:lc("bodyAttributes",e),defer:Ni(e,Mi.DEFER),encode:Ni(e,Mi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:lc("htmlAttributes",e),linkTags:Ts("link",["rel","href"],e),metaTags:Ts("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Ts("noscript",["innerHTML"],e),onChangeClientState:vL(e),scriptTags:Ts("script",["src","innerHTML"],e),styleTags:Ts("style",["cssText"],e),title:yL(e),titleAttributes:lc("titleAttributes",e),prioritizeSeoTags:SL(e,Mi.PRIORITIZE_SEO_TAGS)}),ES=e=>Array.isArray(e)?e.join(""):e,EL=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},uc=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(EL(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Sy=(e,t)=>({...e,[t]:void 0}),CL=["noscript","script","style"],Yd=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),CS=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),bL=(e,t,n,r)=>{const i=CS(n),s=ES(t);return i?`<${e} ${It}="true" ${i}>${Yd(s,r)}</${e}>`:`<${e} ${It}="true">${Yd(s,r)}</${e}>`},PL=(e,t,n=!0)=>t.reduce((r,i)=>{const s=i,o=Object.keys(s).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof s[c]>"u"?c:`${c}="${Yd(s[c],n)}"`;return u?`${u} ${d}`:d},""),a=s.innerHTML||s.cssText||"",l=CL.indexOf(e)===-1;return`${r}<${e} ${It}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),bS=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=su[r];return n[i||r]=e[r],n},t),kL=(e,t,n)=>{const r={key:t,[It]:!0},i=bS(n,r);return[N.createElement("title",i,t)]},Da=(e,t)=>t.map((n,r)=>{const i={key:r,[It]:!0};
108return Object.keys(n).forEach(s=>{const a=su[s]||s;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[a]=n[s]}),N.createElement(e,i)}),ht=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>kL(e,t.title,t.titleAttributes),toString:()=>bL(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>bS(t),toString:()=>CS(t)};default:return{toComponent:()=>Da(e,t),toString:()=>PL(e,t,n)}}},AL=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=uc(e,ac.meta),s=uc(t,ac.link),o=uc(n,ac.script);return{priorityMethods:{toComponent:()=>[...Da("meta",i.priority),...Da("link",s.priority),...Da("script",o.priority)],toString:()=>`${ht("meta",i.priority,r)} ${ht("link",s.priority,r)} ${ht("script",o.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:o.default}},RL=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:f}=e,h={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:h,linkTags:c,metaTags:d,scriptTags:f}=AL(e)),{priority:h,base:ht("base",t,r),bodyAttributes:ht("bodyAttributes",n,r),htmlAttributes:ht("htmlAttributes",i,r),link:ht("link",c,r),meta:ht("meta",d,r),noscript:ht("noscript",s,r),script:ht("script",f,r),style:ht("style",o,r),title:ht("title",{title:a,titleAttributes:l},r)}},Qd=RL,ua=[],Hh=!!(typeof window<"u"&&window.document&&window.document.createElement),Xd=class{constructor(e,t){on(this,"instances",[]);on(this,"canUseDOM",Hh);on(this,"context");on(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ua:this.instances,add:e=>{(this.canUseDOM?ua:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ua:this.instances).indexOf(e);(this.canUseDOM?ua:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Qd({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ML=parseInt(N.version.split(".")[0],10),qd=ML>=19,NL={},PS=N.createContext(NL),Ir,kS=(Ir=class extends x.Component{constructor(n){super(n);on(this,"helmetData");qd?this.helmetData=null:this.helmetData=new Xd(this.props.context||{},Ir.canUseDOM)}render(){return qd?N.createElement(N.Fragment,null,this.props.children):N.createElement(PS.Provider,{value:this.helmetData.value},this.props.children)}},on(Ir,"canUseDOM",Hh),Ir),ri=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${It}]`),i=[].slice.call(r),s=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText"){const c=a.cssText;l.appendChild(document.createTextNode(c))}else{const c=u,d=typeof a[c]>"u"?"":a[c];l.setAttribute(u,d)}l.setAttribute(It,"true"),i.some((u,c)=>(o=c,l.isEqualNode(u)))?i.splice(o,1):s.push(l)}),i.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),s.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:s}},Zd=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(It),i=r?r.split(","):[],s=[...i],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),i.indexOf(a)===-1&&i.push(a);const u=s.indexOf(a);u!==-1&&s.splice(u,1)}for(let a=s.length-1;a>=0;a-=1)n.removeAttribute(s[a]);i.length===s.length?n.removeAttribute(It):n.getAttribute(It)!==o.join(",")&&n.setAttribute(It,o.join(","))},OL=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ES(e)),Zd("title",t)},Ty=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:d,titleAttributes:f}=e;Zd("body",r),Zd("html",i),OL(d,f);const h={baseTag:ri("base",n),linkTags:ri("link",s),metaTags:ri("meta",o),noscriptTags:ri("noscript",a),scriptTags:ri("script",u),styleTags:ri("style",c)},y={},g={};
108Object.keys(h).forEach(w=>{const{newTags:m,oldTags:p}=h[w];m.length&&(y[w]=m),p.length&&(g[w]=h[w].oldTags)}),t&&t(),l(e,y,g)},Es=null,DL=e=>{Es&&cancelAnimationFrame(Es),e.defer?Es=requestAnimationFrame(()=>{Ty(e,()=>{Es=null})}):(Ty(e),Es=null)},LL=DL,Ey=class extends x.Component{constructor(){super(...arguments);on(this,"rendered",!1)}shouldComponentUpdate(t){return!gL(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=TL(t.get().map(s=>{const{context:o,...a}=s.props;return a}));kS.canUseDOM?LL(i):Qd&&(r=Qd(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},La=[],Cy=e=>{const t={};for(const n of Object.keys(e))t[TS[n]||n]=e[n];return t},Sr=e=>{const t={};for(const n of Object.keys(e)){const r=su[n];t[r||n]=e[n]}return t},by=(e,t)=>{if(!Hh)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),s=i?i.split(","):[],o=Object.keys(t);for(const a of s)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},cc=()=>{const e={},t={};for(const n of La){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,Cy(r)),i&&Object.assign(t,Cy(i))}by("html",e),by("body",t)},jL=class extends x.Component{componentDidMount(){La.push(this),cc()}componentDidUpdate(){cc()}componentWillUnmount(){const e=La.indexOf(this);e!==-1&&La.splice(e,1),cc()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return N.createElement("title",Sr(t),e)}renderBase(){const{base:e}=this.props;return e?N.createElement("base",Sr(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>N.createElement("meta",{key:n,...Sr(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>N.createElement("link",{key:n,...Sr(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=Sr(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),N.createElement("script",{key:n,...s})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...i}=t,s=Sr(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),N.createElement("style",{key:n,...s})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=Sr(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),N.createElement("noscript",{key:n,...s})})}render(){return N.createElement(N.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},dc,IL=(dc=class extends x.Component{shouldComponentUpdate(e){return!fL(Sy(this.props,"helmetData"),Sy(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
108warnOnInvalidChildren(e,t){return wy(xy.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${xy.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),wy(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return N.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,o=Object.keys(s).reduce((l,u)=>(l[TS[u]||u]=s[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Xd)){const i=r;r=new Xd(i.context,!0),delete n.helmetData}return qd?N.createElement(jL,{...n}):r?N.createElement(Ey,{...n,context:r.value}):N.createElement(PS.Consumer,null,i=>N.createElement(Ey,{...n,context:i}))}},on(dc,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),dc);const AS=({title:e,description:t,canonical:n,ogImage:r,noIndex:i,schemaJson:s})=>T.jsxs(IL,{children:[T.jsx("title",{children:e}),T.jsx("meta",{name:"description",content:t}),n&&T.jsx("link",{rel:"canonical",href:n}),i&&T.jsx("meta",{name:"robots",content:"noindex, nofollow"}),T.jsx("meta",{property:"og:title",content:e}),T.jsx("meta",{property:"og:description",content:t}),T.jsx("meta",{property:"og:type",content:"website"}),r&&T.jsx("meta",{property:"og:image",content:r}),n&&T.jsx("meta",{property:"og:url",content:n}),T.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),T.jsx("meta",{name:"twitter:title",content:e}),T.jsx("meta",{name:"twitter:description",content:t}),r&&T.jsx("meta",{name:"twitter:image",content:r}),s&&T.jsx("script",{type:"application/ld+json",children:JSON.stringify(s)})]}),_L=()=>{const{scrollY:e}=rL(),t=xS(e,[0,1e3],[0,300]),{toast:n}=Q0(),r=()=>{const s=document.getElementById("email-capture");s&&s.scrollIntoView({behavior:"smooth"})},i=s=>{s.preventDefault();const o=s.currentTarget,a=new FormData(o),l=a.get("name")||"",u=a.get("email")||"",c=l.trim().split(" "),d=c[0]||"",f=c.slice(1).join(" ")||"",h={type:"external_form_submission",timestamp:Date.now(),formId:"Lonely Dog Newsletter",formData:{first_name:d,last_name:f,email:u},formLabels:{first_name:"First Name",last_name:"Last Name",email:"Email"},url:window.location.href,title:document.title,path:window.location.pathname,userAgent:navigator.userAgent,trackingId:"tk_ce9bebf8b0ee4b888eb4571132671e73",locationId:"B8FlEbTJjgKQIlMjj709",sessionId:crypto.randomUUID(),tags:["Lonely Dog Newsletter","source: lonelydog.com"],properties:{deviceType:/Mobile|Android|iPhone/i.test(navigator.userAgent)?"mobile":"desktop"}};fetch("https://backend.leadconnectorhq.com/external-tracking/events",{method:"POST",headers:{"Content-Type":"application/json",version:"2021-07-28"},body:JSON.stringify(h)}).catch(()=>{}),n({title:"Subscribed!",description:"You'll be the first to hear about new releases."}),o.reset()};return T.jsxs("div",{className:"min-h-screen bg-background font-sans text-foreground selection:bg-primary/30",children:[T.jsx(AS,{title:"Lonely Dog | The Whimsical Art World of Ivan Clarke | Alveridge",description:"Step into Alveridge — the 1950s seaside world of Lonely Dog by NZ master artist Ivan Clarke. 200+ paintings, the story of Arthur Snout, prints, books and more.",canonical:"https://lonelydog.com/",ogImage:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/Cast+-+Crew+unframed-1920w.jpg"}),T.jsxs("section",{className:"relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-6 py-24 text-center",children:[T.jsxs("div",{className:"absolute inset-0 z-0 bg-black overflow-hidden",children:[T.jsx(ln.img,{style:{y:t},src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/Cast+-+Crew+unframed-1920w.jpg",alt:"Cast & Crew by Ivan Clarke",className:"h-[120%] w-full object-cover opacity-70 -mt-[10%]"}),T.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-background/60 to-background"})]}),T.jsx("div",{className:"absolute top-8 left-8 z-20",children:T.jsx("img",{src:"https://assets.cdn.filesafe.space/B8FlEbTJjgKQIlMjj709/media/6a3b78d06a414441905b5fd8.png",alt:"Lonely Dog Logo",className:"h-16 md:h-24 object-contain"})}),T.jsxs("div",{className:"relative z-10 mx-auto max-w-4xl space-y-8 animate-in fade-in slide-in-from-bottom-8 duration-1000 text-white mt-32 w-full",children:[T.jsx("div",{className:"uppercase text-left mb-2",style:{fontFamily:"Georgia, serif",fontSize:"18px",letterSpacing:"3px",color:"#c9a96a"},children:"Ivan Clarke · Living Master Artist"}),T.jsx("h1",{className:"leading-tight text-left text-5xl md:text-[80px]",style:{fontFamily:"Georgia, serif",fontWeight:"normal",color:"#fbf6ec"},children:"Welcome to the World of Lonely Dog"}),T.jsx("p",{className:"max-w-2xl text-xl italic leading-relaxed text-white/90 md:text-2xl drop-shadow-md font-serif mt-6 text-left",children:"A captivating fantasy tale of music, passion, and triumph against all odds."}),T.jsxs("div",{className:"flex flex-col items-start gap-4 sm:flex-row pt-4",children:[T.jsx(As,{asChild:!0,size:"lg",className:"h-14 roun
108ded-full px-8 text-lg bg-primary hover:bg-primary/90 text-primary-foreground border-none transition-all",children:T.jsxs("a",{href:"https://www.ivanclarkeartist.com/lonely-dog",target:"_blank",rel:"noopener noreferrer",children:["Explore the Art ",T.jsx(gm,{className:"ml-2 h-5 w-5"})]})}),T.jsx(As,{onClick:r,variant:"outline",size:"lg",className:"h-14 rounded-full px-8 text-lg border-white/30 text-white hover:bg-white/10 hover:text-white bg-black/20 backdrop-blur-sm transition-all",children:"Step into Alveridge"})]})]})]}),T.jsx("section",{className:"px-6 py-24 md:py-32",children:T.jsx("div",{className:"mx-auto max-w-3xl text-center space-y-8",children:T.jsx("p",{className:"text-xl md:text-2xl leading-relaxed text-white/90 font-serif",children:"What began as a single doodle inspired by a wistful family dog has blossomed into over 200 original artworks — bringing to life the orphaned hound Lonely Dog as he navigates feline prejudice, inner struggle, and destiny in the 1950s seaside town of Port Alveridge. Through his heartfelt songs and unwavering spirit, he bridges divides, redeems his kind, and forges an unprecedented peace between Canine and Feline — the ultimate underdog story."})})}),T.jsx("section",{className:"px-6 py-12 md:py-24",children:T.jsx("div",{className:"mx-auto max-w-7xl",children:T.jsxs("div",{className:"grid gap-12 lg:grid-cols-12 lg:items-center",children:[T.jsx("div",{className:"lg:col-span-8 overflow-hidden rounded-sm shadow-2xl bg-black/20",children:T.jsx("img",{src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/Bon+Voyage+unframed-ace0c986-1920w.jpg",alt:"Bon Voyage",className:"w-full object-contain"})}),T.jsxs("div",{className:"lg:col-span-4 space-y-6",children:[T.jsxs("div",{children:[T.jsx("div",{className:"text-xs font-bold tracking-[0.2em] text-[#c9a96a] uppercase mb-3",children:"How It All Started"}),T.jsx("h2",{className:"font-serif text-4xl md:text-5xl italic text-white",children:"Bon Voyage"})]}),T.jsx("div",{className:"space-y-4 text-lg leading-relaxed text-white/80 font-serif",children:T.jsxs("p",{children:['It began when Ivan and his family drove away on holiday, leaving their pooch gazing wistfully after them. "That dog is lonely," he said. Back home, he painted ',T.jsx("em",{children:"Bon Voyage"})," — a moody, fully clothed dog standing by a departing ship under a bright moon. A friend later discovered the painting, prompting a spontaneous, far-fetched tale… and the Lonely Dog legend was born."]})})]})]})})}),T.jsx("section",{className:"px-6 py-24 md:py-32 bg-black/30",children:T.jsxs("div",{className:"mx-auto max-w-7xl space-y-24",children:[T.jsxs("div",{className:"text-center",children:[T.jsx("h2",{className:"text-4xl md:text-6xl text-white font-normal",style:{fontFamily:"Georgia, serif"},children:"The World of Alveridge"}),T.jsx("div",{className:"mt-4 h-1 w-24 bg-primary mx-auto"})]}),T.jsxs("div",{className:"space-y-6",children:[T.jsx("img",{src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/After+Midnight+unframed-a9fd3a24-1920w.jpg",alt:"After Midnight",className:"w-full h-auto rounded-sm shadow-2xl mb-6"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl md:text-4xl italic text-white text-center",children:"After Midnight"}),T.jsx("p",{className:"mx-auto max-w-4xl text-center text-lg md:text-xl leading-relaxed text-white/80 font-serif mt-4",children:"Out way past bedtime, a young Lonely Dog is completely entranced by the incredible sounds of Houndskiffle wafting into the magical evening air from the grizzled, skilled hands of Rolph's mates. Etched into his memory forever, this moment became the seed that grew to greatness in the wee hound."})]})]}),T.jsxs("div",{className:"grid gap-16 lg:grid-cols-2",children:[T.jsxs("div",{className:"space-y-4",children:[T.jsx("img",{src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/Juke+Hounds+unframed-1920w.jpg",alt:"Juke Hounds",className:"w-full h-auto rounded-sm shadow-xl mb-4"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl italic text-white",children:"Juke Hounds"}),T.jsx("p",{className:"text-lg leading-relaxed text-white/80 font-serif mt-2",children:"Once a month Elder Spittle and Verna would rattle their way to Molars Post in their trusty pickup — tap lessons, pickled weasel ham, and as many Brog salamis as Pop could carry."})]})]}),T.jsxs("div",{className:"space-y-4",children:[T.jsx("img",{src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/night-at-the-carnival-50ba89cc-1920w.png",alt:"Night at the Carnival",className:"w-full h-auto rounded-sm shadow-xl mb-4"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.1},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl italic text-white",children:"Night at the Carnival"}),T.jsx("p",{className:"text-lg leading-relaxed text-white/80 font-serif mt-2",children:"The Houndside County Orphans sold rascalberry jam and bottled plums, enough to get them to Carnival. The carousel, the roller coaster and the dodgem victory made a magical evening they would never forget."})]})]})]}),T.jsxs("div",{className:"space-y-6",children:[T.jsx("img",{src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/The+Terriers+unframed-1920w.jpg",alt:"The Terriers",className:"w-full h-auto rounded-sm shadow-2xl mb-6"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl md:text-4xl italic text-white text-center",children:"The Terriers"}),T.jsx("p",{className:"mx-auto max-w-4xl text-center text-lg md:text-xl leading-relaxed text-white/80 font-serif mt-4",children:"Flying low and stealthily across the hinterlands raced the Terriers — thousands of them. Fast talking, small in stature, but fearless fighters, they came in single pistons and tri-cylindered aircraft built from stilt-skin, tin and glue."})]})]}),T.jsxs("div",{className:"grid gap-16 lg:grid-cols-2",children:[T.jsxs("div",{className:"space-y-4",children:[T.jsx("img",{src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/mcginty+and+the+Wilkers+latest-1920w.jpg",alt:"McGinty and the Wilkers",className:"w-full h-auto rounded-sm shadow-xl mb-4"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl italic text-white",children:"McGinty and the Wilkers"}),T.jsx("p",{className:"text-lg leading-relaxed text-white/80 font-serif mt-2",children:'In the corner sat a knot of old Wilkers — sea slang for whale milkers — brooding over their beers. The walls of The Rotten Catch are decorated with antique whale-milking paraphernalia. "This Whale Girdler was used by the late McGinty Moffitt in his World Record attempt to milk a pod in 6 hours 32 seconds… only his unfortunate drowning foiled his brave attempt."'})]})]}),T.jsxs("div",{className:"space-y-4",children:[T.jsx("img",{src:"https://vibe.filesafe.space/1782278501552581011/attachments/f07893f6-cba3-4b8c-b386-e3a178a5f5f5.jpg",alt:"Houndling's Reward",className:"w-full h-auto rounded-sm shadow-xl mb-4"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.1},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl italic text-white",children:"Houndling's Reward"}),T.jsx("p",{className:"text-lg leading-relaxed text-white/80 font-serif mt-2",children:"Check out the sheer delight of the basket houndling! And all bets are off on how long the wee fellow with the too-big bike will last — but, for now, he is a fully fledged hero!"})]})]})]}),T.jsxs("div",{className:"space-y-6",children:[T.jsx("img",{src:"https://lirp.cdn-website.com/670ad30a/dms3rep/multi/opt/Tumbleton-Ave-Framed-1920w.png",alt:"Tumbleton Ave",className:"w-full h-auto rounded-sm shadow-2xl mb-6"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl md:text-4xl italic text-white text-center",children:"Tumbleton Ave"}),T.jsx("p",{className:"mx-auto max-w-4xl text-center text-lg md:text-xl leading-relaxed text-white/80 font-serif mt-4",children:"A rumble of hounds in an overfull Trunkrider cruise through town in a show of futile force. But who cares? It is loud. It is fun. They are all together. And the night — as always in Alveridge — is magical!"})]})]}),T.jsxs("div",{className:"space-y-6",children:[T.jsx("img",{src:"https://vibe.filesafe.space/1782278501552581011/attachments/be0c5d2a-bef2-4d3c-92f9-549b77fe5154.jpg",alt:"Jazz Tom",className:"mx-auto max-w-4xl w-full h-auto rounded-sm shadow-2xl mb-6"}),T.jsxs(ln.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[T.jsx("h3",{className:"font-serif text-3xl md:text-4xl italic text-white text-center",children:"Jazz Tom"}),T.jsx("p",{className:"mx-auto max-w-4xl text-center text-lg md:text-xl leading-relaxed text-white/80 font-serif mt-4",children:`"What happens when cats get a hold of good honest Houndskiffle, Juke Rock or Mountain Sound, and try and turn it into their own thing? You get endless intellectual scales, high-speed notes, trackless 'melodies' and too much showmanship! In short — Jazz! Not a hound to be found!"`})]})]})]})}),T.jsx("section",{className:"px-6 py-24 md:py-32",children:T.jsxs("div",{className:"mx-auto max-w-4xl text-center space-y-12",children:[T.jsx("div",{className:"text-xs font-bold tracking-[0.2em] text-[#c9a96a] uppercase mb-6",children:"The Story"}),T.jsxs("p",{className:"text-xl md:text-2xl leading-relaxed text-white/90 font-serif",children:["Created with long-time friend and storyteller Stu Duval, the tale follows Arthur Snout — a lovable, nerdy underdog who rises to become a dapper, pinstripe-suited rocker and virtuoso musician. The story blends humour, heart, and gentle social parallels, delighting readers worldwide through illustrated books and the novel ",T.jsx("em",{children:"Lonely Dog"}),"."]}),T.jsxs("blockquote",{className:"border-l-2 border-primary pl-6 text-left mx-auto max-w-2xl",children:[T.jsx("p",{className:"text-xl font-serif italic text-white/90",children:'"In the manner of J.K. Rowling, or Charles Dickens a century earlier, or the Grimm Brothers a century before that… a hero."'}),T.jsx("footer",{className:"mt-4 text-primary font-medium",children:"— Carla Perry, The Delta (Canada)"})]})]})}),T.jsx("section",{className:"px-6 py-24 bg-black/20 border-y border-white/5",children:T.jsxs("div",{className:"mx-auto max-w-4xl text-center space-y-8",children:[T.jsx("div",{className:"text-xs font-bold tracking-[0.2em] text-[#c9a96a] uppercase mb-6",children:"Meet the Artist"}),T.jsx("p",{className:"text-xl md:text-2xl leading-relaxed text-white/90 font-serif",children:"Ivan Clarke is a renowned New Zealand artist based in the stunning Southern Lakes region. Living near Bobs Cove on the shores of Lake Wakatipu, he creates and shares his work from his private home gallery — Lake Gallery — an intimate, appointment-only destination where visitors can meet the artist in person, pat the dogs, and experience his art in a breathtaking lakeside setting."})]})}),T.jsx("section",{className:"px-6 py-24 md:py-32",children:T.jsxs("div",{className:"mx-auto max-w-4xl text-center space-y-10",children:[T.jsx("div",{className:"text-xs font-bold tracking-[0.2em] text-[#c9a96a] uppercase mb-6",children:"The Art"}),T.jsx("p",{className:"text-xl md:text-2xl leading-relaxed text-white/90 font-serif",children:"What started as a single painting grew into the Lonely Dog Legacy Collection — over 200 original works set in the eccentric world of Alveridge. All originals remain in Ivan's private collection. Museum-quality limited edition Giclée prints on canvas are available exclusively through the gallery."}
108),T.jsx(As,{asChild:!0,size:"lg",className:"h-14 rounded-full px-8 text-lg bg-primary hover:bg-primary/90 text-primary-foreground border-none transition-all mt-4",children:T.jsxs("a",{href:"https://www.ivanclarkeartist.com/lonely-dog",target:"_blank",rel:"noopener noreferrer",children:["Explore the Art Collection ",T.jsx(gm,{className:"ml-2 h-5 w-5"})]})})]})}),T.jsx("section",{id:"email-capture",className:"bg-black/40 px-6 py-24 md:py-32 border-t border-white/5",children:T.jsxs("div",{className:"mx-auto max-w-2xl text-center space-y-8",children:[T.jsx("h2",{className:"text-4xl md:text-5xl text-white font-normal",style:{fontFamily:"Georgia, serif"},children:"Step into Alveridge"}),T.jsx("p",{className:"text-xl leading-relaxed text-foreground/80 font-light",children:"Sign up for news on new releases, prints, exhibitions, and gallery visits."}),T.jsxs("form",{className:"flex flex-col gap-4 sm:flex-row max-w-md mx-auto",onSubmit:i,children:[T.jsx("input",{type:"text",name:"name",placeholder:"Your Name",className:"flex-1 rounded-full border border-white/10 bg-black/50 px-6 py-3 text-base text-white placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary transition-all",required:!0}),T.jsx("input",{type:"email",name:"email",placeholder:"Your Email",className:"flex-1 rounded-full border border-white/10 bg-black/50 px-6 py-3 text-base text-white placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary transition-all",required:!0}),T.jsx(As,{type:"submit",size:"lg",className:"rounded-full px-8 bg-primary hover:bg-primary/90 text-primary-foreground transition-all",children:"Subscribe"})]}),T.jsxs("div",{className:"flex justify-center gap-6 pt-8",children:[T.jsxs("a",{href:"https://www.facebook.com/lonelydogLD",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/60 hover:text-primary transition-colors font-medium flex items-center gap-2",children:[T.jsx(vb,{className:"h-5 w-5"})," Facebook"]}),T.jsxs("a",{href:"https://www.instagram.com/thelonelydog/?hl=en",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/60 hover:text-primary transition-colors font-medium flex items-center gap-2",children:[T.jsx(wb,{className:"h-5 w-5"})," Instagram"]})]})]})}),T.jsx("footer",{className:"bg-background px-6 py-12 border-t border-white/5",children:T.jsxs("div",{className:"mx-auto max-w-7xl flex flex-col md:flex-row justify-between items-center gap-6",children:[T.jsxs("div",{className:"text-center md:text-left space-y-2",children:[T.jsx("p",{className:"font-serif text-xl font-semibold text-white/90",children:"Lonely Dog is an Ivan Clarke creation."}),T.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2026 Ivan Clarke. All rights reserved. · Last updated: June 2026"})]}),T.jsxs("div",{className:"flex flex-wrap justify-center gap-6 text-sm font-medium",children:[T.jsx("a",{href:"https://www.ivanclarkeartist.com/lonely-dog",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/60 hover:text-primary transition-colors",children:"Shop the Art"}),T.jsx("a",{href:"https://www.ivanclarkeartist.com/the-artist",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/60 hover:text-primary transition-colors",children:"The Artist"}),T.jsx("a",{href:"https://www.ivanclarkeartist.com/contact",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/60 hover:text-primary transition-colors",children:"Visit the Gallery"})]})]})})]})},VL=()=>{const e=Px();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),T.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:[T.jsx(AS,{title:"404 - Page Not Found",description:"The page you are looking for does not exist.",noIndex:!0}),T.jsxs("div",{className:"text-center",children:[T.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),T.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),T.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})]})},FL=new HA,zL=()=>T.jsx(kS,{children:T.jsx(GA,{client:FL,children:T.jsxs(mA,{children:[T.jsx(nP,{}),T.jsx(LP,{}),T.jsx(LR,{children:T.jsxs(NR,{children:[T.jsx(wd,{path:"/",element:T.jsx(_L,{})}),T.jsx(wd,{path:"*",element:T.jsx(VL,{})})]})})]})})});Y0(document.getElementById("root")).render(T.jsx(zL,{}));

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.